public class GetterWrapperForCollectionsAndMaps extends AssignmentWrapper
MappingTargetbefore adding the source entries. The goal is that the same collection / map
is used as target.
Nothing can be added if the getter on the target returns null.Assignment.AssignmentTypeWritable.Context| Constructor and Description |
|---|
GetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment,
List<Type> exceptionTypesToExclude,
Type targetType,
Collection<String> existingVariableNames) |
| Modifier and Type | Method and Description |
|---|---|
List<Type> |
getExceptionTypes()
returns all types exception types thrown by this assignment.
|
Set<Type> |
getImportTypes()
Returns a set containing those
Types referenced by this model element for which an import statement needs
to be declared. |
String |
getLocalVarName() |
getAssignment, getSourceReference, getType, isUpdateMethod, setAssignmentwritegetTemplateNamepublic GetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment, List<Type> exceptionTypesToExclude, Type targetType, Collection<String> existingVariableNames)
public List<Type> getExceptionTypes()
AssignmentgetExceptionTypes in interface AssignmentgetExceptionTypes in class AssignmentWrapperpublic Set<Type> getImportTypes()
ModelElementTypes referenced by this model element for which an import statement needs
to be declared.getImportTypes in interface AssignmentgetImportTypes in class AssignmentWrappernull.public String getLocalVarName()
Copyright © 2012-2015. All Rights Reserved.