shuzijun / plantuml-parser

Convert the Java(or kotlin) source code to Plantuml
https://plugins.jetbrains.com/plugin/15524-plantuml-parser
Apache License 2.0
114 stars 27 forks source link

Generate Constructors #5

Closed 1hiking closed 3 years ago

1hiking commented 3 years ago

Great program, it would be nice if this plugin generated Constructors, for example the following code:

class Example {
    public int x;

    Example(int x) {
        this.x = x;
    }

}

Becomes:

class Empresa.Example {
+ int x
}

When it could be for example:

class Empresa.Example {
+ int x
+ <<Create>> Example(x: int)
}

Also see: https://www.omg.org/spec/UML/2.5.1/PDF page 240/198