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 UnionTypeDefinition
CHILD_DIRECTIVES, CHILD_MEMBER_TYPESFields inherited from class AbstractDescribedNode
description -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUnionTypeExtensionDefinition(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 UnionTypeDefinition
accept, getChildren, getDirectives, getMemberTypes, getName, getNamedChildren, isEqualTo, newUnionTypeDefinition, transformMethods inherited from class AbstractDescribedNode
getDescriptionMethods inherited from class AbstractNode
deepCopy, deepCopy, getAdditionalData, getComments, getIgnoredChars, getSourceLocationMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface DirectivesContainer
getDirectives, getDirectivesByName, hasDirectiveMethods inherited from interface 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:
deepCopyin interfaceNode<UnionTypeDefinition>- Overrides:
deepCopyin classUnionTypeDefinition- Returns:
- a deep copy of this node
-
toString
- Overrides:
toStringin classUnionTypeDefinition
-
newUnionTypeExtensionDefinition
-
withNewChildren
Description copied from interface:NodeReplaces the specified children and returns a new Node.- Specified by:
withNewChildrenin interfaceNode<UnionTypeDefinition>- Overrides:
withNewChildrenin classUnionTypeDefinition- Parameters:
newChildren- must be empty for Nodes without children- Returns:
- a new node
-
transformExtension
public UnionTypeExtensionDefinition transformExtension(Consumer<UnionTypeExtensionDefinition.Builder> builderConsumer)
-