Package org.tomlj

Class AccumulatingErrorListener

java.lang.Object
org.antlr.v4.runtime.BaseErrorListener
org.tomlj.AccumulatingErrorListener
All Implemented Interfaces:
org.antlr.v4.runtime.ANTLRErrorListener, ErrorReporter

final class AccumulatingErrorListener extends org.antlr.v4.runtime.BaseErrorListener implements ErrorReporter
  • Field Details

  • Constructor Details

    • AccumulatingErrorListener

      AccumulatingErrorListener()
  • Method Details

    • syntaxError

      public void syntaxError(org.antlr.v4.runtime.Recognizer<?,?> recognizer, Object offendingSymbol, int line, int charPosition, String msg, org.antlr.v4.runtime.RecognitionException e)
      Specified by:
      syntaxError in interface org.antlr.v4.runtime.ANTLRErrorListener
      Overrides:
      syntaxError in class org.antlr.v4.runtime.BaseErrorListener
    • reportError

      public void reportError(TomlParseError error)
      Specified by:
      reportError in interface ErrorReporter
    • reportError

      private void reportError(String message, TomlPosition position)
    • errors

      List<TomlParseError> errors()
    • getMessage

      private String getMessage(org.antlr.v4.runtime.Token token, String expected)
    • getTokenName

      private static String getTokenName(org.antlr.v4.runtime.Token token)
    • getExpected

      private static String getExpected(org.antlr.v4.runtime.RecognitionException e)
    • getExpected

      private static String getExpected(org.antlr.v4.runtime.misc.IntervalSet expectedTokens)
    • isOnlyQuotes

      private static boolean isOnlyQuotes(String text)