@PublicApi public class ScalarTypeExtensionDefinition extends ScalarTypeDefinition implements SDLExtensionDefinition
Modifier and Type | Class and Description |
---|---|
static class |
ScalarTypeExtensionDefinition.Builder |
CHILD_DIRECTIVES
description
Modifier | Constructor and Description |
---|---|
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) |
Modifier and Type | Method and Description |
---|---|
ScalarTypeExtensionDefinition |
deepCopy() |
static ScalarTypeExtensionDefinition.Builder |
newScalarTypeExtensionDefinition() |
java.lang.String |
toString() |
ScalarTypeExtensionDefinition |
transformExtension(java.util.function.Consumer<ScalarTypeExtensionDefinition.Builder> builderConsumer) |
ScalarTypeExtensionDefinition |
withNewChildren(NodeChildrenContainer newChildren)
Replaces the specified children and returns a new Node.
|
accept, getChildren, getDirectives, getName, getNamedChildren, isEqualTo, newScalarTypeDefinition, transform
getDescription
deepCopy, deepCopy, getAdditionalData, getComments, getIgnoredChars, getSourceLocation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAdditionalData, getComments, getIgnoredChars, getSourceLocation
getDirectives, getDirectivesByName, hasDirective
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)
public ScalarTypeExtensionDefinition deepCopy()
deepCopy
in interface Node<ScalarTypeDefinition>
deepCopy
in class ScalarTypeDefinition
public java.lang.String toString()
toString
in class ScalarTypeDefinition
public static ScalarTypeExtensionDefinition.Builder newScalarTypeExtensionDefinition()
public ScalarTypeExtensionDefinition withNewChildren(NodeChildrenContainer newChildren)
Node
withNewChildren
in interface Node<ScalarTypeDefinition>
withNewChildren
in class ScalarTypeDefinition
newChildren
- must be empty for Nodes without childrenpublic ScalarTypeExtensionDefinition transformExtension(java.util.function.Consumer<ScalarTypeExtensionDefinition.Builder> builderConsumer)