invoke

open operator override fun invoke(proxy: Any, method: Method, args: Array<out Any>?): Any?

Handles method invocation on the proxy instance. For default methods, uses the JDK's default method invocation mechanism. For other methods, delegates to the underlying PrepareKey instance using fast invocation.

Return

the result of the method invocation

Parameters

proxy

the proxy instance

method

the method being invoked

args

the method arguments (null if no arguments)