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.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final List | |
| public static final Map | |
| public static final int | |
| public ATNState | target
The target of this transition. |
| public static final int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract int | |
| public boolean | Returns: true if traversing this transition in the ATN does not
consume an input symbol; otherwise, false if traversing this
transition consumes (matches) an input symbol.Determines if the transition is an "epsilon" transition. |
| public IntervalSet | |
| public abstract boolean |
| ACTION | back to summary |
|---|---|
| public static final int ACTION | |
| ATOM | back to summary |
|---|---|
| public static final int ATOM | |
| EPSILON | back to summary |
|---|---|
| public static final int EPSILON | |
| NOT_SET | back to summary |
|---|---|
| public static final int NOT_SET | |
| PRECEDENCE | back to summary |
|---|---|
| public static final int PRECEDENCE | |
| PREDICATE | back to summary |
|---|---|
| public static final int PREDICATE | |
| RANGE | back to summary |
|---|---|
| public static final int RANGE | |
| RULE | back to summary |
|---|---|
| public static final int RULE | |
| serializationNames | back to summary |
|---|---|
| public static final List<String> serializationNames | |
| serializationTypes | back to summary |
|---|---|
| public static final Map<Class<? extends Transition>, Integer> serializationTypes | |
| SET | back to summary |
|---|---|
| public static final int SET | |
| target | back to summary |
|---|---|
| public ATNState target The target of this transition. | |
| WILDCARD | back to summary |
|---|---|
| public static final int WILDCARD | |
| Transition | back to summary |
|---|---|
| protected Transition(ATNState target) | |
| getSerializationType | back to summary |
|---|---|
| public abstract int getSerializationType() | |
| isEpsilon | back to summary |
|---|---|
| public boolean isEpsilon() Determines if the transition is an "epsilon" transition. The default implementation returns
| |
| label | back to summary |
|---|---|
| public IntervalSet label() | |
| matches | back to summary |
|---|---|
| public abstract boolean matches(int symbol, int minVocabSymbol, int maxVocabSymbol) | |