|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.antlr.analysis.NFAConfiguration
public class NFAConfiguration
An NFA state, predicted alt, and syntactic/semantic context. The syntactic context is a pointer into the rule invocation chain used to arrive at the state. The semantic context is the unordered set semantic predicates encountered before reaching an NFA state.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
NFAConfiguration(int state,
int alt,
NFAContext context,
SemanticContext semanticContext)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.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()
|
java.lang.String |
toString()
|
java.lang.String |
toString(boolean showAlt)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int state
public int alt
public NFAContext context
public SemanticContext semanticContext
protected boolean resolved
protected boolean resolveWithPredicate
protected int numberEpsilonTransitionsEmanatingFromState
protected boolean singleAtomTransitionEmanating
| Constructor Detail |
|---|
public NFAConfiguration(int state,
int alt,
NFAContext context,
SemanticContext semanticContext)
| Method Detail |
|---|
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(boolean showAlt)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||