Package org.mapstruct.ap.internal.model
Class ContainerMappingMethod
- 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
-
- All Implemented Interfaces:
Writable
- Direct Known Subclasses:
IterableMappingMethod
,StreamMappingMethod
public abstract class ContainerMappingMethod extends NormalTypeMappingMethod
AMappingMethod
implemented by aMapper
class which does mapping of generic types. For example Iterable or Stream. The generic elements are mapped either by aTypeConversion
or another mapping method.- Author:
- Filip Hrisafov
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.mapstruct.ap.internal.writer.Writable
Writable.Context
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Assignment
getElementAssignment()
Set<Type>
getImportTypes()
Returns a set containing thoseType
s referenced by this model element for which an import statement needs to be declared.String
getIndex1Name()
String
getIndex2Name()
IterableCreation
getIterableCreation()
String
getLoopVariableName()
abstract Type
getResultElementType()
Parameter
getSourceParameter()
int
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
-
getSourceParameter
public Parameter getSourceParameter()
-
getIterableCreation
public IterableCreation getIterableCreation()
-
getElementAssignment
public Assignment getElementAssignment()
-
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
.
-
getLoopVariableName
public String getLoopVariableName()
-
getResultElementType
public abstract Type getResultElementType()
-
getIndex1Name
public String getIndex1Name()
-
getIndex2Name
public String getIndex2Name()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classNormalTypeMappingMethod
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classNormalTypeMappingMethod
-
-