@PublicApi public class GraphQLTypeReference extends java.lang.Object implements GraphQLNamedOutputType, GraphQLNamedInputType
| Constructor and Description |
|---|
GraphQLTypeReference(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
TraversalControl |
accept(TraverserContext<GraphQLSchemaElement> context,
GraphQLTypeVisitor visitor) |
java.lang.String |
getName() |
static GraphQLTypeReference |
typeRef(java.lang.String typeName)
A factory method for creating type references so that when used with static imports allows
more readable code such as
.type(typeRef(GraphQLString)) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildren, getChildrenWithTypeReferences, withNewChildrenpublic static GraphQLTypeReference typeRef(java.lang.String typeName)
.type(typeRef(GraphQLString)) typeName - the name of the type to referencepublic java.lang.String getName()
getName in interface GraphQLNamedSchemaElementpublic TraversalControl accept(TraverserContext<GraphQLSchemaElement> context, GraphQLTypeVisitor visitor)
accept in interface GraphQLSchemaElement