@PublicApi public class SchemaExtensionDefinition extends SchemaDefinition implements SDLExtensionDefinition
Modifier and Type | Class and Description |
---|---|
static class |
SchemaExtensionDefinition.Builder |
CHILD_DIRECTIVES, CHILD_OPERATION_TYPE_DEFINITIONS
description
Modifier | Constructor and Description |
---|---|
protected |
SchemaExtensionDefinition(java.util.List<Directive> directives,
java.util.List<OperationTypeDefinition> operationTypeDefinitions,
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 |
---|---|
SchemaExtensionDefinition |
deepCopy() |
static SchemaExtensionDefinition.Builder |
newSchemaExtensionDefinition() |
java.lang.String |
toString() |
SchemaExtensionDefinition |
transformExtension(java.util.function.Consumer<SchemaExtensionDefinition.Builder> builderConsumer) |
SchemaExtensionDefinition |
withNewChildren(NodeChildrenContainer newChildren)
Replaces the specified children and returns a new Node.
|
accept, getChildren, getDescription, getDirectives, getNamedChildren, getOperationTypeDefinitions, isEqualTo, newSchemaDefinition, transform
deepCopy, deepCopy, getAdditionalData, getComments, getIgnoredChars, getSourceLocation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAdditionalData, getComments, getIgnoredChars, getSourceLocation
getDirectives, getDirectivesByName, hasDirective
protected SchemaExtensionDefinition(java.util.List<Directive> directives, java.util.List<OperationTypeDefinition> operationTypeDefinitions, SourceLocation sourceLocation, java.util.List<Comment> comments, IgnoredChars ignoredChars, java.util.Map<java.lang.String,java.lang.String> additionalData)
public SchemaExtensionDefinition withNewChildren(NodeChildrenContainer newChildren)
Node
withNewChildren
in interface Node<SchemaDefinition>
withNewChildren
in class SchemaDefinition
newChildren
- must be empty for Nodes without childrenpublic SchemaExtensionDefinition deepCopy()
deepCopy
in interface Node<SchemaDefinition>
deepCopy
in class SchemaDefinition
public java.lang.String toString()
toString
in class SchemaDefinition
public SchemaExtensionDefinition transformExtension(java.util.function.Consumer<SchemaExtensionDefinition.Builder> builderConsumer)
public static SchemaExtensionDefinition.Builder newSchemaExtensionDefinition()