public class LookaheadEventInfo extends DecisionEventInfo
| Modifier and Type | Field and Description |
|---|---|
int |
predictedAlt
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.
|
decision, fullCtx, input, startIndex, state, stopIndex| Constructor and Description |
|---|
LookaheadEventInfo(int decision,
SimulatorState state,
int predictedAlt,
TokenStream input,
int startIndex,
int stopIndex,
boolean fullCtx)
Constructs a new instance of the
LookaheadEventInfo class with
the specified detailed lookahead information. |
public final int predictedAlt
public LookaheadEventInfo(int decision,
@Nullable
SimulatorState state,
int predictedAlt,
@NotNull
TokenStream input,
int startIndex,
int stopIndex,
boolean fullCtx)
LookaheadEventInfo class with
the specified detailed lookahead information.decision - The decision numberstate - The final simulator state containing the necessary
information to determine the result of a prediction, or null if
the final state is not availableinput - The input token streamstartIndex - The start index for the current predictionstopIndex - The index at which the prediction was finally madefullCtx - true if the current lookahead is part of an LL
prediction; otherwise, false if the current lookahead is part of
an SLL predictionCopyright © 1992–2024 Daniel Sun. All rights reserved.