Uses of Interface
org.mapstruct.ap.internal.model.common.Assignment
-
Packages that use Assignment Package Description org.mapstruct.ap.internal.conversion Provides built-in conversions between primitive and wrapper types, strings, dates etc.org.mapstruct.ap.internal.model Meta-model of mapper types, their methods, mappings between properties etc.org.mapstruct.ap.internal.model.assignment Meta-model of assignments.org.mapstruct.ap.internal.model.common Contains types which are shared between the intermediary mapping method model ("source model") and the mapper model.org.mapstruct.ap.internal.processor.creation Contains all helper classes for theMapperCreationProcessor
-
-
Uses of Assignment in org.mapstruct.ap.internal.conversion
Methods in org.mapstruct.ap.internal.conversion that return Assignment Modifier and Type Method Description Assignment
ConversionProvider. from(ConversionContext conversionContext)
Creates the conversion from target to source of a property mapping.Assignment
DateToStringConversion. from(ConversionContext conversionContext)
Assignment
ReverseConversion. from(ConversionContext conversionContext)
Assignment
SimpleConversion. from(ConversionContext conversionContext)
Assignment
ConversionProvider. to(ConversionContext conversionContext)
Creates the conversion from source to target of a property mapping.Assignment
DateToStringConversion. to(ConversionContext conversionContext)
Assignment
ReverseConversion. to(ConversionContext conversionContext)
Assignment
SimpleConversion. to(ConversionContext conversionContext)
-
Uses of Assignment in org.mapstruct.ap.internal.model
Classes in org.mapstruct.ap.internal.model that implement Assignment Modifier and Type Class Description class
LifecycleCallbackMethodReference
Represents a reference to a method that is annotated with@BeforeMapping
or@AfterMapping
.class
MethodReference
Represents a reference to another method, e.g. used to map a bean property from source to target type or to instantiate the return value of a mapping method (rather than calling thenew
operator).class
TypeConversion
An inline conversion between source and target type of a mapping.Methods in org.mapstruct.ap.internal.model that return Assignment Modifier and Type Method Description Assignment
CollectionAssignmentBuilder. build()
Assignment
MethodReference. getAssignment()
Assignment
PropertyMapping. getAssignment()
Assignment
TypeConversion. getAssignment()
Assignment
PropertyMapping. getDefaultValueAssignment()
Assignment
ContainerMappingMethod. getElementAssignment()
Assignment
MapMappingMethod. getKeyAssignment()
Assignment
MappingBuilderContext.MappingResolver. getTargetAssignment(Method mappingMethod, ForgedMethodHistory description, Type targetType, FormattingParameters formattingParameters, SelectionCriteria criteria, SourceRHS sourceRHS, AnnotationMirror positionHint, Supplier<Assignment> forger)
returns a parameter assignmentAssignment
MapMappingMethod. getValueAssignment()
protected abstract Assignment
ContainerMappingMethodBuilder. getWrapper(Assignment assignment, Method method)
protected Assignment
IterableMappingMethod.Builder. getWrapper(Assignment assignment, Method method)
protected Assignment
StreamMappingMethod.Builder. getWrapper(Assignment assignment, Method method)
Methods in org.mapstruct.ap.internal.model with parameters of type Assignment Modifier and Type Method Description CollectionAssignmentBuilder
CollectionAssignmentBuilder. assignment(Assignment assignment)
protected abstract Assignment
ContainerMappingMethodBuilder. getWrapper(Assignment assignment, Method method)
protected Assignment
IterableMappingMethod.Builder. getWrapper(Assignment assignment, Method method)
protected Assignment
StreamMappingMethod.Builder. getWrapper(Assignment assignment, Method method)
protected abstract M
ContainerMappingMethodBuilder. instantiateMappingMethod(Method method, Collection<String> existingVariables, Assignment assignment, MethodReference factoryMethod, boolean mapNullToDefault, String loopVariableName, List<LifecycleCallbackMethodReference> beforeMappingMethods, List<LifecycleCallbackMethodReference> afterMappingMethods, SelectionParameters selectionParameters)
protected IterableMappingMethod
IterableMappingMethod.Builder. instantiateMappingMethod(Method method, Collection<String> existingVariables, Assignment assignment, MethodReference factoryMethod, boolean mapNullToDefault, String loopVariableName, List<LifecycleCallbackMethodReference> beforeMappingMethods, List<LifecycleCallbackMethodReference> afterMappingMethods, SelectionParameters selectionParameters)
protected StreamMappingMethod
StreamMappingMethod.Builder. instantiateMappingMethod(Method method, Collection<String> existingVariables, Assignment assignment, MethodReference factoryMethod, boolean mapNullToDefault, String loopVariableName, List<LifecycleCallbackMethodReference> beforeMappingMethods, List<LifecycleCallbackMethodReference> afterMappingMethods, SelectionParameters selectionParameters)
void
MethodReference. setAssignment(Assignment assignment)
void
TypeConversion. setAssignment(Assignment assignment)
Method parameters in org.mapstruct.ap.internal.model with type arguments of type Assignment Modifier and Type Method Description Assignment
MappingBuilderContext.MappingResolver. getTargetAssignment(Method mappingMethod, ForgedMethodHistory description, Type targetType, FormattingParameters formattingParameters, SelectionCriteria criteria, SourceRHS sourceRHS, AnnotationMirror positionHint, Supplier<Assignment> forger)
returns a parameter assignmentConstructors in org.mapstruct.ap.internal.model with parameters of type Assignment Constructor Description SubclassMapping(Type sourceType, String sourceArgument, Type targetType, Assignment assignment)
-
Uses of Assignment in org.mapstruct.ap.internal.model.assignment
Classes in org.mapstruct.ap.internal.model.assignment that implement Assignment Modifier and Type Class Description class
AdderWrapper
Wraps the assignment in a target setter.class
ArrayCopyWrapper
Decorates the assignment as a Map or Collection constructorclass
AssignmentWrapper
Base class for decorators (wrappers).class
EnumConstantWrapper
class
ExistingInstanceSetterWrapperForCollectionsAndMaps
This wrapper handles the situation where an assignment is done for an update method.class
GetterWrapperForCollectionsAndMaps
This wrapper handles the situation were an assignment must be done via a target getter method because there is no setter available.class
Java8FunctionWrapper
Wraps the assignment in a Function to be used in Java 8 map methodsclass
LocalVarWrapper
Decorates an assignment as local variable.class
NewInstanceSetterWrapperForCollectionsAndMaps
This wrapper handles the situation where an assignment is done via the setter, while creating the collection or map using a no-args constructor.class
ReturnWrapper
Decorates an assignment as a return variable.class
SetterWrapper
Wraps the assignment in a target setter.class
SetterWrapperForCollectionsAndMaps
This wrapper handles the situation where an assignment is done via the setter, without doing anything special.class
SetterWrapperForCollectionsAndMapsWithNullCheck
This wrapper handles the situation where an assignment is done via the setter and a null check is needed.class
StreamAdderWrapper
Wraps the assignment in a target setter.class
UpdateWrapper
Wraps the assignment in a target setter.class
WrapperForCollectionsAndMaps
This is the base class for theGetterWrapperForCollectionsAndMaps
andSetterWrapperForCollectionsAndMaps
Methods in org.mapstruct.ap.internal.model.assignment that return Assignment Modifier and Type Method Description Assignment
AssignmentWrapper. getAssignment()
Assignment
UpdateWrapper. getFactoryMethod()
Methods in org.mapstruct.ap.internal.model.assignment with parameters of type Assignment Modifier and Type Method Description void
AssignmentWrapper. setAssignment(Assignment assignment)
Constructors in org.mapstruct.ap.internal.model.assignment with parameters of type Assignment Constructor Description AdderWrapper(Assignment rhs, List<Type> thrownTypesToExclude, boolean fieldAssignment, String adderIteratorName)
ArrayCopyWrapper(Assignment rhs, String targetPropertyName, Type arraysType, Type targetType, boolean fieldAssignment, boolean setExplicitlyToNull, boolean setExplicitlyToDefault)
AssignmentWrapper(Assignment decoratedAssignment, boolean fieldAssignment)
EnumConstantWrapper(Assignment decoratedAssignment, Type enumType)
ExistingInstanceSetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Type targetType, org.mapstruct.ap.internal.gem.NullValueCheckStrategyGem nvcs, org.mapstruct.ap.internal.gem.NullValuePropertyMappingStrategyGem nvpms, TypeFactory typeFactory, boolean fieldAssignment)
GetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Type targetType, boolean fieldAssignment)
Java8FunctionWrapper(Assignment decoratedAssignment)
Java8FunctionWrapper(Assignment decoratedAssignment, Type functionType)
LocalVarWrapper(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Type targetType, boolean fieldAssignment)
NewInstanceSetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Type targetType, TypeFactory typeFactory, boolean fieldAssignment)
ReturnWrapper(Assignment decoratedAssignment)
SetterWrapper(Assignment rhs, List<Type> thrownTypesToExclude, boolean fieldAssignment)
SetterWrapper(Assignment rhs, List<Type> thrownTypesToExclude, boolean fieldAssignment, boolean includeSourceNullCheck, boolean setExplicitlyToNull, boolean setExplicitlyToDefault)
SetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Type targetType, boolean fieldAssignment)
SetterWrapperForCollectionsAndMapsWithNullCheck(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Type targetType, TypeFactory typeFactory, boolean fieldAssignment)
StreamAdderWrapper(Assignment rhs, List<Type> thrownTypesToExclude, boolean fieldAssignment, String targetPropertyName)
UpdateWrapper(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Assignment factoryMethod, boolean fieldAssignment, Type targetType, boolean includeSourceNullCheck, boolean setExplicitlyToNull, boolean setExplicitlyToDefault)
WrapperForCollectionsAndMaps(Assignment rhs, List<Type> thrownTypesToExclude, Type targetType, boolean fieldAssignment)
-
Uses of Assignment in org.mapstruct.ap.internal.model.common
Classes in org.mapstruct.ap.internal.model.common that implement Assignment Modifier and Type Class Description class
SourceRHS
SourceRHS Assignment.Methods in org.mapstruct.ap.internal.model.common with parameters of type Assignment Modifier and Type Method Description void
Assignment. setAssignment(Assignment assignment)
An assignment in itself can wrap another assignment.void
SourceRHS. setAssignment(Assignment assignment)
-
Uses of Assignment in org.mapstruct.ap.internal.processor.creation
Methods in org.mapstruct.ap.internal.processor.creation that return Assignment Modifier and Type Method Description Assignment
MappingResolverImpl. getTargetAssignment(Method mappingMethod, ForgedMethodHistory description, Type targetType, FormattingParameters formattingParameters, SelectionCriteria criteria, SourceRHS sourceRHS, AnnotationMirror positionHint, Supplier<Assignment> forger)
Method parameters in org.mapstruct.ap.internal.processor.creation with type arguments of type Assignment Modifier and Type Method Description Assignment
MappingResolverImpl. getTargetAssignment(Method mappingMethod, ForgedMethodHistory description, Type targetType, FormattingParameters formattingParameters, SelectionCriteria criteria, SourceRHS sourceRHS, AnnotationMirror positionHint, Supplier<Assignment> forger)
-