Package org.antlr.v4.runtime.atn
Class ErrorInfo
- java.lang.Object
-
- org.antlr.v4.runtime.atn.DecisionEventInfo
-
- org.antlr.v4.runtime.atn.ErrorInfo
-
public class ErrorInfo extends DecisionEventInfo
This class represents profiling event information for a syntax error identified during prediction. Syntax errors occur when the prediction algorithm is unable to identify an alternative which would lead to a successful parse.
-
-
Field Summary
-
Fields inherited from class org.antlr.v4.runtime.atn.DecisionEventInfo
configs, decision, fullCtx, input, startIndex, stopIndex
-
-
Constructor Summary
Constructors Constructor Description ErrorInfo(int decision, ATNConfigSet configs, TokenStream input, int startIndex, int stopIndex, boolean fullCtx)
Constructs a new instance of theErrorInfo
class with the specified detailed syntax error information.
-
-
-
Constructor Detail
-
ErrorInfo
public ErrorInfo(int decision, ATNConfigSet configs, TokenStream input, int startIndex, int stopIndex, boolean fullCtx)
Constructs a new instance of theErrorInfo
class with the specified detailed syntax error information.- Parameters:
decision
- The decision numberconfigs
- The final configuration set reached during prediction prior to reaching theATNSimulator.ERROR
stateinput
- The input token streamstartIndex
- The start index for the current predictionstopIndex
- The index at which the syntax error was identifiedfullCtx
-true
if the syntax error was identified during LL prediction; otherwise,false
if the syntax error was identified during SLL prediction
-
-