Vocabulary

@uml This interface provides information about the vocabulary used by a ecognizer.

@see Recognizer#getVocabulary() @author Sam Harwell

Members

Functions

getDisplayName
string getDisplayName(int tokenType)

@uml Gets the display name of a token type.

getLiteralName
string getLiteralName(int tokenType)

@uml Gets the string literal associated with a token type. The string returned by this method, when not {@code null}, can be used unaltered in a parser grammar to represent this token type.

getMaxTokenType
int getMaxTokenType()

@uml Returns the highest token type value. It can be used to iterate from zero to that number, inclusively, thus querying all stored entries. @return the highest token type value

getSymbolicName
string getSymbolicName(int tokenType)

@uml Gets the symbolic name associated with a token type. The string returned by this method, when not {@code null}, can be used unaltered in a parser grammar to represent this token type.

Meta