fieldValue

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

读取实例字段值。

Parameters

fieldName

字段名

type

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