Class JavadocDetailNodeParser.DescriptiveErrorListener

    • Method Detail

      • setOffset

        public void setOffset​(int offset)
        Sets offset. Offset is line number of beginning of the Javadoc comment. Log messages should have line number in scope of file, not in scope of Javadoc comment.
        Parameters:
        offset - offset line number
      • syntaxError

        public void syntaxError​(org.antlr.v4.runtime.Recognizer<?,​?> recognizer,
                                Object offendingSymbol,
                                int line,
                                int charPositionInLine,
                                String msg,
                                org.antlr.v4.runtime.RecognitionException ex)
        Logs parser errors in Checkstyle manner. Parser can generate error messages. There is special error that parser can generate. It is missed close HTML tag. This case is special because parser prints error like "no viable alternative at input 'b \n *\n'" and it is not clear that error is about missed close HTML tag. Other error messages are not special and logged simply as "Parse Error...".

        Specified by:
        syntaxError in interface org.antlr.v4.runtime.ANTLRErrorListener
        Overrides:
        syntaxError in class org.antlr.v4.runtime.BaseErrorListener