public class SetterWrapperForCollectionsAndMaps extends WrapperForCollectionsAndMaps
MappingTarget
before 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.AssignmentType
Writable.Context
Constructor and Description |
---|
SetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment,
List<Type> thrownTypesToExclude,
String sourcePresenceChecker,
Set<String> existingVariableNames,
Type targetType,
boolean allwaysIncludeNullCheck,
TypeFactory typeFactory) |
Modifier and Type | Method and Description |
---|---|
Set<Type> |
getImportTypes()
Returns a set containing those
Type s referenced by this model element for which an import statement needs
to be declared. |
boolean |
isAllwaysIncludeNullCheck() |
boolean |
isDirectAssignment() |
boolean |
isEnumSet() |
getLocalVarName, getLocalVarType, getSourcePresenceChecker, getThrownTypes
getAssignment, getSourceLocalVarName, getSourceReference, getSourceType, getType, isUpdateMethod, setAssignment, setSourceLocalVarName
write
getTemplateName, getTemplateNameForClass
public SetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, String sourcePresenceChecker, Set<String> existingVariableNames, Type targetType, boolean allwaysIncludeNullCheck, TypeFactory typeFactory)
public Set<Type> getImportTypes()
ModelElement
Type
s referenced by this model element for which an import statement needs
to be declared.getImportTypes
in interface Assignment
getImportTypes
in class WrapperForCollectionsAndMaps
null
.public boolean isAllwaysIncludeNullCheck()
public boolean isDirectAssignment()
public boolean isEnumSet()
Copyright © 2012-2016 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.