Package io.debezium.antlr
Class ParsingErrorListener
java.lang.Object
org.antlr.v4.runtime.BaseErrorListener
io.debezium.antlr.ParsingErrorListener
- All Implemented Interfaces:
org.antlr.v4.runtime.ANTLRErrorListener
public class ParsingErrorListener
extends org.antlr.v4.runtime.BaseErrorListener
ANTLR parsing error listener.
This listener will collect all errors, which may appear during a construction of parsed tree.
- Author:
- Roman Kuchár <kucharrom@gmail.com>.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BiFunction<ParsingException,Collection<ParsingException>, Collection<ParsingException>> private Collection<ParsingException>private final String -
Constructor Summary
ConstructorsConstructorDescriptionParsingErrorListener(String parsedDdl, BiFunction<ParsingException, Collection<ParsingException>, Collection<ParsingException>> accumulateError) -
Method Summary
Modifier and TypeMethodDescriptionvoidsyntaxError(org.antlr.v4.runtime.Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, org.antlr.v4.runtime.RecognitionException e) Parsing error listener, which will throw up an exception.Methods inherited from class org.antlr.v4.runtime.BaseErrorListener
reportAmbiguity, reportAttemptingFullContext, reportContextSensitivity
-
Field Details
-
errors
-
accumulateError
private final BiFunction<ParsingException,Collection<ParsingException>, accumulateErrorCollection<ParsingException>> -
parsedDdl
-
-
Constructor Details
-
ParsingErrorListener
public ParsingErrorListener(String parsedDdl, BiFunction<ParsingException, Collection<ParsingException>, Collection<ParsingException>> accumulateError)
-
-
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) Parsing error listener, which will throw up an exception.- Specified by:
syntaxErrorin interfaceorg.antlr.v4.runtime.ANTLRErrorListener- Overrides:
syntaxErrorin classorg.antlr.v4.runtime.BaseErrorListener
-
getErrors
-