public class ATNConfig extends Object
Modifier and Type | Field and Description |
---|---|
int |
alt
What alt (or lexer rule) is predicted by this configuration
|
PredictionContext |
context
The stack of invoking states leading to the rule/states associated
with this config.
|
int |
reachesIntoOuterContext
We cannot execute predicates dependent upon local context unless
we know for sure we are in the correct context.
|
SemanticContext |
semanticContext |
ATNState |
state
The ATN state associated with this configuration
|
Constructor and Description |
---|
ATNConfig(ATNConfig old) |
ATNConfig(ATNConfig c,
ATNState state) |
ATNConfig(ATNConfig c,
ATNState state,
PredictionContext context) |
ATNConfig(ATNConfig c,
ATNState state,
PredictionContext context,
SemanticContext semanticContext) |
ATNConfig(ATNConfig c,
ATNState state,
SemanticContext semanticContext) |
ATNConfig(ATNConfig c,
SemanticContext semanticContext) |
ATNConfig(ATNState state,
int alt,
PredictionContext context) |
ATNConfig(ATNState state,
int alt,
PredictionContext context,
SemanticContext semanticContext) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(ATNConfig other) |
boolean |
equals(Object o)
An ATN configuration is equal to another if both have
the same state, they predict the same alternative, and
syntactic/semantic contexts are the same.
|
int |
hashCode() |
String |
toString() |
String |
toString(Recognizer<?,?> recog,
boolean showAlt) |
public final int alt
@Nullable public PredictionContext context
public int reachesIntoOuterContext
@NotNull public final SemanticContext semanticContext
public ATNConfig(ATNConfig old)
public ATNConfig(@NotNull ATNState state, int alt, @Nullable PredictionContext context)
public ATNConfig(@NotNull ATNState state, int alt, @Nullable PredictionContext context, @NotNull SemanticContext semanticContext)
public ATNConfig(@NotNull ATNConfig c, @NotNull ATNState state, @NotNull SemanticContext semanticContext)
public ATNConfig(@NotNull ATNConfig c, @NotNull SemanticContext semanticContext)
public ATNConfig(@NotNull ATNConfig c, @NotNull ATNState state, @Nullable PredictionContext context)
public ATNConfig(@NotNull ATNConfig c, @NotNull ATNState state, @Nullable PredictionContext context, @NotNull SemanticContext semanticContext)
public boolean equals(Object o)
public boolean equals(ATNConfig other)
public String toString(@Nullable Recognizer<?,?> recog, boolean showAlt)
Copyright © 1992-2013 ANTLR. All Rights Reserved.