Package graphql.language
Class UnionTypeExtensionDefinition
java.lang.Object
graphql.language.AbstractNode<UnionTypeDefinition>
graphql.language.AbstractDescribedNode<UnionTypeDefinition>
graphql.language.UnionTypeDefinition
graphql.language.UnionTypeExtensionDefinition
- All Implemented Interfaces:
Definition<UnionTypeDefinition>
,DescribedNode<UnionTypeDefinition>
,DirectivesContainer<UnionTypeDefinition>
,NamedNode<UnionTypeDefinition>
,Node<UnionTypeDefinition>
,SDLDefinition<UnionTypeDefinition>
,SDLExtensionDefinition
,SDLNamedDefinition<UnionTypeDefinition>
,TypeDefinition<UnionTypeDefinition>
,Serializable
@PublicApi
public class UnionTypeExtensionDefinition
extends UnionTypeDefinition
implements SDLExtensionDefinition
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class graphql.language.UnionTypeDefinition
CHILD_DIRECTIVES, CHILD_MEMBER_TYPES
Fields inherited from class graphql.language.AbstractDescribedNode
description
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
UnionTypeExtensionDefinition
(String name, List<Directive> directives, List<Type> memberTypes, Description description, SourceLocation sourceLocation, List<Comment> comments, IgnoredChars ignoredChars, Map<String, String> additionalData) -
Method Summary
Modifier and TypeMethodDescriptiondeepCopy()
toString()
transformExtension
(Consumer<UnionTypeExtensionDefinition.Builder> builderConsumer) withNewChildren
(NodeChildrenContainer newChildren) Replaces the specified children and returns a new Node.Methods inherited from class graphql.language.UnionTypeDefinition
accept, getChildren, getDirectives, getDirectives, getDirectivesByName, getMemberTypes, getName, getNamedChildren, hasDirective, isEqualTo, newUnionTypeDefinition, 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
-
UnionTypeExtensionDefinition
protected UnionTypeExtensionDefinition(String name, List<Directive> directives, List<Type> memberTypes, Description description, SourceLocation sourceLocation, List<Comment> comments, IgnoredChars ignoredChars, Map<String, String> additionalData)
-
-
Method Details
-
deepCopy
- Specified by:
deepCopy
in interfaceNode<UnionTypeDefinition>
- Overrides:
deepCopy
in classUnionTypeDefinition
- Returns:
- a deep copy of this node
-
toString
- Overrides:
toString
in classUnionTypeDefinition
-
newUnionTypeExtensionDefinition
-
withNewChildren
Description copied from interface:Node
Replaces the specified children and returns a new Node.- Specified by:
withNewChildren
in interfaceNode<UnionTypeDefinition>
- Overrides:
withNewChildren
in classUnionTypeDefinition
- Parameters:
newChildren
- must be empty for Nodes without children- Returns:
- a new node
-
transformExtension
public UnionTypeExtensionDefinition transformExtension(Consumer<UnionTypeExtensionDefinition.Builder> builderConsumer)
-