为java程序生成一个调用图 - Eclipse [英] Generate a call graph for a java program - Eclipse
问题描述
我想能够确定从给定的类方法可能被调用的所有方法。
我对视觉图表不感兴趣。我正在寻找一个API。它甚至不必是Eclipse。
Eclipse有一个叫 Call Hierarchy
。突出显示您的方法,右键单击并选择
打开呼叫层次结构
。另外在Windows中,您可以使用键盘快捷键 CTRL + ALT + H
。
Is there any sort of support in Eclipse whereby I can programatically generate a static call graph for a single method in a class, at build time?
I would like to be able to determine all of the methods that may be potentially called from a given class method.
I am not interested in a visual graph. I'm looking for an API. It doesn't even have to be Eclipse.
Eclipse has something called a Call Hierarchy
. Highlight your method, right click and select Open Call Hierarchy
. In addition in Windows you can use the keyboard shortcut CTRL+ALT+H
.
这篇关于为java程序生成一个调用图 - Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!