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_DEFINITIONSFields inherited from class graphql.language.AbstractDescribedNode
description -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSchemaExtensionDefinition(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, transformMethods inherited from class graphql.language.AbstractNode
deepCopy, deepCopy, getAdditionalData, getComments, getIgnoredChars, getSourceLocationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:NodeReplaces the specified children and returns a new Node.- Specified by:
withNewChildrenin interfaceNode<SchemaDefinition>- Overrides:
withNewChildrenin classSchemaDefinition- Parameters:
newChildren- must be empty for Nodes without children- Returns:
- a new node
-
deepCopy
- Specified by:
deepCopyin interfaceNode<SchemaDefinition>- Overrides:
deepCopyin classSchemaDefinition- Returns:
- a deep copy of this node
-
toString
- Overrides:
toStringin classSchemaDefinition
-
transformExtension
public SchemaExtensionDefinition transformExtension(Consumer<SchemaExtensionDefinition.Builder> builderConsumer) -
newSchemaExtensionDefinition
-