@Internal protected EnumValue(String name, SourceLocation sourceLocation, List<Comment> comments, IgnoredChars ignoredChars) { super(sourceLocation, comments, ignoredChars); this.name = name; }
@Internal protected ObjectTypeExtensionDefinition(String name, List<Type> implementz, List<Directive> directives, List<FieldDefinition> fieldDefinitions, Description description, SourceLocation sourceLocation, List<Comment> comments, IgnoredChars ignoredChars) { super(name, implementz, directives, fieldDefinitions, description, sourceLocation, comments, ignoredChars); }
@Internal protected OperationTypeDefinition(String name, TypeName typeName, SourceLocation sourceLocation, List<Comment> comments, IgnoredChars ignoredChars) { super(sourceLocation, comments, ignoredChars); this.name = name; this.typeName = typeName; }
@Internal protected InterfaceTypeExtensionDefinition(String name, List<FieldDefinition> definitions, List<Directive> directives, Description description, SourceLocation sourceLocation, List<Comment> comments, IgnoredChars ignoredChars) { super(name, definitions, directives, description, sourceLocation, comments, ignoredChars); }
@Internal protected TypeName(String name, SourceLocation sourceLocation, List<Comment> comments, IgnoredChars ignoredChars) { super(sourceLocation, comments, ignoredChars); this.name = name; }
@Internal protected InlineFragment(TypeName typeCondition, List<Directive> directives, SelectionSet selectionSet, SourceLocation sourceLocation, List<Comment> comments, IgnoredChars ignoredChars) { super(sourceLocation, comments, ignoredChars); this.typeCondition = typeCondition; this.directives = directives; this.selectionSet = selectionSet; }
@Internal protected ScalarTypeExtensionDefinition(String name, List<Directive> directives, Description description, SourceLocation sourceLocation, List<Comment> comments, IgnoredChars ignoredChars) { super(name, directives, description, sourceLocation, comments, ignoredChars); }
@Internal protected Document(List<Definition> definitions, SourceLocation sourceLocation, List<Comment> comments, IgnoredChars ignoredChars) { super(sourceLocation, comments, ignoredChars); this.definitions = definitions; }
@Internal protected StringValue(String value, SourceLocation sourceLocation, List<Comment> comments, IgnoredChars ignoredChars) { super(sourceLocation, comments, ignoredChars); this.value = value; }
@Internal protected ObjectField(String name, Value value, SourceLocation sourceLocation, List<Comment> comments, IgnoredChars ignoredChars) { super(sourceLocation, comments, ignoredChars); this.name = name; this.value = value; }
@Internal protected Directive(String name, List<Argument> arguments, SourceLocation sourceLocation, List<Comment> comments, IgnoredChars ignoredChars) { super(sourceLocation, comments, ignoredChars); this.name = name; this.arguments.addAll(arguments); }
@Internal protected EnumValueDefinition(String name, List<Directive> directives, Description description, SourceLocation sourceLocation, List<Comment> comments, IgnoredChars ignoredChars) { super(sourceLocation, comments, ignoredChars); this.name = name; this.description = description; this.directives = (null == directives) ? new ArrayList<>() : directives; }
/** * @param patterns the blocked field patterns * * @deprecated use the {@link #newBlock()} builder pattern instead, as this constructor will be made private in a future version. */ @Internal @Deprecated public BlockedFields(List<Pattern> patterns) { this.patterns = patterns; }
/** * @param queryType the query type * @param mutationType the mutation type * @param additionalTypes additional types * * @deprecated use the {@link #newSchema()} builder pattern instead, as this constructor will be made private in a future version. */ @Internal @Deprecated public GraphQLSchema(GraphQLObjectType queryType, GraphQLObjectType mutationType, Set<GraphQLType> additionalTypes) { this(queryType, mutationType, null, additionalTypes); }
/** * @param name the arg name * @param type the arg type * * @deprecated use the {@link #newArgument()} builder pattern instead, as this constructor will be made private in a future version. */ @Internal @Deprecated public GraphQLArgument(String name, GraphQLInputType type) { this(name, null, type, null, null); }
/** * @param name the name * @param description the description * @param value the value * * @deprecated use the {@link #newEnumValueDefinition()} builder pattern instead, as this constructor will be made private in a future version. */ @Internal @Deprecated public GraphQLEnumValueDefinition(String name, String description, Object value) { this(name, description, value, null, emptyList()); }
/** * @param name the name * @param type the field type * * @deprecated use the {@link #newInputObjectField()} builder pattern instead, as this constructor will be made private in a future version. */ @Internal @Deprecated public GraphQLInputObjectField(String name, GraphQLInputType type) { this(name, null, type, null, emptyList(), null); }
/** * @param name the name * @param description the description * @param coercing the coercing function * * @deprecated use the {@link #newScalar()} builder pattern instead, as this constructor will be made private in a future version. */ @Internal @Deprecated public GraphQLScalarType(String name, String description, Coercing coercing) { this(name, description, coercing, emptyList(), null); }
@Internal private GraphQLSchema(GraphQLSchema otherSchema, GraphQLCodeRegistry codeRegistry) { this.queryType = otherSchema.queryType; this.mutationType = otherSchema.mutationType; this.subscriptionType = otherSchema.subscriptionType; this.additionalTypes.addAll(otherSchema.additionalTypes); this.directives.addAll(otherSchema.directives); this.typeMap = otherSchema.typeMap; this.byInterface = otherSchema.byInterface; this.codeRegistry = codeRegistry; }
@Internal public static String mkNameForPath(List<Field> currentField) { Field field = currentField.get(0); return field.getAlias() != null ? field.getAlias() : field.getName(); } }