C# Класс 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.
Наследование: DecisionEventInfo
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
evalResult bool
predictedAlt int
semctx SemanticContext

Открытые методы

Метод Описание
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.

Описание методов

PredicateEvalInfo() публичный метод

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. ///
Результат Antlr4.Runtime

Описание свойств

evalResult публичное свойство

The result of evaluating the semantic context semctx .
public bool evalResult
Результат bool

predictedAlt публичное свойство

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
Результат int

semctx публичное свойство

The semantic context which was evaluated.
The semantic context which was evaluated.
public SemanticContext semctx
Результат SemanticContext