resolveMethod

public Method resolveMethod(Class<? extends Object> theClass, String methodName, double similarity, List<ParameterMatcher> parameters, boolean allowSuperClass)(source)

Resolves the method with the tolerances, more formally the method is searched first using its name. If multiple overloads are found then the method with the most matching parameters according to countMatchingParameters is chosen.

Return

the resolved method

Parameters

theClass

the class to search

methodName

the expected method name

similarity

the minimum required similarity

parameters

the expected parameters

allowSuperClass

the indicator whether to search in super classes as well

See also


public Method resolveMethod(Class<? extends Object> theClass, String methodName, double similarity, List<ParameterMatcher> parameters)(source)

Resolves the method with the tolerances, more formally the method is searched first using its name. If multiple overloads are found then the method with the most matching parameters according to countMatchingParameters is chosen.

Return

the resolved method

Parameters

theClass

the class to search

methodName

the expected method name

similarity

the minimum required similarity

parameters

the expected parameters

See also


public Method resolveMethod(double similarity)(source)

Resolves the method with the tolerances, more formally the method is searched first using its name. If multiple overloads are found then the method with the most matching parameters according to countMatchingParameters is chosen.

Return

the resolved method

Parameters

similarity

the minimum required similarity

See also


Resolves the method with the tolerances, more formally the method is searched first using its name. If multiple overloads are found then the method with the most matching parameters according to countMatchingParameters is chosen.

Return

the resolved method

See also