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 intlabelThe 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 intgetSerializationType()IntervalSetlabel()booleanmatches(int symbol, int minVocabSymbol, int maxVocabSymbol)StringtoString()-
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:
getSerializationTypein classTransition
-
label
public IntervalSet label()
- Overrides:
labelin classTransition
-
matches
public boolean matches(int symbol, int minVocabSymbol, int maxVocabSymbol)- Specified by:
matchesin classTransition
-
-