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 the
MapperCreationProcessor
|
Modifier and Type | Method and Description |
---|---|
Assignment |
ReverseConversion.from(ConversionContext conversionContext) |
Assignment |
ConversionProvider.from(ConversionContext conversionContext)
Creates the conversion from target to source of a property mapping.
|
Assignment |
DateToStringConversion.from(ConversionContext conversionContext) |
Assignment |
SimpleConversion.from(ConversionContext conversionContext) |
Assignment |
ReverseConversion.to(ConversionContext conversionContext) |
Assignment |
ConversionProvider.to(ConversionContext conversionContext)
Creates the conversion from source to target of a property mapping.
|
Assignment |
DateToStringConversion.to(ConversionContext conversionContext) |
Assignment |
SimpleConversion.to(ConversionContext conversionContext) |
Modifier and Type | Class and 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 the
new operator). |
class |
TypeConversion
An inline conversion between source and target type of a mapping.
|
Modifier and Type | Method and Description |
---|---|
Assignment |
CollectionAssignmentBuilder.build() |
Assignment |
MethodReference.getAssignment() |
Assignment |
TypeConversion.getAssignment() |
Assignment |
PropertyMapping.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 assignment
|
Assignment |
MapMappingMethod.getValueAssignment() |
protected Assignment |
StreamMappingMethod.Builder.getWrapper(Assignment assignment,
Method method) |
protected Assignment |
IterableMappingMethod.Builder.getWrapper(Assignment assignment,
Method method) |
protected abstract Assignment |
ContainerMappingMethodBuilder.getWrapper(Assignment assignment,
Method method) |
Modifier and Type | Method and Description |
---|---|
CollectionAssignmentBuilder |
CollectionAssignmentBuilder.assignment(Assignment assignment) |
protected Assignment |
StreamMappingMethod.Builder.getWrapper(Assignment assignment,
Method method) |
protected Assignment |
IterableMappingMethod.Builder.getWrapper(Assignment assignment,
Method method) |
protected abstract Assignment |
ContainerMappingMethodBuilder.getWrapper(Assignment assignment,
Method method) |
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) |
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 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) |
void |
MethodReference.setAssignment(Assignment assignment) |
void |
TypeConversion.setAssignment(Assignment assignment) |
Modifier and Type | Method and 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 assignment
|
Modifier and Type | Class and Description |
---|---|
class |
AdderWrapper
Wraps the assignment in a target setter.
|
class |
ArrayCopyWrapper
Decorates the assignment as a Map or Collection constructor
|
class |
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 methods
|
class |
LocalVarWrapper
Decorates an assignment as local 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 the
GetterWrapperForCollectionsAndMaps and
SetterWrapperForCollectionsAndMaps |
Modifier and Type | Method and Description |
---|---|
Assignment |
AssignmentWrapper.getAssignment() |
Assignment |
UpdateWrapper.getFactoryMethod() |
Modifier and Type | Method and Description |
---|---|
static boolean |
SetterWrapper.doSourceNullCheck(Assignment rhs,
org.mapstruct.ap.internal.gem.NullValueCheckStrategyGem nvcs,
org.mapstruct.ap.internal.gem.NullValuePropertyMappingStrategyGem nvpms,
Type targetType)
Wraps the assignment in a target setter. include a null check when
- Not if source is the parameter iso property, because the null check is than handled by the bean mapping
- Not when source is primitive, you can't null check a primitive
- The source property is fed to a conversion somehow before its assigned to the target
- The user decided to ALLWAYS include a null check
|
void |
AssignmentWrapper.setAssignment(Assignment assignment) |
Constructor and 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) |
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) |
Modifier and Type | Class and Description |
---|---|
class |
SourceRHS
SourceRHS Assignment.
|
Modifier and Type | Method and Description |
---|---|
void |
SourceRHS.setAssignment(Assignment assignment) |
void |
Assignment.setAssignment(Assignment assignment)
An assignment in itself can wrap another assignment.
|
Modifier and Type | Method and Description |
---|---|
Assignment |
MappingResolverImpl.getTargetAssignment(Method mappingMethod,
ForgedMethodHistory description,
Type targetType,
FormattingParameters formattingParameters,
SelectionCriteria criteria,
SourceRHS sourceRHS,
AnnotationMirror positionHint,
Supplier<Assignment> forger) |
Modifier and Type | Method and Description |
---|---|
Assignment |
MappingResolverImpl.getTargetAssignment(Method mappingMethod,
ForgedMethodHistory description,
Type targetType,
FormattingParameters formattingParameters,
SelectionCriteria criteria,
SourceRHS sourceRHS,
AnnotationMirror positionHint,
Supplier<Assignment> forger) |
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.