class SparkParserBailErrorStrategy extends SparkParserErrorStrategy
Inspired by org.antlr.v4.runtime.BailErrorStrategy, which is used in two-stage parsing: This error strategy allows the first stage of two-stage parsing to immediately terminate if an error is encountered, and immediately fall back to the second stage. In addition to avoiding wasted work by attempting to recover from errors here, the empty implementation of sync improves the performance of the first stage.
- Alphabetic
- By Inheritance
- SparkParserBailErrorStrategy
- SparkParserErrorStrategy
- DefaultErrorStrategy
- ANTLRErrorStrategy
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new SparkParserBailErrorStrategy()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
beginErrorCondition(arg0: Parser): Unit
- Attributes
- protected[runtime]
- Definition Classes
- DefaultErrorStrategy
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
consumeUntil(arg0: Parser, arg1: IntervalSet): Unit
- Attributes
- protected[runtime]
- Definition Classes
- DefaultErrorStrategy
-
def
endErrorCondition(arg0: Parser): Unit
- Attributes
- protected[runtime]
- Definition Classes
- DefaultErrorStrategy
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
escapeWSAndQuote(arg0: String): String
- Attributes
- protected[runtime]
- Definition Classes
- DefaultErrorStrategy
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getErrorRecoverySet(arg0: Parser): IntervalSet
- Attributes
- protected[runtime]
- Definition Classes
- DefaultErrorStrategy
-
def
getExpectedTokens(arg0: Parser): IntervalSet
- Attributes
- protected[runtime]
- Definition Classes
- DefaultErrorStrategy
-
def
getMissingSymbol(arg0: Parser): Token
- Attributes
- protected[runtime]
- Definition Classes
- DefaultErrorStrategy
-
def
getSymbolText(arg0: Token): String
- Attributes
- protected[runtime]
- Definition Classes
- DefaultErrorStrategy
-
def
getSymbolType(arg0: Token): Int
- Attributes
- protected[runtime]
- Definition Classes
- DefaultErrorStrategy
-
def
getTokenErrorDisplay(t: Token): String
Get the user-facing display of the error token.
Get the user-facing display of the error token.
- Definition Classes
- SparkParserErrorStrategy → DefaultErrorStrategy
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
inErrorRecoveryMode(arg0: Parser): Boolean
- Definition Classes
- DefaultErrorStrategy → ANTLRErrorStrategy
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
recover(recognizer: Parser, e: RecognitionException): Unit
Instead of recovering from exception e, re-throw it wrapped in a ParseCancellationException so it is not caught by the rule function catches.
Instead of recovering from exception e, re-throw it wrapped in a ParseCancellationException so it is not caught by the rule function catches. Use Exception#getCause to get the original RecognitionException.
- Definition Classes
- SparkParserBailErrorStrategy → DefaultErrorStrategy → ANTLRErrorStrategy
-
def
recoverInline(recognizer: Parser): Token
Make sure we don't attempt to recover inline; if the parser successfully recovers, it won't throw an exception.
Make sure we don't attempt to recover inline; if the parser successfully recovers, it won't throw an exception.
- Definition Classes
- SparkParserBailErrorStrategy → DefaultErrorStrategy → ANTLRErrorStrategy
- Annotations
- @throws( ... )
-
def
reportError(arg0: Parser, arg1: RecognitionException): Unit
- Definition Classes
- DefaultErrorStrategy → ANTLRErrorStrategy
-
def
reportFailedPredicate(arg0: Parser, arg1: FailedPredicateException): Unit
- Attributes
- protected[runtime]
- Definition Classes
- DefaultErrorStrategy
-
def
reportInputMismatch(recognizer: Parser, e: InputMismatchException): Unit
- Definition Classes
- SparkParserErrorStrategy → DefaultErrorStrategy
-
def
reportMatch(arg0: Parser): Unit
- Definition Classes
- DefaultErrorStrategy → ANTLRErrorStrategy
-
def
reportMissingToken(recognizer: Parser): Unit
- Definition Classes
- SparkParserErrorStrategy → DefaultErrorStrategy
-
def
reportNoViableAlternative(recognizer: Parser, e: NoViableAltException): Unit
- Definition Classes
- SparkParserErrorStrategy → DefaultErrorStrategy
-
def
reportUnwantedToken(recognizer: Parser): Unit
- Definition Classes
- SparkParserErrorStrategy → DefaultErrorStrategy
-
def
reset(arg0: Parser): Unit
- Definition Classes
- DefaultErrorStrategy → ANTLRErrorStrategy
-
def
singleTokenDeletion(arg0: Parser): Token
- Attributes
- protected[runtime]
- Definition Classes
- DefaultErrorStrategy
-
def
singleTokenInsertion(arg0: Parser): Boolean
- Attributes
- protected[runtime]
- Definition Classes
- DefaultErrorStrategy
-
def
sync(recognizer: Parser): Unit
Make sure we don't attempt to recover from problems in subrules.
Make sure we don't attempt to recover from problems in subrules.
- Definition Classes
- SparkParserBailErrorStrategy → DefaultErrorStrategy → ANTLRErrorStrategy
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()