Top Description Fields Constructors
org.antlr.v4.runtime.atn

public Class ErrorInfo

extends DecisionEventInfo
Class Inheritance
Imports
org.antlr.v4.runtime.ANTLRErrorListener, .Parser, .RecognitionException, .Token, .TokenStream

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.
Since
4.3
See Also
Parser#notifyErrorListeners(Token, String, RecognitionException), ANTLRErrorListener#syntaxError

Field Summary

Inherited from org.antlr.v4.runtime.atn.DecisionEventInfo:
configsdecisionfullCtxinputstartIndexstopIndex

Constructor Summary

AccessConstructor and Description
public
ErrorInfo(int
The decision number
decision
,
ATNConfigSet
The final configuration set reached during prediction prior to reaching the ATNSimulator#ERROR state
configs
,
TokenStream
The input token stream
input
,
int
The start index for the current prediction
startIndex
,
int
The index at which the syntax error was identified
stopIndex
,
boolean
true if the syntax error was identified during LL prediction; otherwise, false if the syntax error was identified during SLL prediction
fullCtx
)

Constructs a new instance of the ErrorInfo class with the specified detailed syntax error information.

Constructor Detail

ErrorInfoback to summary
public ErrorInfo(int decision, ATNConfigSet configs, TokenStream input, int startIndex, int stopIndex, boolean fullCtx)

Constructs a new instance of the ErrorInfo class with the specified detailed syntax error information.

Parameters
decision:int

The decision number

configs:ATNConfigSet

The final configuration set reached during prediction prior to reaching the ATNSimulator#ERROR state

input:TokenStream

The input token stream

startIndex:int

The start index for the current prediction

stopIndex:int

The index at which the syntax error was identified

fullCtx:boolean

true if the syntax error was identified during LL prediction; otherwise, false if the syntax error was identified during SLL prediction