Package graphql.language
Class SchemaExtensionDefinition
- java.lang.Object
-
- graphql.language.AbstractNode<T>
-
- graphql.language.AbstractDescribedNode<SchemaDefinition>
-
- graphql.language.SchemaDefinition
-
- graphql.language.SchemaExtensionDefinition
-
- All Implemented Interfaces:
Definition<SchemaDefinition>
,DescribedNode<SchemaDefinition>
,DirectivesContainer<SchemaDefinition>
,Node<SchemaDefinition>
,SDLDefinition<SchemaDefinition>
,SDLExtensionDefinition
,java.io.Serializable
@PublicApi public class SchemaExtensionDefinition extends SchemaDefinition implements SDLExtensionDefinition
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SchemaExtensionDefinition.Builder
-
Field Summary
-
Fields inherited from class graphql.language.SchemaDefinition
CHILD_DIRECTIVES, CHILD_OPERATION_TYPE_DEFINITIONS
-
Fields inherited from class graphql.language.AbstractDescribedNode
description
-
-
Constructor Summary
Constructors Modifier Constructor 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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class graphql.language.SchemaDefinition
accept, getChildren, getDescription, getDirectives, getNamedChildren, getOperationTypeDefinitions, isEqualTo, newSchemaDefinition, transform
-
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
-
SchemaExtensionDefinition
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)
-
-
Method Detail
-
withNewChildren
public SchemaExtensionDefinition withNewChildren(NodeChildrenContainer newChildren)
Description copied from interface:Node
Replaces the specified children and returns a new Node.- Specified by:
withNewChildren
in interfaceNode<SchemaDefinition>
- Overrides:
withNewChildren
in classSchemaDefinition
- Parameters:
newChildren
- must be empty for Nodes without children- Returns:
- a new node
-
deepCopy
public SchemaExtensionDefinition deepCopy()
- Specified by:
deepCopy
in interfaceNode<SchemaDefinition>
- Overrides:
deepCopy
in classSchemaDefinition
- Returns:
- a deep copy of this node
-
toString
public java.lang.String toString()
- Overrides:
toString
in classSchemaDefinition
-
transformExtension
public SchemaExtensionDefinition transformExtension(java.util.function.Consumer<SchemaExtensionDefinition.Builder> builderConsumer)
-
newSchemaExtensionDefinition
public static SchemaExtensionDefinition.Builder newSchemaExtensionDefinition()
-
-