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.MappingMethod
-
- org.mapstruct.ap.internal.model.NormalTypeMappingMethod
-
- org.mapstruct.ap.internal.model.BeanMappingMethod
-
- All Implemented Interfaces:
Writable
public class BeanMappingMethod extends NormalTypeMappingMethod
AMappingMethodimplemented by aMapperclass which maps one bean type to another, optionally configured by one or morePropertyMappings.- Author:
- Gunnar Morling
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBeanMappingMethod.Builder-
Nested classes/interfaces inherited from interface org.mapstruct.ap.internal.writer.Writable
Writable.Context
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<PropertyMapping>constructorPropertyMappingsByParameter(Parameter parameter)booleanequals(Object obj)List<PropertyMapping>getConstantMappings()List<PropertyMapping>getConstructorConstantMappings()MethodReferencegetFinalizerMethod()Set<Type>getImportTypes()Returns a set containing thoseTypes referenced by this model element for which an import statement needs to be declared.TypegetReturnTypeToConstruct()List<Parameter>getSourceParametersExcludingPrimitives()List<Parameter>getSourceParametersNeedingNullCheck()List<Parameter>getSourceParametersNotNeedingNullCheck()List<SubclassMapping>getSubclassMappings()booleanhasConstructorMappings()inthashCode()booleanhasSubclassMappings()booleanisAbstractReturnType()List<PropertyMapping>propertyMappingsByParameter(Parameter parameter)-
Methods inherited from class org.mapstruct.ap.internal.model.NormalTypeMappingMethod
getFactoryMethod, isMapNullToDefault, isOverridden
-
Methods inherited from class org.mapstruct.ap.internal.model.MappingMethod
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()
-
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:ModelElementReturns a set containing thoseTypes referenced by this model element for which an import statement needs to be declared.- Overrides:
getImportTypesin classNormalTypeMappingMethod- Returns:
- A set with type referenced by this model element. Must not be
null.
-
getSourceParametersExcludingPrimitives
public List<Parameter> getSourceParametersExcludingPrimitives()
-
getSourceParametersNotNeedingNullCheck
public List<Parameter> getSourceParametersNotNeedingNullCheck()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classNormalTypeMappingMethod
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classNormalTypeMappingMethod
-
-