通过内省的方法参数值?

发布于 2024-08-30 01:29:15 字数 41 浏览 1 评论 0原文

我如何/能够使用内省或反射获取调用堆栈中方法 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

掀纱窥君容 2024-09-06 01:29:15

只能通过调试界面,而不是从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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文