public class LinterSyntaxErrorListener
extends org.antlr.v4.runtime.BaseErrorListener
AbstractLintingRule to be notified on syntax errors.| Constructor and Description |
|---|
LinterSyntaxErrorListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
registerRule(AbstractLintingRule rule)
registers an
AbstractLintingRule so that it can be notified of syntax errors. |
void |
syntaxError(org.antlr.v4.runtime.Recognizer<?,?> recognizer,
Object offendingSymbol,
int line,
int charPositionInLine,
String msg,
org.antlr.v4.runtime.RecognitionException e)
Reports a parsing syntax error to the registered rules.
|
void |
unregisterRule(AbstractLintingRule rule)
Unregister a
AbstractLintingRule so that it won't be notified of syntax errors anymore. |
public void registerRule(AbstractLintingRule rule)
AbstractLintingRule so that it can be notified of syntax errors.rule - the rule to register.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 void unregisterRule(AbstractLintingRule rule)
AbstractLintingRule so that it won't be notified of syntax errors anymore.rule - the rule to unregister.Copyright © 2020. All rights reserved.