staticMethod

fun staticMethod(    receiverClass: Class<*>,     methodName: String,     returnClass: Class<*>,     vararg argumentTypes: Class<*>): CheckedMethod

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

Return

The CheckedMethod.

Parameters

receiverClass

The Class that defines the method.

methodName

The name of the method.

returnClass

The required return type.

argumentTypes

A vararg array of argument types.