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)
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.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.BuilderGraphQLAnnotationsException - 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.BuilderGraphQLAnnotationsException - 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.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)
GraphQLObjectType into a corresponding GraphQLInputObjectTypegraphQLType - the graphql object typeGraphQLInputObjectType