@PublicApi public class ObjectTypeExtensionDefinition extends ObjectTypeDefinition implements SDLExtensionDefinition
Modifier and Type | Class and Description |
---|---|
static class |
ObjectTypeExtensionDefinition.Builder |
CHILD_DIRECTIVES, CHILD_FIELD_DEFINITIONS, CHILD_IMPLEMENTZ
description
Modifier | Constructor and Description |
---|---|
|
ObjectTypeExtensionDefinition(java.lang.String name)
alternative to using a Builder for convenience
|
protected |
ObjectTypeExtensionDefinition(java.lang.String name,
java.util.List<Type> implementz,
java.util.List<Directive> directives,
java.util.List<FieldDefinition> fieldDefinitions,
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 |
---|---|
ObjectTypeExtensionDefinition |
deepCopy() |
static ObjectTypeExtensionDefinition.Builder |
newObjectTypeExtensionDefinition() |
java.lang.String |
toString() |
ObjectTypeExtensionDefinition |
transformExtension(java.util.function.Consumer<ObjectTypeExtensionDefinition.Builder> builderConsumer) |
ObjectTypeExtensionDefinition |
withNewChildren(NodeChildrenContainer newChildren)
Replaces the specified children and returns a new Node.
|
accept, getChildren, getDirectives, getFieldDefinitions, getImplements, getName, getNamedChildren, isEqualTo, newObjectTypeDefinition, 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 ObjectTypeExtensionDefinition(java.lang.String name, java.util.List<Type> implementz, java.util.List<Directive> directives, java.util.List<FieldDefinition> fieldDefinitions, Description description, SourceLocation sourceLocation, java.util.List<Comment> comments, IgnoredChars ignoredChars, java.util.Map<java.lang.String,java.lang.String> additionalData)
public ObjectTypeExtensionDefinition(java.lang.String name)
name
- of the object type extensionpublic ObjectTypeExtensionDefinition deepCopy()
deepCopy
in interface Node<ObjectTypeDefinition>
deepCopy
in class ObjectTypeDefinition
public ObjectTypeExtensionDefinition withNewChildren(NodeChildrenContainer newChildren)
Node
withNewChildren
in interface Node<ObjectTypeDefinition>
withNewChildren
in class ObjectTypeDefinition
newChildren
- must be empty for Nodes without childrenpublic java.lang.String toString()
toString
in class ObjectTypeDefinition
public static ObjectTypeExtensionDefinition.Builder newObjectTypeExtensionDefinition()
public ObjectTypeExtensionDefinition transformExtension(java.util.function.Consumer<ObjectTypeExtensionDefinition.Builder> builderConsumer)