public class PredicateEvalInfo extends DecisionEventInfo
|Modifier and Type||Field and Description|
The result of evaluating the semantic context
The alternative number for the decision which is guarded by the semantic context
The semantic context which was evaluated.
|Constructor and Description|
Constructs a new instance of the
public final SemanticContext semctx
public final int predictedAlt
public final boolean evalResult
public PredicateEvalInfo(int decision, TokenStream input, int startIndex, int stopIndex, SemanticContext semctx, boolean evalResult, int predictedAlt, boolean fullCtx)
PredicateEvalInfoclass with the specified detailed predicate evaluation information.
decision- The decision number
input- The input token stream
startIndex- The start index for the current prediction
stopIndex- 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 evaluated
evalResult- The results of evaluating the semantic context
predictedAlt- The alternative number for the decision which is guarded by the semantic context
predictedAltfor more information.
trueif the semantic context was evaluated during LL prediction; otherwise,
falseif the semantic context was evaluated during SLL prediction
ParserATNSimulator.evalSemanticContext(SemanticContext, ParserRuleContext, int, boolean),
Copyright © 1992–2018 ANTLR. All rights reserved.