Class SetterWrapper
- 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.SetterWrapper
-
- All Implemented Interfaces:
Assignment
,Writable
public class SetterWrapper extends AssignmentWrapper
Wraps the assignment in a target setter.- 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 SetterWrapper(Assignment rhs, List<Type> thrownTypesToExclude, boolean fieldAssignment)
SetterWrapper(Assignment rhs, List<Type> thrownTypesToExclude, boolean fieldAssignment, boolean includeSourceNullCheck, boolean setExplicitlyToNull, boolean setExplicitlyToDefault)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Type>
getThrownTypes()
returns all types exception types thrown by this assignment.boolean
isIncludeSourceNullCheck()
boolean
isSetExplicitlyToDefault()
boolean
isSetExplicitlyToNull()
-
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
-
SetterWrapper
public SetterWrapper(Assignment rhs, List<Type> thrownTypesToExclude, boolean fieldAssignment, boolean includeSourceNullCheck, boolean setExplicitlyToNull, boolean setExplicitlyToDefault)
-
SetterWrapper
public SetterWrapper(Assignment rhs, List<Type> thrownTypesToExclude, 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
-
isSetExplicitlyToNull
public boolean isSetExplicitlyToNull()
-
isSetExplicitlyToDefault
public boolean isSetExplicitlyToDefault()
-
isIncludeSourceNullCheck
public boolean isIncludeSourceNullCheck()
-
-