public class EmptyPredictionContext extends SingletonPredictionContext
| Modifier and Type | Field and Description |
|---|---|
static EmptyPredictionContext |
Instance
Represents
$ in local context prediction, which means wildcard. |
parent, returnStatecachedHashCode, EMPTY_RETURN_STATE, id| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
PredictionContext |
getParent(int index) |
int |
getReturnState(int index) |
boolean |
isEmpty()
This means only the
EmptyPredictionContext.Instance (wildcard? not sure) context is in set. |
int |
size() |
String |
toString() |
createcalculateEmptyHashCode, calculateHashCode, calculateHashCode, combineCommonParents, fromRuleContext, getAllContextNodes_, getAllContextNodes, getCachedContext, hasEmptyPath, hashCode, merge, mergeArrays, mergeRoot, mergeSingletons, toDOTString, toString, toStrings, toStringspublic static final EmptyPredictionContext Instance
$ in local context prediction, which means wildcard.
*+x = *.public boolean isEmpty()
PredictionContextEmptyPredictionContext.Instance (wildcard? not sure) context is in set.isEmpty in class PredictionContextpublic int size()
size in class SingletonPredictionContextpublic PredictionContext getParent(int index)
getParent in class SingletonPredictionContextpublic int getReturnState(int index)
getReturnState in class SingletonPredictionContextpublic boolean equals(Object o)
equals in class SingletonPredictionContextpublic String toString()
toString in class SingletonPredictionContext