How to Create Flowchart from java source code in Eclipse [closed]

拥有回忆 提交于 2019-11-30 22:28:04

问题


I would like to create the flowchart or sequence diagram from my java source code.
Is there any plug-in which can help me do that?


回答1:


Is this post meant for flow chart? Do You mean Sequence Diagram or Class Diagram eUML is a good tool to create Class Diagram or Sequence Diagram You can find it at http://www.soyatec.com/main.php




回答2:


ObjectAid is a free UML tool which can creates sequence diagrams. Another commercial tool to create sequence diagrams from existing code is Architexa. I use Architexa very often at my daily work.




回答3:


Our tool, Code Rocket for Eclipse can produce both pseudocode and flowcharts from Java (and C/C++ code). The design views can be edited and any changes forward engineered into the code. It is not a free tool, but there is a free 30-day trial. Also it is only for Eclipse 32-bit.




回答4:


I am not sure if there is a plugin for this but there are certainly techniques for doing this. If there is no plugin available, theoretically, one could follow the approach of such techniques to build one. One such technique that comes to mind is contained in the paper Object naming analysis for reverse-engineered sequence diagrams by Atanas Rountev and Beth Harkness Connell.

Here's the abstract:

UML sequence diagrams are commonly used to represent object interactions in software systems. This work considers the problem of extracting UML sequence diagrams from existing code for the purposes of software understanding and testing. A static analysis for such reverse engineering needs to map the interacting objects from the code to sequence diagram objects. We propose an interprocedural dataflow analysis algorithm that determines precisely which objects are the receivers of certain messages, and assigns the appropriate diagram objects to represent them. Our experiments indicate that the majority of message receivers can be determined exactly, resulting in highly-precise object naming for reverse-engineered sequence diagrams.




回答5:


I found this Eclipse plugin Flowchart4j V 2.0.0 et http://www.codeswat.com/ You can use it for flowchart or sequence diagram and export it to MS Visio. It has only one disadvantage. You have to pay for it.



来源:https://stackoverflow.com/questions/4374159/how-to-create-flowchart-from-java-source-code-in-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!