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, org.antlr.v4.runtime.misc.NotNull

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:
decisionfullCtxinputstartIndexstatestopIndex

Constructor Summary

AccessConstructor and Description
public
ErrorInfo(int
The decision number
decision
,
SimulatorState
The final simulator state reached during prediction prior to reaching the ATNSimulator#ERROR state
state
,
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
)

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

Constructor Detail

ErrorInfoback to summary
public ErrorInfo(int decision, SimulatorState state, TokenStream input, int startIndex, int stopIndex)

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

Parameters
decision:int

The decision number

state:SimulatorState

The final simulator state 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