javaLibraryInstanceMethod

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

Create a CheckedMethod for invoking an instance method that cannot have a ReferencedInGeneratedCode annotation, failing if there is a problem.

Return

The CheckedMethod.

Parameters

receiverClass

The type of the receiver of the method.

methodName

The name of the method.

returnClass

The required return type.

argumentTypes

A vararg array of argument types.