Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 QDOX 2.0 API 中,如何获取在方法中声明/使用的字段(变量)?
com.thoughtworks.qdox.model.JavaMethod 没有像 getFields() 或类似的方法来获取方法下的字段列表。
请指教。
谢谢!
QDox 不提供对方法体内元素的访问,您只能获取完整的代码块。