Class QualifierSelector
java.lang.Object
org.mapstruct.ap.internal.model.source.selector.QualifierSelector
This selector selects a best match based on qualifier annotations.
A method is said to be marked with a qualifier annotation if the class in which it resides is annotated with a qualifier annotation or if the method itself is annotated with a qualifier annotation or both.
Rules:
- If no qualifiers are requested in the selection criteria, then only candidate methods without any qualifier annotations remain in the list of potential candidates
- If multiple qualifiers (qualifedBy) are specified, then all of them need to be present at a candidate for it to match.
- If no candidate matches the required qualifiers, then all candidates are returned.
- Author:
- Sjaak Derksen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends Method>
List<SelectedMethod<T>> getMatchingMethods(List<SelectedMethod<T>> methods, SelectionContext context)
-
Constructor Details
-
QualifierSelector
-
-
Method Details
-
getMatchingMethods
public <T extends Method> List<SelectedMethod<T>> getMatchingMethods(List<SelectedMethod<T>> methods, SelectionContext context)
-