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_DEFINITIONSFields inherited from class graphql.language.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 graphql.language.EnumTypeDefinition
accept, getChildren, getDirectives, getDirectives, getDirectivesByName, getEnumValueDefinitions, getName, getNamedChildren, hasDirective, isEqualTo, newEnumTypeDefinition, transformMethods inherited from class graphql.language.AbstractDescribedNode
getDescriptionMethods inherited from class graphql.language.AbstractNode
deepCopy, deepCopy, getAdditionalData, getComments, getIgnoredChars, getSourceLocationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
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)
-