public class DFAState extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DFAState.PredPrediction
Map a predicate to a predicted alternative
|
| Modifier and Type | Field and Description |
|---|---|
ATNConfigSet |
configs |
DFAState[] |
edges
edges[symbol] points to target of symbol.
|
boolean |
isAcceptState |
int |
lexerActionIndex |
int |
lexerRuleIndex |
DFAState.PredPrediction[] |
predicates
During SLL parsing, this is a list of predicates associated with the
ATN configurations of the DFA state.
|
int |
prediction
if accept state, what ttype do we match or alt do we predict?
This is set to ATN.INVALID_ALT_NUMBER when predicates!=null or
isCtxSensitive.
|
boolean |
requiresFullContext
Indicates that this state was created during SLL prediction
that discovered a conflict between the configurations in the state.
|
int |
stateNumber |
| Constructor and Description |
|---|
DFAState() |
DFAState(ATNConfigSet configs) |
DFAState(int stateNumber) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Two DFAStates are equal if their ATN configuration sets are the
same.
|
Set<Integer> |
getAltSet()
Get the set of all alts mentioned by all ATN configurations in this
DFA state.
|
int |
hashCode()
A decent hash for a DFA state is the sum of the ATN state/alt pairs.
|
String |
toString() |
public int stateNumber
@NotNull public ATNConfigSet configs
@Nullable public DFAState[] edges
public boolean isAcceptState
public int prediction
public int lexerRuleIndex
public int lexerActionIndex
public boolean requiresFullContext
@Nullable public DFAState.PredPrediction[] predicates
public DFAState()
public DFAState(int stateNumber)
public DFAState(@NotNull ATNConfigSet configs)
public Set<Integer> getAltSet()
public int hashCode()
public boolean equals(Object o)
Copyright © 2012. All Rights Reserved.