Package org.antlr.v4.runtime.atn
Class AtomTransition
- java.lang.Object
-
- org.antlr.v4.runtime.atn.Transition
-
- org.antlr.v4.runtime.atn.AtomTransition
-
public final class AtomTransition extends Transition
TODO: make all transitions sets? no, should remove set edges
-
-
Field Summary
Fields Modifier and Type Field Description int
label
The token type or character value; or, signifies special label.-
Fields inherited from class org.antlr.v4.runtime.atn.Transition
ACTION, ATOM, EPSILON, NOT_SET, PRECEDENCE, PREDICATE, RANGE, RULE, serializationNames, serializationTypes, SET, target, WILDCARD
-
-
Constructor Summary
Constructors Constructor Description AtomTransition(ATNState target, int label)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSerializationType()
IntervalSet
label()
boolean
matches(int symbol, int minVocabSymbol, int maxVocabSymbol)
String
toString()
-
Methods inherited from class org.antlr.v4.runtime.atn.Transition
isEpsilon
-
-
-
-
Constructor Detail
-
AtomTransition
public AtomTransition(ATNState target, int label)
-
-
Method Detail
-
getSerializationType
public int getSerializationType()
- Specified by:
getSerializationType
in classTransition
-
label
public IntervalSet label()
- Overrides:
label
in classTransition
-
matches
public boolean matches(int symbol, int minVocabSymbol, int maxVocabSymbol)
- Specified by:
matches
in classTransition
-
-