public final class EmptyPredictionContext extends PredictionContext
PredictionContext.IdentityEqualityComparator, PredictionContext.IdentityHashMap| 限定符和类型 | 字段和说明 |
|---|---|
static EmptyPredictionContext |
FULL_CONTEXT |
static EmptyPredictionContext |
LOCAL_CONTEXT |
EMPTY_FULL, EMPTY_FULL_STATE_KEY, EMPTY_LOCAL, EMPTY_LOCAL_STATE_KEY| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 PredictionContextprotected PredictionContext removeEmptyContext()
removeEmptyContext 在类中 PredictionContextpublic PredictionContext getParent(int index)
getParent 在类中 PredictionContextpublic int getReturnState(int index)
getReturnState 在类中 PredictionContextpublic int findReturnState(int returnState)
findReturnState 在类中 PredictionContextpublic int size()
size 在类中 PredictionContextpublic PredictionContext appendContext(int returnContext, PredictionContextCache contextCache)
appendContext 在类中 PredictionContextpublic PredictionContext appendContext(PredictionContext suffix, PredictionContextCache contextCache)
appendContext 在类中 PredictionContextpublic boolean isEmpty()
isEmpty 在类中 PredictionContextpublic boolean hasEmpty()
hasEmpty 在类中 PredictionContextpublic boolean equals(Object o)
equals 在类中 PredictionContextpublic String[] toStrings(Recognizer<?,?> recognizer, int currentState)
toStrings 在类中 PredictionContextpublic String[] toStrings(Recognizer<?,?> recognizer, PredictionContext stop, int currentState)
toStrings 在类中 PredictionContextCopyright © 1992–2022 Daniel Sun. All rights reserved.