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
AMappingMethodimplemented by aMapperclass which maps one iterable type to another. The collection elements are mapped either by aTypeConversionor another mapping method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIterableMappingMethod.Builder-
Nested classes/interfaces inherited from interface org.mapstruct.ap.internal.writer.Writable
Writable.Context
-
-
Constructor Summary
Constructors Modifier Constructor Description privateIterableMappingMethod(Method method, java.util.Collection<java.lang.String> existingVariables, Assignment parameterAssignment, MethodReference factoryMethod, boolean mapNullToDefault, java.lang.String loopVariableName, java.util.List<LifecycleCallbackMethodReference> beforeMappingReferences, java.util.List<LifecycleCallbackMethodReference> afterMappingReferences, SelectionParameters selectionParameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<Type>getImportTypes()Returns a set containing thoseTypes referenced by this model element for which an import statement needs to be declared.TypegetResultElementType()TypegetSourceElementType()-
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
-
-
-
-
Constructor Detail
-
IterableMappingMethod
private IterableMappingMethod(Method method, java.util.Collection<java.lang.String> existingVariables, Assignment parameterAssignment, MethodReference factoryMethod, boolean mapNullToDefault, java.lang.String loopVariableName, java.util.List<LifecycleCallbackMethodReference> beforeMappingReferences, java.util.List<LifecycleCallbackMethodReference> afterMappingReferences, SelectionParameters selectionParameters)
-
-
Method Detail
-
getImportTypes
public java.util.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 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:
getResultElementTypein classContainerMappingMethod
-
-