Class 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void syntaxError​(org.antlr.v4.runtime.Recognizer<?,​?> recognizer, java.lang.Object offendingSymbol, int line, int charPositionInLine, java.lang.String msg, org.antlr.v4.runtime.RecognitionException ex)  
      • Methods inherited from class org.antlr.v4.runtime.BaseErrorListener

        reportAmbiguity, reportAttemptingFullContext, reportContextSensitivity
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • syntaxError

        public void syntaxError​(org.antlr.v4.runtime.Recognizer<?,​?> recognizer,
                                java.lang.Object offendingSymbol,
                                int line,
                                int charPositionInLine,
                                java.lang.String msg,
                                org.antlr.v4.runtime.RecognitionException ex)
        Specified by:
        syntaxError in interface org.antlr.v4.runtime.ANTLRErrorListener
        Overrides:
        syntaxError in class org.antlr.v4.runtime.BaseErrorListener