blob: f35c0b7b685c0a562bc2040a76fde8283569140b (
plain)
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
|
% Copyright 2015 Ovidiu Gheorghies
% Licensed under the Apache License, Version 2.0.
input metauml;
beginfig(1);
if not metauml_private_isAbstract(abstract "foo"):
1 = 2;
fi;
if metauml_private_isAbstract("@abstracp"):
1 = 2;
fi;
endfig;
beginfig(2);
if not metauml_private_isStatic(static "bar"):
1 = 2;
fi;
if metauml_private_isStatic("@statique"):
1 = 2;
fi;
endfig;
beginfig(3);
Class.A("A")
("+a:int+", static "+b:int")
("+f+():int", static "+g+():int", abstract "+h():int");
Class_setDebugMode.A;
drawObjects(A);
endfig;
beginfig(4);
save A;
Class.A("A")
(static "-instanceCount:int")
(static "+getInstanceCount():int", abstract "+work()");
drawObjects(A);
endfig;
beginfig(5);
save A, B;
Class.A("A")()();
Class.B(abstract "B")()();
Class.C("C")()(abstract "foo()");
leftToRight(5)(A, B, C);
drawObjects(A, B, C);
endfig;
end
|