Skip to main content

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 相同。

兼容旧命令:java2plantumljava2staruml(仍由本包提供)。

说明

支持多文件、包、类 / 接口 / 枚举、字段与方法及常见关系;复杂语法与内部类等可能不完整。.mdj 为模型层,在 StarUML 里需自行建图或拖入类。

Project details


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

If you're not sure about the file name format, learn more about wheel file names.

java2uml-0.3.0-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

Details for the file java2uml-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: java2uml-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 25.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for java2uml-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf18399e40cb7a955f575b8256370e2dc62f8d8e8532fd48432f7b7826bcd8ba
MD5 4faeaeb1831abdf2a8e0642a861ce892
BLAKE2b-256 72db20dd17b8a3a6aa3c72a6c40b1cfadbc10be96ebbe3bd94300ad1d4bf3da6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page