|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.common.util.ReflectionUtil
public final class ReflectionUtil
Various utilities for running introspected methods.
for license details.
The copyright to this program is held by it's authors.
Constructor Summary | |
---|---|
private |
ReflectionUtil()
Prevent Instansiation |
Method Summary | |
---|---|
static Object |
invoke(Object base,
String methodName,
Object[] params)
Call a method on a class given a sting |
static Object |
invoke(String call,
Object[] params)
Call a static method on a class given a sting |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
private ReflectionUtil()
Method Detail |
---|
public static Object invoke(Object base, String methodName, Object[] params) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException
base
- The object to invoke a method onmethodName
- The text of the invocation eg "getName"params
- For example new Object[] { ...}
NoSuchMethodException
IllegalAccessException
InvocationTargetException
public static Object invoke(String call, Object[] params) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException
call
- The text of the invocation eg "java.lang.String.getName"params
- For example new Object[] { ...}
ClassNotFoundException
NoSuchMethodException
IllegalAccessException
InvocationTargetException
|
Copyright ยจ 2003-2006 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |