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

doInvoke

fun Method.doInvoke(instanceProvider: InstanceProvider = devFun.instanceProviders, suppliedArgs: FunctionArgs = null): Any? (source)

Invokes a Method using DevFun to source instances.

Automatically handles static and args etc.

Parameters

instanceProvider - The instance provider to use for parameters instances. (default=devFun.instanceProviders)

suppliedArgs - User-provided arguments (source-defined order). Elements that are null or out of bounds will fallback to instanceProvider.

See Also

Method.receiverInstance

Method.parameterInstances