Package graphql.schema.idl
Class SchemaGeneratorAppliedDirectiveHelper
java.lang.Object
graphql.schema.idl.SchemaGeneratorAppliedDirectiveHelper
This contains helper code to build out appliedm directives on schema element
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static GraphQLAppliedDirectiveArgument
buildAppliedArg
(SchemaGeneratorHelper.BuildContext buildCtx, Argument arg, GraphQLDirective directiveDefinition) private static Pair
<GraphQLDirective, GraphQLAppliedDirective> buildAppliedDirective
(SchemaGeneratorHelper.BuildContext buildCtx, Function<Type<?>, GraphQLInputType> inputTypeFactory, Directive directive, Set<GraphQLDirective> directiveDefinitions, Introspection.DirectiveLocation directiveLocation, GraphqlTypeComparatorRegistry comparatorRegistry) (package private) static void
buildAppliedDirectives
(SchemaGeneratorHelper.BuildContext buildCtx, GraphqlDirectivesContainerTypeBuilder<?, ?> builder, Pair<List<GraphQLDirective>, List<GraphQLAppliedDirective>> appliedDirectives) (package private) static Pair
<List<GraphQLDirective>, List<GraphQLAppliedDirective>> buildAppliedDirectives
(SchemaGeneratorHelper.BuildContext buildCtx, Function<Type<?>, GraphQLInputType> inputTypeFactory, List<Directive> directives, List<Directive> extensionDirectives, Introspection.DirectiveLocation directiveLocation, Set<GraphQLDirective> runtimeDirectives, GraphqlTypeComparatorRegistry comparatorRegistry) (package private) static String
buildDeprecationReason
(List<Directive> directives) private static GraphQLArgument
buildDirectiveArg
(SchemaGeneratorHelper.BuildContext buildCtx, Argument arg, GraphQLDirective directiveDefinition) (package private) static GraphQLArgument
buildDirectiveArgumentDefinitionFromAst
(SchemaGeneratorHelper.BuildContext buildCtx, InputValueDefinition valueDefinition, Function<Type<?>, GraphQLInputType> inputTypeFactory) (package private) static GraphQLDirective
buildDirectiveDefinitionFromAst
(SchemaGeneratorHelper.BuildContext buildCtx, DirectiveDefinition directiveDefinition, Function<Type<?>, GraphQLInputType> inputTypeFactory) private static List
<Introspection.DirectiveLocation> buildLocations
(DirectiveDefinition directiveDefinition) private static List
<GraphQLAppliedDirectiveArgument> transferMissingAppliedArguments
(List<GraphQLAppliedDirectiveArgument> arguments, GraphQLDirective directiveDefinition) private static List
<GraphQLArgument> transferMissingArguments
(SchemaGeneratorHelper.BuildContext buildCtx, List<GraphQLArgument> arguments, GraphQLDirective directiveDefinition)
-
Constructor Details
-
SchemaGeneratorAppliedDirectiveHelper
SchemaGeneratorAppliedDirectiveHelper()
-
-
Method Details
-
buildAppliedDirectives
static void buildAppliedDirectives(SchemaGeneratorHelper.BuildContext buildCtx, GraphqlDirectivesContainerTypeBuilder<?, ?> builder, Pair<List<GraphQLDirective>, List<GraphQLAppliedDirective>> appliedDirectives) -
buildAppliedDirectives
static Pair<List<GraphQLDirective>,List<GraphQLAppliedDirective>> buildAppliedDirectives(SchemaGeneratorHelper.BuildContext buildCtx, Function<Type<?>, GraphQLInputType> inputTypeFactory, List<Directive> directives, List<Directive> extensionDirectives, Introspection.DirectiveLocation directiveLocation, Set<GraphQLDirective> runtimeDirectives, GraphqlTypeComparatorRegistry comparatorRegistry) -
buildAppliedDirective
private static Pair<GraphQLDirective,GraphQLAppliedDirective> buildAppliedDirective(SchemaGeneratorHelper.BuildContext buildCtx, Function<Type<?>, GraphQLInputType> inputTypeFactory, Directive directive, Set<GraphQLDirective> directiveDefinitions, Introspection.DirectiveLocation directiveLocation, GraphqlTypeComparatorRegistry comparatorRegistry) -
buildDirectiveArg
private static GraphQLArgument buildDirectiveArg(SchemaGeneratorHelper.BuildContext buildCtx, Argument arg, GraphQLDirective directiveDefinition) -
buildAppliedArg
private static GraphQLAppliedDirectiveArgument buildAppliedArg(SchemaGeneratorHelper.BuildContext buildCtx, Argument arg, GraphQLDirective directiveDefinition) -
transferMissingArguments
private static List<GraphQLArgument> transferMissingArguments(SchemaGeneratorHelper.BuildContext buildCtx, List<GraphQLArgument> arguments, GraphQLDirective directiveDefinition) -
transferMissingAppliedArguments
private static List<GraphQLAppliedDirectiveArgument> transferMissingAppliedArguments(List<GraphQLAppliedDirectiveArgument> arguments, GraphQLDirective directiveDefinition) -
buildDirectiveDefinitionFromAst
static GraphQLDirective buildDirectiveDefinitionFromAst(SchemaGeneratorHelper.BuildContext buildCtx, DirectiveDefinition directiveDefinition, Function<Type<?>, GraphQLInputType> inputTypeFactory) -
buildLocations
private static List<Introspection.DirectiveLocation> buildLocations(DirectiveDefinition directiveDefinition) -
buildDirectiveArgumentDefinitionFromAst
static GraphQLArgument buildDirectiveArgumentDefinitionFromAst(SchemaGeneratorHelper.BuildContext buildCtx, InputValueDefinition valueDefinition, Function<Type<?>, GraphQLInputType> inputTypeFactory) -
buildDeprecationReason
-