|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlapisx.util.Reflect
Handy reflection routines.
| Constructor Summary | |
Reflect()
|
|
| Method Summary | |
static Object |
callMethod(Object obj,
String methodName,
Class[] signature,
Object[] args)
Call a method of an object. |
static Object |
callStaticMethod(String className,
String methodName,
Class[] signature,
Object[] args)
Call a static method of a class. |
static Object |
getStaticField(String className,
String fieldName)
Fetch a static field from a class. |
static Object |
newInstance(String className,
Class[] signature,
Object[] args)
Create a new instance of a class by calling a constructor with arguments. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Reflect()
| Method Detail |
public static Object newInstance(String className,
Class[] signature,
Object[] args)
throws Exception
Exception
public static Object callMethod(Object obj,
String methodName,
Class[] signature,
Object[] args)
throws Exception
Exception
public static Object callStaticMethod(String className,
String methodName,
Class[] signature,
Object[] args)
throws Exception
Exception
public static Object getStaticField(String className,
String fieldName)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||