Class SingletonPredictionContext
java.lang.Object
org.graalvm.shadowed.org.antlr.v4.runtime.atn.PredictionContext
org.graalvm.shadowed.org.antlr.v4.runtime.atn.SingletonPredictionContext
- Direct Known Subclasses:
EmptyPredictionContext
-
Field Summary
FieldsFields inherited from class org.graalvm.shadowed.org.antlr.v4.runtime.atn.PredictionContext
cachedHashCode, EMPTY_RETURN_STATE, id -
Method Summary
Modifier and TypeMethodDescriptionstatic SingletonPredictionContextcreate(PredictionContext parent, int returnState) booleangetParent(int index) intgetReturnState(int index) intsize()toString()Methods inherited from class org.graalvm.shadowed.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
-
-
Method Details
-
create
-
size
public int size()- Specified by:
sizein classPredictionContext
-
getParent
- Specified by:
getParentin classPredictionContext
-
getReturnState
public int getReturnState(int index) - Specified by:
getReturnStatein classPredictionContext
-
equals
- Specified by:
equalsin classPredictionContext
-
toString
-