gpt4 book ai didi

java - 如何从 Java 代码生成 UML 图(尤其是序列图)?

转载 作者:bug小助手 更新时间:2023-10-28 01:35:49 24 4
gpt4 key购买 nike

如何从现有 Java 代码生成 UML 图(尤其是序列图)?

最佳答案

ObjectAid UML Explorer

是我用过的。轻松 installed 来自存储库:

Name:     ObjectAid UML Explorer
Location: http://www.objectaid.com/update/current

并生成非常漂亮的 UML 图:

Screenshot

来自网站的描述:

The ObjectAid UML Explorer is different from other UML tools. It uses the UML notation to show a graphical representation of existing code that is as accurate and up-to-date as your text editor, while being very easy to use. Several unique features make this possible:

  • Your source code and libraries are the model that is displayed, they are not reverse engineered into a different format.
  • If you update your code in Eclipse, your diagram is updated as well; there is no need to reverse engineer source code.
  • Refactoring updates your diagram as well as your source code. When you rename a field or move a class, your diagram simply reflects the changes without going out of sync.
  • All diagrams in your Eclipse workspace are updated with refactoring changes as appropriate. If necessary, they are checked out of your version control system.
  • Diagrams are fully integrated into the Eclipse IDE. You can drag Java classes from any other view onto the diagram, and diagram-related information is shown in other views wherever applicable.

关于java - 如何从 Java 代码生成 UML 图(尤其是序列图)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51786/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com