Class DataFetcherResultMapper<T>
- java.lang.Object
-
- io.leangen.graphql.generator.mapping.common.AbstractTypeSubstitutingMapper<T>
-
- io.leangen.graphql.generator.mapping.core.DataFetcherResultMapper<T>
-
- All Implemented Interfaces:
TypeMapper,TypeSubstituter
public class DataFetcherResultMapper<T> extends AbstractTypeSubstitutingMapper<T>
-
-
Field Summary
-
Fields inherited from class io.leangen.graphql.generator.mapping.common.AbstractTypeSubstitutingMapper
substituteType
-
-
Constructor Summary
Constructors Constructor Description DataFetcherResultMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotatedTypegetSubstituteType(AnnotatedType original)Returns the type to map instead of the original.booleansupports(AnnotatedElement element, AnnotatedType type)graphql.schema.GraphQLInputTypetoGraphQLInputType(AnnotatedType javaType, Set<Class<? extends TypeMapper>> mappersToSkip, TypeMappingEnvironment env)-
Methods inherited from class io.leangen.graphql.generator.mapping.common.AbstractTypeSubstitutingMapper
toGraphQLType
-
-
-
-
Method Detail
-
toGraphQLInputType
public graphql.schema.GraphQLInputType toGraphQLInputType(AnnotatedType javaType, Set<Class<? extends TypeMapper>> mappersToSkip, TypeMappingEnvironment env)
- Specified by:
toGraphQLInputTypein interfaceTypeMapper- Overrides:
toGraphQLInputTypein classAbstractTypeSubstitutingMapper<T>
-
getSubstituteType
public AnnotatedType getSubstituteType(AnnotatedType original)
Description copied from class:AbstractTypeSubstitutingMapperReturns the type to map instead of the original. This implementation always returns the type of the generic type parameterS.- Specified by:
getSubstituteTypein interfaceTypeSubstituter- Overrides:
getSubstituteTypein classAbstractTypeSubstitutingMapper<T>- Parameters:
original- The type to be replaced- Returns:
- The substitute type to use for mapping
-
supports
public boolean supports(AnnotatedElement element, AnnotatedType type)
-
-