EmptyPredictionContext
public class SingletonPredictionContext extends PredictionContext
Modifier and Type | Field | Description |
---|---|---|
PredictionContext |
parent |
|
int |
returnState |
cachedHashCode, EMPTY, EMPTY_RETURN_STATE, globalNodeCount, id
Modifier and Type | Method | Description |
---|---|---|
static SingletonPredictionContext |
create(PredictionContext parent,
int returnState) |
|
boolean |
equals(Object o) |
|
PredictionContext |
getParent(int index) |
|
int |
getReturnState(int index) |
|
int |
size() |
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
calculateEmptyHashCode, calculateHashCode, calculateHashCode, combineCommonParents, fromRuleContext, getAllContextNodes, getAllContextNodes_, getCachedContext, hasEmptyPath, hashCode, isEmpty, merge, mergeArrays, mergeRoot, mergeSingletons, toDOTString, toString, toStrings, toStrings
public final PredictionContext parent
public final int returnState
public static SingletonPredictionContext create(PredictionContext parent, int returnState)
public int size()
size
in class PredictionContext
public PredictionContext getParent(int index)
getParent
in class PredictionContext
public int getReturnState(int index)
getReturnState
in class PredictionContext
public boolean equals(Object o)
equals
in class PredictionContext
Copyright © 1992–2019 ANTLR. All rights reserved.