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 ScalarTypeDefinition
CHILD_DIRECTIVESFields inherited from class 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 ScalarTypeDefinition
accept, getChildren, getDirectives, getName, getNamedChildren, isEqualTo, newScalarTypeDefinition, transformMethods inherited from class AbstractDescribedNode
getDescriptionMethods inherited from class AbstractNode
deepCopy, deepCopy, getAdditionalData, getComments, getIgnoredChars, getSourceLocationMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface DirectivesContainer
getDirectives, getDirectivesByName, hasDirectiveMethods inherited from interface 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)
-