Package org.mapstruct.ap.internal.model
Class IterableMappingMethod
- 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.ContainerMappingMethod
-
- org.mapstruct.ap.internal.model.IterableMappingMethod
-
- All Implemented Interfaces:
Writable
public class IterableMappingMethod extends ContainerMappingMethod
AMappingMethod
implemented by aMapper
class which maps one iterable type to another. The collection elements are mapped either by aTypeConversion
or another mapping method.- Author:
- Gunnar Morling
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IterableMappingMethod.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 Set<Type>
getImportTypes()
Returns a set containing thoseType
s referenced by this model element for which an import statement needs to be declared.Type
getResultElementType()
Type
getSourceElementType()
-
Methods inherited from class org.mapstruct.ap.internal.model.ContainerMappingMethod
equals, getElementAssignment, getIndex1Name, getIndex2Name, getIterableCreation, getLoopVariableName, getSourceParameter, hashCode
-
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
-
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 classContainerMappingMethod
- Returns:
- A set with type referenced by this model element. Must not be
null
.
-
getSourceElementType
public Type getSourceElementType()
-
getResultElementType
public Type getResultElementType()
- Specified by:
getResultElementType
in classContainerMappingMethod
-
-