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