org.apache.commons.jxpath.util
public class MethodLookupUtils extends java.lang.Object
Constructor and Description |
---|
MethodLookupUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.reflect.Constructor |
lookupConstructor(java.lang.Class targetClass,
java.lang.Object[] parameters)
Look up a constructor.
|
static java.lang.reflect.Method |
lookupMethod(java.lang.Class targetClass,
java.lang.String name,
java.lang.Object[] parameters)
Look up a method.
|
static java.lang.reflect.Method |
lookupStaticMethod(java.lang.Class targetClass,
java.lang.String name,
java.lang.Object[] parameters)
Look up a static method.
|
public static java.lang.reflect.Constructor lookupConstructor(java.lang.Class targetClass, java.lang.Object[] parameters)
targetClass
- the class constructedparameters
- argumentspublic static java.lang.reflect.Method lookupStaticMethod(java.lang.Class targetClass, java.lang.String name, java.lang.Object[] parameters)
targetClass
- the owning classname
- method nameparameters
- method parameterspublic static java.lang.reflect.Method lookupMethod(java.lang.Class targetClass, java.lang.String name, java.lang.Object[] parameters)
targetClass
- owning classname
- method nameparameters
- method parameters