public class GetterWrapperForCollectionsAndMaps extends WrapperForCollectionsAndMaps
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,
Set<String> existingVariableNames,
Type targetType)
constructor for e.g. constants and expressions
|
GetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment,
List<Type> thrownTypesToExclude,
String sourcePresenceChecker,
Set<String> existingVariableNames,
Type targetType)
constructor for property mapping
|
getImportTypes, getLocalVarName, getLocalVarType, getSourcePresenceChecker, getThrownTypes
getAssignment, getSourceLocalVarName, getSourceReference, getSourceType, getType, isUpdateMethod, setAssignment, setSourceLocalVarName
write
getTemplateName, getTemplateNameForClass
public GetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, String sourcePresenceChecker, Set<String> existingVariableNames, Type targetType)
decoratedAssignment
- thrownTypesToExclude
- sourcePresenceChecker
- existingVariableNames
- targetType
- public GetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Set<String> existingVariableNames, Type targetType)
decoratedAssignment
- thrownTypesToExclude
- existingVariableNames
- targetType
- Copyright © 2012-2016 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.