Package org.antlr.v4.runtime.atn
Class RuleStopState
java.lang.Object
org.antlr.v4.runtime.atn.ATNState
org.antlr.v4.runtime.atn.RuleStopState
The last node in the ATN for a rule, unless that rule is the start symbol.
In that case, there is one transition to EOF. Later, we might encode
references to all calls to this rule to compute FOLLOW sets for
error handling.
-
Field Summary
Fields inherited from class org.antlr.v4.runtime.atn.ATNState
atn, BASIC, BLOCK_END, BLOCK_START, epsilonOnlyTransitions, INITIAL_NUM_TRANSITIONS, INVALID_STATE_NUMBER, INVALID_TYPE, LOOP_END, nextTokenWithinRule, optimizedTransitions, PLUS_BLOCK_START, PLUS_LOOP_BACK, RULE_START, RULE_STOP, ruleIndex, serializationNames, STAR_BLOCK_START, STAR_LOOP_BACK, STAR_LOOP_ENTRY, stateNumber, TOKEN_START, transitions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintFor all states exceptRuleStopState, this returns the state number.intMethods inherited from class org.antlr.v4.runtime.atn.ATNState
addOptimizedTransition, addTransition, addTransition, equals, freezeOptimizedTransitions, frozenOptimizedTransitions, getNumberOfOptimizedTransitions, getNumberOfTransitions, getOptimizedTransition, getStateNumber, getTransitions, hashCode, isNonGreedyExitState, isOptimized, onlyHasEpsilonTransitions, removeOptimizedTransition, removeTransition, setOptimizedTransition, setRuleIndex, setTransition, toString, transition
-
Constructor Details
-
RuleStopState
public RuleStopState()
-
-
Method Details
-
getNonStopStateNumber
public int getNonStopStateNumber()Description copied from class:ATNStateFor all states exceptRuleStopState, this returns the state number. Returns -1 for stop states.- Overrides:
getNonStopStateNumberin classATNState- Returns:
- -1 for
RuleStopState, otherwise the state number
-
getStateType
public int getStateType()- Specified by:
getStateTypein classATNState
-