Class SyntaxErrorListener

java.lang.Object
org.antlr.v4.runtime.BaseErrorListener
org.eclipse.lemminx.customservice.synapse.expression.SyntaxErrorListener
All Implemented Interfaces:
org.antlr.v4.runtime.ANTLRErrorListener

public class SyntaxErrorListener extends org.antlr.v4.runtime.BaseErrorListener
Represents a listener that captures syntax errors during the parsing of Synapse Expressions.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the list of syntax errors.
    boolean
    Check if there are any syntax errors captured.
    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

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

    • SyntaxErrorListener

      public SyntaxErrorListener()
  • Method Details

    • hasErrors

      public boolean hasErrors()
      Check if there are any syntax errors captured.
      Returns:
      true if any errors were captured, false otherwise.
    • getErrors

      public List<ExpressionError> getErrors()
      Get the list of syntax errors.
      Returns:
      List of SyntaxError objects containing error 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)
      Specified by:
      syntaxError in interface org.antlr.v4.runtime.ANTLRErrorListener
      Overrides:
      syntaxError in class org.antlr.v4.runtime.BaseErrorListener