- java.lang.Object
-
- org.mapstruct.ap.internal.processor.creation.MappingResolverImpl.MethodMethod<T1,T2>
-
- Enclosing class:
- MappingResolverImpl
private static class MappingResolverImpl.MethodMethod<T1 extends Method,T2 extends Method> extends java.lang.ObjectSuppose mapping required from A to C and:- no direct referenced mapping method either built-in or referenced is available from A to C
- no conversion is available
- there is a method from A to B, methodX
- there is a method from B to C, methodY
-
-
Field Summary
Fields Modifier and Type Field Description private MappingResolverImpl.ResolvingAttemptattemptprivate booleanhasResultprivate Assignmentresultprivate java.util.function.Function<SelectedMethod<T1>,Assignment>xCreateprivate java.util.List<T1>xMethodsprivate java.util.function.Function<SelectedMethod<T2>,Assignment>yCreateprivate java.util.List<T2>yMethods
-
Constructor Summary
Constructors Constructor Description MethodMethod(MappingResolverImpl.ResolvingAttempt attempt, java.util.List<T1> xMethods, java.util.List<T2> yMethods, java.util.function.Function<SelectedMethod<T1>,Assignment> xCreate, java.util.function.Function<SelectedMethod<T2>,Assignment> yCreate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private MappingResolverImpl.MethodMethod<T1,T2>getBestMatch(Type sourceType, Type targetType)private MappingResolverImpl.MethodMethod<T1,T2>getBestMatch(Type sourceType, Type targetType, MappingResolverImpl.BestMatchType matchType)(package private) static AssignmentgetBestMatch(MappingResolverImpl.ResolvingAttempt att, Type sourceType, Type targetType)private MappingResolverImpl.MethodMethod<T1,T2>getBestMatchIgnoringQualifiersAfterY(Type sourceType, Type targetType)private MappingResolverImpl.MethodMethod<T1,T2>getBestMatchIgnoringQualifiersBeforeY(Type sourceType, Type targetType)(package private) voidreportAmbiguousError(java.util.Map<SelectedMethod<T1>,java.util.List<SelectedMethod<T2>>> xCandidates, Type target)
-
-
-
Field Detail
-
attempt
private final MappingResolverImpl.ResolvingAttempt attempt
-
xCreate
private final java.util.function.Function<SelectedMethod<T1 extends Method>,Assignment> xCreate
-
yCreate
private final java.util.function.Function<SelectedMethod<T2 extends Method>,Assignment> yCreate
-
hasResult
private boolean hasResult
-
result
private Assignment result
-
-
Constructor Detail
-
MethodMethod
MethodMethod(MappingResolverImpl.ResolvingAttempt attempt, java.util.List<T1> xMethods, java.util.List<T2> yMethods, java.util.function.Function<SelectedMethod<T1>,Assignment> xCreate, java.util.function.Function<SelectedMethod<T2>,Assignment> yCreate)
-
-
Method Detail
-
getBestMatch
static Assignment getBestMatch(MappingResolverImpl.ResolvingAttempt att, Type sourceType, Type targetType)
-
getBestMatch
private MappingResolverImpl.MethodMethod<T1,T2> getBestMatch(Type sourceType, Type targetType)
-
getBestMatchIgnoringQualifiersBeforeY
private MappingResolverImpl.MethodMethod<T1,T2> getBestMatchIgnoringQualifiersBeforeY(Type sourceType, Type targetType)
-
getBestMatchIgnoringQualifiersAfterY
private MappingResolverImpl.MethodMethod<T1,T2> getBestMatchIgnoringQualifiersAfterY(Type sourceType, Type targetType)
-
getBestMatch
private MappingResolverImpl.MethodMethod<T1,T2> getBestMatch(Type sourceType, Type targetType, MappingResolverImpl.BestMatchType matchType)
-
reportAmbiguousError
void reportAmbiguousError(java.util.Map<SelectedMethod<T1>,java.util.List<SelectedMethod<T2>>> xCandidates, Type target)
-
-