invokeMethodBestMatch

fun invokeMethodBestMatch(obj: Any, methodName: String, returnType: Class<*>? = null, vararg params: Any?): Any?

Invoke the object method(best match params)

Return

method result

Parameters

obj

object

methodName

method name

returnType

return type (or null if ignore)

params

method params

Throws

if the method is not found