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
FieldsModifier and TypeFieldDescriptionstatic final EmptyPredictionContext
Represents$
in local context prediction, which means wildcard.Fields inherited from class org.antlr.v4.runtime.atn.SingletonPredictionContext
parent, returnState
Fields inherited from class org.antlr.v4.runtime.atn.PredictionContext
cachedHashCode, EMPTY_RETURN_STATE, id
-
Constructor Summary
Constructors -
Method Summary
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
-
Field Details
-
Instance
Represents$
in local context prediction, which means wildcard.*+x = *
.
-
-
Constructor Details
-
EmptyPredictionContext
private EmptyPredictionContext()
-
-
Method Details
-
isEmpty
public boolean isEmpty()Description copied from class:PredictionContext
This means only theInstance
(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
-