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.beanmapping |
helper classes used in
BeanMappingMethod
|
org.mapstruct.ap.internal.model.source |
Intermediary representation of mapping methods as retrieved from via the annotation processing API.
|
org.mapstruct.ap.internal.model.source.builtin |
Contains "built-in methods" which may be added as private methods to a generated mapper.
|
org.mapstruct.ap.internal.model.source.selector |
Provides strategies for selecting a matching mapping or factory method when mapping from one attribute to another
or instantiating the target type of a mapping method, respectively.
|
org.mapstruct.ap.internal.processor.creation |
Contains all helper classes for the
MapperCreationProcessor
|
Modifier and Type | Class and Description |
---|---|
class |
CreateDecimalFormat
HelperMethod that creates a
DecimalFormat
DecimalFormat df = new DecimalFormat( numberFormat )
with setParseBigDecimal set to true. |
Modifier and Type | Class and Description |
---|---|
class |
ForgedMethod
This method will be generated in absence of a suitable abstract method to implement.
|
class |
HelperMethod
A non mapping method to be generated.
|
Modifier and Type | Method and Description |
---|---|
static List<LifecycleCallbackMethodReference> |
LifecycleMethodResolver.afterMappingMethods(Method method,
SelectionParameters selectionParameters,
MappingBuilderContext ctx,
Set<String> existingVariableNames) |
static List<LifecycleCallbackMethodReference> |
LifecycleMethodResolver.afterMappingMethods(Method method,
Type alternativeTarget,
SelectionParameters selectionParameters,
MappingBuilderContext ctx,
Set<String> existingVariableNames) |
static List<LifecycleCallbackMethodReference> |
LifecycleMethodResolver.beforeMappingMethods(Method method,
SelectionParameters selectionParameters,
MappingBuilderContext ctx,
Set<String> existingVariableNames) |
static List<LifecycleCallbackMethodReference> |
LifecycleMethodResolver.beforeMappingMethods(Method method,
Type alternativeTarget,
SelectionParameters selectionParameters,
MappingBuilderContext ctx,
Set<String> existingVariableNames) |
static ForgedMethod |
ForgedMethod.forElementMapping(String name,
Type sourceType,
Type returnType,
Method basedOn,
ForgedMethodHistory history,
boolean forgedNameBased)
Creates a new forged method for mapping a collection element, map key/value or stream element
|
static MethodReference |
MethodReference.forForgedMethod(Method method,
List<ParameterBinding> parameterBindings) |
static MethodReference |
MethodReference.forMapperReference(Method method,
MapperReference declaringMapper,
List<ParameterBinding> parameterBindings) |
static LifecycleCallbackMethodReference |
LifecycleCallbackMethodReference.forMethodReference(SelectedMethod<SourceMethod> lifecycleMethod,
MapperReference mapperReference,
Method containingMethod,
Set<String> existingVariableNames) |
static ForgedMethod |
ForgedMethod.forParameterMapping(String name,
Type sourceType,
Type returnType,
Method basedOn)
Creates a new forged method with the given name for mapping a method parameter to a property.
|
static MethodReference |
MethodReference.forParameterProvidedMethod(Method method,
Parameter providingParameter,
List<ParameterBinding> parameterBindings) |
static LifecycleCallbackMethodReference |
LifecycleCallbackMethodReference.forParameterProvidedMethod(SelectedMethod<SourceMethod> lifecycleMethod,
Parameter providingParameter,
Method containingMethod,
Set<String> existingVariableNames) |
static ForgedMethod |
ForgedMethod.forPropertyMapping(String name,
Type sourceType,
Type returnType,
List<Parameter> parameters,
Method basedOn,
ForgedMethodHistory history,
MappingReferences mappingReferences,
boolean forgedNameBased)
Creates a new forged method for mapping a bean property to a property
|
static MethodReference |
ObjectFactoryMethodResolver.getBuilderFactoryMethod(Method method,
BuilderType builder) |
static MethodReference |
BuilderFinisherMethodResolver.getBuilderFinisherMethod(Method method,
BuilderType builderType,
MappingBuilderContext ctx) |
static MethodReference |
ObjectFactoryMethodResolver.getFactoryMethod(Method method,
SelectionParameters selectionParameters,
MappingBuilderContext ctx)
returns a no arg factory method
|
static MethodReference |
ObjectFactoryMethodResolver.getFactoryMethod(Method method,
Type alternativeTarget,
SelectionParameters selectionParameters,
MappingBuilderContext ctx)
returns a no arg factory method
|
static MethodReference |
ObjectFactoryMethodResolver.getFactoryMethodReference(Method method,
SelectedMethod<SourceMethod> matchingFactoryMethod,
MappingBuilderContext ctx) |
static List<SelectedMethod<SourceMethod>> |
ObjectFactoryMethodResolver.getMatchingFactoryMethods(Method method,
Type alternativeTarget,
SelectionParameters selectionParameters,
MappingBuilderContext ctx) |
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
|
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) |
CollectionAssignmentBuilder |
CollectionAssignmentBuilder.method(Method method) |
NestedTargetPropertyMappingHolder.Builder |
NestedTargetPropertyMappingHolder.Builder.method(Method method) |
ValueMappingMethod.Builder |
ValueMappingMethod.Builder.method(Method sourceMethod) |
Constructor and Description |
---|
DelegatingMethod(Method method) |
MappingMethod(Method method) |
MappingMethod(Method method,
Collection<String> existingVariableNames,
List<LifecycleCallbackMethodReference> beforeMappingReferences,
List<LifecycleCallbackMethodReference> afterMappingReferences)
constructor to be overloaded when local variable names are required prior to calling this constructor.
|
MappingMethod(Method method,
List<LifecycleCallbackMethodReference> beforeMappingReferences,
List<LifecycleCallbackMethodReference> afterMappingReferences) |
MappingMethod(Method method,
List<Parameter> parameters) |
MappingMethod(Method method,
List<Parameter> parameters,
Collection<String> existingVariableNames,
List<LifecycleCallbackMethodReference> beforeMappingReferences,
List<LifecycleCallbackMethodReference> afterMappingReferences) |
MethodReference(Method method,
MapperReference declaringMapper,
Parameter providingParameter,
List<ParameterBinding> parameterBindings)
Creates a new reference to the given method.
|
Modifier and Type | Method and Description |
---|---|
TargetReference.Builder |
TargetReference.Builder.method(Method method) |
SourceReference.BuilderFromMapping |
SourceReference.BuilderFromMapping.method(Method method) |
List<SourceReference> |
SourceReference.push(TypeFactory typeFactory,
FormattingMessager messager,
Method method) |
Modifier and Type | Class and Description |
---|---|
class |
SourceMethod
Represents a mapping method with source and target type and the mappings between the properties of source and target
type.
|
Modifier and Type | Method and Description |
---|---|
Method |
MappingOptions.InheritContext.getTemplateMethod() |
Modifier and Type | Method and Description |
---|---|
Parameter |
ParameterProvidedMethods.getParameterForProvidedMethod(Method method) |
static boolean |
MappingMethodUtils.isEnumMapping(Method method)
Checks if the provided
method is for enum mapping. |
Constructor and Description |
---|
InheritContext(boolean isReversed,
boolean isForwarded,
Method templateMethod) |
Modifier and Type | Class and Description |
---|---|
class |
SelectedMethod<T extends Method>
A selected method with additional metadata that might be required for further usage of the selected method.
|
Modifier and Type | Method and Description |
---|---|
<T extends Method> |
TypeSelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
TargetTypeSelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
FactoryParameterSelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
XmlElementDeclSelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
QualifierSelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
MethodFamilySelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
CreateOrUpdateSelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
InheritanceSelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
MethodSelectors.getMatchingMethods(Method mappingMethod,
List<T> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria)
Selects those methods which match the given types and other criteria
|
Modifier and Type | Method and Description |
---|---|
<T extends Method> |
TypeSelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
TargetTypeSelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
FactoryParameterSelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
XmlElementDeclSelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
QualifierSelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
MethodFamilySelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
CreateOrUpdateSelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
InheritanceSelector.getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria) |
<T extends Method> |
MethodSelectors.getMatchingMethods(Method mappingMethod,
List<T> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria)
Selects those methods which match the given types and other criteria
|
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) |
Constructor and Description |
---|
MappingResolverImpl(FormattingMessager messager,
Elements elementUtils,
Types typeUtils,
TypeFactory typeFactory,
List<Method> sourceModel,
List<MapperReference> mapperReferences,
boolean verboseLogging) |
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.