Pointcut is added to parse the input Java files. UML Sequence diagram generator: Uses AspectJ to understand when a method call is started and when it is ended. ZIP files are extracted to 'test' folder temporarily and once class diagram is generated it's cleaned. The JAR file is kept in one of folders of web application. Simple layout created for uploading the ZIP using Bootstrap and Node.js uses Child Process module to start process to execute the JAR file. ![]() Web application for UML Class diagram generator: This internally uses the executable JAR generated using the #1. Finally, grammar is created using these objects and given to PlantUML to generate the class diagram. All the relationships and classes are stored in objects. ![]() During parsing process, the code also creates the relationships between the classes. UML Class diagram generator: The java files provided either directly or through the ZIP files are parsed using Javaparser for all the variables, methods, constructors, and interfaces. GraphViz: Works with PlantUML to generate diagramsĪspectJ: Using AspectJ to parse the Java code and then create relevant grammar for PlantUML to generate the UML Sequence Diagram. PlantUML: UML diagrams can be generated using simple and intuitive language used by PlantUML. Parsed java class can be easily processed to generate the UML diagram Javaparser: Easy to understand and use, it gives Abstract Syntax Tree (AST) from java code.
0 Comments
Leave a Reply. |