Package graphql.language
Class ScalarTypeExtensionDefinition
- java.lang.Object
-
- graphql.language.AbstractNode<T>
-
- 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>,java.io.Serializable
@PublicApi public class ScalarTypeExtensionDefinition extends ScalarTypeDefinition implements SDLExtensionDefinition
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classScalarTypeExtensionDefinition.Builder
-
Field Summary
-
Fields inherited from class graphql.language.ScalarTypeDefinition
CHILD_DIRECTIVES
-
Fields inherited from class graphql.language.AbstractDescribedNode
description
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedScalarTypeExtensionDefinition(java.lang.String name, java.util.List<Directive> directives, Description description, SourceLocation sourceLocation, java.util.List<Comment> comments, IgnoredChars ignoredChars, java.util.Map<java.lang.String,java.lang.String> additionalData)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ScalarTypeExtensionDefinitiondeepCopy()static ScalarTypeExtensionDefinition.BuildernewScalarTypeExtensionDefinition()java.lang.StringtoString()ScalarTypeExtensionDefinitiontransformExtension(java.util.function.Consumer<ScalarTypeExtensionDefinition.Builder> builderConsumer)ScalarTypeExtensionDefinitionwithNewChildren(NodeChildrenContainer newChildren)Replaces the specified children and returns a new Node.-
Methods inherited from class graphql.language.ScalarTypeDefinition
accept, getChildren, getDirectives, getName, getNamedChildren, 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.DirectivesContainer
getDirectives, getDirectivesByName, hasDirective
-
Methods inherited from interface graphql.language.Node
getAdditionalData, getComments, getIgnoredChars, getSourceLocation
-
-
-
-
Constructor Detail
-
ScalarTypeExtensionDefinition
protected ScalarTypeExtensionDefinition(java.lang.String name, java.util.List<Directive> directives, Description description, SourceLocation sourceLocation, java.util.List<Comment> comments, IgnoredChars ignoredChars, java.util.Map<java.lang.String,java.lang.String> additionalData)
-
-
Method Detail
-
deepCopy
public ScalarTypeExtensionDefinition deepCopy()
- Specified by:
deepCopyin interfaceNode<ScalarTypeDefinition>- Overrides:
deepCopyin classScalarTypeDefinition- Returns:
- a deep copy of this node
-
toString
public java.lang.String toString()
- Overrides:
toStringin classScalarTypeDefinition
-
newScalarTypeExtensionDefinition
public static ScalarTypeExtensionDefinition.Builder newScalarTypeExtensionDefinition()
-
withNewChildren
public ScalarTypeExtensionDefinition withNewChildren(NodeChildrenContainer newChildren)
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(java.util.function.Consumer<ScalarTypeExtensionDefinition.Builder> builderConsumer)
-
-