Package org.mapstruct.ap.internal.model
Class BeanMappingMethod
- java.lang.Object
-
- org.mapstruct.ap.internal.writer.FreeMarkerWritable
-
- org.mapstruct.ap.internal.model.common.ModelElement
-
- org.mapstruct.ap.internal.model.GeneratedTypeMethod
-
- org.mapstruct.ap.internal.model.MappingMethod
-
- org.mapstruct.ap.internal.model.NormalTypeMappingMethod
-
- org.mapstruct.ap.internal.model.BeanMappingMethod
-
- All Implemented Interfaces:
Writable
public class BeanMappingMethod extends NormalTypeMappingMethod
AMappingMethod
implemented by aMapper
class which maps one bean type to another, optionally configured by one or morePropertyMapping
s.- Author:
- Gunnar Morling
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BeanMappingMethod.Builder
-
Nested classes/interfaces inherited from interface org.mapstruct.ap.internal.writer.Writable
Writable.Context
-
-
Method Summary
-
Methods inherited from class org.mapstruct.ap.internal.model.NormalTypeMappingMethod
getAnnotations, getFactoryMethod, isMapNullToDefault, isOverridden
-
Methods inherited from class org.mapstruct.ap.internal.model.MappingMethod
filterMappingTarget, getAccessibility, getAfterMappingReferences, getBeforeMappingReferencesWithMappingTarget, getBeforeMappingReferencesWithoutMappingTarget, getName, getParameterNames, getParameters, getResultName, getResultType, getReturnType, getSourceParameters, getThrownTypes, isExistingInstanceMapping, isStatic, toString
-
Methods inherited from class org.mapstruct.ap.internal.writer.FreeMarkerWritable
getTemplateName, getTemplateNameForClass, write
-
-
-
-
Method Detail
-
getConstantMappings
public List<PropertyMapping> getConstantMappings()
-
getConstructorConstantMappings
public List<PropertyMapping> getConstructorConstantMappings()
-
getSubclassMappings
public List<SubclassMapping> getSubclassMappings()
-
getFinalizedResultName
public String getFinalizedResultName()
-
getBeforeMappingReferencesWithFinalizedReturnType
public List<LifecycleCallbackMethodReference> getBeforeMappingReferencesWithFinalizedReturnType()
-
getAfterMappingReferencesWithFinalizedReturnType
public List<LifecycleCallbackMethodReference> getAfterMappingReferencesWithFinalizedReturnType()
-
propertyMappingsByParameter
public List<PropertyMapping> propertyMappingsByParameter(Parameter parameter)
-
constructorPropertyMappingsByParameter
public List<PropertyMapping> constructorPropertyMappingsByParameter(Parameter parameter)
-
getReturnTypeToConstruct
public Type getReturnTypeToConstruct()
-
hasSubclassMappings
public boolean hasSubclassMappings()
-
isAbstractReturnType
public boolean isAbstractReturnType()
-
hasConstructorMappings
public boolean hasConstructorMappings()
-
getFinalizerMethod
public MethodReference getFinalizerMethod()
-
getImportTypes
public Set<Type> getImportTypes()
Description copied from class:ModelElement
Returns a set containing thoseType
s referenced by this model element for which an import statement needs to be declared.- Overrides:
getImportTypes
in classNormalTypeMappingMethod
- Returns:
- A set with type referenced by this model element. Must not be
null
.
-
getSourcePresenceChecks
public Collection<PresenceCheck> getSourcePresenceChecks()
-
getPresenceChecksByParameter
public Map<String,PresenceCheck> getPresenceChecksByParameter()
-
getPresenceCheckByParameter
public PresenceCheck getPresenceCheckByParameter(Parameter parameter)
-
getSourceParametersNeedingPresenceCheck
public List<Parameter> getSourceParametersNeedingPresenceCheck()
-
getSourceParametersNotNeedingPresenceCheck
public List<Parameter> getSourceParametersNotNeedingPresenceCheck()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classNormalTypeMappingMethod
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classNormalTypeMappingMethod
-
-