public class PredicateEvalInfo extends DecisionEventInfo
| Modifier and Type | Field and Description |
|---|---|
boolean |
evalResult
The result of evaluating the semantic context
semctx. |
int |
predictedAlt
The alternative number for the decision which is guarded by the semantic
context
semctx. |
SemanticContext |
semctx
The semantic context which was evaluated.
|
decision, fullCtx, input, startIndex, state, stopIndex| Constructor and Description |
|---|
PredicateEvalInfo(SimulatorState state,
int decision,
TokenStream input,
int startIndex,
int stopIndex,
SemanticContext semctx,
boolean evalResult,
int predictedAlt)
Constructs a new instance of the
PredicateEvalInfo class with the
specified detailed predicate evaluation information. |
public final SemanticContext semctx
public final int predictedAlt
semctx. Note that other ATN
configurations may predict the same alternative which are guarded by
other semantic contexts and/or SemanticContext.NONE.public final boolean evalResult
semctx.public PredicateEvalInfo(@NotNull
SimulatorState state,
int decision,
@NotNull
TokenStream input,
int startIndex,
int stopIndex,
@NotNull
SemanticContext semctx,
boolean evalResult,
int predictedAlt)
PredicateEvalInfo class with the
specified detailed predicate evaluation information.state - The simulator statedecision - The decision numberinput - The input token streamstartIndex - The start index for the current predictionstopIndex - The index at which the predicate evaluation was
triggered. Note that the input stream may be reset to other positions for
the actual evaluation of individual predicates.semctx - The semantic context which was evaluatedevalResult - The results of evaluating the semantic contextpredictedAlt - The alternative number for the decision which is
guarded by the semantic context semctx. See predictedAlt
for more information.ParserATNSimulator.evalSemanticContext(SemanticContext, ParserRuleContext, int),
SemanticContext.eval(Recognizer, RuleContext)Copyright © 1992–2024 Daniel Sun. All rights reserved.