Class WrapperForCollectionsAndMaps
- java.lang.Object
-
- org.mapstruct.ap.internal.writer.FreeMarkerWritable
-
- org.mapstruct.ap.internal.model.common.ModelElement
-
- org.mapstruct.ap.internal.model.assignment.AssignmentWrapper
-
- org.mapstruct.ap.internal.model.assignment.WrapperForCollectionsAndMaps
-
- All Implemented Interfaces:
Assignment
,Writable
- Direct Known Subclasses:
GetterWrapperForCollectionsAndMaps
,SetterWrapperForCollectionsAndMaps
,SetterWrapperForCollectionsAndMapsWithNullCheck
public class WrapperForCollectionsAndMaps extends AssignmentWrapper
This is the base class for theGetterWrapperForCollectionsAndMaps
andSetterWrapperForCollectionsAndMaps
- Author:
- Sjaak Derksen
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.mapstruct.ap.internal.model.common.Assignment
Assignment.AssignmentType
-
Nested classes/interfaces inherited from interface org.mapstruct.ap.internal.writer.Writable
Writable.Context
-
-
Field Summary
-
Fields inherited from class org.mapstruct.ap.internal.model.assignment.AssignmentWrapper
fieldAssignment
-
-
Constructor Summary
Constructors Constructor Description WrapperForCollectionsAndMaps(Assignment rhs, List<Type> thrownTypesToExclude, Type targetType, boolean fieldAssignment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getNullCheckLocalVarName()
Type
getNullCheckLocalVarType()
List<Type>
getThrownTypes()
returns all types exception types thrown by this assignment.-
Methods inherited from class org.mapstruct.ap.internal.model.assignment.AssignmentWrapper
createUniqueVarName, getAssignment, getImportTypes, getSourceLocalVarName, getSourceLoopVarName, getSourceParameterName, getSourcePresenceCheckerReference, getSourceReference, getSourceType, getType, isCallingUpdateMethod, isFieldAssignment, isSourceReferenceParameter, setAssignment, setSourceLocalVarName, setSourceLoopVarName
-
Methods inherited from class org.mapstruct.ap.internal.writer.FreeMarkerWritable
getTemplateName, getTemplateNameForClass, write
-
-
-
-
Constructor Detail
-
WrapperForCollectionsAndMaps
public WrapperForCollectionsAndMaps(Assignment rhs, List<Type> thrownTypesToExclude, Type targetType, boolean fieldAssignment)
-
-
Method Detail
-
getThrownTypes
public List<Type> getThrownTypes()
Description copied from interface:Assignment
returns all types exception types thrown by this assignment.- Specified by:
getThrownTypes
in interfaceAssignment
- Overrides:
getThrownTypes
in classAssignmentWrapper
- Returns:
- exceptions thrown
-
getNullCheckLocalVarName
public String getNullCheckLocalVarName()
-
getNullCheckLocalVarType
public Type getNullCheckLocalVarType()
-
-