Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / November 2007

Tip: Looking for answers? Try searching our database.

class diagram from javadoc

Thread view: 
Stevie - 24 Nov 2007 10:55 GMT
Is there a tool available to generate a class diagram directly from
javadoc or java byte code? I'd like to see the class heirarchy and the
methods.

One option I had considered was to use a website maping tool to crawl
through the javadoc.

Any help gratefully received.
Stevie
Joshua Cranmer - 24 Nov 2007 14:55 GMT
> Is there a tool available to generate a class diagram directly from
> javadoc or java byte code? I'd like to see the class heirarchy and the
> methods.
>
> One option I had considered was to use a website maping tool to crawl
> through the javadoc.

Javadoc will generate a full class tree (by default?) under
<path>/overview-tree.html. If you want it in, say, a DOT diagram rather
than a nested-list format, this single page would be sufficient to crawl
through: it is a series of nested UL's and LI's.

> Any help gratefully received.
> Stevie

Signature

Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth

Lew - 24 Nov 2007 15:50 GMT
>> Is there a tool available to generate a class diagram directly from
>> javadoc or java byte code? I'd like to see the class heirarchy and the
[quoted text clipped - 7 lines]
> than a nested-list format, this single page would be sufficient to crawl
> through: it is a series of nested UL's and LI's.

This doesn't seem to give enough information to provide everything one might
find in a UML class diagram, specifically associations between classes that
aren't related by inheritance.  It is a good view of the inheritance tree.

Signature

Lew

Mark Space - 25 Nov 2007 00:30 GMT
> Is there a tool available to generate a class diagram directly from
> javadoc or java byte code? I'd like to see the class heirarchy and the
[quoted text clipped - 5 lines]
> Any help gratefully received.
> Stevie

The source for the Java API is readily available.  I think it downloaded
automatically with my (1.6) JDK.  I regularly hit SHIFT-CTRL-B from my
IDE to browse the source code on my system.  Works like a champ.

There are good reverse engineering tools built into NetBeans 6 that will
create UML class diagrams from source.  So... download NB 6 and give it
a shot, point yourself at some Java source code, and press "reverse
engineer."  It might even work.
Charles Hottel - 25 Nov 2007 03:43 GMT
> Is there a tool available to generate a class diagram directly from
> javadoc or java byte code? I'd like to see the class heirarchy and the
[quoted text clipped - 5 lines]
> Any help gratefully received.
> Stevie

Thre is a command you can runt to list a classes method/paramtere
information.  I think it is the javap command but I am experiencing brain
freeze right now so I am not certain.  If I am wrong someone will certainly
correct me.
apm35@student.open.ac.uk - 27 Nov 2007 09:08 GMT
> Is there a tool available to generate a class diagram directly from
> javadoc or java byte code? I'd like to see the class heirarchy and the
> methods.

Yes, the tool you are looking for is doxygen, http://www.doxygen.org.

Regards,

Andrew Marlow
CodeGrommet - 28 Nov 2007 15:36 GMT
> Is there a tool available to generate a class diagram directly from
> javadoc or java byte code? I'd like to see the class heirarchy and the
[quoted text clipped - 5 lines]
> Any help gratefully received.
> Stevie

I used Jad (stand alone app of about 250 kB :) to decompile the byte
code.  There is a plugin available for netbeans 5.5 - you just have to
tweak the settings.  There is also a UML extension available for
netbeans that allows you excellent UML functionality in deriving UML
diagrams from your .java files.  Also, you can generate java code from
UML diagrams from within netbeans.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.