public class SetterWrapperForCollectionsAndMaps extends WrapperForCollectionsAndMaps
MappingTargetbefore adding the source entries.
If there is no pre-existing target, or the target Collection / Map is not initialized (null) the setter is used to
create a new Collection / Map with the copy constructor.Assignment.AssignmentTypeWritable.ContextfieldAssignment| Constructor and Description |
|---|
SetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment,
List<Type> thrownTypesToExclude,
Type targetType,
org.mapstruct.ap.internal.prism.NullValueCheckStrategyPrism nvms,
TypeFactory typeFactory,
boolean fieldAssignment,
boolean targetImmutable) |
| Modifier and Type | Method and Description |
|---|---|
Set<Type> |
getImportTypes()
Returns a set containing those
Types referenced by this model element for which an import statement needs
to be declared. |
boolean |
isDirectAssignment() |
boolean |
isEnumSet() |
boolean |
isIncludeSourceNullCheck() |
boolean |
isTargetImmutable() |
getNullCheckLocalVarName, getNullCheckLocalVarType, getThrownTypescreateLocalVarName, getAssignment, getSourceLocalVarName, getSourceParameterName, getSourcePresenceCheckerReference, getSourceReference, getSourceType, getType, isCallingUpdateMethod, isFieldAssignment, isSourceReferenceParameter, setAssignment, setSourceLocalVarNamegetTemplateName, getTemplateNameForClass, writepublic SetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Type targetType, org.mapstruct.ap.internal.prism.NullValueCheckStrategyPrism nvms, TypeFactory typeFactory, boolean fieldAssignment, boolean targetImmutable)
public Set<Type> getImportTypes()
ModelElementTypes referenced by this model element for which an import statement needs
to be declared.getImportTypes in interface AssignmentgetImportTypes in class WrapperForCollectionsAndMapsnull.public boolean isIncludeSourceNullCheck()
public boolean isDirectAssignment()
public boolean isEnumSet()
public boolean isTargetImmutable()
Copyright © 2012–2017. All rights reserved.