Skip to main content

package (class/interface/method) dependency information generator?

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2011-06-13
Points: 0


I have been looking for - unsuccessfully - for a utility or an Eclipse plugin which would perform static analysis of the code and generate information about dependencies on attributes/methods of classes/interfaces of a particular package.

Say, the classes in input package/directory rely on some other package(s) in the classpath:

import packageA.*;

class myClass {
void method1() {
packageA.ifcA i = packageA.classB.attrC;
double d = i.methoD();

the output would be
myClass -> packageA.ifcA.methodD
myClass -> packageA.classB.attrC

Is there such utility you are aware of? Or perhaps you could recommend some utility which would allow creating custom code analysis - so that I could write one with this particular purpose?

Thanks a lot in advance, Bob