ATNState#transitions for various grammar constructs.
EpsilonTransition.Transition might appear.BasicState states or the inclusion of a block representing a nested
construct in one of the forms below.... support
any number of alternatives (one or more). Nodes without the ... only
support the exact number of alternatives shown in the diagram.(...)*(...)+(...)?(...)*?(...)+?(...)??| Modifier and Type | Field and Description |
|---|---|
| public ATN | atn
Which ATN are we in? |
| public static final int | |
| public static final int | |
| public static final int | |
| public boolean | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public IntervalSet | nextTokenWithinRule
Used to cache lookahead during parsing, not used during construction |
| protected List | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public int | |
| public static final List | |
| public static final int | |
| public static final int | |
| public static final int | |
| public int | |
| public static final int | |
| protected final List | transitions
Track the transitions emanating from this ATN state. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public int | Returns: -1 forRuleStopState, otherwise the state numberFor all states except |
| public int | |
| public int | |
| public Transition | |
| public final int | |
| public abstract int | |
| public Transition[] | |
| public int | |
| public boolean | |
| public boolean | |
| public final boolean | |
| public void | |
| public Transition | |
| public void | |
| public void | |
| public void | |
| public String | |
| public Transition |
| atn | back to summary |
|---|---|
| public ATN atn Which ATN are we in? | |
| BASIC | back to summary |
|---|---|
| public static final int BASIC | |
| BLOCK_END | back to summary |
|---|---|
| public static final int BLOCK_END | |
| BLOCK_START | back to summary |
|---|---|
| public static final int BLOCK_START | |
| epsilonOnlyTransitions | back to summary |
|---|---|
| public boolean epsilonOnlyTransitions | |
| INITIAL_NUM_TRANSITIONS | back to summary |
|---|---|
| public static final int INITIAL_NUM_TRANSITIONS | |
| INVALID_STATE_NUMBER | back to summary |
|---|---|
| public static final int INVALID_STATE_NUMBER | |
| INVALID_TYPE | back to summary |
|---|---|
| public static final int INVALID_TYPE | |
| LOOP_END | back to summary |
|---|---|
| public static final int LOOP_END | |
| nextTokenWithinRule | back to summary |
|---|---|
| public IntervalSet nextTokenWithinRule Used to cache lookahead during parsing, not used during construction | |
| optimizedTransitions | back to summary |
|---|---|
| protected List<Transition> optimizedTransitions | |
| PLUS_BLOCK_START | back to summary |
|---|---|
| public static final int PLUS_BLOCK_START | |
| PLUS_LOOP_BACK | back to summary |
|---|---|
| public static final int PLUS_LOOP_BACK | |
| RULE_START | back to summary |
|---|---|
| public static final int RULE_START | |
| RULE_STOP | back to summary |
|---|---|
| public static final int RULE_STOP | |
| ruleIndex | back to summary |
|---|---|
| public int ruleIndex | |
| serializationNames | back to summary |
|---|---|
| public static final List<String> serializationNames | |
| STAR_BLOCK_START | back to summary |
|---|---|
| public static final int STAR_BLOCK_START | |
| STAR_LOOP_BACK | back to summary |
|---|---|
| public static final int STAR_LOOP_BACK | |
| STAR_LOOP_ENTRY | back to summary |
|---|---|
| public static final int STAR_LOOP_ENTRY | |
| stateNumber | back to summary |
|---|---|
| public int stateNumber | |
| TOKEN_START | back to summary |
|---|---|
| public static final int TOKEN_START | |
| transitions | back to summary |
|---|---|
| protected final List<Transition> transitions Track the transitions emanating from this ATN state. | |
| ATNState | back to summary |
|---|---|
| public ATNState() | |
| addOptimizedTransition | back to summary |
|---|---|
| public void addOptimizedTransition(Transition e) | |
| addTransition | back to summary |
|---|---|
| public void addTransition(Transition e) | |
| addTransition | back to summary |
|---|---|
| public void addTransition(int index, Transition e) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getNonStopStateNumber | back to summary |
|---|---|
| public int getNonStopStateNumber() For all states except
| |
| getNumberOfOptimizedTransitions | back to summary |
|---|---|
| public int getNumberOfOptimizedTransitions() | |
| getNumberOfTransitions | back to summary |
|---|---|
| public int getNumberOfTransitions() | |
| getOptimizedTransition | back to summary |
|---|---|
| public Transition getOptimizedTransition(int i) | |
| getStateNumber | back to summary |
|---|---|
| public final int getStateNumber() Gets the state number.
| |
| getStateType | back to summary |
|---|---|
| public abstract int getStateType() | |
| getTransitions | back to summary |
|---|---|
| public Transition[] getTransitions() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isNonGreedyExitState | back to summary |
|---|---|
| public boolean isNonGreedyExitState() | |
| isOptimized | back to summary |
|---|---|
| public boolean isOptimized() | |
| onlyHasEpsilonTransitions | back to summary |
|---|---|
| public final boolean onlyHasEpsilonTransitions() | |
| removeOptimizedTransition | back to summary |
|---|---|
| public void removeOptimizedTransition(int i) | |
| removeTransition | back to summary |
|---|---|
| public Transition removeTransition(int index) | |
| setOptimizedTransition | back to summary |
|---|---|
| public void setOptimizedTransition(int i, Transition e) | |
| setRuleIndex | back to summary |
|---|---|
| public void setRuleIndex(int ruleIndex) | |
| setTransition | back to summary |
|---|---|
| public void setTransition(int i, Transition e) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| transition | back to summary |
|---|---|
| public Transition transition(int i) | |