Need a dependency tree for Java source file

I need to extract some specific functions from the big old Java Java base in order to turn it into a separate command line application. This code is not documented at all and is not very modular or even clear. Therefore, it is very difficult for me to figure out what I need to save.

Basically I need a dependency tree listing all the direct or indirect dependencies of this * .java file. (Preferably, I would like this list to be in a format that I can save in a text file, unlike some tree with a graphical user interface with markup that does not copy features, with split-based nodes ...)

I use Eclipse for this detective work. I'm a newbie to Eclipse, but I suppose there might be Eclipse tricks / tools for doing this kind of operations with less effort.

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

+3
source share
3 answers

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

Here is a kind of detailed installation guide for eUML2.

+4
source

I used Finder Finder for this kind of work recently and it works well.

+2

You can use the Java doc generation functionality to be able to generate a java document, which in this case will not contain a lot of information about methods, but will give you an idea of ​​which classes extend classes, interfaces, etc. as a result of which some then the dependency tree.

+1
source

All Articles