quentincaffeino / JavaToUML

Program to convert Java code to UML class diagrams.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JavaToUML

Program to convert Java code to UML class diagrams.

Uses the JavaParser library and PlantUML.

Using

Either run this program with all of the .java files to process as arguments, or place the .jar in a folder with all of the .java files to process and run it with no arguments.

Either way, the program will output UMLOutput.txt in the folder it is running in.

The format is PlantUML. The easiest way to view it is with https://www.planttext.com/

Help:

usage: JavaToUML [-fqn] [-oc] [-o null] [-r] [-d null] [-h] [-om] [-sr]
       [-omod]
 -oc,--omit-constructors       Omit constructors
 -om,--omit-methods            Omit methods
 -omod,--omit-modifiers        Omit modifiers
 -fqn,--fully-qualified-name   Use fully qualified class name
 -d,--directory                Directory to process
 -h,--help                     Print help for this application
 -o,--output                   Where to save output
 -r,--recursive                Process directory recursively
 -sr,--relations               Show relations

Future Plans

Currently, it only processes private, protected, and public fields, methods, and constructors. It was built to be easy to extend, but I plan to focus on finding other info such as relationships first.

About

Program to convert Java code to UML class diagrams.

License:GNU General Public License v3.0


Languages

Language:Java 100.0%