| Package | Description |
|---|---|
| org.mapstruct.ap.conversion |
Provides built-in conversions between primitive and wrapper types, strings, dates etc.
|
| org.mapstruct.ap.model |
Meta-model of mapper types, their methods, mappings between properties etc.
|
| org.mapstruct.ap.model.assignment |
Meta-model of assignments.
|
| org.mapstruct.ap.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 | Method and Description |
|---|---|
Assignment |
PropertyMapping.getAssignment() |
Assignment |
IterableMappingMethod.getElementAssignment() |
Assignment |
MapMappingMethod.getKeyAssignment() |
Assignment |
MapMappingMethod.getValueAssignment() |
| Modifier and Type | Method and Description |
|---|---|
void |
Assignment.setAssignment(Assignment assignment)
An assignment in itself can wrap another assignment.
|
| Constructor and Description |
|---|
IterableMappingMethod(SourceMethod method,
Assignment parameterAssignment,
FactoryMethod factoryMethod) |
MapMappingMethod(SourceMethod method,
Assignment keyAssignment,
Assignment valueAssignment,
FactoryMethod factoryMethod) |
PropertyMapping(java.lang.String sourceBeanName,
java.lang.String targetAccessorName,
Type targetType,
Assignment assignment) |
PropertyMapping(java.lang.String targetAccessorName,
Type targetType,
Assignment propertyAssignment) |
| Modifier and Type | Class and Description |
|---|---|
class |
AdderWrapper
Wraps the assignment in a target setter.
|
class |
AssignmentWrapper
Base class for decorators (wrappers).
|
class |
Direct
Direct Assignment.
|
class |
GetterCollectionOrMapWrapper
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 |
MethodReference
Represents a reference to
MappingMethod. |
class |
NewCollectionOrMapWrapper
Decorates the assignment as a Map or Collection constructor
|
class |
NullCheckWrapper
Wraps the assignment in a null check.
|
class |
SetterCollectionOrMapWrapper
This wrapper handles the situation were an assignment is done via the setter.
|
class |
SetterWrapper
Wraps the assignment in a target setter.
|
class |
TypeConversion
An inline conversion between source and target type of a mapping.
|
| Modifier and Type | Method and Description |
|---|---|
static Assignment |
AssignmentFactory.createMethodReference(BuiltInMethod method,
ConversionContext contextParam) |
static Assignment |
AssignmentFactory.createMethodReference(SourceMethod method,
MapperReference declaringMapper,
Type targetType) |
static Assignment |
AssignmentFactory.createTypeConversion(java.util.Set<Type> importTypes,
java.util.List<Type> exceptionTypes,
java.lang.String expression) |
Assignment |
TypeConversion.getAssignment() |
Assignment |
MethodReference.getAssignment() |
Assignment |
AssignmentWrapper.getAssignment() |
Assignment |
SetterCollectionOrMapWrapper.getNewCollectionOrMapAssignment() |
| Modifier and Type | Method and Description |
|---|---|
void |
TypeConversion.setAssignment(Assignment assignment) |
void |
MethodReference.setAssignment(Assignment assignment) |
void |
AssignmentWrapper.setAssignment(Assignment assignment) |
void |
Direct.setAssignment(Assignment assignment) |
| Constructor and Description |
|---|
AdderWrapper(Assignment decoratedAssignment,
java.util.List<Type> exceptionTypesToExclude,
java.lang.String sourceReference,
Type sourceType) |
AssignmentWrapper(Assignment decoratedAssignment) |
GetterCollectionOrMapWrapper(Assignment decoratedAssignment) |
LocalVarWrapper(Assignment decoratedAssignment,
java.util.List<Type> exceptionTypesToExclude) |
NewCollectionOrMapWrapper(Assignment decoratedAssignment,
java.util.Set<Type> implementationTypes) |
NullCheckWrapper(Assignment decoratedAssignment) |
SetterCollectionOrMapWrapper(Assignment decoratedAssignment,
java.lang.String targetSetterName,
Assignment newCollectionOrMapAssignment) |
SetterWrapper(Assignment decoratedAssignment,
java.util.List<Type> exceptionTypesToExclude) |
| Modifier and Type | Method and Description |
|---|---|
Assignment |
MappingResolver.getTargetAssignment(SourceMethod mappingMethod,
java.lang.String mappedElement,
java.util.List<MapperReference> mapperReferences,
java.util.List<SourceMethod> methods,
Type sourceType,
Type targetType,
java.lang.String targetPropertyName,
java.lang.String dateFormat,
java.lang.String sourceReference)
returns a parameter assignment
|
Copyright © 2012-2014. All Rights Reserved.