Package graphql.language
Class UnionTypeExtensionDefinition
- java.lang.Object
-
- graphql.language.AbstractNode<T>
-
- 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>
,java.io.Serializable
@PublicApi public class UnionTypeExtensionDefinition extends UnionTypeDefinition implements SDLExtensionDefinition
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UnionTypeExtensionDefinition.Builder
-
Field Summary
-
Fields inherited from class graphql.language.UnionTypeDefinition
CHILD_DIRECTIVES, CHILD_MEMBER_TYPES
-
Fields inherited from class graphql.language.AbstractDescribedNode
description
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UnionTypeExtensionDefinition(java.lang.String name, java.util.List<Directive> directives, java.util.List<Type> memberTypes, 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 UnionTypeExtensionDefinition
deepCopy()
static UnionTypeExtensionDefinition.Builder
newUnionTypeExtensionDefinition()
java.lang.String
toString()
UnionTypeExtensionDefinition
transformExtension(java.util.function.Consumer<UnionTypeExtensionDefinition.Builder> builderConsumer)
UnionTypeExtensionDefinition
withNewChildren(NodeChildrenContainer newChildren)
Replaces the specified children and returns a new Node.-
Methods inherited from class graphql.language.UnionTypeDefinition
accept, getChildren, getDirectives, getMemberTypes, getName, getNamedChildren, 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.DirectivesContainer
getDirectives, getDirectivesByName, hasDirective
-
Methods inherited from interface graphql.language.Node
getAdditionalData, getComments, getIgnoredChars, getSourceLocation
-
-
-
-
Constructor Detail
-
UnionTypeExtensionDefinition
protected UnionTypeExtensionDefinition(java.lang.String name, java.util.List<Directive> directives, java.util.List<Type> memberTypes, Description description, SourceLocation sourceLocation, java.util.List<Comment> comments, IgnoredChars ignoredChars, java.util.Map<java.lang.String,java.lang.String> additionalData)
-
-
Method Detail
-
deepCopy
public UnionTypeExtensionDefinition deepCopy()
- Specified by:
deepCopy
in interfaceNode<UnionTypeDefinition>
- Overrides:
deepCopy
in classUnionTypeDefinition
- Returns:
- a deep copy of this node
-
toString
public java.lang.String toString()
- Overrides:
toString
in classUnionTypeDefinition
-
newUnionTypeExtensionDefinition
public static UnionTypeExtensionDefinition.Builder newUnionTypeExtensionDefinition()
-
withNewChildren
public UnionTypeExtensionDefinition withNewChildren(NodeChildrenContainer newChildren)
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(java.util.function.Consumer<UnionTypeExtensionDefinition.Builder> builderConsumer)
-
-