Skip to content

Commit 5869e5b

Browse files
authored
improved for numpy
1 parent 4816c71 commit 5869e5b

File tree

2 files changed

+306
-33
lines changed

2 files changed

+306
-33
lines changed

cg/cgJava2UML.cstl

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ Consumer _1 |-->Function(_1, void)
265265

266266
Collection _1 |-->Sequence_1`collectionParameters
267267
Iterable _1 |-->Sequence_1`collectionParameters
268+
Stream _1 |-->Sequence_1`collectionParameters
268269
AtomicReferenceArray _1 |-->Sequence_1`collectionParameters
269270
Class _1 |-->OclType
270271

@@ -668,7 +669,7 @@ _1 _2 |--> operation _2`second_1_2`third : _2`first\n pre: true\n post: true;
668669

669670

670671
lambdaDefinitionFromOperation::
671-
_1 _2 _3 _4 |--> lambda _3 in _4`lambdaDefinitionFromMethodBody
672+
_1 _2 _3 _4 |--> lambda _3 in (_4`lambdaDefinitionFromMethodBody)
672673
_1 |-->_1`lambdaDefinitionFromOperation
673674

674675

@@ -1365,11 +1366,11 @@ _1 ? _2 : _3 |-->if _1`queryForm then _2`queryForm else _3`queryForm endif
13651366

13661367
_1 instanceof _2 |-->_1`queryForm->oclIsKindOf(_2)
13671368

1368-
_1 :: parseInt |-->lambda _s : String in _s->toInteger()
1369-
_1 :: parseLong |-->lambda _s : String in _s->toLong()
1370-
_1 :: parseDouble |-->lambda _s : String in _s->toReal()
1369+
_1 :: parseInt |-->(lambda _s : String in (_s->toInteger()))
1370+
_1 :: parseLong |-->(lambda _s : String in (_s->toLong()))
1371+
_1 :: parseDouble |-->(lambda _s : String in (_s->toReal()))
13711372

1372-
_1 :: _2 |-->lambda _pars : OclAny in _1`dcolonObject._2(_pars)
1373+
_1 :: _2 |-->(lambda _pars : OclAny in (_1`dcolonObject._2(_pars)))
13731374

13741375
_1 . new _2 |-->(_1`queryForm)._2
13751376

@@ -1497,13 +1498,13 @@ ThreadLocalRandom . _1 |-->MathLib
14971498
Void . TYPE |-->OclType["void"]
14981499
void . class |-->OclType["void"]
14991500

1500-
System.out |-->OclFile["System.out"]
1501-
System.in |-->OclFile["System.in"]
1502-
System.err |-->OclFile["System.err"]
1501+
System.out |-->(OclFile["System.out"])
1502+
System.in |-->(OclFile["System.in"])
1503+
System.err |-->(OclFile["System.err"])
15031504

1504-
System.out . _1 |-->OclFile["System.out"]._1`systemMethodCall
1505-
System.in . _1 |-->OclFile["System.in"]._1`systemMethodCall
1506-
System.err . _1 |-->OclFile["System.err"]._1`systemMethodCall
1505+
System.out . _1 |-->(OclFile["System.out"])._1`systemMethodCall
1506+
System.in . _1 |-->(OclFile["System.in"])._1`systemMethodCall
1507+
System.err . _1 |-->(OclFile["System.err"])._1`systemMethodCall
15071508

15081509
System . _1 |-->_1`systemMethodCall
15091510
Array . _1 |-->_1`arrayMethodCall
@@ -2659,7 +2660,7 @@ _1 |-->_1
26592660

26602661
lambdaExpression::
26612662
_1 -> _2 |-->lambda _1 in (_2`updateForm & _2`queryForm)<when> _2`isAssignment true
2662-
_1 -> _2 |-->_1 _2
2663+
_1 -> _2 |-->_1 (_2)
26632664

26642665

26652666
forEachVariable::
@@ -2718,22 +2719,22 @@ _1 . first |-->_1->at("first")
27182719
_1 . second |-->_1->at("second")
27192720
_1 . third |-->_1->at("third")
27202721

2721-
_1 :: parseLong |-->lambda _s : String in _s->toLong()
2722-
_1 :: parseInt |-->lambda _s : String in _s->toInteger()
2723-
_1 :: parseDouble |-->lambda _s : String in _s->toReal()
2724-
_1 :: _2 |-->lambda _pars : OclAny in _1`dcolonObject._2(_pars)
2722+
_1 :: parseLong |-->(lambda _s : String in (_s->toLong()))
2723+
_1 :: parseInt |-->(lambda _s : String in (_s->toInteger()))
2724+
_1 :: parseDouble |-->(lambda _s : String in (_s->toReal()))
2725+
_1 :: _2 |-->(lambda _pars : OclAny in (_1`dcolonObject._2(_pars)))
27252726

2726-
System . out |-->OclFile["System.out"]
2727-
System . in |-->OclFile["System.in"]
2728-
System . err |-->OclFile["System.err"]
2727+
System . out |-->(OclFile["System.out"])
2728+
System . in |-->(OclFile["System.in"])
2729+
System . err |-->(OclFile["System.err"])
27292730

27302731
System.out |-->OclFile["System.out"]
27312732
System.in |-->OclFile["System.in"]
27322733
System.err |-->OclFile["System.err"]
27332734

2734-
System.out . _1 |-->OclFile["System.out"]._1`systemMethodCall
2735-
System.in . _1 |-->OclFile["System.in"]._1`systemMethodCall
2736-
System.err . _1 |-->OclFile["System.err"]._1`systemMethodCall
2735+
System.out . _1 |-->(OclFile["System.out"])._1`systemMethodCall
2736+
System.in . _1 |-->(OclFile["System.in"])._1`systemMethodCall
2737+
System.err . _1 |-->(OclFile["System.err"])._1`systemMethodCall
27372738

27382739
System . _1 |-->_1`systemMethodCall
27392740
Array . _1 |-->_1`arrayMethodCall
@@ -3438,9 +3439,9 @@ Thread . _1 |--> OclProcess._1
34383439
Assert . _1 |-->_1`assertMethodCall
34393440
Files . _1 |-->_1`filesMethodCall
34403441

3441-
System.out . _1 |--> OclFile["System.out"]._1`systemMethodCall
3442-
System.in . _1 |--> OclFile["System.in"]._1`systemMethodCall
3443-
System.err . _1 |--> OclFile["System.err"]._1`systemMethodCall
3442+
System.out . _1 |--> execute (OclFile["System.out"])._1`systemMethodCall
3443+
System.in . _1 |--> execute (OclFile["System.in"])._1`systemMethodCall
3444+
System.err . _1 |--> execute (OclFile["System.err"])._1`systemMethodCall
34443445

34453446
System . _1 |-->_1`systemMethodCall
34463447

0 commit comments

Comments
 (0)