safeInvoke

open fun <T> safeInvoke(@NotNull method: Method, target: Any, args: Array<Any>): T

safe invoke target object method

Return

result

Parameters

method

method

target

target

args

args

<T>

result type

Throws

InvocationTargetException

IllegalAccessException