Class ErrorStrategy

java.lang.Object
org.antlr.v4.runtime.DefaultErrorStrategy
org.sonarsource.slang.parser.ErrorStrategy
All Implemented Interfaces:
org.antlr.v4.runtime.ANTLRErrorStrategy

public class ErrorStrategy extends org.antlr.v4.runtime.DefaultErrorStrategy
  • Field Summary

    Fields inherited from class org.antlr.v4.runtime.DefaultErrorStrategy

    errorRecoveryMode, lastErrorIndex, lastErrorStates, nextTokensContext, nextTokensState
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.antlr.v4.runtime.Token
    recoverInline(org.antlr.v4.runtime.Parser recognizer)
     
    void
    reportError(org.antlr.v4.runtime.Parser recognizer, org.antlr.v4.runtime.RecognitionException e)
     
    protected void
    reportMissingToken(org.antlr.v4.runtime.Parser recognizer)
     

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

    beginErrorCondition, consumeUntil, endErrorCondition, escapeWSAndQuote, getErrorRecoverySet, getExpectedTokens, getMissingSymbol, getSymbolText, getSymbolType, getTokenErrorDisplay, inErrorRecoveryMode, recover, reportFailedPredicate, reportInputMismatch, reportMatch, reportNoViableAlternative, reportUnwantedToken, reset, singleTokenDeletion, singleTokenInsertion, sync

    Methods inherited from class java.lang.Object

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

    • ErrorStrategy

      public ErrorStrategy()
  • Method Details

    • reportError

      public void reportError(org.antlr.v4.runtime.Parser recognizer, org.antlr.v4.runtime.RecognitionException e)
      Specified by:
      reportError in interface org.antlr.v4.runtime.ANTLRErrorStrategy
      Overrides:
      reportError in class org.antlr.v4.runtime.DefaultErrorStrategy
    • recoverInline

      public org.antlr.v4.runtime.Token recoverInline(org.antlr.v4.runtime.Parser recognizer)
      Specified by:
      recoverInline in interface org.antlr.v4.runtime.ANTLRErrorStrategy
      Overrides:
      recoverInline in class org.antlr.v4.runtime.DefaultErrorStrategy
    • reportMissingToken

      protected void reportMissingToken(org.antlr.v4.runtime.Parser recognizer)
      Overrides:
      reportMissingToken in class org.antlr.v4.runtime.DefaultErrorStrategy