Transition

An ATN transition between any two ATN states. Subclasses define atom, set, epsilon, action, predicate, rule transitions.

<p>This is a one way link. It emanates from a state (usually via a list of transitions) and has a target state.</p>

<p>Since we never have to change the ATN transitions once we construct it, we can fix these transitions as specific classes. The DFA transitions on the other hand need to update the labels as it adds transitions to the states. We'll use the term Edge for the DFA to distinguish them from ATN transitions.</p>

Constructors

this
this(ATNState target)
Undocumented in source.
this
this()
Undocumented in source.

Members

Functions

getSerializationType
int getSerializationType()
Undocumented in source.
isEpsilon
bool isEpsilon()

Determines if the transition is an "epsilon" transition.

label
IntervalSet label()
Undocumented in source. Be warned that the author may not have intended to support it.
matches
bool matches(int symbol, int minVocabSymbol, int maxVocabSymbol)
Undocumented in source.

Static variables

serializationNames
string[] serializationNames;
Undocumented in source.

Variables

target
ATNState target;

The target of this transition.

Meta