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.GeneratedTypeMethod
-
- 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
AMappingMethodimplemented by aMapperclass which maps oneMaptype to another. Keys and values are mapped either by aTypeConversionor another mapping method if required.- Author:
- Gunnar Morling
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMapMappingMethod.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 StringgetEntryVariableName()Set<Type>getImportTypes()Returns a set containing thoseTypes referenced by this model element for which an import statement needs to be declared.IterableCreationgetIterableCreation()AssignmentgetKeyAssignment()StringgetKeyVariableName()List<Type>getResultElementTypes()List<Type>getSourceElementTypes()ParametergetSourceParameter()PresenceCheckgetSourceParameterPresenceCheck()AssignmentgetValueAssignment()StringgetValueVariableName()-
Methods inherited from class org.mapstruct.ap.internal.model.NormalTypeMappingMethod
equals, getAnnotations, getFactoryMethod, hashCode, 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
-
getSourceParameter
public Parameter getSourceParameter()
-
getSourceParameterPresenceCheck
public PresenceCheck getSourceParameterPresenceCheck()
-
getKeyAssignment
public Assignment getKeyAssignment()
-
getValueAssignment
public Assignment getValueAssignment()
-
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.
-
getKeyVariableName
public String getKeyVariableName()
-
getValueVariableName
public String getValueVariableName()
-
getEntryVariableName
public String getEntryVariableName()
-
getIterableCreation
public IterableCreation getIterableCreation()
-
-