|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.generationjava.lang.ClassW
A set of static utilities for use with Classes.
| Constructor Summary | |
ClassW()
|
|
| Method Summary | |
static void |
callMain(Class clss,
String[] args)
|
static void |
callMain(String[] args)
|
static void |
callMain(String classname,
String[] args)
|
static Object |
callStatic(Class clss,
String methodName,
Class[] types,
Object[] args)
|
static Object |
callStatic(String classname,
String methodName,
Class[] types,
Object[] args)
Runs a static method on a class. |
static boolean |
classExists(String classname)
Is this Class in the CLASSPATH |
static Object |
createObject(Class clss)
Create an object from a class. |
static Object |
createObject(String classname)
Create an object from the classname. |
static Class |
getClass(String classname)
Get the Class object for a classname. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ClassW()
| Method Detail |
public static Object createObject(String classname)
classname - String name of the class
public static Object createObject(Class clss)
clss - Class object to instantiate
public static boolean classExists(String classname)
classname - String of the class
public static Class getClass(String classname)
classname - String of the class
public static void callMain(String[] args)
public static void callMain(String classname,
String[] args)
public static void callMain(Class clss,
String[] args)
public static Object callStatic(String classname,
String methodName,
Class[] types,
Object[] args)
classname - String name of class to invoke on.methodName - String name of method to call.args - Object[] arguments to method.
public static Object callStatic(Class clss,
String methodName,
Class[] types,
Object[] args)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||