Class EmptyPredictionContext
java.lang.Object
org.graalvm.shadowed.org.antlr.v4.runtime.atn.PredictionContext
org.graalvm.shadowed.org.antlr.v4.runtime.atn.SingletonPredictionContext
org.graalvm.shadowed.org.antlr.v4.runtime.atn.EmptyPredictionContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EmptyPredictionContextRepresents$in local context prediction, which means wildcard.Fields inherited from class org.graalvm.shadowed.org.antlr.v4.runtime.atn.SingletonPredictionContext
parent, returnStateFields inherited from class org.graalvm.shadowed.org.antlr.v4.runtime.atn.PredictionContext
cachedHashCode, EMPTY_RETURN_STATE, id -
Method Summary
Methods inherited from class org.graalvm.shadowed.org.antlr.v4.runtime.atn.SingletonPredictionContext
createMethods inherited from class org.graalvm.shadowed.org.antlr.v4.runtime.atn.PredictionContext
calculateEmptyHashCode, calculateHashCode, calculateHashCode, combineCommonParents, fromRuleContext, getAllContextNodes, getAllContextNodes_, getCachedContext, hasEmptyPath, hashCode, merge, mergeArrays, mergeRoot, mergeSingletons, toDOTString, toString, toStrings, toStrings
-
Field Details
-
Instance
Represents$in local context prediction, which means wildcard.*+x = *.
-
-
Method Details
-
isEmpty
public boolean isEmpty()Description copied from class:PredictionContextThis means only theInstance(wildcard? not sure) context is in set.- Overrides:
isEmptyin classPredictionContext
-
size
public int size()- Overrides:
sizein classSingletonPredictionContext
-
getParent
- Overrides:
getParentin classSingletonPredictionContext
-
getReturnState
public int getReturnState(int index) - Overrides:
getReturnStatein classSingletonPredictionContext
-
equals
- Overrides:
equalsin classSingletonPredictionContext
-
toString
- Overrides:
toStringin classSingletonPredictionContext
-