LexerATNConfig class

Inheritance

Constructors

LexerATNConfig(ATNState state, int alt, PredictionContext context, [LexerActionExecutor? lexerActionExecutor])
LexerATNConfig.dup(LexerATNConfig c, ATNState state, {LexerActionExecutor? lexerActionExecutor, PredictionContext? context})

Properties

alt int
What alt (or lexer rule) is predicted by this configuration */
getter/setter pairinherited
context PredictionContext?
The stack of invoking states leading to the rule/states associated with this config. We track only those contexts pushed during execution of the ATN simulator.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setteroverride
lexerActionExecutor LexerActionExecutor?
Gets the LexerActionExecutor capable of executing the embedded action(s) for the current configuration.
getter/setter pair
outerContextDepth int
This method gets the value of the {@link #reachesIntoOuterContext} field as it existed prior to the introduction of the {@link #isPrecedenceFilterSuppressed} method.
no setterinherited
passedThroughNonGreedyDecision bool
getter/setter pair
reachesIntoOuterContext int
We cannot execute predicates dependent upon local context unless we know for sure we are in the correct context. Because there is no way to do this efficiently, we simply cannot evaluate dependent predicates unless we are in the rule that initially invokes the ATN simulator.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semanticContext SemanticContext
getter/setter pairinherited
state ATNState
The ATN state associated with this configuration */
getter/setter pairinherited

Methods

hasPassedThroughNonGreedyDecision() bool
isPrecedenceFilterSuppressed() bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setPrecedenceFilterSuppressed(bool value) → void
inherited
toString([dynamic _, bool showAlt = true]) String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
An ATN configuration is equal to another if both have the same state, they predict the same alternative, and syntactic/semantic contexts are the same.
override

Static Methods

checkNonGreedyDecision(LexerATNConfig source, ATNState target) bool