Package graphql.parser
Class ExtendedBailStrategy
java.lang.Object
org.antlr.v4.runtime.DefaultErrorStrategy
org.antlr.v4.runtime.BailErrorStrategy
graphql.parser.ExtendedBailStrategy
- All Implemented Interfaces:
org.antlr.v4.runtime.ANTLRErrorStrategy
public class ExtendedBailStrategy
extends org.antlr.v4.runtime.BailErrorStrategy
-
Field Summary
FieldsFields inherited from class org.antlr.v4.runtime.DefaultErrorStrategy
errorRecoveryMode, lastErrorIndex, lastErrorStates, nextTokensContext, nextTokensState
-
Constructor Summary
ConstructorsConstructorDescriptionExtendedBailStrategy
(MultiSourceReader multiSourceReader, ParserEnvironment environment) -
Method Summary
Modifier and TypeMethodDescriptionprivate InvalidSyntaxException
mkException
(org.antlr.v4.runtime.Parser recognizer, org.antlr.v4.runtime.RecognitionException cause) (package private) InvalidSyntaxException
mkMoreTokensException
(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) Methods inherited from class org.antlr.v4.runtime.BailErrorStrategy
sync
Methods 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
-
Field Details
-
multiSourceReader
-
environment
-
-
Constructor Details
-
ExtendedBailStrategy
-
-
Method Details
-
recover
public void recover(org.antlr.v4.runtime.Parser recognizer, org.antlr.v4.runtime.RecognitionException e) - Specified by:
recover
in interfaceorg.antlr.v4.runtime.ANTLRErrorStrategy
- Overrides:
recover
in classorg.antlr.v4.runtime.BailErrorStrategy
-
recoverInline
public org.antlr.v4.runtime.Token recoverInline(org.antlr.v4.runtime.Parser recognizer) throws org.antlr.v4.runtime.RecognitionException - Specified by:
recoverInline
in interfaceorg.antlr.v4.runtime.ANTLRErrorStrategy
- Overrides:
recoverInline
in classorg.antlr.v4.runtime.BailErrorStrategy
- Throws:
org.antlr.v4.runtime.RecognitionException
-
mkMoreTokensException
-
mkException
private InvalidSyntaxException mkException(org.antlr.v4.runtime.Parser recognizer, org.antlr.v4.runtime.RecognitionException cause)
-