I need a tool to generate a control flow graph from java source code. Are there such tools available? Is there a possibility to also generate source code if I have a control flow graph?
A:
Sparx Systems' EA has a tool which hooks into a debugger and generates UML sequence diagrams:
From the Sparx marketing spiel:
The debuggers built into Enterprise Architect are specifically designed to enable a developer or tester to capture stack trace information as they ‘walk through’ the executing code, performing runtime inspection of suspended threads. They can then use the final stack trace history to generate Sequence diagrams within Enterprise Architect, converting the actual code execution and calls into visual diagrams.
I'm pretty sure that this is a one way transformation only - no round tripping.
Ash Kim
2009-10-09 06:23:30