This repository was archived by the owner on Mar 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathprogram.txt
More file actions
56 lines (53 loc) · 1.39 KB
/
Copy pathprogram.txt
File metadata and controls
56 lines (53 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<<< PROGRAM TEMPLATE >>>
{
id1:{
type: "class | interface | abstract",
name: ""
properties: {
id: {
"access": "public | private | protected"
"name": "",
"type": "",
}
},
methods: {
id: {
"access": "public | private | protected"
"name": "",
"return-type": "",
}
},
relationships: {
implements: [],
extends: []
}
}
}
TODO:
- add HTML support in the syntax tree parser --> DONE
- determine if class, interface or abstract --> DONE
- add relationships --> DONE
- check if the relationships are correct --> DONE
- generate the code --> DONE
- add getters and setters for the properties --> DONE
- add parameters to documentation comments --> DONE
- format spacing for the py files --> DONE
- test multi-level interface implementation --> DONE
what to look for in the relationships:
- start arrow and start fill
- end arrow and end fill
- dashed
types of relationships:
1) extends
- endArrow: block, endFill: 0
2) implements
- endArrow: block, endFill: 0, dashed: 1
3) association
- endArrow: block, startArrow: block, endFill: 1,
- endArrow: None
4) aggregation
- endArrow: diamondThin, endFill: 0
- startArrow: diamondThin, endFill: 0
5) composition
- endArrow: diamondThin, endFill: 1
- startArrow: diamondThin, endFill: 1