public abstract class AbstractVocabulary
extends Object
implements org.antlr.v4.runtime.Vocabulary
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractVocabulary() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
add(int tokenType,
@NotNull String literal,
@NotNull String symbol) |
protected abstract void |
addTokens() |
String |
getDisplayName(int tokenType) |
String |
getLiteralName(int tokenType) |
int |
getMaxTokenType() |
String |
getSymbolicName(int tokenType) |
String |
toString() |
protected abstract void addTokens()
protected void add(int tokenType,
@NotNull
@NotNull String literal,
@NotNull
@NotNull String symbol)
public int getMaxTokenType()
getMaxTokenType in interface org.antlr.v4.runtime.Vocabularypublic String getLiteralName(int tokenType)
getLiteralName in interface org.antlr.v4.runtime.Vocabularypublic String getSymbolicName(int tokenType)
getSymbolicName in interface org.antlr.v4.runtime.Vocabularypublic String getDisplayName(int tokenType)
getDisplayName in interface org.antlr.v4.runtime.Vocabularypublic String toString()
toString in class Object