Class AdderWrapper
- 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.AdderWrapper
-
- All Implemented Interfaces:
Assignment
,Writable
public class AdderWrapper 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 AdderWrapper(Assignment rhs, List<Type> thrownTypesToExclude, boolean fieldAssignment, String adderIteratorName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Type
getAdderType()
Set<Type>
getImportTypes()
Returns a set containing thoseType
s referenced by this model element for which an import statement needs to be declared.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, 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
-
AdderWrapper
public AdderWrapper(Assignment rhs, List<Type> thrownTypesToExclude, boolean fieldAssignment, String adderIteratorName)
-
-
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
-
getAdderType
public Type getAdderType()
-
isIncludeSourceNullCheck
public boolean isIncludeSourceNullCheck()
-
isSetExplicitlyToNull
public boolean isSetExplicitlyToNull()
-
isSetExplicitlyToDefault
public boolean isSetExplicitlyToDefault()
-
getImportTypes
public Set<Type> getImportTypes()
Description copied from class:ModelElement
Returns a set containing thoseType
s referenced by this model element for which an import statement needs to be declared.- Specified by:
getImportTypes
in interfaceAssignment
- Overrides:
getImportTypes
in classAssignmentWrapper
- Returns:
- A set with type referenced by this model element. Must not be
null
.
-
-