PredicateEvalInfo

This class represents profiling event information for semantic predicate evaluations which occur during prediction.

@see ParserATNSimulator#evalSemanticContext

@since 4.3

Constructors

this
this(int decision, TokenStream input, int startIndex, int stopIndex, SemanticContext semctx, bool evalResult, int predictedAlt, bool fullCtx)

Constructs a new instance of the {@link PredicateEvalInfo} class with the specified detailed predicate evaluation information.

Members

Variables

evalResult
bool evalResult;

The result of evaluating the semantic context {@link #semctx}.

predictedAlt
int predictedAlt;

The alternative number for the decision which is guarded by the semantic context {@link #semctx}. Note that other ATN configurations may predict the same alternative which are guarded by other semantic contexts and/or {@link SemanticContext#NONE}.

semctx
SemanticContext semctx;

The semantic context which was evaluated.

Inherited Members

From DecisionEventInfo

decision
int decision;

The invoked decision number which this event is related to.

configs
ATNConfigSet configs;

The configuration set containing additional information relevant to the prediction state when the current event occurred, or {@code null} if no additional information is relevant or available.

input
TokenStream input;

The input token stream which is being parsed.

startIndex
int startIndex;
Undocumented in source.
stopIndex
int stopIndex;
Undocumented in source.
fullCtx
bool fullCtx;

{@code true} if the current event occurred during LL prediction; otherwise, {@code false} if the input occurred during SLL prediction.

Meta