|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dbforms.util.ReflectionUtil
public class ReflectionUtil
ReflectionUtil class
| Constructor Summary | |
|---|---|
ReflectionUtil()
|
|
| Method Summary | |
|---|---|
static Object |
invoke(String className,
String methodName,
Class[] argsTypes,
Object[] args)
Invokes the underlying method represented by this Method object, on the specified object with the specified parameters. |
static Object |
newInstance(Class clazz,
Class[] constructorArgsTypes,
Object[] constructorArgs)
Return the object having the input class name, instanced with the constructor having the constructorArgsTypes arguments. |
static Object |
newInstance(String className)
Return the object having the input class name |
static Object |
newInstance(String className,
Class[] constructorArgsTypes,
Object[] constructorArgs)
Return the object having the input class name, instanced with the constructor having the constructorArgsTypes arguments. |
static void |
reflectClass(String name,
OutputStream os)
Reflect the input class state. |
static void |
reflectClass(String name,
Writer w)
Reflect the input class state. |
static void |
reflectObject(Object o,
OutputStream os)
Reflect the input object state. |
static void |
reflectObject(Object o,
Writer w)
Reflect the input object state. |
static String |
toString(Object o)
Get the String representation of the input object |
static String |
toString(String c)
Get the String representation of the class having the input full qualified name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReflectionUtil()
| Method Detail |
|---|
public static Object invoke(String className,
String methodName,
Class[] argsTypes,
Object[] args)
throws Exception
className - the object class namemethodName - the arguments classes for the object methodargsTypes - the arguments values for the object constructorargs - DOCUMENT ME!
Exception - if any error occurs
public static Object newInstance(String className)
throws Exception
className - the object class name
Exception - if any error occurs
public static Object newInstance(String className,
Class[] constructorArgsTypes,
Object[] constructorArgs)
throws Exception
constructorArgsTypes arguments.
className - the object class nameconstructorArgsTypes - the object constructor arguments classesconstructorArgs - the object constructor arguments values
Exception - if any error occurs
public static Object newInstance(Class clazz,
Class[] constructorArgsTypes,
Object[] constructorArgs)
throws Exception
constructorArgsTypes arguments.
clazz - the object class nameconstructorArgsTypes - the object constructor arguments classesconstructorArgs - the object constructor arguments values
Exception - if any error occurs
public static void reflectClass(String name,
OutputStream os)
name - Description of the Parameteros - Description of the Parameter
public static void reflectClass(String name,
Writer w)
name - Description of the Parameterw - Description of the Parameter
public static void reflectObject(Object o,
OutputStream os)
o - Description of the Parameteros - Description of the Parameter
public static void reflectObject(Object o,
Writer w)
o - Description of the Parameterw - Description of the Parameterpublic static String toString(Object o)
o - the object to introspect
public static String toString(String c)
c - the full qualified name of the class to introspect
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||