@PublicApi public class UnionTypeExtensionDefinition extends UnionTypeDefinition
Modifier and Type | Class and Description |
---|---|
static class |
UnionTypeExtensionDefinition.Builder |
CHILD_DIRECTIVES, CHILD_MEMBER_TYPES
description
Modifier | Constructor and Description |
---|---|
protected |
UnionTypeExtensionDefinition(java.lang.String name,
java.util.List<Directive> directives,
java.util.List<Type> memberTypes,
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 |
---|---|
UnionTypeExtensionDefinition |
deepCopy() |
static UnionTypeExtensionDefinition.Builder |
newUnionTypeExtensionDefinition() |
java.lang.String |
toString() |
UnionTypeExtensionDefinition |
transformExtension(java.util.function.Consumer<UnionTypeExtensionDefinition.Builder> builderConsumer) |
UnionTypeExtensionDefinition |
withNewChildren(NodeChildrenContainer newChildren)
Replaces the specified children and returns a new Node.
|
accept, getChildren, getDirectives, getMemberTypes, getName, getNamedChildren, isEqualTo, newUnionTypeDefinition, 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 UnionTypeExtensionDefinition(java.lang.String name, java.util.List<Directive> directives, java.util.List<Type> memberTypes, Description description, SourceLocation sourceLocation, java.util.List<Comment> comments, IgnoredChars ignoredChars, java.util.Map<java.lang.String,java.lang.String> additionalData)
public UnionTypeExtensionDefinition deepCopy()
deepCopy
in interface Node<UnionTypeDefinition>
deepCopy
in class UnionTypeDefinition
public java.lang.String toString()
toString
in class UnionTypeDefinition
public static UnionTypeExtensionDefinition.Builder newUnionTypeExtensionDefinition()
public UnionTypeExtensionDefinition withNewChildren(NodeChildrenContainer newChildren)
Node
withNewChildren
in interface Node<UnionTypeDefinition>
withNewChildren
in class UnionTypeDefinition
newChildren
- must be empty for Nodes without childrenpublic UnionTypeExtensionDefinition transformExtension(java.util.function.Consumer<UnionTypeExtensionDefinition.Builder> builderConsumer)