public class ArrayPredictionContext extends PredictionContext
PredictionContext.IdentityEqualityComparator, PredictionContext.IdentityHashMap| Modifier and Type | Field and Description |
|---|---|
PredictionContext[] |
parents |
int[] |
returnStates |
EMPTY_FULL, EMPTY_FULL_STATE_KEY, EMPTY_LOCAL, EMPTY_LOCAL_STATE_KEY| Modifier and Type | Method and Description |
|---|---|
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[] parents
@NotNull public final int[] returnStates
public 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 boolean isEmpty()
isEmpty in class PredictionContextpublic boolean hasEmpty()
hasEmpty in class PredictionContextprotected PredictionContext addEmptyContext()
addEmptyContext in class PredictionContextprotected PredictionContext removeEmptyContext()
removeEmptyContext in class PredictionContextpublic PredictionContext appendContext(PredictionContext suffix, PredictionContextCache contextCache)
appendContext in class PredictionContextpublic boolean equals(Object o)
equals in class PredictionContextCopyright © 1992–2024 Daniel Sun. All rights reserved.