Package graphql.parser
Class GraphqlAntlrToLanguage
- java.lang.Object
-
- graphql.parser.GraphqlAntlrToLanguage
-
public class GraphqlAntlrToLanguage extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description GraphqlAntlrToLanguage(org.antlr.v4.runtime.CommonTokenStream tokens, MultiSourceReader multiSourceReader, ParserOptions parserOptions, I18n i18N, @Nullable java.util.Map<Node<?>,org.antlr.v4.runtime.ParserRuleContext> nodeToRuleMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addCommonData(NodeBuilder nodeBuilder, org.antlr.v4.runtime.ParserRuleContext parserRuleContext)
protected Argument
createArgument(graphql.parser.antlr.GraphqlParser.ArgumentContext ctx)
protected java.util.List<Argument>
createArguments(graphql.parser.antlr.GraphqlParser.ArgumentsContext ctx)
protected Definition
createDefinition(graphql.parser.antlr.GraphqlParser.DefinitionContext definitionContext)
protected Directive
createDirective(graphql.parser.antlr.GraphqlParser.DirectiveContext ctx)
protected DirectiveDefinition
createDirectiveDefinition(graphql.parser.antlr.GraphqlParser.DirectiveDefinitionContext ctx)
protected DirectiveLocation
createDirectiveLocation(graphql.parser.antlr.GraphqlParser.DirectiveLocationContext ctx)
protected java.util.List<Directive>
createDirectives(graphql.parser.antlr.GraphqlParser.DirectivesContext ctx)
Document
createDocument(graphql.parser.antlr.GraphqlParser.DocumentContext ctx)
protected EnumTypeDefinition
createEnumTypeDefinition(graphql.parser.antlr.GraphqlParser.EnumTypeDefinitionContext ctx)
protected EnumTypeExtensionDefinition
createEnumTypeExtensionDefinition(graphql.parser.antlr.GraphqlParser.EnumTypeExtensionDefinitionContext ctx)
protected EnumValueDefinition
createEnumValueDefinition(graphql.parser.antlr.GraphqlParser.EnumValueDefinitionContext ctx)
protected Field
createField(graphql.parser.antlr.GraphqlParser.FieldContext ctx)
protected FieldDefinition
createFieldDefinition(graphql.parser.antlr.GraphqlParser.FieldDefinitionContext ctx)
protected java.util.List<FieldDefinition>
createFieldDefinitions(graphql.parser.antlr.GraphqlParser.ExtensionFieldsDefinitionContext ctx)
protected java.util.List<FieldDefinition>
createFieldDefinitions(graphql.parser.antlr.GraphqlParser.FieldsDefinitionContext ctx)
protected FragmentDefinition
createFragmentDefinition(graphql.parser.antlr.GraphqlParser.FragmentDefinitionContext ctx)
protected FragmentSpread
createFragmentSpread(graphql.parser.antlr.GraphqlParser.FragmentSpreadContext ctx)
protected InlineFragment
createInlineFragment(graphql.parser.antlr.GraphqlParser.InlineFragmentContext ctx)
protected InputObjectTypeDefinition
createInputObjectTypeDefinition(graphql.parser.antlr.GraphqlParser.InputObjectTypeDefinitionContext ctx)
protected InputObjectTypeExtensionDefinition
createInputObjectTypeExtensionDefinition(graphql.parser.antlr.GraphqlParser.InputObjectTypeExtensionDefinitionContext ctx)
protected InputValueDefinition
createInputValueDefinition(graphql.parser.antlr.GraphqlParser.InputValueDefinitionContext ctx)
protected java.util.List<InputValueDefinition>
createInputValueDefinitions(java.util.List<graphql.parser.antlr.GraphqlParser.InputValueDefinitionContext> defs)
protected InterfaceTypeDefinition
createInterfaceTypeDefinition(graphql.parser.antlr.GraphqlParser.InterfaceTypeDefinitionContext ctx)
protected InterfaceTypeExtensionDefinition
createInterfaceTypeExtensionDefinition(graphql.parser.antlr.GraphqlParser.InterfaceTypeExtensionDefinitionContext ctx)
protected ListType
createListType(graphql.parser.antlr.GraphqlParser.ListTypeContext ctx)
protected NonNullType
createNonNullType(graphql.parser.antlr.GraphqlParser.NonNullTypeContext ctx)
protected ObjectTypeDefinition
createObjectTypeDefinition(graphql.parser.antlr.GraphqlParser.ObjectTypeDefinitionContext ctx)
protected ObjectTypeExtensionDefinition
createObjectTypeExtensionDefinition(graphql.parser.antlr.GraphqlParser.ObjectTypeExtensionDefinitionContext ctx)
protected OperationDefinition
createOperationDefinition(graphql.parser.antlr.GraphqlParser.OperationDefinitionContext ctx)
protected OperationTypeDefinition
createOperationTypeDefinition(graphql.parser.antlr.GraphqlParser.OperationTypeDefinitionContext ctx)
protected ScalarTypeDefinition
createScalarTypeDefinition(graphql.parser.antlr.GraphqlParser.ScalarTypeDefinitionContext ctx)
protected ScalarTypeExtensionDefinition
createScalarTypeExtensionDefinition(graphql.parser.antlr.GraphqlParser.ScalarTypeExtensionDefinitionContext ctx)
protected SchemaDefinition
createSchemaDefinition(graphql.parser.antlr.GraphqlParser.SchemaDefinitionContext ctx)
protected SelectionSet
createSelectionSet(graphql.parser.antlr.GraphqlParser.SelectionSetContext ctx)
protected Type
createType(graphql.parser.antlr.GraphqlParser.TypeContext ctx)
protected TypeDefinition
createTypeDefinition(graphql.parser.antlr.GraphqlParser.TypeDefinitionContext ctx)
protected TypeDefinition
createTypeExtension(graphql.parser.antlr.GraphqlParser.TypeExtensionContext ctx)
protected TypeName
createTypeName(graphql.parser.antlr.GraphqlParser.TypeNameContext ctx)
protected SDLDefinition
createTypeSystemDefinition(graphql.parser.antlr.GraphqlParser.TypeSystemDefinitionContext ctx)
protected SDLDefinition
createTypeSystemExtension(graphql.parser.antlr.GraphqlParser.TypeSystemExtensionContext ctx)
protected UnionTypeDefinition
createUnionTypeDefinition(graphql.parser.antlr.GraphqlParser.UnionTypeDefinitionContext ctx)
protected UnionTypeExtensionDefinition
createUnionTypeExtensionDefinition(graphql.parser.antlr.GraphqlParser.UnionTypeExtensionDefinitionContext ctx)
protected Value
createValue(graphql.parser.antlr.GraphqlParser.ValueContext ctx)
protected Value
createValue(graphql.parser.antlr.GraphqlParser.ValueWithVariableContext ctx)
protected VariableDefinition
createVariableDefinition(graphql.parser.antlr.GraphqlParser.VariableDefinitionContext ctx)
protected java.util.List<VariableDefinition>
createVariableDefinitions(graphql.parser.antlr.GraphqlParser.VariableDefinitionsContext ctx)
protected java.util.List<Comment>
getCommentOnChannel(java.util.List<org.antlr.v4.runtime.Token> refChannel)
protected java.util.List<Comment>
getComments(org.antlr.v4.runtime.ParserRuleContext ctx)
ParserOptions
getParserOptions()
protected SourceLocation
getSourceLocation(org.antlr.v4.runtime.ParserRuleContext parserRuleContext)
protected SourceLocation
getSourceLocation(org.antlr.v4.runtime.Token token)
protected Description
newDescription(graphql.parser.antlr.GraphqlParser.DescriptionContext descriptionCtx)
protected OperationDefinition.Operation
parseOperation(graphql.parser.antlr.GraphqlParser.OperationTypeContext operationTypeContext)
protected java.lang.String
quotedString(org.antlr.v4.runtime.tree.TerminalNode terminalNode)
-
-
-
Constructor Detail
-
GraphqlAntlrToLanguage
public GraphqlAntlrToLanguage(org.antlr.v4.runtime.CommonTokenStream tokens, MultiSourceReader multiSourceReader, ParserOptions parserOptions, I18n i18N, @Nullable @Nullable java.util.Map<Node<?>,org.antlr.v4.runtime.ParserRuleContext> nodeToRuleMap)
-
-
Method Detail
-
getParserOptions
public ParserOptions getParserOptions()
-
createDocument
public Document createDocument(graphql.parser.antlr.GraphqlParser.DocumentContext ctx)
-
createDefinition
protected Definition createDefinition(graphql.parser.antlr.GraphqlParser.DefinitionContext definitionContext)
-
createOperationDefinition
protected OperationDefinition createOperationDefinition(graphql.parser.antlr.GraphqlParser.OperationDefinitionContext ctx)
-
parseOperation
protected OperationDefinition.Operation parseOperation(graphql.parser.antlr.GraphqlParser.OperationTypeContext operationTypeContext)
-
createFragmentSpread
protected FragmentSpread createFragmentSpread(graphql.parser.antlr.GraphqlParser.FragmentSpreadContext ctx)
-
createVariableDefinitions
protected java.util.List<VariableDefinition> createVariableDefinitions(graphql.parser.antlr.GraphqlParser.VariableDefinitionsContext ctx)
-
createVariableDefinition
protected VariableDefinition createVariableDefinition(graphql.parser.antlr.GraphqlParser.VariableDefinitionContext ctx)
-
createFragmentDefinition
protected FragmentDefinition createFragmentDefinition(graphql.parser.antlr.GraphqlParser.FragmentDefinitionContext ctx)
-
createSelectionSet
protected SelectionSet createSelectionSet(graphql.parser.antlr.GraphqlParser.SelectionSetContext ctx)
-
createField
protected Field createField(graphql.parser.antlr.GraphqlParser.FieldContext ctx)
-
createInlineFragment
protected InlineFragment createInlineFragment(graphql.parser.antlr.GraphqlParser.InlineFragmentContext ctx)
-
createTypeSystemDefinition
protected SDLDefinition createTypeSystemDefinition(graphql.parser.antlr.GraphqlParser.TypeSystemDefinitionContext ctx)
-
createTypeSystemExtension
protected SDLDefinition createTypeSystemExtension(graphql.parser.antlr.GraphqlParser.TypeSystemExtensionContext ctx)
-
createTypeExtension
protected TypeDefinition createTypeExtension(graphql.parser.antlr.GraphqlParser.TypeExtensionContext ctx)
-
createTypeDefinition
protected TypeDefinition createTypeDefinition(graphql.parser.antlr.GraphqlParser.TypeDefinitionContext ctx)
-
createType
protected Type createType(graphql.parser.antlr.GraphqlParser.TypeContext ctx)
-
createTypeName
protected TypeName createTypeName(graphql.parser.antlr.GraphqlParser.TypeNameContext ctx)
-
createNonNullType
protected NonNullType createNonNullType(graphql.parser.antlr.GraphqlParser.NonNullTypeContext ctx)
-
createListType
protected ListType createListType(graphql.parser.antlr.GraphqlParser.ListTypeContext ctx)
-
createArgument
protected Argument createArgument(graphql.parser.antlr.GraphqlParser.ArgumentContext ctx)
-
createArguments
protected java.util.List<Argument> createArguments(graphql.parser.antlr.GraphqlParser.ArgumentsContext ctx)
-
createDirectives
protected java.util.List<Directive> createDirectives(graphql.parser.antlr.GraphqlParser.DirectivesContext ctx)
-
createDirective
protected Directive createDirective(graphql.parser.antlr.GraphqlParser.DirectiveContext ctx)
-
createSchemaDefinition
protected SchemaDefinition createSchemaDefinition(graphql.parser.antlr.GraphqlParser.SchemaDefinitionContext ctx)
-
createOperationTypeDefinition
protected OperationTypeDefinition createOperationTypeDefinition(graphql.parser.antlr.GraphqlParser.OperationTypeDefinitionContext ctx)
-
createScalarTypeDefinition
protected ScalarTypeDefinition createScalarTypeDefinition(graphql.parser.antlr.GraphqlParser.ScalarTypeDefinitionContext ctx)
-
createScalarTypeExtensionDefinition
protected ScalarTypeExtensionDefinition createScalarTypeExtensionDefinition(graphql.parser.antlr.GraphqlParser.ScalarTypeExtensionDefinitionContext ctx)
-
createObjectTypeDefinition
protected ObjectTypeDefinition createObjectTypeDefinition(graphql.parser.antlr.GraphqlParser.ObjectTypeDefinitionContext ctx)
-
createObjectTypeExtensionDefinition
protected ObjectTypeExtensionDefinition createObjectTypeExtensionDefinition(graphql.parser.antlr.GraphqlParser.ObjectTypeExtensionDefinitionContext ctx)
-
createFieldDefinitions
protected java.util.List<FieldDefinition> createFieldDefinitions(graphql.parser.antlr.GraphqlParser.FieldsDefinitionContext ctx)
-
createFieldDefinitions
protected java.util.List<FieldDefinition> createFieldDefinitions(graphql.parser.antlr.GraphqlParser.ExtensionFieldsDefinitionContext ctx)
-
createFieldDefinition
protected FieldDefinition createFieldDefinition(graphql.parser.antlr.GraphqlParser.FieldDefinitionContext ctx)
-
createInputValueDefinitions
protected java.util.List<InputValueDefinition> createInputValueDefinitions(java.util.List<graphql.parser.antlr.GraphqlParser.InputValueDefinitionContext> defs)
-
createInputValueDefinition
protected InputValueDefinition createInputValueDefinition(graphql.parser.antlr.GraphqlParser.InputValueDefinitionContext ctx)
-
createInterfaceTypeDefinition
protected InterfaceTypeDefinition createInterfaceTypeDefinition(graphql.parser.antlr.GraphqlParser.InterfaceTypeDefinitionContext ctx)
-
createInterfaceTypeExtensionDefinition
protected InterfaceTypeExtensionDefinition createInterfaceTypeExtensionDefinition(graphql.parser.antlr.GraphqlParser.InterfaceTypeExtensionDefinitionContext ctx)
-
createUnionTypeDefinition
protected UnionTypeDefinition createUnionTypeDefinition(graphql.parser.antlr.GraphqlParser.UnionTypeDefinitionContext ctx)
-
createUnionTypeExtensionDefinition
protected UnionTypeExtensionDefinition createUnionTypeExtensionDefinition(graphql.parser.antlr.GraphqlParser.UnionTypeExtensionDefinitionContext ctx)
-
createEnumTypeDefinition
protected EnumTypeDefinition createEnumTypeDefinition(graphql.parser.antlr.GraphqlParser.EnumTypeDefinitionContext ctx)
-
createEnumTypeExtensionDefinition
protected EnumTypeExtensionDefinition createEnumTypeExtensionDefinition(graphql.parser.antlr.GraphqlParser.EnumTypeExtensionDefinitionContext ctx)
-
createEnumValueDefinition
protected EnumValueDefinition createEnumValueDefinition(graphql.parser.antlr.GraphqlParser.EnumValueDefinitionContext ctx)
-
createInputObjectTypeDefinition
protected InputObjectTypeDefinition createInputObjectTypeDefinition(graphql.parser.antlr.GraphqlParser.InputObjectTypeDefinitionContext ctx)
-
createInputObjectTypeExtensionDefinition
protected InputObjectTypeExtensionDefinition createInputObjectTypeExtensionDefinition(graphql.parser.antlr.GraphqlParser.InputObjectTypeExtensionDefinitionContext ctx)
-
createDirectiveDefinition
protected DirectiveDefinition createDirectiveDefinition(graphql.parser.antlr.GraphqlParser.DirectiveDefinitionContext ctx)
-
createDirectiveLocation
protected DirectiveLocation createDirectiveLocation(graphql.parser.antlr.GraphqlParser.DirectiveLocationContext ctx)
-
createValue
protected Value createValue(graphql.parser.antlr.GraphqlParser.ValueWithVariableContext ctx)
-
createValue
protected Value createValue(graphql.parser.antlr.GraphqlParser.ValueContext ctx)
-
quotedString
protected java.lang.String quotedString(org.antlr.v4.runtime.tree.TerminalNode terminalNode)
-
addCommonData
protected void addCommonData(NodeBuilder nodeBuilder, org.antlr.v4.runtime.ParserRuleContext parserRuleContext)
-
newDescription
protected Description newDescription(graphql.parser.antlr.GraphqlParser.DescriptionContext descriptionCtx)
-
getSourceLocation
protected SourceLocation getSourceLocation(org.antlr.v4.runtime.ParserRuleContext parserRuleContext)
-
getSourceLocation
protected SourceLocation getSourceLocation(org.antlr.v4.runtime.Token token)
-
getComments
protected java.util.List<Comment> getComments(org.antlr.v4.runtime.ParserRuleContext ctx)
-
getCommentOnChannel
protected java.util.List<Comment> getCommentOnChannel(java.util.List<org.antlr.v4.runtime.Token> refChannel)
-
-