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

public final Class RuleTransition

extends Transition
Class Inheritance
Imports
org.antlr.v4.runtime.misc.NotNull

Field Summary

Modifier and TypeField and Description
public ATNState
followState

What node to begin computations following ref to rule

public boolean
public final int
public final int
ruleIndex

Ptr to the rule definition object for this rule ref

public boolean
Inherited from org.antlr.v4.runtime.atn.Transition:
ACTIONATOMEPSILONNOT_SETPRECEDENCEPREDICATERANGERULEserializationNamesserializationTypesSETtargetWILDCARD

Constructor Summary

AccessConstructor and Description
public
RuleTransition(RuleStartState ruleStart, int ruleIndex, ATNState followState)

public
RuleTransition(RuleStartState ruleStart, int ruleIndex, int precedence, ATNState followState)

Method Summary

Modifier and TypeMethod and Description
public int
public boolean
isEpsilon()

Overrides org.antlr.v4.runtime.atn.Transition.isEpsilon.

Determines if the transition is an "epsilon" transition.
public boolean
matches(int symbol, int minVocabSymbol, int maxVocabSymbol)

Implements abstract org.antlr.v4.runtime.atn.Transition.matches.

Inherited from org.antlr.v4.runtime.atn.Transition:
label

Field Detail

followStateback to summary
public ATNState followState

What node to begin computations following ref to rule

Annotations
@NotNull
optimizedTailCallback to summary
public boolean optimizedTailCall
precedenceback to summary
public final int precedence
ruleIndexback to summary
public final int ruleIndex

Ptr to the rule definition object for this rule ref

tailCallback to summary
public boolean tailCall

Constructor Detail

RuleTransitionback to summary
public RuleTransition(RuleStartState ruleStart, int ruleIndex, ATNState followState)
Annotations
@Deprecated
RuleTransitionback to summary
public RuleTransition(RuleStartState ruleStart, int ruleIndex, int precedence, ATNState followState)

Method Detail

getSerializationTypeback to summary
public int getSerializationType()

Implements abstract org.antlr.v4.runtime.atn.Transition.getSerializationType.

Annotations
@Override
isEpsilonback to summary
public boolean isEpsilon()

Overrides org.antlr.v4.runtime.atn.Transition.isEpsilon.

Doc from org.antlr.v4.runtime.atn.Transition.isEpsilon.

Determines if the transition is an "epsilon" transition.

The default implementation returns false.

Returns:boolean

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.

Annotations
@Override
matchesback to summary
public boolean matches(int symbol, int minVocabSymbol, int maxVocabSymbol)

Implements abstract org.antlr.v4.runtime.atn.Transition.matches.

Annotations
@Override