gh-pages / com.nextfaze.devfun.invoke / java.lang.reflect.Method

Extensions for java.lang.reflect.Method

Name Summary
doInvoke fun Method.doInvoke(instanceProvider: InstanceProvider = devFun.instanceProviders, suppliedArgs: FunctionArgs = null): Any?
Invokes a Method using DevFun to source instances.
parameterInstances fun Method.parameterInstances(instanceProvider: InstanceProvider = devFun.instanceProviders, suppliedArgs: FunctionArgs = null): FunctionArgs
Get the parameter instances for this method for invocation.
receiverClass val Method.receiverClass: KClass<*>
Get the receiver class for this method.
receiverClassForInvocation val Method.receiverClassForInvocation: KClass<*>?
Get the receiver class for this function definition if you intend to invoke it. That is, it will return null if the type isn’t needed.
receiverInstance fun Method.receiverInstance(instanceProvider: InstanceProvider = devFun.instanceProviders): Any?
Get the receiver instance for this method to be used for invocation.