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_DIRECTIVESFields inherited from class graphql.language.AbstractDescribedNode
description -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedScalarTypeExtensionDefinition(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, transformMethods inherited from class graphql.language.AbstractDescribedNode
getDescriptionMethods 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
-
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:
deepCopyin interfaceNode<ScalarTypeDefinition>- Overrides:
deepCopyin classScalarTypeDefinition- Returns:
- a deep copy of this node
-
toString
- Overrides:
toStringin classScalarTypeDefinition
-
newScalarTypeExtensionDefinition
-
withNewChildren
Description copied from interface:NodeReplaces the specified children and returns a new Node.- Specified by:
withNewChildrenin interfaceNode<ScalarTypeDefinition>- Overrides:
withNewChildrenin classScalarTypeDefinition- Parameters:
newChildren- must be empty for Nodes without children- Returns:
- a new node
-
transformExtension
public ScalarTypeExtensionDefinition transformExtension(Consumer<ScalarTypeExtensionDefinition.Builder> builderConsumer)
-