Transition class abstract

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

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

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.

Implementers

Constructors

Transition(ATNState target)

Properties

hashCode int
The hash code for this object.
no setterinherited
isEpsilon bool
Determines if the transition is an "epsilon" transition.
no setter
label IntervalSet?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
target ATNState
The target of this transition. */
getter/setter pair
type TransitionType
no setter

Methods

matches(int symbol, int minVocabSymbol, int maxVocabSymbol) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited