| Modifier and Type | Field and Description |
|---|---|
| public final int | alt
What alt (or lexer rule) is predicted by this configuration |
| public PredictionContext | context
The stack of invoking states leading to the rule/states associated with this config. |
| public int | reachesIntoOuterContext
We cannot execute predicates dependent upon local context unless we know for sure we are in the correct context. |
| public final SemanticContext | |
| public final ATNState | state
The ATN state associated with this configuration |
| private static final int | SUPPRESS_PRECEDENCE_FILTER
This field stores the bit mask for implementing the
|
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public boolean | |
| public final int | getOuterContextDepth()
This method gets the value of the |
| public int | |
| public final boolean | |
| public final void | |
| public String | |
| public String |
| alt | back to summary |
|---|---|
| public final int alt What alt (or lexer rule) is predicted by this configuration | |
| context | back to summary |
|---|---|
| public PredictionContext context The stack of invoking states leading to the rule/states associated with this config. We track only those contexts pushed during execution of the ATN simulator. | |
| reachesIntoOuterContext | back to summary |
|---|---|
| public int reachesIntoOuterContext We cannot execute predicates dependent upon local context unless we know for sure we are in the correct context. Because there is no way to do this efficiently, we simply cannot evaluate dependent predicates unless we are in the rule that initially invokes the ATN simulator. closure() tracks the depth of how far we dip into the outer context: depth > 0. Note that it may not be totally accurate depth since I don't ever decrement. TODO: make it a boolean then
For memory efficiency, the | |
| semanticContext | back to summary |
|---|---|
| public final SemanticContext semanticContext | |
| state | back to summary |
|---|---|
| public final ATNState state The ATN state associated with this configuration | |
| SUPPRESS_PRECEDENCE_FILTER | back to summary |
|---|---|
| private static final int SUPPRESS_PRECEDENCE_FILTER This field stores the bit mask for implementing the
| |
| ATNConfig | back to summary |
|---|---|
| public ATNConfig(ATNConfig old) | |
| ATNConfig | back to summary |
|---|---|
| public ATNConfig(ATNState state, int alt, PredictionContext context) | |
| ATNConfig | back to summary |
|---|---|
| public ATNConfig(ATNState state, int alt, PredictionContext context, SemanticContext semanticContext) | |
| ATNConfig | back to summary |
|---|---|
| public ATNConfig(ATNConfig c, ATNState state) | |
| ATNConfig | back to summary |
|---|---|
| public ATNConfig(ATNConfig c, ATNState state, SemanticContext semanticContext) | |
| ATNConfig | back to summary |
|---|---|
| public ATNConfig(ATNConfig c, SemanticContext semanticContext) | |
| ATNConfig | back to summary |
|---|---|
| public ATNConfig(ATNConfig c, ATNState state, PredictionContext context) | |
| ATNConfig | back to summary |
|---|---|
| public ATNConfig(ATNConfig c, ATNState state, PredictionContext context, SemanticContext semanticContext) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. 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.
| |
| equals | back to summary |
|---|---|
| public boolean equals(ATNConfig other) | |
| getOuterContextDepth | back to summary |
|---|---|
| public final int getOuterContextDepth() This method gets the value of the | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isPrecedenceFilterSuppressed | back to summary |
|---|---|
| public final boolean isPrecedenceFilterSuppressed() | |
| setPrecedenceFilterSuppressed | back to summary |
|---|---|
| public final void setPrecedenceFilterSuppressed(boolean value) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| toString | back to summary |
|---|---|
| public String toString(Recognizer<?, ?> recog, boolean showAlt) | |