public final class EmptyPredictionContext extends PredictionContext
PredictionContext.IdentityEqualityComparator, PredictionContext.IdentityHashMap| Modifier and Type | Field and Description |
|---|---|
static EmptyPredictionContext |
FULL_CONTEXT |
static EmptyPredictionContext |
LOCAL_CONTEXT |
EMPTY_FULL, EMPTY_FULL_STATE_KEY, EMPTY_LOCAL, EMPTY_LOCAL_STATE_KEY| Modifier and Type | Method and Description |
|---|---|
protected PredictionContext |
addEmptyContext() |
PredictionContext |
appendContext(int returnContext,
PredictionContextCache contextCache) |
PredictionContext |
appendContext(PredictionContext suffix,
PredictionContextCache contextCache) |
boolean |
equals(Object o) |
int |
findReturnState(int returnState) |
PredictionContext |
getParent(int index) |
int |
getReturnState(int index) |
boolean |
hasEmpty() |
boolean |
isEmpty() |
boolean |
isFullContext() |
protected PredictionContext |
removeEmptyContext() |
int |
size() |
String[] |
toStrings(Recognizer<?,?> recognizer,
int currentState) |
String[] |
toStrings(Recognizer<?,?> recognizer,
PredictionContext stop,
int currentState) |
calculateEmptyHashCode, calculateHashCode, calculateHashCode, fromRuleContext, fromRuleContext, getCachedContext, getChild, hashCode, isEmptyLocal, joinpublic static final EmptyPredictionContext LOCAL_CONTEXT
public static final EmptyPredictionContext FULL_CONTEXT
public boolean isFullContext()
protected PredictionContext addEmptyContext()
addEmptyContext in class PredictionContextprotected PredictionContext removeEmptyContext()
removeEmptyContext in class PredictionContextpublic PredictionContext getParent(int index)
getParent in class PredictionContextpublic int getReturnState(int index)
getReturnState in class PredictionContextpublic int findReturnState(int returnState)
findReturnState in class PredictionContextpublic int size()
size in class PredictionContextpublic PredictionContext appendContext(int returnContext, PredictionContextCache contextCache)
appendContext in class PredictionContextpublic PredictionContext appendContext(PredictionContext suffix, PredictionContextCache contextCache)
appendContext in class PredictionContextpublic boolean isEmpty()
isEmpty in class PredictionContextpublic boolean hasEmpty()
hasEmpty in class PredictionContextpublic boolean equals(Object o)
equals in class PredictionContextpublic String[] toStrings(Recognizer<?,?> recognizer, int currentState)
toStrings in class PredictionContextpublic String[] toStrings(Recognizer<?,?> recognizer, PredictionContext stop, int currentState)
toStrings in class PredictionContextCopyright © 1992–2024 Daniel Sun. All rights reserved.