public class MethodSelectors extends Object implements MethodSelector
MethodSelectors in order.| Constructor and Description |
|---|
MethodSelectors(Types typeUtils,
Elements elementUtils,
TypeFactory typeFactory) |
| 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
|
static List<Type> |
getParameterTypes(TypeFactory typeFactory,
List<Parameter> parameters,
Type sourceType,
Type returnType) |
public MethodSelectors(Types typeUtils, Elements elementUtils, TypeFactory typeFactory)
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 propertypublic static List<Type> getParameterTypes(TypeFactory typeFactory, List<Parameter> parameters, Type sourceType, Type returnType)
typeFactory - the type factory to useparameters - the parameters to map the types forsourceType - the source typereturnType - the return typeCopyright © 2012-2014. All Rights Reserved.