Class ErrorPresenceListener

java.lang.Object
org.antlr.v4.runtime.BaseErrorListener
org.pgcodekeeper.core.formatter.ErrorPresenceListener
All Implemented Interfaces:
org.antlr.v4.runtime.ANTLRErrorListener

public final class ErrorPresenceListener extends org.antlr.v4.runtime.BaseErrorListener
This listener checks if there was at least one syntax error while parsing.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    void
    syntaxError(org.antlr.v4.runtime.Recognizer<?,?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, org.antlr.v4.runtime.RecognitionException e)
     

    Methods inherited from class org.antlr.v4.runtime.BaseErrorListener

    reportAmbiguity, reportAttemptingFullContext, reportContextSensitivity

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ErrorPresenceListener

      public ErrorPresenceListener()
  • Method Details

    • isHasError

      public boolean isHasError()
      Returns:
      true if there was an error, false otherwise.
    • syntaxError

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