public class MethodUtils
extends java.lang.Object
| Constructor and Description |
|---|
MethodUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.reflect.Constructor |
getConstructor(java.lang.Class targetClass,
java.lang.Class[] argTypes)
Class.getConstructor() finds only the entry point (if any)
_exactly_ matching the specified argument types.
|
static java.lang.reflect.Method |
getMethod(java.lang.Class target,
java.lang.String methodName,
java.lang.Class[] argTypes,
boolean isStaticReference) |
static java.lang.reflect.Method |
getMethod(java.lang.Object target,
java.lang.String methodName,
java.lang.Class[] argTypes)
Class.getMethod() finds only the entry point (if any) _exactly_
matching the specified argument types.
|
public static java.lang.reflect.Constructor getConstructor(java.lang.Class targetClass,
java.lang.Class[] argTypes)
throws java.lang.SecurityException,
java.lang.NoSuchMethodException
java.lang.NoSuchMethodException - if constructor not found.java.lang.SecurityExceptionpublic static java.lang.reflect.Method getMethod(java.lang.Class target,
java.lang.String methodName,
java.lang.Class[] argTypes,
boolean isStaticReference)
throws java.lang.SecurityException,
java.lang.NoSuchMethodException
java.lang.SecurityExceptionjava.lang.NoSuchMethodExceptionpublic static java.lang.reflect.Method getMethod(java.lang.Object target,
java.lang.String methodName,
java.lang.Class[] argTypes)
throws java.lang.SecurityException,
java.lang.NoSuchMethodException
target - object on which call is to be mademethodName - name of method I'm lookin' forargTypes - array of argument types of methodjava.lang.SecurityException - if security violationjava.lang.NoSuchMethodException - if no such method