Package graphql.language
Class ObjectTypeExtensionDefinition
java.lang.Object
graphql.language.AbstractNode<ObjectTypeDefinition>
graphql.language.AbstractDescribedNode<ObjectTypeDefinition>
graphql.language.ObjectTypeDefinition
graphql.language.ObjectTypeExtensionDefinition
- All Implemented Interfaces:
Definition<ObjectTypeDefinition>,DescribedNode<ObjectTypeDefinition>,DirectivesContainer<ObjectTypeDefinition>,ImplementingTypeDefinition<ObjectTypeDefinition>,NamedNode<ObjectTypeDefinition>,Node<ObjectTypeDefinition>,SDLDefinition<ObjectTypeDefinition>,SDLExtensionDefinition,SDLNamedDefinition<ObjectTypeDefinition>,TypeDefinition<ObjectTypeDefinition>,Serializable
@PublicApi
public class ObjectTypeExtensionDefinition
extends ObjectTypeDefinition
implements SDLExtensionDefinition
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class graphql.language.ObjectTypeDefinition
CHILD_DIRECTIVES, CHILD_FIELD_DEFINITIONS, CHILD_IMPLEMENTZFields inherited from class graphql.language.AbstractDescribedNode
description -
Constructor Summary
ConstructorsModifierConstructorDescriptionalternative to using a Builder for convenienceprotectedObjectTypeExtensionDefinition(String name, List<Type> implementz, List<Directive> directives, List<FieldDefinition> fieldDefinitions, Description description, SourceLocation sourceLocation, List<Comment> comments, IgnoredChars ignoredChars, Map<String, String> additionalData) -
Method Summary
Modifier and TypeMethodDescriptiondeepCopy()toString()transformExtension(Consumer<ObjectTypeExtensionDefinition.Builder> builderConsumer) withNewChildren(NodeChildrenContainer newChildren) Replaces the specified children and returns a new Node.Methods inherited from class graphql.language.ObjectTypeDefinition
accept, getChildren, getDirectives, getDirectives, getDirectivesByName, getFieldDefinitions, getImplements, getName, getNamedChildren, hasDirective, isEqualTo, newObjectTypeDefinition, transformMethods inherited from class graphql.language.AbstractDescribedNode
getDescriptionMethods inherited from class graphql.language.AbstractNode
deepCopy, deepCopy, getAdditionalData, getComments, getIgnoredChars, getSourceLocationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface graphql.language.Node
getAdditionalData, getComments, getIgnoredChars, getSourceLocation
-
Constructor Details
-
ObjectTypeExtensionDefinition
protected ObjectTypeExtensionDefinition(String name, List<Type> implementz, List<Directive> directives, List<FieldDefinition> fieldDefinitions, Description description, SourceLocation sourceLocation, List<Comment> comments, IgnoredChars ignoredChars, Map<String, String> additionalData) -
ObjectTypeExtensionDefinition
alternative to using a Builder for convenience- Parameters:
name- of the object type extension
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceNode<ObjectTypeDefinition>- Overrides:
deepCopyin classObjectTypeDefinition- Returns:
- a deep copy of this node
-
withNewChildren
Description copied from interface:NodeReplaces the specified children and returns a new Node.- Specified by:
withNewChildrenin interfaceNode<ObjectTypeDefinition>- Overrides:
withNewChildrenin classObjectTypeDefinition- Parameters:
newChildren- must be empty for Nodes without children- Returns:
- a new node
-
toString
- Overrides:
toStringin classObjectTypeDefinition
-
newObjectTypeExtensionDefinition
-
transformExtension
public ObjectTypeExtensionDefinition transformExtension(Consumer<ObjectTypeExtensionDefinition.Builder> builderConsumer)
-