Interface TypeFunction
-
- All Known Implementing Classes:
ArrayFunction,BigDecimalFunction,BigIntegerFunction,ByteFunction,CharFunction,DefaultTypeFunction,ObjectFunction,ShortFunction
public interface TypeFunctionA GraphQLType builder for java types.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description graphql.schema.GraphQLTypebuildType(boolean input, java.lang.Class<?> aClass, java.lang.reflect.AnnotatedType annotatedType, ProcessingElementsContainer container)Build aGraphQLTypeobject from a java type.default graphql.schema.GraphQLTypebuildType(java.lang.Class<?> aClass, java.lang.reflect.AnnotatedType annotatedType, ProcessingElementsContainer container)booleancanBuildType(java.lang.Class<?> aClass, java.lang.reflect.AnnotatedType annotatedType)Get whether this builder handles the given type.default java.lang.StringgetTypeName(java.lang.Class<?> aClass, java.lang.reflect.AnnotatedType annotatedType)Get the graphql type name that will be used to build the type.
-
-
-
Method Detail
-
getTypeName
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. The type name is passed to thebuildType(java.lang.Class<?>, java.lang.reflect.AnnotatedType, graphql.annotations.processor.ProcessingElementsContainer)method when building the type.- Parameters:
aClass- The java type to build the type name forannotatedType- TheAnnotatedTypeof the java type, which may be a {link AnnotatedParameterizedType}- Returns:
- The graphql type name
-
canBuildType
boolean canBuildType(java.lang.Class<?> aClass, java.lang.reflect.AnnotatedType annotatedType)Get whether this builder handles the given type.- Parameters:
aClass- The java type to build the type name forannotatedType- TheAnnotatedTypeof the java type, which may be a {link AnnotatedParameterizedType}- Returns:
- True if this builder can build the type
-
buildType
default graphql.schema.GraphQLType buildType(java.lang.Class<?> aClass, java.lang.reflect.AnnotatedType annotatedType, ProcessingElementsContainer container)- Parameters:
aClass- The java type to build the type name forannotatedType- TheAnnotatedTypeof the java type, which may be a {link AnnotatedParameterizedType}container- a class that hold several members that are required in order to build schema- Returns:
- The built
-
buildType
graphql.schema.GraphQLType buildType(boolean input, java.lang.Class<?> aClass, java.lang.reflect.AnnotatedType annotatedType, ProcessingElementsContainer container)Build aGraphQLTypeobject from a java type.- Parameters:
input- is InputTypeaClass- The java type to build the type name forannotatedType- TheAnnotatedTypeof the java type, which may be a {link AnnotatedParameterizedType}container- a class that hold several members that are required in order to build schema- Returns:
- The built
GraphQLType
-
-