@PublicApi public class EnumTypeExtensionDefinition extends EnumTypeDefinition
Modifier and Type | Class and Description |
---|---|
static class |
EnumTypeExtensionDefinition.Builder |
CHILD_DIRECTIVES, CHILD_ENUM_VALUE_DEFINITIONS
description
Modifier | Constructor and 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) |
Modifier and Type | Method and 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.
|
accept, getChildren, getDirectives, getEnumValueDefinitions, getName, getNamedChildren, isEqualTo, newEnumTypeDefinition, transform
getDescription
deepCopy, deepCopy, getAdditionalData, getComments, getIgnoredChars, getSourceLocation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAdditionalData, getComments, getIgnoredChars, getSourceLocation
getDirectives, getDirectivesByName, hasDirective
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)
public EnumTypeExtensionDefinition deepCopy()
deepCopy
in interface Node<EnumTypeDefinition>
deepCopy
in class EnumTypeDefinition
public java.lang.String toString()
toString
in class EnumTypeDefinition
public static EnumTypeExtensionDefinition.Builder newEnumTypeExtensionDefinition()
public EnumTypeExtensionDefinition withNewChildren(NodeChildrenContainer newChildren)
Node
withNewChildren
in interface Node<EnumTypeDefinition>
withNewChildren
in class EnumTypeDefinition
newChildren
- must be empty for Nodes without childrenpublic EnumTypeExtensionDefinition transformExtension(java.util.function.Consumer<EnumTypeExtensionDefinition.Builder> builderConsumer)