| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final int | cachedHashCode
Stores the computed hash code of this |
| public static final PredictionContext | |
| public static final int | |
| public static final PredictionContext | |
| public static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract PredictionContext | |
| private static PredictionContext | |
| public PredictionContext | |
| public abstract PredictionContext | |
| protected static int | |
| protected static int | |
| protected static int | |
| public abstract boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public abstract int | |
| public static PredictionContext | |
| public static PredictionContext | |
| public static PredictionContext | getCachedContext(PredictionContext context, ConcurrentMap<PredictionContext, PredictionContext> contextCache, PredictionContext.
|
| public PredictionContext | |
| public abstract PredictionContext | |
| public abstract int | |
| public abstract boolean | |
| public final int | |
| public abstract boolean | |
| public static boolean | |
| public static PredictionContext | |
| pack-priv static PredictionContext | join(final PredictionContext context0, final PredictionContext context1, PredictionContextCache contextCache)
|
| protected abstract PredictionContext | |
| private static PredictionContext | |
| public abstract int | |
| public String[] | |
| public String[] |
| cachedHashCode | back to summary |
|---|---|
| private final int cachedHashCode Stores the computed hash code of this
private int referenceHashCode() {
int hash =
| |
| EMPTY_FULL | back to summary |
|---|---|
| public static final PredictionContext EMPTY_FULL
| |
| EMPTY_FULL_STATE_KEY | back to summary |
|---|---|
| public static final int EMPTY_FULL_STATE_KEY | |
| EMPTY_LOCAL | back to summary |
|---|---|
| public static final PredictionContext EMPTY_LOCAL
| |
| EMPTY_LOCAL_STATE_KEY | back to summary |
|---|---|
| public static final int EMPTY_LOCAL_STATE_KEY | |
| INITIAL_HASH | back to summary |
|---|---|
| private static final int INITIAL_HASH | |
| PredictionContext | back to summary |
|---|---|
| protected PredictionContext(int cachedHashCode) | |
| addEmptyContext | back to summary |
|---|---|
| protected abstract PredictionContext addEmptyContext() | |
| addEmptyContext | back to summary |
|---|---|
| private static PredictionContext addEmptyContext(PredictionContext context) | |
| appendContext | back to summary |
|---|---|
| public PredictionContext appendContext(int returnContext, PredictionContextCache contextCache) | |
| appendContext | back to summary |
|---|---|
| public abstract PredictionContext appendContext(PredictionContext suffix, PredictionContextCache contextCache) | |
| calculateEmptyHashCode | back to summary |
|---|---|
| protected static int calculateEmptyHashCode() | |
| calculateHashCode | back to summary |
|---|---|
| protected static int calculateHashCode(PredictionContext parent, int returnState) | |
| calculateHashCode | back to summary |
|---|---|
| protected static int calculateHashCode(PredictionContext[] parents, int[] returnStates) | |
| equals | back to summary |
|---|---|
| public abstract boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| findReturnState | back to summary |
|---|---|
| public abstract int findReturnState(int returnState) | |
| fromRuleContext | back to summary |
|---|---|
| public static PredictionContext fromRuleContext(ATN atn, RuleContext outerContext) | |
| fromRuleContext | back to summary |
|---|---|
| public static PredictionContext fromRuleContext(ATN atn, RuleContext outerContext, boolean fullContext) | |
| getCachedContext | back to summary |
|---|---|
| public static PredictionContext getCachedContext(PredictionContext context, ConcurrentMap<PredictionContext, PredictionContext> contextCache, PredictionContext. | |
| getChild | back to summary |
|---|---|
| public PredictionContext getChild(int returnState) | |
| getParent | back to summary |
|---|---|
public abstract PredictionContext getParent(int index)
| |
| getReturnState | back to summary |
|---|---|
| public abstract int getReturnState(int index) | |
| hasEmpty | back to summary |
|---|---|
| public abstract boolean hasEmpty() | |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isEmpty | back to summary |
|---|---|
| public abstract boolean isEmpty() | |
| isEmptyLocal | back to summary |
|---|---|
| public static boolean isEmptyLocal(PredictionContext context) | |
| join | back to summary |
|---|---|
| public static PredictionContext join(PredictionContext context0, PredictionContext context1) | |
| join | back to summary |
|---|---|
| pack-priv static PredictionContext join(final PredictionContext context0, final PredictionContext context1, PredictionContextCache contextCache) | |
| removeEmptyContext | back to summary |
|---|---|
| protected abstract PredictionContext removeEmptyContext() | |
| removeEmptyContext | back to summary |
|---|---|
| private static PredictionContext removeEmptyContext(PredictionContext context) | |
| size | back to summary |
|---|---|
| public abstract int size() | |
| toStrings | back to summary |
|---|---|
| public String[] toStrings(Recognizer<?, ?> recognizer, int currentState) | |
| toStrings | back to summary |
|---|---|
| public String[] toStrings(Recognizer<?, ?> recognizer, PredictionContext stop, int currentState) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final PredictionContext. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(PredictionContext
The first object to compare. a, PredictionContext The second object to compare. b)Implements org. |
| public int | hashCode(PredictionContext
The object. obj)Implements org. |
| INSTANCE | back to summary |
|---|---|
| public static final PredictionContext. | |
| IdentityEqualityComparator | back to summary |
|---|---|
| private IdentityEqualityComparator() | |
| equals | back to summary |
|---|---|
| public boolean equals(PredictionContext a, PredictionContext b) Implements org. Doc from org. This method tests if two objects are equal.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode(PredictionContext obj) Implements org. Doc from org. This method returns a hash code for the specified object.
| |
| Access | Constructor and Description |
|---|---|
| public |
| IdentityHashMap | back to summary |
|---|---|
| public IdentityHashMap() | |