C# Class Antlr4.Runtime.Atn.PredicateEvalInfo

This class represents profiling event information for semantic predicate evaluations which occur during prediction.
This class represents profiling event information for semantic predicate evaluations which occur during prediction.
Inheritance: DecisionEventInfo
Show file Open project: antlr/antlr4

Public Properties

Property Type Description
evalResult bool
predictedAlt int
semctx SemanticContext

Public Methods

Method Description
PredicateEvalInfo ( SimulatorState state, int decision, ITokenStream input, int startIndex, int stopIndex, SemanticContext semctx, bool evalResult, int predictedAlt ) : Antlr4.Runtime

Constructs a new instance of the PredicateEvalInfo class with the specified detailed predicate evaluation information.

Method Details

PredicateEvalInfo() public method

Constructs a new instance of the PredicateEvalInfo class with the specified detailed predicate evaluation information.
public PredicateEvalInfo ( SimulatorState state, int decision, ITokenStream input, int startIndex, int stopIndex, SemanticContext semctx, bool evalResult, int predictedAlt ) : Antlr4.Runtime
state SimulatorState The simulator state
decision int The decision number
input ITokenStream The input token stream
startIndex int The start index for the current prediction
stopIndex int /// 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 SemanticContext The semantic context which was evaluated
evalResult bool The results of evaluating the semantic context
predictedAlt int /// The alternative number for the decision which is /// guarded by the semantic context /// /// . See /// /// for more information. ///
return Antlr4.Runtime

Property Details

evalResult public property

The result of evaluating the semantic context semctx .
public bool evalResult
return bool

predictedAlt public property

The alternative number for the decision which is guarded by the semantic context semctx . Note that other ATN configurations may predict the same alternative which are guarded by other semantic contexts and/or SemanticContext.NONE .
public int predictedAlt
return int

semctx public property

The semantic context which was evaluated.
The semantic context which was evaluated.
public SemanticContext semctx
return SemanticContext