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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BufferingErrorListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorsAsString()booleanheardErrors()voidsyntaxError(org.antlr.v4.runtime.Recognizer<?,?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, org.antlr.v4.runtime.RecognitionException e)
-
-
-
Method Detail
-
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
public String getErrorsAsString()
-
-