Class AqlErrorHandlerNoRecovery

java.lang.Object
org.antlr.v4.runtime.BaseErrorListener
org.ehrbase.aql.compiler.AqlErrorHandlerNoRecovery
All Implemented Interfaces:
org.antlr.v4.runtime.ANTLRErrorListener

public class AqlErrorHandlerNoRecovery extends org.antlr.v4.runtime.BaseErrorListener
Utility class to handle specific errors during parsing
Allows to return more meaningful messages during AQL parsing Created by christian on 4/15/2016.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    static final boolean
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    reportAmbiguity(org.antlr.v4.runtime.Parser recognizer, org.antlr.v4.runtime.dfa.DFA dfa, int startIndex, int stopIndex, boolean exact, BitSet ambigAlts, org.antlr.v4.runtime.atn.ATNConfigSet configs)
     
    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

    reportAttemptingFullContext, reportContextSensitivity

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • AqlErrorHandlerNoRecovery

      public AqlErrorHandlerNoRecovery()
  • Method Details

    • syntaxError

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

      public void reportAmbiguity(org.antlr.v4.runtime.Parser recognizer, org.antlr.v4.runtime.dfa.DFA dfa, int startIndex, int stopIndex, boolean exact, BitSet ambigAlts, org.antlr.v4.runtime.atn.ATNConfigSet configs)
      Specified by:
      reportAmbiguity in interface org.antlr.v4.runtime.ANTLRErrorListener
      Overrides:
      reportAmbiguity in class org.antlr.v4.runtime.BaseErrorListener