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 |
SimpleConversion.from(ConversionContext conversionContext) |
Assignment |
ConversionProvider.from(ConversionContext conversionContext)
Creates the conversion from target to source of a property mapping.
|
Assignment |
ReverseConversion.from(ConversionContext conversionContext) |
Assignment |
DateToStringConversion.from(ConversionContext conversionContext) |
Assignment |
SimpleConversion.to(ConversionContext conversionContext) |
Assignment |
ConversionProvider.to(ConversionContext conversionContext)
Creates the conversion from source to target of a property mapping.
|
Assignment |
ReverseConversion.to(ConversionContext conversionContext) |
Assignment |
DateToStringConversion.to(ConversionContext conversionContext) |
Modifier and Type | Class and Description |
---|---|
class |
Direct
Direct Assignment.
|
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 |
---|---|
static Assignment |
AssignmentFactory.createMethodReference(BuiltInMethod method,
ConversionContext contextParam) |
static Assignment |
AssignmentFactory.createMethodReference(Method method,
MapperReference declaringMapper,
Type targetType) |
static Assignment |
AssignmentFactory.createTypeConversion(Set<Type> importTypes,
List<Type> exceptionTypes,
String expression) |
Assignment |
TypeConversion.getAssignment() |
Assignment |
PropertyMapping.getAssignment() |
Assignment |
MethodReference.getAssignment() |
Assignment |
PropertyMapping.getDefaultValueAssignment() |
Assignment |
IterableMappingMethod.getElementAssignment() |
Assignment |
MapMappingMethod.getKeyAssignment() |
Assignment |
MappingBuilderContext.MappingResolver.getTargetAssignment(Method mappingMethod,
String mappedElement,
Type sourceType,
Type targetType,
String targetPropertyName,
String dateFormat,
List<TypeMirror> qualifiers,
TypeMirror resultType,
String sourceReference,
boolean preferUpdateMethods)
returns a parameter assignment
|
Assignment |
MapMappingMethod.getValueAssignment() |
Modifier and Type | Method and Description |
---|---|
void |
Direct.setAssignment(Assignment assignment) |
void |
TypeConversion.setAssignment(Assignment assignment) |
void |
MethodReference.setAssignment(Assignment 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 |
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 |
NewCollectionOrMapWrapper
Decorates the assignment as a Map or Collection constructor
|
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.
|
Modifier and Type | Method and Description |
---|---|
Assignment |
AssignmentWrapper.getAssignment() |
Assignment |
UpdateWrapper.getFactoryMethod() |
Assignment |
SetterWrapperForCollectionsAndMaps.getNewCollectionOrMapAssignment() |
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) |
GetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment,
List<Type> thrownTypesToExclude,
Type localVarType,
Collection<String> existingVariableNames) |
LocalVarWrapper(Assignment decoratedAssignment,
List<Type> thrownTypesToExclude) |
NewCollectionOrMapWrapper(Assignment decoratedAssignment,
Set<Type> implementationTypes) |
NullCheckWrapper(Assignment decoratedAssignment) |
SetterWrapper(Assignment decoratedAssignment,
List<Type> thrownTypesToExclude) |
SetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment,
ExecutableElement targetSetter,
Assignment newCollectionOrMapAssignment) |
UpdateNullCheckWrapper(Assignment decoratedAssignment) |
UpdateWrapper(Assignment decoratedAssignment,
List<Type> thrownTypesToExclude,
Assignment factoryMethod,
Type targetImplementationType) |
Modifier and Type | Method and Description |
---|---|
Assignment |
MappingResolverImpl.getTargetAssignment(Method mappingMethod,
String mappedElement,
Type sourceType,
Type targetType,
String targetPropertyName,
String dateFormat,
List<TypeMirror> qualifiers,
TypeMirror resultType,
String sourceReference,
boolean preferUpdateMapping) |
Copyright © 2012-2015 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.