Package graphql.language
Class SchemaExtensionDefinition
java.lang.Object
graphql.language.AbstractNode<SchemaDefinition>
graphql.language.AbstractDescribedNode<SchemaDefinition>
graphql.language.SchemaDefinition
graphql.language.SchemaExtensionDefinition
- All Implemented Interfaces:
Definition<SchemaDefinition>
,DescribedNode<SchemaDefinition>
,DirectivesContainer<SchemaDefinition>
,Node<SchemaDefinition>
,SDLDefinition<SchemaDefinition>
,SDLExtensionDefinition
,Serializable
@PublicApi
public class SchemaExtensionDefinition
extends SchemaDefinition
implements SDLExtensionDefinition
- See Also:
-
Nested Class Summary
Nested Classes -
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
ConstructorsModifierConstructorDescriptionprotected
SchemaExtensionDefinition
(List<Directive> directives, List<OperationTypeDefinition> operationTypeDefinitions, SourceLocation sourceLocation, List<Comment> comments, IgnoredChars ignoredChars, Map<String, String> additionalData) -
Method Summary
Modifier and TypeMethodDescriptiondeepCopy()
toString()
transformExtension
(Consumer<SchemaExtensionDefinition.Builder> builderConsumer) withNewChildren
(NodeChildrenContainer newChildren) Replaces the specified children and returns a new Node.Methods inherited from class graphql.language.SchemaDefinition
accept, getChildren, getDescription, getDirectives, getDirectives, getDirectivesByName, getNamedChildren, getOperationTypeDefinitions, hasDirective, 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.Node
getAdditionalData, getComments, getIgnoredChars, getSourceLocation
-
Constructor Details
-
SchemaExtensionDefinition
protected SchemaExtensionDefinition(List<Directive> directives, List<OperationTypeDefinition> operationTypeDefinitions, SourceLocation sourceLocation, List<Comment> comments, IgnoredChars ignoredChars, Map<String, String> additionalData)
-
-
Method Details
-
withNewChildren
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
- Specified by:
deepCopy
in interfaceNode<SchemaDefinition>
- Overrides:
deepCopy
in classSchemaDefinition
- Returns:
- a deep copy of this node
-
toString
- Overrides:
toString
in classSchemaDefinition
-
transformExtension
public SchemaExtensionDefinition transformExtension(Consumer<SchemaExtensionDefinition.Builder> builderConsumer) -
newSchemaExtensionDefinition
-