Class GoslinErrorHandler

  • All Implemented Interfaces:
    org.antlr.v4.runtime.ANTLRErrorStrategy

    public class GoslinErrorHandler
    extends org.antlr.v4.runtime.DefaultErrorStrategy
    Author:
    nilshoffmann
    • Field Summary

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void recover​(org.antlr.v4.runtime.Parser recognizer, org.antlr.v4.runtime.RecognitionException e)  
      org.antlr.v4.runtime.Token recoverInline​(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, reportError, reportFailedPredicate, reportInputMismatch, reportMatch, reportMissingToken, reportNoViableAlternative, reportUnwantedToken, reset, singleTokenDeletion, singleTokenInsertion, sync
    • Method Detail

      • recoverInline

        public org.antlr.v4.runtime.Token recoverInline​(org.antlr.v4.runtime.Parser recognizer)
                                                 throws org.antlr.v4.runtime.RecognitionException
        Specified by:
        recoverInline in interface org.antlr.v4.runtime.ANTLRErrorStrategy
        Overrides:
        recoverInline in class org.antlr.v4.runtime.DefaultErrorStrategy
        Throws:
        org.antlr.v4.runtime.RecognitionException
      • recover

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