Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
P is for Practical
 
PerlMonks  

Generate UML from Perl code?

by marvi (Sexton)
on Aug 05, 2001 at 23:59 UTC ( [id://102364]=perlquestion: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.

marvi has asked for the wisdom of the Perl Monks concerning the following question: (object-oriented programming)

Is there a tool that generates UML diagrams from Perl source code?

Originally posted as a Categorized Question.

Replies are listed 'Best First'.
Re: Generate UML from Perl code?
by Zaxo (Archbishop) on Aug 06, 2001 at 00:20 UTC
Re: Generate UML from Perl code?
by htoug (Deacon) on Aug 06, 2001 at 06:23 UTC
    Simon Johnston <sjohnsto@rational.com> has written a Perl AddIn for Rose. He talked about it at TPC4. You can find it at: http://www.rationalrose.com/addins/RosePerl-1_0_1.htm
Re: Generate UML from Perl code?
by bikeNomad (Priest) on Aug 06, 2001 at 17:10 UTC
    The code I posted at Graph your Perl inheritance structure will draw an inheritance diagram from an existing Perl program. You should be able to modify it to make UML diagrams pretty easily. But you won't be able to edit them graphically.

    But you don't say what UML diagrams you're interested in (there are lots of different kinds). Some possibilities that I can think of for diagramming:

    • use the debugger hooks to build a sequence or collaboration diagram
    • analyze the @ISA structure for a class diagram like my example does
    • analyze your POE structures for a class diagram
    • analyze the 'use' and 'require' structures (you can use the debugger hooks here too) for a component diagram
Re: Generate UML from Perl code?
by stajich (Chaplain) on May 20, 2002 at 09:47 UTC
    Another good option is AutoDia which will produce XML suitable for the Dia drawing program. Typically you'll need to so some editing of the diagram after generation, but it seems to get the inheritance down okay. I like it as a starting point rather than building the whole class hierarchy by hand.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://102364]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.