Class GraphqlAntlrToLanguage


  • public class GraphqlAntlrToLanguage
    extends java.lang.Object
    • 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

      • 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)