Class ParserErrorListener

java.lang.Object
org.antlr.v4.runtime.BaseErrorListener
org.hansken.plugin.extraction.hql_lite.lang.human.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 Summary

    Constructors
    Constructor
    Description
    ParserErrorListener(Class<?> queryParserClass)
    Public constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    syntaxError(org.antlr.v4.runtime.Recognizer<?,?> arg0, Object arg1, int line, int position, String message, org.antlr.v4.runtime.RecognitionException arg5)
     

    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
  • Constructor Details

    • ParserErrorListener

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

    • 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