为java程序生成一个调用图 - Eclipse [英] Generate a call graph for a java program - Eclipse

查看:522
本文介绍了为java程序生成一个调用图 - Eclipse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆