graphql.parser.antlr.GraphqlParser Maven / Gradle / Ivy
// Generated from Graphql.g4 by ANTLR 4.7.2
package graphql.parser.antlr;
import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.misc.*;
import org.antlr.v4.runtime.tree.*;
import java.util.List;
import java.util.Iterator;
import java.util.ArrayList;
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"})
public class GraphqlParser extends Parser {
static { RuntimeMetaData.checkVersion("4.7.2", RuntimeMetaData.VERSION); }
protected static final DFA[] _decisionToDFA;
protected static final PredictionContextCache _sharedContextCache =
new PredictionContextCache();
public static final int
T__0=1, T__1=2, T__2=3, T__3=4, T__4=5, T__5=6, T__6=7, T__7=8, T__8=9,
T__9=10, T__10=11, T__11=12, T__12=13, T__13=14, BooleanValue=15, NullValue=16,
FRAGMENT=17, QUERY=18, MUTATION=19, SUBSCRIPTION=20, SCHEMA=21, SCALAR=22,
TYPE=23, INTERFACE=24, IMPLEMENTS=25, ENUM=26, UNION=27, INPUT=28, EXTEND=29,
DIRECTIVE=30, ON_KEYWORD=31, NAME=32, IntValue=33, FloatValue=34, Sign=35,
IntegerPart=36, NonZeroDigit=37, ExponentPart=38, Digit=39, StringValue=40,
TripleQuotedStringValue=41, Comment=42, LF=43, CR=44, LineTerminator=45,
Space=46, Tab=47, Comma=48, UnicodeBOM=49;
public static final int
RULE_document = 0, RULE_definition = 1, RULE_typeSystemDefinition = 2,
RULE_typeSystemExtension = 3, RULE_schemaDefinition = 4, RULE_schemaExtension = 5,
RULE_operationTypeDefinition = 6, RULE_typeDefinition = 7, RULE_typeExtension = 8,
RULE_emptyParentheses = 9, RULE_scalarTypeDefinition = 10, RULE_scalarTypeExtensionDefinition = 11,
RULE_objectTypeDefinition = 12, RULE_objectTypeExtensionDefinition = 13,
RULE_implementsInterfaces = 14, RULE_fieldsDefinition = 15, RULE_extensionFieldsDefinition = 16,
RULE_fieldDefinition = 17, RULE_argumentsDefinition = 18, RULE_inputValueDefinition = 19,
RULE_interfaceTypeDefinition = 20, RULE_interfaceTypeExtensionDefinition = 21,
RULE_unionTypeDefinition = 22, RULE_unionTypeExtensionDefinition = 23,
RULE_unionMembership = 24, RULE_unionMembers = 25, RULE_enumTypeDefinition = 26,
RULE_enumTypeExtensionDefinition = 27, RULE_enumValueDefinitions = 28,
RULE_extensionEnumValueDefinitions = 29, RULE_enumValueDefinition = 30,
RULE_inputObjectTypeDefinition = 31, RULE_inputObjectTypeExtensionDefinition = 32,
RULE_inputObjectValueDefinitions = 33, RULE_extensionInputObjectValueDefinitions = 34,
RULE_directiveDefinition = 35, RULE_directiveLocation = 36, RULE_directiveLocations = 37,
RULE_operationType = 38, RULE_description = 39, RULE_enumValue = 40, RULE_arrayValue = 41,
RULE_arrayValueWithVariable = 42, RULE_objectValue = 43, RULE_objectValueWithVariable = 44,
RULE_objectField = 45, RULE_objectFieldWithVariable = 46, RULE_directives = 47,
RULE_directive = 48, RULE_arguments = 49, RULE_argument = 50, RULE_baseName = 51,
RULE_fragmentName = 52, RULE_enumValueName = 53, RULE_name = 54, RULE_value = 55,
RULE_valueWithVariable = 56, RULE_variable = 57, RULE_defaultValue = 58,
RULE_stringValue = 59, RULE_type = 60, RULE_typeName = 61, RULE_listType = 62,
RULE_nonNullType = 63, RULE_operationDefinition = 64, RULE_variableDefinitions = 65,
RULE_variableDefinition = 66, RULE_selectionSet = 67, RULE_selection = 68,
RULE_field = 69, RULE_alias = 70, RULE_fragmentSpread = 71, RULE_inlineFragment = 72,
RULE_fragmentDefinition = 73, RULE_typeCondition = 74;
private static String[] makeRuleNames() {
return new String[] {
"document", "definition", "typeSystemDefinition", "typeSystemExtension",
"schemaDefinition", "schemaExtension", "operationTypeDefinition", "typeDefinition",
"typeExtension", "emptyParentheses", "scalarTypeDefinition", "scalarTypeExtensionDefinition",
"objectTypeDefinition", "objectTypeExtensionDefinition", "implementsInterfaces",
"fieldsDefinition", "extensionFieldsDefinition", "fieldDefinition", "argumentsDefinition",
"inputValueDefinition", "interfaceTypeDefinition", "interfaceTypeExtensionDefinition",
"unionTypeDefinition", "unionTypeExtensionDefinition", "unionMembership",
"unionMembers", "enumTypeDefinition", "enumTypeExtensionDefinition",
"enumValueDefinitions", "extensionEnumValueDefinitions", "enumValueDefinition",
"inputObjectTypeDefinition", "inputObjectTypeExtensionDefinition", "inputObjectValueDefinitions",
"extensionInputObjectValueDefinitions", "directiveDefinition", "directiveLocation",
"directiveLocations", "operationType", "description", "enumValue", "arrayValue",
"arrayValueWithVariable", "objectValue", "objectValueWithVariable", "objectField",
"objectFieldWithVariable", "directives", "directive", "arguments", "argument",
"baseName", "fragmentName", "enumValueName", "name", "value", "valueWithVariable",
"variable", "defaultValue", "stringValue", "type", "typeName", "listType",
"nonNullType", "operationDefinition", "variableDefinitions", "variableDefinition",
"selectionSet", "selection", "field", "alias", "fragmentSpread", "inlineFragment",
"fragmentDefinition", "typeCondition"
};
}
public static final String[] ruleNames = makeRuleNames();
private static String[] makeLiteralNames() {
return new String[] {
null, "'{'", "'}'", "':'", "'&'", "'('", "')'", "'='", "'|'", "'@'",
"'['", "']'", "'$'", "'!'", "'...'", null, "'null'", "'fragment'", "'query'",
"'mutation'", "'subscription'", "'schema'", "'scalar'", "'type'", "'interface'",
"'implements'", "'enum'", "'union'", "'input'", "'extend'", "'directive'",
"'on'", null, null, null, "'-'", null, null, null, null, null, null,
null, null, null, null, null, null, "','"
};
}
private static final String[] _LITERAL_NAMES = makeLiteralNames();
private static String[] makeSymbolicNames() {
return new String[] {
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, "BooleanValue", "NullValue", "FRAGMENT", "QUERY", "MUTATION",
"SUBSCRIPTION", "SCHEMA", "SCALAR", "TYPE", "INTERFACE", "IMPLEMENTS",
"ENUM", "UNION", "INPUT", "EXTEND", "DIRECTIVE", "ON_KEYWORD", "NAME",
"IntValue", "FloatValue", "Sign", "IntegerPart", "NonZeroDigit", "ExponentPart",
"Digit", "StringValue", "TripleQuotedStringValue", "Comment", "LF", "CR",
"LineTerminator", "Space", "Tab", "Comma", "UnicodeBOM"
};
}
private static final String[] _SYMBOLIC_NAMES = makeSymbolicNames();
public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES);
/**
* @deprecated Use {@link #VOCABULARY} instead.
*/
@Deprecated
public static final String[] tokenNames;
static {
tokenNames = new String[_SYMBOLIC_NAMES.length];
for (int i = 0; i < tokenNames.length; i++) {
tokenNames[i] = VOCABULARY.getLiteralName(i);
if (tokenNames[i] == null) {
tokenNames[i] = VOCABULARY.getSymbolicName(i);
}
if (tokenNames[i] == null) {
tokenNames[i] = "";
}
}
}
@Override
@Deprecated
public String[] getTokenNames() {
return tokenNames;
}
@Override
public Vocabulary getVocabulary() {
return VOCABULARY;
}
@Override
public String getGrammarFileName() { return "Graphql.g4"; }
@Override
public String[] getRuleNames() { return ruleNames; }
@Override
public String getSerializedATN() { return _serializedATN; }
@Override
public ATN getATN() { return _ATN; }
public GraphqlParser(TokenStream input) {
super(input);
_interp = new ParserATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
public static class DocumentContext extends ParserRuleContext {
public List definition() {
return getRuleContexts(DefinitionContext.class);
}
public DefinitionContext definition(int i) {
return getRuleContext(DefinitionContext.class,i);
}
public DocumentContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_document; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterDocument(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitDocument(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitDocument(this);
else return visitor.visitChildren(this);
}
}
public final DocumentContext document() throws RecognitionException {
DocumentContext _localctx = new DocumentContext(_ctx, getState());
enterRule(_localctx, 0, RULE_document);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(151);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(150);
definition();
}
}
setState(153);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__0) | (1L << FRAGMENT) | (1L << QUERY) | (1L << MUTATION) | (1L << SUBSCRIPTION) | (1L << SCHEMA) | (1L << SCALAR) | (1L << TYPE) | (1L << INTERFACE) | (1L << ENUM) | (1L << UNION) | (1L << INPUT) | (1L << EXTEND) | (1L << DIRECTIVE) | (1L << StringValue) | (1L << TripleQuotedStringValue))) != 0) );
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class DefinitionContext extends ParserRuleContext {
public OperationDefinitionContext operationDefinition() {
return getRuleContext(OperationDefinitionContext.class,0);
}
public FragmentDefinitionContext fragmentDefinition() {
return getRuleContext(FragmentDefinitionContext.class,0);
}
public TypeSystemDefinitionContext typeSystemDefinition() {
return getRuleContext(TypeSystemDefinitionContext.class,0);
}
public TypeSystemExtensionContext typeSystemExtension() {
return getRuleContext(TypeSystemExtensionContext.class,0);
}
public DefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_definition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitDefinition(this);
else return visitor.visitChildren(this);
}
}
public final DefinitionContext definition() throws RecognitionException {
DefinitionContext _localctx = new DefinitionContext(_ctx, getState());
enterRule(_localctx, 2, RULE_definition);
try {
setState(159);
_errHandler.sync(this);
switch (_input.LA(1)) {
case T__0:
case QUERY:
case MUTATION:
case SUBSCRIPTION:
enterOuterAlt(_localctx, 1);
{
setState(155);
operationDefinition();
}
break;
case FRAGMENT:
enterOuterAlt(_localctx, 2);
{
setState(156);
fragmentDefinition();
}
break;
case SCHEMA:
case SCALAR:
case TYPE:
case INTERFACE:
case ENUM:
case UNION:
case INPUT:
case DIRECTIVE:
case StringValue:
case TripleQuotedStringValue:
enterOuterAlt(_localctx, 3);
{
setState(157);
typeSystemDefinition();
}
break;
case EXTEND:
enterOuterAlt(_localctx, 4);
{
setState(158);
typeSystemExtension();
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class TypeSystemDefinitionContext extends ParserRuleContext {
public SchemaDefinitionContext schemaDefinition() {
return getRuleContext(SchemaDefinitionContext.class,0);
}
public TypeDefinitionContext typeDefinition() {
return getRuleContext(TypeDefinitionContext.class,0);
}
public DirectiveDefinitionContext directiveDefinition() {
return getRuleContext(DirectiveDefinitionContext.class,0);
}
public TypeSystemDefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_typeSystemDefinition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterTypeSystemDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitTypeSystemDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitTypeSystemDefinition(this);
else return visitor.visitChildren(this);
}
}
public final TypeSystemDefinitionContext typeSystemDefinition() throws RecognitionException {
TypeSystemDefinitionContext _localctx = new TypeSystemDefinitionContext(_ctx, getState());
enterRule(_localctx, 4, RULE_typeSystemDefinition);
try {
setState(164);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,2,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(161);
schemaDefinition();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(162);
typeDefinition();
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(163);
directiveDefinition();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class TypeSystemExtensionContext extends ParserRuleContext {
public SchemaExtensionContext schemaExtension() {
return getRuleContext(SchemaExtensionContext.class,0);
}
public TypeExtensionContext typeExtension() {
return getRuleContext(TypeExtensionContext.class,0);
}
public TypeSystemExtensionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_typeSystemExtension; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterTypeSystemExtension(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitTypeSystemExtension(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitTypeSystemExtension(this);
else return visitor.visitChildren(this);
}
}
public final TypeSystemExtensionContext typeSystemExtension() throws RecognitionException {
TypeSystemExtensionContext _localctx = new TypeSystemExtensionContext(_ctx, getState());
enterRule(_localctx, 6, RULE_typeSystemExtension);
try {
setState(168);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,3,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(166);
schemaExtension();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(167);
typeExtension();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class SchemaDefinitionContext extends ParserRuleContext {
public TerminalNode SCHEMA() { return getToken(GraphqlParser.SCHEMA, 0); }
public DescriptionContext description() {
return getRuleContext(DescriptionContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public List operationTypeDefinition() {
return getRuleContexts(OperationTypeDefinitionContext.class);
}
public OperationTypeDefinitionContext operationTypeDefinition(int i) {
return getRuleContext(OperationTypeDefinitionContext.class,i);
}
public SchemaDefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_schemaDefinition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterSchemaDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitSchemaDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitSchemaDefinition(this);
else return visitor.visitChildren(this);
}
}
public final SchemaDefinitionContext schemaDefinition() throws RecognitionException {
SchemaDefinitionContext _localctx = new SchemaDefinitionContext(_ctx, getState());
enterRule(_localctx, 8, RULE_schemaDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(171);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==StringValue || _la==TripleQuotedStringValue) {
{
setState(170);
description();
}
}
setState(173);
match(SCHEMA);
setState(175);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__8) {
{
setState(174);
directives();
}
}
setState(177);
match(T__0);
setState(179);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(178);
operationTypeDefinition();
}
}
setState(181);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << QUERY) | (1L << MUTATION) | (1L << SUBSCRIPTION) | (1L << StringValue) | (1L << TripleQuotedStringValue))) != 0) );
setState(183);
match(T__1);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class SchemaExtensionContext extends ParserRuleContext {
public TerminalNode EXTEND() { return getToken(GraphqlParser.EXTEND, 0); }
public TerminalNode SCHEMA() { return getToken(GraphqlParser.SCHEMA, 0); }
public List directives() {
return getRuleContexts(DirectivesContext.class);
}
public DirectivesContext directives(int i) {
return getRuleContext(DirectivesContext.class,i);
}
public List operationTypeDefinition() {
return getRuleContexts(OperationTypeDefinitionContext.class);
}
public OperationTypeDefinitionContext operationTypeDefinition(int i) {
return getRuleContext(OperationTypeDefinitionContext.class,i);
}
public SchemaExtensionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_schemaExtension; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterSchemaExtension(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitSchemaExtension(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitSchemaExtension(this);
else return visitor.visitChildren(this);
}
}
public final SchemaExtensionContext schemaExtension() throws RecognitionException {
SchemaExtensionContext _localctx = new SchemaExtensionContext(_ctx, getState());
enterRule(_localctx, 10, RULE_schemaExtension);
int _la;
try {
setState(205);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,10,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(185);
match(EXTEND);
setState(186);
match(SCHEMA);
setState(188);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__8) {
{
setState(187);
directives();
}
}
setState(190);
match(T__0);
setState(192);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(191);
operationTypeDefinition();
}
}
setState(194);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << QUERY) | (1L << MUTATION) | (1L << SUBSCRIPTION) | (1L << StringValue) | (1L << TripleQuotedStringValue))) != 0) );
setState(196);
match(T__1);
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(198);
match(EXTEND);
setState(199);
match(SCHEMA);
setState(201);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(200);
directives();
}
}
setState(203);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( _la==T__8 );
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class OperationTypeDefinitionContext extends ParserRuleContext {
public OperationTypeContext operationType() {
return getRuleContext(OperationTypeContext.class,0);
}
public TypeNameContext typeName() {
return getRuleContext(TypeNameContext.class,0);
}
public DescriptionContext description() {
return getRuleContext(DescriptionContext.class,0);
}
public OperationTypeDefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_operationTypeDefinition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterOperationTypeDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitOperationTypeDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitOperationTypeDefinition(this);
else return visitor.visitChildren(this);
}
}
public final OperationTypeDefinitionContext operationTypeDefinition() throws RecognitionException {
OperationTypeDefinitionContext _localctx = new OperationTypeDefinitionContext(_ctx, getState());
enterRule(_localctx, 12, RULE_operationTypeDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(208);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==StringValue || _la==TripleQuotedStringValue) {
{
setState(207);
description();
}
}
setState(210);
operationType();
setState(211);
match(T__2);
setState(212);
typeName();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class TypeDefinitionContext extends ParserRuleContext {
public ScalarTypeDefinitionContext scalarTypeDefinition() {
return getRuleContext(ScalarTypeDefinitionContext.class,0);
}
public ObjectTypeDefinitionContext objectTypeDefinition() {
return getRuleContext(ObjectTypeDefinitionContext.class,0);
}
public InterfaceTypeDefinitionContext interfaceTypeDefinition() {
return getRuleContext(InterfaceTypeDefinitionContext.class,0);
}
public UnionTypeDefinitionContext unionTypeDefinition() {
return getRuleContext(UnionTypeDefinitionContext.class,0);
}
public EnumTypeDefinitionContext enumTypeDefinition() {
return getRuleContext(EnumTypeDefinitionContext.class,0);
}
public InputObjectTypeDefinitionContext inputObjectTypeDefinition() {
return getRuleContext(InputObjectTypeDefinitionContext.class,0);
}
public TypeDefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_typeDefinition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterTypeDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitTypeDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitTypeDefinition(this);
else return visitor.visitChildren(this);
}
}
public final TypeDefinitionContext typeDefinition() throws RecognitionException {
TypeDefinitionContext _localctx = new TypeDefinitionContext(_ctx, getState());
enterRule(_localctx, 14, RULE_typeDefinition);
try {
setState(220);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,12,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(214);
scalarTypeDefinition();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(215);
objectTypeDefinition();
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(216);
interfaceTypeDefinition();
}
break;
case 4:
enterOuterAlt(_localctx, 4);
{
setState(217);
unionTypeDefinition();
}
break;
case 5:
enterOuterAlt(_localctx, 5);
{
setState(218);
enumTypeDefinition();
}
break;
case 6:
enterOuterAlt(_localctx, 6);
{
setState(219);
inputObjectTypeDefinition();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class TypeExtensionContext extends ParserRuleContext {
public ObjectTypeExtensionDefinitionContext objectTypeExtensionDefinition() {
return getRuleContext(ObjectTypeExtensionDefinitionContext.class,0);
}
public InterfaceTypeExtensionDefinitionContext interfaceTypeExtensionDefinition() {
return getRuleContext(InterfaceTypeExtensionDefinitionContext.class,0);
}
public UnionTypeExtensionDefinitionContext unionTypeExtensionDefinition() {
return getRuleContext(UnionTypeExtensionDefinitionContext.class,0);
}
public ScalarTypeExtensionDefinitionContext scalarTypeExtensionDefinition() {
return getRuleContext(ScalarTypeExtensionDefinitionContext.class,0);
}
public EnumTypeExtensionDefinitionContext enumTypeExtensionDefinition() {
return getRuleContext(EnumTypeExtensionDefinitionContext.class,0);
}
public InputObjectTypeExtensionDefinitionContext inputObjectTypeExtensionDefinition() {
return getRuleContext(InputObjectTypeExtensionDefinitionContext.class,0);
}
public TypeExtensionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_typeExtension; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterTypeExtension(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitTypeExtension(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitTypeExtension(this);
else return visitor.visitChildren(this);
}
}
public final TypeExtensionContext typeExtension() throws RecognitionException {
TypeExtensionContext _localctx = new TypeExtensionContext(_ctx, getState());
enterRule(_localctx, 16, RULE_typeExtension);
try {
setState(228);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,13,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(222);
objectTypeExtensionDefinition();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(223);
interfaceTypeExtensionDefinition();
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(224);
unionTypeExtensionDefinition();
}
break;
case 4:
enterOuterAlt(_localctx, 4);
{
setState(225);
scalarTypeExtensionDefinition();
}
break;
case 5:
enterOuterAlt(_localctx, 5);
{
setState(226);
enumTypeExtensionDefinition();
}
break;
case 6:
enterOuterAlt(_localctx, 6);
{
setState(227);
inputObjectTypeExtensionDefinition();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class EmptyParenthesesContext extends ParserRuleContext {
public EmptyParenthesesContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_emptyParentheses; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterEmptyParentheses(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitEmptyParentheses(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitEmptyParentheses(this);
else return visitor.visitChildren(this);
}
}
public final EmptyParenthesesContext emptyParentheses() throws RecognitionException {
EmptyParenthesesContext _localctx = new EmptyParenthesesContext(_ctx, getState());
enterRule(_localctx, 18, RULE_emptyParentheses);
try {
enterOuterAlt(_localctx, 1);
{
setState(230);
match(T__0);
setState(231);
match(T__1);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ScalarTypeDefinitionContext extends ParserRuleContext {
public TerminalNode SCALAR() { return getToken(GraphqlParser.SCALAR, 0); }
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public DescriptionContext description() {
return getRuleContext(DescriptionContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public ScalarTypeDefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_scalarTypeDefinition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterScalarTypeDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitScalarTypeDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitScalarTypeDefinition(this);
else return visitor.visitChildren(this);
}
}
public final ScalarTypeDefinitionContext scalarTypeDefinition() throws RecognitionException {
ScalarTypeDefinitionContext _localctx = new ScalarTypeDefinitionContext(_ctx, getState());
enterRule(_localctx, 20, RULE_scalarTypeDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(234);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==StringValue || _la==TripleQuotedStringValue) {
{
setState(233);
description();
}
}
setState(236);
match(SCALAR);
setState(237);
name();
setState(239);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__8) {
{
setState(238);
directives();
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ScalarTypeExtensionDefinitionContext extends ParserRuleContext {
public TerminalNode EXTEND() { return getToken(GraphqlParser.EXTEND, 0); }
public TerminalNode SCALAR() { return getToken(GraphqlParser.SCALAR, 0); }
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public ScalarTypeExtensionDefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_scalarTypeExtensionDefinition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterScalarTypeExtensionDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitScalarTypeExtensionDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitScalarTypeExtensionDefinition(this);
else return visitor.visitChildren(this);
}
}
public final ScalarTypeExtensionDefinitionContext scalarTypeExtensionDefinition() throws RecognitionException {
ScalarTypeExtensionDefinitionContext _localctx = new ScalarTypeExtensionDefinitionContext(_ctx, getState());
enterRule(_localctx, 22, RULE_scalarTypeExtensionDefinition);
try {
enterOuterAlt(_localctx, 1);
{
setState(241);
match(EXTEND);
setState(242);
match(SCALAR);
setState(243);
name();
setState(244);
directives();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ObjectTypeDefinitionContext extends ParserRuleContext {
public TerminalNode TYPE() { return getToken(GraphqlParser.TYPE, 0); }
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public DescriptionContext description() {
return getRuleContext(DescriptionContext.class,0);
}
public ImplementsInterfacesContext implementsInterfaces() {
return getRuleContext(ImplementsInterfacesContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public FieldsDefinitionContext fieldsDefinition() {
return getRuleContext(FieldsDefinitionContext.class,0);
}
public ObjectTypeDefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_objectTypeDefinition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterObjectTypeDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitObjectTypeDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitObjectTypeDefinition(this);
else return visitor.visitChildren(this);
}
}
public final ObjectTypeDefinitionContext objectTypeDefinition() throws RecognitionException {
ObjectTypeDefinitionContext _localctx = new ObjectTypeDefinitionContext(_ctx, getState());
enterRule(_localctx, 24, RULE_objectTypeDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(247);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==StringValue || _la==TripleQuotedStringValue) {
{
setState(246);
description();
}
}
setState(249);
match(TYPE);
setState(250);
name();
setState(252);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==IMPLEMENTS) {
{
setState(251);
implementsInterfaces(0);
}
}
setState(255);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__8) {
{
setState(254);
directives();
}
}
setState(258);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,19,_ctx) ) {
case 1:
{
setState(257);
fieldsDefinition();
}
break;
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ObjectTypeExtensionDefinitionContext extends ParserRuleContext {
public TerminalNode EXTEND() { return getToken(GraphqlParser.EXTEND, 0); }
public TerminalNode TYPE() { return getToken(GraphqlParser.TYPE, 0); }
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public ExtensionFieldsDefinitionContext extensionFieldsDefinition() {
return getRuleContext(ExtensionFieldsDefinitionContext.class,0);
}
public ImplementsInterfacesContext implementsInterfaces() {
return getRuleContext(ImplementsInterfacesContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public EmptyParenthesesContext emptyParentheses() {
return getRuleContext(EmptyParenthesesContext.class,0);
}
public ObjectTypeExtensionDefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_objectTypeExtensionDefinition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterObjectTypeExtensionDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitObjectTypeExtensionDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitObjectTypeExtensionDefinition(this);
else return visitor.visitChildren(this);
}
}
public final ObjectTypeExtensionDefinitionContext objectTypeExtensionDefinition() throws RecognitionException {
ObjectTypeExtensionDefinitionContext _localctx = new ObjectTypeExtensionDefinitionContext(_ctx, getState());
enterRule(_localctx, 26, RULE_objectTypeExtensionDefinition);
int _la;
try {
setState(286);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,24,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(260);
match(EXTEND);
setState(261);
match(TYPE);
setState(262);
name();
setState(264);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==IMPLEMENTS) {
{
setState(263);
implementsInterfaces(0);
}
}
setState(267);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__8) {
{
setState(266);
directives();
}
}
setState(269);
extensionFieldsDefinition();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(271);
match(EXTEND);
setState(272);
match(TYPE);
setState(273);
name();
setState(275);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==IMPLEMENTS) {
{
setState(274);
implementsInterfaces(0);
}
}
setState(277);
directives();
setState(279);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,23,_ctx) ) {
case 1:
{
setState(278);
emptyParentheses();
}
break;
}
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(281);
match(EXTEND);
setState(282);
match(TYPE);
setState(283);
name();
setState(284);
implementsInterfaces(0);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ImplementsInterfacesContext extends ParserRuleContext {
public TerminalNode IMPLEMENTS() { return getToken(GraphqlParser.IMPLEMENTS, 0); }
public List typeName() {
return getRuleContexts(TypeNameContext.class);
}
public TypeNameContext typeName(int i) {
return getRuleContext(TypeNameContext.class,i);
}
public ImplementsInterfacesContext implementsInterfaces() {
return getRuleContext(ImplementsInterfacesContext.class,0);
}
public ImplementsInterfacesContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_implementsInterfaces; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterImplementsInterfaces(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitImplementsInterfaces(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitImplementsInterfaces(this);
else return visitor.visitChildren(this);
}
}
public final ImplementsInterfacesContext implementsInterfaces() throws RecognitionException {
return implementsInterfaces(0);
}
private ImplementsInterfacesContext implementsInterfaces(int _p) throws RecognitionException {
ParserRuleContext _parentctx = _ctx;
int _parentState = getState();
ImplementsInterfacesContext _localctx = new ImplementsInterfacesContext(_ctx, _parentState);
ImplementsInterfacesContext _prevctx = _localctx;
int _startState = 28;
enterRecursionRule(_localctx, 28, RULE_implementsInterfaces, _p);
int _la;
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
{
setState(289);
match(IMPLEMENTS);
setState(291);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__3) {
{
setState(290);
match(T__3);
}
}
setState(294);
_errHandler.sync(this);
_alt = 1;
do {
switch (_alt) {
case 1:
{
{
setState(293);
typeName();
}
}
break;
default:
throw new NoViableAltException(this);
}
setState(296);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,26,_ctx);
} while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER );
}
_ctx.stop = _input.LT(-1);
setState(303);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,27,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
if ( _parseListeners!=null ) triggerExitRuleEvent();
_prevctx = _localctx;
{
{
_localctx = new ImplementsInterfacesContext(_parentctx, _parentState);
pushNewRecursionContext(_localctx, _startState, RULE_implementsInterfaces);
setState(298);
if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)");
setState(299);
match(T__3);
setState(300);
typeName();
}
}
}
setState(305);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,27,_ctx);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
unrollRecursionContexts(_parentctx);
}
return _localctx;
}
public static class FieldsDefinitionContext extends ParserRuleContext {
public List fieldDefinition() {
return getRuleContexts(FieldDefinitionContext.class);
}
public FieldDefinitionContext fieldDefinition(int i) {
return getRuleContext(FieldDefinitionContext.class,i);
}
public FieldsDefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_fieldsDefinition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterFieldsDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitFieldsDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitFieldsDefinition(this);
else return visitor.visitChildren(this);
}
}
public final FieldsDefinitionContext fieldsDefinition() throws RecognitionException {
FieldsDefinitionContext _localctx = new FieldsDefinitionContext(_ctx, getState());
enterRule(_localctx, 30, RULE_fieldsDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(306);
match(T__0);
setState(310);
_errHandler.sync(this);
_la = _input.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << BooleanValue) | (1L << NullValue) | (1L << FRAGMENT) | (1L << QUERY) | (1L << MUTATION) | (1L << SUBSCRIPTION) | (1L << SCHEMA) | (1L << SCALAR) | (1L << TYPE) | (1L << INTERFACE) | (1L << IMPLEMENTS) | (1L << ENUM) | (1L << UNION) | (1L << INPUT) | (1L << EXTEND) | (1L << DIRECTIVE) | (1L << ON_KEYWORD) | (1L << NAME) | (1L << StringValue) | (1L << TripleQuotedStringValue))) != 0)) {
{
{
setState(307);
fieldDefinition();
}
}
setState(312);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(313);
match(T__1);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ExtensionFieldsDefinitionContext extends ParserRuleContext {
public List fieldDefinition() {
return getRuleContexts(FieldDefinitionContext.class);
}
public FieldDefinitionContext fieldDefinition(int i) {
return getRuleContext(FieldDefinitionContext.class,i);
}
public ExtensionFieldsDefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_extensionFieldsDefinition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterExtensionFieldsDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitExtensionFieldsDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitExtensionFieldsDefinition(this);
else return visitor.visitChildren(this);
}
}
public final ExtensionFieldsDefinitionContext extensionFieldsDefinition() throws RecognitionException {
ExtensionFieldsDefinitionContext _localctx = new ExtensionFieldsDefinitionContext(_ctx, getState());
enterRule(_localctx, 32, RULE_extensionFieldsDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(315);
match(T__0);
setState(317);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(316);
fieldDefinition();
}
}
setState(319);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << BooleanValue) | (1L << NullValue) | (1L << FRAGMENT) | (1L << QUERY) | (1L << MUTATION) | (1L << SUBSCRIPTION) | (1L << SCHEMA) | (1L << SCALAR) | (1L << TYPE) | (1L << INTERFACE) | (1L << IMPLEMENTS) | (1L << ENUM) | (1L << UNION) | (1L << INPUT) | (1L << EXTEND) | (1L << DIRECTIVE) | (1L << ON_KEYWORD) | (1L << NAME) | (1L << StringValue) | (1L << TripleQuotedStringValue))) != 0) );
setState(321);
match(T__1);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class FieldDefinitionContext extends ParserRuleContext {
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public TypeContext type() {
return getRuleContext(TypeContext.class,0);
}
public DescriptionContext description() {
return getRuleContext(DescriptionContext.class,0);
}
public ArgumentsDefinitionContext argumentsDefinition() {
return getRuleContext(ArgumentsDefinitionContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public FieldDefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_fieldDefinition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterFieldDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitFieldDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitFieldDefinition(this);
else return visitor.visitChildren(this);
}
}
public final FieldDefinitionContext fieldDefinition() throws RecognitionException {
FieldDefinitionContext _localctx = new FieldDefinitionContext(_ctx, getState());
enterRule(_localctx, 34, RULE_fieldDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(324);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==StringValue || _la==TripleQuotedStringValue) {
{
setState(323);
description();
}
}
setState(326);
name();
setState(328);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__4) {
{
setState(327);
argumentsDefinition();
}
}
setState(330);
match(T__2);
setState(331);
type();
setState(333);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__8) {
{
setState(332);
directives();
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ArgumentsDefinitionContext extends ParserRuleContext {
public List inputValueDefinition() {
return getRuleContexts(InputValueDefinitionContext.class);
}
public InputValueDefinitionContext inputValueDefinition(int i) {
return getRuleContext(InputValueDefinitionContext.class,i);
}
public ArgumentsDefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_argumentsDefinition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterArgumentsDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitArgumentsDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitArgumentsDefinition(this);
else return visitor.visitChildren(this);
}
}
public final ArgumentsDefinitionContext argumentsDefinition() throws RecognitionException {
ArgumentsDefinitionContext _localctx = new ArgumentsDefinitionContext(_ctx, getState());
enterRule(_localctx, 36, RULE_argumentsDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(335);
match(T__4);
setState(337);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(336);
inputValueDefinition();
}
}
setState(339);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << BooleanValue) | (1L << NullValue) | (1L << FRAGMENT) | (1L << QUERY) | (1L << MUTATION) | (1L << SUBSCRIPTION) | (1L << SCHEMA) | (1L << SCALAR) | (1L << TYPE) | (1L << INTERFACE) | (1L << IMPLEMENTS) | (1L << ENUM) | (1L << UNION) | (1L << INPUT) | (1L << EXTEND) | (1L << DIRECTIVE) | (1L << ON_KEYWORD) | (1L << NAME) | (1L << StringValue) | (1L << TripleQuotedStringValue))) != 0) );
setState(341);
match(T__5);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class InputValueDefinitionContext extends ParserRuleContext {
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public TypeContext type() {
return getRuleContext(TypeContext.class,0);
}
public DescriptionContext description() {
return getRuleContext(DescriptionContext.class,0);
}
public DefaultValueContext defaultValue() {
return getRuleContext(DefaultValueContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public InputValueDefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_inputValueDefinition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterInputValueDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitInputValueDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitInputValueDefinition(this);
else return visitor.visitChildren(this);
}
}
public final InputValueDefinitionContext inputValueDefinition() throws RecognitionException {
InputValueDefinitionContext _localctx = new InputValueDefinitionContext(_ctx, getState());
enterRule(_localctx, 38, RULE_inputValueDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(344);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==StringValue || _la==TripleQuotedStringValue) {
{
setState(343);
description();
}
}
setState(346);
name();
setState(347);
match(T__2);
setState(348);
type();
setState(350);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__6) {
{
setState(349);
defaultValue();
}
}
setState(353);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__8) {
{
setState(352);
directives();
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class InterfaceTypeDefinitionContext extends ParserRuleContext {
public TerminalNode INTERFACE() { return getToken(GraphqlParser.INTERFACE, 0); }
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public DescriptionContext description() {
return getRuleContext(DescriptionContext.class,0);
}
public ImplementsInterfacesContext implementsInterfaces() {
return getRuleContext(ImplementsInterfacesContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public FieldsDefinitionContext fieldsDefinition() {
return getRuleContext(FieldsDefinitionContext.class,0);
}
public InterfaceTypeDefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_interfaceTypeDefinition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterInterfaceTypeDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitInterfaceTypeDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitInterfaceTypeDefinition(this);
else return visitor.visitChildren(this);
}
}
public final InterfaceTypeDefinitionContext interfaceTypeDefinition() throws RecognitionException {
InterfaceTypeDefinitionContext _localctx = new InterfaceTypeDefinitionContext(_ctx, getState());
enterRule(_localctx, 40, RULE_interfaceTypeDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(356);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==StringValue || _la==TripleQuotedStringValue) {
{
setState(355);
description();
}
}
setState(358);
match(INTERFACE);
setState(359);
name();
setState(361);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==IMPLEMENTS) {
{
setState(360);
implementsInterfaces(0);
}
}
setState(364);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__8) {
{
setState(363);
directives();
}
}
setState(367);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,40,_ctx) ) {
case 1:
{
setState(366);
fieldsDefinition();
}
break;
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class InterfaceTypeExtensionDefinitionContext extends ParserRuleContext {
public TerminalNode EXTEND() { return getToken(GraphqlParser.EXTEND, 0); }
public TerminalNode INTERFACE() { return getToken(GraphqlParser.INTERFACE, 0); }
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public ExtensionFieldsDefinitionContext extensionFieldsDefinition() {
return getRuleContext(ExtensionFieldsDefinitionContext.class,0);
}
public ImplementsInterfacesContext implementsInterfaces() {
return getRuleContext(ImplementsInterfacesContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public EmptyParenthesesContext emptyParentheses() {
return getRuleContext(EmptyParenthesesContext.class,0);
}
public InterfaceTypeExtensionDefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_interfaceTypeExtensionDefinition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterInterfaceTypeExtensionDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitInterfaceTypeExtensionDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitInterfaceTypeExtensionDefinition(this);
else return visitor.visitChildren(this);
}
}
public final InterfaceTypeExtensionDefinitionContext interfaceTypeExtensionDefinition() throws RecognitionException {
InterfaceTypeExtensionDefinitionContext _localctx = new InterfaceTypeExtensionDefinitionContext(_ctx, getState());
enterRule(_localctx, 42, RULE_interfaceTypeExtensionDefinition);
int _la;
try {
setState(395);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,45,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(369);
match(EXTEND);
setState(370);
match(INTERFACE);
setState(371);
name();
setState(373);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==IMPLEMENTS) {
{
setState(372);
implementsInterfaces(0);
}
}
setState(376);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__8) {
{
setState(375);
directives();
}
}
setState(378);
extensionFieldsDefinition();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(380);
match(EXTEND);
setState(381);
match(INTERFACE);
setState(382);
name();
setState(384);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==IMPLEMENTS) {
{
setState(383);
implementsInterfaces(0);
}
}
setState(386);
directives();
setState(388);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,44,_ctx) ) {
case 1:
{
setState(387);
emptyParentheses();
}
break;
}
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(390);
match(EXTEND);
setState(391);
match(INTERFACE);
setState(392);
name();
setState(393);
implementsInterfaces(0);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class UnionTypeDefinitionContext extends ParserRuleContext {
public TerminalNode UNION() { return getToken(GraphqlParser.UNION, 0); }
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public DescriptionContext description() {
return getRuleContext(DescriptionContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public UnionMembershipContext unionMembership() {
return getRuleContext(UnionMembershipContext.class,0);
}
public UnionTypeDefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_unionTypeDefinition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterUnionTypeDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitUnionTypeDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitUnionTypeDefinition(this);
else return visitor.visitChildren(this);
}
}
public final UnionTypeDefinitionContext unionTypeDefinition() throws RecognitionException {
UnionTypeDefinitionContext _localctx = new UnionTypeDefinitionContext(_ctx, getState());
enterRule(_localctx, 44, RULE_unionTypeDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(398);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==StringValue || _la==TripleQuotedStringValue) {
{
setState(397);
description();
}
}
setState(400);
match(UNION);
setState(401);
name();
setState(403);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__8) {
{
setState(402);
directives();
}
}
setState(406);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__6) {
{
setState(405);
unionMembership();
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class UnionTypeExtensionDefinitionContext extends ParserRuleContext {
public TerminalNode EXTEND() { return getToken(GraphqlParser.EXTEND, 0); }
public TerminalNode UNION() { return getToken(GraphqlParser.UNION, 0); }
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public UnionMembershipContext unionMembership() {
return getRuleContext(UnionMembershipContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public UnionTypeExtensionDefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_unionTypeExtensionDefinition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterUnionTypeExtensionDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitUnionTypeExtensionDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitUnionTypeExtensionDefinition(this);
else return visitor.visitChildren(this);
}
}
public final UnionTypeExtensionDefinitionContext unionTypeExtensionDefinition() throws RecognitionException {
UnionTypeExtensionDefinitionContext _localctx = new UnionTypeExtensionDefinitionContext(_ctx, getState());
enterRule(_localctx, 46, RULE_unionTypeExtensionDefinition);
int _la;
try {
setState(421);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,50,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(408);
match(EXTEND);
setState(409);
match(UNION);
setState(410);
name();
setState(412);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__8) {
{
setState(411);
directives();
}
}
setState(414);
unionMembership();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(416);
match(EXTEND);
setState(417);
match(UNION);
setState(418);
name();
setState(419);
directives();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class UnionMembershipContext extends ParserRuleContext {
public UnionMembersContext unionMembers() {
return getRuleContext(UnionMembersContext.class,0);
}
public UnionMembershipContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_unionMembership; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterUnionMembership(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitUnionMembership(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitUnionMembership(this);
else return visitor.visitChildren(this);
}
}
public final UnionMembershipContext unionMembership() throws RecognitionException {
UnionMembershipContext _localctx = new UnionMembershipContext(_ctx, getState());
enterRule(_localctx, 48, RULE_unionMembership);
try {
enterOuterAlt(_localctx, 1);
{
setState(423);
match(T__6);
setState(424);
unionMembers(0);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class UnionMembersContext extends ParserRuleContext {
public TypeNameContext typeName() {
return getRuleContext(TypeNameContext.class,0);
}
public UnionMembersContext unionMembers() {
return getRuleContext(UnionMembersContext.class,0);
}
public UnionMembersContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_unionMembers; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterUnionMembers(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitUnionMembers(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitUnionMembers(this);
else return visitor.visitChildren(this);
}
}
public final UnionMembersContext unionMembers() throws RecognitionException {
return unionMembers(0);
}
private UnionMembersContext unionMembers(int _p) throws RecognitionException {
ParserRuleContext _parentctx = _ctx;
int _parentState = getState();
UnionMembersContext _localctx = new UnionMembersContext(_ctx, _parentState);
UnionMembersContext _prevctx = _localctx;
int _startState = 50;
enterRecursionRule(_localctx, 50, RULE_unionMembers, _p);
int _la;
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
{
setState(428);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__7) {
{
setState(427);
match(T__7);
}
}
setState(430);
typeName();
}
_ctx.stop = _input.LT(-1);
setState(437);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,52,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
if ( _parseListeners!=null ) triggerExitRuleEvent();
_prevctx = _localctx;
{
{
_localctx = new UnionMembersContext(_parentctx, _parentState);
pushNewRecursionContext(_localctx, _startState, RULE_unionMembers);
setState(432);
if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)");
setState(433);
match(T__7);
setState(434);
typeName();
}
}
}
setState(439);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,52,_ctx);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
unrollRecursionContexts(_parentctx);
}
return _localctx;
}
public static class EnumTypeDefinitionContext extends ParserRuleContext {
public TerminalNode ENUM() { return getToken(GraphqlParser.ENUM, 0); }
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public DescriptionContext description() {
return getRuleContext(DescriptionContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public EnumValueDefinitionsContext enumValueDefinitions() {
return getRuleContext(EnumValueDefinitionsContext.class,0);
}
public EnumTypeDefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_enumTypeDefinition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterEnumTypeDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitEnumTypeDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitEnumTypeDefinition(this);
else return visitor.visitChildren(this);
}
}
public final EnumTypeDefinitionContext enumTypeDefinition() throws RecognitionException {
EnumTypeDefinitionContext _localctx = new EnumTypeDefinitionContext(_ctx, getState());
enterRule(_localctx, 52, RULE_enumTypeDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(441);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==StringValue || _la==TripleQuotedStringValue) {
{
setState(440);
description();
}
}
setState(443);
match(ENUM);
setState(444);
name();
setState(446);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__8) {
{
setState(445);
directives();
}
}
setState(449);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,55,_ctx) ) {
case 1:
{
setState(448);
enumValueDefinitions();
}
break;
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class EnumTypeExtensionDefinitionContext extends ParserRuleContext {
public TerminalNode EXTEND() { return getToken(GraphqlParser.EXTEND, 0); }
public TerminalNode ENUM() { return getToken(GraphqlParser.ENUM, 0); }
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public ExtensionEnumValueDefinitionsContext extensionEnumValueDefinitions() {
return getRuleContext(ExtensionEnumValueDefinitionsContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public EmptyParenthesesContext emptyParentheses() {
return getRuleContext(EmptyParenthesesContext.class,0);
}
public EnumTypeExtensionDefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_enumTypeExtensionDefinition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterEnumTypeExtensionDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitEnumTypeExtensionDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitEnumTypeExtensionDefinition(this);
else return visitor.visitChildren(this);
}
}
public final EnumTypeExtensionDefinitionContext enumTypeExtensionDefinition() throws RecognitionException {
EnumTypeExtensionDefinitionContext _localctx = new EnumTypeExtensionDefinitionContext(_ctx, getState());
enterRule(_localctx, 54, RULE_enumTypeExtensionDefinition);
int _la;
try {
setState(466);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,58,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(451);
match(EXTEND);
setState(452);
match(ENUM);
setState(453);
name();
setState(455);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__8) {
{
setState(454);
directives();
}
}
setState(457);
extensionEnumValueDefinitions();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(459);
match(EXTEND);
setState(460);
match(ENUM);
setState(461);
name();
setState(462);
directives();
setState(464);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,57,_ctx) ) {
case 1:
{
setState(463);
emptyParentheses();
}
break;
}
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class EnumValueDefinitionsContext extends ParserRuleContext {
public List enumValueDefinition() {
return getRuleContexts(EnumValueDefinitionContext.class);
}
public EnumValueDefinitionContext enumValueDefinition(int i) {
return getRuleContext(EnumValueDefinitionContext.class,i);
}
public EnumValueDefinitionsContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_enumValueDefinitions; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterEnumValueDefinitions(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitEnumValueDefinitions(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitEnumValueDefinitions(this);
else return visitor.visitChildren(this);
}
}
public final EnumValueDefinitionsContext enumValueDefinitions() throws RecognitionException {
EnumValueDefinitionsContext _localctx = new EnumValueDefinitionsContext(_ctx, getState());
enterRule(_localctx, 56, RULE_enumValueDefinitions);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(468);
match(T__0);
setState(472);
_errHandler.sync(this);
_la = _input.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << FRAGMENT) | (1L << QUERY) | (1L << MUTATION) | (1L << SUBSCRIPTION) | (1L << SCHEMA) | (1L << SCALAR) | (1L << TYPE) | (1L << INTERFACE) | (1L << IMPLEMENTS) | (1L << ENUM) | (1L << UNION) | (1L << INPUT) | (1L << EXTEND) | (1L << DIRECTIVE) | (1L << ON_KEYWORD) | (1L << NAME) | (1L << StringValue) | (1L << TripleQuotedStringValue))) != 0)) {
{
{
setState(469);
enumValueDefinition();
}
}
setState(474);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(475);
match(T__1);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ExtensionEnumValueDefinitionsContext extends ParserRuleContext {
public List enumValueDefinition() {
return getRuleContexts(EnumValueDefinitionContext.class);
}
public EnumValueDefinitionContext enumValueDefinition(int i) {
return getRuleContext(EnumValueDefinitionContext.class,i);
}
public ExtensionEnumValueDefinitionsContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_extensionEnumValueDefinitions; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterExtensionEnumValueDefinitions(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitExtensionEnumValueDefinitions(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitExtensionEnumValueDefinitions(this);
else return visitor.visitChildren(this);
}
}
public final ExtensionEnumValueDefinitionsContext extensionEnumValueDefinitions() throws RecognitionException {
ExtensionEnumValueDefinitionsContext _localctx = new ExtensionEnumValueDefinitionsContext(_ctx, getState());
enterRule(_localctx, 58, RULE_extensionEnumValueDefinitions);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(477);
match(T__0);
setState(479);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(478);
enumValueDefinition();
}
}
setState(481);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << FRAGMENT) | (1L << QUERY) | (1L << MUTATION) | (1L << SUBSCRIPTION) | (1L << SCHEMA) | (1L << SCALAR) | (1L << TYPE) | (1L << INTERFACE) | (1L << IMPLEMENTS) | (1L << ENUM) | (1L << UNION) | (1L << INPUT) | (1L << EXTEND) | (1L << DIRECTIVE) | (1L << ON_KEYWORD) | (1L << NAME) | (1L << StringValue) | (1L << TripleQuotedStringValue))) != 0) );
setState(483);
match(T__1);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class EnumValueDefinitionContext extends ParserRuleContext {
public EnumValueContext enumValue() {
return getRuleContext(EnumValueContext.class,0);
}
public DescriptionContext description() {
return getRuleContext(DescriptionContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public EnumValueDefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_enumValueDefinition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterEnumValueDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitEnumValueDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitEnumValueDefinition(this);
else return visitor.visitChildren(this);
}
}
public final EnumValueDefinitionContext enumValueDefinition() throws RecognitionException {
EnumValueDefinitionContext _localctx = new EnumValueDefinitionContext(_ctx, getState());
enterRule(_localctx, 60, RULE_enumValueDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(486);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==StringValue || _la==TripleQuotedStringValue) {
{
setState(485);
description();
}
}
setState(488);
enumValue();
setState(490);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__8) {
{
setState(489);
directives();
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class InputObjectTypeDefinitionContext extends ParserRuleContext {
public TerminalNode INPUT() { return getToken(GraphqlParser.INPUT, 0); }
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public DescriptionContext description() {
return getRuleContext(DescriptionContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public InputObjectValueDefinitionsContext inputObjectValueDefinitions() {
return getRuleContext(InputObjectValueDefinitionsContext.class,0);
}
public InputObjectTypeDefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_inputObjectTypeDefinition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterInputObjectTypeDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitInputObjectTypeDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitInputObjectTypeDefinition(this);
else return visitor.visitChildren(this);
}
}
public final InputObjectTypeDefinitionContext inputObjectTypeDefinition() throws RecognitionException {
InputObjectTypeDefinitionContext _localctx = new InputObjectTypeDefinitionContext(_ctx, getState());
enterRule(_localctx, 62, RULE_inputObjectTypeDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(493);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==StringValue || _la==TripleQuotedStringValue) {
{
setState(492);
description();
}
}
setState(495);
match(INPUT);
setState(496);
name();
setState(498);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__8) {
{
setState(497);
directives();
}
}
setState(501);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,65,_ctx) ) {
case 1:
{
setState(500);
inputObjectValueDefinitions();
}
break;
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class InputObjectTypeExtensionDefinitionContext extends ParserRuleContext {
public TerminalNode EXTEND() { return getToken(GraphqlParser.EXTEND, 0); }
public TerminalNode INPUT() { return getToken(GraphqlParser.INPUT, 0); }
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public ExtensionInputObjectValueDefinitionsContext extensionInputObjectValueDefinitions() {
return getRuleContext(ExtensionInputObjectValueDefinitionsContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public EmptyParenthesesContext emptyParentheses() {
return getRuleContext(EmptyParenthesesContext.class,0);
}
public InputObjectTypeExtensionDefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_inputObjectTypeExtensionDefinition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterInputObjectTypeExtensionDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitInputObjectTypeExtensionDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitInputObjectTypeExtensionDefinition(this);
else return visitor.visitChildren(this);
}
}
public final InputObjectTypeExtensionDefinitionContext inputObjectTypeExtensionDefinition() throws RecognitionException {
InputObjectTypeExtensionDefinitionContext _localctx = new InputObjectTypeExtensionDefinitionContext(_ctx, getState());
enterRule(_localctx, 64, RULE_inputObjectTypeExtensionDefinition);
int _la;
try {
setState(518);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,68,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(503);
match(EXTEND);
setState(504);
match(INPUT);
setState(505);
name();
setState(507);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__8) {
{
setState(506);
directives();
}
}
setState(509);
extensionInputObjectValueDefinitions();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(511);
match(EXTEND);
setState(512);
match(INPUT);
setState(513);
name();
setState(514);
directives();
setState(516);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,67,_ctx) ) {
case 1:
{
setState(515);
emptyParentheses();
}
break;
}
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class InputObjectValueDefinitionsContext extends ParserRuleContext {
public List inputValueDefinition() {
return getRuleContexts(InputValueDefinitionContext.class);
}
public InputValueDefinitionContext inputValueDefinition(int i) {
return getRuleContext(InputValueDefinitionContext.class,i);
}
public InputObjectValueDefinitionsContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_inputObjectValueDefinitions; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterInputObjectValueDefinitions(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitInputObjectValueDefinitions(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitInputObjectValueDefinitions(this);
else return visitor.visitChildren(this);
}
}
public final InputObjectValueDefinitionsContext inputObjectValueDefinitions() throws RecognitionException {
InputObjectValueDefinitionsContext _localctx = new InputObjectValueDefinitionsContext(_ctx, getState());
enterRule(_localctx, 66, RULE_inputObjectValueDefinitions);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(520);
match(T__0);
setState(524);
_errHandler.sync(this);
_la = _input.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << BooleanValue) | (1L << NullValue) | (1L << FRAGMENT) | (1L << QUERY) | (1L << MUTATION) | (1L << SUBSCRIPTION) | (1L << SCHEMA) | (1L << SCALAR) | (1L << TYPE) | (1L << INTERFACE) | (1L << IMPLEMENTS) | (1L << ENUM) | (1L << UNION) | (1L << INPUT) | (1L << EXTEND) | (1L << DIRECTIVE) | (1L << ON_KEYWORD) | (1L << NAME) | (1L << StringValue) | (1L << TripleQuotedStringValue))) != 0)) {
{
{
setState(521);
inputValueDefinition();
}
}
setState(526);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(527);
match(T__1);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ExtensionInputObjectValueDefinitionsContext extends ParserRuleContext {
public List inputValueDefinition() {
return getRuleContexts(InputValueDefinitionContext.class);
}
public InputValueDefinitionContext inputValueDefinition(int i) {
return getRuleContext(InputValueDefinitionContext.class,i);
}
public ExtensionInputObjectValueDefinitionsContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_extensionInputObjectValueDefinitions; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterExtensionInputObjectValueDefinitions(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitExtensionInputObjectValueDefinitions(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitExtensionInputObjectValueDefinitions(this);
else return visitor.visitChildren(this);
}
}
public final ExtensionInputObjectValueDefinitionsContext extensionInputObjectValueDefinitions() throws RecognitionException {
ExtensionInputObjectValueDefinitionsContext _localctx = new ExtensionInputObjectValueDefinitionsContext(_ctx, getState());
enterRule(_localctx, 68, RULE_extensionInputObjectValueDefinitions);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(529);
match(T__0);
setState(531);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(530);
inputValueDefinition();
}
}
setState(533);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << BooleanValue) | (1L << NullValue) | (1L << FRAGMENT) | (1L << QUERY) | (1L << MUTATION) | (1L << SUBSCRIPTION) | (1L << SCHEMA) | (1L << SCALAR) | (1L << TYPE) | (1L << INTERFACE) | (1L << IMPLEMENTS) | (1L << ENUM) | (1L << UNION) | (1L << INPUT) | (1L << EXTEND) | (1L << DIRECTIVE) | (1L << ON_KEYWORD) | (1L << NAME) | (1L << StringValue) | (1L << TripleQuotedStringValue))) != 0) );
setState(535);
match(T__1);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class DirectiveDefinitionContext extends ParserRuleContext {
public TerminalNode DIRECTIVE() { return getToken(GraphqlParser.DIRECTIVE, 0); }
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public TerminalNode ON_KEYWORD() { return getToken(GraphqlParser.ON_KEYWORD, 0); }
public DirectiveLocationsContext directiveLocations() {
return getRuleContext(DirectiveLocationsContext.class,0);
}
public DescriptionContext description() {
return getRuleContext(DescriptionContext.class,0);
}
public ArgumentsDefinitionContext argumentsDefinition() {
return getRuleContext(ArgumentsDefinitionContext.class,0);
}
public DirectiveDefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_directiveDefinition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterDirectiveDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitDirectiveDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitDirectiveDefinition(this);
else return visitor.visitChildren(this);
}
}
public final DirectiveDefinitionContext directiveDefinition() throws RecognitionException {
DirectiveDefinitionContext _localctx = new DirectiveDefinitionContext(_ctx, getState());
enterRule(_localctx, 70, RULE_directiveDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(538);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==StringValue || _la==TripleQuotedStringValue) {
{
setState(537);
description();
}
}
setState(540);
match(DIRECTIVE);
setState(541);
match(T__8);
setState(542);
name();
setState(544);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__4) {
{
setState(543);
argumentsDefinition();
}
}
setState(546);
match(ON_KEYWORD);
setState(547);
directiveLocations(0);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class DirectiveLocationContext extends ParserRuleContext {
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public DirectiveLocationContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_directiveLocation; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterDirectiveLocation(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitDirectiveLocation(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitDirectiveLocation(this);
else return visitor.visitChildren(this);
}
}
public final DirectiveLocationContext directiveLocation() throws RecognitionException {
DirectiveLocationContext _localctx = new DirectiveLocationContext(_ctx, getState());
enterRule(_localctx, 72, RULE_directiveLocation);
try {
enterOuterAlt(_localctx, 1);
{
setState(549);
name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class DirectiveLocationsContext extends ParserRuleContext {
public DirectiveLocationContext directiveLocation() {
return getRuleContext(DirectiveLocationContext.class,0);
}
public DirectiveLocationsContext directiveLocations() {
return getRuleContext(DirectiveLocationsContext.class,0);
}
public DirectiveLocationsContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_directiveLocations; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterDirectiveLocations(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitDirectiveLocations(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitDirectiveLocations(this);
else return visitor.visitChildren(this);
}
}
public final DirectiveLocationsContext directiveLocations() throws RecognitionException {
return directiveLocations(0);
}
private DirectiveLocationsContext directiveLocations(int _p) throws RecognitionException {
ParserRuleContext _parentctx = _ctx;
int _parentState = getState();
DirectiveLocationsContext _localctx = new DirectiveLocationsContext(_ctx, _parentState);
DirectiveLocationsContext _prevctx = _localctx;
int _startState = 74;
enterRecursionRule(_localctx, 74, RULE_directiveLocations, _p);
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
{
setState(552);
directiveLocation();
}
_ctx.stop = _input.LT(-1);
setState(559);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,73,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
if ( _parseListeners!=null ) triggerExitRuleEvent();
_prevctx = _localctx;
{
{
_localctx = new DirectiveLocationsContext(_parentctx, _parentState);
pushNewRecursionContext(_localctx, _startState, RULE_directiveLocations);
setState(554);
if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)");
setState(555);
match(T__7);
setState(556);
directiveLocation();
}
}
}
setState(561);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,73,_ctx);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
unrollRecursionContexts(_parentctx);
}
return _localctx;
}
public static class OperationTypeContext extends ParserRuleContext {
public TerminalNode SUBSCRIPTION() { return getToken(GraphqlParser.SUBSCRIPTION, 0); }
public TerminalNode MUTATION() { return getToken(GraphqlParser.MUTATION, 0); }
public TerminalNode QUERY() { return getToken(GraphqlParser.QUERY, 0); }
public OperationTypeContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_operationType; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterOperationType(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitOperationType(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitOperationType(this);
else return visitor.visitChildren(this);
}
}
public final OperationTypeContext operationType() throws RecognitionException {
OperationTypeContext _localctx = new OperationTypeContext(_ctx, getState());
enterRule(_localctx, 76, RULE_operationType);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(562);
_la = _input.LA(1);
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << QUERY) | (1L << MUTATION) | (1L << SUBSCRIPTION))) != 0)) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class DescriptionContext extends ParserRuleContext {
public StringValueContext stringValue() {
return getRuleContext(StringValueContext.class,0);
}
public DescriptionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_description; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterDescription(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitDescription(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitDescription(this);
else return visitor.visitChildren(this);
}
}
public final DescriptionContext description() throws RecognitionException {
DescriptionContext _localctx = new DescriptionContext(_ctx, getState());
enterRule(_localctx, 78, RULE_description);
try {
enterOuterAlt(_localctx, 1);
{
setState(564);
stringValue();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class EnumValueContext extends ParserRuleContext {
public EnumValueNameContext enumValueName() {
return getRuleContext(EnumValueNameContext.class,0);
}
public EnumValueContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_enumValue; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterEnumValue(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitEnumValue(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitEnumValue(this);
else return visitor.visitChildren(this);
}
}
public final EnumValueContext enumValue() throws RecognitionException {
EnumValueContext _localctx = new EnumValueContext(_ctx, getState());
enterRule(_localctx, 80, RULE_enumValue);
try {
enterOuterAlt(_localctx, 1);
{
setState(566);
enumValueName();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ArrayValueContext extends ParserRuleContext {
public List value() {
return getRuleContexts(ValueContext.class);
}
public ValueContext value(int i) {
return getRuleContext(ValueContext.class,i);
}
public ArrayValueContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_arrayValue; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterArrayValue(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitArrayValue(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitArrayValue(this);
else return visitor.visitChildren(this);
}
}
public final ArrayValueContext arrayValue() throws RecognitionException {
ArrayValueContext _localctx = new ArrayValueContext(_ctx, getState());
enterRule(_localctx, 82, RULE_arrayValue);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(568);
match(T__9);
setState(572);
_errHandler.sync(this);
_la = _input.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__0) | (1L << T__9) | (1L << BooleanValue) | (1L << NullValue) | (1L << FRAGMENT) | (1L << QUERY) | (1L << MUTATION) | (1L << SUBSCRIPTION) | (1L << SCHEMA) | (1L << SCALAR) | (1L << TYPE) | (1L << INTERFACE) | (1L << IMPLEMENTS) | (1L << ENUM) | (1L << UNION) | (1L << INPUT) | (1L << EXTEND) | (1L << DIRECTIVE) | (1L << ON_KEYWORD) | (1L << NAME) | (1L << IntValue) | (1L << FloatValue) | (1L << StringValue) | (1L << TripleQuotedStringValue))) != 0)) {
{
{
setState(569);
value();
}
}
setState(574);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(575);
match(T__10);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ArrayValueWithVariableContext extends ParserRuleContext {
public List valueWithVariable() {
return getRuleContexts(ValueWithVariableContext.class);
}
public ValueWithVariableContext valueWithVariable(int i) {
return getRuleContext(ValueWithVariableContext.class,i);
}
public ArrayValueWithVariableContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_arrayValueWithVariable; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterArrayValueWithVariable(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitArrayValueWithVariable(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitArrayValueWithVariable(this);
else return visitor.visitChildren(this);
}
}
public final ArrayValueWithVariableContext arrayValueWithVariable() throws RecognitionException {
ArrayValueWithVariableContext _localctx = new ArrayValueWithVariableContext(_ctx, getState());
enterRule(_localctx, 84, RULE_arrayValueWithVariable);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(577);
match(T__9);
setState(581);
_errHandler.sync(this);
_la = _input.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__0) | (1L << T__9) | (1L << T__11) | (1L << BooleanValue) | (1L << NullValue) | (1L << FRAGMENT) | (1L << QUERY) | (1L << MUTATION) | (1L << SUBSCRIPTION) | (1L << SCHEMA) | (1L << SCALAR) | (1L << TYPE) | (1L << INTERFACE) | (1L << IMPLEMENTS) | (1L << ENUM) | (1L << UNION) | (1L << INPUT) | (1L << EXTEND) | (1L << DIRECTIVE) | (1L << ON_KEYWORD) | (1L << NAME) | (1L << IntValue) | (1L << FloatValue) | (1L << StringValue) | (1L << TripleQuotedStringValue))) != 0)) {
{
{
setState(578);
valueWithVariable();
}
}
setState(583);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(584);
match(T__10);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ObjectValueContext extends ParserRuleContext {
public List objectField() {
return getRuleContexts(ObjectFieldContext.class);
}
public ObjectFieldContext objectField(int i) {
return getRuleContext(ObjectFieldContext.class,i);
}
public ObjectValueContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_objectValue; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterObjectValue(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitObjectValue(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitObjectValue(this);
else return visitor.visitChildren(this);
}
}
public final ObjectValueContext objectValue() throws RecognitionException {
ObjectValueContext _localctx = new ObjectValueContext(_ctx, getState());
enterRule(_localctx, 86, RULE_objectValue);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(586);
match(T__0);
setState(590);
_errHandler.sync(this);
_la = _input.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << BooleanValue) | (1L << NullValue) | (1L << FRAGMENT) | (1L << QUERY) | (1L << MUTATION) | (1L << SUBSCRIPTION) | (1L << SCHEMA) | (1L << SCALAR) | (1L << TYPE) | (1L << INTERFACE) | (1L << IMPLEMENTS) | (1L << ENUM) | (1L << UNION) | (1L << INPUT) | (1L << EXTEND) | (1L << DIRECTIVE) | (1L << ON_KEYWORD) | (1L << NAME))) != 0)) {
{
{
setState(587);
objectField();
}
}
setState(592);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(593);
match(T__1);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ObjectValueWithVariableContext extends ParserRuleContext {
public List objectFieldWithVariable() {
return getRuleContexts(ObjectFieldWithVariableContext.class);
}
public ObjectFieldWithVariableContext objectFieldWithVariable(int i) {
return getRuleContext(ObjectFieldWithVariableContext.class,i);
}
public ObjectValueWithVariableContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_objectValueWithVariable; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterObjectValueWithVariable(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitObjectValueWithVariable(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitObjectValueWithVariable(this);
else return visitor.visitChildren(this);
}
}
public final ObjectValueWithVariableContext objectValueWithVariable() throws RecognitionException {
ObjectValueWithVariableContext _localctx = new ObjectValueWithVariableContext(_ctx, getState());
enterRule(_localctx, 88, RULE_objectValueWithVariable);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(595);
match(T__0);
setState(599);
_errHandler.sync(this);
_la = _input.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << BooleanValue) | (1L << NullValue) | (1L << FRAGMENT) | (1L << QUERY) | (1L << MUTATION) | (1L << SUBSCRIPTION) | (1L << SCHEMA) | (1L << SCALAR) | (1L << TYPE) | (1L << INTERFACE) | (1L << IMPLEMENTS) | (1L << ENUM) | (1L << UNION) | (1L << INPUT) | (1L << EXTEND) | (1L << DIRECTIVE) | (1L << ON_KEYWORD) | (1L << NAME))) != 0)) {
{
{
setState(596);
objectFieldWithVariable();
}
}
setState(601);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(602);
match(T__1);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ObjectFieldContext extends ParserRuleContext {
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public ValueContext value() {
return getRuleContext(ValueContext.class,0);
}
public ObjectFieldContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_objectField; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterObjectField(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitObjectField(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitObjectField(this);
else return visitor.visitChildren(this);
}
}
public final ObjectFieldContext objectField() throws RecognitionException {
ObjectFieldContext _localctx = new ObjectFieldContext(_ctx, getState());
enterRule(_localctx, 90, RULE_objectField);
try {
enterOuterAlt(_localctx, 1);
{
setState(604);
name();
setState(605);
match(T__2);
setState(606);
value();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ObjectFieldWithVariableContext extends ParserRuleContext {
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public ValueWithVariableContext valueWithVariable() {
return getRuleContext(ValueWithVariableContext.class,0);
}
public ObjectFieldWithVariableContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_objectFieldWithVariable; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterObjectFieldWithVariable(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitObjectFieldWithVariable(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitObjectFieldWithVariable(this);
else return visitor.visitChildren(this);
}
}
public final ObjectFieldWithVariableContext objectFieldWithVariable() throws RecognitionException {
ObjectFieldWithVariableContext _localctx = new ObjectFieldWithVariableContext(_ctx, getState());
enterRule(_localctx, 92, RULE_objectFieldWithVariable);
try {
enterOuterAlt(_localctx, 1);
{
setState(608);
name();
setState(609);
match(T__2);
setState(610);
valueWithVariable();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class DirectivesContext extends ParserRuleContext {
public List directive() {
return getRuleContexts(DirectiveContext.class);
}
public DirectiveContext directive(int i) {
return getRuleContext(DirectiveContext.class,i);
}
public DirectivesContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_directives; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterDirectives(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitDirectives(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitDirectives(this);
else return visitor.visitChildren(this);
}
}
public final DirectivesContext directives() throws RecognitionException {
DirectivesContext _localctx = new DirectivesContext(_ctx, getState());
enterRule(_localctx, 94, RULE_directives);
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
setState(613);
_errHandler.sync(this);
_alt = 1;
do {
switch (_alt) {
case 1:
{
{
setState(612);
directive();
}
}
break;
default:
throw new NoViableAltException(this);
}
setState(615);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,78,_ctx);
} while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER );
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class DirectiveContext extends ParserRuleContext {
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public ArgumentsContext arguments() {
return getRuleContext(ArgumentsContext.class,0);
}
public DirectiveContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_directive; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterDirective(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitDirective(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitDirective(this);
else return visitor.visitChildren(this);
}
}
public final DirectiveContext directive() throws RecognitionException {
DirectiveContext _localctx = new DirectiveContext(_ctx, getState());
enterRule(_localctx, 96, RULE_directive);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(617);
match(T__8);
setState(618);
name();
setState(620);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__4) {
{
setState(619);
arguments();
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ArgumentsContext extends ParserRuleContext {
public List argument() {
return getRuleContexts(ArgumentContext.class);
}
public ArgumentContext argument(int i) {
return getRuleContext(ArgumentContext.class,i);
}
public ArgumentsContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_arguments; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterArguments(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitArguments(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitArguments(this);
else return visitor.visitChildren(this);
}
}
public final ArgumentsContext arguments() throws RecognitionException {
ArgumentsContext _localctx = new ArgumentsContext(_ctx, getState());
enterRule(_localctx, 98, RULE_arguments);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(622);
match(T__4);
setState(624);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(623);
argument();
}
}
setState(626);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << BooleanValue) | (1L << NullValue) | (1L << FRAGMENT) | (1L << QUERY) | (1L << MUTATION) | (1L << SUBSCRIPTION) | (1L << SCHEMA) | (1L << SCALAR) | (1L << TYPE) | (1L << INTERFACE) | (1L << IMPLEMENTS) | (1L << ENUM) | (1L << UNION) | (1L << INPUT) | (1L << EXTEND) | (1L << DIRECTIVE) | (1L << ON_KEYWORD) | (1L << NAME))) != 0) );
setState(628);
match(T__5);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ArgumentContext extends ParserRuleContext {
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public ValueWithVariableContext valueWithVariable() {
return getRuleContext(ValueWithVariableContext.class,0);
}
public ArgumentContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_argument; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterArgument(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitArgument(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitArgument(this);
else return visitor.visitChildren(this);
}
}
public final ArgumentContext argument() throws RecognitionException {
ArgumentContext _localctx = new ArgumentContext(_ctx, getState());
enterRule(_localctx, 100, RULE_argument);
try {
enterOuterAlt(_localctx, 1);
{
setState(630);
name();
setState(631);
match(T__2);
setState(632);
valueWithVariable();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class BaseNameContext extends ParserRuleContext {
public TerminalNode NAME() { return getToken(GraphqlParser.NAME, 0); }
public TerminalNode FRAGMENT() { return getToken(GraphqlParser.FRAGMENT, 0); }
public TerminalNode QUERY() { return getToken(GraphqlParser.QUERY, 0); }
public TerminalNode MUTATION() { return getToken(GraphqlParser.MUTATION, 0); }
public TerminalNode SUBSCRIPTION() { return getToken(GraphqlParser.SUBSCRIPTION, 0); }
public TerminalNode SCHEMA() { return getToken(GraphqlParser.SCHEMA, 0); }
public TerminalNode SCALAR() { return getToken(GraphqlParser.SCALAR, 0); }
public TerminalNode TYPE() { return getToken(GraphqlParser.TYPE, 0); }
public TerminalNode INTERFACE() { return getToken(GraphqlParser.INTERFACE, 0); }
public TerminalNode IMPLEMENTS() { return getToken(GraphqlParser.IMPLEMENTS, 0); }
public TerminalNode ENUM() { return getToken(GraphqlParser.ENUM, 0); }
public TerminalNode UNION() { return getToken(GraphqlParser.UNION, 0); }
public TerminalNode INPUT() { return getToken(GraphqlParser.INPUT, 0); }
public TerminalNode EXTEND() { return getToken(GraphqlParser.EXTEND, 0); }
public TerminalNode DIRECTIVE() { return getToken(GraphqlParser.DIRECTIVE, 0); }
public BaseNameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_baseName; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterBaseName(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitBaseName(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitBaseName(this);
else return visitor.visitChildren(this);
}
}
public final BaseNameContext baseName() throws RecognitionException {
BaseNameContext _localctx = new BaseNameContext(_ctx, getState());
enterRule(_localctx, 102, RULE_baseName);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(634);
_la = _input.LA(1);
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << FRAGMENT) | (1L << QUERY) | (1L << MUTATION) | (1L << SUBSCRIPTION) | (1L << SCHEMA) | (1L << SCALAR) | (1L << TYPE) | (1L << INTERFACE) | (1L << IMPLEMENTS) | (1L << ENUM) | (1L << UNION) | (1L << INPUT) | (1L << EXTEND) | (1L << DIRECTIVE) | (1L << NAME))) != 0)) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class FragmentNameContext extends ParserRuleContext {
public BaseNameContext baseName() {
return getRuleContext(BaseNameContext.class,0);
}
public TerminalNode BooleanValue() { return getToken(GraphqlParser.BooleanValue, 0); }
public TerminalNode NullValue() { return getToken(GraphqlParser.NullValue, 0); }
public FragmentNameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_fragmentName; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterFragmentName(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitFragmentName(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitFragmentName(this);
else return visitor.visitChildren(this);
}
}
public final FragmentNameContext fragmentName() throws RecognitionException {
FragmentNameContext _localctx = new FragmentNameContext(_ctx, getState());
enterRule(_localctx, 104, RULE_fragmentName);
try {
setState(639);
_errHandler.sync(this);
switch (_input.LA(1)) {
case FRAGMENT:
case QUERY:
case MUTATION:
case SUBSCRIPTION:
case SCHEMA:
case SCALAR:
case TYPE:
case INTERFACE:
case IMPLEMENTS:
case ENUM:
case UNION:
case INPUT:
case EXTEND:
case DIRECTIVE:
case NAME:
enterOuterAlt(_localctx, 1);
{
setState(636);
baseName();
}
break;
case BooleanValue:
enterOuterAlt(_localctx, 2);
{
setState(637);
match(BooleanValue);
}
break;
case NullValue:
enterOuterAlt(_localctx, 3);
{
setState(638);
match(NullValue);
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class EnumValueNameContext extends ParserRuleContext {
public BaseNameContext baseName() {
return getRuleContext(BaseNameContext.class,0);
}
public TerminalNode ON_KEYWORD() { return getToken(GraphqlParser.ON_KEYWORD, 0); }
public EnumValueNameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_enumValueName; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterEnumValueName(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitEnumValueName(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitEnumValueName(this);
else return visitor.visitChildren(this);
}
}
public final EnumValueNameContext enumValueName() throws RecognitionException {
EnumValueNameContext _localctx = new EnumValueNameContext(_ctx, getState());
enterRule(_localctx, 106, RULE_enumValueName);
try {
setState(643);
_errHandler.sync(this);
switch (_input.LA(1)) {
case FRAGMENT:
case QUERY:
case MUTATION:
case SUBSCRIPTION:
case SCHEMA:
case SCALAR:
case TYPE:
case INTERFACE:
case IMPLEMENTS:
case ENUM:
case UNION:
case INPUT:
case EXTEND:
case DIRECTIVE:
case NAME:
enterOuterAlt(_localctx, 1);
{
setState(641);
baseName();
}
break;
case ON_KEYWORD:
enterOuterAlt(_localctx, 2);
{
setState(642);
match(ON_KEYWORD);
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class NameContext extends ParserRuleContext {
public BaseNameContext baseName() {
return getRuleContext(BaseNameContext.class,0);
}
public TerminalNode BooleanValue() { return getToken(GraphqlParser.BooleanValue, 0); }
public TerminalNode NullValue() { return getToken(GraphqlParser.NullValue, 0); }
public TerminalNode ON_KEYWORD() { return getToken(GraphqlParser.ON_KEYWORD, 0); }
public NameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_name; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterName(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitName(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitName(this);
else return visitor.visitChildren(this);
}
}
public final NameContext name() throws RecognitionException {
NameContext _localctx = new NameContext(_ctx, getState());
enterRule(_localctx, 108, RULE_name);
try {
setState(649);
_errHandler.sync(this);
switch (_input.LA(1)) {
case FRAGMENT:
case QUERY:
case MUTATION:
case SUBSCRIPTION:
case SCHEMA:
case SCALAR:
case TYPE:
case INTERFACE:
case IMPLEMENTS:
case ENUM:
case UNION:
case INPUT:
case EXTEND:
case DIRECTIVE:
case NAME:
enterOuterAlt(_localctx, 1);
{
setState(645);
baseName();
}
break;
case BooleanValue:
enterOuterAlt(_localctx, 2);
{
setState(646);
match(BooleanValue);
}
break;
case NullValue:
enterOuterAlt(_localctx, 3);
{
setState(647);
match(NullValue);
}
break;
case ON_KEYWORD:
enterOuterAlt(_localctx, 4);
{
setState(648);
match(ON_KEYWORD);
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ValueContext extends ParserRuleContext {
public StringValueContext stringValue() {
return getRuleContext(StringValueContext.class,0);
}
public TerminalNode IntValue() { return getToken(GraphqlParser.IntValue, 0); }
public TerminalNode FloatValue() { return getToken(GraphqlParser.FloatValue, 0); }
public TerminalNode BooleanValue() { return getToken(GraphqlParser.BooleanValue, 0); }
public TerminalNode NullValue() { return getToken(GraphqlParser.NullValue, 0); }
public EnumValueContext enumValue() {
return getRuleContext(EnumValueContext.class,0);
}
public ArrayValueContext arrayValue() {
return getRuleContext(ArrayValueContext.class,0);
}
public ObjectValueContext objectValue() {
return getRuleContext(ObjectValueContext.class,0);
}
public ValueContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_value; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterValue(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitValue(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitValue(this);
else return visitor.visitChildren(this);
}
}
public final ValueContext value() throws RecognitionException {
ValueContext _localctx = new ValueContext(_ctx, getState());
enterRule(_localctx, 110, RULE_value);
try {
setState(659);
_errHandler.sync(this);
switch (_input.LA(1)) {
case StringValue:
case TripleQuotedStringValue:
enterOuterAlt(_localctx, 1);
{
setState(651);
stringValue();
}
break;
case IntValue:
enterOuterAlt(_localctx, 2);
{
setState(652);
match(IntValue);
}
break;
case FloatValue:
enterOuterAlt(_localctx, 3);
{
setState(653);
match(FloatValue);
}
break;
case BooleanValue:
enterOuterAlt(_localctx, 4);
{
setState(654);
match(BooleanValue);
}
break;
case NullValue:
enterOuterAlt(_localctx, 5);
{
setState(655);
match(NullValue);
}
break;
case FRAGMENT:
case QUERY:
case MUTATION:
case SUBSCRIPTION:
case SCHEMA:
case SCALAR:
case TYPE:
case INTERFACE:
case IMPLEMENTS:
case ENUM:
case UNION:
case INPUT:
case EXTEND:
case DIRECTIVE:
case ON_KEYWORD:
case NAME:
enterOuterAlt(_localctx, 6);
{
setState(656);
enumValue();
}
break;
case T__9:
enterOuterAlt(_localctx, 7);
{
setState(657);
arrayValue();
}
break;
case T__0:
enterOuterAlt(_localctx, 8);
{
setState(658);
objectValue();
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ValueWithVariableContext extends ParserRuleContext {
public VariableContext variable() {
return getRuleContext(VariableContext.class,0);
}
public StringValueContext stringValue() {
return getRuleContext(StringValueContext.class,0);
}
public TerminalNode IntValue() { return getToken(GraphqlParser.IntValue, 0); }
public TerminalNode FloatValue() { return getToken(GraphqlParser.FloatValue, 0); }
public TerminalNode BooleanValue() { return getToken(GraphqlParser.BooleanValue, 0); }
public TerminalNode NullValue() { return getToken(GraphqlParser.NullValue, 0); }
public EnumValueContext enumValue() {
return getRuleContext(EnumValueContext.class,0);
}
public ArrayValueWithVariableContext arrayValueWithVariable() {
return getRuleContext(ArrayValueWithVariableContext.class,0);
}
public ObjectValueWithVariableContext objectValueWithVariable() {
return getRuleContext(ObjectValueWithVariableContext.class,0);
}
public ValueWithVariableContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_valueWithVariable; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterValueWithVariable(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitValueWithVariable(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitValueWithVariable(this);
else return visitor.visitChildren(this);
}
}
public final ValueWithVariableContext valueWithVariable() throws RecognitionException {
ValueWithVariableContext _localctx = new ValueWithVariableContext(_ctx, getState());
enterRule(_localctx, 112, RULE_valueWithVariable);
try {
setState(670);
_errHandler.sync(this);
switch (_input.LA(1)) {
case T__11:
enterOuterAlt(_localctx, 1);
{
setState(661);
variable();
}
break;
case StringValue:
case TripleQuotedStringValue:
enterOuterAlt(_localctx, 2);
{
setState(662);
stringValue();
}
break;
case IntValue:
enterOuterAlt(_localctx, 3);
{
setState(663);
match(IntValue);
}
break;
case FloatValue:
enterOuterAlt(_localctx, 4);
{
setState(664);
match(FloatValue);
}
break;
case BooleanValue:
enterOuterAlt(_localctx, 5);
{
setState(665);
match(BooleanValue);
}
break;
case NullValue:
enterOuterAlt(_localctx, 6);
{
setState(666);
match(NullValue);
}
break;
case FRAGMENT:
case QUERY:
case MUTATION:
case SUBSCRIPTION:
case SCHEMA:
case SCALAR:
case TYPE:
case INTERFACE:
case IMPLEMENTS:
case ENUM:
case UNION:
case INPUT:
case EXTEND:
case DIRECTIVE:
case ON_KEYWORD:
case NAME:
enterOuterAlt(_localctx, 7);
{
setState(667);
enumValue();
}
break;
case T__9:
enterOuterAlt(_localctx, 8);
{
setState(668);
arrayValueWithVariable();
}
break;
case T__0:
enterOuterAlt(_localctx, 9);
{
setState(669);
objectValueWithVariable();
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class VariableContext extends ParserRuleContext {
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public VariableContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_variable; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterVariable(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitVariable(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitVariable(this);
else return visitor.visitChildren(this);
}
}
public final VariableContext variable() throws RecognitionException {
VariableContext _localctx = new VariableContext(_ctx, getState());
enterRule(_localctx, 114, RULE_variable);
try {
enterOuterAlt(_localctx, 1);
{
setState(672);
match(T__11);
setState(673);
name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class DefaultValueContext extends ParserRuleContext {
public ValueContext value() {
return getRuleContext(ValueContext.class,0);
}
public DefaultValueContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_defaultValue; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterDefaultValue(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitDefaultValue(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitDefaultValue(this);
else return visitor.visitChildren(this);
}
}
public final DefaultValueContext defaultValue() throws RecognitionException {
DefaultValueContext _localctx = new DefaultValueContext(_ctx, getState());
enterRule(_localctx, 116, RULE_defaultValue);
try {
enterOuterAlt(_localctx, 1);
{
setState(675);
match(T__6);
setState(676);
value();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class StringValueContext extends ParserRuleContext {
public TerminalNode TripleQuotedStringValue() { return getToken(GraphqlParser.TripleQuotedStringValue, 0); }
public TerminalNode StringValue() { return getToken(GraphqlParser.StringValue, 0); }
public StringValueContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_stringValue; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterStringValue(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitStringValue(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitStringValue(this);
else return visitor.visitChildren(this);
}
}
public final StringValueContext stringValue() throws RecognitionException {
StringValueContext _localctx = new StringValueContext(_ctx, getState());
enterRule(_localctx, 118, RULE_stringValue);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(678);
_la = _input.LA(1);
if ( !(_la==StringValue || _la==TripleQuotedStringValue) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class TypeContext extends ParserRuleContext {
public TypeNameContext typeName() {
return getRuleContext(TypeNameContext.class,0);
}
public ListTypeContext listType() {
return getRuleContext(ListTypeContext.class,0);
}
public NonNullTypeContext nonNullType() {
return getRuleContext(NonNullTypeContext.class,0);
}
public TypeContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_type; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterType(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitType(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitType(this);
else return visitor.visitChildren(this);
}
}
public final TypeContext type() throws RecognitionException {
TypeContext _localctx = new TypeContext(_ctx, getState());
enterRule(_localctx, 120, RULE_type);
try {
setState(683);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,86,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(680);
typeName();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(681);
listType();
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(682);
nonNullType();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class TypeNameContext extends ParserRuleContext {
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public TypeNameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_typeName; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterTypeName(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitTypeName(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitTypeName(this);
else return visitor.visitChildren(this);
}
}
public final TypeNameContext typeName() throws RecognitionException {
TypeNameContext _localctx = new TypeNameContext(_ctx, getState());
enterRule(_localctx, 122, RULE_typeName);
try {
enterOuterAlt(_localctx, 1);
{
setState(685);
name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ListTypeContext extends ParserRuleContext {
public TypeContext type() {
return getRuleContext(TypeContext.class,0);
}
public ListTypeContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_listType; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterListType(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitListType(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitListType(this);
else return visitor.visitChildren(this);
}
}
public final ListTypeContext listType() throws RecognitionException {
ListTypeContext _localctx = new ListTypeContext(_ctx, getState());
enterRule(_localctx, 124, RULE_listType);
try {
enterOuterAlt(_localctx, 1);
{
setState(687);
match(T__9);
setState(688);
type();
setState(689);
match(T__10);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class NonNullTypeContext extends ParserRuleContext {
public TypeNameContext typeName() {
return getRuleContext(TypeNameContext.class,0);
}
public ListTypeContext listType() {
return getRuleContext(ListTypeContext.class,0);
}
public NonNullTypeContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_nonNullType; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterNonNullType(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitNonNullType(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitNonNullType(this);
else return visitor.visitChildren(this);
}
}
public final NonNullTypeContext nonNullType() throws RecognitionException {
NonNullTypeContext _localctx = new NonNullTypeContext(_ctx, getState());
enterRule(_localctx, 126, RULE_nonNullType);
try {
setState(697);
_errHandler.sync(this);
switch (_input.LA(1)) {
case BooleanValue:
case NullValue:
case FRAGMENT:
case QUERY:
case MUTATION:
case SUBSCRIPTION:
case SCHEMA:
case SCALAR:
case TYPE:
case INTERFACE:
case IMPLEMENTS:
case ENUM:
case UNION:
case INPUT:
case EXTEND:
case DIRECTIVE:
case ON_KEYWORD:
case NAME:
enterOuterAlt(_localctx, 1);
{
setState(691);
typeName();
setState(692);
match(T__12);
}
break;
case T__9:
enterOuterAlt(_localctx, 2);
{
setState(694);
listType();
setState(695);
match(T__12);
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class OperationDefinitionContext extends ParserRuleContext {
public SelectionSetContext selectionSet() {
return getRuleContext(SelectionSetContext.class,0);
}
public OperationTypeContext operationType() {
return getRuleContext(OperationTypeContext.class,0);
}
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public VariableDefinitionsContext variableDefinitions() {
return getRuleContext(VariableDefinitionsContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public OperationDefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_operationDefinition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterOperationDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitOperationDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitOperationDefinition(this);
else return visitor.visitChildren(this);
}
}
public final OperationDefinitionContext operationDefinition() throws RecognitionException {
OperationDefinitionContext _localctx = new OperationDefinitionContext(_ctx, getState());
enterRule(_localctx, 128, RULE_operationDefinition);
int _la;
try {
setState(712);
_errHandler.sync(this);
switch (_input.LA(1)) {
case T__0:
enterOuterAlt(_localctx, 1);
{
setState(699);
selectionSet();
}
break;
case QUERY:
case MUTATION:
case SUBSCRIPTION:
enterOuterAlt(_localctx, 2);
{
setState(700);
operationType();
setState(702);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << BooleanValue) | (1L << NullValue) | (1L << FRAGMENT) | (1L << QUERY) | (1L << MUTATION) | (1L << SUBSCRIPTION) | (1L << SCHEMA) | (1L << SCALAR) | (1L << TYPE) | (1L << INTERFACE) | (1L << IMPLEMENTS) | (1L << ENUM) | (1L << UNION) | (1L << INPUT) | (1L << EXTEND) | (1L << DIRECTIVE) | (1L << ON_KEYWORD) | (1L << NAME))) != 0)) {
{
setState(701);
name();
}
}
setState(705);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__4) {
{
setState(704);
variableDefinitions();
}
}
setState(708);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__8) {
{
setState(707);
directives();
}
}
setState(710);
selectionSet();
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class VariableDefinitionsContext extends ParserRuleContext {
public List variableDefinition() {
return getRuleContexts(VariableDefinitionContext.class);
}
public VariableDefinitionContext variableDefinition(int i) {
return getRuleContext(VariableDefinitionContext.class,i);
}
public VariableDefinitionsContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_variableDefinitions; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterVariableDefinitions(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitVariableDefinitions(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitVariableDefinitions(this);
else return visitor.visitChildren(this);
}
}
public final VariableDefinitionsContext variableDefinitions() throws RecognitionException {
VariableDefinitionsContext _localctx = new VariableDefinitionsContext(_ctx, getState());
enterRule(_localctx, 130, RULE_variableDefinitions);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(714);
match(T__4);
setState(716);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(715);
variableDefinition();
}
}
setState(718);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( _la==T__11 );
setState(720);
match(T__5);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class VariableDefinitionContext extends ParserRuleContext {
public VariableContext variable() {
return getRuleContext(VariableContext.class,0);
}
public TypeContext type() {
return getRuleContext(TypeContext.class,0);
}
public DefaultValueContext defaultValue() {
return getRuleContext(DefaultValueContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public VariableDefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_variableDefinition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterVariableDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitVariableDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitVariableDefinition(this);
else return visitor.visitChildren(this);
}
}
public final VariableDefinitionContext variableDefinition() throws RecognitionException {
VariableDefinitionContext _localctx = new VariableDefinitionContext(_ctx, getState());
enterRule(_localctx, 132, RULE_variableDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(722);
variable();
setState(723);
match(T__2);
setState(724);
type();
setState(726);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__6) {
{
setState(725);
defaultValue();
}
}
setState(729);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__8) {
{
setState(728);
directives();
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class SelectionSetContext extends ParserRuleContext {
public List selection() {
return getRuleContexts(SelectionContext.class);
}
public SelectionContext selection(int i) {
return getRuleContext(SelectionContext.class,i);
}
public SelectionSetContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_selectionSet; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterSelectionSet(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitSelectionSet(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitSelectionSet(this);
else return visitor.visitChildren(this);
}
}
public final SelectionSetContext selectionSet() throws RecognitionException {
SelectionSetContext _localctx = new SelectionSetContext(_ctx, getState());
enterRule(_localctx, 134, RULE_selectionSet);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(731);
match(T__0);
setState(733);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(732);
selection();
}
}
setState(735);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__13) | (1L << BooleanValue) | (1L << NullValue) | (1L << FRAGMENT) | (1L << QUERY) | (1L << MUTATION) | (1L << SUBSCRIPTION) | (1L << SCHEMA) | (1L << SCALAR) | (1L << TYPE) | (1L << INTERFACE) | (1L << IMPLEMENTS) | (1L << ENUM) | (1L << UNION) | (1L << INPUT) | (1L << EXTEND) | (1L << DIRECTIVE) | (1L << ON_KEYWORD) | (1L << NAME))) != 0) );
setState(737);
match(T__1);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class SelectionContext extends ParserRuleContext {
public FieldContext field() {
return getRuleContext(FieldContext.class,0);
}
public FragmentSpreadContext fragmentSpread() {
return getRuleContext(FragmentSpreadContext.class,0);
}
public InlineFragmentContext inlineFragment() {
return getRuleContext(InlineFragmentContext.class,0);
}
public SelectionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_selection; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterSelection(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitSelection(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitSelection(this);
else return visitor.visitChildren(this);
}
}
public final SelectionContext selection() throws RecognitionException {
SelectionContext _localctx = new SelectionContext(_ctx, getState());
enterRule(_localctx, 136, RULE_selection);
try {
setState(742);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,96,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(739);
field();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(740);
fragmentSpread();
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(741);
inlineFragment();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class FieldContext extends ParserRuleContext {
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public AliasContext alias() {
return getRuleContext(AliasContext.class,0);
}
public ArgumentsContext arguments() {
return getRuleContext(ArgumentsContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public SelectionSetContext selectionSet() {
return getRuleContext(SelectionSetContext.class,0);
}
public FieldContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_field; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterField(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitField(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitField(this);
else return visitor.visitChildren(this);
}
}
public final FieldContext field() throws RecognitionException {
FieldContext _localctx = new FieldContext(_ctx, getState());
enterRule(_localctx, 138, RULE_field);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(745);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,97,_ctx) ) {
case 1:
{
setState(744);
alias();
}
break;
}
setState(747);
name();
setState(749);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__4) {
{
setState(748);
arguments();
}
}
setState(752);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__8) {
{
setState(751);
directives();
}
}
setState(755);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__0) {
{
setState(754);
selectionSet();
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class AliasContext extends ParserRuleContext {
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public AliasContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_alias; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterAlias(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitAlias(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitAlias(this);
else return visitor.visitChildren(this);
}
}
public final AliasContext alias() throws RecognitionException {
AliasContext _localctx = new AliasContext(_ctx, getState());
enterRule(_localctx, 140, RULE_alias);
try {
enterOuterAlt(_localctx, 1);
{
setState(757);
name();
setState(758);
match(T__2);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class FragmentSpreadContext extends ParserRuleContext {
public FragmentNameContext fragmentName() {
return getRuleContext(FragmentNameContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public FragmentSpreadContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_fragmentSpread; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterFragmentSpread(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitFragmentSpread(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitFragmentSpread(this);
else return visitor.visitChildren(this);
}
}
public final FragmentSpreadContext fragmentSpread() throws RecognitionException {
FragmentSpreadContext _localctx = new FragmentSpreadContext(_ctx, getState());
enterRule(_localctx, 142, RULE_fragmentSpread);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(760);
match(T__13);
setState(761);
fragmentName();
setState(763);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__8) {
{
setState(762);
directives();
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class InlineFragmentContext extends ParserRuleContext {
public SelectionSetContext selectionSet() {
return getRuleContext(SelectionSetContext.class,0);
}
public TypeConditionContext typeCondition() {
return getRuleContext(TypeConditionContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public InlineFragmentContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_inlineFragment; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterInlineFragment(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitInlineFragment(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitInlineFragment(this);
else return visitor.visitChildren(this);
}
}
public final InlineFragmentContext inlineFragment() throws RecognitionException {
InlineFragmentContext _localctx = new InlineFragmentContext(_ctx, getState());
enterRule(_localctx, 144, RULE_inlineFragment);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(765);
match(T__13);
setState(767);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==ON_KEYWORD) {
{
setState(766);
typeCondition();
}
}
setState(770);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__8) {
{
setState(769);
directives();
}
}
setState(772);
selectionSet();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class FragmentDefinitionContext extends ParserRuleContext {
public TerminalNode FRAGMENT() { return getToken(GraphqlParser.FRAGMENT, 0); }
public FragmentNameContext fragmentName() {
return getRuleContext(FragmentNameContext.class,0);
}
public TypeConditionContext typeCondition() {
return getRuleContext(TypeConditionContext.class,0);
}
public SelectionSetContext selectionSet() {
return getRuleContext(SelectionSetContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public FragmentDefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_fragmentDefinition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterFragmentDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitFragmentDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitFragmentDefinition(this);
else return visitor.visitChildren(this);
}
}
public final FragmentDefinitionContext fragmentDefinition() throws RecognitionException {
FragmentDefinitionContext _localctx = new FragmentDefinitionContext(_ctx, getState());
enterRule(_localctx, 146, RULE_fragmentDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(774);
match(FRAGMENT);
setState(775);
fragmentName();
setState(776);
typeCondition();
setState(778);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__8) {
{
setState(777);
directives();
}
}
setState(780);
selectionSet();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class TypeConditionContext extends ParserRuleContext {
public TerminalNode ON_KEYWORD() { return getToken(GraphqlParser.ON_KEYWORD, 0); }
public TypeNameContext typeName() {
return getRuleContext(TypeNameContext.class,0);
}
public TypeConditionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_typeCondition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).enterTypeCondition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphqlListener ) ((GraphqlListener)listener).exitTypeCondition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphqlVisitor ) return ((GraphqlVisitor extends T>)visitor).visitTypeCondition(this);
else return visitor.visitChildren(this);
}
}
public final TypeConditionContext typeCondition() throws RecognitionException {
TypeConditionContext _localctx = new TypeConditionContext(_ctx, getState());
enterRule(_localctx, 148, RULE_typeCondition);
try {
enterOuterAlt(_localctx, 1);
{
setState(782);
match(ON_KEYWORD);
setState(783);
typeName();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public boolean sempred(RuleContext _localctx, int ruleIndex, int predIndex) {
switch (ruleIndex) {
case 14:
return implementsInterfaces_sempred((ImplementsInterfacesContext)_localctx, predIndex);
case 25:
return unionMembers_sempred((UnionMembersContext)_localctx, predIndex);
case 37:
return directiveLocations_sempred((DirectiveLocationsContext)_localctx, predIndex);
}
return true;
}
private boolean implementsInterfaces_sempred(ImplementsInterfacesContext _localctx, int predIndex) {
switch (predIndex) {
case 0:
return precpred(_ctx, 1);
}
return true;
}
private boolean unionMembers_sempred(UnionMembersContext _localctx, int predIndex) {
switch (predIndex) {
case 1:
return precpred(_ctx, 1);
}
return true;
}
private boolean directiveLocations_sempred(DirectiveLocationsContext _localctx, int predIndex) {
switch (predIndex) {
case 2:
return precpred(_ctx, 1);
}
return true;
}
public static final String _serializedATN =
"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3\63\u0314\4\2\t\2"+
"\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7\4\b\t\b\4\t\t\t\4\n\t\n\4\13"+
"\t\13\4\f\t\f\4\r\t\r\4\16\t\16\4\17\t\17\4\20\t\20\4\21\t\21\4\22\t\22"+
"\4\23\t\23\4\24\t\24\4\25\t\25\4\26\t\26\4\27\t\27\4\30\t\30\4\31\t\31"+
"\4\32\t\32\4\33\t\33\4\34\t\34\4\35\t\35\4\36\t\36\4\37\t\37\4 \t \4!"+
"\t!\4\"\t\"\4#\t#\4$\t$\4%\t%\4&\t&\4\'\t\'\4(\t(\4)\t)\4*\t*\4+\t+\4"+
",\t,\4-\t-\4.\t.\4/\t/\4\60\t\60\4\61\t\61\4\62\t\62\4\63\t\63\4\64\t"+
"\64\4\65\t\65\4\66\t\66\4\67\t\67\48\t8\49\t9\4:\t:\4;\t;\4<\t<\4=\t="+
"\4>\t>\4?\t?\4@\t@\4A\tA\4B\tB\4C\tC\4D\tD\4E\tE\4F\tF\4G\tG\4H\tH\4I"+
"\tI\4J\tJ\4K\tK\4L\tL\3\2\6\2\u009a\n\2\r\2\16\2\u009b\3\3\3\3\3\3\3\3"+
"\5\3\u00a2\n\3\3\4\3\4\3\4\5\4\u00a7\n\4\3\5\3\5\5\5\u00ab\n\5\3\6\5\6"+
"\u00ae\n\6\3\6\3\6\5\6\u00b2\n\6\3\6\3\6\6\6\u00b6\n\6\r\6\16\6\u00b7"+
"\3\6\3\6\3\7\3\7\3\7\5\7\u00bf\n\7\3\7\3\7\6\7\u00c3\n\7\r\7\16\7\u00c4"+
"\3\7\3\7\3\7\3\7\3\7\6\7\u00cc\n\7\r\7\16\7\u00cd\5\7\u00d0\n\7\3\b\5"+
"\b\u00d3\n\b\3\b\3\b\3\b\3\b\3\t\3\t\3\t\3\t\3\t\3\t\5\t\u00df\n\t\3\n"+
"\3\n\3\n\3\n\3\n\3\n\5\n\u00e7\n\n\3\13\3\13\3\13\3\f\5\f\u00ed\n\f\3"+
"\f\3\f\3\f\5\f\u00f2\n\f\3\r\3\r\3\r\3\r\3\r\3\16\5\16\u00fa\n\16\3\16"+
"\3\16\3\16\5\16\u00ff\n\16\3\16\5\16\u0102\n\16\3\16\5\16\u0105\n\16\3"+
"\17\3\17\3\17\3\17\5\17\u010b\n\17\3\17\5\17\u010e\n\17\3\17\3\17\3\17"+
"\3\17\3\17\3\17\5\17\u0116\n\17\3\17\3\17\5\17\u011a\n\17\3\17\3\17\3"+
"\17\3\17\3\17\5\17\u0121\n\17\3\20\3\20\3\20\5\20\u0126\n\20\3\20\6\20"+
"\u0129\n\20\r\20\16\20\u012a\3\20\3\20\3\20\7\20\u0130\n\20\f\20\16\20"+
"\u0133\13\20\3\21\3\21\7\21\u0137\n\21\f\21\16\21\u013a\13\21\3\21\3\21"+
"\3\22\3\22\6\22\u0140\n\22\r\22\16\22\u0141\3\22\3\22\3\23\5\23\u0147"+
"\n\23\3\23\3\23\5\23\u014b\n\23\3\23\3\23\3\23\5\23\u0150\n\23\3\24\3"+
"\24\6\24\u0154\n\24\r\24\16\24\u0155\3\24\3\24\3\25\5\25\u015b\n\25\3"+
"\25\3\25\3\25\3\25\5\25\u0161\n\25\3\25\5\25\u0164\n\25\3\26\5\26\u0167"+
"\n\26\3\26\3\26\3\26\5\26\u016c\n\26\3\26\5\26\u016f\n\26\3\26\5\26\u0172"+
"\n\26\3\27\3\27\3\27\3\27\5\27\u0178\n\27\3\27\5\27\u017b\n\27\3\27\3"+
"\27\3\27\3\27\3\27\3\27\5\27\u0183\n\27\3\27\3\27\5\27\u0187\n\27\3\27"+
"\3\27\3\27\3\27\3\27\5\27\u018e\n\27\3\30\5\30\u0191\n\30\3\30\3\30\3"+
"\30\5\30\u0196\n\30\3\30\5\30\u0199\n\30\3\31\3\31\3\31\3\31\5\31\u019f"+
"\n\31\3\31\3\31\3\31\3\31\3\31\3\31\3\31\5\31\u01a8\n\31\3\32\3\32\3\32"+
"\3\33\3\33\5\33\u01af\n\33\3\33\3\33\3\33\3\33\3\33\7\33\u01b6\n\33\f"+
"\33\16\33\u01b9\13\33\3\34\5\34\u01bc\n\34\3\34\3\34\3\34\5\34\u01c1\n"+
"\34\3\34\5\34\u01c4\n\34\3\35\3\35\3\35\3\35\5\35\u01ca\n\35\3\35\3\35"+
"\3\35\3\35\3\35\3\35\3\35\5\35\u01d3\n\35\5\35\u01d5\n\35\3\36\3\36\7"+
"\36\u01d9\n\36\f\36\16\36\u01dc\13\36\3\36\3\36\3\37\3\37\6\37\u01e2\n"+
"\37\r\37\16\37\u01e3\3\37\3\37\3 \5 \u01e9\n \3 \3 \5 \u01ed\n \3!\5!"+
"\u01f0\n!\3!\3!\3!\5!\u01f5\n!\3!\5!\u01f8\n!\3\"\3\"\3\"\3\"\5\"\u01fe"+
"\n\"\3\"\3\"\3\"\3\"\3\"\3\"\3\"\5\"\u0207\n\"\5\"\u0209\n\"\3#\3#\7#"+
"\u020d\n#\f#\16#\u0210\13#\3#\3#\3$\3$\6$\u0216\n$\r$\16$\u0217\3$\3$"+
"\3%\5%\u021d\n%\3%\3%\3%\3%\5%\u0223\n%\3%\3%\3%\3&\3&\3\'\3\'\3\'\3\'"+
"\3\'\3\'\7\'\u0230\n\'\f\'\16\'\u0233\13\'\3(\3(\3)\3)\3*\3*\3+\3+\7+"+
"\u023d\n+\f+\16+\u0240\13+\3+\3+\3,\3,\7,\u0246\n,\f,\16,\u0249\13,\3"+
",\3,\3-\3-\7-\u024f\n-\f-\16-\u0252\13-\3-\3-\3.\3.\7.\u0258\n.\f.\16"+
".\u025b\13.\3.\3.\3/\3/\3/\3/\3\60\3\60\3\60\3\60\3\61\6\61\u0268\n\61"+
"\r\61\16\61\u0269\3\62\3\62\3\62\5\62\u026f\n\62\3\63\3\63\6\63\u0273"+
"\n\63\r\63\16\63\u0274\3\63\3\63\3\64\3\64\3\64\3\64\3\65\3\65\3\66\3"+
"\66\3\66\5\66\u0282\n\66\3\67\3\67\5\67\u0286\n\67\38\38\38\38\58\u028c"+
"\n8\39\39\39\39\39\39\39\39\59\u0296\n9\3:\3:\3:\3:\3:\3:\3:\3:\3:\5:"+
"\u02a1\n:\3;\3;\3;\3<\3<\3<\3=\3=\3>\3>\3>\5>\u02ae\n>\3?\3?\3@\3@\3@"+
"\3@\3A\3A\3A\3A\3A\3A\5A\u02bc\nA\3B\3B\3B\5B\u02c1\nB\3B\5B\u02c4\nB"+
"\3B\5B\u02c7\nB\3B\3B\5B\u02cb\nB\3C\3C\6C\u02cf\nC\rC\16C\u02d0\3C\3"+
"C\3D\3D\3D\3D\5D\u02d9\nD\3D\5D\u02dc\nD\3E\3E\6E\u02e0\nE\rE\16E\u02e1"+
"\3E\3E\3F\3F\3F\5F\u02e9\nF\3G\5G\u02ec\nG\3G\3G\5G\u02f0\nG\3G\5G\u02f3"+
"\nG\3G\5G\u02f6\nG\3H\3H\3H\3I\3I\3I\5I\u02fe\nI\3J\3J\5J\u0302\nJ\3J"+
"\5J\u0305\nJ\3J\3J\3K\3K\3K\3K\5K\u030d\nK\3K\3K\3L\3L\3L\3L\2\5\36\64"+
"LM\2\4\6\b\n\f\16\20\22\24\26\30\32\34\36 \"$&(*,.\60\62\64\668:<>@BD"+
"FHJLNPRTVXZ\\^`bdfhjlnprtvxz|~\u0080\u0082\u0084\u0086\u0088\u008a\u008c"+
"\u008e\u0090\u0092\u0094\u0096\2\5\3\2\24\26\4\2\23 \"\"\3\2*+\2\u0350"+
"\2\u0099\3\2\2\2\4\u00a1\3\2\2\2\6\u00a6\3\2\2\2\b\u00aa\3\2\2\2\n\u00ad"+
"\3\2\2\2\f\u00cf\3\2\2\2\16\u00d2\3\2\2\2\20\u00de\3\2\2\2\22\u00e6\3"+
"\2\2\2\24\u00e8\3\2\2\2\26\u00ec\3\2\2\2\30\u00f3\3\2\2\2\32\u00f9\3\2"+
"\2\2\34\u0120\3\2\2\2\36\u0122\3\2\2\2 \u0134\3\2\2\2\"\u013d\3\2\2\2"+
"$\u0146\3\2\2\2&\u0151\3\2\2\2(\u015a\3\2\2\2*\u0166\3\2\2\2,\u018d\3"+
"\2\2\2.\u0190\3\2\2\2\60\u01a7\3\2\2\2\62\u01a9\3\2\2\2\64\u01ac\3\2\2"+
"\2\66\u01bb\3\2\2\28\u01d4\3\2\2\2:\u01d6\3\2\2\2<\u01df\3\2\2\2>\u01e8"+
"\3\2\2\2@\u01ef\3\2\2\2B\u0208\3\2\2\2D\u020a\3\2\2\2F\u0213\3\2\2\2H"+
"\u021c\3\2\2\2J\u0227\3\2\2\2L\u0229\3\2\2\2N\u0234\3\2\2\2P\u0236\3\2"+
"\2\2R\u0238\3\2\2\2T\u023a\3\2\2\2V\u0243\3\2\2\2X\u024c\3\2\2\2Z\u0255"+
"\3\2\2\2\\\u025e\3\2\2\2^\u0262\3\2\2\2`\u0267\3\2\2\2b\u026b\3\2\2\2"+
"d\u0270\3\2\2\2f\u0278\3\2\2\2h\u027c\3\2\2\2j\u0281\3\2\2\2l\u0285\3"+
"\2\2\2n\u028b\3\2\2\2p\u0295\3\2\2\2r\u02a0\3\2\2\2t\u02a2\3\2\2\2v\u02a5"+
"\3\2\2\2x\u02a8\3\2\2\2z\u02ad\3\2\2\2|\u02af\3\2\2\2~\u02b1\3\2\2\2\u0080"+
"\u02bb\3\2\2\2\u0082\u02ca\3\2\2\2\u0084\u02cc\3\2\2\2\u0086\u02d4\3\2"+
"\2\2\u0088\u02dd\3\2\2\2\u008a\u02e8\3\2\2\2\u008c\u02eb\3\2\2\2\u008e"+
"\u02f7\3\2\2\2\u0090\u02fa\3\2\2\2\u0092\u02ff\3\2\2\2\u0094\u0308\3\2"+
"\2\2\u0096\u0310\3\2\2\2\u0098\u009a\5\4\3\2\u0099\u0098\3\2\2\2\u009a"+
"\u009b\3\2\2\2\u009b\u0099\3\2\2\2\u009b\u009c\3\2\2\2\u009c\3\3\2\2\2"+
"\u009d\u00a2\5\u0082B\2\u009e\u00a2\5\u0094K\2\u009f\u00a2\5\6\4\2\u00a0"+
"\u00a2\5\b\5\2\u00a1\u009d\3\2\2\2\u00a1\u009e\3\2\2\2\u00a1\u009f\3\2"+
"\2\2\u00a1\u00a0\3\2\2\2\u00a2\5\3\2\2\2\u00a3\u00a7\5\n\6\2\u00a4\u00a7"+
"\5\20\t\2\u00a5\u00a7\5H%\2\u00a6\u00a3\3\2\2\2\u00a6\u00a4\3\2\2\2\u00a6"+
"\u00a5\3\2\2\2\u00a7\7\3\2\2\2\u00a8\u00ab\5\f\7\2\u00a9\u00ab\5\22\n"+
"\2\u00aa\u00a8\3\2\2\2\u00aa\u00a9\3\2\2\2\u00ab\t\3\2\2\2\u00ac\u00ae"+
"\5P)\2\u00ad\u00ac\3\2\2\2\u00ad\u00ae\3\2\2\2\u00ae\u00af\3\2\2\2\u00af"+
"\u00b1\7\27\2\2\u00b0\u00b2\5`\61\2\u00b1\u00b0\3\2\2\2\u00b1\u00b2\3"+
"\2\2\2\u00b2\u00b3\3\2\2\2\u00b3\u00b5\7\3\2\2\u00b4\u00b6\5\16\b\2\u00b5"+
"\u00b4\3\2\2\2\u00b6\u00b7\3\2\2\2\u00b7\u00b5\3\2\2\2\u00b7\u00b8\3\2"+
"\2\2\u00b8\u00b9\3\2\2\2\u00b9\u00ba\7\4\2\2\u00ba\13\3\2\2\2\u00bb\u00bc"+
"\7\37\2\2\u00bc\u00be\7\27\2\2\u00bd\u00bf\5`\61\2\u00be\u00bd\3\2\2\2"+
"\u00be\u00bf\3\2\2\2\u00bf\u00c0\3\2\2\2\u00c0\u00c2\7\3\2\2\u00c1\u00c3"+
"\5\16\b\2\u00c2\u00c1\3\2\2\2\u00c3\u00c4\3\2\2\2\u00c4\u00c2\3\2\2\2"+
"\u00c4\u00c5\3\2\2\2\u00c5\u00c6\3\2\2\2\u00c6\u00c7\7\4\2\2\u00c7\u00d0"+
"\3\2\2\2\u00c8\u00c9\7\37\2\2\u00c9\u00cb\7\27\2\2\u00ca\u00cc\5`\61\2"+
"\u00cb\u00ca\3\2\2\2\u00cc\u00cd\3\2\2\2\u00cd\u00cb\3\2\2\2\u00cd\u00ce"+
"\3\2\2\2\u00ce\u00d0\3\2\2\2\u00cf\u00bb\3\2\2\2\u00cf\u00c8\3\2\2\2\u00d0"+
"\r\3\2\2\2\u00d1\u00d3\5P)\2\u00d2\u00d1\3\2\2\2\u00d2\u00d3\3\2\2\2\u00d3"+
"\u00d4\3\2\2\2\u00d4\u00d5\5N(\2\u00d5\u00d6\7\5\2\2\u00d6\u00d7\5|?\2"+
"\u00d7\17\3\2\2\2\u00d8\u00df\5\26\f\2\u00d9\u00df\5\32\16\2\u00da\u00df"+
"\5*\26\2\u00db\u00df\5.\30\2\u00dc\u00df\5\66\34\2\u00dd\u00df\5@!\2\u00de"+
"\u00d8\3\2\2\2\u00de\u00d9\3\2\2\2\u00de\u00da\3\2\2\2\u00de\u00db\3\2"+
"\2\2\u00de\u00dc\3\2\2\2\u00de\u00dd\3\2\2\2\u00df\21\3\2\2\2\u00e0\u00e7"+
"\5\34\17\2\u00e1\u00e7\5,\27\2\u00e2\u00e7\5\60\31\2\u00e3\u00e7\5\30"+
"\r\2\u00e4\u00e7\58\35\2\u00e5\u00e7\5B\"\2\u00e6\u00e0\3\2\2\2\u00e6"+
"\u00e1\3\2\2\2\u00e6\u00e2\3\2\2\2\u00e6\u00e3\3\2\2\2\u00e6\u00e4\3\2"+
"\2\2\u00e6\u00e5\3\2\2\2\u00e7\23\3\2\2\2\u00e8\u00e9\7\3\2\2\u00e9\u00ea"+
"\7\4\2\2\u00ea\25\3\2\2\2\u00eb\u00ed\5P)\2\u00ec\u00eb\3\2\2\2\u00ec"+
"\u00ed\3\2\2\2\u00ed\u00ee\3\2\2\2\u00ee\u00ef\7\30\2\2\u00ef\u00f1\5"+
"n8\2\u00f0\u00f2\5`\61\2\u00f1\u00f0\3\2\2\2\u00f1\u00f2\3\2\2\2\u00f2"+
"\27\3\2\2\2\u00f3\u00f4\7\37\2\2\u00f4\u00f5\7\30\2\2\u00f5\u00f6\5n8"+
"\2\u00f6\u00f7\5`\61\2\u00f7\31\3\2\2\2\u00f8\u00fa\5P)\2\u00f9\u00f8"+
"\3\2\2\2\u00f9\u00fa\3\2\2\2\u00fa\u00fb\3\2\2\2\u00fb\u00fc\7\31\2\2"+
"\u00fc\u00fe\5n8\2\u00fd\u00ff\5\36\20\2\u00fe\u00fd\3\2\2\2\u00fe\u00ff"+
"\3\2\2\2\u00ff\u0101\3\2\2\2\u0100\u0102\5`\61\2\u0101\u0100\3\2\2\2\u0101"+
"\u0102\3\2\2\2\u0102\u0104\3\2\2\2\u0103\u0105\5 \21\2\u0104\u0103\3\2"+
"\2\2\u0104\u0105\3\2\2\2\u0105\33\3\2\2\2\u0106\u0107\7\37\2\2\u0107\u0108"+
"\7\31\2\2\u0108\u010a\5n8\2\u0109\u010b\5\36\20\2\u010a\u0109\3\2\2\2"+
"\u010a\u010b\3\2\2\2\u010b\u010d\3\2\2\2\u010c\u010e\5`\61\2\u010d\u010c"+
"\3\2\2\2\u010d\u010e\3\2\2\2\u010e\u010f\3\2\2\2\u010f\u0110\5\"\22\2"+
"\u0110\u0121\3\2\2\2\u0111\u0112\7\37\2\2\u0112\u0113\7\31\2\2\u0113\u0115"+
"\5n8\2\u0114\u0116\5\36\20\2\u0115\u0114\3\2\2\2\u0115\u0116\3\2\2\2\u0116"+
"\u0117\3\2\2\2\u0117\u0119\5`\61\2\u0118\u011a\5\24\13\2\u0119\u0118\3"+
"\2\2\2\u0119\u011a\3\2\2\2\u011a\u0121\3\2\2\2\u011b\u011c\7\37\2\2\u011c"+
"\u011d\7\31\2\2\u011d\u011e\5n8\2\u011e\u011f\5\36\20\2\u011f\u0121\3"+
"\2\2\2\u0120\u0106\3\2\2\2\u0120\u0111\3\2\2\2\u0120\u011b\3\2\2\2\u0121"+
"\35\3\2\2\2\u0122\u0123\b\20\1\2\u0123\u0125\7\33\2\2\u0124\u0126\7\6"+
"\2\2\u0125\u0124\3\2\2\2\u0125\u0126\3\2\2\2\u0126\u0128\3\2\2\2\u0127"+
"\u0129\5|?\2\u0128\u0127\3\2\2\2\u0129\u012a\3\2\2\2\u012a\u0128\3\2\2"+
"\2\u012a\u012b\3\2\2\2\u012b\u0131\3\2\2\2\u012c\u012d\f\3\2\2\u012d\u012e"+
"\7\6\2\2\u012e\u0130\5|?\2\u012f\u012c\3\2\2\2\u0130\u0133\3\2\2\2\u0131"+
"\u012f\3\2\2\2\u0131\u0132\3\2\2\2\u0132\37\3\2\2\2\u0133\u0131\3\2\2"+
"\2\u0134\u0138\7\3\2\2\u0135\u0137\5$\23\2\u0136\u0135\3\2\2\2\u0137\u013a"+
"\3\2\2\2\u0138\u0136\3\2\2\2\u0138\u0139\3\2\2\2\u0139\u013b\3\2\2\2\u013a"+
"\u0138\3\2\2\2\u013b\u013c\7\4\2\2\u013c!\3\2\2\2\u013d\u013f\7\3\2\2"+
"\u013e\u0140\5$\23\2\u013f\u013e\3\2\2\2\u0140\u0141\3\2\2\2\u0141\u013f"+
"\3\2\2\2\u0141\u0142\3\2\2\2\u0142\u0143\3\2\2\2\u0143\u0144\7\4\2\2\u0144"+
"#\3\2\2\2\u0145\u0147\5P)\2\u0146\u0145\3\2\2\2\u0146\u0147\3\2\2\2\u0147"+
"\u0148\3\2\2\2\u0148\u014a\5n8\2\u0149\u014b\5&\24\2\u014a\u0149\3\2\2"+
"\2\u014a\u014b\3\2\2\2\u014b\u014c\3\2\2\2\u014c\u014d\7\5\2\2\u014d\u014f"+
"\5z>\2\u014e\u0150\5`\61\2\u014f\u014e\3\2\2\2\u014f\u0150\3\2\2\2\u0150"+
"%\3\2\2\2\u0151\u0153\7\7\2\2\u0152\u0154\5(\25\2\u0153\u0152\3\2\2\2"+
"\u0154\u0155\3\2\2\2\u0155\u0153\3\2\2\2\u0155\u0156\3\2\2\2\u0156\u0157"+
"\3\2\2\2\u0157\u0158\7\b\2\2\u0158\'\3\2\2\2\u0159\u015b\5P)\2\u015a\u0159"+
"\3\2\2\2\u015a\u015b\3\2\2\2\u015b\u015c\3\2\2\2\u015c\u015d\5n8\2\u015d"+
"\u015e\7\5\2\2\u015e\u0160\5z>\2\u015f\u0161\5v<\2\u0160\u015f\3\2\2\2"+
"\u0160\u0161\3\2\2\2\u0161\u0163\3\2\2\2\u0162\u0164\5`\61\2\u0163\u0162"+
"\3\2\2\2\u0163\u0164\3\2\2\2\u0164)\3\2\2\2\u0165\u0167\5P)\2\u0166\u0165"+
"\3\2\2\2\u0166\u0167\3\2\2\2\u0167\u0168\3\2\2\2\u0168\u0169\7\32\2\2"+
"\u0169\u016b\5n8\2\u016a\u016c\5\36\20\2\u016b\u016a\3\2\2\2\u016b\u016c"+
"\3\2\2\2\u016c\u016e\3\2\2\2\u016d\u016f\5`\61\2\u016e\u016d\3\2\2\2\u016e"+
"\u016f\3\2\2\2\u016f\u0171\3\2\2\2\u0170\u0172\5 \21\2\u0171\u0170\3\2"+
"\2\2\u0171\u0172\3\2\2\2\u0172+\3\2\2\2\u0173\u0174\7\37\2\2\u0174\u0175"+
"\7\32\2\2\u0175\u0177\5n8\2\u0176\u0178\5\36\20\2\u0177\u0176\3\2\2\2"+
"\u0177\u0178\3\2\2\2\u0178\u017a\3\2\2\2\u0179\u017b\5`\61\2\u017a\u0179"+
"\3\2\2\2\u017a\u017b\3\2\2\2\u017b\u017c\3\2\2\2\u017c\u017d\5\"\22\2"+
"\u017d\u018e\3\2\2\2\u017e\u017f\7\37\2\2\u017f\u0180\7\32\2\2\u0180\u0182"+
"\5n8\2\u0181\u0183\5\36\20\2\u0182\u0181\3\2\2\2\u0182\u0183\3\2\2\2\u0183"+
"\u0184\3\2\2\2\u0184\u0186\5`\61\2\u0185\u0187\5\24\13\2\u0186\u0185\3"+
"\2\2\2\u0186\u0187\3\2\2\2\u0187\u018e\3\2\2\2\u0188\u0189\7\37\2\2\u0189"+
"\u018a\7\32\2\2\u018a\u018b\5n8\2\u018b\u018c\5\36\20\2\u018c\u018e\3"+
"\2\2\2\u018d\u0173\3\2\2\2\u018d\u017e\3\2\2\2\u018d\u0188\3\2\2\2\u018e"+
"-\3\2\2\2\u018f\u0191\5P)\2\u0190\u018f\3\2\2\2\u0190\u0191\3\2\2\2\u0191"+
"\u0192\3\2\2\2\u0192\u0193\7\35\2\2\u0193\u0195\5n8\2\u0194\u0196\5`\61"+
"\2\u0195\u0194\3\2\2\2\u0195\u0196\3\2\2\2\u0196\u0198\3\2\2\2\u0197\u0199"+
"\5\62\32\2\u0198\u0197\3\2\2\2\u0198\u0199\3\2\2\2\u0199/\3\2\2\2\u019a"+
"\u019b\7\37\2\2\u019b\u019c\7\35\2\2\u019c\u019e\5n8\2\u019d\u019f\5`"+
"\61\2\u019e\u019d\3\2\2\2\u019e\u019f\3\2\2\2\u019f\u01a0\3\2\2\2\u01a0"+
"\u01a1\5\62\32\2\u01a1\u01a8\3\2\2\2\u01a2\u01a3\7\37\2\2\u01a3\u01a4"+
"\7\35\2\2\u01a4\u01a5\5n8\2\u01a5\u01a6\5`\61\2\u01a6\u01a8\3\2\2\2\u01a7"+
"\u019a\3\2\2\2\u01a7\u01a2\3\2\2\2\u01a8\61\3\2\2\2\u01a9\u01aa\7\t\2"+
"\2\u01aa\u01ab\5\64\33\2\u01ab\63\3\2\2\2\u01ac\u01ae\b\33\1\2\u01ad\u01af"+
"\7\n\2\2\u01ae\u01ad\3\2\2\2\u01ae\u01af\3\2\2\2\u01af\u01b0\3\2\2\2\u01b0"+
"\u01b1\5|?\2\u01b1\u01b7\3\2\2\2\u01b2\u01b3\f\3\2\2\u01b3\u01b4\7\n\2"+
"\2\u01b4\u01b6\5|?\2\u01b5\u01b2\3\2\2\2\u01b6\u01b9\3\2\2\2\u01b7\u01b5"+
"\3\2\2\2\u01b7\u01b8\3\2\2\2\u01b8\65\3\2\2\2\u01b9\u01b7\3\2\2\2\u01ba"+
"\u01bc\5P)\2\u01bb\u01ba\3\2\2\2\u01bb\u01bc\3\2\2\2\u01bc\u01bd\3\2\2"+
"\2\u01bd\u01be\7\34\2\2\u01be\u01c0\5n8\2\u01bf\u01c1\5`\61\2\u01c0\u01bf"+
"\3\2\2\2\u01c0\u01c1\3\2\2\2\u01c1\u01c3\3\2\2\2\u01c2\u01c4\5:\36\2\u01c3"+
"\u01c2\3\2\2\2\u01c3\u01c4\3\2\2\2\u01c4\67\3\2\2\2\u01c5\u01c6\7\37\2"+
"\2\u01c6\u01c7\7\34\2\2\u01c7\u01c9\5n8\2\u01c8\u01ca\5`\61\2\u01c9\u01c8"+
"\3\2\2\2\u01c9\u01ca\3\2\2\2\u01ca\u01cb\3\2\2\2\u01cb\u01cc\5<\37\2\u01cc"+
"\u01d5\3\2\2\2\u01cd\u01ce\7\37\2\2\u01ce\u01cf\7\34\2\2\u01cf\u01d0\5"+
"n8\2\u01d0\u01d2\5`\61\2\u01d1\u01d3\5\24\13\2\u01d2\u01d1\3\2\2\2\u01d2"+
"\u01d3\3\2\2\2\u01d3\u01d5\3\2\2\2\u01d4\u01c5\3\2\2\2\u01d4\u01cd\3\2"+
"\2\2\u01d59\3\2\2\2\u01d6\u01da\7\3\2\2\u01d7\u01d9\5> \2\u01d8\u01d7"+
"\3\2\2\2\u01d9\u01dc\3\2\2\2\u01da\u01d8\3\2\2\2\u01da\u01db\3\2\2\2\u01db"+
"\u01dd\3\2\2\2\u01dc\u01da\3\2\2\2\u01dd\u01de\7\4\2\2\u01de;\3\2\2\2"+
"\u01df\u01e1\7\3\2\2\u01e0\u01e2\5> \2\u01e1\u01e0\3\2\2\2\u01e2\u01e3"+
"\3\2\2\2\u01e3\u01e1\3\2\2\2\u01e3\u01e4\3\2\2\2\u01e4\u01e5\3\2\2\2\u01e5"+
"\u01e6\7\4\2\2\u01e6=\3\2\2\2\u01e7\u01e9\5P)\2\u01e8\u01e7\3\2\2\2\u01e8"+
"\u01e9\3\2\2\2\u01e9\u01ea\3\2\2\2\u01ea\u01ec\5R*\2\u01eb\u01ed\5`\61"+
"\2\u01ec\u01eb\3\2\2\2\u01ec\u01ed\3\2\2\2\u01ed?\3\2\2\2\u01ee\u01f0"+
"\5P)\2\u01ef\u01ee\3\2\2\2\u01ef\u01f0\3\2\2\2\u01f0\u01f1\3\2\2\2\u01f1"+
"\u01f2\7\36\2\2\u01f2\u01f4\5n8\2\u01f3\u01f5\5`\61\2\u01f4\u01f3\3\2"+
"\2\2\u01f4\u01f5\3\2\2\2\u01f5\u01f7\3\2\2\2\u01f6\u01f8\5D#\2\u01f7\u01f6"+
"\3\2\2\2\u01f7\u01f8\3\2\2\2\u01f8A\3\2\2\2\u01f9\u01fa\7\37\2\2\u01fa"+
"\u01fb\7\36\2\2\u01fb\u01fd\5n8\2\u01fc\u01fe\5`\61\2\u01fd\u01fc\3\2"+
"\2\2\u01fd\u01fe\3\2\2\2\u01fe\u01ff\3\2\2\2\u01ff\u0200\5F$\2\u0200\u0209"+
"\3\2\2\2\u0201\u0202\7\37\2\2\u0202\u0203\7\36\2\2\u0203\u0204\5n8\2\u0204"+
"\u0206\5`\61\2\u0205\u0207\5\24\13\2\u0206\u0205\3\2\2\2\u0206\u0207\3"+
"\2\2\2\u0207\u0209\3\2\2\2\u0208\u01f9\3\2\2\2\u0208\u0201\3\2\2\2\u0209"+
"C\3\2\2\2\u020a\u020e\7\3\2\2\u020b\u020d\5(\25\2\u020c\u020b\3\2\2\2"+
"\u020d\u0210\3\2\2\2\u020e\u020c\3\2\2\2\u020e\u020f\3\2\2\2\u020f\u0211"+
"\3\2\2\2\u0210\u020e\3\2\2\2\u0211\u0212\7\4\2\2\u0212E\3\2\2\2\u0213"+
"\u0215\7\3\2\2\u0214\u0216\5(\25\2\u0215\u0214\3\2\2\2\u0216\u0217\3\2"+
"\2\2\u0217\u0215\3\2\2\2\u0217\u0218\3\2\2\2\u0218\u0219\3\2\2\2\u0219"+
"\u021a\7\4\2\2\u021aG\3\2\2\2\u021b\u021d\5P)\2\u021c\u021b\3\2\2\2\u021c"+
"\u021d\3\2\2\2\u021d\u021e\3\2\2\2\u021e\u021f\7 \2\2\u021f\u0220\7\13"+
"\2\2\u0220\u0222\5n8\2\u0221\u0223\5&\24\2\u0222\u0221\3\2\2\2\u0222\u0223"+
"\3\2\2\2\u0223\u0224\3\2\2\2\u0224\u0225\7!\2\2\u0225\u0226\5L\'\2\u0226"+
"I\3\2\2\2\u0227\u0228\5n8\2\u0228K\3\2\2\2\u0229\u022a\b\'\1\2\u022a\u022b"+
"\5J&\2\u022b\u0231\3\2\2\2\u022c\u022d\f\3\2\2\u022d\u022e\7\n\2\2\u022e"+
"\u0230\5J&\2\u022f\u022c\3\2\2\2\u0230\u0233\3\2\2\2\u0231\u022f\3\2\2"+
"\2\u0231\u0232\3\2\2\2\u0232M\3\2\2\2\u0233\u0231\3\2\2\2\u0234\u0235"+
"\t\2\2\2\u0235O\3\2\2\2\u0236\u0237\5x=\2\u0237Q\3\2\2\2\u0238\u0239\5"+
"l\67\2\u0239S\3\2\2\2\u023a\u023e\7\f\2\2\u023b\u023d\5p9\2\u023c\u023b"+
"\3\2\2\2\u023d\u0240\3\2\2\2\u023e\u023c\3\2\2\2\u023e\u023f\3\2\2\2\u023f"+
"\u0241\3\2\2\2\u0240\u023e\3\2\2\2\u0241\u0242\7\r\2\2\u0242U\3\2\2\2"+
"\u0243\u0247\7\f\2\2\u0244\u0246\5r:\2\u0245\u0244\3\2\2\2\u0246\u0249"+
"\3\2\2\2\u0247\u0245\3\2\2\2\u0247\u0248\3\2\2\2\u0248\u024a\3\2\2\2\u0249"+
"\u0247\3\2\2\2\u024a\u024b\7\r\2\2\u024bW\3\2\2\2\u024c\u0250\7\3\2\2"+
"\u024d\u024f\5\\/\2\u024e\u024d\3\2\2\2\u024f\u0252\3\2\2\2\u0250\u024e"+
"\3\2\2\2\u0250\u0251\3\2\2\2\u0251\u0253\3\2\2\2\u0252\u0250\3\2\2\2\u0253"+
"\u0254\7\4\2\2\u0254Y\3\2\2\2\u0255\u0259\7\3\2\2\u0256\u0258\5^\60\2"+
"\u0257\u0256\3\2\2\2\u0258\u025b\3\2\2\2\u0259\u0257\3\2\2\2\u0259\u025a"+
"\3\2\2\2\u025a\u025c\3\2\2\2\u025b\u0259\3\2\2\2\u025c\u025d\7\4\2\2\u025d"+
"[\3\2\2\2\u025e\u025f\5n8\2\u025f\u0260\7\5\2\2\u0260\u0261\5p9\2\u0261"+
"]\3\2\2\2\u0262\u0263\5n8\2\u0263\u0264\7\5\2\2\u0264\u0265\5r:\2\u0265"+
"_\3\2\2\2\u0266\u0268\5b\62\2\u0267\u0266\3\2\2\2\u0268\u0269\3\2\2\2"+
"\u0269\u0267\3\2\2\2\u0269\u026a\3\2\2\2\u026aa\3\2\2\2\u026b\u026c\7"+
"\13\2\2\u026c\u026e\5n8\2\u026d\u026f\5d\63\2\u026e\u026d\3\2\2\2\u026e"+
"\u026f\3\2\2\2\u026fc\3\2\2\2\u0270\u0272\7\7\2\2\u0271\u0273\5f\64\2"+
"\u0272\u0271\3\2\2\2\u0273\u0274\3\2\2\2\u0274\u0272\3\2\2\2\u0274\u0275"+
"\3\2\2\2\u0275\u0276\3\2\2\2\u0276\u0277\7\b\2\2\u0277e\3\2\2\2\u0278"+
"\u0279\5n8\2\u0279\u027a\7\5\2\2\u027a\u027b\5r:\2\u027bg\3\2\2\2\u027c"+
"\u027d\t\3\2\2\u027di\3\2\2\2\u027e\u0282\5h\65\2\u027f\u0282\7\21\2\2"+
"\u0280\u0282\7\22\2\2\u0281\u027e\3\2\2\2\u0281\u027f\3\2\2\2\u0281\u0280"+
"\3\2\2\2\u0282k\3\2\2\2\u0283\u0286\5h\65\2\u0284\u0286\7!\2\2\u0285\u0283"+
"\3\2\2\2\u0285\u0284\3\2\2\2\u0286m\3\2\2\2\u0287\u028c\5h\65\2\u0288"+
"\u028c\7\21\2\2\u0289\u028c\7\22\2\2\u028a\u028c\7!\2\2\u028b\u0287\3"+
"\2\2\2\u028b\u0288\3\2\2\2\u028b\u0289\3\2\2\2\u028b\u028a\3\2\2\2\u028c"+
"o\3\2\2\2\u028d\u0296\5x=\2\u028e\u0296\7#\2\2\u028f\u0296\7$\2\2\u0290"+
"\u0296\7\21\2\2\u0291\u0296\7\22\2\2\u0292\u0296\5R*\2\u0293\u0296\5T"+
"+\2\u0294\u0296\5X-\2\u0295\u028d\3\2\2\2\u0295\u028e\3\2\2\2\u0295\u028f"+
"\3\2\2\2\u0295\u0290\3\2\2\2\u0295\u0291\3\2\2\2\u0295\u0292\3\2\2\2\u0295"+
"\u0293\3\2\2\2\u0295\u0294\3\2\2\2\u0296q\3\2\2\2\u0297\u02a1\5t;\2\u0298"+
"\u02a1\5x=\2\u0299\u02a1\7#\2\2\u029a\u02a1\7$\2\2\u029b\u02a1\7\21\2"+
"\2\u029c\u02a1\7\22\2\2\u029d\u02a1\5R*\2\u029e\u02a1\5V,\2\u029f\u02a1"+
"\5Z.\2\u02a0\u0297\3\2\2\2\u02a0\u0298\3\2\2\2\u02a0\u0299\3\2\2\2\u02a0"+
"\u029a\3\2\2\2\u02a0\u029b\3\2\2\2\u02a0\u029c\3\2\2\2\u02a0\u029d\3\2"+
"\2\2\u02a0\u029e\3\2\2\2\u02a0\u029f\3\2\2\2\u02a1s\3\2\2\2\u02a2\u02a3"+
"\7\16\2\2\u02a3\u02a4\5n8\2\u02a4u\3\2\2\2\u02a5\u02a6\7\t\2\2\u02a6\u02a7"+
"\5p9\2\u02a7w\3\2\2\2\u02a8\u02a9\t\4\2\2\u02a9y\3\2\2\2\u02aa\u02ae\5"+
"|?\2\u02ab\u02ae\5~@\2\u02ac\u02ae\5\u0080A\2\u02ad\u02aa\3\2\2\2\u02ad"+
"\u02ab\3\2\2\2\u02ad\u02ac\3\2\2\2\u02ae{\3\2\2\2\u02af\u02b0\5n8\2\u02b0"+
"}\3\2\2\2\u02b1\u02b2\7\f\2\2\u02b2\u02b3\5z>\2\u02b3\u02b4\7\r\2\2\u02b4"+
"\177\3\2\2\2\u02b5\u02b6\5|?\2\u02b6\u02b7\7\17\2\2\u02b7\u02bc\3\2\2"+
"\2\u02b8\u02b9\5~@\2\u02b9\u02ba\7\17\2\2\u02ba\u02bc\3\2\2\2\u02bb\u02b5"+
"\3\2\2\2\u02bb\u02b8\3\2\2\2\u02bc\u0081\3\2\2\2\u02bd\u02cb\5\u0088E"+
"\2\u02be\u02c0\5N(\2\u02bf\u02c1\5n8\2\u02c0\u02bf\3\2\2\2\u02c0\u02c1"+
"\3\2\2\2\u02c1\u02c3\3\2\2\2\u02c2\u02c4\5\u0084C\2\u02c3\u02c2\3\2\2"+
"\2\u02c3\u02c4\3\2\2\2\u02c4\u02c6\3\2\2\2\u02c5\u02c7\5`\61\2\u02c6\u02c5"+
"\3\2\2\2\u02c6\u02c7\3\2\2\2\u02c7\u02c8\3\2\2\2\u02c8\u02c9\5\u0088E"+
"\2\u02c9\u02cb\3\2\2\2\u02ca\u02bd\3\2\2\2\u02ca\u02be\3\2\2\2\u02cb\u0083"+
"\3\2\2\2\u02cc\u02ce\7\7\2\2\u02cd\u02cf\5\u0086D\2\u02ce\u02cd\3\2\2"+
"\2\u02cf\u02d0\3\2\2\2\u02d0\u02ce\3\2\2\2\u02d0\u02d1\3\2\2\2\u02d1\u02d2"+
"\3\2\2\2\u02d2\u02d3\7\b\2\2\u02d3\u0085\3\2\2\2\u02d4\u02d5\5t;\2\u02d5"+
"\u02d6\7\5\2\2\u02d6\u02d8\5z>\2\u02d7\u02d9\5v<\2\u02d8\u02d7\3\2\2\2"+
"\u02d8\u02d9\3\2\2\2\u02d9\u02db\3\2\2\2\u02da\u02dc\5`\61\2\u02db\u02da"+
"\3\2\2\2\u02db\u02dc\3\2\2\2\u02dc\u0087\3\2\2\2\u02dd\u02df\7\3\2\2\u02de"+
"\u02e0\5\u008aF\2\u02df\u02de\3\2\2\2\u02e0\u02e1\3\2\2\2\u02e1\u02df"+
"\3\2\2\2\u02e1\u02e2\3\2\2\2\u02e2\u02e3\3\2\2\2\u02e3\u02e4\7\4\2\2\u02e4"+
"\u0089\3\2\2\2\u02e5\u02e9\5\u008cG\2\u02e6\u02e9\5\u0090I\2\u02e7\u02e9"+
"\5\u0092J\2\u02e8\u02e5\3\2\2\2\u02e8\u02e6\3\2\2\2\u02e8\u02e7\3\2\2"+
"\2\u02e9\u008b\3\2\2\2\u02ea\u02ec\5\u008eH\2\u02eb\u02ea\3\2\2\2\u02eb"+
"\u02ec\3\2\2\2\u02ec\u02ed\3\2\2\2\u02ed\u02ef\5n8\2\u02ee\u02f0\5d\63"+
"\2\u02ef\u02ee\3\2\2\2\u02ef\u02f0\3\2\2\2\u02f0\u02f2\3\2\2\2\u02f1\u02f3"+
"\5`\61\2\u02f2\u02f1\3\2\2\2\u02f2\u02f3\3\2\2\2\u02f3\u02f5\3\2\2\2\u02f4"+
"\u02f6\5\u0088E\2\u02f5\u02f4\3\2\2\2\u02f5\u02f6\3\2\2\2\u02f6\u008d"+
"\3\2\2\2\u02f7\u02f8\5n8\2\u02f8\u02f9\7\5\2\2\u02f9\u008f\3\2\2\2\u02fa"+
"\u02fb\7\20\2\2\u02fb\u02fd\5j\66\2\u02fc\u02fe\5`\61\2\u02fd\u02fc\3"+
"\2\2\2\u02fd\u02fe\3\2\2\2\u02fe\u0091\3\2\2\2\u02ff\u0301\7\20\2\2\u0300"+
"\u0302\5\u0096L\2\u0301\u0300\3\2\2\2\u0301\u0302\3\2\2\2\u0302\u0304"+
"\3\2\2\2\u0303\u0305\5`\61\2\u0304\u0303\3\2\2\2\u0304\u0305\3\2\2\2\u0305"+
"\u0306\3\2\2\2\u0306\u0307\5\u0088E\2\u0307\u0093\3\2\2\2\u0308\u0309"+
"\7\23\2\2\u0309\u030a\5j\66\2\u030a\u030c\5\u0096L\2\u030b\u030d\5`\61"+
"\2\u030c\u030b\3\2\2\2\u030c\u030d\3\2\2\2\u030d\u030e\3\2\2\2\u030e\u030f"+
"\5\u0088E\2\u030f\u0095\3\2\2\2\u0310\u0311\7!\2\2\u0311\u0312\5|?\2\u0312"+
"\u0097\3\2\2\2k\u009b\u00a1\u00a6\u00aa\u00ad\u00b1\u00b7\u00be\u00c4"+
"\u00cd\u00cf\u00d2\u00de\u00e6\u00ec\u00f1\u00f9\u00fe\u0101\u0104\u010a"+
"\u010d\u0115\u0119\u0120\u0125\u012a\u0131\u0138\u0141\u0146\u014a\u014f"+
"\u0155\u015a\u0160\u0163\u0166\u016b\u016e\u0171\u0177\u017a\u0182\u0186"+
"\u018d\u0190\u0195\u0198\u019e\u01a7\u01ae\u01b7\u01bb\u01c0\u01c3\u01c9"+
"\u01d2\u01d4\u01da\u01e3\u01e8\u01ec\u01ef\u01f4\u01f7\u01fd\u0206\u0208"+
"\u020e\u0217\u021c\u0222\u0231\u023e\u0247\u0250\u0259\u0269\u026e\u0274"+
"\u0281\u0285\u028b\u0295\u02a0\u02ad\u02bb\u02c0\u02c3\u02c6\u02ca\u02d0"+
"\u02d8\u02db\u02e1\u02e8\u02eb\u02ef\u02f2\u02f5\u02fd\u0301\u0304\u030c";
public static final ATN _ATN =
new ATNDeserializer().deserialize(_serializedATN.toCharArray());
static {
_decisionToDFA = new DFA[_ATN.getNumberOfDecisions()];
for (int i = 0; i < _ATN.getNumberOfDecisions(); i++) {
_decisionToDFA[i] = new DFA(_ATN.getDecisionState(i), i);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy