Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: package (class/interface/method) dependency report?

  1. #1
    Junior Member
    Join Date
    Jun 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default package (class/interface/method) dependency report?

    All,

    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


  2. #2
    Forum old-timer
    Join Date
    Nov 2008
    Location
    Faversham, Kent, UK
    Posts
    472
    My Mood
    Mellow
    Thanks
    4
    Thanked 58 Times in 54 Posts

    Default Re: package (class/interface/method) dependency report?

    IntelliJ IDEA has dependency analysis built-in: Forward dependencies, backward dependencies, cyclic dependencies, and module dependencies. The Community Edition is free and open-source.

Similar Threads

  1. interface class ActionListener
    By NightFire91 in forum Java Theory & Questions
    Replies: 2
    Last Post: August 17th, 2010, 10:42 AM
  2. "showMessageDialog" method in swing package
    By Delmi in forum Java Theory & Questions
    Replies: 1
    Last Post: May 13th, 2010, 02:52 PM
  3. Question on dependency execution
    By back2grave in forum Algorithms & Recursion
    Replies: 2
    Last Post: May 2nd, 2010, 12:50 AM
  4. JRC export report class def not found
    By vishalthakur86 in forum Java IDEs
    Replies: 0
    Last Post: November 11th, 2009, 04:19 AM
  5. what is the use of transient class and serializable interface?
    By chinni in forum Object Oriented Programming
    Replies: 3
    Last Post: October 28th, 2009, 05:48 PM

Tags for this Thread