通过内省的方法参数值?
我如何/能够使用内省或反射获取调用堆栈中方法 1 级别的参数及其值?
How/am I able, using introspection or reflection get the parameters a method 1 level up in the call stack and it's values ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只能通过调试界面,而不是从Java代码内部。
你为什么要这么做?作为生产代码的一部分,它会违反各种设计原则。
Only through the debugging interface, not from within the Java code.
Why do you want to do that anyway? As part of productive code, it would violate all kinds of design principles.