|
20080913, rgf | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.bsf.util.MethodUtils
This file is a collection of reflection utilities for dealing with methods and constructors.
Constructor Summary | |
MethodUtils()
|
Method Summary | |
(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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MethodUtils()
Method Detail |
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 method
java.lang.SecurityException
- if security violation
java.lang.NoSuchMethodException
- if no such method
|
20080913, rgf | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |