Top Fields Constructors Methods
org.antlr.v4.runtime.atn

public final Class EpsilonTransition

extends Transition
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final int
Inherited from org.antlr.v4.runtime.atn.Transition:
ACTIONATOMEPSILONNOT_SETPRECEDENCEPREDICATERANGERULEserializationNamesserializationTypesSETtargetWILDCARD

Constructor Summary

AccessConstructor and Description
public
public
EpsilonTransition(ATNState target, int outermostPrecedenceReturn)

Method Summary

Modifier and TypeMethod and Description
public int
public boolean
isEpsilon()

Overrides org.antlr.v4.runtime.atn.Transition.isEpsilon.

Determines if the transition is an "epsilon" transition.
public boolean
matches(int symbol, int minVocabSymbol, int maxVocabSymbol)

Implements abstract org.antlr.v4.runtime.atn.Transition.matches.

public int

Returns:

the rule index of a precedence rule for which this transition is returning from, where the precedence value is 0; otherwise, -1.
outermostPrecedenceReturn
()

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.antlr.v4.runtime.atn.Transition:
label

Field Detail

outermostPrecedenceReturnback to summary
private final int outermostPrecedenceReturn

Constructor Detail

EpsilonTransitionback to summary
public EpsilonTransition(ATNState target)
EpsilonTransitionback to summary
public EpsilonTransition(ATNState target, int outermostPrecedenceReturn)

Method Detail

getSerializationTypeback to summary
public int getSerializationType()

Implements abstract org.antlr.v4.runtime.atn.Transition.getSerializationType.

Annotations
@Override
isEpsilonback to summary
public boolean isEpsilon()

Overrides org.antlr.v4.runtime.atn.Transition.isEpsilon.

Doc from org.antlr.v4.runtime.atn.Transition.isEpsilon.

Determines if the transition is an "epsilon" transition.

The default implementation returns false.

Returns:boolean

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.

Annotations
@Override
matchesback to summary
public boolean matches(int symbol, int minVocabSymbol, int maxVocabSymbol)

Implements abstract org.antlr.v4.runtime.atn.Transition.matches.

Annotations
@Override
outermostPrecedenceReturnback to summary
public int outermostPrecedenceReturn()
Returns:int

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)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override