public class BeetlAntlrErrorStrategy
extends org.antlr.v4.runtime.DefaultErrorStrategy
| 构造器和说明 |
|---|
BeetlAntlrErrorStrategy() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected GrammarToken |
getGrammarToken(org.antlr.v4.runtime.Token token) |
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)
Make sure we don't attempt to recover inline; if the parser
successfully recovers, it won't throw an exception.
|
void |
reportError(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.RecognitionException e) |
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 |
reportMissingToken(org.antlr.v4.runtime.Parser recognizer) |
protected void |
reportNoViableAlternative(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.NoViableAltException e) |
protected void |
reportUnwantedToken(org.antlr.v4.runtime.Parser recognizer) |
void |
sync(org.antlr.v4.runtime.Parser recognizer)
Make sure we don't attempt to recover from problems in subrules.
|
beginErrorCondition, consumeUntil, endErrorCondition, escapeWSAndQuote, getErrorRecoverySet, getExpectedTokens, getMissingSymbol, getSymbolText, getSymbolType, getTokenErrorDisplay, inErrorRecoveryMode, reportMatch, reset, singleTokenDeletion, singleTokenInsertionpublic void recover(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.RecognitionException e)
recover 在接口中 org.antlr.v4.runtime.ANTLRErrorStrategyrecover 在类中 org.antlr.v4.runtime.DefaultErrorStrategypublic void reportError(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.RecognitionException e)
reportError 在接口中 org.antlr.v4.runtime.ANTLRErrorStrategyreportError 在类中 org.antlr.v4.runtime.DefaultErrorStrategyprotected void reportNoViableAlternative(@NotNull
org.antlr.v4.runtime.Parser recognizer,
@NotNull
org.antlr.v4.runtime.NoViableAltException e)
reportNoViableAlternative 在类中 org.antlr.v4.runtime.DefaultErrorStrategyprotected void reportInputMismatch(@NotNull
org.antlr.v4.runtime.Parser recognizer,
@NotNull
org.antlr.v4.runtime.InputMismatchException e)
reportInputMismatch 在类中 org.antlr.v4.runtime.DefaultErrorStrategyprotected void reportFailedPredicate(@NotNull
org.antlr.v4.runtime.Parser recognizer,
@NotNull
org.antlr.v4.runtime.FailedPredicateException e)
reportFailedPredicate 在类中 org.antlr.v4.runtime.DefaultErrorStrategypublic void sync(org.antlr.v4.runtime.Parser recognizer)
sync 在接口中 org.antlr.v4.runtime.ANTLRErrorStrategysync 在类中 org.antlr.v4.runtime.DefaultErrorStrategypublic org.antlr.v4.runtime.Token recoverInline(org.antlr.v4.runtime.Parser recognizer)
throws org.antlr.v4.runtime.RecognitionException
recoverInline 在接口中 org.antlr.v4.runtime.ANTLRErrorStrategyrecoverInline 在类中 org.antlr.v4.runtime.DefaultErrorStrategyorg.antlr.v4.runtime.RecognitionExceptionprotected void reportMissingToken(@NotNull
org.antlr.v4.runtime.Parser recognizer)
reportMissingToken 在类中 org.antlr.v4.runtime.DefaultErrorStrategyprotected void reportUnwantedToken(@NotNull
org.antlr.v4.runtime.Parser recognizer)
reportUnwantedToken 在类中 org.antlr.v4.runtime.DefaultErrorStrategyprotected GrammarToken getGrammarToken(org.antlr.v4.runtime.Token token)
Copyright © 2017. All rights reserved.