@PublicApi public class GraphQLTypeReference extends java.lang.Object implements GraphQLType, GraphQLOutputType, GraphQLInputType
| Constructor and Description |
|---|
GraphQLTypeReference(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
TraversalControl |
accept(TraverserContext<GraphQLType> context,
GraphQLTypeVisitor visitor)
Double-dispatch entry point.
|
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, waitgetChildrenpublic 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 GraphQLType[_A-Za-z][_0-9A-Za-z]*public TraversalControl accept(TraverserContext<GraphQLType> context, GraphQLTypeVisitor visitor)
GraphQLTypeNode, see accept(...) for more details about the pattern.accept in interface GraphQLTypecontext - TraverserContext bound to this graphQL type objectvisitor - Visitor instance that performs actual processing on the types(s)