Class ParserErrorListener

  • All Implemented Interfaces:
    org.antlr.v4.runtime.ANTLRErrorListener

    public class ParserErrorListener
    extends org.antlr.v4.runtime.BaseErrorListener
    Throws a ParserException on parse errors.
    Author:
    Netherlands Forensic Institute
    • Constructor Detail

      • ParserErrorListener

        public ParserErrorListener​(Class<?> queryParserClass)
        Public constructor.
        Parameters:
        queryParserClass - parser (class name used in message)
    • Method Detail

      • syntaxError

        public void syntaxError​(org.antlr.v4.runtime.Recognizer<?,​?> arg0,
                                Object arg1,
                                int line,
                                int position,
                                String message,
                                org.antlr.v4.runtime.RecognitionException arg5)
        Specified by:
        syntaxError in interface org.antlr.v4.runtime.ANTLRErrorListener
        Overrides:
        syntaxError in class org.antlr.v4.runtime.BaseErrorListener