public final class RuleTransition extends Transition
| 限定符和类型 | 字段和说明 |
|---|---|
ATNState |
followState
What node to begin computations following ref to rule
|
boolean |
optimizedTailCall |
int |
precedence |
int |
ruleIndex
Ptr to the rule definition object for this rule ref
|
boolean |
tailCall |
ACTION, ATOM, EPSILON, NOT_SET, PRECEDENCE, PREDICATE, RANGE, RULE, serializationNames, serializationTypes, SET, target, WILDCARD| 构造器和说明 |
|---|
RuleTransition(RuleStartState ruleStart,
int ruleIndex,
ATNState followState)
已过时。
Use
RuleTransition(RuleStartState, int, int, ATNState) instead. |
RuleTransition(RuleStartState ruleStart,
int ruleIndex,
int precedence,
ATNState followState) |
| 限定符和类型 | 方法和说明 |
|---|---|
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
@NotNull public ATNState followState
public boolean tailCall
public boolean optimizedTailCall
@Deprecated public RuleTransition(@NotNull RuleStartState ruleStart, int ruleIndex, @NotNull ATNState followState)
RuleTransition(RuleStartState, int, int, ATNState) instead.public RuleTransition(@NotNull
RuleStartState ruleStart,
int ruleIndex,
int precedence,
@NotNull
ATNState followState)
public int getSerializationType()
getSerializationType 在类中 Transitionpublic boolean isEpsilon()
TransitionThe default implementation returns false.
isEpsilon 在类中 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 在类中 TransitionCopyright © 1992–2022 Daniel Sun. All rights reserved.