klyn.reflection.Constructor.invoke
method

    public native invoke(args as Object[]) as Object throws Exception

Description

Invokes the constructor with dynamic arguments packed in an `Object[]`.

Parameters

Parameter | Description
--- | ---
`args` | Constructor arguments as an `Object[]`.

Returns

New instance.

Throws

- Exception if argument binding or constructor execution fails.

Example

    user = User.type.getConstructor()([]) as User