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, SelectionParameters selectionParameters, org.mapstruct.ap.internal.gem.SubclassMappingGem subclassMapping)
-
Method Summary
-
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, SelectionParameters selectionParameters, org.mapstruct.ap.internal.gem.SubclassMappingGem subclassMapping)
-
-
Method Detail
-
hasAnnotation
public boolean hasAnnotation()
- Specified by:
hasAnnotation
in classDelegatingOptions
-
getSource
public TypeMirror getSource()
-
getTarget
public TypeMirror getTarget()
-
getSelectionParameters
public SelectionParameters getSelectionParameters()
-
getMirror
public AnnotationMirror getMirror()
-
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> mappings, BeanMappingOptions beanMappingOptions)
-
copyForInheritance
public static List<SubclassMappingOptions> copyForInheritance(Set<SubclassMappingOptions> subclassMappings, BeanMappingOptions beanMappingOptions)
-
-