Package org.apache.commons.jxpath.util
Class MethodLookupUtils
java.lang.Object
org.apache.commons.jxpath.util.MethodLookupUtils
Method lookup utilities, which find static and non-static methods as well as constructors based on a name and list of parameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Constructor
lookupConstructor
(Class targetClass, Object[] parameters) Look up a constructor.static Method
lookupMethod
(Class targetClass, String name, Object[] parameters) Look up a method.static Method
lookupStaticMethod
(Class targetClass, String name, Object[] parameters) Look up a static method.
-
Constructor Details
-
Method Details
-
lookupConstructor
Look up a constructor.- Parameters:
targetClass
- the class constructedparameters
- arguments- Returns:
- Constructor found if any.
-
lookupMethod
Look up a method.- Parameters:
targetClass
- owning classname
- method nameparameters
- method parameters- Returns:
- Method found if any
-
lookupStaticMethod
Look up a static method.- Parameters:
targetClass
- the owning classname
- method nameparameters
- method parameters- Returns:
- Method found if any
-