public class DescriptiveErrorStrategy
extends org.antlr.v4.runtime.BailErrorStrategy
| Constructor and Description |
|---|
DescriptiveErrorStrategy(org.antlr.v4.runtime.CharStream charStream) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createFailedPredicateErrorMessage(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.FailedPredicateException e) |
protected String |
createInputMismatchErrorMessage(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.InputMismatchException e) |
protected String |
createNoViableAlternativeErrorMessage(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.NoViableAltException e) |
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) |
protected void |
reportFailedPredicate(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.FailedPredicateException e) |
protected void |
reportInputMismatch(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.InputMismatchException e) |
protected void |
reportNoViableAlternative(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.NoViableAltException e) |
beginErrorCondition, constructToken, consumeUntil, endErrorCondition, escapeWSAndQuote, getErrorRecoverySet, getExpectedTokens, getMissingSymbol, getSymbolText, getSymbolType, getTokenErrorDisplay, inErrorRecoveryMode, notifyErrorListeners, reportError, reportMatch, reportMissingToken, reportUnwantedToken, reset, singleTokenDeletion, singleTokenInsertionpublic DescriptiveErrorStrategy(org.antlr.v4.runtime.CharStream charStream)
public void recover(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.RecognitionException e)
recover in interface org.antlr.v4.runtime.ANTLRErrorStrategyrecover in class org.antlr.v4.runtime.BailErrorStrategypublic org.antlr.v4.runtime.Token recoverInline(org.antlr.v4.runtime.Parser recognizer)
throws org.antlr.v4.runtime.RecognitionException
recoverInline in interface org.antlr.v4.runtime.ANTLRErrorStrategyrecoverInline in class org.antlr.v4.runtime.BailErrorStrategyorg.antlr.v4.runtime.RecognitionExceptionprotected String createNoViableAlternativeErrorMessage(org.antlr.v4.runtime.Parser recognizer, org.antlr.v4.runtime.NoViableAltException e)
protected void reportNoViableAlternative(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.NoViableAltException e)
reportNoViableAlternative in class org.antlr.v4.runtime.DefaultErrorStrategyprotected String createInputMismatchErrorMessage(org.antlr.v4.runtime.Parser recognizer, org.antlr.v4.runtime.InputMismatchException e)
protected void reportInputMismatch(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.InputMismatchException e)
reportInputMismatch in class org.antlr.v4.runtime.DefaultErrorStrategyprotected String createFailedPredicateErrorMessage(org.antlr.v4.runtime.Parser recognizer, org.antlr.v4.runtime.FailedPredicateException e)
protected void reportFailedPredicate(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.FailedPredicateException e)
reportFailedPredicate in class org.antlr.v4.runtime.DefaultErrorStrategy