|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zel.impl.util.ClassUtil
public class ClassUtil
Class related utilities.
| Constructor Summary | |
|---|---|
ClassUtil()
|
|
| Method Summary | |
|---|---|
static Class<?> |
forNameByThread(String clsName)
Returns the Class object of the specified class name, using the current thread's context class loader. |
static Method |
getCloseMethod(Class<?> cls,
String name,
Class<?>[] argTypes)
Gets one of the close methods -- a close method is a method with the same name and the compatible argument type. |
static Object |
newInstance(Class<?> cls,
Object[] args)
Instantiates a new instance of the specified class with the specified argument. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassUtil()
| Method Detail |
|---|
public static final Method getCloseMethod(Class<?> cls,
String name,
Class<?>[] argTypes)
throws NoSuchMethodException
NoSuchMethodException
public static final Object newInstance(Class<?> cls,
Object[] args)
throws NoSuchMethodException,
InstantiationException,
InvocationTargetException,
IllegalAccessException
NoSuchMethodException
InstantiationException
InvocationTargetException
IllegalAccessException
public static final Class<?> forNameByThread(String clsName)
throws ClassNotFoundException
ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||