public class ClassReflect extends Object implements org.zkoss.zel.impl.util.ClassReflect
| Constructor and Description |
|---|
ClassReflect() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
ClassLoader |
getContextClassLoader(Class<?> reference)
Returns the context ClassLoader for the reference class.
|
Object |
newInstance(Class<?> cls,
Object[] args)
Instantiates a new instance of the specified class with the
specified argument.
|
public Method getCloseMethod(Class<?> cls, String name, Class<?>[] argTypes) throws NoSuchMethodException
getCloseMethod in interface org.zkoss.zel.impl.util.ClassReflectNoSuchMethodExceptionpublic Object newInstance(Class<?> cls, Object[] args) throws NoSuchMethodException, InstantiationException, InvocationTargetException, IllegalAccessException
newInstance in interface org.zkoss.zel.impl.util.ClassReflectNoSuchMethodExceptionInstantiationExceptionInvocationTargetExceptionIllegalAccessExceptionpublic ClassLoader getContextClassLoader(Class<?> reference)
getContextClassLoader in interface org.zkoss.zel.impl.util.ClassReflectreference - the reference class where it is invoked from.Copyright © 2018. All rights reserved.