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, singleTokenInsertion
public 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.ANTLRErrorStrategy
recover
in class org.antlr.v4.runtime.BailErrorStrategy
public 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.ANTLRErrorStrategy
recoverInline
in class org.antlr.v4.runtime.BailErrorStrategy
org.antlr.v4.runtime.RecognitionException
protected 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.DefaultErrorStrategy
protected 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.DefaultErrorStrategy
protected 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