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, FormattingMessager messager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Method>
List<SelectedMethod<T>>getMatchingMethods(List<T> methods, SelectionContext context)
Selects those methods which match the given types and other criteria
-
-
-
Constructor Detail
-
MethodSelectors
public MethodSelectors(TypeUtils typeUtils, ElementUtils elementUtils, FormattingMessager messager)
-
-
Method Detail
-
getMatchingMethods
public <T extends Method> List<SelectedMethod<T>> getMatchingMethods(List<T> methods, SelectionContext context)
Selects those methods which match the given types and other criteria- Type Parameters:
T
- either SourceMethod or BuiltInMethod- Parameters:
methods
- list of available methodscontext
- the selection context that should be used in the matching process- Returns:
- list of methods that passes the matching process
-
-