Class MethodSelectors
- java.lang.Object
-
- org.mapstruct.ap.internal.model.source.selector.MethodSelectors
-
public class MethodSelectors extends Object
Applies all knownMethodSelector
s in order.- Author:
- Sjaak Derksen
-
-
Constructor Summary
Constructors Constructor Description MethodSelectors(TypeUtils typeUtils, ElementUtils elementUtils, TypeFactory typeFactory, FormattingMessager messager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Method>
List<SelectedMethod<T>>getMatchingMethods(Method mappingMethod, List<T> methods, List<Type> sourceTypes, Type mappingTargetType, Type returnType, SelectionCriteria criteria)
Selects those methods which match the given types and other criteria
-
-
-
Constructor Detail
-
MethodSelectors
public MethodSelectors(TypeUtils typeUtils, ElementUtils elementUtils, TypeFactory typeFactory, FormattingMessager messager)
-
-
Method Detail
-
getMatchingMethods
public <T extends Method> List<SelectedMethod<T>> getMatchingMethods(Method mappingMethod, List<T> methods, List<Type> sourceTypes, Type mappingTargetType, Type returnType, SelectionCriteria criteria)
Selects those methods which match the given types and other criteria- Type Parameters:
T
- either SourceMethod or BuiltInMethod- Parameters:
mappingMethod
- mapping method, defined in Mapper for which this selection is carried outmethods
- list of available methodssourceTypes
- parameter type(s) that should be matchedmappingTargetType
- the mapping target type that should be matchedreturnType
- return type that should be matchedcriteria
- criteria used in the selection process- Returns:
- list of methods that passes the matching process
-
-