Package com.puppycrawl.tools.checkstyle
Class CheckstyleParserErrorStrategy
java.lang.Object
org.antlr.v4.runtime.DefaultErrorStrategy
org.antlr.v4.runtime.BailErrorStrategy
com.puppycrawl.tools.checkstyle.CheckstyleParserErrorStrategy
- All Implemented Interfaces:
 org.antlr.v4.runtime.ANTLRErrorStrategy
Extending BailErrorStrategy allows us to report errors while
 cancelling the parsing operation. If input is not syntactically
 correct, we do not need to use antlr's recovery strategy, which
 can add significant overhead.
- 
Field Summary
Fields inherited from class org.antlr.v4.runtime.DefaultErrorStrategy
errorRecoveryMode, lastErrorIndex, lastErrorStates, nextTokensContext, nextTokensState - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionorg.antlr.v4.runtime.TokenrecoverInline(org.antlr.v4.runtime.Parser recognizer) Methods inherited from class org.antlr.v4.runtime.BailErrorStrategy
recover, syncMethods inherited from class org.antlr.v4.runtime.DefaultErrorStrategy
beginErrorCondition, consumeUntil, endErrorCondition, escapeWSAndQuote, getErrorRecoverySet, getExpectedTokens, getMissingSymbol, getSymbolText, getSymbolType, getTokenErrorDisplay, inErrorRecoveryMode, reportError, reportFailedPredicate, reportInputMismatch, reportMatch, reportMissingToken, reportNoViableAlternative, reportUnwantedToken, reset, singleTokenDeletion, singleTokenInsertion 
- 
Constructor Details
- 
CheckstyleParserErrorStrategy
public CheckstyleParserErrorStrategy() 
 - 
 - 
Method Details
- 
recoverInline
- Specified by:
 recoverInlinein interfaceorg.antlr.v4.runtime.ANTLRErrorStrategy- Overrides:
 recoverInlinein classorg.antlr.v4.runtime.BailErrorStrategy
 
 -