PredictionContext object
not a parse tree node and so it does not have information about the extent
(start...stop) of the various subtrees. Examining the stack tops of all
configurations provide the return states for the rule invocations.
From there you can get the enclosing rule.
| Modifier and Type | Field and Description |
|---|---|
| public final ATNConfigSet | configs
The configuration set containing additional information relevant to the
prediction state when the current event occurred, or |
| public final int | decision
The invoked decision number which this event is related to. |
| public final boolean | fullCtx
|
| public final TokenStream | input
The input token stream which is being parsed. |
| public final int | startIndex
The token index in the input stream at which the current prediction was originally invoked. |
| public final int | stopIndex
The token index in the input stream at which the current event occurred. |
| Access | Constructor and Description |
|---|---|
| public | DecisionEventInfo(int decision, ATNConfigSet configs, TokenStream input, int startIndex, int stopIndex, boolean fullCtx)
|
| configs | back to summary |
|---|---|
| public final ATNConfigSet configs The configuration set containing additional information relevant to the
prediction state when the current event occurred, or | |
| decision | back to summary |
|---|---|
| public final int decision The invoked decision number which this event is related to.
| |
| fullCtx | back to summary |
|---|---|
| public final boolean fullCtx
| |
| input | back to summary |
|---|---|
| public final TokenStream input The input token stream which is being parsed. | |
| startIndex | back to summary |
|---|---|
| public final int startIndex The token index in the input stream at which the current prediction was originally invoked. | |
| stopIndex | back to summary |
|---|---|
| public final int stopIndex The token index in the input stream at which the current event occurred. | |
| DecisionEventInfo | back to summary |
|---|---|
| public DecisionEventInfo(int decision, ATNConfigSet configs, TokenStream input, int startIndex, int stopIndex, boolean fullCtx) | |