| org.zkoss.xel.Function
All known Subclasses: org.zkoss.xel.util.MethodFunction,
Function | public interface Function (Code) | | Represents a XEL function.
author: tomyeh since: 3.0.0 |
Method Summary | |
public Class[] | getParameterTypes() Returns an array of Class objects that represent the formal
parameter types, in declaration order, of the method represented
by this Method object. | public Class | getReturnType() Returns a Class object that represents the formal return type
of the method
represented by this Method object. | public Object | invoke(Object obj, Object[] args) Invokes this method with the specified arguments. | public Method | toMethod() Converts this function to a method, or null if unable to convert. |
getParameterTypes | public Class[] getParameterTypes()(Code) | | Returns an array of Class objects that represent the formal
parameter types, in declaration order, of the method represented
by this Method object.
Returns an array of length 0 if the underlying method
takes no parameters.
|
getReturnType | public Class getReturnType()(Code) | | Returns a Class object that represents the formal return type
of the method
represented by this Method object.
|
invoke | public Object invoke(Object obj, Object[] args) throws Exception(Code) | | Invokes this method with the specified arguments.
Parameters: obj - the object the underlying method is invoked from.It is always null if this function is invoked in an XEL expression.It is reserved for more sophisticated expressions, such asZK Spreadsheet's expressions. Parameters: args - the arguments used for the method call.If null, an Object array with zero length is assumed. |
toMethod | public Method toMethod()(Code) | | Converts this function to a method, or null if unable to convert.
|
|
|