Class MethodFinder

java.lang.Object
net.thucydides.model.reflection.MethodFinder

public class MethodFinder extends Object
  • Method Details

    • inClass

      public static MethodFinder inClass(Class targetClass)
    • getAllMethods

      public List<Method> getAllMethods()
    • getMethodNamed

      public Method getMethodNamed(String methodName)
    • getMethodNamed

      public Method getMethodNamed(String methodName, List<Object> arguments)
      Finds a method by name and arguments, prioritizing methods from more specific (sub)classes.
      Parameters:
      methodName - the name of the method to find
      arguments - the arguments that will be passed to the method
      Returns:
      the most specific matching Method object, or null if no match found