Class EmptyPredictionContext
java.lang.Object
org.antlr.v4.runtime.atn.PredictionContext
org.antlr.v4.runtime.atn.SingletonPredictionContext
org.antlr.v4.runtime.atn.EmptyPredictionContext
-
Field Summary
Fields inherited from class SingletonPredictionContext
parent, returnStateFields inherited from class PredictionContext
cachedHashCode, EMPTY, EMPTY_RETURN_STATE, globalNodeCount, id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetParent(int index) intgetReturnState(int index) booleanisEmpty()This means only thePredictionContext.EMPTY(wildcard? not sure) context is in set.intsize()toString()Methods inherited from class SingletonPredictionContext
createMethods inherited from class PredictionContext
calculateEmptyHashCode, calculateHashCode, calculateHashCode, combineCommonParents, fromRuleContext, getAllContextNodes, getAllContextNodes_, getCachedContext, hasEmptyPath, hashCode, merge, mergeArrays, mergeRoot, mergeSingletons, toDOTString, toString, toStrings, toStrings
-
Constructor Details
-
EmptyPredictionContext
public EmptyPredictionContext()
-
-
Method Details
-
isEmpty
public boolean isEmpty()Description copied from class:PredictionContextThis means only thePredictionContext.EMPTY(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
-