public native invoke(args as Object[]) as Object throws Exception
Invokes a static method with dynamic arguments.
Instance methods must be invoked with invokeOn(instance, args) so the runtime has an explicit receiver.
| Parameter | Description |
|---|---|
args | Arguments as an Object[]. |
Boxed return value, or null for Void methods.
method = type(Application).getMethod("time")
now = method.invoke([] as Object[]) as Double