Package graphql.language
Class ScalarTypeExtensionDefinition
java.lang.Object
graphql.language.AbstractNode<ScalarTypeDefinition>
graphql.language.AbstractDescribedNode<ScalarTypeDefinition>
graphql.language.ScalarTypeDefinition
graphql.language.ScalarTypeExtensionDefinition
- All Implemented Interfaces:
Definition<ScalarTypeDefinition>
,DescribedNode<ScalarTypeDefinition>
,DirectivesContainer<ScalarTypeDefinition>
,NamedNode<ScalarTypeDefinition>
,Node<ScalarTypeDefinition>
,SDLDefinition<ScalarTypeDefinition>
,SDLExtensionDefinition
,SDLNamedDefinition<ScalarTypeDefinition>
,TypeDefinition<ScalarTypeDefinition>
,Serializable
@PublicApi
public class ScalarTypeExtensionDefinition
extends ScalarTypeDefinition
implements SDLExtensionDefinition
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class graphql.language.ScalarTypeDefinition
CHILD_DIRECTIVES
Fields inherited from class graphql.language.AbstractDescribedNode
description
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ScalarTypeExtensionDefinition
(String name, List<Directive> directives, Description description, SourceLocation sourceLocation, List<Comment> comments, IgnoredChars ignoredChars, Map<String, String> additionalData) -
Method Summary
Modifier and TypeMethodDescriptiondeepCopy()
toString()
transformExtension
(Consumer<ScalarTypeExtensionDefinition.Builder> builderConsumer) withNewChildren
(NodeChildrenContainer newChildren) Replaces the specified children and returns a new Node.Methods inherited from class graphql.language.ScalarTypeDefinition
accept, getChildren, getDirectives, getDirectives, getDirectivesByName, getName, getNamedChildren, hasDirective, isEqualTo, newScalarTypeDefinition, transform
Methods inherited from class graphql.language.AbstractDescribedNode
getDescription
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
-
ScalarTypeExtensionDefinition
protected ScalarTypeExtensionDefinition(String name, List<Directive> directives, Description description, SourceLocation sourceLocation, List<Comment> comments, IgnoredChars ignoredChars, Map<String, String> additionalData)
-
-
Method Details
-
deepCopy
- Specified by:
deepCopy
in interfaceNode<ScalarTypeDefinition>
- Overrides:
deepCopy
in classScalarTypeDefinition
- Returns:
- a deep copy of this node
-
toString
- Overrides:
toString
in classScalarTypeDefinition
-
newScalarTypeExtensionDefinition
-
withNewChildren
Description copied from interface:Node
Replaces the specified children and returns a new Node.- Specified by:
withNewChildren
in interfaceNode<ScalarTypeDefinition>
- Overrides:
withNewChildren
in classScalarTypeDefinition
- Parameters:
newChildren
- must be empty for Nodes without children- Returns:
- a new node
-
transformExtension
public ScalarTypeExtensionDefinition transformExtension(Consumer<ScalarTypeExtensionDefinition.Builder> builderConsumer)
-