Class SubclassMappingOptions
- java.lang.Object
-
- org.mapstruct.ap.internal.model.source.DelegatingOptions
-
- org.mapstruct.ap.internal.model.source.SubclassMappingOptions
-
public class SubclassMappingOptions extends DelegatingOptions
Represents a subclass mapping as configured via@SubclassMapping
.- Author:
- Ben Zegveld
-
-
Constructor Summary
Constructors Constructor Description SubclassMappingOptions(TypeMirror source, TypeMirror target, TypeUtils typeUtils, DelegatingOptions next)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
addInstance(org.mapstruct.ap.internal.gem.SubclassMappingGem subclassMapping, ExecutableElement method, BeanMappingOptions beanMappingOptions, FormattingMessager messager, TypeUtils typeUtils, Set<SubclassMappingOptions> mappings, List<Parameter> sourceParameters, Type resultType, SubclassValidator subclassValidator)
static void
addInstances(org.mapstruct.ap.internal.gem.SubclassMappingsGem gem, ExecutableElement method, BeanMappingOptions beanMappingOptions, FormattingMessager messager, TypeUtils typeUtils, Set<SubclassMappingOptions> mappings, List<Parameter> sourceParameters, Type resultType, SubclassValidator subclassValidator)
static List<SubclassMappingOptions>
copyForInverseInheritance(Set<SubclassMappingOptions> subclassMappings, BeanMappingOptions beanMappingOptions)
boolean
equals(Object obj)
TypeMirror
getSource()
TypeMirror
getTarget()
boolean
hasAnnotation()
int
hashCode()
-
Methods inherited from class org.mapstruct.ap.internal.model.source.DelegatingOptions
componentModel, getBuilder, getCollectionMappingStrategy, getInjectionStrategy, getMappingControl, getMappingInheritanceStrategy, getNullValueCheckStrategy, getNullValueIterableMappingStrategy, getNullValueMapMappingStrategy, getNullValueMappingStrategy, getNullValuePropertyMappingStrategy, getSubclassExhaustiveStrategy, getUnexpectedValueMappingException, implementationName, implementationPackage, imports, isDisableSubMappingMethodsGeneration, suppressTimestampInGenerated, toDeclaredTypes, typeConversionPolicy, unmappedSourcePolicy, unmappedTargetPolicy, uses
-
-
-
-
Constructor Detail
-
SubclassMappingOptions
public SubclassMappingOptions(TypeMirror source, TypeMirror target, TypeUtils typeUtils, DelegatingOptions next)
-
-
Method Detail
-
hasAnnotation
public boolean hasAnnotation()
- Specified by:
hasAnnotation
in classDelegatingOptions
-
getSource
public TypeMirror getSource()
-
getTarget
public TypeMirror getTarget()
-
addInstances
public static void addInstances(org.mapstruct.ap.internal.gem.SubclassMappingsGem gem, ExecutableElement method, BeanMappingOptions beanMappingOptions, FormattingMessager messager, TypeUtils typeUtils, Set<SubclassMappingOptions> mappings, List<Parameter> sourceParameters, Type resultType, SubclassValidator subclassValidator)
-
addInstance
public static void addInstance(org.mapstruct.ap.internal.gem.SubclassMappingGem subclassMapping, ExecutableElement method, BeanMappingOptions beanMappingOptions, FormattingMessager messager, TypeUtils typeUtils, Set<SubclassMappingOptions> mappings, List<Parameter> sourceParameters, Type resultType, SubclassValidator subclassValidator)
-
copyForInverseInheritance
public static List<SubclassMappingOptions> copyForInverseInheritance(Set<SubclassMappingOptions> subclassMappings, BeanMappingOptions beanMappingOptions)
-
-