| Author |
class diagram from javadoc
|
|
| Stevie 2007-11-24, 8:11 am |
| 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 2007-11-24, 7:14 pm |
| Stevie wrote:
> 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
--
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth
| |
|
| Joshua Cranmer wrote:
> Stevie wrote:
>
> 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.
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.
--
Lew
| |
| Mark Space 2007-11-24, 7:14 pm |
| Stevie wrote:
> 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
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 2007-11-24, 10:20 pm |
|
"Stevie" <steviehaston@hotmail.com> wrote in message
news:fd0d5bc1-eb87-4259-b65d-1e595f8c895f@s36g2000prg.googlegroups.com...
> 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
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 2007-11-27, 4:36 am |
| On 24 Nov, 10:55, Stevie <steviehas...@hotmail.com> wrote:
> 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 2007-11-28, 7:16 pm |
| On Nov 24, 12:55 pm, Stevie <steviehas...@hotmail.com> wrote:
> 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
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.
|
|
|
|