public native invokeOn(instance as Object, args as Object[]) as Object throws Exception
Invokes the method on an instance.
| Parameter | Description |
|---|---|
instance | Target object. |
args | Arguments as an Object[]. |
Boxed return value, or null for Void methods.
method = type(user).getMethod("rename", true, type(""))
method.invokeOn(user, ["root"] as Object[])