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