Class AbstractTypeSubstitutingMapper<S>
- java.lang.Object
-
- io.leangen.graphql.generator.mapping.common.AbstractTypeSubstitutingMapper<S>
-
- All Implemented Interfaces:
TypeMapper,TypeSubstituter
- Direct Known Subclasses:
AbstractTypeAdapter,ArrayAdapter,CompletableFutureAdapter,DataFetcherResultAdapter,GsonArrayAdapter,IterableAdapter,JsonArrayAdapter,PublisherAdapter,VoidToBooleanTypeAdapter
public abstract class AbstractTypeSubstitutingMapper<S> extends Object implements TypeMapper, TypeSubstituter
- Author:
- Bojan Tomic (kaqqao)
-
-
Field Summary
Fields Modifier and Type Field Description protected AnnotatedTypesubstituteType
-
Constructor Summary
Constructors Constructor Description AbstractTypeSubstitutingMapper()
-
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.graphql.schema.GraphQLInputTypetoGraphQLInputType(AnnotatedType javaType, Set<Class<? extends TypeMapper>> mappersToSkip, TypeMappingEnvironment env)graphql.schema.GraphQLOutputTypetoGraphQLType(AnnotatedType javaType, Set<Class<? extends TypeMapper>> mappersToSkip, TypeMappingEnvironment env)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.leangen.graphql.generator.mapping.TypeMapper
supports
-
-
-
-
Field Detail
-
substituteType
protected final AnnotatedType substituteType
-
-
Method Detail
-
toGraphQLType
public graphql.schema.GraphQLOutputType toGraphQLType(AnnotatedType javaType, Set<Class<? extends TypeMapper>> mappersToSkip, TypeMappingEnvironment env)
- Specified by:
toGraphQLTypein interfaceTypeMapper
-
toGraphQLInputType
public graphql.schema.GraphQLInputType toGraphQLInputType(AnnotatedType javaType, Set<Class<? extends TypeMapper>> mappersToSkip, TypeMappingEnvironment env)
- Specified by:
toGraphQLInputTypein interfaceTypeMapper
-
getSubstituteType
public AnnotatedType getSubstituteType(AnnotatedType original)
Returns the type to map instead of the original. This implementation always returns the type of the generic type parameterS.- Specified by:
getSubstituteTypein interfaceTypeSubstituter- Parameters:
original- The type to be replaced- Returns:
- The substitute type to use for mapping
-
-