public interface GraphQLAnnotationsProcessor
Modifier and Type | Method and Description |
---|---|
graphql.schema.GraphQLInterfaceType.Builder |
getIfaceBuilder(java.lang.Class<?> iface)
This will examine the class and return a
GraphQLInterfaceType.Builder ready for further definition |
graphql.schema.GraphQLInputObjectType |
getInputObject(graphql.schema.GraphQLObjectType graphQLType,
java.lang.String newNamePrefix)
This will turn a
GraphQLObjectType into a corresponding GraphQLInputObjectType |
graphql.schema.GraphQLType |
getInterface(java.lang.Class<?> iface)
This will examine the class and if its annotated with
GraphQLUnion it will return
a GraphQLUnionType.Builder , if its annotated with GraphQLTypeResolver it will return
a GraphQLObjectType otherwise it will return a GraphQLInterfaceType.Builder . |
graphql.schema.GraphQLObjectType |
getObject(java.lang.Class<?> object)
This will examine the object class and return a
GraphQLObjectType representation |
graphql.schema.GraphQLObjectType.Builder |
getObjectBuilder(java.lang.Class<?> object)
This will examine the object class and return a
GraphQLObjectType.Builder ready for further definition |
graphql.schema.GraphQLOutputType |
getObjectOrRef(java.lang.Class<?> object)
This will examine the object class and return a
GraphQLOutputType representation
which may be a GraphQLObjectType or a GraphQLTypeReference |
graphql.schema.GraphQLUnionType.Builder |
getUnionBuilder(java.lang.Class<?> iface)
This will examine the class and return a
GraphQLUnionType.Builder ready for further definition |
graphql.schema.GraphQLType getInterface(java.lang.Class<?> iface) throws GraphQLAnnotationsException
GraphQLUnion
it will return
a GraphQLUnionType.Builder
, if its annotated with GraphQLTypeResolver
it will return
a GraphQLObjectType
otherwise it will return a GraphQLInterfaceType.Builder
.iface
- interface to examineGraphQLAnnotationsException
- if the interface cannot be examinedjava.lang.IllegalArgumentException
- if iface
is not an interfacegraphql.schema.GraphQLUnionType.Builder getUnionBuilder(java.lang.Class<?> iface) throws GraphQLAnnotationsException, java.lang.IllegalArgumentException
GraphQLUnionType.Builder
ready for further definitioniface
- interface to examineGraphQLUnionType.Builder
GraphQLAnnotationsException
- if the class cannot be examinedjava.lang.IllegalArgumentException
- if iface
is not an interfacegraphql.schema.GraphQLInterfaceType.Builder getIfaceBuilder(java.lang.Class<?> iface) throws GraphQLAnnotationsException, java.lang.IllegalArgumentException
GraphQLInterfaceType.Builder
ready for further definitioniface
- interface to examineGraphQLInterfaceType.Builder
GraphQLAnnotationsException
- if the class cannot be examinedjava.lang.IllegalArgumentException
- if iface
is not an interfacegraphql.schema.GraphQLObjectType getObject(java.lang.Class<?> object) throws GraphQLAnnotationsException
GraphQLObjectType
representationobject
- the object class to examineGraphQLObjectType
that represents that object classGraphQLAnnotationsException
- if the object class cannot be examinedgraphql.schema.GraphQLOutputType getObjectOrRef(java.lang.Class<?> object) throws GraphQLAnnotationsException
GraphQLOutputType
representation
which may be a GraphQLObjectType
or a GraphQLTypeReference
object
- the object class to examineGraphQLOutputType
that represents that object classGraphQLAnnotationsException
- if the object class cannot be examinedgraphql.schema.GraphQLObjectType.Builder getObjectBuilder(java.lang.Class<?> object) throws GraphQLAnnotationsException
GraphQLObjectType.Builder
ready for further definitionobject
- the object class to examineGraphQLObjectType.Builder
that represents that object classGraphQLAnnotationsException
- if the object class cannot be examinedgraphql.schema.GraphQLInputObjectType getInputObject(graphql.schema.GraphQLObjectType graphQLType, java.lang.String newNamePrefix)
GraphQLObjectType
into a corresponding GraphQLInputObjectType
graphQLType
- the graphql object typenewNamePrefix
- since graphql types MUST be unique, this prefix will be applied to the new input typesGraphQLInputObjectType