kotlinFunction

Returns a KFunction instance corresponding to the given Java Method instance, or null if this method cannot be represented by a Kotlin function.

Since Kotlin

1.0

Returns a KFunction instance corresponding to the given Java Constructor instance, or null if this constructor cannot be represented by a Kotlin function (for example, if it is a synthetic constructor).

Since Kotlin

1.0