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.processor.creation |
Contains all helper classes for the
MapperCreationProcessor
|
Modifier and Type | Method and 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) |
Modifier and Type | Class and Description |
---|---|
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 |
SourceRHS
SourceRHS Assignment.
|
class |
TypeConversion
An inline conversion between source and target type of a mapping.
|
Modifier and Type | Method and Description |
---|---|
Assignment |
MethodReference.getAssignment() |
Assignment |
PropertyMapping.getAssignment() |
Assignment |
TypeConversion.getAssignment() |
Assignment |
PropertyMapping.getDefaultValueAssignment() |
Assignment |
IterableMappingMethod.getElementAssignment() |
Assignment |
LocalVariable.getFactoryMethod() |
Assignment |
MapMappingMethod.getKeyAssignment() |
Assignment |
MappingBuilderContext.MappingResolver.getTargetAssignment(Method mappingMethod,
String mappedElement,
Type sourceType,
Type targetType,
String targetPropertyName,
FormattingParameters formattingParameters,
SelectionParameters selectionParameters,
SourceRHS sourceRHS,
boolean preferUpdateMethods)
returns a parameter assignment
|
Assignment |
MapMappingMethod.getValueAssignment() |
Modifier and Type | Method and Description |
---|---|
void |
MethodReference.setAssignment(Assignment assignment) |
void |
SourceRHS.setAssignment(Assignment assignment) |
void |
TypeConversion.setAssignment(Assignment assignment) |
Constructor and Description |
---|
LocalVariable(String name,
Type type,
Assignment factoryMethod) |
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 |
GetterWrapperForCollectionsAndMaps
This wrapper handles the situation were an assignment must be done via a target getter method because there
is no setter available.
|
class |
LocalVarWrapper
Decorates an assignment as local variable.
|
class |
NullCheckWrapper
Wraps the assignment in a null check.
|
class |
SetterWrapper
Wraps the assignment in a target setter.
|
class |
SetterWrapperForCollectionsAndMaps
This wrapper handles the situation were an assignment is done via the setter.
|
class |
UpdateNullCheckWrapper
Wraps an update-assignment in a null check and sets the target property to
null , if the source is
null . |
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 |
---|---|
void |
Assignment.setAssignment(Assignment assignment)
An assignment in itself can wrap another assignment.
|
void |
AssignmentWrapper.setAssignment(Assignment assignment) |
Constructor and Description |
---|
AdderWrapper(Assignment decoratedAssignment,
List<Type> thrownTypesToExclude,
String sourceReference,
Type sourceType) |
ArrayCopyWrapper(Assignment decoratedAssignment,
String targetPropertyName,
Type arraysType,
Type targetType,
Collection<String> existingVariableNames) |
AssignmentWrapper(Assignment decoratedAssignment) |
EnumConstantWrapper(Assignment decoratedAssignment,
Type enumType) |
GetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment,
List<Type> thrownTypesToExclude,
Set<String> existingVariableNames,
Type targetType)
constructor for e.g. constants and expressions
|
GetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment,
List<Type> thrownTypesToExclude,
String sourcePresenceChecker,
Set<String> existingVariableNames,
Type targetType)
constructor for property mapping
|
LocalVarWrapper(Assignment decoratedAssignment,
List<Type> thrownTypesToExclude,
Type targetType) |
NullCheckWrapper(Assignment decoratedAssignment,
String sourcePresenceChecker) |
SetterWrapper(Assignment decoratedAssignment,
List<Type> thrownTypesToExclude) |
SetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment,
List<Type> thrownTypesToExclude,
String sourcePresenceChecker,
Set<String> existingVariableNames,
Type targetType,
boolean allwaysIncludeNullCheck,
TypeFactory typeFactory) |
UpdateNullCheckWrapper(Assignment decoratedAssignment,
String sourcePresenceChecker) |
UpdateWrapper(Assignment decoratedAssignment,
List<Type> thrownTypesToExclude,
Assignment factoryMethod,
Type targetImplementationType) |
WrapperForCollectionsAndMaps(Assignment decoratedAssignment,
List<Type> thrownTypesToExclude,
String sourcePresenceChecker,
Set<String> existingVariableNames,
Type targetType) |
Modifier and Type | Method and Description |
---|---|
Assignment |
MappingResolverImpl.getTargetAssignment(Method mappingMethod,
String mappedElement,
Type sourceType,
Type targetType,
String targetPropertyName,
FormattingParameters formattingParameters,
SelectionParameters selectionParameters,
SourceRHS sourceRHS,
boolean preferUpdateMapping) |
Copyright © 2012-2016 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.