Class QualifierSelector
- java.lang.Object
- 
- org.mapstruct.ap.internal.model.source.selector.QualifierSelector
 
- 
 public class QualifierSelector extends Object 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 SummaryConstructors Constructor Description QualifierSelector(TypeUtils typeUtils, ElementUtils elementUtils)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Method>
 List<SelectedMethod<T>>getMatchingMethods(List<SelectedMethod<T>> methods, SelectionContext context)
 
- 
- 
- 
Constructor Detail- 
QualifierSelectorpublic QualifierSelector(TypeUtils typeUtils, ElementUtils elementUtils) 
 
- 
 - 
Method Detail- 
getMatchingMethodspublic <T extends Method> List<SelectedMethod<T>> getMatchingMethods(List<SelectedMethod<T>> methods, SelectionContext context) 
 
- 
 
-