fieldRef

fun Any.fieldRef(fieldName: String, type: Class<*>? = null): Field

获取实例字段引用。

Parameters

fieldName

字段名

type

可选字段类型,用于进一步确认匹配结果