LexerATNConfig

TODO add class description

Constructors

this
this(ATNState state, int alt, PredictionContext context)
Undocumented in source.
this
this(ATNState state, int alt, PredictionContext context, LexerActionExecutor lexerActionExecutor)
Undocumented in source.
this
this(LexerATNConfig c, ATNState state)
Undocumented in source.
this
this(LexerATNConfig c, ATNState state, LexerActionExecutor lexerActionExecutor)
Undocumented in source.
this
this(LexerATNConfig c, ATNState state, PredictionContext context)
Undocumented in source.

Members

Functions

equals
bool equals(ATNConfig other)
Undocumented in source. Be warned that the author may not have intended to support it.
getLexerActionExecutor
LexerActionExecutor getLexerActionExecutor()

Gets the {@link LexerActionExecutor} capable of executing the embedded action(s) for the current configuration.

hasPassedThroughNonGreedyDecision
bool hasPassedThroughNonGreedyDecision()
Undocumented in source. Be warned that the author may not have intended to support it.
toHash
size_t toHash()

@uml @override @safe @nothrow

Static functions

checkNonGreedyDecision
bool checkNonGreedyDecision(LexerATNConfig source, ATNState target)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

lexerActionExecutor
LexerActionExecutor lexerActionExecutor;

This is the backing field for {@link #getLexerActionExecutor}.

passedThroughNonGreedyDecision
bool passedThroughNonGreedyDecision;
Undocumented in source.

Inherited Members

From ATNConfig

SUPPRESS_PRECEDENCE_FILTER
enum int SUPPRESS_PRECEDENCE_FILTER;

This field stores the bit mask for implementing the {@link #isPrecedenceFilterSuppressed} property as a bit within the existing {@link #reachesIntoOuterContext} field.

state
ATNState state;

The ATN state associated with this configuration.

alt
int alt;

What alt (or lexer rule) is predicted by this configuration?

context
PredictionContext context;

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.

reachesIntoOuterContext
int reachesIntoOuterContext;

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.

semanticContext
SemanticContext semanticContext;
Undocumented in source.
hashOfFp
size_t function(Object o) @(trusted) nothrow hashOfFp;
Undocumented in source.
opEqualsFp
bool function(Object a, Object b) opEqualsFp;
Undocumented in source.
getOuterContextDepth
int getOuterContextDepth()

This method gets the value of the {@link #reachesIntoOuterContext} field as it existed prior to the introduction of the {@link #isPrecedenceFilterSuppressed} method.

isPrecedenceFilterSuppressed
bool isPrecedenceFilterSuppressed()
Undocumented in source. Be warned that the author may not have intended to support it.
setPrecedenceFilterSuppressed
void setPrecedenceFilterSuppressed(bool value)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Object o)

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. @uml @override

opEquals
bool opEquals(ATNConfig other)
Undocumented in source. Be warned that the author may not have intended to support it.
toHash
size_t toHash()

@uml @trusted @nothrow @override

toString
string toString()

@uml @override

toString
string toString(InterfaceRecognizer recog, bool showAlt)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta