public class TargetTypeSelector extends Object
Suppose: Sedan -> Car -> Vehicle, MotorCycle -> Vehicle By means of this selector one can pinpoint the exact desired return type (Sedan, Car, MotorCycle, Vehicle)
| Constructor and Description |
|---|
TargetTypeSelector(Types typeUtils) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Method> |
getMatchingMethods(Method mappingMethod,
List<SelectedMethod<T>> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria)
Selects those methods which match the given types and other criteria
|
public TargetTypeSelector(Types typeUtils)
public <T extends Method> List<SelectedMethod<T>> getMatchingMethods(Method mappingMethod, List<SelectedMethod<T>> methods, List<Type> sourceTypes, Type targetType, SelectionCriteria criteria)
T - either SourceMethod or BuiltInMethodmappingMethod - mapping method, defined in Mapper for which this selection is carried outmethods - list of available methodssourceTypes - parameter type(s) that should be matchedtargetType - result type that should be matchedcriteria - criteria used in the selection processCopyright © 2012–2020. All rights reserved.