public class QualifierSelector extends Object implements MethodSelector
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:
| Constructor and Description |
|---|
QualifierSelector(Types typeUtils,
Elements elementUtils) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Method> |
getMatchingMethods(Method mappingMethod,
List<T> methods,
Type parameterType,
Type returnType,
List<TypeMirror> qualifiers,
String targetPropertyName)
Selects those methods which match the given types and other criteria
|
public <T extends Method> List<T> getMatchingMethods(Method mappingMethod, List<T> methods, Type parameterType, Type returnType, List<TypeMirror> qualifiers, String targetPropertyName)
MethodSelectorgetMatchingMethods in interface MethodSelectorT - either SourceMethod or BuiltInMethodmappingMethod - mapping method, defined in Mapper for which this selection is carried outmethods - list of available methodsparameterType - parameter type that should be matchedreturnType - return type that should be matchedqualifiers - list of custom annotations, used in the qualifying processtargetPropertyName - some information can be derived from the target propertyCopyright © 2012-2014. All Rights Reserved.