Package org.antlr.v4.runtime.atn
Class SingletonPredictionContext
java.lang.Object
org.antlr.v4.runtime.atn.PredictionContext
org.antlr.v4.runtime.atn.SingletonPredictionContext
- Direct Known Subclasses:
EmptyPredictionContext
-
Field Summary
FieldsFields inherited from class org.antlr.v4.runtime.atn.PredictionContext
cachedHashCode, EMPTY_RETURN_STATE, id
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SingletonPredictionContext
create
(PredictionContext parent, int returnState) boolean
getParent
(int index) int
getReturnState
(int index) int
size()
toString()
Methods inherited from class org.antlr.v4.runtime.atn.PredictionContext
calculateEmptyHashCode, calculateHashCode, calculateHashCode, combineCommonParents, fromRuleContext, getAllContextNodes, getAllContextNodes_, getCachedContext, hasEmptyPath, hashCode, isEmpty, merge, mergeArrays, mergeRoot, mergeSingletons, toDOTString, toString, toStrings, toStrings
-
Field Details
-
parent
-
returnState
public final int returnState
-
-
Constructor Details
-
SingletonPredictionContext
SingletonPredictionContext(PredictionContext parent, int returnState)
-
-
Method Details
-
create
-
size
public int size()- Specified by:
size
in classPredictionContext
-
getParent
- Specified by:
getParent
in classPredictionContext
-
getReturnState
public int getReturnState(int index) - Specified by:
getReturnState
in classPredictionContext
-
equals
- Specified by:
equals
in classPredictionContext
-
toString
-