Parse Java sources: PlantUML class diagrams and StarUML (.mdj) export
Project description
java2uml
从 .java 源码(不解析字节码)生成 PlantUML 类图文本,或导出可在 StarUML 中打开的 .mdj 模型。解析基于 javalang。
环境: Python 3.11 及以上。
安装
pip install java2uml
使用
java2uml <路径> -f plantuml # 默认;结果打到标准输出
java2uml <路径> -f plantuml -o out.puml # 写入文件
java2uml <路径> -f mdj -o model.mdj # StarUML;不写 -o 时默认为 output.mdj
java2uml <路径> -f mdj -v # -v:逐个文件打印解析情况
java2uml --help
<路径> 为单个 .java 文件或目录(递归扫描)。-f staruml 与 -f mdj 相同。
兼容旧命令:java2plantuml、java2staruml(仍由本包提供)。
说明
支持多文件、包、类 / 接口 / 枚举、字段与方法及常见关系;复杂语法与内部类等可能不完整。.mdj 为模型层,在 StarUML 里需自行建图或拖入类。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
java2uml-0.2.0-py3-none-any.whl
(24.6 kB
view details)
File details
Details for the file java2uml-0.2.0-py3-none-any.whl.
File metadata
- Download URL: java2uml-0.2.0-py3-none-any.whl
- Upload date:
- Size: 24.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afef2602d483242e30b72a45c5a484aab574bb18fb4625dbbedbe57bd138fe52
|
|
| MD5 |
adeea93095fb98de2dc0f23acb4e00dc
|
|
| BLAKE2b-256 |
d41125b99df036dca0f6bb78a27e8f3efbc3b0c8e1c850279a0f16abde3ea6d4
|