public class GetterWrapperForCollectionsAndMaps extends WrapperForCollectionsAndMaps
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.ContextfieldAssignment| Constructor and Description |
|---|
GetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment,
List<Type> thrownTypesToExclude,
Type targetType,
boolean fieldAssignment) |
getImportTypes, getNullCheckLocalVarName, getNullCheckLocalVarType, getThrownTypescreateLocalVarName, getAssignment, getSourceLocalVarName, getSourceParameterName, getSourcePresenceCheckerReference, getSourceReference, getSourceType, getType, isCallingUpdateMethod, isFieldAssignment, isSourceReferenceParameter, setAssignment, setSourceLocalVarNamegetTemplateName, getTemplateNameForClass, writepublic GetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Type targetType, boolean fieldAssignment)
decoratedAssignment - source RHSthrownTypesToExclude - set of types to exclude from re-throwingtargetType - the target typefieldAssignment - true when this the assignment is to a field rather than via accessorsCopyright © 2012–2017. All rights reserved.