Class LookaheadEventInfo
java.lang.Object
org.graalvm.shadowed.org.antlr.v4.runtime.atn.DecisionEventInfo
org.graalvm.shadowed.org.antlr.v4.runtime.atn.LookaheadEventInfo
This class represents profiling event information for tracking the lookahead
depth required in order to make a prediction.
- Since:
- 4.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe 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.Fields inherited from class org.graalvm.shadowed.org.antlr.v4.runtime.atn.DecisionEventInfo
configs, decision, fullCtx, input, startIndex, stopIndex -
Constructor Summary
ConstructorsConstructorDescriptionLookaheadEventInfo(int decision, ATNConfigSet configs, int predictedAlt, TokenStream input, int startIndex, int stopIndex, boolean fullCtx) Constructs a new instance of theLookaheadEventInfoclass with the specified detailed lookahead information. -
Method Summary
-
Field Details
-
predictedAlt
public int predictedAltThe 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.
-
-
Constructor Details
-
LookaheadEventInfo
public LookaheadEventInfo(int decision, ATNConfigSet configs, int predictedAlt, TokenStream input, int startIndex, int stopIndex, boolean fullCtx) Constructs a new instance of theLookaheadEventInfoclass with the specified detailed lookahead information.- Parameters:
decision- The decision numberconfigs- The final configuration set containing the necessary information to determine the result of a prediction, ornullif the final configuration set is not availableinput- The input token streamstartIndex- The start index for the current predictionstopIndex- The index at which the prediction was finally madefullCtx-trueif the current lookahead is part of an LL prediction; otherwise,falseif the current lookahead is part of an SLL prediction
-