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 UUID |
SERIALIZED_UUID |
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) |
PredictionContextCache |
getSharedContextCache() |
abstract void |
reset() |
static ATNState |
stateFactory(int type,
int ruleIndex) |
static int |
toInt(char c) |
static int |
toInt32(char[] data,
int offset) |
static long |
toLong(char[] data,
int offset) |
static UUID |
toUUID(char[] data,
int offset) |
public static final int SERIALIZED_VERSION
public static final UUID SERIALIZED_UUID
@NotNull public static final DFAState ERROR
protected final PredictionContextCache sharedContextCache
public ATNSimulator(@NotNull ATN atn, @NotNull PredictionContextCache sharedContextCache)
public abstract void reset()
public PredictionContextCache getSharedContextCache()
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)
public static int toInt32(char[] data, int offset)
public static long toLong(char[] data, int offset)
public static UUID toUUID(char[] data, int offset)
@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.