Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 11 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
我写了 Class Visualizer ,它就做到了。
它是免费工具,具有所有提到的功能 - 我个人将它用于相同的目的,如本文所述。
对于每个浏览的类,它显示 2 个立即生成的类图:类关系和类 UML 视图。
类关系图允许遍历整个结构。
它完全支持注释和泛型以及对 JPA 实体的特殊支持。
非常适合大型项目(数千个类)。
I wrote Class Visualizer, which does it.
It's free tool which has all the mentioned functionality - I personally use it for the same purposes, as described in this post.
For each browsed class it shows 2 instantly generated class diagrams: class relations and class UML view.
Class relations diagram allows to traverse through the whole structure.
It has full support for annotations and generics plus special support for JPA entities.
Works very well with big projects (thousands of classes).
我在 Eclipse 下使用 Soyatec 的 eUML2 插件,它可以很好地工作生成 UML 并给出源代码。该工具在 Eclipse 4.4.x 之前有效
I use eUML2 plugin from Soyatec, under Eclipse and it works fine for the generation of UML giving the source code. This tool is useful up to Eclipse 4.4.x
Eclipse 的 Omondo 插件怎么样。我已经使用过它并且我发现它非常有用。不过,如果您要为大型源生成图表,则可能需要使用更多内存来启动 Eclipse。
How about the Omondo Plugin for Eclipse. I have used it and I find it to be quite useful. Although if you are generating diagrams for large sources, you might have to start Eclipse with more memory.
我想说 MoDisco 是迄今为止最强大的一个(尽管可能不是最容易使用的) )。
MoDisco 是一个通用的逆向工程框架(这样您就可以自定义您的逆向工程项目,使用 MoDisco 您甚至可以对 java 方法的行为进行逆向工程,不仅是结构和签名),而且还包括一些预定义的功能,例如类的生成从您需要的 Java 代码中绘制图表。
I´d say MoDisco is by far the most powerful one (though probably not the easiest one to work with).
MoDisco is a generic reverse engineering framework (so that you can customize your reverse engineering project, with MoDisco you can even reverse engineer the behaviour of the java methods, not only the structure and signatures) but also includes some predefined features like the generation of class diagrams out of Java code that you need.