public class BatchedTypeFunction extends java.lang.Object implements TypeFunction
| Constructor and Description |
|---|
BatchedTypeFunction(TypeFunction defaultTypeFunction) |
| Modifier and Type | Method and Description |
|---|---|
graphql.schema.GraphQLType |
buildType(java.lang.String typeName,
java.lang.Class<?> aClass,
java.lang.reflect.AnnotatedType annotatedType)
Build a
GraphQLType object from a java type. |
boolean |
canBuildType(java.lang.Class<?> aClass,
java.lang.reflect.AnnotatedType type)
Get whether this builder handles the given type.
|
java.lang.String |
getTypeName(java.lang.Class<?> aClass,
java.lang.reflect.AnnotatedType annotatedType)
Get the graphql type name that will be used to build the type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildTypepublic BatchedTypeFunction(TypeFunction defaultTypeFunction)
public java.lang.String getTypeName(java.lang.Class<?> aClass,
java.lang.reflect.AnnotatedType annotatedType)
TypeFunctionTypeFunction.buildType(java.lang.Class<?>, java.lang.reflect.AnnotatedType) method when building the type.getTypeName in interface TypeFunctionaClass - The java type to build the type name forannotatedType - The AnnotatedType of the java type, which may be a {link AnnotatedParameterizedType}public boolean canBuildType(java.lang.Class<?> aClass,
java.lang.reflect.AnnotatedType type)
TypeFunctioncanBuildType in interface TypeFunctionaClass - The java type to build the type name fortype - The AnnotatedType of the java type, which may be a {link AnnotatedParameterizedType}public graphql.schema.GraphQLType buildType(java.lang.String typeName,
java.lang.Class<?> aClass,
java.lang.reflect.AnnotatedType annotatedType)
TypeFunctionGraphQLType object from a java type.buildType in interface TypeFunctiontypeName - The name to give the graphql typeaClass - The java type to build the type name forannotatedType - The AnnotatedType of the java type, which may be a {link AnnotatedParameterizedType}GraphQLType