Package org.mapstruct.ap.internal.model
Class MapMappingMethod
- 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.MapMappingMethod
-
- All Implemented Interfaces:
Writable
public class MapMappingMethod extends NormalTypeMappingMethod
AMappingMethod
implemented by aMapper
class which maps oneMap
type to another. Keys and values are mapped either by aTypeConversion
or another mapping method if required.- Author:
- Gunnar Morling
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MapMappingMethod.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 String
getEntryVariableName()
Set<Type>
getImportTypes()
Returns a set containing thoseType
s referenced by this model element for which an import statement needs to be declared.IterableCreation
getIterableCreation()
Assignment
getKeyAssignment()
String
getKeyVariableName()
List<Type>
getResultElementTypes()
List<Type>
getSourceElementTypes()
Parameter
getSourceParameter()
Assignment
getValueAssignment()
String
getValueVariableName()
-
Methods inherited from class org.mapstruct.ap.internal.model.NormalTypeMappingMethod
equals, getFactoryMethod, hashCode, 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
-
getSourceParameter
public Parameter getSourceParameter()
-
getKeyAssignment
public Assignment getKeyAssignment()
-
getValueAssignment
public Assignment getValueAssignment()
-
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
.
-
getKeyVariableName
public String getKeyVariableName()
-
getValueVariableName
public String getValueVariableName()
-
getEntryVariableName
public String getEntryVariableName()
-
getIterableCreation
public IterableCreation getIterableCreation()
-
-