public final class RuleTransition extends Transition
| Modifier and Type | Field and Description |
|---|---|
ATNState |
followState
What node to begin computations following ref to rule
|
int |
precedence |
int |
ruleIndex
Ptr to the rule definition object for this rule ref
|
ACTION, ATOM, EPSILON, NOT_SET, PRECEDENCE, PREDICATE, RANGE, RULE, serializationNames, serializationTypes, SET, target, WILDCARD| Constructor and Description |
|---|
RuleTransition(RuleStartState ruleStart,
int ruleIndex,
ATNState followState)
Deprecated.
Use
RuleTransition(RuleStartState, int, int, ATNState) instead. |
RuleTransition(RuleStartState ruleStart,
int ruleIndex,
int precedence,
ATNState followState) |
| Modifier and Type | Method and Description |
|---|---|
int |
getSerializationType() |
boolean |
isEpsilon()
Determines if the transition is an "epsilon" transition.
|
boolean |
matches(int symbol,
int minVocabSymbol,
int maxVocabSymbol) |
labelpublic final int ruleIndex
public final int precedence
public ATNState followState
@Deprecated public RuleTransition(RuleStartState ruleStart, int ruleIndex, ATNState followState)
RuleTransition(RuleStartState, int, int, ATNState) instead.public RuleTransition(RuleStartState ruleStart, int ruleIndex, int precedence, ATNState followState)
public int getSerializationType()
getSerializationType in class Transitionpublic boolean isEpsilon()
TransitionThe default implementation returns false.
isEpsilon in class Transitiontrue if traversing this transition in the ATN does not
consume an input symbol; otherwise, false if traversing this
transition consumes (matches) an input symbol.public boolean matches(int symbol,
int minVocabSymbol,
int maxVocabSymbol)
matches in class Transition