public interface TypeFunction
| Modifier and Type | Method and Description |
|---|---|
graphql.schema.GraphQLType |
buildType(boolean input,
java.lang.Class<?> aClass,
java.lang.reflect.AnnotatedType annotatedType,
ProcessingElementsContainer container)
Build a
GraphQLType object from a java type. |
default graphql.schema.GraphQLType |
buildType(java.lang.Class<?> aClass,
java.lang.reflect.AnnotatedType annotatedType,
ProcessingElementsContainer container) |
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, graphql.annotations.processor.ProcessingElementsContainer) 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,
ProcessingElementsContainer container)
aClass - The java type to build the type name forannotatedType - The AnnotatedType of the java type, which may be a {link AnnotatedParameterizedType}container - a class that hold several members that are required in order to build schemagraphql.schema.GraphQLType buildType(boolean input,
java.lang.Class<?> aClass,
java.lang.reflect.AnnotatedType annotatedType,
ProcessingElementsContainer container)
GraphQLType object from a java type.input - is InputTypeaClass - The java type to build the type name forannotatedType - The AnnotatedType of the java type, which may be a {link AnnotatedParameterizedType}GraphQLType