Package org.mapstruct.ap.internal.model
Class NestedPropertyMappingMethod
- 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.NestedPropertyMappingMethod
-
- All Implemented Interfaces:
Writable
public class NestedPropertyMappingMethod extends MappingMethod
This method is used to convert the nested properties as listed in propertyEntries into a method that creates a mapping from the start of this list to the end of the list.So, say that the start of the list is of TypeA and the end of the list is of TypeB than the forged method will create a forged mapping method: TypeB methodName( TypeA in ).
- Author:
- Sjaak Derksen
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NestedPropertyMappingMethod.Builder
static class
NestedPropertyMappingMethod.SafePropertyEntry
-
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 boolean
equals(Object obj)
Set<Type>
getImportTypes()
Returns a set containing thoseType
s referenced by this model element for which an import statement needs to be declared.List<NestedPropertyMappingMethod.SafePropertyEntry>
getPropertyEntries()
Parameter
getSourceParameter()
int
hashCode()
-
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
-
getSourceParameter
public Parameter getSourceParameter()
-
getPropertyEntries
public List<NestedPropertyMappingMethod.SafePropertyEntry> getPropertyEntries()
-
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 classMappingMethod
- Returns:
- A set with type referenced by this model element. Must not be
null
.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classMappingMethod
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classMappingMethod
-
-