public final class ActionTransition extends Transition
| 限定符和类型 | 字段和说明 |
|---|---|
int |
actionIndex |
boolean |
isCtxDependent |
int |
ruleIndex |
ACTION, ATOM, EPSILON, NOT_SET, PRECEDENCE, PREDICATE, RANGE, RULE, serializationNames, serializationTypes, SET, target, WILDCARD| 构造器和说明 |
|---|
ActionTransition(ATNState target,
int ruleIndex) |
ActionTransition(ATNState target,
int ruleIndex,
int actionIndex,
boolean isCtxDependent) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getSerializationType() |
boolean |
isEpsilon()
Determines if the transition is an "epsilon" transition.
|
boolean |
matches(int symbol,
int minVocabSymbol,
int maxVocabSymbol) |
String |
toString() |
labelpublic final int ruleIndex
public final int actionIndex
public final boolean isCtxDependent
public ActionTransition(@NotNull
ATNState target,
int ruleIndex)
public ActionTransition(@NotNull
ATNState target,
int ruleIndex,
int actionIndex,
boolean isCtxDependent)
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.