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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) List
<TomlParseError> errors()
private static String
getExpected
(org.antlr.v4.runtime.misc.IntervalSet expectedTokens) private static String
getExpected
(org.antlr.v4.runtime.RecognitionException e) private String
getMessage
(org.antlr.v4.runtime.Token token, String expected) private static String
getTokenName
(org.antlr.v4.runtime.Token token) private static boolean
isOnlyQuotes
(String text) private void
reportError
(String message, TomlPosition position) void
reportError
(TomlParseError error) void
syntaxError
(org.antlr.v4.runtime.Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPosition, String msg, org.antlr.v4.runtime.RecognitionException e) Methods inherited from class org.antlr.v4.runtime.BaseErrorListener
reportAmbiguity, reportAttemptingFullContext, reportContextSensitivity
-
Field Details
-
errors
-
-
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 interfaceorg.antlr.v4.runtime.ANTLRErrorListener
- Overrides:
syntaxError
in classorg.antlr.v4.runtime.BaseErrorListener
-
reportError
- Specified by:
reportError
in interfaceErrorReporter
-
reportError
-
errors
List<TomlParseError> errors() -
getMessage
-
getTokenName
-
getExpected
-
getExpected
-
isOnlyQuotes
-