public class NFAConfiguration extends Object
Modifier and Type | Field | Description |
---|---|---|
int |
alt |
What alt is predicted by this configuration
|
NFAContext |
context |
What is the stack of rule invocations that got us to state?
|
protected int |
numberEpsilonTransitionsEmanatingFromState |
Lots of NFA states have only epsilon edges (1 or 2).
|
protected boolean |
resolved |
Indicate that this configuration has been resolved and no further
DFA processing should occur with it.
|
protected boolean |
resolveWithPredicate |
This bit is used to indicate a semantic predicate will be
used to resolve the conflict.
|
SemanticContext |
semanticContext |
The set of semantic predicates associated with this NFA
configuration.
|
protected boolean |
singleAtomTransitionEmanating |
Indicates that the NFA state associated with this configuration
has exactly one transition and it's an atom (not epsilon etc...).
|
int |
state |
The NFA state associated with this configuration
|
Constructor | Description |
---|---|
NFAConfiguration(int state,
int alt,
NFAContext context,
SemanticContext semanticContext) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object o) |
An NFA configuration is equal to another if both have
the same state, the predict the same alternative, and
syntactic/semantic contexts are the same.
|
int |
hashCode() |
|
String |
toString() |
|
String |
toString(boolean showAlt) |
public int state
public int alt
public NFAContext context
public SemanticContext semanticContext
protected boolean resolved
protected boolean resolveWithPredicate
protected int numberEpsilonTransitionsEmanatingFromState
protected boolean singleAtomTransitionEmanating
public NFAConfiguration(int state, int alt, NFAContext context, SemanticContext semanticContext)
public boolean equals(Object o)
public String toString(boolean showAlt)
Copyright © 1992–2019 ANTLR. All rights reserved.