public class PredictionContextCache extends Object
PredictionContext objects. Its used for the shared
context cash associated with contexts in DFA states. This cache
can be used for both lexers and parsers.| Modifier and Type | Class and Description |
|---|---|
protected static class |
PredictionContextCache.IdentityCommutativePredictionContextOperands |
protected static class |
PredictionContextCache.PredictionContextAndInt |
| Modifier and Type | Field and Description |
|---|---|
static PredictionContextCache |
UNCACHED |
| Constructor and Description |
|---|
PredictionContextCache() |
| Modifier and Type | Method and Description |
|---|---|
PredictionContext |
getAsCached(PredictionContext context) |
PredictionContext |
getChild(PredictionContext context,
int invokingState) |
PredictionContext |
join(PredictionContext x,
PredictionContext y) |
public static final PredictionContextCache UNCACHED
public PredictionContext getAsCached(PredictionContext context)
public PredictionContext getChild(PredictionContext context, int invokingState)
public PredictionContext join(PredictionContext x, PredictionContext y)
Copyright © 1992–2024 Daniel Sun. All rights reserved.