Class TypeMappingEnvironment
- java.lang.Object
-
- io.leangen.graphql.generator.mapping.TypeMappingEnvironment
-
public class TypeMappingEnvironment extends Object
-
-
Field Summary
Fields Modifier and Type Field Description BuildContextbuildContextOperationMapperoperationMapperTypedElementrootElementList<AnnotatedType>typeStack
-
Constructor Summary
Constructors Constructor Description TypeMappingEnvironment(TypedElement rootElement, OperationMapper operationMapper, BuildContext buildContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeMappingEnvironmentaddType(AnnotatedType type)TypeMappingEnvironmentforElement(TypedElement rootElement)graphql.schema.GraphQLInputTypetoGraphQLInputType(AnnotatedType javaType)graphql.schema.GraphQLOutputTypetoGraphQLType(AnnotatedType javaType)
-
-
-
Field Detail
-
rootElement
public final TypedElement rootElement
-
typeStack
public final List<AnnotatedType> typeStack
-
operationMapper
public final OperationMapper operationMapper
-
buildContext
public final BuildContext buildContext
-
-
Constructor Detail
-
TypeMappingEnvironment
public TypeMappingEnvironment(TypedElement rootElement, OperationMapper operationMapper, BuildContext buildContext)
-
-
Method Detail
-
forElement
public TypeMappingEnvironment forElement(TypedElement rootElement)
-
toGraphQLType
public graphql.schema.GraphQLOutputType toGraphQLType(AnnotatedType javaType)
-
toGraphQLInputType
public graphql.schema.GraphQLInputType toGraphQLInputType(AnnotatedType javaType)
-
addType
public final TypeMappingEnvironment addType(AnnotatedType type)
-
-