methodOrNull

fun Class<*>.methodOrNull(name: String, argTypes: ArgTypes = argTypes(), returnType: Class<*>? = null): Method?

按名称获取方法,找不到返回 null。