Class MappingResolverImpl.ConversionMethod<T extends Method>
- java.lang.Object
-
- org.mapstruct.ap.internal.processor.creation.MappingResolverImpl.ConversionMethod<T>
-
- Enclosing class:
- MappingResolverImpl
private static class MappingResolverImpl.ConversionMethod<T extends Method> extends java.lang.ObjectSuppose mapping required from A to C and:- there is a conversion from A to B, conversionX
- there is a method from B to C, methodY
-
-
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 ConversionMethod(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.ConversionMethod<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>>> xRefCandidates, 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
-
ConversionMethod
ConversionMethod(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.ConversionMethod<T> getBestMatch(Type sourceType, Type targetType)
-
reportAmbiguousError
void reportAmbiguousError(java.util.Map<MappingResolverImpl.ConversionAssignment,java.util.List<SelectedMethod<T>>> xRefCandidates, Type target)
-
-