public class DefaultTypeFunction extends java.lang.Object implements TypeFunction
| Constructor and Description |
|---|
DefaultTypeFunction() |
DefaultTypeFunction(GraphQLInputProcessor graphQLInputProcessor,
GraphQLOutputProcessor graphQLOutputProcessor) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
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. |
boolean |
canBuildType(java.lang.Class<?> aClass,
java.lang.reflect.AnnotatedType annotatedType)
Get whether this builder handles the given type.
|
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.
|
java.lang.Class<DefaultTypeFunction> |
register(TypeFunction function) |
void |
setGraphQLInputProcessor(GraphQLInputProcessor graphQLInputProcessor) |
void |
setGraphQLOutputProcessor(GraphQLOutputProcessor graphQLOutputProcessor) |
void |
unsetGraphQLInputProcessor(GraphQLInputProcessor graphQLInputProcessor) |
void |
unsetGraphQLOutputProcessor(GraphQLOutputProcessor graphQLOutputProcessor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildTypepublic DefaultTypeFunction()
public DefaultTypeFunction(GraphQLInputProcessor graphQLInputProcessor, GraphQLOutputProcessor graphQLOutputProcessor)
public boolean canBuildType(java.lang.Class<?> aClass,
java.lang.reflect.AnnotatedType annotatedType)
TypeFunctioncanBuildType in interface TypeFunctionaClass - The java type to build the type name forannotatedType - The AnnotatedType of the java type, which may be a {link AnnotatedParameterizedType}public void activate()
public java.lang.Class<DefaultTypeFunction> register(TypeFunction function)
public java.lang.String getTypeName(java.lang.Class<?> aClass,
java.lang.reflect.AnnotatedType annotatedType)
TypeFunctionTypeFunction.buildType(java.lang.Class<?>, java.lang.reflect.AnnotatedType, graphql.annotations.processor.ProcessingElementsContainer) method when building the type.getTypeName in interface TypeFunctionaClass - The java type to build the type name forannotatedType - The AnnotatedType of the java type, which may be a {link AnnotatedParameterizedType}public graphql.schema.GraphQLType buildType(boolean input,
java.lang.Class<?> aClass,
java.lang.reflect.AnnotatedType annotatedType,
ProcessingElementsContainer container)
TypeFunctionGraphQLType object from a java type.buildType in interface TypeFunctioninput - is InputTypeaClass - 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 schemaGraphQLTypepublic void setGraphQLInputProcessor(GraphQLInputProcessor graphQLInputProcessor)
public void unsetGraphQLInputProcessor(GraphQLInputProcessor graphQLInputProcessor)
public void setGraphQLOutputProcessor(GraphQLOutputProcessor graphQLOutputProcessor)
public void unsetGraphQLOutputProcessor(GraphQLOutputProcessor graphQLOutputProcessor)