Class 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.
Since:
4.3
See Also:
  • Constructor Details

    • ErrorInfo

      public ErrorInfo(int decision, @NotNull SimulatorState state, @NotNull TokenStream input, int startIndex, int stopIndex)
      Constructs a new instance of the ErrorInfo class with the specified detailed syntax error information.
      Parameters:
      decision - The decision number
      state - The final simulator state reached during prediction prior to reaching the ATNSimulator.ERROR state
      input - The input token stream
      startIndex - The start index for the current prediction
      stopIndex - The index at which the syntax error was identified