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,
boolean verboseLogging) |
Modifier and Type | Method and Description |
---|---|
Assignment |
getTargetAssignment(Method mappingMethod,
ForgedMethodHistory description,
Type targetType,
FormattingParameters formattingParameters,
SelectionCriteria criteria,
SourceRHS sourceRHS,
AnnotationMirror positionHint,
Supplier<Assignment> forger)
returns a parameter assignment
|
Set<SupportingMappingMethod> |
getUsedSupportedMappings() |
public MappingResolverImpl(FormattingMessager messager, Elements elementUtils, Types typeUtils, TypeFactory typeFactory, List<Method> sourceModel, List<MapperReference> mapperReferences, boolean verboseLogging)
public Assignment getTargetAssignment(Method mappingMethod, ForgedMethodHistory description, Type targetType, FormattingParameters formattingParameters, SelectionCriteria criteria, SourceRHS sourceRHS, AnnotationMirror positionHint, Supplier<Assignment> forger)
MappingBuilderContext.MappingResolver
getTargetAssignment
in interface MappingBuilderContext.MappingResolver
mappingMethod
- target mapping methodtargetType
- return type to matchformattingParameters
- used for formatting dates and numberscriteria
- parameters criteria in the selection processsourceRHS
- source informationpositionHint
- the mirror for reporting problemspublic Set<SupportingMappingMethod> getUsedSupportedMappings()
getUsedSupportedMappings
in interface MappingBuilderContext.MappingResolver
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.