Package com.api.jsonata4java.expressions
Class BufferingErrorListener
java.lang.Object
org.antlr.v4.runtime.BaseErrorListener
com.api.jsonata4java.expressions.BufferingErrorListener
- All Implemented Interfaces:
Serializable,org.antlr.v4.runtime.ANTLRErrorListener
public class BufferingErrorListener
extends org.antlr.v4.runtime.BaseErrorListener
implements Serializable
ANTLR error listener implementation for registration with lexers and parsers.
Buffers error messages as they are produced and allows them to be retrieved
later via getErrorsAsString().
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsyntaxError(org.antlr.v4.runtime.Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, org.antlr.v4.runtime.RecognitionException e) Methods inherited from class org.antlr.v4.runtime.BaseErrorListener
reportAmbiguity, reportAttemptingFullContext, reportContextSensitivity
-
Constructor Details
-
BufferingErrorListener
public BufferingErrorListener()
-
-
Method Details
-
syntaxError
public void syntaxError(org.antlr.v4.runtime.Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, org.antlr.v4.runtime.RecognitionException e) - Specified by:
syntaxErrorin interfaceorg.antlr.v4.runtime.ANTLRErrorListener- Overrides:
syntaxErrorin classorg.antlr.v4.runtime.BaseErrorListener
-
heardErrors
public boolean heardErrors() -
getErrorsAsString
-