Class MappingResolverImpl.MethodConversion<T extends Method>
- java.lang.Object
-
- org.mapstruct.ap.internal.processor.creation.MappingResolverImpl.MethodConversion<T>
-
- Enclosing class:
- MappingResolverImpl
private static class MappingResolverImpl.MethodConversion<T extends Method> extends java.lang.ObjectSuppose mapping required from A to C and:- there is a method from A to B, methodX
- there is a conversion from B to C, conversionY
-
-
Field Summary
Fields Modifier and Type Field Description private MappingResolverImpl.ResolvingAttemptattemptprivate java.util.function.Function<SelectedMethod<T>,Assignment>createprivate booleanhasResultprivate java.util.List<T>methodsprivate Assignmentresult
-
Constructor Summary
Constructors Constructor Description MethodConversion(MappingResolverImpl.ResolvingAttempt attempt, java.util.List<T> methods, java.util.function.Function<SelectedMethod<T>,Assignment> create)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private MappingResolverImpl.MethodConversion<T>getBestMatch(Type sourceType, Type targetType)(package private) static AssignmentgetBestMatch(MappingResolverImpl.ResolvingAttempt att, Type sourceType, Type targetType)(package private) voidreportAmbiguousError(java.util.Map<MappingResolverImpl.ConversionAssignment,java.util.List<SelectedMethod<T>>> yRefCandidates, Type target)
-
-
-
Field Detail
-
attempt
private final MappingResolverImpl.ResolvingAttempt attempt
-
create
private final java.util.function.Function<SelectedMethod<T extends Method>,Assignment> create
-
hasResult
private boolean hasResult
-
result
private Assignment result
-
-
Constructor Detail
-
MethodConversion
MethodConversion(MappingResolverImpl.ResolvingAttempt attempt, java.util.List<T> methods, java.util.function.Function<SelectedMethod<T>,Assignment> create)
-
-
Method Detail
-
getBestMatch
static Assignment getBestMatch(MappingResolverImpl.ResolvingAttempt att, Type sourceType, Type targetType)
-
getBestMatch
private MappingResolverImpl.MethodConversion<T> getBestMatch(Type sourceType, Type targetType)
-
reportAmbiguousError
void reportAmbiguousError(java.util.Map<MappingResolverImpl.ConversionAssignment,java.util.List<SelectedMethod<T>>> yRefCandidates, Type target)
-
-