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> thrownTypesToExclude,
Type localVarType,
Collection<String> existingVariableNames) |
| 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. |
String |
getLocalVarName() |
Type |
getLocalVarType() |
List<Type> |
getThrownTypes()
returns all types exception types thrown by this assignment.
|
getAssignment, getSourceReference, getType, isUpdateMethod, setAssignmentwritegetTemplateName, getTemplateNameForClasspublic GetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Type localVarType, Collection<String> existingVariableNames)
public List<Type> getThrownTypes()
AssignmentgetThrownTypes in interface AssignmentgetThrownTypes 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 Type getLocalVarType()
public String getLocalVarName()
Copyright © 2012-2015 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.