Package graphql.language
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 graphql.language.EnumTypeDefinition
CHILD_DIRECTIVES, CHILD_ENUM_VALUE_DEFINITIONS
Fields inherited from class graphql.language.AbstractDescribedNode
description
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
EnumTypeExtensionDefinition
(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 graphql.language.EnumTypeDefinition
accept, getChildren, getDirectives, getDirectives, getDirectivesByName, getEnumValueDefinitions, getName, getNamedChildren, hasDirective, isEqualTo, newEnumTypeDefinition, 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
-
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:
deepCopy
in interfaceNode<EnumTypeDefinition>
- Overrides:
deepCopy
in classEnumTypeDefinition
- Returns:
- a deep copy of this node
-
toString
- Overrides:
toString
in classEnumTypeDefinition
-
newEnumTypeExtensionDefinition
-
withNewChildren
Description copied from interface:Node
Replaces the specified children and returns a new Node.- Specified by:
withNewChildren
in interfaceNode<EnumTypeDefinition>
- Overrides:
withNewChildren
in classEnumTypeDefinition
- Parameters:
newChildren
- must be empty for Nodes without children- Returns:
- a new node
-
transformExtension
public EnumTypeExtensionDefinition transformExtension(Consumer<EnumTypeExtensionDefinition.Builder> builderConsumer)
-