setStaticField

fun setStaticField(clazz: Class<*>, key: String, value: Any?): Any?

为类写入附加静态字段。

Parameters

clazz

目标类

key

附加字段名

value

新值