Generate UML Java class/sequence diagram
- Java 1.8 or later
- Apache Maven 3.3.9 or later
- Python 2.7
- Java - Language used for writing the class and sequence diagram generator
- Javaparser - To get AST(Abstract Tree Syntax) of java code
- Yuml - For generating class diagram image
- Plant UML - For generating sequence diagram image
- Maven - Build management for Java
- Python - Language used to write a wrapper script to run the parser
- AspectJ - Aspect oriented programming implementation for Java, used for generating sequence diagram
- junit - Unit test framework for Java
- commons-cli - Java library to parse command line arguments
- Clone this repo
- Run
./setup.sh
to create the jar file if not present - Run
python umlparser <input folder or zip file> <output folder or file>
eg. python umlparser testData/uml-parser-test-4 .
eg. python umlparser testData/uml-sequence-test .
https://youtu.be/7FLgLG4vTKA?t=51
- All java files to be analysed need to be in the default package
- In order to generate sequence diagram, 'inputPath' should contain the word 'sequence' (case insensitive). Sequence diagram would start by calling Main.main() from the given Java files.