Use UML::Class::Simple to generate simple UML class diagrams ---- Use {{#x|UML::Class::Simple}} to generate simple {{#c|UML class diagrams}} 使用 UML::Class::Simple 生成简单的 UML 类图 ☺{{#author|Agent Zhang (章亦春)}}☺ {{#date|2007.6}} ---- {{#ci|Inspired}} by the cool {{#x|UML::Sequence}} module 受到了酷酷的 UML::Sequence 模块的启发 ---- {{img src="#" width="0" height="0"}} {{img src="images/seq.png" width="772" height="572"}} ---- I want to draw {{#x|UML class diagrams}} from {{#ci|real-world}} Perl code! 我想从真实世界的 Perl 代码 生成 UML 类图! ---- {{img src="images/class.png" width="320" height="584"}} ---- {{img src="images/class2.png" width="413" height="570"}} ---- {{#tag|☆}} {{#ci|Generate}} diagrams from specified {{#x|.pm files}} 从指定的若干个 .pm 文件生成类图 ---- {{#v|$}} {{#t|umlclass}} {{#x|-o foo.png}} {{#ci|lib/Foo/Bar.pm}} {{#ci|lib/Baz.pm}} ---- {{#tag|☆}} {{#ci|Generate}} diagrams from a {{#ci|directory}} containing {{#x|.pm files}} 从含有 .pm 文件的目录生成类图 ---- {{#v|$}} {{#t|umlclass}} {{#x|-o foo.png}} {{#ci|-r lib}} ---- {{#tag|☆}} {{#ci|Generate}} diagrams from {{#ci|perl runtime}} using {{#x|filters}} 通过指定过滤器从 perl 运行时生成类图 ---- {{#v|$}} {{#t|umlclass}} {{#x|-M Moose}} {{#ci|-p '^(Moose|MOP)'}} {{#x|-o moose.png}} ---- {{#ci|Big}} modules like {{#x|PPI}} also {{#t|works}}! 像 PPI 那样的模块也能工作! ---- {{img src="images/ppi.png" width="971" height="369"}} ---- {{#ci|Load-time}} OO {{#x|magic}} also works! 加载时的 OO 魔法可以工作! ---- {{#kw|package}} Dog; {{#kw|our}} {{#v|@ISA}}; {{#void|push}} {{#v|@ISA}}, {{#x|'Animal'}}; {{#cm|# Dog->isa('Animal');}} ---- {{#kw|package}} Dog; {{#void|*bark}} = {{#kw|sub}} { print {{#x|"..."}}; }; {{#cm|# Dog->bark();}} ---- Now i have {{#ci|patched}} {{#t|UML:::Class::Simple}} that can save into {{#x|XMI 1.2 model}}. The resulting file can be successfully {{#ci|loaded}} by stable version of {{#x|ArgoUML}}. -- Maxim Zenin 现在我已经把 UML::Class::Simple 打上了补丁,使之能 生成 XMI 1.2 的模型。得到的结果文件可以成功地为 ArgoUML 的稳定版加载。 ---- These slides are {{#ci|powered}} by {{#x|Sporx}} and {{img src="images/grin.png" width="41" height="41"}}{{#ci|Takahashi}}{{#x|++}} ---- {{#c|Thank you!}} ☺