Class StreamAdderWrapper
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.StreamAdderWrapper
- All Implemented Interfaces:
Assignment,Writable
Wraps the assignment in a target setter.
- Author:
- Sebastian Haberey
-
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
ConstructorsConstructorDescriptionStreamAdderWrapper(Assignment rhs, List<Type> thrownTypesToExclude, boolean fieldAssignment, String targetPropertyName) -
Method Summary
Modifier and TypeMethodDescriptionReturns a set containing thoseTypes referenced by this model element for which an import statement needs to be declared.returns all types exception types thrown by this assignment.booleanbooleanbooleanMethods inherited from class org.mapstruct.ap.internal.model.assignment.AssignmentWrapper
createUniqueVarName, getAssignment, getSourceLocalVarName, getSourceLoopVarName, getSourceParameterName, getSourcePresenceCheckerReference, getSourceReference, getSourceType, getType, isCallingUpdateMethod, isFieldAssignment, isSourceReferenceParameter, setAssignment, setSourceLocalVarName, setSourceLoopVarNameMethods inherited from class org.mapstruct.ap.internal.writer.FreeMarkerWritable
getTemplateName, getTemplateNameForClass, write
-
Constructor Details
-
StreamAdderWrapper
public StreamAdderWrapper(Assignment rhs, List<Type> thrownTypesToExclude, boolean fieldAssignment, String targetPropertyName)
-
-
Method Details
-
getThrownTypes
Description copied from interface:Assignmentreturns all types exception types thrown by this assignment.- Specified by:
getThrownTypesin interfaceAssignment- Overrides:
getThrownTypesin classAssignmentWrapper- Returns:
- exceptions thrown
-
getAdderType
-
isIncludeSourceNullCheck
public boolean isIncludeSourceNullCheck() -
isSetExplicitlyToNull
public boolean isSetExplicitlyToNull() -
isSetExplicitlyToDefault
public boolean isSetExplicitlyToDefault() -
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.
-