findStaticField
按名称查找静态字段。
Parameters
name
字段名
type
可选字段类型,用于进一步确认匹配结果
fun String.findStaticField(fieldName: String, classLoader: ClassLoader = HookClassLoader.currentOrDefault(), type: Class<*>? = null): Field
按类名和字段名查找静态字段。
Parameters
fieldName
字段名
classLoader
用于加载目标类的 ClassLoader
type
可选字段类型,用于进一步确认匹配结果