java生成图形_java – 为类依赖生成图形数据的工具

我不确定命令行工具,但我喜欢将ObjectAid用于逆向工程到类图中:

您可以轻松地将任何类与其关系添加到ObjectAid图.它使用ucls扩展名将文件保存为XML格式.以下是一个示例:

always-add-relationships="true" generalizations="true" realizations="true"

associations="true" dependencies="true" nesting-relationships="true">

name="my.classpath.common.controllers.AuthenticationInterceptor"

project="MyProject"

file="/SpecialPath/common/controllers/AuthenticationInterceptor.java"

binary="false" corner="BOTTOM_RIGHT">

initial-value="false" signature="true" accessors="true" visibility="true">

private="true" static="true" />

private="true" static="true" />

name="my.classpath.common.domain.CompanyAssignmentLocation" project="MyProject"

file="/SpecialPath/common/domain/CompanyAssignmentLocation.java"

binary="false" corner="BOTTOM_RIGHT">

initial-value="false" signature="true" accessors="true" visibility="true">

private="true" static="true" />

private="true" static="true" />

name="my.classpath.common.domain.LocationsSpreadsheetReader" project="MyProject"

file="/SpecialPath/common/domain/LocationsSpreadsheetReader.java"

binary="false" corner="BOTTOM_RIGHT">

initial-value="false" signature="true" accessors="true" visibility="true">

private="true" static="true" />

private="true" static="true" />

project="MyProject" file="/SpecialPath/common/domain/Stock.java"

binary="false" corner="BOTTOM_RIGHT">

initial-value="false" signature="true" accessors="true" visibility="true">

private="true" static="true" />

private="true" static="true" />

project="MyProject" file="/SpecialPath/common/util/FilesUtil.java"

binary="false" corner="BOTTOM_RIGHT">

initial-value="false" signature="true" accessors="true" visibility="true">

private="true" static="true" />

private="true" static="true" />

project="MyProject" file="/SpecialPath/common/util/MyProjectUtil.java"

binary="false" corner="BOTTOM_RIGHT">

initial-value="false" signature="true" accessors="true" visibility="true">

private="true" static="true" />

private="true" static="true" />

project="MyProject" file="/SpecialPath/common/util/SpringUtil.java"

binary="false" corner="BOTTOM_RIGHT">

initial-value="false" signature="true" accessors="true" visibility="true">

private="true" static="true" />

private="true" static="true" />

name="my.classpath.common.util.MyProjectUserUtil" project="MyProject"

file="/SpecialPath/common/util/MyProjectUserUtil.java" binary="false"

corner="BOTTOM_RIGHT">

initial-value="false" signature="true" accessors="true" visibility="true">

private="true" static="true" />

private="true" static="true" />

project="MyProject" file="/SpecialPath/common/util/UnitConversion.java"

binary="false" corner="BOTTOM_RIGHT">

initial-value="false" signature="true" accessors="true" visibility="true">

private="true" static="true" />

private="true" static="true" />

package="true" initial-value="false" signature="true" accessors="true"

visibility="true">

private="true" static="true" />

private="true" static="true" />

您也可以使用PlantUML,但是反向工程比逆向工程更好:

PlantUML有其自己独特的语法,您也可以获得源代码,但它并不像ObjectAid那么简单

这两个都作为eclipse插件,对不起,我不知道更多关于任何可能做你所要求的命令行工具.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值