Class MethodSelectors
java.lang.Object
org.mapstruct.ap.internal.model.source.selector.MethodSelectors
Applies all known
MethodSelectors in order.- Author:
- Sjaak Derksen
-
Constructor Summary
ConstructorsConstructorDescriptionMethodSelectors(TypeUtils typeUtils, ElementUtils elementUtils, FormattingMessager messager, Options options) -
Method Summary
Modifier and TypeMethodDescription<T extends Method>
List<SelectedMethod<T>> getMatchingMethods(List<T> methods, SelectionContext context) Selects those methods which match the given types and other criteria
-
Constructor Details
-
MethodSelectors
public MethodSelectors(TypeUtils typeUtils, ElementUtils elementUtils, FormattingMessager messager, Options options)
-
-
Method Details
-
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
-