Create call graph for java program - Eclipse

Is there any support in Eclipse with which I can programmatically generate a static call schedule for a single method in a class at build time?

I would like to be able to define all the methods that could potentially be called from a given class method.

I'm not interested in the visual chart. I am looking for an API. It doesn't even have to be Eclipse.

+3
source share
2 answers

Eclipse has something called Call Hierarchy . Highlight your method, right-click and select Open Call Hierarchy . In addition, on Windows you can use the keyboard shortcut CTRL+ALT+H

+4
source

The call hierarchy and call schedule are different. Eclipse "Call Heirarchy" will provide the return track. Where the call graph is a direct trace. The Modal goon plugin provides this feature.

+2
source

Source: https://habr.com/ru/post/1380585/


All Articles