开发者

Generate a call graph for a java program - Eclipse

开发者 https://www.devze.com 2023-03-22 22:16 出处:网络
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?

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 potenti开发者_如何转开发ally 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.


Call heirarchy and call graph are different. Eclipse "Call Heirarchy" will provide backward trace. Where Call graph is forward trace. "Modal goon" plugin provides this feature.

0

精彩评论

暂无评论...
验证码 换一张
取 消