Package org.antlr.v4.runtime.atn
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 org.antlr.v4.runtime.atn.SingletonPredictionContext
parent, returnState
Fields inherited from class org.antlr.v4.runtime.atn.PredictionContext
cachedHashCode, EMPTY, EMPTY_RETURN_STATE, globalNodeCount, id
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getParent
(int index) int
getReturnState
(int index) boolean
isEmpty()
This means only thePredictionContext.EMPTY
(wildcard? not sure) context is in set.int
size()
toString()
Methods inherited from class org.antlr.v4.runtime.atn.SingletonPredictionContext
create
Methods inherited from class org.antlr.v4.runtime.atn.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:PredictionContext
This means only thePredictionContext.EMPTY
(wildcard? not sure) context is in set.- Overrides:
isEmpty
in classPredictionContext
-
size
public int size()- Overrides:
size
in classSingletonPredictionContext
-
getParent
- Overrides:
getParent
in classSingletonPredictionContext
-
getReturnState
public int getReturnState(int index) - Overrides:
getReturnState
in classSingletonPredictionContext
-
equals
- Overrides:
equals
in classSingletonPredictionContext
-
toString
- Overrides:
toString
in classSingletonPredictionContext
-