Class ArrayFunction
- java.lang.Object
-
- graphql.annotations.processor.typeFunctions.ArrayFunction
-
- All Implemented Interfaces:
TypeFunction
public class ArrayFunction extends java.lang.Object implements TypeFunction
-
-
Constructor Summary
Constructors Constructor Description ArrayFunction(DefaultTypeFunction defaultTypeFunction)
-
Method Summary
All Methods Instance Methods Concrete 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.booleancanBuildType(java.lang.Class<?> aClass, java.lang.reflect.AnnotatedType annotatedType)Get whether this builder handles the given type.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface graphql.annotations.processor.typeFunctions.TypeFunction
buildType, getTypeName
-
-
-
-
Constructor Detail
-
ArrayFunction
public ArrayFunction(DefaultTypeFunction defaultTypeFunction)
-
-
Method Detail
-
canBuildType
public boolean canBuildType(java.lang.Class<?> aClass, java.lang.reflect.AnnotatedType annotatedType)Description copied from interface:TypeFunctionGet whether this builder handles the given type.- Specified by:
canBuildTypein interfaceTypeFunction- 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
public graphql.schema.GraphQLType buildType(boolean input, java.lang.Class<?> aClass, java.lang.reflect.AnnotatedType annotatedType, ProcessingElementsContainer container)Description copied from interface:TypeFunctionBuild aGraphQLTypeobject from a java type.- Specified by:
buildTypein interfaceTypeFunction- 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
-
-