Class BigDecimalFunction
- java.lang.Object
-
- graphql.annotations.processor.typeFunctions.BigDecimalFunction
-
- All Implemented Interfaces:
TypeFunction
public class BigDecimalFunction extends java.lang.Object implements TypeFunction
-
-
Constructor Summary
Constructors Constructor Description BigDecimalFunction()
-
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.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.-
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
-
-
-
-
Method Detail
-
getTypeName
public java.lang.String getTypeName(java.lang.Class<?> aClass, java.lang.reflect.AnnotatedType annotatedType)Description copied from interface:TypeFunctionGet the graphql type name that will be used to build the type. The type name is passed to theTypeFunction.buildType(java.lang.Class<?>, java.lang.reflect.AnnotatedType, graphql.annotations.processor.ProcessingElementsContainer)method when building the type.- Specified by:
getTypeNamein interfaceTypeFunction- 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
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
-
-