ATNState

The following images show the relation of states and {@link ATNState#transitions} for various grammar constructs.

Constructors

this
this()
Undocumented in source.

Members

Functions

addOptimizedTransition
void addOptimizedTransition(Transition e)
Undocumented in source. Be warned that the author may not have intended to support it.
addTransition
void addTransition(Transition e)
Undocumented in source. Be warned that the author may not have intended to support it.
equals
bool equals(Object o)

@uml @pure @safe

getNumberOfTransitions
int getNumberOfTransitions()

@uml @pure @safe

getOptimizedTransition
Transition getOptimizedTransition(size_t i)
Undocumented in source. Be warned that the author may not have intended to support it.
getStateType
int getStateType()
Undocumented in source.
getTransitions
Transition[] getTransitions()

@uml @pure @safe

hashCode
int hashCode()

@uml @pure @safe

isNonGreedyExitState
bool isNonGreedyExitState()

@uml @pure @safe

isOptimized
bool isOptimized()
Undocumented in source. Be warned that the author may not have intended to support it.
numberOfOptimizedTransitions
size_t numberOfOptimizedTransitions()
Undocumented in source. Be warned that the author may not have intended to support it.
onlyHasEpsilonTransitions
bool onlyHasEpsilonTransitions()
Undocumented in source. Be warned that the author may not have intended to support it.
optimizedTransitions
Transition[] optimizedTransitions()
Undocumented in source. Be warned that the author may not have intended to support it.
optimizedTransitions
void optimizedTransitions(Transition[] optimizedTransitions)
Undocumented in source. Be warned that the author may not have intended to support it.
removeOptimizedTransition
void removeOptimizedTransition(size_t i)
Undocumented in source. Be warned that the author may not have intended to support it.
removeTransition
Transition removeTransition(int index)
Undocumented in source. Be warned that the author may not have intended to support it.
setOptimizedTransition
void setOptimizedTransition(size_t i, Transition e)
Undocumented in source. Be warned that the author may not have intended to support it.
setRuleIndex
void setRuleIndex(int ruleIndex)
Undocumented in source. Be warned that the author may not have intended to support it.
setTransition
void setTransition(int i, Transition e)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()

@uml @pure @safe @override

transition
Transition transition(int i)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

INITIAL_NUM_TRANSITIONS
enum int INITIAL_NUM_TRANSITIONS;
Undocumented in source.
INVALID_STATE_NUMBER
enum int INVALID_STATE_NUMBER;
Undocumented in source.
atn
ATN atn;

@uml Which ATN are we in?

epsilonOnlyTransitions
bool epsilonOnlyTransitions;
Undocumented in source.
nextTokenWithinRule
IntervalSet nextTokenWithinRule;

@uml Used to cache lookahead during parsing, not used during construction

ruleIndex
int ruleIndex;

@uml at runtime, we don't have Rule objects

stateNumber
int stateNumber;
Undocumented in source.
transitions
Transition[] transitions;

@uml Track the transitions emanating from this ATN state.

Meta