callStaticMethodAs
fun <T> Class<*>.callStaticMethodAs(methodName: String, args: Args, argTypes: ArgTypes = argTypes(), returnType: Class<*>? = null): T
静态方法调用。
找不到方法按 callStaticMethod 语义抛 MemberNotFoundException;目标方法返回 null 会抛 NullPointerException。 期望 null 结果请改用 callStaticMethodAsOrNull。
自动匹配参数并调用静态方法。
找不到方法按 callStaticMethod 语义抛 MemberNotFoundException;目标方法返回 null 会抛 NullPointerException。 期望 null 结果请改用 callStaticMethodAsOrNull。