public class UnionTypeDefinition extends AbstractNode<UnionTypeDefinition> implements TypeDefinition<UnionTypeDefinition>
Constructor and Description |
---|
UnionTypeDefinition(java.lang.String name) |
UnionTypeDefinition(java.lang.String name,
java.util.List<Directive> directives,
java.util.List<Type> memberTypes) |
Modifier and Type | Method and Description |
---|---|
UnionTypeDefinition |
deepCopy() |
java.util.List<Node> |
getChildren() |
Directive |
getDirective(java.lang.String directiveName) |
java.util.List<Directive> |
getDirectives() |
java.util.Map<java.lang.String,Directive> |
getDirectivesByName() |
java.util.List<Type> |
getMemberTypes() |
java.lang.String |
getName() |
boolean |
isEqualTo(Node o)
Compares just the content and not the children.
|
java.lang.String |
toString() |
deepCopy, deepCopy, getComments, getSourceLocation, setComments, setSourceLocation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComments, getSourceLocation
public java.util.List<Directive> getDirectives()
getDirectives
in interface TypeDefinition<UnionTypeDefinition>
public java.util.Map<java.lang.String,Directive> getDirectivesByName()
public Directive getDirective(java.lang.String directiveName)
public java.util.List<Type> getMemberTypes()
public java.lang.String getName()
getName
in interface TypeDefinition<UnionTypeDefinition>
public java.util.List<Node> getChildren()
getChildren
in interface Node<UnionTypeDefinition>
public boolean isEqualTo(Node o)
Node
isEqualTo
in interface Node<UnionTypeDefinition>
o
- the other node to compare topublic UnionTypeDefinition deepCopy()
deepCopy
in interface Definition<UnionTypeDefinition>
deepCopy
in interface Node<UnionTypeDefinition>
deepCopy
in interface TypeDefinition<UnionTypeDefinition>
public java.lang.String toString()
toString
in class java.lang.Object