public final class ActionTransition extends Transition
| Modifier and Type | Field | Description |
|---|---|---|
int |
actionIndex |
|
boolean |
isCtxDependent |
|
int |
ruleIndex |
ACTION, ATOM, EPSILON, NOT_SET, PRECEDENCE, PREDICATE, RANGE, RULE, serializationNames, serializationTypes, SET, target, WILDCARD| Constructor | Description |
|---|---|
ActionTransition(ATNState target,
int ruleIndex) |
|
ActionTransition(ATNState target,
int ruleIndex,
int actionIndex,
boolean isCtxDependent) |
| 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) |
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitlabelpublic final int ruleIndex
public final int actionIndex
public final boolean isCtxDependent
public ActionTransition(ATNState target, int ruleIndex)
public ActionTransition(ATNState target, int ruleIndex, int actionIndex, boolean isCtxDependent)
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 TransitionCopyright © 1992–2019 ANTLR. All rights reserved.