Package com.puppycrawl.tools.checkstyle
Class JavaParser.CheckstyleErrorListener
java.lang.Object
org.antlr.v4.runtime.BaseErrorListener
com.puppycrawl.tools.checkstyle.JavaParser.CheckstyleErrorListener
- All Implemented Interfaces:
org.antlr.v4.runtime.ANTLRErrorListener
- Enclosing class:
- JavaParser
private static final class JavaParser.CheckstyleErrorListener
extends org.antlr.v4.runtime.BaseErrorListener
Custom error listener to provide detailed exception message.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
syntaxError
(org.antlr.v4.runtime.Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, org.antlr.v4.runtime.RecognitionException ex) Methods inherited from class org.antlr.v4.runtime.BaseErrorListener
reportAmbiguity, reportAttemptingFullContext, reportContextSensitivity
-
Constructor Details
-
CheckstyleErrorListener
private CheckstyleErrorListener()
-
-
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 ex) - Specified by:
syntaxError
in interfaceorg.antlr.v4.runtime.ANTLRErrorListener
- Overrides:
syntaxError
in classorg.antlr.v4.runtime.BaseErrorListener
-