klyn.reflection.Constructor.operator call
method
public operator call(args as Object[]) as Object throws Exception:
Description

Direct call operator.

Parameters
ParameterDescription
argsConstructor arguments.
Returns

New instance.

Throws
  • Exception if argument binding fails or the invoked constructor, method, or function throws an exception.
Example
import klyn.reflection

ctor = MyClass.class.getConstructors()[0]
print(ctor([]))