LookaheadEventInfo class

This class represents profiling event information for tracking the lookahead depth required in order to make a prediction.

@since 4.3

Inheritance

Constructors

LookaheadEventInfo(int decision, ATNConfigSet? configs, int predictedAlt, TokenStream input, int startIndex, int stopIndex, bool fullCtx)
Constructs a new instance of the LookaheadEventInfo class with the specified detailed lookahead information.

Properties

configs ATNConfigSet?
The configuration set containing additional information relevant to the prediction state when the current event occurred, or null if no additional information is relevant or available.
finalinherited
decision int
The invoked decision number which this event is related to.
finalinherited
fullCtx bool
true if the current event occurred during LL prediction; otherwise, false if the input occurred during SLL prediction.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
input TokenStream
The input token stream which is being parsed.
finalinherited
predictedAlt int
The alternative chosen by adaptivePredict(), not necessarily the outermost alt shown for a rule; left-recursive rules have user-level alts that differ from the rewritten rule with a (...) block and a (..)* loop.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startIndex int
The token index in the input stream at which the current prediction was originally invoked.
finalinherited
stopIndex int
The token index in the input stream at which the current event occurred.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited