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.

CN122111496APending Publication Date: 2026-05-29BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

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

Technical Problem

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.

Method used

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.

Benefits of technology

It improves the accuracy of generated UML class diagrams, accurately reflects the relationships between classes in the project code, and reduces generation costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122111496A_ABST
    Figure CN122111496A_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a class diagram generation method and device, the method comprising: obtaining code compilation information of engineering code; determining, based on the code compilation information, a first source code file of the engineering code, and a second source code file and / or a macro associated with the first source code file, wherein the first source code file belongs to the engineering code, and the second source code file is a third-party code file; and generating a unified modeling language class diagram of the engineering code based on the first source code file, and the second source code file and / or the macro.
Need to check novelty before this filing date? Find Prior Art