Package graphql.language
Class ObjectTypeExtensionDefinition
- java.lang.Object
-
- graphql.language.AbstractNode<T>
-
- 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>,java.io.Serializable
@PublicApi public class ObjectTypeExtensionDefinition extends ObjectTypeDefinition implements SDLExtensionDefinition
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classObjectTypeExtensionDefinition.Builder
-
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
Constructors Modifier Constructor Description ObjectTypeExtensionDefinition(java.lang.String name)alternative to using a Builder for convenienceprotectedObjectTypeExtensionDefinition(java.lang.String name, java.util.List<Type> implementz, java.util.List<Directive> directives, java.util.List<FieldDefinition> fieldDefinitions, Description description, SourceLocation sourceLocation, java.util.List<Comment> comments, IgnoredChars ignoredChars, java.util.Map<java.lang.String,java.lang.String> additionalData)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectTypeExtensionDefinitiondeepCopy()static ObjectTypeExtensionDefinition.BuildernewObjectTypeExtensionDefinition()java.lang.StringtoString()ObjectTypeExtensionDefinitiontransformExtension(java.util.function.Consumer<ObjectTypeExtensionDefinition.Builder> builderConsumer)ObjectTypeExtensionDefinitionwithNewChildren(NodeChildrenContainer newChildren)Replaces the specified children and returns a new Node.-
Methods inherited from class graphql.language.ObjectTypeDefinition
accept, getChildren, getDirectives, getFieldDefinitions, getImplements, getName, getNamedChildren, 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.DirectivesContainer
getDirectives, getDirectivesByName, hasDirective
-
Methods inherited from interface graphql.language.Node
getAdditionalData, getComments, getIgnoredChars, getSourceLocation
-
-
-
-
Constructor Detail
-
ObjectTypeExtensionDefinition
protected ObjectTypeExtensionDefinition(java.lang.String name, java.util.List<Type> implementz, java.util.List<Directive> directives, java.util.List<FieldDefinition> fieldDefinitions, Description description, SourceLocation sourceLocation, java.util.List<Comment> comments, IgnoredChars ignoredChars, java.util.Map<java.lang.String,java.lang.String> additionalData)
-
ObjectTypeExtensionDefinition
public ObjectTypeExtensionDefinition(java.lang.String name)
alternative to using a Builder for convenience- Parameters:
name- of the object type extension
-
-
Method Detail
-
deepCopy
public ObjectTypeExtensionDefinition deepCopy()
- Specified by:
deepCopyin interfaceNode<ObjectTypeDefinition>- Overrides:
deepCopyin classObjectTypeDefinition- Returns:
- a deep copy of this node
-
withNewChildren
public ObjectTypeExtensionDefinition withNewChildren(NodeChildrenContainer newChildren)
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
public java.lang.String toString()
- Overrides:
toStringin classObjectTypeDefinition
-
newObjectTypeExtensionDefinition
public static ObjectTypeExtensionDefinition.Builder newObjectTypeExtensionDefinition()
-
transformExtension
public ObjectTypeExtensionDefinition transformExtension(java.util.function.Consumer<ObjectTypeExtensionDefinition.Builder> builderConsumer)
-
-