This application allows drawing of UML diagrams in graphic user interface and generating the code in Java or Cpp. It supports:
- Classes
- Methods
- Arguments
It's easy to draw a uml graph based on what you need only by dragging class
or method
or Arg
into the board.
Here is the output code of the example graph in Java
abstract class FooParent
{
abstract void printFoo();
}
class Earth
{
public int water;
}
class Mars
{
public float co2;
}
class Jupiter
{
public String water;
}
class Robot
{
void walk(int a, int b)
{
}
}
public class Foo extends FooParent
{
public static float calculateFoo(int fooNum)
{
}
public void printFoo()
{
}
}
class flower extends Earth
{
public String color;
}
class Tree extends Earth
{
}
-
Clone the repo
git clone https://github.com/Amir-Shamsi/code-generator-and-uml-diagram.git
-
Install the dependencies from
pom.xml
-
Enjoy!