public class MappingResolverImpl extends Object implements MappingBuilderContext.MappingResolver
MappingBuilderContext.MappingResolver
. The class has been split into an interface an
implementation for the sake of avoiding package dependencies. Specifically, this implementation refers to classes
which should not be exposed to the model
package.Constructor and Description |
---|
MappingResolverImpl(FormattingMessager messager,
Elements elementUtils,
Types typeUtils,
TypeFactory typeFactory,
List<Method> sourceModel,
List<MapperReference> mapperReferences) |
Modifier and Type | Method and Description |
---|---|
Assignment |
getTargetAssignment(Method mappingMethod,
Type targetType,
String targetPropertyName,
FormattingParameters formattingParameters,
SelectionParameters selectionParameters,
SourceRHS sourceRHS,
boolean preferUpdateMapping,
AnnotationMirror positionHint)
returns a parameter assignment
|
Set<SupportingMappingMethod> |
getUsedSupportedMappings() |
public MappingResolverImpl(FormattingMessager messager, Elements elementUtils, Types typeUtils, TypeFactory typeFactory, List<Method> sourceModel, List<MapperReference> mapperReferences)
public Assignment getTargetAssignment(Method mappingMethod, Type targetType, String targetPropertyName, FormattingParameters formattingParameters, SelectionParameters selectionParameters, SourceRHS sourceRHS, boolean preferUpdateMapping, AnnotationMirror positionHint)
MappingBuilderContext.MappingResolver
getTargetAssignment
in interface MappingBuilderContext.MappingResolver
mappingMethod
- target mapping methodtargetType
- return type to matchtargetPropertyName
- name of the target propertyformattingParameters
- used for formatting dates and numbersselectionParameters
- parameters used in the selection processsourceRHS
- source informationpreferUpdateMapping
- selection should prefer update methods when present.public Set<SupportingMappingMethod> getUsedSupportedMappings()
getUsedSupportedMappings
in interface MappingBuilderContext.MappingResolver
Copyright © 2012-2019 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.