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_IMPLEMENTZ
Fields inherited from class graphql.language.AbstractDescribedNode
description
-
Constructor Summary
ConstructorsModifierConstructorDescriptionalternative to using a Builder for convenienceprotected
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) -
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, transform
Methods inherited from class graphql.language.AbstractDescribedNode
getDescription
Methods inherited from class graphql.language.AbstractNode
deepCopy, deepCopy, getAdditionalData, getComments, getIgnoredChars, getSourceLocation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
deepCopy
in interfaceNode<ObjectTypeDefinition>
- Overrides:
deepCopy
in classObjectTypeDefinition
- Returns:
- a deep copy of this node
-
withNewChildren
Description copied from interface:Node
Replaces the specified children and returns a new Node.- Specified by:
withNewChildren
in interfaceNode<ObjectTypeDefinition>
- Overrides:
withNewChildren
in classObjectTypeDefinition
- Parameters:
newChildren
- must be empty for Nodes without children- Returns:
- a new node
-
toString
- Overrides:
toString
in classObjectTypeDefinition
-
newObjectTypeExtensionDefinition
-
transformExtension
public ObjectTypeExtensionDefinition transformExtension(Consumer<ObjectTypeExtensionDefinition.Builder> builderConsumer)
-