Package org.antlr.v4.runtime.atn
Class RuleTransition
- java.lang.Object
-
- org.antlr.v4.runtime.atn.Transition
-
- org.antlr.v4.runtime.atn.RuleTransition
-
public final class RuleTransition extends Transition
-
-
Field Summary
Fields Modifier and Type Field Description ATNState
followState
What node to begin computations following ref to ruleint
precedence
int
ruleIndex
Ptr to the rule definition object for this rule ref-
Fields inherited from class org.antlr.v4.runtime.atn.Transition
ACTION, ATOM, EPSILON, NOT_SET, PRECEDENCE, PREDICATE, RANGE, RULE, serializationNames, serializationTypes, SET, target, WILDCARD
-
-
Constructor Summary
Constructors Constructor Description RuleTransition(RuleStartState ruleStart, int ruleIndex, int precedence, ATNState followState)
RuleTransition(RuleStartState ruleStart, int ruleIndex, ATNState followState)
Deprecated.UseRuleTransition(RuleStartState, int, int, ATNState)
instead.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSerializationType()
boolean
isEpsilon()
Determines if the transition is an "epsilon" transition.boolean
matches(int symbol, int minVocabSymbol, int maxVocabSymbol)
-
Methods inherited from class org.antlr.v4.runtime.atn.Transition
label
-
-
-
-
Field Detail
-
ruleIndex
public final int ruleIndex
Ptr to the rule definition object for this rule ref
-
precedence
public final int precedence
-
followState
public ATNState followState
What node to begin computations following ref to rule
-
-
Constructor Detail
-
RuleTransition
@Deprecated public RuleTransition(RuleStartState ruleStart, int ruleIndex, ATNState followState)
Deprecated.UseRuleTransition(RuleStartState, int, int, ATNState)
instead.
-
RuleTransition
public RuleTransition(RuleStartState ruleStart, int ruleIndex, int precedence, ATNState followState)
-
-
Method Detail
-
getSerializationType
public int getSerializationType()
- Specified by:
getSerializationType
in classTransition
-
isEpsilon
public boolean isEpsilon()
Description copied from class:Transition
Determines if the transition is an "epsilon" transition.The default implementation returns
false
.- Overrides:
isEpsilon
in classTransition
- Returns:
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.
-
matches
public boolean matches(int symbol, int minVocabSymbol, int maxVocabSymbol)
- Specified by:
matches
in classTransition
-
-