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.
-
-
Constructor Summary
Constructors Constructor Description SubclassMappingOptions(javax.lang.model.type.TypeMirror source, javax.lang.model.type.TypeMirror target, TypeUtils typeUtils, DelegatingOptions next)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddInstance(SubclassMappingGem subclassMapping, javax.lang.model.element.ExecutableElement method, BeanMappingOptions beanMappingOptions, FormattingMessager messager, TypeUtils typeUtils, java.util.Set<SubclassMappingOptions> mappings, java.util.List<Parameter> sourceParameters, Type resultType, SubclassValidator subclassValidator)static voidaddInstances(SubclassMappingsGem gem, javax.lang.model.element.ExecutableElement method, BeanMappingOptions beanMappingOptions, FormattingMessager messager, TypeUtils typeUtils, java.util.Set<SubclassMappingOptions> mappings, java.util.List<Parameter> sourceParameters, Type resultType, SubclassValidator subclassValidator)static java.util.List<SubclassMappingOptions>copyForInverseInheritance(java.util.Set<SubclassMappingOptions> subclassMappings, BeanMappingOptions beanMappingOptions)booleanequals(java.lang.Object obj)javax.lang.model.type.TypeMirrorgetSource()javax.lang.model.type.TypeMirrorgetTarget()booleanhasAnnotation()inthashCode()private static booleanisChildOfParent(TypeUtils typeUtils, javax.lang.model.type.TypeMirror childType, javax.lang.model.type.TypeMirror parentType)private static booleanisConsistent(SubclassMappingGem gem, javax.lang.model.element.ExecutableElement method, FormattingMessager messager, TypeUtils typeUtils, java.util.List<Parameter> sourceParameters, Type resultType, SubclassValidator subclassValidator)private static voidvalidateTypeMirrors(javax.lang.model.type.TypeMirror... typeMirrors)-
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, next, suppressTimestampInGenerated, toDeclaredTypes, typeConversionPolicy, unmappedSourcePolicy, unmappedTargetPolicy, uses
-
-
-
-
Field Detail
-
source
private final javax.lang.model.type.TypeMirror source
-
target
private final javax.lang.model.type.TypeMirror target
-
typeUtils
private final TypeUtils typeUtils
-
-
Constructor Detail
-
SubclassMappingOptions
public SubclassMappingOptions(javax.lang.model.type.TypeMirror source, javax.lang.model.type.TypeMirror target, TypeUtils typeUtils, DelegatingOptions next)
-
-
Method Detail
-
hasAnnotation
public boolean hasAnnotation()
- Specified by:
hasAnnotationin classDelegatingOptions
-
isConsistent
private static boolean isConsistent(SubclassMappingGem gem, javax.lang.model.element.ExecutableElement method, FormattingMessager messager, TypeUtils typeUtils, java.util.List<Parameter> sourceParameters, Type resultType, SubclassValidator subclassValidator)
-
validateTypeMirrors
private static void validateTypeMirrors(javax.lang.model.type.TypeMirror... typeMirrors)
-
isChildOfParent
private static boolean isChildOfParent(TypeUtils typeUtils, javax.lang.model.type.TypeMirror childType, javax.lang.model.type.TypeMirror parentType)
-
getSource
public javax.lang.model.type.TypeMirror getSource()
-
getTarget
public javax.lang.model.type.TypeMirror getTarget()
-
addInstances
public static void addInstances(SubclassMappingsGem gem, javax.lang.model.element.ExecutableElement method, BeanMappingOptions beanMappingOptions, FormattingMessager messager, TypeUtils typeUtils, java.util.Set<SubclassMappingOptions> mappings, java.util.List<Parameter> sourceParameters, Type resultType, SubclassValidator subclassValidator)
-
addInstance
public static void addInstance(SubclassMappingGem subclassMapping, javax.lang.model.element.ExecutableElement method, BeanMappingOptions beanMappingOptions, FormattingMessager messager, TypeUtils typeUtils, java.util.Set<SubclassMappingOptions> mappings, java.util.List<Parameter> sourceParameters, Type resultType, SubclassValidator subclassValidator)
-
copyForInverseInheritance
public static java.util.List<SubclassMappingOptions> copyForInverseInheritance(java.util.Set<SubclassMappingOptions> subclassMappings, BeanMappingOptions beanMappingOptions)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-