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 classEnumTypeExtensionDefinition.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 protectedEnumTypeExtensionDefinition(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 EnumTypeExtensionDefinitiondeepCopy()static EnumTypeExtensionDefinition.BuildernewEnumTypeExtensionDefinition()java.lang.StringtoString()EnumTypeExtensionDefinitiontransformExtension(java.util.function.Consumer<EnumTypeExtensionDefinition.Builder> builderConsumer)EnumTypeExtensionDefinitionwithNewChildren(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:
deepCopyin interfaceNode<EnumTypeDefinition>- Overrides:
deepCopyin classEnumTypeDefinition- Returns:
- a deep copy of this node
-
toString
public java.lang.String toString()
- Overrides:
toStringin classEnumTypeDefinition
-
newEnumTypeExtensionDefinition
public static EnumTypeExtensionDefinition.Builder newEnumTypeExtensionDefinition()
-
withNewChildren
public EnumTypeExtensionDefinition withNewChildren(NodeChildrenContainer newChildren)
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(java.util.function.Consumer<EnumTypeExtensionDefinition.Builder> builderConsumer)
-
-