Top Description Fields Constructors Methods
org.antlr.v4.runtime.atn

public final Class RuleStopState

extends ATNState
Class Inheritance

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

Inherited from org.antlr.v4.runtime.atn.ATNState:
atnBASICBLOCK_ENDBLOCK_STARTepsilonOnlyTransitionsINITIAL_NUM_TRANSITIONSINVALID_STATE_NUMBERINVALID_TYPELOOP_ENDnextTokenWithinRuleoptimizedTransitionsPLUS_BLOCK_STARTPLUS_LOOP_BACKRULE_STARTRULE_STOPruleIndexserializationNamesSTAR_BLOCK_STARTSTAR_LOOP_BACKSTAR_LOOP_ENTRYstateNumberTOKEN_STARTtransitions

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
getNonStopStateNumber()

Overrides org.antlr.v4.runtime.atn.ATNState.getNonStopStateNumber.

For all states except RuleStopState, this returns the state number.
public int
Inherited from org.antlr.v4.runtime.atn.ATNState:
addOptimizedTransitionaddTransitionaddTransitionequalsgetNumberOfOptimizedTransitionsgetNumberOfTransitionsgetOptimizedTransitiongetStateNumbergetTransitionshashCodeisNonGreedyExitStateisOptimizedonlyHasEpsilonTransitionsremoveOptimizedTransitionremoveTransitionsetOptimizedTransitionsetRuleIndexsetTransitiontoStringtransition

Constructor Detail

RuleStopStateback to summary
public RuleStopState()

Method Detail

getNonStopStateNumberback to summary
public int getNonStopStateNumber()

Overrides org.antlr.v4.runtime.atn.ATNState.getNonStopStateNumber.

Doc from org.antlr.v4.runtime.atn.ATNState.getNonStopStateNumber.

For all states except RuleStopState, this returns the state number. Returns -1 for stop states.

Returns:int

-1 for RuleStopState, otherwise the state number

Annotations
@Override
getStateTypeback to summary
public int getStateType()

Implements abstract org.antlr.v4.runtime.atn.ATNState.getStateType.

Annotations
@Override