klyn.reflection.Constructor.invoke
method
public native invoke(args as Object[]) as Object throws Exception
Description

Invokes the constructor with dynamic arguments.

Parameters
ParameterDescription
argsConstructor arguments as an Object[].
Returns

New instance.

Throws
  • Exception if argument binding or constructor execution fails.
Example
user = User.type.getConstructor()([]) as User