| Modifier and Type | Field and Description |
|---|---|
| public final List | decisionToState
Each subrule/rule is a decision point and we must track them so we can go back later and build DFA predictors for them. |
| public final ATNType | grammarType
The type of the ATN. |
| public static final int | |
| public LexerAction[] | lexerActions
For lexer ATNs, this is an array of |
| public final int | maxTokenType
The maximum value for any symbol recognized by a transition in the ATN. |
| public final Map | |
| public final List | |
| public RuleStartState[] | ruleToStartState
Maps from rule index to starting state number. |
| public RuleStopState[] | ruleToStopState
Maps from rule index to stop state number. |
| public int[] | ruleToTokenType
For lexer ATNs, this maps the rule index to the resulting token type. |
| public final List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public int | |
| public DecisionState | |
| public IntervalSet | Returns: The set of potentially valid input symbols which could follow the specified state in the specified context.the ATN state number stateNumber, RuleContext the full parse context context)Computes the set of input symbols which could follow ATN state number
|
| public int | |
| public IntervalSet | nextTokens(ATNState s, RuleContext ctx)
Compute the set of valid tokens that can occur starting in state |
| public IntervalSet | nextTokens(ATNState s)
Compute the set of valid tokens that can occur starting in |
| public void |
| decisionToState | back to summary |
|---|---|
| public final List<DecisionState> decisionToState Each subrule/rule is a decision point and we must track them so we can go back later and build DFA predictors for them. This includes all the rules, subrules, optional blocks, ()+, ()* etc... | |
| grammarType | back to summary |
|---|---|
| public final ATNType grammarType The type of the ATN. | |
| INVALID_ALT_NUMBER | back to summary |
|---|---|
| public static final int INVALID_ALT_NUMBER | |
| lexerActions | back to summary |
|---|---|
| public LexerAction[] lexerActions For lexer ATNs, this is an array of | |
| maxTokenType | back to summary |
|---|---|
| public final int maxTokenType The maximum value for any symbol recognized by a transition in the ATN. | |
| modeNameToStartState | back to summary |
|---|---|
| public final Map<String, TokensStartState> modeNameToStartState | |
| modeToStartState | back to summary |
|---|---|
| public final List<TokensStartState> modeToStartState | |
| ruleToStartState | back to summary |
|---|---|
| public RuleStartState[] ruleToStartState Maps from rule index to starting state number. | |
| ruleToStopState | back to summary |
|---|---|
| public RuleStopState[] ruleToStopState Maps from rule index to stop state number. | |
| ruleToTokenType | back to summary |
|---|---|
| public int[] ruleToTokenType For lexer ATNs, this maps the rule index to the resulting token type.
For parser ATNs, this maps the rule index to the generated bypass token
type if the
| |
| states | back to summary |
|---|---|
| public final List<ATNState> states | |
| ATN | back to summary |
|---|---|
| public ATN(ATNType grammarType, int maxTokenType) Used for runtime deserialization of ATNs from strings | |
| addState | back to summary |
|---|---|
| public void addState(ATNState state) | |
| defineDecisionState | back to summary |
|---|---|
| public int defineDecisionState(DecisionState s) | |
| getDecisionState | back to summary |
|---|---|
| public DecisionState getDecisionState(int decision) | |
| getExpectedTokens | back to summary |
|---|---|
| public IntervalSet getExpectedTokens(int stateNumber, RuleContext context) Computes the set of input symbols which could follow ATN state number
If
| |
| getNumberOfDecisions | back to summary |
|---|---|
| public int getNumberOfDecisions() | |
| nextTokens | back to summary |
|---|---|
| public IntervalSet nextTokens(ATNState s, RuleContext ctx) Compute the set of valid tokens that can occur starting in state | |
| nextTokens | back to summary |
|---|---|
| public IntervalSet nextTokens(ATNState s) Compute the set of valid tokens that can occur starting in | |
| removeState | back to summary |
|---|---|
| public void removeState(ATNState state) | |