如何根据字段名获取对应的 getter function
資深大佬 : arnoldFu 1
比如根据”id”获取 Test::getId
主要是想根据字段名获取字段值
目前我知道的方式有
1 、反射 field/getter method
2 、PropertyDescriptor readMethod
3 、reflectASM methodAccess
能不能通过字段名获取 getter function,这样类似调用原始 getter 方法,效率会比较快一点
或者还有没有别的方式来根据字段名获取字段值的?
大佬有話說 (3)