invokeStaticMethod

fun invokeStaticMethod(clz: Class<*>, methodName: String, returnType: Class<*>? = null, paramTypes: ParamTypes, params: Params): Any?

Invoke the static method in the class

Return

method result

Parameters

clz

class

methodName

method name

returnType

return type (or null if ignore)

paramTypes

method param types

params

method params

Throws

if the method is not found

if the paramTypes size != params size