Class ParserErrorListener

java.lang.Object
com.intuit.karate.core.ParserErrorListener
All Implemented Interfaces:
org.antlr.v4.runtime.ANTLRErrorListener

public class ParserErrorListener extends Object implements org.antlr.v4.runtime.ANTLRErrorListener
Author:
pthomas3
  • Constructor Details

    • ParserErrorListener

      public ParserErrorListener()
  • Method Details

    • isFail

      public boolean isFail()
    • getMessage

      public String getMessage()
    • getLine

      public int getLine()
    • getPosition

      public int getPosition()
    • offendingSymbol

      public Object offendingSymbol()
    • syntaxError

      public void syntaxError(org.antlr.v4.runtime.Recognizer<?,?> recognizer, Object offendingSymbol, int line, int position, String message, org.antlr.v4.runtime.RecognitionException e)
      Specified by:
      syntaxError in interface org.antlr.v4.runtime.ANTLRErrorListener
    • 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
    • reportAttemptingFullContext

      public void reportAttemptingFullContext(org.antlr.v4.runtime.Parser recognizer, org.antlr.v4.runtime.dfa.DFA dfa, int startIndex, int stopIndex, BitSet conflictingAlts, org.antlr.v4.runtime.atn.ATNConfigSet configs)
      Specified by:
      reportAttemptingFullContext in interface org.antlr.v4.runtime.ANTLRErrorListener
    • reportContextSensitivity

      public void reportContextSensitivity(org.antlr.v4.runtime.Parser recognizer, org.antlr.v4.runtime.dfa.DFA dfa, int startIndex, int stopIndex, int prediction, org.antlr.v4.runtime.atn.ATNConfigSet configs)
      Specified by:
      reportContextSensitivity in interface org.antlr.v4.runtime.ANTLRErrorListener