Method Class
The
Method
class is used to represent a method. The following method is available for a
Method
object:
Name
Syntax
Description
run
Object run(Object... input)
Run the method with the specified input parameters.
The following code exemplifies using a
Method
object:
// Get a Method object representing a Form Method.
Method m = app.form("form1").method("method1");
// The method takes a String parameter and returns a double.
double res = (Double) m.run("input");