public class MethodUtils
extends java.lang.Object
Constructor and Description |
---|
MethodUtils() |
Modifier and Type | Method and Description |
---|---|
(package private) static int |
entryGetModifiers(java.lang.Object entry)
Utility function: obtain common data from either Method or
Constructor.
|
(package private) static java.lang.String |
entryGetName(java.lang.Object entry)
Utility function: obtain common data from either Method or
Constructor.
|
(package private) static java.lang.Class[] |
entryGetParameterTypes(java.lang.Object entry)
Utility function: obtain common data from either Method or
Constructor.
|
(package private) static java.lang.String |
entryToString(java.lang.Object entry)
Utility function: obtain common data from either Method or
Constructor.
|
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.
|
static int entryGetModifiers(java.lang.Object entry)
static java.lang.String entryGetName(java.lang.Object entry)
static java.lang.Class[] entryGetParameterTypes(java.lang.Object entry)
static java.lang.String entryToString(java.lang.Object entry)
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.SecurityException
public 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.SecurityException
java.lang.NoSuchMethodException
public 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