Package org.antlr.v4.runtime.atn
Class EpsilonTransition
- java.lang.Object
-
- org.antlr.v4.runtime.atn.Transition
-
- org.antlr.v4.runtime.atn.EpsilonTransition
-
public final class EpsilonTransition extends Transition
-
-
Field Summary
-
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 EpsilonTransition(ATNState target)EpsilonTransition(ATNState target, int outermostPrecedenceReturn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSerializationType()booleanisEpsilon()Determines if the transition is an "epsilon" transition.booleanmatches(int symbol, int minVocabSymbol, int maxVocabSymbol)intoutermostPrecedenceReturn()StringtoString()-
Methods inherited from class org.antlr.v4.runtime.atn.Transition
label
-
-
-
-
Method Detail
-
outermostPrecedenceReturn
public int outermostPrecedenceReturn()
- Returns:
- the rule index of a precedence rule for which this transition is returning from, where the precedence value is 0; otherwise, -1.
- Since:
- 4.4.1
- See Also:
ATNConfig.isPrecedenceFilterSuppressed(),ParserATNSimulator.applyPrecedenceFilter(ATNConfigSet)
-
getSerializationType
public int getSerializationType()
- Specified by:
getSerializationTypein classTransition
-
isEpsilon
public boolean isEpsilon()
Description copied from class:TransitionDetermines if the transition is an "epsilon" transition.The default implementation returns
false.- Overrides:
isEpsilonin classTransition- Returns:
trueif traversing this transition in the ATN does not consume an input symbol; otherwise,falseif traversing this transition consumes (matches) an input symbol.
-
matches
public boolean matches(int symbol, int minVocabSymbol, int maxVocabSymbol)- Specified by:
matchesin classTransition
-
-