public class SingletonPredictionContext extends PredictionContext
PredictionContext.IdentityEqualityComparator, PredictionContext.IdentityHashMap| 限定符和类型 | 字段和说明 |
|---|---|
PredictionContext |
parent |
int |
returnState |
EMPTY_FULL, EMPTY_FULL_STATE_KEY, EMPTY_LOCAL, EMPTY_LOCAL_STATE_KEY| 限定符和类型 | 方法和说明 |
|---|---|
protected PredictionContext |
addEmptyContext() |
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() |
protected PredictionContext |
removeEmptyContext() |
int |
size() |
appendContext, calculateEmptyHashCode, calculateHashCode, calculateHashCode, fromRuleContext, fromRuleContext, getCachedContext, getChild, hashCode, isEmptyLocal, join, toStrings, toStrings@NotNull public final PredictionContext parent
public final int returnState
public PredictionContext getParent(int index)
getParent 在类中 PredictionContextpublic int getReturnState(int index)
getReturnState 在类中 PredictionContextpublic int findReturnState(int returnState)
findReturnState 在类中 PredictionContextpublic int size()
size 在类中 PredictionContextpublic boolean isEmpty()
isEmpty 在类中 PredictionContextpublic boolean hasEmpty()
hasEmpty 在类中 PredictionContextpublic PredictionContext appendContext(PredictionContext suffix, PredictionContextCache contextCache)
appendContext 在类中 PredictionContextprotected PredictionContext addEmptyContext()
addEmptyContext 在类中 PredictionContextprotected PredictionContext removeEmptyContext()
removeEmptyContext 在类中 PredictionContextpublic boolean equals(Object o)
equals 在类中 PredictionContextCopyright © 1992–2022 Daniel Sun. All rights reserved.