public class DFA extends Object
Modifier and Type | Field and Description |
---|---|
DecisionState |
atnStartState
From which ATN state did we create this DFA?
|
int |
decision |
DFAState |
s0 |
Map<DFAState,DFAState> |
states
A set of all DFA states.
|
Constructor and Description |
---|
DFA(DecisionState atnStartState)
Set of configs for a DFA state with at least one conflict? Mainly used as "return value"
from predictATN() for retry.
|
DFA(DecisionState atnStartState,
int decision) |
Modifier and Type | Method and Description |
---|---|
List<Set<ATNState>> |
getATNStatesAlongPath(ParserATNSimulator atn,
List<DFAState> dfaStates,
TokenStream input,
int start,
int stop)
Find the path in DFA from s0 to s, returning list of states encountered (inclusively)
|
String |
toLexerString() |
String |
toString() |
String |
toString(String[] tokenNames) |
@NotNull public final Map<DFAState,DFAState> states
public final int decision
@NotNull public final DecisionState atnStartState
public DFA(@NotNull DecisionState atnStartState)
public DFA(@NotNull DecisionState atnStartState, int decision)
public List<Set<ATNState>> getATNStatesAlongPath(ParserATNSimulator atn, List<DFAState> dfaStates, TokenStream input, int start, int stop)
public String toLexerString()
Copyright © 2012. All Rights Reserved.