public final class PrecedencePredicateTransition extends AbstractPredicateTransition
Modifier and Type | Field | Description |
---|---|---|
int |
precedence |
ACTION, ATOM, EPSILON, NOT_SET, PRECEDENCE, PREDICATE, RANGE, RULE, serializationNames, serializationTypes, SET, target, WILDCARD
Constructor | Description |
---|---|
PrecedencePredicateTransition(ATNState target,
int precedence) |
Modifier and Type | Method | Description |
---|---|---|
SemanticContext.PrecedencePredicate |
getPredicate() |
|
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, wait
label
public PrecedencePredicateTransition(ATNState target, int precedence)
public int getSerializationType()
getSerializationType
in class Transition
public boolean isEpsilon()
Transition
The default implementation returns false
.
isEpsilon
in class Transition
true
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
public SemanticContext.PrecedencePredicate getPredicate()
Copyright © 1992–2018 ANTLR. All rights reserved.