me.wener.jraphql.parser.antlr.GraphQLParser Maven / Gradle / Ivy
// Generated from me/wener/jraphql/parser/antlr/GraphQL.g4 by ANTLR 4.7.1
package me.wener.jraphql.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.1", 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, T__14=15, T__15=16, T__16=17,
T__17=18, T__18=19, T__19=20, T__20=21, T__21=22, T__22=23, T__23=24,
T__24=25, T__25=26, T__26=27, T__27=28, T__28=29, T__29=30, T__30=31,
T__31=32, T__32=33, Ignored=34, UnicodeBOM=35, WhiteSpace=36, LineTerminator=37,
Comment=38, Comma=39, IntegerPart=40, NegativeSign=41, FractionalPart=42,
ExponentPart=43, StringConst=44, DirectiveLocation=45, ExecutableDirectiveLocation=46,
TypeSystemDirectiveLocation=47, NAME=48;
public static final int
RULE_graphql = 0, RULE_name = 1, RULE_document = 2, RULE_executableDocument = 3,
RULE_typeSystemDocument = 4, RULE_definition = 5, RULE_executableDefinition = 6,
RULE_operationDefinition = 7, RULE_operationType = 8, RULE_selectionSet = 9,
RULE_selection = 10, RULE_field = 11, RULE_arguments = 12, RULE_argument = 13,
RULE_alias = 14, RULE_fragmentSpread = 15, RULE_fragmentDefinition = 16,
RULE_fragmentName = 17, RULE_typeCondition = 18, RULE_inlineFragment = 19,
RULE_value = 20, RULE_intValue = 21, RULE_floatValue = 22, RULE_booleanValue = 23,
RULE_stringValue = 24, RULE_nullValue = 25, RULE_enumValue = 26, RULE_listValue = 27,
RULE_objectValue = 28, RULE_objectField = 29, RULE_variable = 30, RULE_variableDefinitions = 31,
RULE_variableDefinition = 32, RULE_defaultValue = 33, RULE_type = 34,
RULE_namedType = 35, RULE_listType = 36, RULE_nonNullType = 37, RULE_directives = 38,
RULE_directive = 39, RULE_typeSystemDefinition = 40, RULE_schemaDefinition = 41,
RULE_operationTypeDefinition = 42, RULE_description = 43, RULE_typeDefinition = 44,
RULE_typeExtension = 45, RULE_scalarTypeDefinition = 46, RULE_scalarTypeExtension = 47,
RULE_objectTypeDefinition = 48, RULE_objectTypeExtension = 49, RULE_implementsInterfaces = 50,
RULE_fieldsDefinition = 51, RULE_fieldDefinition = 52, RULE_argumentsDefinition = 53,
RULE_inputValueDefinition = 54, RULE_interfaceTypeDefinition = 55, RULE_interfaceTypeExtension = 56,
RULE_unionTypeDefinition = 57, RULE_unionMemberTypes = 58, RULE_unionTypeExtension = 59,
RULE_enumTypeDefinition = 60, RULE_enumValuesDefinition = 61, RULE_enumValueDefinition = 62,
RULE_enumTypeExtension = 63, RULE_inputObjectTypeDefinition = 64, RULE_inputFieldsDefinition = 65,
RULE_inputObjectTypeExtension = 66, RULE_directiveDefinition = 67, RULE_directiveLocations = 68;
public static final String[] ruleNames = {
"graphql", "name", "document", "executableDocument", "typeSystemDocument",
"definition", "executableDefinition", "operationDefinition", "operationType",
"selectionSet", "selection", "field", "arguments", "argument", "alias",
"fragmentSpread", "fragmentDefinition", "fragmentName", "typeCondition",
"inlineFragment", "value", "intValue", "floatValue", "booleanValue", "stringValue",
"nullValue", "enumValue", "listValue", "objectValue", "objectField", "variable",
"variableDefinitions", "variableDefinition", "defaultValue", "type", "namedType",
"listType", "nonNullType", "directives", "directive", "typeSystemDefinition",
"schemaDefinition", "operationTypeDefinition", "description", "typeDefinition",
"typeExtension", "scalarTypeDefinition", "scalarTypeExtension", "objectTypeDefinition",
"objectTypeExtension", "implementsInterfaces", "fieldsDefinition", "fieldDefinition",
"argumentsDefinition", "inputValueDefinition", "interfaceTypeDefinition",
"interfaceTypeExtension", "unionTypeDefinition", "unionMemberTypes", "unionTypeExtension",
"enumTypeDefinition", "enumValuesDefinition", "enumValueDefinition", "enumTypeExtension",
"inputObjectTypeDefinition", "inputFieldsDefinition", "inputObjectTypeExtension",
"directiveDefinition", "directiveLocations"
};
private static final String[] _LITERAL_NAMES = {
null, "'type'", "'fragment'", "'extend'", "'implements'", "'schema'",
"'enum'", "'union'", "'interface'", "'input'", "'scalar'", "'directive'",
"'query'", "'mutation'", "'subscription'", "'by'", "'{'", "'}'", "'('",
"')'", "':'", "'...'", "'on'", "'true'", "'false'", "'null'", "'['", "']'",
"'$'", "'='", "'!'", "'@'", "'&'", "'|'", null, null, null, null, null,
"','", null, "'-'"
};
private static final String[] _SYMBOLIC_NAMES = {
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, "Ignored",
"UnicodeBOM", "WhiteSpace", "LineTerminator", "Comment", "Comma", "IntegerPart",
"NegativeSign", "FractionalPart", "ExponentPart", "StringConst", "DirectiveLocation",
"ExecutableDirectiveLocation", "TypeSystemDirectiveLocation", "NAME"
};
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 GraphqlContext extends ParserRuleContext {
public DocumentContext document() {
return getRuleContext(DocumentContext.class,0);
}
public GraphqlContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_graphql; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).enterGraphql(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).exitGraphql(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphQLVisitor ) return ((GraphQLVisitor extends T>)visitor).visitGraphql(this);
else return visitor.visitChildren(this);
}
}
public final GraphqlContext graphql() throws RecognitionException {
GraphqlContext _localctx = new GraphqlContext(_ctx, getState());
enterRule(_localctx, 0, RULE_graphql);
try {
enterOuterAlt(_localctx, 1);
{
setState(138);
document();
}
}
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 TerminalNode NAME() { return getToken(GraphQLParser.NAME, 0); }
public TerminalNode DirectiveLocation() { return getToken(GraphQLParser.DirectiveLocation, 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, 2, RULE_name);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(140);
_la = _input.LA(1);
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__0) | (1L << T__1) | (1L << T__2) | (1L << T__3) | (1L << T__4) | (1L << T__5) | (1L << T__6) | (1L << T__7) | (1L << T__8) | (1L << T__9) | (1L << T__10) | (1L << T__11) | (1L << T__12) | (1L << T__13) | (1L << T__14) | (1L << DirectiveLocation) | (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 DocumentContext extends ParserRuleContext {
public TerminalNode EOF() { return getToken(GraphQLParser.EOF, 0); }
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, 4, RULE_document);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(143);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(142);
definition();
}
}
setState(145);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__0) | (1L << T__1) | (1L << T__2) | (1L << T__4) | (1L << T__5) | (1L << T__6) | (1L << T__7) | (1L << T__8) | (1L << T__9) | (1L << T__10) | (1L << T__11) | (1L << T__12) | (1L << T__13) | (1L << T__15) | (1L << StringConst))) != 0) );
setState(147);
match(EOF);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ExecutableDocumentContext extends ParserRuleContext {
public TerminalNode EOF() { return getToken(GraphQLParser.EOF, 0); }
public List executableDefinition() {
return getRuleContexts(ExecutableDefinitionContext.class);
}
public ExecutableDefinitionContext executableDefinition(int i) {
return getRuleContext(ExecutableDefinitionContext.class,i);
}
public ExecutableDocumentContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_executableDocument; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).enterExecutableDocument(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).exitExecutableDocument(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphQLVisitor ) return ((GraphQLVisitor extends T>)visitor).visitExecutableDocument(this);
else return visitor.visitChildren(this);
}
}
public final ExecutableDocumentContext executableDocument() throws RecognitionException {
ExecutableDocumentContext _localctx = new ExecutableDocumentContext(_ctx, getState());
enterRule(_localctx, 6, RULE_executableDocument);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(150);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(149);
executableDefinition();
}
}
setState(152);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__1) | (1L << T__11) | (1L << T__12) | (1L << T__13) | (1L << T__15))) != 0) );
setState(154);
match(EOF);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class TypeSystemDocumentContext extends ParserRuleContext {
public TerminalNode EOF() { return getToken(GraphQLParser.EOF, 0); }
public List typeSystemDefinition() {
return getRuleContexts(TypeSystemDefinitionContext.class);
}
public TypeSystemDefinitionContext typeSystemDefinition(int i) {
return getRuleContext(TypeSystemDefinitionContext.class,i);
}
public TypeSystemDocumentContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_typeSystemDocument; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).enterTypeSystemDocument(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).exitTypeSystemDocument(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphQLVisitor ) return ((GraphQLVisitor extends T>)visitor).visitTypeSystemDocument(this);
else return visitor.visitChildren(this);
}
}
public final TypeSystemDocumentContext typeSystemDocument() throws RecognitionException {
TypeSystemDocumentContext _localctx = new TypeSystemDocumentContext(_ctx, getState());
enterRule(_localctx, 8, RULE_typeSystemDocument);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(157);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(156);
typeSystemDefinition();
}
}
setState(159);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__0) | (1L << T__2) | (1L << T__4) | (1L << T__5) | (1L << T__6) | (1L << T__7) | (1L << T__8) | (1L << T__9) | (1L << T__10) | (1L << StringConst))) != 0) );
setState(161);
match(EOF);
}
}
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 ExecutableDefinitionContext executableDefinition() {
return getRuleContext(ExecutableDefinitionContext.class,0);
}
public TypeSystemDefinitionContext typeSystemDefinition() {
return getRuleContext(TypeSystemDefinitionContext.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, 10, RULE_definition);
try {
setState(165);
_errHandler.sync(this);
switch (_input.LA(1)) {
case T__1:
case T__11:
case T__12:
case T__13:
case T__15:
enterOuterAlt(_localctx, 1);
{
setState(163);
executableDefinition();
}
break;
case T__0:
case T__2:
case T__4:
case T__5:
case T__6:
case T__7:
case T__8:
case T__9:
case T__10:
case StringConst:
enterOuterAlt(_localctx, 2);
{
setState(164);
typeSystemDefinition();
}
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 ExecutableDefinitionContext extends ParserRuleContext {
public OperationDefinitionContext operationDefinition() {
return getRuleContext(OperationDefinitionContext.class,0);
}
public FragmentDefinitionContext fragmentDefinition() {
return getRuleContext(FragmentDefinitionContext.class,0);
}
public ExecutableDefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_executableDefinition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).enterExecutableDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).exitExecutableDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphQLVisitor ) return ((GraphQLVisitor extends T>)visitor).visitExecutableDefinition(this);
else return visitor.visitChildren(this);
}
}
public final ExecutableDefinitionContext executableDefinition() throws RecognitionException {
ExecutableDefinitionContext _localctx = new ExecutableDefinitionContext(_ctx, getState());
enterRule(_localctx, 12, RULE_executableDefinition);
try {
setState(169);
_errHandler.sync(this);
switch (_input.LA(1)) {
case T__11:
case T__12:
case T__13:
case T__15:
enterOuterAlt(_localctx, 1);
{
setState(167);
operationDefinition();
}
break;
case T__1:
enterOuterAlt(_localctx, 2);
{
setState(168);
fragmentDefinition();
}
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 OperationTypeContext operationType() {
return getRuleContext(OperationTypeContext.class,0);
}
public SelectionSetContext selectionSet() {
return getRuleContext(SelectionSetContext.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, 14, RULE_operationDefinition);
int _la;
try {
setState(184);
_errHandler.sync(this);
switch (_input.LA(1)) {
case T__11:
case T__12:
case T__13:
enterOuterAlt(_localctx, 1);
{
setState(171);
operationType();
setState(173);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__0) | (1L << T__1) | (1L << T__2) | (1L << T__3) | (1L << T__4) | (1L << T__5) | (1L << T__6) | (1L << T__7) | (1L << T__8) | (1L << T__9) | (1L << T__10) | (1L << T__11) | (1L << T__12) | (1L << T__13) | (1L << T__14) | (1L << DirectiveLocation) | (1L << NAME))) != 0)) {
{
setState(172);
name();
}
}
setState(176);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__17) {
{
setState(175);
variableDefinitions();
}
}
setState(179);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__30) {
{
setState(178);
directives();
}
}
setState(181);
selectionSet();
}
break;
case T__15:
enterOuterAlt(_localctx, 2);
{
setState(183);
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 OperationTypeContext extends ParserRuleContext {
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, 16, RULE_operationType);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(186);
_la = _input.LA(1);
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__11) | (1L << T__12) | (1L << T__13))) != 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 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, 18, RULE_selectionSet);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(188);
match(T__15);
setState(190);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(189);
selection();
}
}
setState(192);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__0) | (1L << T__1) | (1L << T__2) | (1L << T__3) | (1L << T__4) | (1L << T__5) | (1L << T__6) | (1L << T__7) | (1L << T__8) | (1L << T__9) | (1L << T__10) | (1L << T__11) | (1L << T__12) | (1L << T__13) | (1L << T__14) | (1L << T__20) | (1L << DirectiveLocation) | (1L << NAME))) != 0) );
setState(194);
match(T__16);
}
}
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, 20, RULE_selection);
try {
setState(199);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,10,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(196);
field();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(197);
fragmentSpread();
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(198);
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, 22, RULE_field);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(202);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,11,_ctx) ) {
case 1:
{
setState(201);
alias();
}
break;
}
setState(204);
name();
setState(206);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__17) {
{
setState(205);
arguments();
}
}
setState(209);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__30) {
{
setState(208);
directives();
}
}
setState(212);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__15) {
{
setState(211);
selectionSet();
}
}
}
}
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, 24, RULE_arguments);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(214);
match(T__17);
setState(216);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(215);
argument();
}
}
setState(218);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__0) | (1L << T__1) | (1L << T__2) | (1L << T__3) | (1L << T__4) | (1L << T__5) | (1L << T__6) | (1L << T__7) | (1L << T__8) | (1L << T__9) | (1L << T__10) | (1L << T__11) | (1L << T__12) | (1L << T__13) | (1L << T__14) | (1L << DirectiveLocation) | (1L << NAME))) != 0) );
setState(220);
match(T__18);
}
}
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 ValueContext value() {
return getRuleContext(ValueContext.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, 26, RULE_argument);
try {
enterOuterAlt(_localctx, 1);
{
setState(222);
name();
setState(223);
match(T__19);
setState(224);
value();
}
}
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, 28, RULE_alias);
try {
enterOuterAlt(_localctx, 1);
{
setState(226);
name();
setState(227);
match(T__19);
}
}
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, 30, RULE_fragmentSpread);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(229);
match(T__20);
setState(230);
fragmentName();
setState(232);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__30) {
{
setState(231);
directives();
}
}
}
}
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 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, 32, RULE_fragmentDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(234);
match(T__1);
setState(235);
fragmentName();
setState(236);
typeCondition();
setState(238);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__30) {
{
setState(237);
directives();
}
}
setState(240);
selectionSet();
}
}
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 NameContext name() {
return getRuleContext(NameContext.class,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, 34, RULE_fragmentName);
try {
enterOuterAlt(_localctx, 1);
{
setState(242);
name();
}
}
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 NamedTypeContext namedType() {
return getRuleContext(NamedTypeContext.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, 36, RULE_typeCondition);
try {
enterOuterAlt(_localctx, 1);
{
setState(244);
match(T__21);
setState(245);
namedType();
}
}
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, 38, RULE_inlineFragment);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(247);
match(T__20);
setState(249);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__21) {
{
setState(248);
typeCondition();
}
}
setState(252);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__30) {
{
setState(251);
directives();
}
}
setState(254);
selectionSet();
}
}
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 VariableContext variable() {
return getRuleContext(VariableContext.class,0);
}
public FloatValueContext floatValue() {
return getRuleContext(FloatValueContext.class,0);
}
public IntValueContext intValue() {
return getRuleContext(IntValueContext.class,0);
}
public StringValueContext stringValue() {
return getRuleContext(StringValueContext.class,0);
}
public BooleanValueContext booleanValue() {
return getRuleContext(BooleanValueContext.class,0);
}
public NullValueContext nullValue() {
return getRuleContext(NullValueContext.class,0);
}
public EnumValueContext enumValue() {
return getRuleContext(EnumValueContext.class,0);
}
public ListValueContext listValue() {
return getRuleContext(ListValueContext.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, 40, RULE_value);
try {
setState(265);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,20,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(256);
variable();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(257);
floatValue();
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(258);
intValue();
}
break;
case 4:
enterOuterAlt(_localctx, 4);
{
setState(259);
stringValue();
}
break;
case 5:
enterOuterAlt(_localctx, 5);
{
setState(260);
booleanValue();
}
break;
case 6:
enterOuterAlt(_localctx, 6);
{
setState(261);
nullValue();
}
break;
case 7:
enterOuterAlt(_localctx, 7);
{
setState(262);
enumValue();
}
break;
case 8:
enterOuterAlt(_localctx, 8);
{
setState(263);
listValue();
}
break;
case 9:
enterOuterAlt(_localctx, 9);
{
setState(264);
objectValue();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class IntValueContext extends ParserRuleContext {
public TerminalNode IntegerPart() { return getToken(GraphQLParser.IntegerPart, 0); }
public IntValueContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_intValue; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).enterIntValue(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).exitIntValue(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphQLVisitor ) return ((GraphQLVisitor extends T>)visitor).visitIntValue(this);
else return visitor.visitChildren(this);
}
}
public final IntValueContext intValue() throws RecognitionException {
IntValueContext _localctx = new IntValueContext(_ctx, getState());
enterRule(_localctx, 42, RULE_intValue);
try {
enterOuterAlt(_localctx, 1);
{
setState(267);
match(IntegerPart);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class FloatValueContext extends ParserRuleContext {
public TerminalNode IntegerPart() { return getToken(GraphQLParser.IntegerPart, 0); }
public TerminalNode FractionalPart() { return getToken(GraphQLParser.FractionalPart, 0); }
public TerminalNode ExponentPart() { return getToken(GraphQLParser.ExponentPart, 0); }
public FloatValueContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_floatValue; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).enterFloatValue(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).exitFloatValue(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphQLVisitor ) return ((GraphQLVisitor extends T>)visitor).visitFloatValue(this);
else return visitor.visitChildren(this);
}
}
public final FloatValueContext floatValue() throws RecognitionException {
FloatValueContext _localctx = new FloatValueContext(_ctx, getState());
enterRule(_localctx, 44, RULE_floatValue);
try {
setState(276);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,21,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(269);
match(IntegerPart);
setState(270);
match(FractionalPart);
setState(271);
match(ExponentPart);
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(272);
match(IntegerPart);
setState(273);
match(ExponentPart);
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(274);
match(IntegerPart);
setState(275);
match(FractionalPart);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class BooleanValueContext extends ParserRuleContext {
public BooleanValueContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_booleanValue; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).enterBooleanValue(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).exitBooleanValue(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphQLVisitor ) return ((GraphQLVisitor extends T>)visitor).visitBooleanValue(this);
else return visitor.visitChildren(this);
}
}
public final BooleanValueContext booleanValue() throws RecognitionException {
BooleanValueContext _localctx = new BooleanValueContext(_ctx, getState());
enterRule(_localctx, 46, RULE_booleanValue);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(278);
_la = _input.LA(1);
if ( !(_la==T__22 || _la==T__23) ) {
_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 StringValueContext extends ParserRuleContext {
public TerminalNode StringConst() { return getToken(GraphQLParser.StringConst, 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, 48, RULE_stringValue);
try {
enterOuterAlt(_localctx, 1);
{
setState(280);
match(StringConst);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class NullValueContext extends ParserRuleContext {
public NullValueContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_nullValue; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).enterNullValue(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).exitNullValue(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphQLVisitor ) return ((GraphQLVisitor extends T>)visitor).visitNullValue(this);
else return visitor.visitChildren(this);
}
}
public final NullValueContext nullValue() throws RecognitionException {
NullValueContext _localctx = new NullValueContext(_ctx, getState());
enterRule(_localctx, 50, RULE_nullValue);
try {
enterOuterAlt(_localctx, 1);
{
setState(282);
match(T__24);
}
}
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 NameContext name() {
return getRuleContext(NameContext.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, 52, RULE_enumValue);
try {
enterOuterAlt(_localctx, 1);
{
setState(284);
name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ListValueContext extends ParserRuleContext {
public List value() {
return getRuleContexts(ValueContext.class);
}
public ValueContext value(int i) {
return getRuleContext(ValueContext.class,i);
}
public ListValueContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_listValue; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).enterListValue(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).exitListValue(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphQLVisitor ) return ((GraphQLVisitor extends T>)visitor).visitListValue(this);
else return visitor.visitChildren(this);
}
}
public final ListValueContext listValue() throws RecognitionException {
ListValueContext _localctx = new ListValueContext(_ctx, getState());
enterRule(_localctx, 54, RULE_listValue);
int _la;
try {
setState(296);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,23,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(286);
match(T__25);
setState(287);
match(T__26);
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(288);
match(T__25);
setState(290);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(289);
value();
}
}
setState(292);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__0) | (1L << T__1) | (1L << T__2) | (1L << T__3) | (1L << T__4) | (1L << T__5) | (1L << T__6) | (1L << T__7) | (1L << T__8) | (1L << T__9) | (1L << T__10) | (1L << T__11) | (1L << T__12) | (1L << T__13) | (1L << T__14) | (1L << T__15) | (1L << T__22) | (1L << T__23) | (1L << T__24) | (1L << T__25) | (1L << T__27) | (1L << IntegerPart) | (1L << StringConst) | (1L << DirectiveLocation) | (1L << NAME))) != 0) );
setState(294);
match(T__26);
}
break;
}
}
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, 56, RULE_objectValue);
int _la;
try {
setState(308);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,25,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(298);
match(T__15);
setState(299);
match(T__16);
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(300);
match(T__15);
setState(302);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(301);
objectField();
}
}
setState(304);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__0) | (1L << T__1) | (1L << T__2) | (1L << T__3) | (1L << T__4) | (1L << T__5) | (1L << T__6) | (1L << T__7) | (1L << T__8) | (1L << T__9) | (1L << T__10) | (1L << T__11) | (1L << T__12) | (1L << T__13) | (1L << T__14) | (1L << DirectiveLocation) | (1L << NAME))) != 0) );
setState(306);
match(T__16);
}
break;
}
}
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, 58, RULE_objectField);
try {
enterOuterAlt(_localctx, 1);
{
setState(310);
name();
setState(311);
match(T__19);
setState(312);
value();
}
}
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, 60, RULE_variable);
try {
enterOuterAlt(_localctx, 1);
{
setState(314);
match(T__27);
setState(315);
name();
}
}
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, 62, RULE_variableDefinitions);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(317);
match(T__17);
setState(319);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(318);
variableDefinition();
}
}
setState(321);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( _la==T__27 );
setState(323);
match(T__18);
}
}
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 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, 64, RULE_variableDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(325);
variable();
setState(326);
match(T__19);
setState(327);
type();
setState(332);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,28,_ctx) ) {
case 1:
{
setState(329);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__28) {
{
setState(328);
match(T__28);
}
}
setState(331);
defaultValue();
}
break;
}
}
}
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, 66, RULE_defaultValue);
try {
enterOuterAlt(_localctx, 1);
{
setState(334);
value();
}
}
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 NamedTypeContext namedType() {
return getRuleContext(NamedTypeContext.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, 68, RULE_type);
try {
setState(339);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,29,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(336);
namedType();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(337);
listType();
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(338);
nonNullType();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class NamedTypeContext extends ParserRuleContext {
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public NamedTypeContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_namedType; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).enterNamedType(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).exitNamedType(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphQLVisitor ) return ((GraphQLVisitor extends T>)visitor).visitNamedType(this);
else return visitor.visitChildren(this);
}
}
public final NamedTypeContext namedType() throws RecognitionException {
NamedTypeContext _localctx = new NamedTypeContext(_ctx, getState());
enterRule(_localctx, 70, RULE_namedType);
try {
enterOuterAlt(_localctx, 1);
{
setState(341);
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, 72, RULE_listType);
try {
enterOuterAlt(_localctx, 1);
{
setState(343);
match(T__25);
setState(344);
type();
setState(345);
match(T__26);
}
}
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 NamedTypeContext namedType() {
return getRuleContext(NamedTypeContext.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, 74, RULE_nonNullType);
try {
setState(353);
_errHandler.sync(this);
switch (_input.LA(1)) {
case T__0:
case T__1:
case T__2:
case T__3:
case T__4:
case T__5:
case T__6:
case T__7:
case T__8:
case T__9:
case T__10:
case T__11:
case T__12:
case T__13:
case T__14:
case DirectiveLocation:
case NAME:
enterOuterAlt(_localctx, 1);
{
setState(347);
namedType();
setState(348);
match(T__29);
}
break;
case T__25:
enterOuterAlt(_localctx, 2);
{
setState(350);
listType();
setState(351);
match(T__29);
}
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 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, 76, RULE_directives);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(356);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(355);
directive();
}
}
setState(358);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( _la==T__30 );
}
}
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, 78, RULE_directive);
try {
enterOuterAlt(_localctx, 1);
{
setState(360);
match(T__30);
setState(361);
name();
setState(363);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,32,_ctx) ) {
case 1:
{
setState(362);
arguments();
}
break;
}
}
}
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 TypeExtensionContext typeExtension() {
return getRuleContext(TypeExtensionContext.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, 80, RULE_typeSystemDefinition);
try {
setState(369);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,33,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(365);
schemaDefinition();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(366);
typeDefinition();
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(367);
typeExtension();
}
break;
case 4:
enterOuterAlt(_localctx, 4);
{
setState(368);
directiveDefinition();
}
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 NameContext name() {
return getRuleContext(NameContext.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, 82, RULE_schemaDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(371);
match(T__4);
setState(373);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__0) | (1L << T__1) | (1L << T__2) | (1L << T__3) | (1L << T__4) | (1L << T__5) | (1L << T__6) | (1L << T__7) | (1L << T__8) | (1L << T__9) | (1L << T__10) | (1L << T__11) | (1L << T__12) | (1L << T__13) | (1L << T__14) | (1L << DirectiveLocation) | (1L << NAME))) != 0)) {
{
setState(372);
name();
}
}
setState(376);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__30) {
{
setState(375);
directives();
}
}
setState(378);
match(T__15);
setState(380);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(379);
operationTypeDefinition();
}
}
setState(382);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__11) | (1L << T__12) | (1L << T__13))) != 0) );
setState(384);
match(T__16);
}
}
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 NamedTypeContext namedType() {
return getRuleContext(NamedTypeContext.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, 84, RULE_operationTypeDefinition);
try {
enterOuterAlt(_localctx, 1);
{
setState(386);
operationType();
setState(387);
match(T__19);
setState(388);
namedType();
}
}
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, 86, RULE_description);
try {
enterOuterAlt(_localctx, 1);
{
setState(390);
stringValue();
}
}
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, 88, RULE_typeDefinition);
try {
setState(398);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,37,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(392);
scalarTypeDefinition();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(393);
objectTypeDefinition();
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(394);
interfaceTypeDefinition();
}
break;
case 4:
enterOuterAlt(_localctx, 4);
{
setState(395);
unionTypeDefinition();
}
break;
case 5:
enterOuterAlt(_localctx, 5);
{
setState(396);
enumTypeDefinition();
}
break;
case 6:
enterOuterAlt(_localctx, 6);
{
setState(397);
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 ScalarTypeExtensionContext scalarTypeExtension() {
return getRuleContext(ScalarTypeExtensionContext.class,0);
}
public ObjectTypeExtensionContext objectTypeExtension() {
return getRuleContext(ObjectTypeExtensionContext.class,0);
}
public InterfaceTypeExtensionContext interfaceTypeExtension() {
return getRuleContext(InterfaceTypeExtensionContext.class,0);
}
public UnionTypeExtensionContext unionTypeExtension() {
return getRuleContext(UnionTypeExtensionContext.class,0);
}
public EnumTypeExtensionContext enumTypeExtension() {
return getRuleContext(EnumTypeExtensionContext.class,0);
}
public InputObjectTypeExtensionContext inputObjectTypeExtension() {
return getRuleContext(InputObjectTypeExtensionContext.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, 90, RULE_typeExtension);
try {
setState(406);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,38,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(400);
scalarTypeExtension();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(401);
objectTypeExtension();
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(402);
interfaceTypeExtension();
}
break;
case 4:
enterOuterAlt(_localctx, 4);
{
setState(403);
unionTypeExtension();
}
break;
case 5:
enterOuterAlt(_localctx, 5);
{
setState(404);
enumTypeExtension();
}
break;
case 6:
enterOuterAlt(_localctx, 6);
{
setState(405);
inputObjectTypeExtension();
}
break;
}
}
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 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, 92, RULE_scalarTypeDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(409);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==StringConst) {
{
setState(408);
description();
}
}
setState(411);
match(T__9);
setState(412);
name();
setState(414);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__30) {
{
setState(413);
directives();
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ScalarTypeExtensionContext extends ParserRuleContext {
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public ScalarTypeExtensionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_scalarTypeExtension; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).enterScalarTypeExtension(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).exitScalarTypeExtension(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphQLVisitor ) return ((GraphQLVisitor extends T>)visitor).visitScalarTypeExtension(this);
else return visitor.visitChildren(this);
}
}
public final ScalarTypeExtensionContext scalarTypeExtension() throws RecognitionException {
ScalarTypeExtensionContext _localctx = new ScalarTypeExtensionContext(_ctx, getState());
enterRule(_localctx, 94, RULE_scalarTypeExtension);
try {
enterOuterAlt(_localctx, 1);
{
setState(416);
match(T__2);
setState(417);
match(T__9);
setState(418);
name();
setState(419);
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 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, 96, RULE_objectTypeDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(422);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==StringConst) {
{
setState(421);
description();
}
}
setState(424);
match(T__0);
setState(425);
name();
setState(427);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__3) {
{
setState(426);
implementsInterfaces(0);
}
}
setState(430);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__30) {
{
setState(429);
directives();
}
}
setState(433);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,44,_ctx) ) {
case 1:
{
setState(432);
fieldsDefinition();
}
break;
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ObjectTypeExtensionContext extends ParserRuleContext {
public List name() {
return getRuleContexts(NameContext.class);
}
public NameContext name(int i) {
return getRuleContext(NameContext.class,i);
}
public FieldsDefinitionContext fieldsDefinition() {
return getRuleContext(FieldsDefinitionContext.class,0);
}
public ImplementsInterfacesContext implementsInterfaces() {
return getRuleContext(ImplementsInterfacesContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public ObjectTypeExtensionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_objectTypeExtension; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).enterObjectTypeExtension(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).exitObjectTypeExtension(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphQLVisitor ) return ((GraphQLVisitor extends T>)visitor).visitObjectTypeExtension(this);
else return visitor.visitChildren(this);
}
}
public final ObjectTypeExtensionContext objectTypeExtension() throws RecognitionException {
ObjectTypeExtensionContext _localctx = new ObjectTypeExtensionContext(_ctx, getState());
enterRule(_localctx, 98, RULE_objectTypeExtension);
int _la;
try {
setState(470);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,50,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(435);
match(T__2);
setState(436);
match(T__0);
setState(437);
name();
setState(439);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__3) {
{
setState(438);
implementsInterfaces(0);
}
}
setState(442);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__30) {
{
setState(441);
directives();
}
}
setState(444);
fieldsDefinition();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(446);
match(T__2);
setState(447);
match(T__0);
setState(448);
name();
setState(450);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__3) {
{
setState(449);
implementsInterfaces(0);
}
}
setState(452);
directives();
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(454);
match(T__2);
setState(455);
match(T__0);
setState(456);
name();
setState(457);
implementsInterfaces(0);
}
break;
case 4:
enterOuterAlt(_localctx, 4);
{
setState(459);
match(T__2);
setState(460);
match(T__0);
setState(461);
name();
setState(462);
match(T__14);
setState(463);
name();
setState(465);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__30) {
{
setState(464);
directives();
}
}
setState(468);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,49,_ctx) ) {
case 1:
{
setState(467);
fieldsDefinition();
}
break;
}
}
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 NamedTypeContext namedType() {
return getRuleContext(NamedTypeContext.class,0);
}
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 = 100;
enterRecursionRule(_localctx, 100, RULE_implementsInterfaces, _p);
int _la;
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
{
setState(473);
match(T__3);
setState(475);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__31) {
{
setState(474);
match(T__31);
}
}
setState(477);
namedType();
}
_ctx.stop = _input.LT(-1);
setState(486);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,53,_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(479);
if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)");
setState(481);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__31) {
{
setState(480);
match(T__31);
}
}
setState(483);
namedType();
}
}
}
setState(488);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,53,_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, 102, RULE_fieldsDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(489);
match(T__15);
setState(491);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(490);
fieldDefinition();
}
}
setState(493);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__0) | (1L << T__1) | (1L << T__2) | (1L << T__3) | (1L << T__4) | (1L << T__5) | (1L << T__6) | (1L << T__7) | (1L << T__8) | (1L << T__9) | (1L << T__10) | (1L << T__11) | (1L << T__12) | (1L << T__13) | (1L << T__14) | (1L << StringConst) | (1L << DirectiveLocation) | (1L << NAME))) != 0) );
setState(495);
match(T__16);
}
}
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, 104, RULE_fieldDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(498);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==StringConst) {
{
setState(497);
description();
}
}
setState(500);
name();
setState(502);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__17) {
{
setState(501);
argumentsDefinition();
}
}
setState(504);
match(T__19);
setState(505);
type();
setState(507);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__30) {
{
setState(506);
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, 106, RULE_argumentsDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(509);
match(T__17);
setState(513);
_errHandler.sync(this);
_la = _input.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__0) | (1L << T__1) | (1L << T__2) | (1L << T__3) | (1L << T__4) | (1L << T__5) | (1L << T__6) | (1L << T__7) | (1L << T__8) | (1L << T__9) | (1L << T__10) | (1L << T__11) | (1L << T__12) | (1L << T__13) | (1L << T__14) | (1L << StringConst) | (1L << DirectiveLocation) | (1L << NAME))) != 0)) {
{
{
setState(510);
inputValueDefinition();
}
}
setState(515);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(516);
match(T__18);
}
}
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, 108, RULE_inputValueDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(519);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==StringConst) {
{
setState(518);
description();
}
}
setState(521);
name();
setState(522);
match(T__19);
setState(523);
type();
setState(528);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,61,_ctx) ) {
case 1:
{
setState(525);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__28) {
{
setState(524);
match(T__28);
}
}
setState(527);
defaultValue();
}
break;
}
setState(531);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__30) {
{
setState(530);
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 NameContext name() {
return getRuleContext(NameContext.class,0);
}
public DescriptionContext description() {
return getRuleContext(DescriptionContext.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, 110, RULE_interfaceTypeDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(534);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==StringConst) {
{
setState(533);
description();
}
}
setState(536);
match(T__7);
setState(537);
name();
setState(539);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__30) {
{
setState(538);
directives();
}
}
setState(542);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,65,_ctx) ) {
case 1:
{
setState(541);
fieldsDefinition();
}
break;
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class InterfaceTypeExtensionContext extends ParserRuleContext {
public List name() {
return getRuleContexts(NameContext.class);
}
public NameContext name(int i) {
return getRuleContext(NameContext.class,i);
}
public FieldsDefinitionContext fieldsDefinition() {
return getRuleContext(FieldsDefinitionContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public InterfaceTypeExtensionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_interfaceTypeExtension; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).enterInterfaceTypeExtension(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).exitInterfaceTypeExtension(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphQLVisitor ) return ((GraphQLVisitor extends T>)visitor).visitInterfaceTypeExtension(this);
else return visitor.visitChildren(this);
}
}
public final InterfaceTypeExtensionContext interfaceTypeExtension() throws RecognitionException {
InterfaceTypeExtensionContext _localctx = new InterfaceTypeExtensionContext(_ctx, getState());
enterRule(_localctx, 112, RULE_interfaceTypeExtension);
int _la;
try {
setState(568);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,69,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(544);
match(T__2);
setState(545);
match(T__7);
setState(546);
name();
setState(548);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__30) {
{
setState(547);
directives();
}
}
setState(550);
fieldsDefinition();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(552);
match(T__2);
setState(553);
match(T__7);
setState(554);
name();
setState(555);
directives();
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(557);
match(T__2);
setState(558);
match(T__7);
setState(559);
name();
setState(560);
match(T__14);
setState(561);
name();
setState(563);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__30) {
{
setState(562);
directives();
}
}
setState(566);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,68,_ctx) ) {
case 1:
{
setState(565);
fieldsDefinition();
}
break;
}
}
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 NameContext name() {
return getRuleContext(NameContext.class,0);
}
public DescriptionContext description() {
return getRuleContext(DescriptionContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public UnionMemberTypesContext unionMemberTypes() {
return getRuleContext(UnionMemberTypesContext.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, 114, RULE_unionTypeDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(571);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==StringConst) {
{
setState(570);
description();
}
}
setState(573);
match(T__6);
setState(574);
name();
setState(576);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__30) {
{
setState(575);
directives();
}
}
setState(579);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__28) {
{
setState(578);
unionMemberTypes(0);
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class UnionMemberTypesContext extends ParserRuleContext {
public NamedTypeContext namedType() {
return getRuleContext(NamedTypeContext.class,0);
}
public UnionMemberTypesContext unionMemberTypes() {
return getRuleContext(UnionMemberTypesContext.class,0);
}
public UnionMemberTypesContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_unionMemberTypes; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).enterUnionMemberTypes(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).exitUnionMemberTypes(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphQLVisitor ) return ((GraphQLVisitor extends T>)visitor).visitUnionMemberTypes(this);
else return visitor.visitChildren(this);
}
}
public final UnionMemberTypesContext unionMemberTypes() throws RecognitionException {
return unionMemberTypes(0);
}
private UnionMemberTypesContext unionMemberTypes(int _p) throws RecognitionException {
ParserRuleContext _parentctx = _ctx;
int _parentState = getState();
UnionMemberTypesContext _localctx = new UnionMemberTypesContext(_ctx, _parentState);
UnionMemberTypesContext _prevctx = _localctx;
int _startState = 116;
enterRecursionRule(_localctx, 116, RULE_unionMemberTypes, _p);
int _la;
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
{
setState(582);
match(T__28);
setState(584);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__32) {
{
setState(583);
match(T__32);
}
}
setState(586);
namedType();
}
_ctx.stop = _input.LT(-1);
setState(593);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,74,_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 UnionMemberTypesContext(_parentctx, _parentState);
pushNewRecursionContext(_localctx, _startState, RULE_unionMemberTypes);
setState(588);
if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)");
setState(589);
match(T__32);
setState(590);
namedType();
}
}
}
setState(595);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,74,_ctx);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
unrollRecursionContexts(_parentctx);
}
return _localctx;
}
public static class UnionTypeExtensionContext extends ParserRuleContext {
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public UnionMemberTypesContext unionMemberTypes() {
return getRuleContext(UnionMemberTypesContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public UnionTypeExtensionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_unionTypeExtension; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).enterUnionTypeExtension(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).exitUnionTypeExtension(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphQLVisitor ) return ((GraphQLVisitor extends T>)visitor).visitUnionTypeExtension(this);
else return visitor.visitChildren(this);
}
}
public final UnionTypeExtensionContext unionTypeExtension() throws RecognitionException {
UnionTypeExtensionContext _localctx = new UnionTypeExtensionContext(_ctx, getState());
enterRule(_localctx, 118, RULE_unionTypeExtension);
int _la;
try {
setState(609);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,76,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(596);
match(T__2);
setState(597);
match(T__6);
setState(598);
name();
setState(600);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__30) {
{
setState(599);
directives();
}
}
setState(602);
unionMemberTypes(0);
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(604);
match(T__2);
setState(605);
match(T__6);
setState(606);
name();
setState(607);
directives();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class EnumTypeDefinitionContext extends ParserRuleContext {
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 EnumValuesDefinitionContext enumValuesDefinition() {
return getRuleContext(EnumValuesDefinitionContext.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, 120, RULE_enumTypeDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(612);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==StringConst) {
{
setState(611);
description();
}
}
setState(614);
match(T__5);
setState(615);
name();
setState(617);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__30) {
{
setState(616);
directives();
}
}
setState(620);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,79,_ctx) ) {
case 1:
{
setState(619);
enumValuesDefinition();
}
break;
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class EnumValuesDefinitionContext extends ParserRuleContext {
public List enumValueDefinition() {
return getRuleContexts(EnumValueDefinitionContext.class);
}
public EnumValueDefinitionContext enumValueDefinition(int i) {
return getRuleContext(EnumValueDefinitionContext.class,i);
}
public EnumValuesDefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_enumValuesDefinition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).enterEnumValuesDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).exitEnumValuesDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphQLVisitor ) return ((GraphQLVisitor extends T>)visitor).visitEnumValuesDefinition(this);
else return visitor.visitChildren(this);
}
}
public final EnumValuesDefinitionContext enumValuesDefinition() throws RecognitionException {
EnumValuesDefinitionContext _localctx = new EnumValuesDefinitionContext(_ctx, getState());
enterRule(_localctx, 122, RULE_enumValuesDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(622);
match(T__15);
setState(624);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(623);
enumValueDefinition();
}
}
setState(626);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__0) | (1L << T__1) | (1L << T__2) | (1L << T__3) | (1L << T__4) | (1L << T__5) | (1L << T__6) | (1L << T__7) | (1L << T__8) | (1L << T__9) | (1L << T__10) | (1L << T__11) | (1L << T__12) | (1L << T__13) | (1L << T__14) | (1L << StringConst) | (1L << DirectiveLocation) | (1L << NAME))) != 0) );
setState(628);
match(T__16);
}
}
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, 124, RULE_enumValueDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(631);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==StringConst) {
{
setState(630);
description();
}
}
setState(633);
enumValue();
setState(635);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__30) {
{
setState(634);
directives();
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class EnumTypeExtensionContext extends ParserRuleContext {
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public EnumValuesDefinitionContext enumValuesDefinition() {
return getRuleContext(EnumValuesDefinitionContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public EnumTypeExtensionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_enumTypeExtension; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).enterEnumTypeExtension(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).exitEnumTypeExtension(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphQLVisitor ) return ((GraphQLVisitor extends T>)visitor).visitEnumTypeExtension(this);
else return visitor.visitChildren(this);
}
}
public final EnumTypeExtensionContext enumTypeExtension() throws RecognitionException {
EnumTypeExtensionContext _localctx = new EnumTypeExtensionContext(_ctx, getState());
enterRule(_localctx, 126, RULE_enumTypeExtension);
int _la;
try {
setState(650);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,84,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(637);
match(T__2);
setState(638);
match(T__5);
setState(639);
name();
setState(641);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__30) {
{
setState(640);
directives();
}
}
setState(643);
enumValuesDefinition();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(645);
match(T__2);
setState(646);
match(T__5);
setState(647);
name();
setState(648);
directives();
}
break;
}
}
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 NameContext name() {
return getRuleContext(NameContext.class,0);
}
public DescriptionContext description() {
return getRuleContext(DescriptionContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public InputFieldsDefinitionContext inputFieldsDefinition() {
return getRuleContext(InputFieldsDefinitionContext.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, 128, RULE_inputObjectTypeDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(653);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==StringConst) {
{
setState(652);
description();
}
}
setState(655);
match(T__8);
setState(656);
name();
setState(658);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__30) {
{
setState(657);
directives();
}
}
setState(661);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,87,_ctx) ) {
case 1:
{
setState(660);
inputFieldsDefinition();
}
break;
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class InputFieldsDefinitionContext extends ParserRuleContext {
public List inputValueDefinition() {
return getRuleContexts(InputValueDefinitionContext.class);
}
public InputValueDefinitionContext inputValueDefinition(int i) {
return getRuleContext(InputValueDefinitionContext.class,i);
}
public InputFieldsDefinitionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_inputFieldsDefinition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).enterInputFieldsDefinition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).exitInputFieldsDefinition(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphQLVisitor ) return ((GraphQLVisitor extends T>)visitor).visitInputFieldsDefinition(this);
else return visitor.visitChildren(this);
}
}
public final InputFieldsDefinitionContext inputFieldsDefinition() throws RecognitionException {
InputFieldsDefinitionContext _localctx = new InputFieldsDefinitionContext(_ctx, getState());
enterRule(_localctx, 130, RULE_inputFieldsDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(663);
match(T__15);
setState(665);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(664);
inputValueDefinition();
}
}
setState(667);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__0) | (1L << T__1) | (1L << T__2) | (1L << T__3) | (1L << T__4) | (1L << T__5) | (1L << T__6) | (1L << T__7) | (1L << T__8) | (1L << T__9) | (1L << T__10) | (1L << T__11) | (1L << T__12) | (1L << T__13) | (1L << T__14) | (1L << StringConst) | (1L << DirectiveLocation) | (1L << NAME))) != 0) );
setState(669);
match(T__16);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class InputObjectTypeExtensionContext extends ParserRuleContext {
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public InputFieldsDefinitionContext inputFieldsDefinition() {
return getRuleContext(InputFieldsDefinitionContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.class,0);
}
public InputObjectTypeExtensionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_inputObjectTypeExtension; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).enterInputObjectTypeExtension(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof GraphQLListener ) ((GraphQLListener)listener).exitInputObjectTypeExtension(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
if ( visitor instanceof GraphQLVisitor ) return ((GraphQLVisitor extends T>)visitor).visitInputObjectTypeExtension(this);
else return visitor.visitChildren(this);
}
}
public final InputObjectTypeExtensionContext inputObjectTypeExtension() throws RecognitionException {
InputObjectTypeExtensionContext _localctx = new InputObjectTypeExtensionContext(_ctx, getState());
enterRule(_localctx, 132, RULE_inputObjectTypeExtension);
int _la;
try {
setState(684);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,90,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(671);
match(T__2);
setState(672);
match(T__8);
setState(673);
name();
setState(675);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__30) {
{
setState(674);
directives();
}
}
setState(677);
inputFieldsDefinition();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(679);
match(T__2);
setState(680);
match(T__8);
setState(681);
name();
setState(682);
directives();
}
break;
}
}
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 NameContext name() {
return getRuleContext(NameContext.class,0);
}
public DirectiveLocationsContext directiveLocations() {
return getRuleContext(DirectiveLocationsContext.class,0);
}
public DescriptionContext description() {
return getRuleContext(DescriptionContext.class,0);
}
public DirectivesContext directives() {
return getRuleContext(DirectivesContext.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, 134, RULE_directiveDefinition);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(687);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==StringConst) {
{
setState(686);
description();
}
}
setState(689);
match(T__10);
setState(690);
match(T__30);
setState(691);
name();
setState(693);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__30) {
{
setState(692);
directives();
}
}
setState(696);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__17) {
{
setState(695);
argumentsDefinition();
}
}
setState(698);
match(T__21);
setState(699);
directiveLocations(0);
}
}
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 TerminalNode DirectiveLocation() { return getToken(GraphQLParser.DirectiveLocation, 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 = 136;
enterRecursionRule(_localctx, 136, RULE_directiveLocations, _p);
int _la;
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
{
setState(703);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__32) {
{
setState(702);
match(T__32);
}
}
setState(705);
match(DirectiveLocation);
}
_ctx.stop = _input.LT(-1);
setState(712);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,95,_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(707);
if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)");
setState(708);
match(T__32);
setState(709);
match(DirectiveLocation);
}
}
}
setState(714);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,95,_ctx);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
unrollRecursionContexts(_parentctx);
}
return _localctx;
}
public boolean sempred(RuleContext _localctx, int ruleIndex, int predIndex) {
switch (ruleIndex) {
case 50:
return implementsInterfaces_sempred((ImplementsInterfacesContext)_localctx, predIndex);
case 58:
return unionMemberTypes_sempred((UnionMemberTypesContext)_localctx, predIndex);
case 68:
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 unionMemberTypes_sempred(UnionMemberTypesContext _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\62\u02ce\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\3\2\3\2\3\3\3\3"+
"\3\4\6\4\u0092\n\4\r\4\16\4\u0093\3\4\3\4\3\5\6\5\u0099\n\5\r\5\16\5\u009a"+
"\3\5\3\5\3\6\6\6\u00a0\n\6\r\6\16\6\u00a1\3\6\3\6\3\7\3\7\5\7\u00a8\n"+
"\7\3\b\3\b\5\b\u00ac\n\b\3\t\3\t\5\t\u00b0\n\t\3\t\5\t\u00b3\n\t\3\t\5"+
"\t\u00b6\n\t\3\t\3\t\3\t\5\t\u00bb\n\t\3\n\3\n\3\13\3\13\6\13\u00c1\n"+
"\13\r\13\16\13\u00c2\3\13\3\13\3\f\3\f\3\f\5\f\u00ca\n\f\3\r\5\r\u00cd"+
"\n\r\3\r\3\r\5\r\u00d1\n\r\3\r\5\r\u00d4\n\r\3\r\5\r\u00d7\n\r\3\16\3"+
"\16\6\16\u00db\n\16\r\16\16\16\u00dc\3\16\3\16\3\17\3\17\3\17\3\17\3\20"+
"\3\20\3\20\3\21\3\21\3\21\5\21\u00eb\n\21\3\22\3\22\3\22\3\22\5\22\u00f1"+
"\n\22\3\22\3\22\3\23\3\23\3\24\3\24\3\24\3\25\3\25\5\25\u00fc\n\25\3\25"+
"\5\25\u00ff\n\25\3\25\3\25\3\26\3\26\3\26\3\26\3\26\3\26\3\26\3\26\3\26"+
"\5\26\u010c\n\26\3\27\3\27\3\30\3\30\3\30\3\30\3\30\3\30\3\30\5\30\u0117"+
"\n\30\3\31\3\31\3\32\3\32\3\33\3\33\3\34\3\34\3\35\3\35\3\35\3\35\6\35"+
"\u0125\n\35\r\35\16\35\u0126\3\35\3\35\5\35\u012b\n\35\3\36\3\36\3\36"+
"\3\36\6\36\u0131\n\36\r\36\16\36\u0132\3\36\3\36\5\36\u0137\n\36\3\37"+
"\3\37\3\37\3\37\3 \3 \3 \3!\3!\6!\u0142\n!\r!\16!\u0143\3!\3!\3\"\3\""+
"\3\"\3\"\5\"\u014c\n\"\3\"\5\"\u014f\n\"\3#\3#\3$\3$\3$\5$\u0156\n$\3"+
"%\3%\3&\3&\3&\3&\3\'\3\'\3\'\3\'\3\'\3\'\5\'\u0164\n\'\3(\6(\u0167\n("+
"\r(\16(\u0168\3)\3)\3)\5)\u016e\n)\3*\3*\3*\3*\5*\u0174\n*\3+\3+\5+\u0178"+
"\n+\3+\5+\u017b\n+\3+\3+\6+\u017f\n+\r+\16+\u0180\3+\3+\3,\3,\3,\3,\3"+
"-\3-\3.\3.\3.\3.\3.\3.\5.\u0191\n.\3/\3/\3/\3/\3/\3/\5/\u0199\n/\3\60"+
"\5\60\u019c\n\60\3\60\3\60\3\60\5\60\u01a1\n\60\3\61\3\61\3\61\3\61\3"+
"\61\3\62\5\62\u01a9\n\62\3\62\3\62\3\62\5\62\u01ae\n\62\3\62\5\62\u01b1"+
"\n\62\3\62\5\62\u01b4\n\62\3\63\3\63\3\63\3\63\5\63\u01ba\n\63\3\63\5"+
"\63\u01bd\n\63\3\63\3\63\3\63\3\63\3\63\3\63\5\63\u01c5\n\63\3\63\3\63"+
"\3\63\3\63\3\63\3\63\3\63\3\63\3\63\3\63\3\63\3\63\3\63\5\63\u01d4\n\63"+
"\3\63\5\63\u01d7\n\63\5\63\u01d9\n\63\3\64\3\64\3\64\5\64\u01de\n\64\3"+
"\64\3\64\3\64\3\64\5\64\u01e4\n\64\3\64\7\64\u01e7\n\64\f\64\16\64\u01ea"+
"\13\64\3\65\3\65\6\65\u01ee\n\65\r\65\16\65\u01ef\3\65\3\65\3\66\5\66"+
"\u01f5\n\66\3\66\3\66\5\66\u01f9\n\66\3\66\3\66\3\66\5\66\u01fe\n\66\3"+
"\67\3\67\7\67\u0202\n\67\f\67\16\67\u0205\13\67\3\67\3\67\38\58\u020a"+
"\n8\38\38\38\38\58\u0210\n8\38\58\u0213\n8\38\58\u0216\n8\39\59\u0219"+
"\n9\39\39\39\59\u021e\n9\39\59\u0221\n9\3:\3:\3:\3:\5:\u0227\n:\3:\3:"+
"\3:\3:\3:\3:\3:\3:\3:\3:\3:\3:\3:\5:\u0236\n:\3:\5:\u0239\n:\5:\u023b"+
"\n:\3;\5;\u023e\n;\3;\3;\3;\5;\u0243\n;\3;\5;\u0246\n;\3<\3<\3<\5<\u024b"+
"\n<\3<\3<\3<\3<\3<\7<\u0252\n<\f<\16<\u0255\13<\3=\3=\3=\3=\5=\u025b\n"+
"=\3=\3=\3=\3=\3=\3=\3=\5=\u0264\n=\3>\5>\u0267\n>\3>\3>\3>\5>\u026c\n"+
">\3>\5>\u026f\n>\3?\3?\6?\u0273\n?\r?\16?\u0274\3?\3?\3@\5@\u027a\n@\3"+
"@\3@\5@\u027e\n@\3A\3A\3A\3A\5A\u0284\nA\3A\3A\3A\3A\3A\3A\3A\5A\u028d"+
"\nA\3B\5B\u0290\nB\3B\3B\3B\5B\u0295\nB\3B\5B\u0298\nB\3C\3C\6C\u029c"+
"\nC\rC\16C\u029d\3C\3C\3D\3D\3D\3D\5D\u02a6\nD\3D\3D\3D\3D\3D\3D\3D\5"+
"D\u02af\nD\3E\5E\u02b2\nE\3E\3E\3E\3E\5E\u02b8\nE\3E\5E\u02bb\nE\3E\3"+
"E\3E\3F\3F\5F\u02c2\nF\3F\3F\3F\3F\3F\7F\u02c9\nF\fF\16F\u02cc\13F\3F"+
"\2\5fv\u008aG\2\4\6\b\n\f\16\20\22\24\26\30\32\34\36 \"$&(*,.\60\62\64"+
"\668:<>@BDFHJLNPRTVXZ\\^`bdfhjlnprtvxz|~\u0080\u0082\u0084\u0086\u0088"+
"\u008a\2\5\5\2\3\21//\62\62\3\2\16\20\3\2\31\32\2\u02ff\2\u008c\3\2\2"+
"\2\4\u008e\3\2\2\2\6\u0091\3\2\2\2\b\u0098\3\2\2\2\n\u009f\3\2\2\2\f\u00a7"+
"\3\2\2\2\16\u00ab\3\2\2\2\20\u00ba\3\2\2\2\22\u00bc\3\2\2\2\24\u00be\3"+
"\2\2\2\26\u00c9\3\2\2\2\30\u00cc\3\2\2\2\32\u00d8\3\2\2\2\34\u00e0\3\2"+
"\2\2\36\u00e4\3\2\2\2 \u00e7\3\2\2\2\"\u00ec\3\2\2\2$\u00f4\3\2\2\2&\u00f6"+
"\3\2\2\2(\u00f9\3\2\2\2*\u010b\3\2\2\2,\u010d\3\2\2\2.\u0116\3\2\2\2\60"+
"\u0118\3\2\2\2\62\u011a\3\2\2\2\64\u011c\3\2\2\2\66\u011e\3\2\2\28\u012a"+
"\3\2\2\2:\u0136\3\2\2\2<\u0138\3\2\2\2>\u013c\3\2\2\2@\u013f\3\2\2\2B"+
"\u0147\3\2\2\2D\u0150\3\2\2\2F\u0155\3\2\2\2H\u0157\3\2\2\2J\u0159\3\2"+
"\2\2L\u0163\3\2\2\2N\u0166\3\2\2\2P\u016a\3\2\2\2R\u0173\3\2\2\2T\u0175"+
"\3\2\2\2V\u0184\3\2\2\2X\u0188\3\2\2\2Z\u0190\3\2\2\2\\\u0198\3\2\2\2"+
"^\u019b\3\2\2\2`\u01a2\3\2\2\2b\u01a8\3\2\2\2d\u01d8\3\2\2\2f\u01da\3"+
"\2\2\2h\u01eb\3\2\2\2j\u01f4\3\2\2\2l\u01ff\3\2\2\2n\u0209\3\2\2\2p\u0218"+
"\3\2\2\2r\u023a\3\2\2\2t\u023d\3\2\2\2v\u0247\3\2\2\2x\u0263\3\2\2\2z"+
"\u0266\3\2\2\2|\u0270\3\2\2\2~\u0279\3\2\2\2\u0080\u028c\3\2\2\2\u0082"+
"\u028f\3\2\2\2\u0084\u0299\3\2\2\2\u0086\u02ae\3\2\2\2\u0088\u02b1\3\2"+
"\2\2\u008a\u02bf\3\2\2\2\u008c\u008d\5\6\4\2\u008d\3\3\2\2\2\u008e\u008f"+
"\t\2\2\2\u008f\5\3\2\2\2\u0090\u0092\5\f\7\2\u0091\u0090\3\2\2\2\u0092"+
"\u0093\3\2\2\2\u0093\u0091\3\2\2\2\u0093\u0094\3\2\2\2\u0094\u0095\3\2"+
"\2\2\u0095\u0096\7\2\2\3\u0096\7\3\2\2\2\u0097\u0099\5\16\b\2\u0098\u0097"+
"\3\2\2\2\u0099\u009a\3\2\2\2\u009a\u0098\3\2\2\2\u009a\u009b\3\2\2\2\u009b"+
"\u009c\3\2\2\2\u009c\u009d\7\2\2\3\u009d\t\3\2\2\2\u009e\u00a0\5R*\2\u009f"+
"\u009e\3\2\2\2\u00a0\u00a1\3\2\2\2\u00a1\u009f\3\2\2\2\u00a1\u00a2\3\2"+
"\2\2\u00a2\u00a3\3\2\2\2\u00a3\u00a4\7\2\2\3\u00a4\13\3\2\2\2\u00a5\u00a8"+
"\5\16\b\2\u00a6\u00a8\5R*\2\u00a7\u00a5\3\2\2\2\u00a7\u00a6\3\2\2\2\u00a8"+
"\r\3\2\2\2\u00a9\u00ac\5\20\t\2\u00aa\u00ac\5\"\22\2\u00ab\u00a9\3\2\2"+
"\2\u00ab\u00aa\3\2\2\2\u00ac\17\3\2\2\2\u00ad\u00af\5\22\n\2\u00ae\u00b0"+
"\5\4\3\2\u00af\u00ae\3\2\2\2\u00af\u00b0\3\2\2\2\u00b0\u00b2\3\2\2\2\u00b1"+
"\u00b3\5@!\2\u00b2\u00b1\3\2\2\2\u00b2\u00b3\3\2\2\2\u00b3\u00b5\3\2\2"+
"\2\u00b4\u00b6\5N(\2\u00b5\u00b4\3\2\2\2\u00b5\u00b6\3\2\2\2\u00b6\u00b7"+
"\3\2\2\2\u00b7\u00b8\5\24\13\2\u00b8\u00bb\3\2\2\2\u00b9\u00bb\5\24\13"+
"\2\u00ba\u00ad\3\2\2\2\u00ba\u00b9\3\2\2\2\u00bb\21\3\2\2\2\u00bc\u00bd"+
"\t\3\2\2\u00bd\23\3\2\2\2\u00be\u00c0\7\22\2\2\u00bf\u00c1\5\26\f\2\u00c0"+
"\u00bf\3\2\2\2\u00c1\u00c2\3\2\2\2\u00c2\u00c0\3\2\2\2\u00c2\u00c3\3\2"+
"\2\2\u00c3\u00c4\3\2\2\2\u00c4\u00c5\7\23\2\2\u00c5\25\3\2\2\2\u00c6\u00ca"+
"\5\30\r\2\u00c7\u00ca\5 \21\2\u00c8\u00ca\5(\25\2\u00c9\u00c6\3\2\2\2"+
"\u00c9\u00c7\3\2\2\2\u00c9\u00c8\3\2\2\2\u00ca\27\3\2\2\2\u00cb\u00cd"+
"\5\36\20\2\u00cc\u00cb\3\2\2\2\u00cc\u00cd\3\2\2\2\u00cd\u00ce\3\2\2\2"+
"\u00ce\u00d0\5\4\3\2\u00cf\u00d1\5\32\16\2\u00d0\u00cf\3\2\2\2\u00d0\u00d1"+
"\3\2\2\2\u00d1\u00d3\3\2\2\2\u00d2\u00d4\5N(\2\u00d3\u00d2\3\2\2\2\u00d3"+
"\u00d4\3\2\2\2\u00d4\u00d6\3\2\2\2\u00d5\u00d7\5\24\13\2\u00d6\u00d5\3"+
"\2\2\2\u00d6\u00d7\3\2\2\2\u00d7\31\3\2\2\2\u00d8\u00da\7\24\2\2\u00d9"+
"\u00db\5\34\17\2\u00da\u00d9\3\2\2\2\u00db\u00dc\3\2\2\2\u00dc\u00da\3"+
"\2\2\2\u00dc\u00dd\3\2\2\2\u00dd\u00de\3\2\2\2\u00de\u00df\7\25\2\2\u00df"+
"\33\3\2\2\2\u00e0\u00e1\5\4\3\2\u00e1\u00e2\7\26\2\2\u00e2\u00e3\5*\26"+
"\2\u00e3\35\3\2\2\2\u00e4\u00e5\5\4\3\2\u00e5\u00e6\7\26\2\2\u00e6\37"+
"\3\2\2\2\u00e7\u00e8\7\27\2\2\u00e8\u00ea\5$\23\2\u00e9\u00eb\5N(\2\u00ea"+
"\u00e9\3\2\2\2\u00ea\u00eb\3\2\2\2\u00eb!\3\2\2\2\u00ec\u00ed\7\4\2\2"+
"\u00ed\u00ee\5$\23\2\u00ee\u00f0\5&\24\2\u00ef\u00f1\5N(\2\u00f0\u00ef"+
"\3\2\2\2\u00f0\u00f1\3\2\2\2\u00f1\u00f2\3\2\2\2\u00f2\u00f3\5\24\13\2"+
"\u00f3#\3\2\2\2\u00f4\u00f5\5\4\3\2\u00f5%\3\2\2\2\u00f6\u00f7\7\30\2"+
"\2\u00f7\u00f8\5H%\2\u00f8\'\3\2\2\2\u00f9\u00fb\7\27\2\2\u00fa\u00fc"+
"\5&\24\2\u00fb\u00fa\3\2\2\2\u00fb\u00fc\3\2\2\2\u00fc\u00fe\3\2\2\2\u00fd"+
"\u00ff\5N(\2\u00fe\u00fd\3\2\2\2\u00fe\u00ff\3\2\2\2\u00ff\u0100\3\2\2"+
"\2\u0100\u0101\5\24\13\2\u0101)\3\2\2\2\u0102\u010c\5> \2\u0103\u010c"+
"\5.\30\2\u0104\u010c\5,\27\2\u0105\u010c\5\62\32\2\u0106\u010c\5\60\31"+
"\2\u0107\u010c\5\64\33\2\u0108\u010c\5\66\34\2\u0109\u010c\58\35\2\u010a"+
"\u010c\5:\36\2\u010b\u0102\3\2\2\2\u010b\u0103\3\2\2\2\u010b\u0104\3\2"+
"\2\2\u010b\u0105\3\2\2\2\u010b\u0106\3\2\2\2\u010b\u0107\3\2\2\2\u010b"+
"\u0108\3\2\2\2\u010b\u0109\3\2\2\2\u010b\u010a\3\2\2\2\u010c+\3\2\2\2"+
"\u010d\u010e\7*\2\2\u010e-\3\2\2\2\u010f\u0110\7*\2\2\u0110\u0111\7,\2"+
"\2\u0111\u0117\7-\2\2\u0112\u0113\7*\2\2\u0113\u0117\7-\2\2\u0114\u0115"+
"\7*\2\2\u0115\u0117\7,\2\2\u0116\u010f\3\2\2\2\u0116\u0112\3\2\2\2\u0116"+
"\u0114\3\2\2\2\u0117/\3\2\2\2\u0118\u0119\t\4\2\2\u0119\61\3\2\2\2\u011a"+
"\u011b\7.\2\2\u011b\63\3\2\2\2\u011c\u011d\7\33\2\2\u011d\65\3\2\2\2\u011e"+
"\u011f\5\4\3\2\u011f\67\3\2\2\2\u0120\u0121\7\34\2\2\u0121\u012b\7\35"+
"\2\2\u0122\u0124\7\34\2\2\u0123\u0125\5*\26\2\u0124\u0123\3\2\2\2\u0125"+
"\u0126\3\2\2\2\u0126\u0124\3\2\2\2\u0126\u0127\3\2\2\2\u0127\u0128\3\2"+
"\2\2\u0128\u0129\7\35\2\2\u0129\u012b\3\2\2\2\u012a\u0120\3\2\2\2\u012a"+
"\u0122\3\2\2\2\u012b9\3\2\2\2\u012c\u012d\7\22\2\2\u012d\u0137\7\23\2"+
"\2\u012e\u0130\7\22\2\2\u012f\u0131\5<\37\2\u0130\u012f\3\2\2\2\u0131"+
"\u0132\3\2\2\2\u0132\u0130\3\2\2\2\u0132\u0133\3\2\2\2\u0133\u0134\3\2"+
"\2\2\u0134\u0135\7\23\2\2\u0135\u0137\3\2\2\2\u0136\u012c\3\2\2\2\u0136"+
"\u012e\3\2\2\2\u0137;\3\2\2\2\u0138\u0139\5\4\3\2\u0139\u013a\7\26\2\2"+
"\u013a\u013b\5*\26\2\u013b=\3\2\2\2\u013c\u013d\7\36\2\2\u013d\u013e\5"+
"\4\3\2\u013e?\3\2\2\2\u013f\u0141\7\24\2\2\u0140\u0142\5B\"\2\u0141\u0140"+
"\3\2\2\2\u0142\u0143\3\2\2\2\u0143\u0141\3\2\2\2\u0143\u0144\3\2\2\2\u0144"+
"\u0145\3\2\2\2\u0145\u0146\7\25\2\2\u0146A\3\2\2\2\u0147\u0148\5> \2\u0148"+
"\u0149\7\26\2\2\u0149\u014e\5F$\2\u014a\u014c\7\37\2\2\u014b\u014a\3\2"+
"\2\2\u014b\u014c\3\2\2\2\u014c\u014d\3\2\2\2\u014d\u014f\5D#\2\u014e\u014b"+
"\3\2\2\2\u014e\u014f\3\2\2\2\u014fC\3\2\2\2\u0150\u0151\5*\26\2\u0151"+
"E\3\2\2\2\u0152\u0156\5H%\2\u0153\u0156\5J&\2\u0154\u0156\5L\'\2\u0155"+
"\u0152\3\2\2\2\u0155\u0153\3\2\2\2\u0155\u0154\3\2\2\2\u0156G\3\2\2\2"+
"\u0157\u0158\5\4\3\2\u0158I\3\2\2\2\u0159\u015a\7\34\2\2\u015a\u015b\5"+
"F$\2\u015b\u015c\7\35\2\2\u015cK\3\2\2\2\u015d\u015e\5H%\2\u015e\u015f"+
"\7 \2\2\u015f\u0164\3\2\2\2\u0160\u0161\5J&\2\u0161\u0162\7 \2\2\u0162"+
"\u0164\3\2\2\2\u0163\u015d\3\2\2\2\u0163\u0160\3\2\2\2\u0164M\3\2\2\2"+
"\u0165\u0167\5P)\2\u0166\u0165\3\2\2\2\u0167\u0168\3\2\2\2\u0168\u0166"+
"\3\2\2\2\u0168\u0169\3\2\2\2\u0169O\3\2\2\2\u016a\u016b\7!\2\2\u016b\u016d"+
"\5\4\3\2\u016c\u016e\5\32\16\2\u016d\u016c\3\2\2\2\u016d\u016e\3\2\2\2"+
"\u016eQ\3\2\2\2\u016f\u0174\5T+\2\u0170\u0174\5Z.\2\u0171\u0174\5\\/\2"+
"\u0172\u0174\5\u0088E\2\u0173\u016f\3\2\2\2\u0173\u0170\3\2\2\2\u0173"+
"\u0171\3\2\2\2\u0173\u0172\3\2\2\2\u0174S\3\2\2\2\u0175\u0177\7\7\2\2"+
"\u0176\u0178\5\4\3\2\u0177\u0176\3\2\2\2\u0177\u0178\3\2\2\2\u0178\u017a"+
"\3\2\2\2\u0179\u017b\5N(\2\u017a\u0179\3\2\2\2\u017a\u017b\3\2\2\2\u017b"+
"\u017c\3\2\2\2\u017c\u017e\7\22\2\2\u017d\u017f\5V,\2\u017e\u017d\3\2"+
"\2\2\u017f\u0180\3\2\2\2\u0180\u017e\3\2\2\2\u0180\u0181\3\2\2\2\u0181"+
"\u0182\3\2\2\2\u0182\u0183\7\23\2\2\u0183U\3\2\2\2\u0184\u0185\5\22\n"+
"\2\u0185\u0186\7\26\2\2\u0186\u0187\5H%\2\u0187W\3\2\2\2\u0188\u0189\5"+
"\62\32\2\u0189Y\3\2\2\2\u018a\u0191\5^\60\2\u018b\u0191\5b\62\2\u018c"+
"\u0191\5p9\2\u018d\u0191\5t;\2\u018e\u0191\5z>\2\u018f\u0191\5\u0082B"+
"\2\u0190\u018a\3\2\2\2\u0190\u018b\3\2\2\2\u0190\u018c\3\2\2\2\u0190\u018d"+
"\3\2\2\2\u0190\u018e\3\2\2\2\u0190\u018f\3\2\2\2\u0191[\3\2\2\2\u0192"+
"\u0199\5`\61\2\u0193\u0199\5d\63\2\u0194\u0199\5r:\2\u0195\u0199\5x=\2"+
"\u0196\u0199\5\u0080A\2\u0197\u0199\5\u0086D\2\u0198\u0192\3\2\2\2\u0198"+
"\u0193\3\2\2\2\u0198\u0194\3\2\2\2\u0198\u0195\3\2\2\2\u0198\u0196\3\2"+
"\2\2\u0198\u0197\3\2\2\2\u0199]\3\2\2\2\u019a\u019c\5X-\2\u019b\u019a"+
"\3\2\2\2\u019b\u019c\3\2\2\2\u019c\u019d\3\2\2\2\u019d\u019e\7\f\2\2\u019e"+
"\u01a0\5\4\3\2\u019f\u01a1\5N(\2\u01a0\u019f\3\2\2\2\u01a0\u01a1\3\2\2"+
"\2\u01a1_\3\2\2\2\u01a2\u01a3\7\5\2\2\u01a3\u01a4\7\f\2\2\u01a4\u01a5"+
"\5\4\3\2\u01a5\u01a6\5N(\2\u01a6a\3\2\2\2\u01a7\u01a9\5X-\2\u01a8\u01a7"+
"\3\2\2\2\u01a8\u01a9\3\2\2\2\u01a9\u01aa\3\2\2\2\u01aa\u01ab\7\3\2\2\u01ab"+
"\u01ad\5\4\3\2\u01ac\u01ae\5f\64\2\u01ad\u01ac\3\2\2\2\u01ad\u01ae\3\2"+
"\2\2\u01ae\u01b0\3\2\2\2\u01af\u01b1\5N(\2\u01b0\u01af\3\2\2\2\u01b0\u01b1"+
"\3\2\2\2\u01b1\u01b3\3\2\2\2\u01b2\u01b4\5h\65\2\u01b3\u01b2\3\2\2\2\u01b3"+
"\u01b4\3\2\2\2\u01b4c\3\2\2\2\u01b5\u01b6\7\5\2\2\u01b6\u01b7\7\3\2\2"+
"\u01b7\u01b9\5\4\3\2\u01b8\u01ba\5f\64\2\u01b9\u01b8\3\2\2\2\u01b9\u01ba"+
"\3\2\2\2\u01ba\u01bc\3\2\2\2\u01bb\u01bd\5N(\2\u01bc\u01bb\3\2\2\2\u01bc"+
"\u01bd\3\2\2\2\u01bd\u01be\3\2\2\2\u01be\u01bf\5h\65\2\u01bf\u01d9\3\2"+
"\2\2\u01c0\u01c1\7\5\2\2\u01c1\u01c2\7\3\2\2\u01c2\u01c4\5\4\3\2\u01c3"+
"\u01c5\5f\64\2\u01c4\u01c3\3\2\2\2\u01c4\u01c5\3\2\2\2\u01c5\u01c6\3\2"+
"\2\2\u01c6\u01c7\5N(\2\u01c7\u01d9\3\2\2\2\u01c8\u01c9\7\5\2\2\u01c9\u01ca"+
"\7\3\2\2\u01ca\u01cb\5\4\3\2\u01cb\u01cc\5f\64\2\u01cc\u01d9\3\2\2\2\u01cd"+
"\u01ce\7\5\2\2\u01ce\u01cf\7\3\2\2\u01cf\u01d0\5\4\3\2\u01d0\u01d1\7\21"+
"\2\2\u01d1\u01d3\5\4\3\2\u01d2\u01d4\5N(\2\u01d3\u01d2\3\2\2\2\u01d3\u01d4"+
"\3\2\2\2\u01d4\u01d6\3\2\2\2\u01d5\u01d7\5h\65\2\u01d6\u01d5\3\2\2\2\u01d6"+
"\u01d7\3\2\2\2\u01d7\u01d9\3\2\2\2\u01d8\u01b5\3\2\2\2\u01d8\u01c0\3\2"+
"\2\2\u01d8\u01c8\3\2\2\2\u01d8\u01cd\3\2\2\2\u01d9e\3\2\2\2\u01da\u01db"+
"\b\64\1\2\u01db\u01dd\7\6\2\2\u01dc\u01de\7\"\2\2\u01dd\u01dc\3\2\2\2"+
"\u01dd\u01de\3\2\2\2\u01de\u01df\3\2\2\2\u01df\u01e0\5H%\2\u01e0\u01e8"+
"\3\2\2\2\u01e1\u01e3\f\3\2\2\u01e2\u01e4\7\"\2\2\u01e3\u01e2\3\2\2\2\u01e3"+
"\u01e4\3\2\2\2\u01e4\u01e5\3\2\2\2\u01e5\u01e7\5H%\2\u01e6\u01e1\3\2\2"+
"\2\u01e7\u01ea\3\2\2\2\u01e8\u01e6\3\2\2\2\u01e8\u01e9\3\2\2\2\u01e9g"+
"\3\2\2\2\u01ea\u01e8\3\2\2\2\u01eb\u01ed\7\22\2\2\u01ec\u01ee\5j\66\2"+
"\u01ed\u01ec\3\2\2\2\u01ee\u01ef\3\2\2\2\u01ef\u01ed\3\2\2\2\u01ef\u01f0"+
"\3\2\2\2\u01f0\u01f1\3\2\2\2\u01f1\u01f2\7\23\2\2\u01f2i\3\2\2\2\u01f3"+
"\u01f5\5X-\2\u01f4\u01f3\3\2\2\2\u01f4\u01f5\3\2\2\2\u01f5\u01f6\3\2\2"+
"\2\u01f6\u01f8\5\4\3\2\u01f7\u01f9\5l\67\2\u01f8\u01f7\3\2\2\2\u01f8\u01f9"+
"\3\2\2\2\u01f9\u01fa\3\2\2\2\u01fa\u01fb\7\26\2\2\u01fb\u01fd\5F$\2\u01fc"+
"\u01fe\5N(\2\u01fd\u01fc\3\2\2\2\u01fd\u01fe\3\2\2\2\u01fek\3\2\2\2\u01ff"+
"\u0203\7\24\2\2\u0200\u0202\5n8\2\u0201\u0200\3\2\2\2\u0202\u0205\3\2"+
"\2\2\u0203\u0201\3\2\2\2\u0203\u0204\3\2\2\2\u0204\u0206\3\2\2\2\u0205"+
"\u0203\3\2\2\2\u0206\u0207\7\25\2\2\u0207m\3\2\2\2\u0208\u020a\5X-\2\u0209"+
"\u0208\3\2\2\2\u0209\u020a\3\2\2\2\u020a\u020b\3\2\2\2\u020b\u020c\5\4"+
"\3\2\u020c\u020d\7\26\2\2\u020d\u0212\5F$\2\u020e\u0210\7\37\2\2\u020f"+
"\u020e\3\2\2\2\u020f\u0210\3\2\2\2\u0210\u0211\3\2\2\2\u0211\u0213\5D"+
"#\2\u0212\u020f\3\2\2\2\u0212\u0213\3\2\2\2\u0213\u0215\3\2\2\2\u0214"+
"\u0216\5N(\2\u0215\u0214\3\2\2\2\u0215\u0216\3\2\2\2\u0216o\3\2\2\2\u0217"+
"\u0219\5X-\2\u0218\u0217\3\2\2\2\u0218\u0219\3\2\2\2\u0219\u021a\3\2\2"+
"\2\u021a\u021b\7\n\2\2\u021b\u021d\5\4\3\2\u021c\u021e\5N(\2\u021d\u021c"+
"\3\2\2\2\u021d\u021e\3\2\2\2\u021e\u0220\3\2\2\2\u021f\u0221\5h\65\2\u0220"+
"\u021f\3\2\2\2\u0220\u0221\3\2\2\2\u0221q\3\2\2\2\u0222\u0223\7\5\2\2"+
"\u0223\u0224\7\n\2\2\u0224\u0226\5\4\3\2\u0225\u0227\5N(\2\u0226\u0225"+
"\3\2\2\2\u0226\u0227\3\2\2\2\u0227\u0228\3\2\2\2\u0228\u0229\5h\65\2\u0229"+
"\u023b\3\2\2\2\u022a\u022b\7\5\2\2\u022b\u022c\7\n\2\2\u022c\u022d\5\4"+
"\3\2\u022d\u022e\5N(\2\u022e\u023b\3\2\2\2\u022f\u0230\7\5\2\2\u0230\u0231"+
"\7\n\2\2\u0231\u0232\5\4\3\2\u0232\u0233\7\21\2\2\u0233\u0235\5\4\3\2"+
"\u0234\u0236\5N(\2\u0235\u0234\3\2\2\2\u0235\u0236\3\2\2\2\u0236\u0238"+
"\3\2\2\2\u0237\u0239\5h\65\2\u0238\u0237\3\2\2\2\u0238\u0239\3\2\2\2\u0239"+
"\u023b\3\2\2\2\u023a\u0222\3\2\2\2\u023a\u022a\3\2\2\2\u023a\u022f\3\2"+
"\2\2\u023bs\3\2\2\2\u023c\u023e\5X-\2\u023d\u023c\3\2\2\2\u023d\u023e"+
"\3\2\2\2\u023e\u023f\3\2\2\2\u023f\u0240\7\t\2\2\u0240\u0242\5\4\3\2\u0241"+
"\u0243\5N(\2\u0242\u0241\3\2\2\2\u0242\u0243\3\2\2\2\u0243\u0245\3\2\2"+
"\2\u0244\u0246\5v<\2\u0245\u0244\3\2\2\2\u0245\u0246\3\2\2\2\u0246u\3"+
"\2\2\2\u0247\u0248\b<\1\2\u0248\u024a\7\37\2\2\u0249\u024b\7#\2\2\u024a"+
"\u0249\3\2\2\2\u024a\u024b\3\2\2\2\u024b\u024c\3\2\2\2\u024c\u024d\5H"+
"%\2\u024d\u0253\3\2\2\2\u024e\u024f\f\3\2\2\u024f\u0250\7#\2\2\u0250\u0252"+
"\5H%\2\u0251\u024e\3\2\2\2\u0252\u0255\3\2\2\2\u0253\u0251\3\2\2\2\u0253"+
"\u0254\3\2\2\2\u0254w\3\2\2\2\u0255\u0253\3\2\2\2\u0256\u0257\7\5\2\2"+
"\u0257\u0258\7\t\2\2\u0258\u025a\5\4\3\2\u0259\u025b\5N(\2\u025a\u0259"+
"\3\2\2\2\u025a\u025b\3\2\2\2\u025b\u025c\3\2\2\2\u025c\u025d\5v<\2\u025d"+
"\u0264\3\2\2\2\u025e\u025f\7\5\2\2\u025f\u0260\7\t\2\2\u0260\u0261\5\4"+
"\3\2\u0261\u0262\5N(\2\u0262\u0264\3\2\2\2\u0263\u0256\3\2\2\2\u0263\u025e"+
"\3\2\2\2\u0264y\3\2\2\2\u0265\u0267\5X-\2\u0266\u0265\3\2\2\2\u0266\u0267"+
"\3\2\2\2\u0267\u0268\3\2\2\2\u0268\u0269\7\b\2\2\u0269\u026b\5\4\3\2\u026a"+
"\u026c\5N(\2\u026b\u026a\3\2\2\2\u026b\u026c\3\2\2\2\u026c\u026e\3\2\2"+
"\2\u026d\u026f\5|?\2\u026e\u026d\3\2\2\2\u026e\u026f\3\2\2\2\u026f{\3"+
"\2\2\2\u0270\u0272\7\22\2\2\u0271\u0273\5~@\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\23\2\2\u0277}\3\2\2\2\u0278\u027a\5X-\2\u0279\u0278"+
"\3\2\2\2\u0279\u027a\3\2\2\2\u027a\u027b\3\2\2\2\u027b\u027d\5\66\34\2"+
"\u027c\u027e\5N(\2\u027d\u027c\3\2\2\2\u027d\u027e\3\2\2\2\u027e\177\3"+
"\2\2\2\u027f\u0280\7\5\2\2\u0280\u0281\7\b\2\2\u0281\u0283\5\4\3\2\u0282"+
"\u0284\5N(\2\u0283\u0282\3\2\2\2\u0283\u0284\3\2\2\2\u0284\u0285\3\2\2"+
"\2\u0285\u0286\5|?\2\u0286\u028d\3\2\2\2\u0287\u0288\7\5\2\2\u0288\u0289"+
"\7\b\2\2\u0289\u028a\5\4\3\2\u028a\u028b\5N(\2\u028b\u028d\3\2\2\2\u028c"+
"\u027f\3\2\2\2\u028c\u0287\3\2\2\2\u028d\u0081\3\2\2\2\u028e\u0290\5X"+
"-\2\u028f\u028e\3\2\2\2\u028f\u0290\3\2\2\2\u0290\u0291\3\2\2\2\u0291"+
"\u0292\7\13\2\2\u0292\u0294\5\4\3\2\u0293\u0295\5N(\2\u0294\u0293\3\2"+
"\2\2\u0294\u0295\3\2\2\2\u0295\u0297\3\2\2\2\u0296\u0298\5\u0084C\2\u0297"+
"\u0296\3\2\2\2\u0297\u0298\3\2\2\2\u0298\u0083\3\2\2\2\u0299\u029b\7\22"+
"\2\2\u029a\u029c\5n8\2\u029b\u029a\3\2\2\2\u029c\u029d\3\2\2\2\u029d\u029b"+
"\3\2\2\2\u029d\u029e\3\2\2\2\u029e\u029f\3\2\2\2\u029f\u02a0\7\23\2\2"+
"\u02a0\u0085\3\2\2\2\u02a1\u02a2\7\5\2\2\u02a2\u02a3\7\13\2\2\u02a3\u02a5"+
"\5\4\3\2\u02a4\u02a6\5N(\2\u02a5\u02a4\3\2\2\2\u02a5\u02a6\3\2\2\2\u02a6"+
"\u02a7\3\2\2\2\u02a7\u02a8\5\u0084C\2\u02a8\u02af\3\2\2\2\u02a9\u02aa"+
"\7\5\2\2\u02aa\u02ab\7\13\2\2\u02ab\u02ac\5\4\3\2\u02ac\u02ad\5N(\2\u02ad"+
"\u02af\3\2\2\2\u02ae\u02a1\3\2\2\2\u02ae\u02a9\3\2\2\2\u02af\u0087\3\2"+
"\2\2\u02b0\u02b2\5X-\2\u02b1\u02b0\3\2\2\2\u02b1\u02b2\3\2\2\2\u02b2\u02b3"+
"\3\2\2\2\u02b3\u02b4\7\r\2\2\u02b4\u02b5\7!\2\2\u02b5\u02b7\5\4\3\2\u02b6"+
"\u02b8\5N(\2\u02b7\u02b6\3\2\2\2\u02b7\u02b8\3\2\2\2\u02b8\u02ba\3\2\2"+
"\2\u02b9\u02bb\5l\67\2\u02ba\u02b9\3\2\2\2\u02ba\u02bb\3\2\2\2\u02bb\u02bc"+
"\3\2\2\2\u02bc\u02bd\7\30\2\2\u02bd\u02be\5\u008aF\2\u02be\u0089\3\2\2"+
"\2\u02bf\u02c1\bF\1\2\u02c0\u02c2\7#\2\2\u02c1\u02c0\3\2\2\2\u02c1\u02c2"+
"\3\2\2\2\u02c2\u02c3\3\2\2\2\u02c3\u02c4\7/\2\2\u02c4\u02ca\3\2\2\2\u02c5"+
"\u02c6\f\3\2\2\u02c6\u02c7\7#\2\2\u02c7\u02c9\7/\2\2\u02c8\u02c5\3\2\2"+
"\2\u02c9\u02cc\3\2\2\2\u02ca\u02c8\3\2\2\2\u02ca\u02cb\3\2\2\2\u02cb\u008b"+
"\3\2\2\2\u02cc\u02ca\3\2\2\2b\u0093\u009a\u00a1\u00a7\u00ab\u00af\u00b2"+
"\u00b5\u00ba\u00c2\u00c9\u00cc\u00d0\u00d3\u00d6\u00dc\u00ea\u00f0\u00fb"+
"\u00fe\u010b\u0116\u0126\u012a\u0132\u0136\u0143\u014b\u014e\u0155\u0163"+
"\u0168\u016d\u0173\u0177\u017a\u0180\u0190\u0198\u019b\u01a0\u01a8\u01ad"+
"\u01b0\u01b3\u01b9\u01bc\u01c4\u01d3\u01d6\u01d8\u01dd\u01e3\u01e8\u01ef"+
"\u01f4\u01f8\u01fd\u0203\u0209\u020f\u0212\u0215\u0218\u021d\u0220\u0226"+
"\u0235\u0238\u023a\u023d\u0242\u0245\u024a\u0253\u025a\u0263\u0266\u026b"+
"\u026e\u0274\u0279\u027d\u0283\u028c\u028f\u0294\u0297\u029d\u02a5\u02ae"+
"\u02b1\u02b7\u02ba\u02c1\u02ca";
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