EzReflect

object EzReflect

EzHookTool 反射核心初始化入口。

所有反射 API 的 classLoader 参数默认使用 classLoader。 不调用 init 时,默认使用 ClassLoader.getSystemClassLoader

// Xposed 中
EzReflect.init(lpparam.classLoader)

// 纯 JVM 中
EzReflect.init(MyClass::class.java.classLoader!!)

Properties

Link copied to clipboard

是否启用查找结果缓存。默认 true。

Link copied to clipboard

当前全局默认 ClassLoader。

Link copied to clipboard

调试模式。默认 false。

Link copied to clipboard

是否已调用过 init

Link copied to clipboard

日志实现。默认 DefaultLogger(输出到 System.err)。

Link copied to clipboard
Link copied to clipboard

始终可用的 ClassLoader

Functions

Link copied to clipboard

清除查找结果缓存。

Link copied to clipboard
fun init(classLoader: ClassLoader)

初始化默认 ClassLoader。

Link copied to clipboard

重置为 SystemClassLoader,清除初始化状态和缓存。