[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-678088-105":59,"doc-detail-678088-en":130,"doc-similar-678088":156},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","a-tool-for-efficiently-reverse-engineering-accurate-uml-class-diagrams","A Tool for Efficiently Reverse Engineering Accurate UML Class Diagrams","","A reverse engineering tool generates accurate UML class diagrams from C++ source code by taking srcML as input and producing yUML as output. srcML represents abstract syntactic information of the code in XML, enabling scalable and robust parsing. The approach uses efficient SAX parsing to gather data for class diagram construction and currently supports key UML elements such as classes, data types, interfaces, attributes, multiplicity, parameter direction, and relationships including aggregation, composition, generalization, and realization. The tool runs on large projects (~1,144 KLOC) in under 20 seconds and is open source under GPL.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/a-tool-for-efficiently-reverse-engineering-accurate-uml-class-diagrams/678088/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/a-tool-for-efficiently-reverse-engineering-accurate-uml-class-diagrams/678088.png","ImageObject",300,407,{"name":92,"@type":93},"Danger Angel","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-13","2026-11-04",true,{"@type":102,"interactionType":103,"userInteractionCount":81},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What are the input and output formats of the tool?","Question",{"text":112,"@type":113},"The tool takes srcML as input and outputs yUML, a textual UML class diagram format suitable for rendering via a web service or Graphviz.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does the tool extract information needed for the UML diagram?",{"text":117,"@type":113},"It uses efficient SAX parsing to collect the necessary information from the srcML representation, then applies predefined mappings to construct classes, attributes, operations, and relationships.",{"name":119,"@type":110,"acceptedAnswer":120},"Which UML features does the tool currently support?",{"text":121,"@type":113},"It supports distinguishing class, data type, and interface, identifying design-level attributes with multiplicity and types, determining parameter direction, and recognizing relationships such as aggregation, composition, generalization, and realization.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},678088,1793783997,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":81,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":81,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":39,"preview_page_count":81,"preview_urls":143},962090769052,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","A Tool for Efficiently Reverse Engineering Accurate UML Class Diagrams  \nMichael John Decker 1, Kyle Swartz 1, Michael L. Collard2, and Jonathan I. Maletic 1  \n1Department of Computer Science  \nKent State University Kent, Ohio USA  \n{kswartz6, mdecker6, [jmaletic}@kent.edu](jmaletic}@kent.edu)  \n2Department of Computer Science  \nThe University of Akron Akron, Ohio USA [collard@uakron.edu](collard@uakron.edu)  \nAbstract—A tool that reverse engineers UML class diagrams from C++ source code is presented. The tool takes srcML as input and produces yUML as output. srcML is an XML representation of the abstract syntactic information of source code. The srcML parser ([srcML.org](srcML.org)) is highly scalable, efficient, and robust. yUML is a textual format for UML class diagrams that can be easily rendered into a graphical diagram via a web service ([yUML.me](yUML.me)) or a tool such as Graphvis. The approach utilizes efficient SAX (Simple API for XML) parsing to collect the information needed to construct the class diagram. Currently it supports the following UML features: differentiating between class, data type, or interface; identifying design level attributes, multiplicity and type; determining parameter direction; and identification of the relationships aggregation, composition, generalization, and realization. The tool produces yUML for all of Calligra (~1,144KLOC) in under 20 seconds (including translation into srcML). The tool is open source under a GPL license and available for download at [srcML.org](srcML.org).  \nKeywords—reverse engineering, UML class diagrams, yUML, srcML  \nI. INTRODUCTION  \nUML (Unified Modeling Language) class diagrams are commonly used in industry for forward engineering. Despite the clear advantages of having UML class diagrams for the maintenance and evolution of a system (e.g., ability to reason about the design of a system at a high-level), these artifacts are rarely maintained or may no longer exist. Several reasons exist for the lack of adoption by industry for maintenance/evolution activities. Among these are, the manual recovery of UML class diagrams is a timely and costly operation. Additionally, most automatic reverse-engineering tools perform poorly, focusing on producing simple class diagrams while failing to properly represent design abstractions [1] . It has also been noted [2] that if tools fail to disclose the internal processes for producing the UML, then this can lead to results that do not meet end-users expectations.  \nThe work of Sutton and Maletic [2] addresses these problem by defining a set of accurate mappings for reverseengineering of UML class diagrams from C++ source code. The mappings utilize both C++ syntactic and semantic information, as well as, domain knowledge of program conventions, idioms, and reuse libraries to arrive at more accurate UML class diagrams. In a comparison study with several other reverse-engineering tools, their mappings produce comparable diagrams while also better reflecting the abstract design of a system rather than simply recreating  \nimplementation-level structures of the program. Another major problem with many reverse-engineering tools is their efficiency and scalability. For example, the most time-efficient approach in the comparison took close to two minutes to recover the UML class diagram from a medium sized project (88 KLOC), while many of the others took 10-20 minutes [2] . In order to provide a useable and available open-source tool that implements these mappings [2], address issues with efficiency, and to provide for a more convenient output format, we created the tool srcYUML. The tool uses srcML, an XML representation of source code that combines the textual features of source code with abstract syntax information. It also utilizes extremely efficient SAX (Simple API for XML) parsing to implement the mappings and quickly generate accurate UML class diagram. We choose the UML class diagram text format yUML [3] . The yUML output pro","cbCaiodY8AZQUwCY","https://ap.wps.com/l/cbCaiodY8AZQUwCY","pdf",211625,"English","# Introduction\n# The srcYUML Tool","[{\"question\":\"What are the input and output formats of the tool?\",\"answer\":\"The tool takes srcML as input and outputs yUML, a textual UML class diagram format suitable for rendering via a web service or Graphviz.\"},{\"question\":\"How does the tool extract information needed for the UML diagram?\",\"answer\":\"It uses efficient SAX parsing to collect the necessary information from the srcML representation, then applies predefined mappings to construct classes, attributes, operations, and relationships.\"},{\"question\":\"Which UML features does the tool currently support?\",\"answer\":\"It supports distinguishing class, data type, and interface, identifying design-level attributes with multiplicity and types, determining parameter direction, and recognizing relationships such as aggregation, composition, generalization, and realization.\"}]","A Tool for Efficiently Reverse Engineering Accurate UML Class Diagrams | PDF",[144,148,152],{"page_no":8,"url":145,"width":146,"height":147},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/446d0dad14b16b5ce55061b5fe5e1e01.webp",983,1272,{"page_no":14,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/1785069b9a2fc4e171e2bada6c972736.webp",982,1270,{"page_no":81,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/5fb244416ed5cf2e8def0a2ccafe02e6.webp",981,1269,{"list":157,"token":66},[158,165,171,178,184,190,196,202,208,214],{"doc_id":159,"doc_title":160,"file_type":137,"home_preview_img_url":161,"slug":162,"view_count":163,"category_name":30,"create_tm":164},655581,"Class Diagrams - Lecture 1 - Class Diagram with UML - Learning objectives, associations, generalization, and quality checklist","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975285561/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=jsgZ5XS0lBPiFrUos7JnZIz8Hyw%3D","class-diagrams-lecture-1-class-diagram-with-uml-learning-objectives-associations-generalization-and-quality-checklist",11,1792962722,{"doc_id":166,"doc_title":167,"file_type":137,"home_preview_img_url":168,"slug":169,"view_count":39,"category_name":30,"create_tm":170},344995,"Tools for Parsing and Generating XML Within R and S-Plus - Package","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229910870458/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=eZ94MzYql%2F0kbcnzh%2B8iycTKz9Q%3D","tools-for-parsing-and-generating-xml-within-r-and-s-plus-package",1790056128,{"doc_id":172,"doc_title":173,"file_type":137,"home_preview_img_url":174,"slug":175,"view_count":176,"category_name":30,"create_tm":177},655638,"UML - Unified Modeling Language - Overview of Diagram Types and Class Diagram Notations","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975286461/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=oYSy9b4qh0YUdmIxLbPB7CFslwk%3D","uml-unified-modeling-language-overview-of-diagram-types-and-class-diagram-notations",17,1792962971,{"doc_id":179,"doc_title":180,"file_type":137,"home_preview_img_url":181,"slug":182,"view_count":39,"category_name":30,"create_tm":183},655925,"UML Diagram Key - Basics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975294431/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=JkY1xXnFWvGW84St5%2FY%2F%2BWYtdRM%3D","uml-diagram-key-basics",1792964949,{"doc_id":185,"doc_title":186,"file_type":137,"home_preview_img_url":187,"slug":188,"view_count":14,"category_name":30,"create_tm":189},706988,"XML Processing on z/OS - Options - First Edition - December 2009","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230015639134/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=%2Frq9YAlLMaB5hqg2n9IrlrwU6JI%3D","xml-processing-on-zos-options-first-edition-december-2009",1794695075,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":34,"category_name":30,"create_tm":195},655766,"CPS122 Lecture - Class Diagrams in UML","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975289054/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=CS8vrJDJRSiH3CWjM9b2XTqzx2E%3D","cps122-lecture-class-diagrams-in-uml",1792963653,{"doc_id":197,"doc_title":198,"file_type":137,"home_preview_img_url":199,"slug":200,"view_count":29,"category_name":30,"create_tm":201},656101,"Class Diagrams and Entity Relationship Diagrams (ERD) - Create UML and ERD Structure Models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975300346/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=QltAPa2A8qWUteuLUACf45F9dDY%3D","class-diagrams-and-entity-relationship-diagrams-erd-create-uml-and-erd-structure-models",1792966358,{"doc_id":203,"doc_title":204,"file_type":137,"home_preview_img_url":205,"slug":206,"view_count":44,"category_name":30,"create_tm":207},655771,"UML - Unified Modeling Language - Design and UML Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975289134/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=%2BO5nInnNfuvGyGAuGwYS5cz9ih4%3D","uml-unified-modeling-language-design-and-uml-diagrams",1792963662,{"doc_id":209,"doc_title":210,"file_type":137,"home_preview_img_url":211,"slug":212,"view_count":39,"category_name":30,"create_tm":213},656098,"Tutorial - Class Diagrams and Entity Relationship Diagrams (ERD)","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975300171/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=CrftPgxj89N9OCKhF7V%2BLD2ksA4%3D","tutorial-class-diagrams-and-entity-relationship-diagrams-erd",1792966309,{"doc_id":215,"doc_title":216,"file_type":137,"home_preview_img_url":217,"slug":218,"view_count":29,"category_name":30,"create_tm":219},655772,"Class Diagram Relationships in UML with Examples - Learn How to Build Correct UML Class Diagram Relationships","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975289195/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=ycu%2BLBqxjDSNYTg90svnyT5t%2BEk%3D","class-diagram-relationships-in-uml-with-examples-learn-how-to-build-correct-uml-class-diagram-relationships",1792963669]