-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVisitSkeleton.cs
1030 lines (910 loc) · 28.8 KB
/
VisitSkeleton.cs
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*** BNFC-Generated Visitor Design Pattern Skeleton. ***/
/* This implements the common visitor design pattern. To make sure that
compile errors occur when code in the Visitor don't match the abstract
syntaxt, the "abstract visit skeleton" is used.
Replace the R and A parameters with the desired return
and context types.*/
namespace OCL.VisitSkeleton
{
#region Classes
public class OCLfileVisitor<R,A> : AbstractOCLfileVisitor<R,A>
{
public override R Visit(OCL.Absyn.OCLf oclf_, A arg)
{
/* Code For OCLf Goes Here */
foreach(OCL.Absyn.OCLPackage x in oclf_.ListOCLPackage_)
{
x.Accept(new OCLPackageVisitor<R,A>(), arg);
}
return default(R);
}
}
public class OCLPackageVisitor<R,A> : AbstractOCLPackageVisitor<R,A>
{
public override R Visit(OCL.Absyn.Pack pack_, A arg)
{
/* Code For Pack Goes Here */
pack_.PackageName_.Accept(new PackageNameVisitor<R,A>(), arg);
pack_.OCLExpressions_.Accept(new OCLExpressionsVisitor<R,A>(), arg);
return default(R);
}
}
public class PackageNameVisitor<R,A> : AbstractPackageNameVisitor<R,A>
{
public override R Visit(OCL.Absyn.PackName packname_, A arg)
{
/* Code For PackName Goes Here */
packname_.PathName_.Accept(new PathNameVisitor<R,A>(), arg);
return default(R);
}
}
public class OCLExpressionsVisitor<R,A> : AbstractOCLExpressionsVisitor<R,A>
{
public override R Visit(OCL.Absyn.Constraints constraints_, A arg)
{
/* Code For Constraints Goes Here */
foreach(OCL.Absyn.Constrnt x in constraints_.ListConstrnt_)
{
x.Accept(new ConstrntVisitor<R,A>(), arg);
}
return default(R);
}
}
public class ConstrntVisitor<R,A> : AbstractConstrntVisitor<R,A>
{
public override R Visit(OCL.Absyn.Constr constr_, A arg)
{
/* Code For Constr Goes Here */
constr_.ContextDeclaration_.Accept(new ContextDeclarationVisitor<R,A>(), arg);
foreach(OCL.Absyn.ConstrBody x in constr_.ListConstrBody_)
{
x.Accept(new ConstrBodyVisitor<R,A>(), arg);
}
return default(R);
}
}
public class ConstrBodyVisitor<R,A> : AbstractConstrBodyVisitor<R,A>
{
public override R Visit(OCL.Absyn.CBDefNamed cbdefnamed_, A arg)
{
/* Code For CBDefNamed Goes Here */
// cbdefnamed_.Ident_
foreach(OCL.Absyn.LetExpression x in cbdefnamed_.ListLetExpression_)
{
x.Accept(new LetExpressionVisitor<R,A>(), arg);
}
return default(R);
}
public override R Visit(OCL.Absyn.CBDef cbdef_, A arg)
{
/* Code For CBDef Goes Here */
foreach(OCL.Absyn.LetExpression x in cbdef_.ListLetExpression_)
{
x.Accept(new LetExpressionVisitor<R,A>(), arg);
}
return default(R);
}
public override R Visit(OCL.Absyn.CBNamed cbnamed_, A arg)
{
/* Code For CBNamed Goes Here */
cbnamed_.Stereotype_.Accept(new StereotypeVisitor<R,A>(), arg);
// cbnamed_.Ident_
cbnamed_.OCLExpression_.Accept(new OCLExpressionVisitor<R,A>(), arg);
return default(R);
}
public override R Visit(OCL.Absyn.CB cb_, A arg)
{
/* Code For CB Goes Here */
cb_.Stereotype_.Accept(new StereotypeVisitor<R,A>(), arg);
cb_.OCLExpression_.Accept(new OCLExpressionVisitor<R,A>(), arg);
return default(R);
}
}
public class ContextDeclarationVisitor<R,A> : AbstractContextDeclarationVisitor<R,A>
{
public override R Visit(OCL.Absyn.CDOper cdoper_, A arg)
{
/* Code For CDOper Goes Here */
cdoper_.OperationContext_.Accept(new OperationContextVisitor<R,A>(), arg);
return default(R);
}
public override R Visit(OCL.Absyn.CDClassif cdclassif_, A arg)
{
/* Code For CDClassif Goes Here */
cdclassif_.ClassifierContext_.Accept(new ClassifierContextVisitor<R,A>(), arg);
return default(R);
}
}
public class ClassifierContextVisitor<R,A> : AbstractClassifierContextVisitor<R,A>
{
public override R Visit(OCL.Absyn.CCType cctype_, A arg)
{
/* Code For CCType Goes Here */
// cctype_.Ident_1
// cctype_.Ident_2
return default(R);
}
public override R Visit(OCL.Absyn.CC cc_, A arg)
{
/* Code For CC Goes Here */
// cc_.Ident_
return default(R);
}
}
public class OperationContextVisitor<R,A> : AbstractOperationContextVisitor<R,A>
{
public override R Visit(OCL.Absyn.OpC opc_, A arg)
{
/* Code For OpC Goes Here */
// opc_.Ident_
opc_.OperationName_.Accept(new OperationNameVisitor<R,A>(), arg);
foreach(OCL.Absyn.FormalParameter x in opc_.ListFormalParameter_)
{
x.Accept(new FormalParameterVisitor<R,A>(), arg);
}
return default(R);
}
public override R Visit(OCL.Absyn.OpCRT opcrt_, A arg)
{
/* Code For OpCRT Goes Here */
// opcrt_.Ident_
opcrt_.OperationName_.Accept(new OperationNameVisitor<R,A>(), arg);
foreach(OCL.Absyn.FormalParameter x in opcrt_.ListFormalParameter_)
{
x.Accept(new FormalParameterVisitor<R,A>(), arg);
}
opcrt_.ReturnType_.Accept(new ReturnTypeVisitor<R,A>(), arg);
return default(R);
}
}
public class StereotypeVisitor<R,A> : AbstractStereotypeVisitor<R,A>
{
public override R Visit(OCL.Absyn.Pre pre_, A arg)
{
/* Code For Pre Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.Post post_, A arg)
{
/* Code For Post Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.Inv inv_, A arg)
{
/* Code For Inv Goes Here */
return default(R);
}
}
public class OperationNameVisitor<R,A> : AbstractOperationNameVisitor<R,A>
{
public override R Visit(OCL.Absyn.OpName opname_, A arg)
{
/* Code For OpName Goes Here */
// opname_.Ident_
return default(R);
}
public override R Visit(OCL.Absyn.Eq eq_, A arg)
{
/* Code For Eq Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.Add add_, A arg)
{
/* Code For Add Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.Sub sub_, A arg)
{
/* Code For Sub Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.LST lst_, A arg)
{
/* Code For LST Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.LSTE lste_, A arg)
{
/* Code For LSTE Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.GRT grt_, A arg)
{
/* Code For GRT Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.GRTE grte_, A arg)
{
/* Code For GRTE Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.Div div_, A arg)
{
/* Code For Div Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.Mult mult_, A arg)
{
/* Code For Mult Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.NEq neq_, A arg)
{
/* Code For NEq Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.Impl impl_, A arg)
{
/* Code For Impl Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.Not not_, A arg)
{
/* Code For Not Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.Or or_, A arg)
{
/* Code For Or Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.Xor xor_, A arg)
{
/* Code For Xor Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.And and_, A arg)
{
/* Code For And Goes Here */
return default(R);
}
}
public class FormalParameterVisitor<R,A> : AbstractFormalParameterVisitor<R,A>
{
public override R Visit(OCL.Absyn.FP fp_, A arg)
{
/* Code For FP Goes Here */
// fp_.Ident_
fp_.TypeSpecifier_.Accept(new TypeSpecifierVisitor<R,A>(), arg);
return default(R);
}
}
public class TypeSpecifierVisitor<R,A> : AbstractTypeSpecifierVisitor<R,A>
{
public override R Visit(OCL.Absyn.TSsimple tssimple_, A arg)
{
/* Code For TSsimple Goes Here */
tssimple_.SimpleTypeSpecifier_.Accept(new SimpleTypeSpecifierVisitor<R,A>(), arg);
return default(R);
}
public override R Visit(OCL.Absyn.TScoll tscoll_, A arg)
{
/* Code For TScoll Goes Here */
tscoll_.CollectionType_.Accept(new CollectionTypeVisitor<R,A>(), arg);
return default(R);
}
}
public class CollectionTypeVisitor<R,A> : AbstractCollectionTypeVisitor<R,A>
{
public override R Visit(OCL.Absyn.CT ct_, A arg)
{
/* Code For CT Goes Here */
ct_.CollectionKind_.Accept(new CollectionKindVisitor<R,A>(), arg);
ct_.SimpleTypeSpecifier_.Accept(new SimpleTypeSpecifierVisitor<R,A>(), arg);
return default(R);
}
}
public class ReturnTypeVisitor<R,A> : AbstractReturnTypeVisitor<R,A>
{
public override R Visit(OCL.Absyn.RT rt_, A arg)
{
/* Code For RT Goes Here */
rt_.TypeSpecifier_.Accept(new TypeSpecifierVisitor<R,A>(), arg);
return default(R);
}
}
public class OCLExpressionVisitor<R,A> : AbstractOCLExpressionVisitor<R,A>
{
public override R Visit(OCL.Absyn.OCLExp oclexp_, A arg)
{
/* Code For OCLExp Goes Here */
oclexp_.Expression_.Accept(new ExpressionVisitor<R,A>(), arg);
return default(R);
}
public override R Visit(OCL.Absyn.OCLExpLet oclexplet_, A arg)
{
/* Code For OCLExpLet Goes Here */
foreach(OCL.Absyn.LetExpression x in oclexplet_.ListLetExpression_)
{
x.Accept(new LetExpressionVisitor<R,A>(), arg);
}
oclexplet_.Expression_.Accept(new ExpressionVisitor<R,A>(), arg);
return default(R);
}
}
public class LetExpressionVisitor<R,A> : AbstractLetExpressionVisitor<R,A>
{
public override R Visit(OCL.Absyn.LENoParam lenoparam_, A arg)
{
/* Code For LENoParam Goes Here */
// lenoparam_.Ident_
lenoparam_.Expression_.Accept(new ExpressionVisitor<R,A>(), arg);
return default(R);
}
public override R Visit(OCL.Absyn.LENoParamType lenoparamtype_, A arg)
{
/* Code For LENoParamType Goes Here */
// lenoparamtype_.Ident_
lenoparamtype_.TypeSpecifier_.Accept(new TypeSpecifierVisitor<R,A>(), arg);
lenoparamtype_.Expression_.Accept(new ExpressionVisitor<R,A>(), arg);
return default(R);
}
public override R Visit(OCL.Absyn.LE le_, A arg)
{
/* Code For LE Goes Here */
// le_.Ident_
foreach(OCL.Absyn.FormalParameter x in le_.ListFormalParameter_)
{
x.Accept(new FormalParameterVisitor<R,A>(), arg);
}
le_.Expression_.Accept(new ExpressionVisitor<R,A>(), arg);
return default(R);
}
public override R Visit(OCL.Absyn.LEType letype_, A arg)
{
/* Code For LEType Goes Here */
// letype_.Ident_
foreach(OCL.Absyn.FormalParameter x in letype_.ListFormalParameter_)
{
x.Accept(new FormalParameterVisitor<R,A>(), arg);
}
letype_.TypeSpecifier_.Accept(new TypeSpecifierVisitor<R,A>(), arg);
letype_.Expression_.Accept(new ExpressionVisitor<R,A>(), arg);
return default(R);
}
}
public class IfExpressionVisitor<R,A> : AbstractIfExpressionVisitor<R,A>
{
public override R Visit(OCL.Absyn.IfExp ifexp_, A arg)
{
/* Code For IfExp Goes Here */
ifexp_.Expression_1.Accept(new ExpressionVisitor<R,A>(), arg);
ifexp_.Expression_2.Accept(new ExpressionVisitor<R,A>(), arg);
ifexp_.Expression_3.Accept(new ExpressionVisitor<R,A>(), arg);
return default(R);
}
}
public class ExpressionVisitor<R,A> : AbstractExpressionVisitor<R,A>
{
public override R Visit(OCL.Absyn.EOpImpl eopimpl_, A arg)
{
/* Code For EOpImpl Goes Here */
eopimpl_.Expression_1.Accept(new ExpressionVisitor<R,A>(), arg);
eopimpl_.Expression_2.Accept(new ExpressionVisitor<R,A>(), arg);
return default(R);
}
public override R Visit(OCL.Absyn.EOpLog eoplog_, A arg)
{
/* Code For EOpLog Goes Here */
eoplog_.Expression_1.Accept(new ExpressionVisitor<R,A>(), arg);
eoplog_.LogicalOperator_.Accept(new LogicalOperatorVisitor<R,A>(), arg);
eoplog_.Expression_2.Accept(new ExpressionVisitor<R,A>(), arg);
return default(R);
}
public override R Visit(OCL.Absyn.EOpEq eopeq_, A arg)
{
/* Code For EOpEq Goes Here */
eopeq_.Expression_1.Accept(new ExpressionVisitor<R,A>(), arg);
eopeq_.EqualityOperator_.Accept(new EqualityOperatorVisitor<R,A>(), arg);
eopeq_.Expression_2.Accept(new ExpressionVisitor<R,A>(), arg);
return default(R);
}
public override R Visit(OCL.Absyn.EOpRel eoprel_, A arg)
{
/* Code For EOpRel Goes Here */
eoprel_.Expression_1.Accept(new ExpressionVisitor<R,A>(), arg);
eoprel_.RelationalOperator_.Accept(new RelationalOperatorVisitor<R,A>(), arg);
eoprel_.Expression_2.Accept(new ExpressionVisitor<R,A>(), arg);
return default(R);
}
public override R Visit(OCL.Absyn.EOpAdd eopadd_, A arg)
{
/* Code For EOpAdd Goes Here */
eopadd_.Expression_1.Accept(new ExpressionVisitor<R,A>(), arg);
eopadd_.AddOperator_.Accept(new AddOperatorVisitor<R,A>(), arg);
eopadd_.Expression_2.Accept(new ExpressionVisitor<R,A>(), arg);
return default(R);
}
public override R Visit(OCL.Absyn.EOpMul eopmul_, A arg)
{
/* Code For EOpMul Goes Here */
eopmul_.Expression_1.Accept(new ExpressionVisitor<R,A>(), arg);
eopmul_.MultiplyOperator_.Accept(new MultiplyOperatorVisitor<R,A>(), arg);
eopmul_.Expression_2.Accept(new ExpressionVisitor<R,A>(), arg);
return default(R);
}
public override R Visit(OCL.Absyn.EOpUn eopun_, A arg)
{
/* Code For EOpUn Goes Here */
eopun_.UnaryOperator_.Accept(new UnaryOperatorVisitor<R,A>(), arg);
eopun_.Expression_.Accept(new ExpressionVisitor<R,A>(), arg);
return default(R);
}
public override R Visit(OCL.Absyn.EExplPropCall eexplpropcall_, A arg)
{
/* Code For EExplPropCall Goes Here */
eexplpropcall_.Expression_.Accept(new ExpressionVisitor<R,A>(), arg);
eexplpropcall_.PostfixOperator_.Accept(new PostfixOperatorVisitor<R,A>(), arg);
eexplpropcall_.PropertyCall_.Accept(new PropertyCallVisitor<R,A>(), arg);
return default(R);
}
public override R Visit(OCL.Absyn.EMessage emessage_, A arg)
{
/* Code For EMessage Goes Here */
emessage_.Expression_.Accept(new ExpressionVisitor<R,A>(), arg);
emessage_.PathName_.Accept(new PathNameVisitor<R,A>(), arg);
foreach(OCL.Absyn.MessageArg x in emessage_.ListMessageArg_)
{
x.Accept(new MessageArgVisitor<R,A>(), arg);
}
return default(R);
}
public override R Visit(OCL.Absyn.EImplPropCall eimplpropcall_, A arg)
{
/* Code For EImplPropCall Goes Here */
eimplpropcall_.PropertyCall_.Accept(new PropertyCallVisitor<R,A>(), arg);
return default(R);
}
public override R Visit(OCL.Absyn.ELitColl elitcoll_, A arg)
{
/* Code For ELitColl Goes Here */
elitcoll_.LiteralCollection_.Accept(new LiteralCollectionVisitor<R,A>(), arg);
return default(R);
}
public override R Visit(OCL.Absyn.ELit elit_, A arg)
{
/* Code For ELit Goes Here */
elit_.OCLLiteral_.Accept(new OCLLiteralVisitor<R,A>(), arg);
return default(R);
}
public override R Visit(OCL.Absyn.EIfExp eifexp_, A arg)
{
/* Code For EIfExp Goes Here */
eifexp_.IfExpression_.Accept(new IfExpressionVisitor<R,A>(), arg);
return default(R);
}
public override R Visit(OCL.Absyn.ENull enull_, A arg)
{
/* Code For ENull Goes Here */
return default(R);
}
}
public class MessageArgVisitor<R,A> : AbstractMessageArgVisitor<R,A>
{
public override R Visit(OCL.Absyn.MAExpr maexpr_, A arg)
{
/* Code For MAExpr Goes Here */
maexpr_.Expression_.Accept(new ExpressionVisitor<R,A>(), arg);
return default(R);
}
public override R Visit(OCL.Absyn.MAUnspec maunspec_, A arg)
{
/* Code For MAUnspec Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.MAUnspecTyped maunspectyped_, A arg)
{
/* Code For MAUnspecTyped Goes Here */
maunspectyped_.TypeSpecifier_.Accept(new TypeSpecifierVisitor<R,A>(), arg);
return default(R);
}
}
public class PropertyCallVisitor<R,A> : AbstractPropertyCallVisitor<R,A>
{
public override R Visit(OCL.Absyn.PCall pcall_, A arg)
{
/* Code For PCall Goes Here */
pcall_.PathName_.Accept(new PathNameVisitor<R,A>(), arg);
pcall_.PossTimeExpression_.Accept(new PossTimeExpressionVisitor<R,A>(), arg);
pcall_.PossQualifiers_.Accept(new PossQualifiersVisitor<R,A>(), arg);
pcall_.PossPropCallParam_.Accept(new PossPropCallParamVisitor<R,A>(), arg);
return default(R);
}
}
public class PathNameVisitor<R,A> : AbstractPathNameVisitor<R,A>
{
public override R Visit(OCL.Absyn.PathN pathn_, A arg)
{
/* Code For PathN Goes Here */
foreach(OCL.Absyn.PName x in pathn_.ListPName_)
{
x.Accept(new PNameVisitor<R,A>(), arg);
}
return default(R);
}
}
public class PNameVisitor<R,A> : AbstractPNameVisitor<R,A>
{
public override R Visit(OCL.Absyn.PN pn_, A arg)
{
/* Code For PN Goes Here */
// pn_.Ident_
return default(R);
}
}
public class PossQualifiersVisitor<R,A> : AbstractPossQualifiersVisitor<R,A>
{
public override R Visit(OCL.Absyn.NoQual noqual_, A arg)
{
/* Code For NoQual Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.Qual qual_, A arg)
{
/* Code For Qual Goes Here */
qual_.Qualifiers_.Accept(new QualifiersVisitor<R,A>(), arg);
return default(R);
}
}
public class QualifiersVisitor<R,A> : AbstractQualifiersVisitor<R,A>
{
public override R Visit(OCL.Absyn.Quals quals_, A arg)
{
/* Code For Quals Goes Here */
foreach(OCL.Absyn.Expression x in quals_.ListExpression_)
{
x.Accept(new ExpressionVisitor<R,A>(), arg);
}
return default(R);
}
}
public class PossTimeExpressionVisitor<R,A> : AbstractPossTimeExpressionVisitor<R,A>
{
public override R Visit(OCL.Absyn.NoTE note_, A arg)
{
/* Code For NoTE Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.AtPre atpre_, A arg)
{
/* Code For AtPre Goes Here */
return default(R);
}
}
public class PossPropCallParamVisitor<R,A> : AbstractPossPropCallParamVisitor<R,A>
{
public override R Visit(OCL.Absyn.NoPCP nopcp_, A arg)
{
/* Code For NoPCP Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.PCPs pcps_, A arg)
{
/* Code For PCPs Goes Here */
pcps_.PropertyCallParameters_.Accept(new PropertyCallParametersVisitor<R,A>(), arg);
return default(R);
}
}
public class DeclaratorVisitor<R,A> : AbstractDeclaratorVisitor<R,A>
{
public override R Visit(OCL.Absyn.Decl decl_, A arg)
{
/* Code For Decl Goes Here */
decl_.DeclaratorVarList_.Accept(new DeclaratorVarListVisitor<R,A>(), arg);
return default(R);
}
public override R Visit(OCL.Absyn.DeclAcc declacc_, A arg)
{
/* Code For DeclAcc Goes Here */
declacc_.DeclaratorVarList_.Accept(new DeclaratorVarListVisitor<R,A>(), arg);
// declacc_.Ident_
declacc_.TypeSpecifier_.Accept(new TypeSpecifierVisitor<R,A>(), arg);
declacc_.Expression_.Accept(new ExpressionVisitor<R,A>(), arg);
return default(R);
}
}
public class DeclaratorVarListVisitor<R,A> : AbstractDeclaratorVarListVisitor<R,A>
{
public override R Visit(OCL.Absyn.DVL dvl_, A arg)
{
/* Code For DVL Goes Here */
foreach(string x in dvl_.ListIdent_)
{
// x
}
return default(R);
}
public override R Visit(OCL.Absyn.DVLType dvltype_, A arg)
{
/* Code For DVLType Goes Here */
foreach(string x in dvltype_.ListIdent_)
{
// x
}
dvltype_.SimpleTypeSpecifier_.Accept(new SimpleTypeSpecifierVisitor<R,A>(), arg);
return default(R);
}
}
public class PropertyCallParametersVisitor<R,A> : AbstractPropertyCallParametersVisitor<R,A>
{
public override R Visit(OCL.Absyn.PCPDecl pcpdecl_, A arg)
{
/* Code For PCPDecl Goes Here */
pcpdecl_.Declarator_.Accept(new DeclaratorVisitor<R,A>(), arg);
foreach(OCL.Absyn.Expression x in pcpdecl_.ListExpression_)
{
x.Accept(new ExpressionVisitor<R,A>(), arg);
}
return default(R);
}
public override R Visit(OCL.Absyn.PCP pcp_, A arg)
{
/* Code For PCP Goes Here */
foreach(OCL.Absyn.Expression x in pcp_.ListExpression_)
{
x.Accept(new ExpressionVisitor<R,A>(), arg);
}
return default(R);
}
public override R Visit(OCL.Absyn.PCPNoDeclNoParam pcpnodeclnoparam_, A arg)
{
/* Code For PCPNoDeclNoParam Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.PCPConcrete pcpconcrete_, A arg)
{
/* Code For PCPConcrete Goes Here */
pcpconcrete_.Expression_.Accept(new ExpressionVisitor<R,A>(), arg);
foreach(OCL.Absyn.PCPHelper x in pcpconcrete_.ListPCPHelper_)
{
x.Accept(new PCPHelperVisitor<R,A>(), arg);
}
return default(R);
}
}
public class PCPHelperVisitor<R,A> : AbstractPCPHelperVisitor<R,A>
{
public override R Visit(OCL.Absyn.PCPComma pcpcomma_, A arg)
{
/* Code For PCPComma Goes Here */
pcpcomma_.Expression_.Accept(new ExpressionVisitor<R,A>(), arg);
return default(R);
}
public override R Visit(OCL.Absyn.PCPColon pcpcolon_, A arg)
{
/* Code For PCPColon Goes Here */
pcpcolon_.SimpleTypeSpecifier_.Accept(new SimpleTypeSpecifierVisitor<R,A>(), arg);
return default(R);
}
public override R Visit(OCL.Absyn.PCPIterate pcpiterate_, A arg)
{
/* Code For PCPIterate Goes Here */
// pcpiterate_.Ident_
pcpiterate_.TypeSpecifier_.Accept(new TypeSpecifierVisitor<R,A>(), arg);
pcpiterate_.Expression_.Accept(new ExpressionVisitor<R,A>(), arg);
return default(R);
}
public override R Visit(OCL.Absyn.PCPBar pcpbar_, A arg)
{
/* Code For PCPBar Goes Here */
pcpbar_.Expression_.Accept(new ExpressionVisitor<R,A>(), arg);
return default(R);
}
}
public class OCLLiteralVisitor<R,A> : AbstractOCLLiteralVisitor<R,A>
{
public override R Visit(OCL.Absyn.LitStr litstr_, A arg)
{
/* Code For LitStr Goes Here */
// litstr_.String_
return default(R);
}
public override R Visit(OCL.Absyn.LitNum litnum_, A arg)
{
/* Code For LitNum Goes Here */
litnum_.OCLNumber_.Accept(new OCLNumberVisitor<R,A>(), arg);
return default(R);
}
public override R Visit(OCL.Absyn.LitBoolTrue litbooltrue_, A arg)
{
/* Code For LitBoolTrue Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.LitBoolFalse litboolfalse_, A arg)
{
/* Code For LitBoolFalse Goes Here */
return default(R);
}
}
public class SimpleTypeSpecifierVisitor<R,A> : AbstractSimpleTypeSpecifierVisitor<R,A>
{
public override R Visit(OCL.Absyn.STSpec stspec_, A arg)
{
/* Code For STSpec Goes Here */
stspec_.PathName_.Accept(new PathNameVisitor<R,A>(), arg);
return default(R);
}
}
public class LiteralCollectionVisitor<R,A> : AbstractLiteralCollectionVisitor<R,A>
{
public override R Visit(OCL.Absyn.LCollection lcollection_, A arg)
{
/* Code For LCollection Goes Here */
lcollection_.CollectionKind_.Accept(new CollectionKindVisitor<R,A>(), arg);
foreach(OCL.Absyn.CollectionItem x in lcollection_.ListCollectionItem_)
{
x.Accept(new CollectionItemVisitor<R,A>(), arg);
}
return default(R);
}
public override R Visit(OCL.Absyn.LCollectionEmpty lcollectionempty_, A arg)
{
/* Code For LCollectionEmpty Goes Here */
lcollectionempty_.CollectionKind_.Accept(new CollectionKindVisitor<R,A>(), arg);
return default(R);
}
}
public class CollectionItemVisitor<R,A> : AbstractCollectionItemVisitor<R,A>
{
public override R Visit(OCL.Absyn.CI ci_, A arg)
{
/* Code For CI Goes Here */
ci_.Expression_.Accept(new ExpressionVisitor<R,A>(), arg);
return default(R);
}
public override R Visit(OCL.Absyn.CIRange cirange_, A arg)
{
/* Code For CIRange Goes Here */
cirange_.Expression_1.Accept(new ExpressionVisitor<R,A>(), arg);
cirange_.Expression_2.Accept(new ExpressionVisitor<R,A>(), arg);
return default(R);
}
}
public class OCLNumberVisitor<R,A> : AbstractOCLNumberVisitor<R,A>
{
public override R Visit(OCL.Absyn.NumInt numint_, A arg)
{
/* Code For NumInt Goes Here */
// numint_.Integer_
return default(R);
}
public override R Visit(OCL.Absyn.NumDouble numdouble_, A arg)
{
/* Code For NumDouble Goes Here */
// numdouble_.Double_
return default(R);
}
}
public class LogicalOperatorVisitor<R,A> : AbstractLogicalOperatorVisitor<R,A>
{
public override R Visit(OCL.Absyn.LAnd land_, A arg)
{
/* Code For LAnd Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.LOr lor_, A arg)
{
/* Code For LOr Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.LXor lxor_, A arg)
{
/* Code For LXor Goes Here */
return default(R);
}
}
public class CollectionKindVisitor<R,A> : AbstractCollectionKindVisitor<R,A>
{
public override R Visit(OCL.Absyn.Set set_, A arg)
{
/* Code For Set Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.Bag bag_, A arg)
{
/* Code For Bag Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.Sequence sequence_, A arg)
{
/* Code For Sequence Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.Collection collection_, A arg)
{
/* Code For Collection Goes Here */
return default(R);
}
}
public class EqualityOperatorVisitor<R,A> : AbstractEqualityOperatorVisitor<R,A>
{
public override R Visit(OCL.Absyn.EEq eeq_, A arg)
{
/* Code For EEq Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.ENEq eneq_, A arg)
{
/* Code For ENEq Goes Here */
return default(R);
}
}
public class RelationalOperatorVisitor<R,A> : AbstractRelationalOperatorVisitor<R,A>
{
public override R Visit(OCL.Absyn.RGT rgt_, A arg)
{
/* Code For RGT Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.RGTE rgte_, A arg)
{
/* Code For RGTE Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.RLT rlt_, A arg)
{
/* Code For RLT Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.RLTE rlte_, A arg)
{
/* Code For RLTE Goes Here */
return default(R);
}
}
public class AddOperatorVisitor<R,A> : AbstractAddOperatorVisitor<R,A>
{
public override R Visit(OCL.Absyn.AAdd aadd_, A arg)
{
/* Code For AAdd Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.ASub asub_, A arg)
{
/* Code For ASub Goes Here */
return default(R);
}
}
public class MultiplyOperatorVisitor<R,A> : AbstractMultiplyOperatorVisitor<R,A>
{
public override R Visit(OCL.Absyn.MMult mmult_, A arg)
{
/* Code For MMult Goes Here */
return default(R);
}
public override R Visit(OCL.Absyn.MDiv mdiv_, A arg)
{
/* Code For MDiv Goes Here */
return default(R);
}
}
public class UnaryOperatorVisitor<R,A> : AbstractUnaryOperatorVisitor<R,A>
{
public override R Visit(OCL.Absyn.UMin umin_, A arg)
{
/* Code For UMin Goes Here */