Class MethodLookupUtils

java.lang.Object
org.apache.commons.jxpath.util.MethodLookupUtils

public class MethodLookupUtils extends Object
Method lookup utilities, which find static and non-static methods as well as constructors based on a name and list of parameters.
  • Constructor Details Link icon

    • MethodLookupUtils Link icon

      Deprecated.
      Will be private in the next major version.
      Constructs a new instance.
  • Method Details Link icon

    • lookupConstructor Link icon

      public static Constructor lookupConstructor(Class targetClass, Object[] parameters)
      Look up a constructor.
      Parameters:
      targetClass - the class constructed
      parameters - arguments
      Returns:
      Constructor found if any.
    • lookupMethod Link icon

      public static Method lookupMethod(Class targetClass, String name, Object[] parameters)
      Look up a method.
      Parameters:
      targetClass - owning class
      name - method name
      parameters - method parameters
      Returns:
      Method found if any
    • lookupStaticMethod Link icon

      public static Method lookupStaticMethod(Class targetClass, String name, Object[] parameters)
      Look up a static method.
      Parameters:
      targetClass - the owning class
      name - method name
      parameters - method parameters
      Returns:
      Method found if any