Class ScalarMapper
- java.lang.Object
-
- io.leangen.graphql.generator.mapping.common.CachingMapper<graphql.schema.GraphQLScalarType,graphql.schema.GraphQLScalarType>
-
- io.leangen.graphql.generator.mapping.common.ScalarMapper
-
- All Implemented Interfaces:
TypeMapper
public class ScalarMapper extends CachingMapper<graphql.schema.GraphQLScalarType,graphql.schema.GraphQLScalarType>
- Author:
- Bojan Tomic (kaqqao)
-
-
Constructor Summary
Constructors Constructor Description ScalarMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetInputTypeName(AnnotatedType type, BuildContext buildContext)protected StringgetTypeName(AnnotatedType type, BuildContext buildContext)booleansupports(AnnotatedElement element, AnnotatedType type)graphql.schema.GraphQLScalarTypetoGraphQLInputType(String typeName, AnnotatedType javaType, TypeMappingEnvironment env)graphql.schema.GraphQLScalarTypetoGraphQLType(String typeName, AnnotatedType javaType, TypeMappingEnvironment env)-
Methods inherited from class io.leangen.graphql.generator.mapping.common.CachingMapper
toGraphQLInputType, toGraphQLType
-
-
-
-
Method Detail
-
toGraphQLType
public graphql.schema.GraphQLScalarType toGraphQLType(String typeName, AnnotatedType javaType, TypeMappingEnvironment env)
- Specified by:
toGraphQLTypein classCachingMapper<graphql.schema.GraphQLScalarType,graphql.schema.GraphQLScalarType>
-
toGraphQLInputType
public graphql.schema.GraphQLScalarType toGraphQLInputType(String typeName, AnnotatedType javaType, TypeMappingEnvironment env)
- Specified by:
toGraphQLInputTypein classCachingMapper<graphql.schema.GraphQLScalarType,graphql.schema.GraphQLScalarType>
-
supports
public boolean supports(AnnotatedElement element, AnnotatedType type)
-
getTypeName
protected String getTypeName(AnnotatedType type, BuildContext buildContext)
- Overrides:
getTypeNamein classCachingMapper<graphql.schema.GraphQLScalarType,graphql.schema.GraphQLScalarType>
-
getInputTypeName
protected String getInputTypeName(AnnotatedType type, BuildContext buildContext)
- Overrides:
getInputTypeNamein classCachingMapper<graphql.schema.GraphQLScalarType,graphql.schema.GraphQLScalarType>
-
-