constructorMethod

fun constructorMethod(receiverClass: Class<*>, vararg argumentTypes: Class<*>): CheckedConstructor

Create a CheckedMethod for invoking a constructor method that has been annotated with ReferencedInGeneratedCode, failing if there is a problem.

Return

The CheckedMethod.

Parameters

receiverClass

The type of the receiver of the method.

argumentTypes

A vararg array of argument types.