public abstract class ATNSimulator extends Object
Modifier and Type | Field and Description |
---|---|
ATN |
atn |
static DFAState |
ERROR
Must distinguish between missing edge and edge we know leads nowhere
|
static int |
SERIALIZED_VERSION |
protected PredictionContextCache |
sharedContextCache
The context cache maps all PredictionContext objects that are equals()
to a single cached copy.
|
Constructor and Description |
---|
ATNSimulator(ATN atn,
PredictionContextCache sharedContextCache) |
Modifier and Type | Method and Description |
---|---|
static void |
checkCondition(boolean condition) |
static void |
checkCondition(boolean condition,
String message) |
static ATN |
deserialize(char[] data) |
static Transition |
edgeFactory(ATN atn,
int type,
int src,
int trg,
int arg1,
int arg2,
int arg3,
List<IntervalSet> sets) |
PredictionContext |
getCachedContext(PredictionContext context) |
abstract void |
reset() |
static ATNState |
stateFactory(int type,
int ruleIndex) |
static int |
toInt(char c) |
public static final int SERIALIZED_VERSION
@NotNull public static final DFAState ERROR
protected final PredictionContextCache sharedContextCache
public ATNSimulator(@NotNull ATN atn, @NotNull PredictionContextCache sharedContextCache)
public abstract void reset()
public PredictionContext getCachedContext(PredictionContext context)
public static void checkCondition(boolean condition)
public static void checkCondition(boolean condition, String message)
public static int toInt(char c)
@NotNull public static Transition edgeFactory(@NotNull ATN atn, int type, int src, int trg, int arg1, int arg2, int arg3, List<IntervalSet> sets)
public static ATNState stateFactory(int type, int ruleIndex)
Copyright © 1992-2013 ANTLR. All Rights Reserved.