简体   繁体   English

设置javadoc打印在哪里调用方法?

[英]set javadoc to print where a method is called?

Im deconstructing a project. 我正在解构一个项目。 Is there a way to tell javadoc to print a listing of where a method is called? 有没有办法告诉javadoc打印方法调用清单?

Meaning in its description of a method, you have the normal javadoc stuff, but is there a way to tell it to put a line below that which would say "Called By: X, Y, Z"? 在描述方法时,意味着您具有普通的javadoc内容,但是是否有办法告诉它在“ Called By:X,Y,Z”这一行的下方放置一行呢? I seem to remember that in some obscure javadocs in the past, i just don't remember where and how anymore. 我似乎记得过去在一些晦涩的javadocs中,我只是不记得位置和方式了。 I can't find a setting as of yet so if its possible, im assuming it would be a doclet tool of some kind. 我目前尚未找到设置,因此,如果可能的话,我假设它会是某种doclet工具。

This is not possible with javadoc. 对于javadoc,这是不可能的。 http://www.jdocs.com/ shows usage for some public APIs, but this isn't clearly isn't what you're looking for. http://www.jdocs.com/显示了一些公共API的用法,但这显然不是您想要的。 I'd recommend setting up the code as a project in an IDE such as Eclipse or IDEA and find references from there. 我建议将代码设置为诸如Eclipse或IDEA之类的IDE中的项目,并从中找到引用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM