Recognizer<ATNInterpreter extends ATNSimulator> class
abstract
Constructors
Properties
- errorListenerDispatch → ErrorListener
-
no setter
-
errorListeners
→ List<
ErrorListener> -
no setter
- grammarFileName → String
-
For debugging and other purposes, might want the grammar name.
Have ANTLR generate an implementation for this method.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- inputStream ↔ IntStream
-
covariantgetter/setter pair
- interpreter ↔ ATNInterpreter?
-
The ATN interpreter used by the recognizer for prediction.
getter/setter pair
- parseInfo → ParseInfo?
-
If profiling during the parse/lex, this will return DecisionInfo records
for each decision in recognizer in a ParseInfo object.
no setter
-
ruleIndexMap
→ Map<
String, int> -
Get a map from rule names to rule indexes.
no setter
-
ruleNames
→ List<
String> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
serializedATN
→ List<
int> -
If this recognizer was generated, it will have a serialized ATN
representation of the grammar.
no setter
- state ↔ int
-
getter/setter pair
-
tokenFactory
↔ TokenFactory<
Token> -
getter/setter pair
-
tokenTypeMap
→ Map<
String, int> -
Get a map from token names to token types.
no setter
- vocabulary → Vocabulary
-
Get the vocabulary used by the recognizer.
no setter
Methods
-
action(
RuleContext? _localctx, int ruleIndex, int actionIndex) → void -
addErrorListener(
ErrorListener listener) → void -
getATN(
) → ATN - Get the ATN used by the recognizer for prediction.
-
getErrorHeader(
RecognitionException< IntStream> e) → String - What is the error header, normally line/character position information? */
-
getTokenType(
String tokenName) → int -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
precpred(
RuleContext? localctx, int precedence) → bool -
removeErrorListener(
ErrorListener listener) → void -
removeErrorListeners(
) → void -
sempred(
RuleContext? _localctx, int ruleIndex, int actionIndex) → bool -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
ruleIndexMapCache
→ Map<
List< String> , Map<String, int> > -
final
-
tokenTypeMapCache
→ Map<
Vocabulary, Map< String, int> > -
final