RepositoryJava
shuzijun

shuzijun/plantuml-parser

Convert the Java(or kotlin) source code to Plantuml

130sao
36fork
14issue
1lượt xem

🧩 plantuml-parser: Biến mã nguồn Java/Kotlin thành sơ đồ Plantuml chỉ với vài dòng cấu hình

Chuyển đổi nguồn Java hoặc Kotlin sang file .puml bằng một thư viện nhẹ, không phụ thuộc IDE.

Dự án plantuml-parser của shuzijun cung cấp hai thành phần chính: plantuml-parser-core (thư viện dùng trong code) và plantuml-parser-plugin (plugin hỗ trợ IDE). Thư viện dùng javaparser để duyệt AST, trích xuất thông tin lớp, trường, phương thức, và quan hệ kế thừa/kết hợp, sau đó sinh ra định dạng Plantuml chuẩn.

✨ Điểm nổi bật

  • Cấu hình linh hoạt: Thêm đường dẫn tệp hoặc thư mục nguồn qua ParserConfig.addFilePath()
  • Lọc theo độ truy cập: Chọn lọc phương thức/trường theo modifier (private, protected, default, public)
  • Hỗ trợ Java và Kotlin: Dựa trên javaparser, phân tích cú pháp ngôn ngữ JVM
  • Sinh output chChuẩn PlantUML: Xuất lớp, trường, phương thức, quan hệ kế thừa
  • Plugin tích hợp IDE: Hỗ trợ chạy trực tiếp trong môi trường phát triển
  • Độc lập: Không yêu cầu môi trường đặc biệt, chạy như một chương trình độc lập

💡 Vì sao đáng chú ý

Không giống công cụ vẽ sơ đồ thủ công, plantuml-parser tự động sinh sơ đồ từ mã nguồn thực tế, tiết kiệm thời gian tài liệu hóa. Phù hợp cho dự án lớn cần cập nhật sơ đồ lớp thường xuyên. Đặc biệt hữu ích khi cần hiểu nhanh cấu trúc một dự án mới hoặc trình bày kiến trúc hệ thống.


#PlantUML #Java #CodeAnalysis #OpenSource #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryJava
mindolph/Mindolph

Mindolph is an open source personal knowledge management software with Gen-AI support for all desktop platforms.

202
Sep 13, 2026
Repository
getify/You-Dont-Know-JS

A book series (2 published editions) on the JS language.

184.8k
Feb 15, 2026
RepositoryJava
plantuml/plantuml

Generate diagrams from textual description

13.4k
Oct 26, 2026
RepositoryJava
shuzijun/leetcode-editor

Do Leetcode exercises in IDE, support leetcode.com and leetcode-cn.com, to meet the basic needs of doing exercises.Support theoretically: IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion GoLand DataGrip Rider MPS Android Studio

4.0k
Aug 13, 2026
RepositoryJava
Link-Kou/intellij-mybaitslog

用于在IDEA将Mybatis的SQL日志还原为可执行的SQL,Used to restore Mybatis SQL logs to executable SQL in IDEA,

1.2k
Aug 28, 2023
RepositoryJava
momosecurity/momo-code-sec-inspector-java

IDEA静态代码安全审计及漏洞一键修复插件

1.0k
Mar 10, 2022
RepositoryJava
WangJi92/arthas-idea-plugin

arthas idea plugin 更简单的使用arthas的IDEA 插件,方便的构建各种arthas 命令,复制到剪切板 然后到服务器上启动arthas 执行命令。

639
Jul 17, 2026
RepositoryJava
fuzhengwei/guide-idea-plugin

IDEA Plugin 插件开发可以帮助研发人员提升能效,解决一些实际场景中的共性问题。但最近在折腾IDEA插件开发的时候,市面的资料确实不多,也没有成体系完整的开发指导手册,所以就遇到了很多不知道就不会的事情,需要一点点查询搜索源码、验证API接口,最终把各项功能实现,当然在这个过程中也确实踩了不少坑!接下来在这个专栏会把一些关于 IDEA 插件开发用到的各项知识做成案例输出出来,帮助有需要的研发伙伴,一起建设 IDEA Plugin

472
Oct 13, 2022
RepositoryJava
raydac/netbeans-mmd-plugin

Free mind map editor with plug-ins for both NetBeans and Intellij

405
Oct 20, 2026