public class EmptyPredictionContext extends SingletonPredictionContext
cachedHashCode, EMPTY, EMPTY_RETURN_STATE, globalNodeCount, id
parent, returnState
Constructor | Description |
---|---|
EmptyPredictionContext() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object o) |
|
PredictionContext |
getParent(int index) |
|
int |
getReturnState(int index) |
|
boolean |
isEmpty() |
This means only the
PredictionContext.EMPTY (wildcard? not sure) context is in set. |
int |
size() |
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
calculateEmptyHashCode, calculateHashCode, calculateHashCode, combineCommonParents, fromRuleContext, getAllContextNodes, getAllContextNodes_, getCachedContext, hasEmptyPath, hashCode, merge, mergeArrays, mergeRoot, mergeSingletons, toDOTString, toString, toStrings, toStrings
create
public boolean isEmpty()
PredictionContext
PredictionContext.EMPTY
(wildcard? not sure) context is in set.isEmpty
in class PredictionContext
public int size()
size
in class SingletonPredictionContext
public PredictionContext getParent(int index)
getParent
in class SingletonPredictionContext
public int getReturnState(int index)
getReturnState
in class SingletonPredictionContext
public boolean equals(Object o)
equals
in class SingletonPredictionContext
public String toString()
toString
in class SingletonPredictionContext
Copyright © 1992–2018 ANTLR. All rights reserved.