ContextSensitivityInfo class

This class represents profiling event information for a context sensitivity. Context sensitivities are decisions where a particular input resulted in an SLL conflict, but LL prediction produced a single unique alternative.

In some cases, the unique alternative identified by LL prediction is not equal to the minimum represented alternative in the conflicting SLL configuration set. Grammars and inputs which result in this scenario are unable to use {@link PredictionMode#SLL}, which in turn means they cannot use the two-stage parsing strategy to improve parsing performance for that input.

@see ParserATNSimulator#reportContextSensitivity @see ANTLRErrorListener#reportContextSensitivity

@since 4.3

Inheritance

Constructors

ContextSensitivityInfo(int decision, ATNConfigSet configs, TokenStream input, int startIndex, int stopIndex)
Constructs a new instance of the ContextSensitivityInfo class with the specified detailed context sensitivity 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
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