需要Java源文件的依赖关系树 [英] Need dependency tree for a Java source file

查看:136
本文介绍了需要Java源文件的依赖关系树的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从大型遗留Java代码库中提取一些特定功能,以便将其转换为独立的命令行应用程序。这个代码根本没有记录,不是很模块化,甚至不清楚。所以我真的很难找出我需要保留的东西。

I need to extract some specific functionality from a large legacy Java codebase, in order to turn it into a standlone command-line application. This code is not documented at all and is not very modular or even clear. So I'm having a really hard time figuring out what I need to keep.

基本上我需要的是一个依赖关系树,列出了所有的直接或间接依赖关系一个* .java文件。 (最好我希望这个列表的格式可以保存到一个文本文件,而不是一些不可复制的whiz-bang GUI树与一个bazillion折叠的节点...)

Basically what I need is a a dependency tree, listing all the direct or indirect dependencies of this one *.java file. (Preferably I would like this listing to be in a format that I can save to a text file, as opposed to some un-copy-able whiz-bang GUI tree with a bazillion collapsed nodes...)

我正在使用Eclipse进行这个侦探工作。我是一个Eclipse初学者,但我认为可能会有一些Eclipse技巧/工具来执行这种操作,而不用努力。

I'm using Eclipse for this detective work. I am an Eclipse beginner, but I figure that there may be Eclipse tricks/tools to perform this kind of operation with a bit less effort.

任何建议(使用Eclipse或

Any suggestions (using Eclipse or otherwise) would be appreciated.

推荐答案

有一个免费版本的eUML2: http://www.soyatec.com/euml2/features/eDepend/ ,其功能之一就是您所需要的。另外另一个,我不知道eUML是否可以导出任何文本文件。

There's a free version of eUML2: http://www.soyatec.com/euml2/features/eDepend/, one of its features is exactly what you need. Also another one, i'm not sure if eUML can export any text files.

这里是一种安装eUML2的详细指南。

Here is a kind of detailed guide installing eUML2.

这篇关于需要Java源文件的依赖关系树的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆