|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.pow2.util.ReflectionUtil
Reflection Utility class.
| Constructor Summary | |
ReflectionUtil()
|
|
| Method Summary | |
static Object |
instanceObject(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 instanceObject(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 occurspublic 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
public static void reflectObject(Object o,
OutputStream os)
public static void reflectObject(Object o,
Writer w)
w - Description of the Parameter
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
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||