org.zkoss.zk.scripting
Interface Method


public interface Method

Represents a method stored in an interpretor.

Author:
tomyeh
See Also:
Interpreter.getMethod(java.lang.String, java.lang.Class[])

Method Summary
 java.lang.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.
 java.lang.Class getReturnType()
          Returns a Class object that represents the formal return type of the method represented by this Method object.
 java.lang.Object invoke(java.lang.Object[] args)
          Invokes this method with the specified arguments.
 

Method Detail

getParameterTypes

java.lang.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. Returns an array of length 0 if the underlying method takes no parameters.


getReturnType

java.lang.Class getReturnType()
Returns a Class object that represents the formal return type of the method represented by this Method object.


invoke

java.lang.Object invoke(java.lang.Object[] args)
                        throws java.lang.Exception
Invokes this method with the specified arguments.

Parameters:
args - the arguments used for the method call. If null, Object[0] is assumed.
Throws:
java.lang.Exception


Copyright © 2005-2007 Potix Corporation. All Rights Reserved.