What tools are available to visualize which methods call other methods for Java code?

What tools are available to visualize which methods call other methods for Java code? For example, is there something like CodeDrawer that works with Java? In particular, I'm looking for something to draw arrows between Obj.methodA () and Obj.methodB () if Method A calls Method B, and possibly organizes a beautiful star of arrows pointing to Method B from methods that he's called.

+7
source share
3 answers

Structure101 , point it to your bytecode, select the structure tab, the perspective of the call schedule. You can set the depth of calls (both callers and called subscribers), and double-clicking on the method will centralize it on the oriented graph so that the displayed depth of the displayed calls becomes relative to it. A directed graph is displayed, not a simple tree, so you can find several routes between methods, for example, between createDetectors and getShortName in the following (call depth is set to 2):

enter image description here

+4
source

I believe that you can generate call schedules using doxygen.

+1
source

If you're fine to use the IDE, try IntelliJ IDEA . He can provide caller schedule information in a very clean way.

(Netbeans and eclispse will have a similar function)

0
source

All Articles