Package graphql.language
Class EnumTypeExtensionDefinition
- java.lang.Object
-
- graphql.language.AbstractNode<T>
-
- 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>
,java.io.Serializable
@PublicApi public class EnumTypeExtensionDefinition extends EnumTypeDefinition implements SDLExtensionDefinition
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EnumTypeExtensionDefinition.Builder
-
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
Constructors Modifier Constructor Description protected
EnumTypeExtensionDefinition(java.lang.String name, java.util.List<EnumValueDefinition> enumValueDefinitions, java.util.List<Directive> directives, 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 EnumTypeExtensionDefinition
deepCopy()
static EnumTypeExtensionDefinition.Builder
newEnumTypeExtensionDefinition()
java.lang.String
toString()
EnumTypeExtensionDefinition
transformExtension(java.util.function.Consumer<EnumTypeExtensionDefinition.Builder> builderConsumer)
EnumTypeExtensionDefinition
withNewChildren(NodeChildrenContainer newChildren)
Replaces the specified children and returns a new Node.-
Methods inherited from class graphql.language.EnumTypeDefinition
accept, getChildren, getDirectives, getEnumValueDefinitions, getName, getNamedChildren, 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.DirectivesContainer
getDirectives, getDirectivesByName, hasDirective
-
Methods inherited from interface graphql.language.Node
getAdditionalData, getComments, getIgnoredChars, getSourceLocation
-
-
-
-
Constructor Detail
-
EnumTypeExtensionDefinition
protected EnumTypeExtensionDefinition(java.lang.String name, java.util.List<EnumValueDefinition> enumValueDefinitions, java.util.List<Directive> directives, 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 EnumTypeExtensionDefinition deepCopy()
- Specified by:
deepCopy
in interfaceNode<EnumTypeDefinition>
- Overrides:
deepCopy
in classEnumTypeDefinition
- Returns:
- a deep copy of this node
-
toString
public java.lang.String toString()
- Overrides:
toString
in classEnumTypeDefinition
-
newEnumTypeExtensionDefinition
public static EnumTypeExtensionDefinition.Builder newEnumTypeExtensionDefinition()
-
withNewChildren
public EnumTypeExtensionDefinition withNewChildren(NodeChildrenContainer newChildren)
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(java.util.function.Consumer<EnumTypeExtensionDefinition.Builder> builderConsumer)
-
-