8 Replies - 5295 Views - Last Post: 08 December 2009 - 05:39 AM Rate Topic: -----

#1 anirelles  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 84
  • Joined: 01-January 09

Class hierarchy generator

Posted 06 December 2009 - 11:51 AM

do you know a class hierarchy generator for analyzing java source code? I'm looking for trying one
Is This A Good Question/Topic? 0
  • +

Replies To: Class hierarchy generator

#2 KYA  Icon User is offline

  • g++ jameson.cpp -o beverage
  • member icon

Reputation: 3101
  • View blog
  • Posts: 19,141
  • Joined: 14-September 07

Re: Class hierarchy generator

Posted 06 December 2009 - 01:14 PM

I didn't find anything use after some searching. I think I might write a rudimentary one. Basically all we need to do is treat the .java file as a text file, parse for public class, extends and implements and draw a diagram.
Was This Post Helpful? 0
  • +
  • -

#3 g00se  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 2720
  • View blog
  • Posts: 11,449
  • Joined: 20-September 08

Re: Class hierarchy generator

Posted 06 December 2009 - 01:17 PM

Have a look at http://argouml.tigris.org/
Was This Post Helpful? 0
  • +
  • -

#4 anirelles  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 84
  • Joined: 01-January 09

Re: Class hierarchy generator

Posted 07 December 2009 - 07:26 AM

View PostKYA, on 6 Dec, 2009 - 12:14 PM, said:

I didn't find anything use after some searching. I think I might write a rudimentary one. Basically all we need to do is treat the .java file as a text file, parse for public class, extends and implements and draw a diagram.



I think it's a bit more complex than that, composition are part of class diagram.

And for example if class A use class B, even if they are no attribute of class B in class A, should that be included in the class diagram? I don't remember well, i need to refresh my memory and look at my notebook lol

This post has been edited by anirelles: 07 December 2009 - 07:27 AM

Was This Post Helpful? 0
  • +
  • -

#5 KYA  Icon User is offline

  • g++ jameson.cpp -o beverage
  • member icon

Reputation: 3101
  • View blog
  • Posts: 19,141
  • Joined: 14-September 07

Re: Class hierarchy generator

Posted 07 December 2009 - 07:29 AM

Of course, I was just thinking out loud. If you have access to the source, why do you need a program to draw a diagram? Just look at the source :lol:
Was This Post Helpful? 0
  • +
  • -

#6 anirelles  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 84
  • Joined: 01-January 09

Re: Class hierarchy generator

Posted 07 December 2009 - 07:56 AM

On java open source project, I would like to find a way to have the big picture. Sometimes they give some hints in the developer documentation but it's not always the case lol

I made a try with ArgoUML, I tried to import Hibernate, here there is the result for the package engine :
http://img682.images...02/41340408.png

I don't know, there are almost any links between the classes. I also tried on a little project of mine with no conclusive result.
I'll try some few other projects .
Was This Post Helpful? 0
  • +
  • -

#7 anirelles  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 84
  • Joined: 01-January 09

Re: Class hierarchy generator

Posted 07 December 2009 - 09:55 AM

I tried BOUML it is not user friendly at all I gave up.

this tool seems great : http://www.agilej.com/
I'm looking for an equivalent but free
Was This Post Helpful? 0
  • +
  • -

#8 anirelles  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 84
  • Joined: 01-January 09

Re: Class hierarchy generator

Posted 07 December 2009 - 12:54 PM

I've just tried Visual Paradigm Community Edition and this feature is not present, just for the enterprise edition :(



I tried Enterprise Architect and this is the result of reverse engineering of HSQLDB :

http://i48.tinypic.com/2aadftd.png

lol

I'll make a last try with AgileJ :

they made here reverse engineering of jython and findbugs, the result is good :
http://www.agilej.co...ches/index.html

This post has been edited by anirelles: 07 December 2009 - 12:56 PM

Was This Post Helpful? 0
  • +
  • -

#9 anirelles  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 84
  • Joined: 01-January 09

Re: Class hierarchy generator

Posted 08 December 2009 - 05:39 AM

I came to the conclusion that such tools are irrelevant. The result is too messy. I was thinking of studying open source project with a top-down approach : start with the class diagram an go into the details.

I'll try bottom-up approach, looking at how the software is loaded and initialized, how the most common client requests are handled, etc. Maybe with some dumpstack at strategic point I can find out what are the main classes used..

I'll start a new discussion about this.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1