mirror of
https://github.com/Noratrieb/UMLetClassParser.git
synced 2026-01-15 17:15:08 +01:00
working
This commit is contained in:
parent
5b0937a8eb
commit
501fa2f293
6 changed files with 66 additions and 16 deletions
|
|
@ -29,7 +29,7 @@ public class UMLMethod {
|
|||
* name;
|
||||
* args in the UML format
|
||||
*/
|
||||
String formatted = line.replaceAll("([+\\-~#]) (.+)\\((.*: .*,?)?\\):? ?(.+)?", "$1;$4;$2;$3");
|
||||
String formatted = line.replaceAll("([+\\-~#]) ?(.+)\\((.*: .*,?)?\\):? ?(.+)?", "$1;$4;$2;$3");
|
||||
String[] parts = formatted.split(";");
|
||||
this.encapsulation = switch (parts[0]) {
|
||||
case "+" -> "public ";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue