Package org.antlr.v4.runtime.atn
Class RuleTransition
java.lang.Object
org.antlr.v4.runtime.atn.Transition
org.antlr.v4.runtime.atn.RuleTransition
-
Field Summary
FieldsModifier and TypeFieldDescriptionWhat node to begin computations following ref to rulefinal intfinal intPtr to the rule definition object for this rule refFields 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
ConstructorsConstructorDescriptionRuleTransition(RuleStartState ruleStart, int ruleIndex, int precedence, ATNState followState) RuleTransition(RuleStartState ruleStart, int ruleIndex, ATNState followState) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionintbooleanDetermines if the transition is an "epsilon" transition.booleanmatches(int symbol, int minVocabSymbol, int maxVocabSymbol) Methods inherited from class org.antlr.v4.runtime.atn.Transition
label
-
Field Details
-
ruleIndex
public final int ruleIndexPtr to the rule definition object for this rule ref -
precedence
public final int precedence -
followState
What node to begin computations following ref to rule
-
-
Constructor Details
-
RuleTransition
Deprecated.UseRuleTransition(RuleStartState, int, int, ATNState)instead. -
RuleTransition
public RuleTransition(RuleStartState ruleStart, int ruleIndex, int precedence, ATNState followState)
-
-
Method Details
-
getSerializationType
public int getSerializationType()- Specified by:
getSerializationTypein classTransition
-
isEpsilon
public boolean isEpsilon()Description copied from class:TransitionDetermines if the transition is an "epsilon" transition.The default implementation returns
false.- Overrides:
isEpsilonin classTransition- Returns:
trueif traversing this transition in the ATN does not consume an input symbol; otherwise,falseif traversing this transition consumes (matches) an input symbol.
-
matches
public boolean matches(int symbol, int minVocabSymbol, int maxVocabSymbol) - Specified by:
matchesin classTransition
-
RuleTransition(RuleStartState, int, int, ATNState)instead.