Class MethodFinder
java.lang.Object
net.thucydides.model.reflection.MethodFinder
-
Method Summary
Modifier and TypeMethodDescriptiongetMethodNamed(String methodName) getMethodNamed(String methodName, List<Object> arguments) Finds a method by name and arguments, prioritizing methods from more specific (sub)classes.static MethodFinder
-
Method Details
-
inClass
-
getAllMethods
-
getMethodNamed
-
getMethodNamed
Finds a method by name and arguments, prioritizing methods from more specific (sub)classes.- Parameters:
methodName- the name of the method to findarguments- the arguments that will be passed to the method- Returns:
- the most specific matching Method object, or null if no match found
-