Packages

c

org.antlr.intellij.adaptor.parser

ErrorStrategyAdaptor

class ErrorStrategyAdaptor extends DefaultErrorStrategy

Adapt ANTLR's DefaultErrorStrategy so that we add error nodes for EOF if reached at start of resync's consumeUntil(). Also set start/stop of missing token to always be the current token, even if that's EOF.

Linear Supertypes
DefaultErrorStrategy, ANTLRErrorStrategy, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ErrorStrategyAdaptor
  2. DefaultErrorStrategy
  3. ANTLRErrorStrategy
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ErrorStrategyAdaptor()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def beginErrorCondition(arg0: Parser): Unit
    Attributes
    protected[v4.runtime]
    Definition Classes
    DefaultErrorStrategy
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  7. def consumeUntil(recognizer: Parser, set: IntervalSet): Unit
    Attributes
    protected[parser]
    Definition Classes
    ErrorStrategyAdaptor → DefaultErrorStrategy
    Annotations
    @Override()
  8. def endErrorCondition(arg0: Parser): Unit
    Attributes
    protected[v4.runtime]
    Definition Classes
    DefaultErrorStrategy
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. def escapeWSAndQuote(arg0: String): String
    Attributes
    protected[v4.runtime]
    Definition Classes
    DefaultErrorStrategy
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  13. def getErrorRecoverySet(arg0: Parser): IntervalSet
    Attributes
    protected[v4.runtime]
    Definition Classes
    DefaultErrorStrategy
  14. def getExpectedTokens(arg0: Parser): IntervalSet
    Attributes
    protected[v4.runtime]
    Definition Classes
    DefaultErrorStrategy
  15. def getMissingSymbol(recognizer: Parser): Token

    By default ANTLR makes the start/stop -1/-1 for invalid tokens which is reasonable but here we want to highlight the current position indicating that is where we lack a token.

    By default ANTLR makes the start/stop -1/-1 for invalid tokens which is reasonable but here we want to highlight the current position indicating that is where we lack a token. if no input, highlight at position 0.

    Attributes
    protected[parser]
    Definition Classes
    ErrorStrategyAdaptor → DefaultErrorStrategy
  16. def getSymbolText(arg0: Token): String
    Attributes
    protected[v4.runtime]
    Definition Classes
    DefaultErrorStrategy
  17. def getSymbolType(arg0: Token): Int
    Attributes
    protected[v4.runtime]
    Definition Classes
    DefaultErrorStrategy
  18. def getTokenErrorDisplay(arg0: Token): String
    Attributes
    protected[v4.runtime]
    Definition Classes
    DefaultErrorStrategy
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  20. def inErrorRecoveryMode(arg0: Parser): Boolean
    Definition Classes
    DefaultErrorStrategy → ANTLRErrorStrategy
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  25. def recover(arg0: Parser, arg1: RecognitionException): Unit
    Definition Classes
    DefaultErrorStrategy → ANTLRErrorStrategy
  26. def recoverInline(arg0: Parser): Token
    Definition Classes
    DefaultErrorStrategy → ANTLRErrorStrategy
    Annotations
    @throws(classOf[org.antlr.v4.runtime.RecognitionException])
  27. def reportError(arg0: Parser, arg1: RecognitionException): Unit
    Definition Classes
    DefaultErrorStrategy → ANTLRErrorStrategy
  28. def reportFailedPredicate(arg0: Parser, arg1: FailedPredicateException): Unit
    Attributes
    protected[v4.runtime]
    Definition Classes
    DefaultErrorStrategy
  29. def reportInputMismatch(arg0: Parser, arg1: InputMismatchException): Unit
    Attributes
    protected[v4.runtime]
    Definition Classes
    DefaultErrorStrategy
  30. def reportMatch(arg0: Parser): Unit
    Definition Classes
    DefaultErrorStrategy → ANTLRErrorStrategy
  31. def reportMissingToken(arg0: Parser): Unit
    Attributes
    protected[v4.runtime]
    Definition Classes
    DefaultErrorStrategy
  32. def reportNoViableAlternative(arg0: Parser, arg1: NoViableAltException): Unit
    Attributes
    protected[v4.runtime]
    Definition Classes
    DefaultErrorStrategy
  33. def reportUnwantedToken(arg0: Parser): Unit
    Attributes
    protected[v4.runtime]
    Definition Classes
    DefaultErrorStrategy
  34. def reset(arg0: Parser): Unit
    Definition Classes
    DefaultErrorStrategy → ANTLRErrorStrategy
  35. def singleTokenDeletion(arg0: Parser): Token
    Attributes
    protected[v4.runtime]
    Definition Classes
    DefaultErrorStrategy
  36. def singleTokenInsertion(arg0: Parser): Boolean
    Attributes
    protected[v4.runtime]
    Definition Classes
    DefaultErrorStrategy
  37. def sync(arg0: Parser): Unit
    Definition Classes
    DefaultErrorStrategy → ANTLRErrorStrategy
    Annotations
    @throws(classOf[org.antlr.v4.runtime.RecognitionException])
  38. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  39. def toString(): String
    Definition Classes
    AnyRef → Any
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  42. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from DefaultErrorStrategy

Inherited from ANTLRErrorStrategy

Inherited from AnyRef

Inherited from Any

Ungrouped