public class GetterWrapperForCollectionsAndMaps extends AssignmentWrapper
MappingTarget
before 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.AssignmentType
Writable.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
Type s 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, setAssignment
write
getTemplateName, getTemplateNameForClass
public GetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Type localVarType, Collection<String> existingVariableNames)
public List<Type> getThrownTypes()
Assignment
getThrownTypes
in interface Assignment
getThrownTypes
in class AssignmentWrapper
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 AssignmentWrapper
null
.public Type getLocalVarType()
public String getLocalVarName()
Copyright © 2012-2015 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.