Vocabulary class abstract
This interface provides information about the vocabulary used by a recognizer.
@see Recognizer#getVocabulary()
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxTokenType → int
-
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
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getDisplayName(
int tokenType) → String - Gets the display name of a token type.
-
getLiteralName(
int tokenType) → String? - Gets the string literal associated with a token type. The string returned by this method, when not null, can be used unaltered in a parser grammar to represent this token type.
-
getSymbolicName(
int tokenType) → String? - Gets the symbolic name associated with a token type. The string returned by this method, when not null, can be used unaltered in a parser grammar to represent this token type.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited