Class diagram generation method and apparatus
By obtaining the code compilation information of the project code, the first source code file and its associated second source code file and/or macros are identified, and a UML class diagram is generated. This solves the problems of high cost and low accuracy in generating UML class diagrams in the prior art, and achieves more efficient and accurate class diagram generation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING ZITIAO NETWORK TECH CO LTD
- Filing Date
- 2024-11-29
- Publication Date
- 2026-05-29
AI Technical Summary
Existing technologies for generating UML class diagrams are costly and inaccurate, especially when dealing with third-party code files and macros in project code, as they cannot accurately reflect the structure and relationships of classes.
By obtaining the code compilation information of the project code, the first source code file and its associated second source code file and/or macros are determined, a unified modeling language class diagram is generated, and an abstract syntax tree is used to reflect the overall structure of the project code, including relationships such as inheritance, dependency, and association.
It improves the accuracy of generated UML class diagrams, accurately reflects the relationships between classes in the project code, and reduces generation costs.
Smart Images

Figure CN122111496A_ABST