klyn.reflection.Method.invokeOn
method

    public invokeOn(instance as Object, args as Object[]) as Object throws Exception:

Description

Invokes the method on an instance.

Parameters

- instance Target object (null for static methods).
- args Arguments as Object array.

Returns

Result as Object.

Throws

- Exception if argument binding fails or the invoked constructor, method, or function throws an exception.