public class ContextSensitivityInfo extends DecisionEventInfo
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 PredictionMode.SLL
, which in turn means they cannot use
the two-stage parsing strategy to improve parsing performance for that
input.
ParserATNSimulator.reportContextSensitivity(org.antlr.v4.runtime.dfa.DFA, int, org.antlr.v4.runtime.atn.ATNConfigSet, int, int)
,
ANTLRErrorListener.reportContextSensitivity(org.antlr.v4.runtime.Parser, org.antlr.v4.runtime.dfa.DFA, int, int, int, org.antlr.v4.runtime.atn.ATNConfigSet)
configs, decision, fullCtx, input, startIndex, stopIndex
Constructor and Description |
---|
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. |
public ContextSensitivityInfo(int decision, ATNConfigSet configs, TokenStream input, int startIndex, int stopIndex)
ContextSensitivityInfo
class
with the specified detailed context sensitivity information.decision
- The decision numberconfigs
- The final configuration set containing the unique
alternative identified by full-context predictioninput
- The input token streamstartIndex
- The start index for the current predictionstopIndex
- The index at which the context sensitivity was
identified during full-context prediction