使用java反射API访问私有对象 [英] Access private object using java reflection api
本文介绍了使用java反射API访问私有对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以使用java反射访问并获取对象的值
Can I access and get the value of object using java reflection
是获取--getLong,getInt的方法,但我找不到getObject()
ther is method to get --getLong,getInt ,but I couldn't find getObject()
推荐答案
您是否正在寻找 Field.get(Object obj)
?
Are you looking for simply Field.get(Object obj)
?
这篇关于使用java反射API访问私有对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文