findMethodOrNull

fun findMethodOrNull(clz: Class<*>, query: MethodQuery.() -> Unit): Method?

按查询条件查找方法,找不到返回 null。


fun findMethodOrNull(className: String, classLoader: ClassLoader = EzReflect.classLoader, query: MethodQuery.() -> Unit): Method?

按类名查找方法,找不到返回 null。


@JvmName(name = "findMethodOrNullFromString")
fun String.findMethodOrNull(classLoader: ClassLoader = EzReflect.classLoader, query: MethodQuery.() -> Unit): Method?

从类名直接查找方法,找不到返回 null。


@JvmName(name = "findMethodOrNullFromClass")
fun Class<*>.findMethodOrNull(query: MethodQuery.() -> Unit): Method?

从 Class 对象查找方法,找不到返回 null。