Class ArrayCopyWrapper
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.ArrayCopyWrapper
- All Implemented Interfaces:
Assignment,Writable
Decorates the assignment as a Map or Collection constructor
- Author:
- Sjaak Derksen
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.mapstruct.ap.internal.model.common.Assignment
Assignment.AssignmentTypeNested 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
ConstructorsConstructorDescriptionArrayCopyWrapper(Assignment rhs, String targetPropertyName, Type arraysType, Type targetType, boolean fieldAssignment, boolean setExplicitlyToNull, boolean setExplicitlyToDefault) -
Method Summary
Modifier and TypeMethodDescriptionReturns a set containing thoseTypes referenced by this model element for which an import statement needs to be declared.booleanbooleanbooleanMethods inherited from class org.mapstruct.ap.internal.model.assignment.AssignmentWrapper
createUniqueVarName, getAssignment, getSourceLocalVarName, getSourceLoopVarName, getSourceParameterName, getSourcePresenceCheckerReference, getSourceReference, getSourceType, getThrownTypes, getType, isCallingUpdateMethod, isFieldAssignment, isSourceReferenceParameter, setAssignment, setSourceLocalVarName, setSourceLoopVarNameMethods inherited from class org.mapstruct.ap.internal.writer.FreeMarkerWritable
getTemplateName, getTemplateNameForClass, write
-
Constructor Details
-
ArrayCopyWrapper
public ArrayCopyWrapper(Assignment rhs, String targetPropertyName, Type arraysType, Type targetType, boolean fieldAssignment, boolean setExplicitlyToNull, boolean setExplicitlyToDefault)
-
-
Method Details
-
getImportTypes
Description copied from class:ModelElementReturns a set containing thoseTypes referenced by this model element for which an import statement needs to be declared.- Specified by:
getImportTypesin interfaceAssignment- Overrides:
getImportTypesin classAssignmentWrapper- Returns:
- A set with type referenced by this model element. Must not be
null.
-
isIncludeSourceNullCheck
public boolean isIncludeSourceNullCheck() -
isSetExplicitlyToNull
public boolean isSetExplicitlyToNull() -
isSetExplicitlyToDefault
public boolean isSetExplicitlyToDefault()
-