public class ParsingErrorListener
extends org.antlr.v4.runtime.BaseErrorListener
| Modifier and Type | Field and Description |
|---|---|
private BiFunction<ParsingException,Collection<ParsingException>,Collection<ParsingException>> |
accumulateError |
private Collection<ParsingException> |
errors |
| Constructor and Description |
|---|
ParsingErrorListener(BiFunction<ParsingException,Collection<ParsingException>,Collection<ParsingException>> accumulateError) |
| Modifier and Type | Method and Description |
|---|---|
Collection<ParsingException> |
getErrors() |
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.
|
private Collection<ParsingException> errors
private final BiFunction<ParsingException,Collection<ParsingException>,Collection<ParsingException>> accumulateError
public ParsingErrorListener(BiFunction<ParsingException,Collection<ParsingException>,Collection<ParsingException>> accumulateError)
public void syntaxError(org.antlr.v4.runtime.Recognizer<?,?> recognizer,
Object offendingSymbol,
int line,
int charPositionInLine,
String msg,
org.antlr.v4.runtime.RecognitionException e)
syntaxError in interface org.antlr.v4.runtime.ANTLRErrorListenersyntaxError in class org.antlr.v4.runtime.BaseErrorListenerpublic Collection<ParsingException> getErrors()
Copyright © 2019 JBoss by Red Hat. All rights reserved.