org.zkoss.xel.zel
Class ClassReflect
java.lang.Object
org.zkoss.xel.zel.ClassReflect
- All Implemented Interfaces:
- org.zkoss.zel.impl.util.ClassReflect
public class ClassReflect
- extends Object
- implements org.zkoss.zel.impl.util.ClassReflect
The implementation for using ZEL.
Notice that it is instantiated in zel.jar.
- Author:
- tomyeh
|
Method Summary |
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. |
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 |
ClassReflect
public ClassReflect()
getCloseMethod
public Method getCloseMethod(Class<?> cls,
String name,
Class<?>[] argTypes)
throws NoSuchMethodException
- Gets one of the close methods -- a close method is a method
with the same name and the compatible argument type.
- Specified by:
getCloseMethod in interface org.zkoss.zel.impl.util.ClassReflect
- Throws:
NoSuchMethodException
newInstance
public Object newInstance(Class<?> cls,
Object[] args)
throws NoSuchMethodException,
InstantiationException,
InvocationTargetException,
IllegalAccessException
- Instantiates a new instance of the specified class with the
specified argument.
- Specified by:
newInstance in interface org.zkoss.zel.impl.util.ClassReflect
- Throws:
NoSuchMethodException
InstantiationException
InvocationTargetException
IllegalAccessException
Copyright © 2013. All rights reserved.