public class MethodSelectors extends Object
MethodSelector
s in order.Constructor and Description |
---|
MethodSelectors(Types typeUtils,
Elements elementUtils,
TypeFactory typeFactory,
FormattingMessager messager) |
Modifier and Type | Method and Description |
---|---|
<T extends Method> |
getMatchingMethods(Method mappingMethod,
List<T> methods,
List<Type> sourceTypes,
Type targetType,
SelectionCriteria criteria)
Selects those methods which match the given types and other criteria
|
public MethodSelectors(Types typeUtils, Elements elementUtils, TypeFactory typeFactory, FormattingMessager messager)
public <T extends Method> List<SelectedMethod<T>> getMatchingMethods(Method mappingMethod, List<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
- return type that should be matchedcriteria
- criteria used in the selection processCopyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.