public interface TypeFunction
Modifier and Type | Method and Description |
---|---|
default graphql.schema.GraphQLType |
buildType(java.lang.Class<?> aClass,
java.lang.reflect.AnnotatedType annotatedType)
Build a
GraphQLType object from a java type. |
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 annotatedType)
Get whether this builder handles the given type.
|
default 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.
|
default java.lang.String getTypeName(java.lang.Class<?> aClass, java.lang.reflect.AnnotatedType annotatedType)
buildType(java.lang.Class<?>, java.lang.reflect.AnnotatedType)
method when building the type.aClass
- The java type to build the type name forannotatedType
- The AnnotatedType
of the java type, which may be a {link AnnotatedParameterizedType}boolean canBuildType(java.lang.Class<?> aClass, java.lang.reflect.AnnotatedType annotatedType)
aClass
- The java type to build the type name forannotatedType
- The AnnotatedType
of the java type, which may be a {link AnnotatedParameterizedType}default graphql.schema.GraphQLType buildType(java.lang.Class<?> aClass, java.lang.reflect.AnnotatedType annotatedType)
GraphQLType
object from a java type.
This is a convenience method for calling buildType(String, Class, AnnotatedType)
without a type name.aClass
- The java type to build the type name forannotatedType
- The AnnotatedType
of the java type, which may be a {link AnnotatedParameterizedType}GraphQLType
graphql.schema.GraphQLType buildType(java.lang.String typeName, java.lang.Class<?> aClass, java.lang.reflect.AnnotatedType annotatedType)
GraphQLType
object from a java type.typeName
- 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