public class LookaheadEventInfo extends DecisionEventInfo
|Modifier and Type||Field and Description|
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.
|Constructor and Description|
Constructs a new instance of the
public int predictedAlt
public LookaheadEventInfo(int decision, ATNConfigSet configs, int predictedAlt, TokenStream input, int startIndex, int stopIndex, boolean fullCtx)
LookaheadEventInfoclass with the specified detailed lookahead information.
decision- The decision number
configs- The final configuration set containing the necessary information to determine the result of a prediction, or
nullif the final configuration set is not available
input- The input token stream
startIndex- The start index for the current prediction
stopIndex- The index at which the prediction was finally made
trueif the current lookahead is part of an LL prediction; otherwise,
falseif the current lookahead is part of an SLL prediction
Copyright © 1992–2018 ANTLR. All rights reserved.