findMethodOrNull
fun findMethodOrNull(clz: Class<*>, findSuper: Boolean? = null, query: MethodQuery.() -> Unit): Method?
按查询条件查找方法,找不到返回 null。
fun findMethodOrNull(className: String, classLoader: ClassLoader = EzReflect.classLoader, findSuper: Boolean? = null, query: MethodQuery.() -> Unit): Method?
按类名查找方法,找不到返回 null。
fun String.findMethodOrNull(classLoader: ClassLoader = EzReflect.classLoader, findSuper: Boolean? = null, query: MethodQuery.() -> Unit): Method?
从类名直接查找方法,找不到返回 null。
从 Class 对象查找方法,找不到返回 null。