• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

moosetechnology / VerveineJ / 15191557690

22 May 2025 04:10PM UTC coverage: 50.616% (+0.6%) from 49.972%
15191557690

push

github

web-flow
Merge pull request #127 from moosetechnology/new-generics-implementation

New generics implementation

1884 of 3956 branches covered (47.62%)

Branch coverage included in aggregate %.

513 of 1119 new or added lines in 53 files covered. (45.84%)

53 existing lines in 10 files now uncovered.

4277 of 8216 relevant lines covered (52.06%)

2.08 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

23.59
/app/src/main/java/org/moosetechnology/model/famix/famixjavaentities/Enum.java
1
// Automagically generated code, please do not change
2
package org.moosetechnology.model.famix.famixjavaentities;
3

4
import ch.akuhn.fame.FameDescription;
5
import ch.akuhn.fame.FamePackage;
6
import ch.akuhn.fame.FameProperty;
7
import ch.akuhn.fame.internal.MultivalueSet;
8
import java.util.*;
9
import org.moosetechnology.model.famix.famixtraits.TAttribute;
10
import org.moosetechnology.model.famix.famixtraits.TComment;
11
import org.moosetechnology.model.famix.famixtraits.TConcretization;
12
import org.moosetechnology.model.famix.famixtraits.TEntityTyping;
13
import org.moosetechnology.model.famix.famixtraits.TEnum;
14
import org.moosetechnology.model.famix.famixtraits.TEnumValue;
15
import org.moosetechnology.model.famix.famixtraits.THasVisibility;
16
import org.moosetechnology.model.famix.famixtraits.TImport;
17
import org.moosetechnology.model.famix.famixtraits.TImportable;
18
import org.moosetechnology.model.famix.famixtraits.TInheritance;
19
import org.moosetechnology.model.famix.famixtraits.TInvocation;
20
import org.moosetechnology.model.famix.famixtraits.TInvocationsReceiver;
21
import org.moosetechnology.model.famix.famixtraits.TMethod;
22
import org.moosetechnology.model.famix.famixtraits.TParametricEntity;
23
import org.moosetechnology.model.famix.famixtraits.TReference;
24
import org.moosetechnology.model.famix.famixtraits.TSourceAnchor;
25
import org.moosetechnology.model.famix.famixtraits.TTypeArgument;
26
import org.moosetechnology.model.famix.famixtraits.TWithAttributes;
27
import org.moosetechnology.model.famix.famixtraits.TWithComments;
28
import org.moosetechnology.model.famix.famixtraits.TWithImports;
29
import org.moosetechnology.model.famix.famixtraits.TWithInheritances;
30
import org.moosetechnology.model.famix.famixtraits.TWithMethods;
31
import org.moosetechnology.model.famix.famixtraits.TWithTypes;
32

33

34
@FamePackage("Famix-Java-Entities")
35
@FameDescription("Enum")
36
public class Enum extends Type implements TTypeArgument, TEnum, THasVisibility, TImportable, TInvocationsReceiver, TWithAttributes, TWithComments, TWithImports, TWithInheritances, TWithMethods {
3✔
37

38
    private Collection<TAttribute> attributes; 
39

40
    private Collection<TComment> comments; 
41

42
    private Collection<TEnumValue> enumValues; 
43

44
    private Collection<TParametricEntity> genericEntities; 
45

46
    private Collection<TImport> imports; 
47

48
    private Collection<TImport> incomingImports; 
49

50
    private Collection<TReference> incomingReferences; 
51

52
    private Collection<TEntityTyping> incomingTypings; 
53

54
    private Boolean isStub;
55
    
56
    private Collection<TMethod> methods; 
57

58
    private String name;
59
    
60
    private Number numberOfLinesOfCode;
61
    
62
    private Collection<TConcretization> outgoingConcretizations; 
63

64
    private Collection<TInvocation> receivingInvocations; 
65

66
    private TSourceAnchor sourceAnchor;
67
    
68
    private Collection<TInheritance> subInheritances; 
69

70
    private Collection<TInheritance> superInheritances; 
71

72
    private TWithTypes typeContainer;
73
    
74
    private String visibility;
75
    
76

77

78
    @FameProperty(name = "attributes", opposite = "parentType", derived = true)
79
    public Collection<TAttribute> getAttributes() {
80
        if (attributes == null) {
3✔
81
            attributes = new MultivalueSet<TAttribute>() {
12✔
82
                @Override
83
                protected void clearOpposite(TAttribute e) {
84
                    e.setParentType(null);
×
85
                }
×
86
                @Override
87
                protected void setOpposite(TAttribute e) {
88
                    e.setParentType(Enum.this);
4✔
89
                }
1✔
90
            };
91
        }
92
        return attributes;
3✔
93
    }
94
    
95
    public void setAttributes(Collection<? extends TAttribute> attributes) {
96
        this.getAttributes().clear();
×
97
        this.getAttributes().addAll(attributes);
×
98
    }                    
×
99
    
100
        
101
    public void addAttributes(TAttribute one) {
102
        this.getAttributes().add(one);
×
103
    }   
×
104
    
105
    public void addAttributes(TAttribute one, TAttribute... many) {
106
        this.getAttributes().add(one);
×
107
        for (TAttribute each : many)
×
108
            this.getAttributes().add(each);
×
109
    }   
×
110
    
111
    public void addAttributes(Iterable<? extends TAttribute> many) {
112
        for (TAttribute each : many)
×
113
            this.getAttributes().add(each);
×
114
    }   
×
115
                
116
    public void addAttributes(TAttribute[] many) {
117
        for (TAttribute each : many)
×
118
            this.getAttributes().add(each);
×
119
    }
×
120
    
121
    public int numberOfAttributes() {
122
        return getAttributes().size();
×
123
    }
124

125
    public boolean hasAttributes() {
126
        return !getAttributes().isEmpty();
×
127
    }
128

129
    @FameProperty(name = "comments", opposite = "commentedEntity", derived = true)
130
    public Collection<TComment> getComments() {
131
        if (comments == null) {
3✔
132
            comments = new MultivalueSet<TComment>() {
12✔
133
                @Override
134
                protected void clearOpposite(TComment e) {
135
                    e.setCommentedEntity(null);
×
136
                }
×
137
                @Override
138
                protected void setOpposite(TComment e) {
139
                    e.setCommentedEntity(Enum.this);
4✔
140
                }
1✔
141
            };
142
        }
143
        return comments;
3✔
144
    }
145
    
146
    public void setComments(Collection<? extends TComment> comments) {
147
        this.getComments().clear();
×
148
        this.getComments().addAll(comments);
×
149
    }                    
×
150
    
151
        
152
    public void addComments(TComment one) {
153
        this.getComments().add(one);
×
154
    }   
×
155
    
156
    public void addComments(TComment one, TComment... many) {
157
        this.getComments().add(one);
×
158
        for (TComment each : many)
×
159
            this.getComments().add(each);
×
160
    }   
×
161
    
162
    public void addComments(Iterable<? extends TComment> many) {
163
        for (TComment each : many)
×
164
            this.getComments().add(each);
×
165
    }   
×
166
                
167
    public void addComments(TComment[] many) {
168
        for (TComment each : many)
×
169
            this.getComments().add(each);
×
170
    }
×
171
    
172
    public int numberOfComments() {
173
        return getComments().size();
×
174
    }
175

176
    public boolean hasComments() {
177
        return !getComments().isEmpty();
×
178
    }
179

180
    @FameProperty(name = "enumValues", opposite = "parentEnum", derived = true)
181
    public Collection<TEnumValue> getEnumValues() {
182
        if (enumValues == null) {
3✔
183
            enumValues = new MultivalueSet<TEnumValue>() {
12✔
184
                @Override
185
                protected void clearOpposite(TEnumValue e) {
186
                    e.setParentEnum(null);
×
187
                }
×
188
                @Override
189
                protected void setOpposite(TEnumValue e) {
190
                    e.setParentEnum(Enum.this);
4✔
191
                }
1✔
192
            };
193
        }
194
        return enumValues;
3✔
195
    }
196
    
197
    public void setEnumValues(Collection<? extends TEnumValue> enumValues) {
198
        this.getEnumValues().clear();
×
199
        this.getEnumValues().addAll(enumValues);
×
200
    }                    
×
201
    
202
        
203
    public void addEnumValues(TEnumValue one) {
204
        this.getEnumValues().add(one);
×
205
    }   
×
206
    
207
    public void addEnumValues(TEnumValue one, TEnumValue... many) {
208
        this.getEnumValues().add(one);
×
209
        for (TEnumValue each : many)
×
210
            this.getEnumValues().add(each);
×
211
    }   
×
212
    
213
    public void addEnumValues(Iterable<? extends TEnumValue> many) {
214
        for (TEnumValue each : many)
×
215
            this.getEnumValues().add(each);
×
216
    }   
×
217
                
218
    public void addEnumValues(TEnumValue[] many) {
219
        for (TEnumValue each : many)
×
220
            this.getEnumValues().add(each);
×
221
    }
×
222
    
223
    public int numberOfEnumValues() {
224
        return getEnumValues().size();
×
225
    }
226

227
    public boolean hasEnumValues() {
228
        return !getEnumValues().isEmpty();
×
229
    }
230

231
    @FameProperty(name = "fanIn", derived = true)
232
    public Number getFanIn() {
233
        // TODO: this is a derived property, implement this method manually.
234
        throw new UnsupportedOperationException("Not yet implemented!");  
×
235
    }
236
    
237
    @FameProperty(name = "fanOut", derived = true)
238
    public Number getFanOut() {
239
        // TODO: this is a derived property, implement this method manually.
240
        throw new UnsupportedOperationException("Not yet implemented!");  
×
241
    }
242

243
    @FameProperty(name = "hasComments", derived = true)
244
    public Boolean getHasComments() {
245
        // TODO: this is a derived property, implement this method manually.
246
        throw new UnsupportedOperationException("Not yet implemented!");  
×
247
    }
248
    
249
    @FameProperty(name = "hierarchyNestingLevel", derived = true)
250
    public Number getHierarchyNestingLevel() {
251
        // TODO: this is a derived property, implement this method manually.
252
        throw new UnsupportedOperationException("Not yet implemented!");  
×
253
    }
254
    
255
    @FameProperty(name = "imports", opposite = "importingEntity", derived = true)
256
    public Collection<TImport> getImports() {
257
        if (imports == null) {
3!
258
            imports = new MultivalueSet<TImport>() {
12✔
259
                @Override
260
                protected void clearOpposite(TImport e) {
NEW
261
                    e.setImportingEntity(null);
×
NEW
262
                }
×
263
                @Override
264
                protected void setOpposite(TImport e) {
NEW
265
                    e.setImportingEntity(Enum.this);
×
NEW
266
                }
×
267
            };
268
        }
269
        return imports;
3✔
270
    }
271
    
272
    public void setImports(Collection<? extends TImport> imports) {
NEW
273
        this.getImports().clear();
×
NEW
274
        this.getImports().addAll(imports);
×
NEW
275
    }                    
×
276
    
277
        
278
    public void addImports(TImport one) {
NEW
279
        this.getImports().add(one);
×
NEW
280
    }   
×
281
    
282
    public void addImports(TImport one, TImport... many) {
NEW
283
        this.getImports().add(one);
×
NEW
284
        for (TImport each : many)
×
NEW
285
            this.getImports().add(each);
×
NEW
286
    }   
×
287
    
288
    public void addImports(Iterable<? extends TImport> many) {
NEW
289
        for (TImport each : many)
×
NEW
290
            this.getImports().add(each);
×
NEW
291
    }   
×
292
                
293
    public void addImports(TImport[] many) {
NEW
294
        for (TImport each : many)
×
NEW
295
            this.getImports().add(each);
×
NEW
296
    }
×
297
    
298
    public int numberOfImports() {
NEW
299
        return getImports().size();
×
300
    }
301

302
    public boolean hasImports() {
NEW
303
        return !getImports().isEmpty();
×
304
    }
305

306
    @FameProperty(name = "incomingImports", opposite = "importedEntity", derived = true)
307
    public Collection<TImport> getIncomingImports() {
308
        if (incomingImports == null) {
3!
309
            incomingImports = new MultivalueSet<TImport>() {
12✔
310
                @Override
311
                protected void clearOpposite(TImport e) {
312
                    e.setImportedEntity(null);
×
313
                }
×
314
                @Override
315
                protected void setOpposite(TImport e) {
316
                    e.setImportedEntity(Enum.this);
×
317
                }
×
318
            };
319
        }
320
        return incomingImports;
3✔
321
    }
322
    
323
    public void setIncomingImports(Collection<? extends TImport> incomingImports) {
324
        this.getIncomingImports().clear();
×
325
        this.getIncomingImports().addAll(incomingImports);
×
326
    }                    
×
327
    
328
        
329
    public void addIncomingImports(TImport one) {
330
        this.getIncomingImports().add(one);
×
331
    }   
×
332
    
333
    public void addIncomingImports(TImport one, TImport... many) {
334
        this.getIncomingImports().add(one);
×
335
        for (TImport each : many)
×
336
            this.getIncomingImports().add(each);
×
337
    }   
×
338
    
339
    public void addIncomingImports(Iterable<? extends TImport> many) {
340
        for (TImport each : many)
×
341
            this.getIncomingImports().add(each);
×
342
    }   
×
343
                
344
    public void addIncomingImports(TImport[] many) {
345
        for (TImport each : many)
×
346
            this.getIncomingImports().add(each);
×
347
    }
×
348
    
349
    public int numberOfIncomingImports() {
350
        return getIncomingImports().size();
×
351
    }
352

353
    public boolean hasIncomingImports() {
354
        return !getIncomingImports().isEmpty();
×
355
    }
356

357
    @FameProperty(name = "incomingReferences", opposite = "referredEntity", derived = true)
358
    public Collection<TReference> getIncomingReferences() {
359
        if (incomingReferences == null) {
3✔
360
            incomingReferences = new MultivalueSet<TReference>() {
12✔
361
                @Override
362
                protected void clearOpposite(TReference e) {
363
                    e.setReferredEntity(null);
×
364
                }
×
365
                @Override
366
                protected void setOpposite(TReference e) {
367
                    e.setReferredEntity(Enum.this);
4✔
368
                }
1✔
369
            };
370
        }
371
        return incomingReferences;
3✔
372
    }
373
    
374
    public void setIncomingReferences(Collection<? extends TReference> incomingReferences) {
375
        this.getIncomingReferences().clear();
×
376
        this.getIncomingReferences().addAll(incomingReferences);
×
377
    }                    
×
378
    
379
        
380
    public void addIncomingReferences(TReference one) {
381
        this.getIncomingReferences().add(one);
×
382
    }   
×
383
    
384
    public void addIncomingReferences(TReference one, TReference... many) {
385
        this.getIncomingReferences().add(one);
×
386
        for (TReference each : many)
×
387
            this.getIncomingReferences().add(each);
×
388
    }   
×
389
    
390
    public void addIncomingReferences(Iterable<? extends TReference> many) {
391
        for (TReference each : many)
×
392
            this.getIncomingReferences().add(each);
×
393
    }   
×
394
                
395
    public void addIncomingReferences(TReference[] many) {
396
        for (TReference each : many)
×
397
            this.getIncomingReferences().add(each);
×
398
    }
×
399
    
400
    public int numberOfIncomingReferences() {
401
        return getIncomingReferences().size();
×
402
    }
403

404
    public boolean hasIncomingReferences() {
405
        return !getIncomingReferences().isEmpty();
×
406
    }
407

408
    @FameProperty(name = "incomingTypings", opposite = "declaredType", derived = true)
409
    public Collection<TEntityTyping> getIncomingTypings() {
410
        if (incomingTypings == null) {
3✔
411
            incomingTypings = new MultivalueSet<TEntityTyping>() {
12✔
412
                @Override
413
                protected void clearOpposite(TEntityTyping e) {
NEW
414
                    e.setDeclaredType(null);
×
NEW
415
                }
×
416
                @Override
417
                protected void setOpposite(TEntityTyping e) {
418
                    e.setDeclaredType(Enum.this);
4✔
419
                }
1✔
420
            };
421
        }
422
        return incomingTypings;
3✔
423
    }
424
    
425
    public void setIncomingTypings(Collection<? extends TEntityTyping> incomingTypings) {
NEW
426
        this.getIncomingTypings().clear();
×
NEW
427
        this.getIncomingTypings().addAll(incomingTypings);
×
NEW
428
    }                    
×
429
    
430
        
431
    public void addIncomingTypings(TEntityTyping one) {
NEW
432
        this.getIncomingTypings().add(one);
×
NEW
433
    }   
×
434
    
435
    public void addIncomingTypings(TEntityTyping one, TEntityTyping... many) {
NEW
436
        this.getIncomingTypings().add(one);
×
NEW
437
        for (TEntityTyping each : many)
×
NEW
438
            this.getIncomingTypings().add(each);
×
NEW
439
    }   
×
440
    
441
    public void addIncomingTypings(Iterable<? extends TEntityTyping> many) {
NEW
442
        for (TEntityTyping each : many)
×
NEW
443
            this.getIncomingTypings().add(each);
×
NEW
444
    }   
×
445
                
446
    public void addIncomingTypings(TEntityTyping[] many) {
NEW
447
        for (TEntityTyping each : many)
×
NEW
448
            this.getIncomingTypings().add(each);
×
NEW
449
    }
×
450
    
451
    public int numberOfIncomingTypings() {
NEW
452
        return getIncomingTypings().size();
×
453
    }
454

455
    public boolean hasIncomingTypings() {
NEW
456
        return !getIncomingTypings().isEmpty();
×
457
    }
458

459
    @FameProperty(name = "isDead", derived = true)
460
    public Boolean getIsDead() {
461
        // TODO: this is a derived property, implement this method manually.
462
        throw new UnsupportedOperationException("Not yet implemented!");  
×
463
    }
464
    
465
    @FameProperty(name = "isPackageVisibility", derived = true)
466
    public Boolean getIsPackageVisibility() {
467
        // TODO: this is a derived property, implement this method manually.
468
        throw new UnsupportedOperationException("Not yet implemented!");  
×
469
    }
470
    
471
    @FameProperty(name = "isPrivate", derived = true)
472
    public Boolean getIsPrivate() {
473
        // TODO: this is a derived property, implement this method manually.
474
        throw new UnsupportedOperationException("Not yet implemented!");  
×
475
    }
476
    
477
    @FameProperty(name = "isProtected", derived = true)
478
    public Boolean getIsProtected() {
479
        // TODO: this is a derived property, implement this method manually.
480
        throw new UnsupportedOperationException("Not yet implemented!");  
×
481
    }
482
    
483
    @FameProperty(name = "isPublic", derived = true)
484
    public Boolean getIsPublic() {
485
        // TODO: this is a derived property, implement this method manually.
486
        throw new UnsupportedOperationException("Not yet implemented!");  
×
487
    }
488
    
489
    @FameProperty(name = "isRoot", derived = true)
490
    public Boolean getIsRoot() {
491
        // TODO: this is a derived property, implement this method manually.
492
        throw new UnsupportedOperationException("Not yet implemented!");  
×
493
    }
494
    
495
    @FameProperty(name = "isStub")
496
    public Boolean getIsStub() {
497
        return isStub;
3✔
498
    }
499

500
    public void setIsStub(Boolean isStub) {
501
        this.isStub = isStub;
3✔
502
    }
1✔
503
    
504
    @FameProperty(name = "methods", opposite = "parentType", derived = true)
505
    public Collection<TMethod> getMethods() {
506
        if (methods == null) {
3✔
507
            methods = new MultivalueSet<TMethod>() {
12✔
508
                @Override
509
                protected void clearOpposite(TMethod e) {
510
                    e.setParentType(null);
×
511
                }
×
512
                @Override
513
                protected void setOpposite(TMethod e) {
514
                    e.setParentType(Enum.this);
4✔
515
                }
1✔
516
            };
517
        }
518
        return methods;
3✔
519
    }
520
    
521
    public void setMethods(Collection<? extends TMethod> methods) {
522
        this.getMethods().clear();
×
523
        this.getMethods().addAll(methods);
×
524
    }                    
×
525
    
526
        
527
    public void addMethods(TMethod one) {
528
        this.getMethods().add(one);
×
529
    }   
×
530
    
531
    public void addMethods(TMethod one, TMethod... many) {
532
        this.getMethods().add(one);
×
533
        for (TMethod each : many)
×
534
            this.getMethods().add(each);
×
535
    }   
×
536
    
537
    public void addMethods(Iterable<? extends TMethod> many) {
538
        for (TMethod each : many)
×
539
            this.getMethods().add(each);
×
540
    }   
×
541
                
542
    public void addMethods(TMethod[] many) {
543
        for (TMethod each : many)
×
544
            this.getMethods().add(each);
×
545
    }
×
546
    
547
    public int numberOfMethods() {
548
        return getMethods().size();
×
549
    }
550

551
    public boolean hasMethods() {
552
        return !getMethods().isEmpty();
×
553
    }
554

555
    @FameProperty(name = "name")
556
    public String getName() {
557
        return name;
3✔
558
    }
559

560
    public void setName(String name) {
561
        this.name = name;
3✔
562
    }
1✔
563
    
564
    @FameProperty(name = "numberOfAbstractMethods", derived = true)
565
    public Number getNumberOfAbstractMethods() {
566
        // TODO: this is a derived property, implement this method manually.
567
        throw new UnsupportedOperationException("Not yet implemented!");  
×
568
    }
569
    
570
    @FameProperty(name = "numberOfAttributes", derived = true)
571
    public Number getNumberOfAttributes() {
572
        // TODO: this is a derived property, implement this method manually.
573
        throw new UnsupportedOperationException("Not yet implemented!");  
×
574
    }
575
    
576
    @FameProperty(name = "numberOfChildren", derived = true)
577
    public Number getNumberOfChildren() {
578
        // TODO: this is a derived property, implement this method manually.
579
        throw new UnsupportedOperationException("Not yet implemented!");  
×
580
    }
581
    
582
    @FameProperty(name = "numberOfComments", derived = true)
583
    public Number getNumberOfComments() {
584
        // TODO: this is a derived property, implement this method manually.
585
        throw new UnsupportedOperationException("Not yet implemented!");  
×
586
    }
587
    
588
    @FameProperty(name = "numberOfDeadChildren", derived = true)
589
    public Number getNumberOfDeadChildren() {
590
        // TODO: this is a derived property, implement this method manually.
591
        throw new UnsupportedOperationException("Not yet implemented!");  
×
592
    }
593
    
594
    @FameProperty(name = "numberOfDirectSubclasses", derived = true)
595
    public Number getNumberOfDirectSubclasses() {
596
        // TODO: this is a derived property, implement this method manually.
597
        throw new UnsupportedOperationException("Not yet implemented!");  
×
598
    }
599
    
600
    @FameProperty(name = "numberOfExternalClients", derived = true)
601
    public Number getNumberOfExternalClients() {
602
        // TODO: this is a derived property, implement this method manually.
603
        throw new UnsupportedOperationException("Not yet implemented!");  
×
604
    }
605
    
606
    @FameProperty(name = "numberOfExternalProviders", derived = true)
607
    public Number getNumberOfExternalProviders() {
608
        // TODO: this is a derived property, implement this method manually.
609
        throw new UnsupportedOperationException("Not yet implemented!");  
×
610
    }
611
    
612
    @FameProperty(name = "numberOfInternalClients", derived = true)
613
    public Number getNumberOfInternalClients() {
614
        // TODO: this is a derived property, implement this method manually.
615
        throw new UnsupportedOperationException("Not yet implemented!");  
×
616
    }
617
    
618
    @FameProperty(name = "numberOfInternalProviders", derived = true)
619
    public Number getNumberOfInternalProviders() {
620
        // TODO: this is a derived property, implement this method manually.
621
        throw new UnsupportedOperationException("Not yet implemented!");  
×
622
    }
623
    
624
    @FameProperty(name = "numberOfLinesOfCode")
625
    public Number getNumberOfLinesOfCode() {
626
        return numberOfLinesOfCode;
3✔
627
    }
628

629
    public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) {
630
        this.numberOfLinesOfCode = numberOfLinesOfCode;
×
631
    }
×
632
    
633
    @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true)
634
    public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() {
635
        // TODO: this is a derived property, implement this method manually.
636
        throw new UnsupportedOperationException("Not yet implemented!");  
×
637
    }
638
    
639
    @FameProperty(name = "numberOfMethods", derived = true)
640
    public Number getNumberOfMethods() {
641
        // TODO: this is a derived property, implement this method manually.
642
        throw new UnsupportedOperationException("Not yet implemented!");  
×
643
    }
644
    
645
    @FameProperty(name = "numberOfSubclasses", derived = true)
646
    public Number getNumberOfSubclasses() {
647
        // TODO: this is a derived property, implement this method manually.
648
        throw new UnsupportedOperationException("Not yet implemented!");  
×
649
    }
650
    
651
    @FameProperty(name = "outgoingConcretizations", opposite = "typeArgument", derived = true)
652
    public Collection<TConcretization> getOutgoingConcretizations() {
653
        if (outgoingConcretizations == null) {
3✔
654
            outgoingConcretizations = new MultivalueSet<TConcretization>() {
12✔
655
                @Override
656
                protected void clearOpposite(TConcretization e) {
NEW
657
                    e.setTypeArgument(null);
×
UNCOV
658
                }
×
659
                @Override
660
                protected void setOpposite(TConcretization e) {
661
                    e.setTypeArgument(Enum.this);
4✔
662
                }
1✔
663
            };
664
        }
665
        return outgoingConcretizations;
3✔
666
    }
667
    
668
    public void setOutgoingConcretizations(Collection<? extends TConcretization> outgoingConcretizations) {
NEW
669
        this.getOutgoingConcretizations().clear();
×
NEW
670
        this.getOutgoingConcretizations().addAll(outgoingConcretizations);
×
UNCOV
671
    }                    
×
672
    
673
        
674
    public void addOutgoingConcretizations(TConcretization one) {
NEW
675
        this.getOutgoingConcretizations().add(one);
×
UNCOV
676
    }   
×
677
    
678
    public void addOutgoingConcretizations(TConcretization one, TConcretization... many) {
NEW
679
        this.getOutgoingConcretizations().add(one);
×
NEW
680
        for (TConcretization each : many)
×
NEW
681
            this.getOutgoingConcretizations().add(each);
×
UNCOV
682
    }   
×
683
    
684
    public void addOutgoingConcretizations(Iterable<? extends TConcretization> many) {
NEW
685
        for (TConcretization each : many)
×
NEW
686
            this.getOutgoingConcretizations().add(each);
×
UNCOV
687
    }   
×
688
                
689
    public void addOutgoingConcretizations(TConcretization[] many) {
NEW
690
        for (TConcretization each : many)
×
NEW
691
            this.getOutgoingConcretizations().add(each);
×
UNCOV
692
    }
×
693
    
694
    public int numberOfOutgoingConcretizations() {
NEW
695
        return getOutgoingConcretizations().size();
×
696
    }
697

698
    public boolean hasOutgoingConcretizations() {
NEW
699
        return !getOutgoingConcretizations().isEmpty();
×
700
    }
701

702
    @FameProperty(name = "receivingInvocations", opposite = "receiver", derived = true)
703
    public Collection<TInvocation> getReceivingInvocations() {
704
        if (receivingInvocations == null) {
3✔
705
            receivingInvocations = new MultivalueSet<TInvocation>() {
12✔
706
                @Override
707
                protected void clearOpposite(TInvocation e) {
NEW
708
                    e.setReceiver(null);
×
NEW
709
                }
×
710
                @Override
711
                protected void setOpposite(TInvocation e) {
712
                    e.setReceiver(Enum.this);
4✔
713
                }
1✔
714
            };
715
        }
716
        return receivingInvocations;
3✔
717
    }
718
    
719
    public void setReceivingInvocations(Collection<? extends TInvocation> receivingInvocations) {
NEW
720
        this.getReceivingInvocations().clear();
×
NEW
721
        this.getReceivingInvocations().addAll(receivingInvocations);
×
NEW
722
    }                    
×
723
    
724
        
725
    public void addReceivingInvocations(TInvocation one) {
NEW
726
        this.getReceivingInvocations().add(one);
×
NEW
727
    }   
×
728
    
729
    public void addReceivingInvocations(TInvocation one, TInvocation... many) {
NEW
730
        this.getReceivingInvocations().add(one);
×
NEW
731
        for (TInvocation each : many)
×
NEW
732
            this.getReceivingInvocations().add(each);
×
NEW
733
    }   
×
734
    
735
    public void addReceivingInvocations(Iterable<? extends TInvocation> many) {
NEW
736
        for (TInvocation each : many)
×
NEW
737
            this.getReceivingInvocations().add(each);
×
NEW
738
    }   
×
739
                
740
    public void addReceivingInvocations(TInvocation[] many) {
NEW
741
        for (TInvocation each : many)
×
NEW
742
            this.getReceivingInvocations().add(each);
×
UNCOV
743
    }
×
744
    
745
    public int numberOfReceivingInvocations() {
NEW
746
        return getReceivingInvocations().size();
×
747
    }
748

749
    public boolean hasReceivingInvocations() {
NEW
750
        return !getReceivingInvocations().isEmpty();
×
751
    }
752

753
    @FameProperty(name = "sourceAnchor", opposite = "element", derived = true)
754
    public TSourceAnchor getSourceAnchor() {
755
        return sourceAnchor;
3✔
756
    }
757

758
    public void setSourceAnchor(TSourceAnchor sourceAnchor) {
759
        if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) {
11!
760
            TSourceAnchor old_sourceAnchor = this.sourceAnchor;
3✔
761
            this.sourceAnchor = sourceAnchor;
3✔
762
            if (old_sourceAnchor != null) old_sourceAnchor.setElement(null);
2!
763
            if (sourceAnchor != null) sourceAnchor.setElement(this);
5!
764
        }
765
    }
1✔
766
    
767
    @FameProperty(name = "sourceText", derived = true)
768
    public String getSourceText() {
769
        // TODO: this is a derived property, implement this method manually.
770
        throw new UnsupportedOperationException("Not yet implemented!");  
×
771
    }
772
    
773
    @FameProperty(name = "subInheritances", opposite = "superclass", derived = true)
774
    public Collection<TInheritance> getSubInheritances() {
775
        if (subInheritances == null) {
3✔
776
            subInheritances = new MultivalueSet<TInheritance>() {
12✔
777
                @Override
778
                protected void clearOpposite(TInheritance e) {
779
                    e.setSuperclass(null);
×
780
                }
×
781
                @Override
782
                protected void setOpposite(TInheritance e) {
783
                    e.setSuperclass(Enum.this);
4✔
784
                }
1✔
785
            };
786
        }
787
        return subInheritances;
3✔
788
    }
789
    
790
    public void setSubInheritances(Collection<? extends TInheritance> subInheritances) {
791
        this.getSubInheritances().clear();
×
792
        this.getSubInheritances().addAll(subInheritances);
×
793
    }                    
×
794
    
795
        
796
    public void addSubInheritances(TInheritance one) {
797
        this.getSubInheritances().add(one);
×
798
    }   
×
799
    
800
    public void addSubInheritances(TInheritance one, TInheritance... many) {
801
        this.getSubInheritances().add(one);
×
802
        for (TInheritance each : many)
×
803
            this.getSubInheritances().add(each);
×
804
    }   
×
805
    
806
    public void addSubInheritances(Iterable<? extends TInheritance> many) {
807
        for (TInheritance each : many)
×
808
            this.getSubInheritances().add(each);
×
809
    }   
×
810
                
811
    public void addSubInheritances(TInheritance[] many) {
812
        for (TInheritance each : many)
×
813
            this.getSubInheritances().add(each);
×
814
    }
×
815
    
816
    public int numberOfSubInheritances() {
817
        return getSubInheritances().size();
×
818
    }
819

820
    public boolean hasSubInheritances() {
821
        return !getSubInheritances().isEmpty();
×
822
    }
823

824
    @FameProperty(name = "subclassHierarchyDepth", derived = true)
825
    public Number getSubclassHierarchyDepth() {
826
        // TODO: this is a derived property, implement this method manually.
827
        throw new UnsupportedOperationException("Not yet implemented!");  
×
828
    }
829
    
830
    @FameProperty(name = "superInheritances", opposite = "subclass", derived = true)
831
    public Collection<TInheritance> getSuperInheritances() {
832
        if (superInheritances == null) {
3✔
833
            superInheritances = new MultivalueSet<TInheritance>() {
12✔
834
                @Override
835
                protected void clearOpposite(TInheritance e) {
836
                    e.setSubclass(null);
×
837
                }
×
838
                @Override
839
                protected void setOpposite(TInheritance e) {
840
                    e.setSubclass(Enum.this);
4✔
841
                }
1✔
842
            };
843
        }
844
        return superInheritances;
3✔
845
    }
846
    
847
    public void setSuperInheritances(Collection<? extends TInheritance> superInheritances) {
848
        this.getSuperInheritances().clear();
×
849
        this.getSuperInheritances().addAll(superInheritances);
×
850
    }                    
×
851
    
852
        
853
    public void addSuperInheritances(TInheritance one) {
854
        this.getSuperInheritances().add(one);
×
855
    }   
×
856
    
857
    public void addSuperInheritances(TInheritance one, TInheritance... many) {
858
        this.getSuperInheritances().add(one);
×
859
        for (TInheritance each : many)
×
860
            this.getSuperInheritances().add(each);
×
861
    }   
×
862
    
863
    public void addSuperInheritances(Iterable<? extends TInheritance> many) {
864
        for (TInheritance each : many)
×
865
            this.getSuperInheritances().add(each);
×
866
    }   
×
867
                
868
    public void addSuperInheritances(TInheritance[] many) {
869
        for (TInheritance each : many)
×
870
            this.getSuperInheritances().add(each);
×
871
    }
×
872
    
873
    public int numberOfSuperInheritances() {
874
        return getSuperInheritances().size();
×
875
    }
876

877
    public boolean hasSuperInheritances() {
878
        return !getSuperInheritances().isEmpty();
×
879
    }
880

881
    @FameProperty(name = "tightClassCohesion", derived = true)
882
    public Number getTightClassCohesion() {
883
        // TODO: this is a derived property, implement this method manually.
884
        throw new UnsupportedOperationException("Not yet implemented!");  
×
885
    }
886
    
887
    @FameProperty(name = "typeContainer", opposite = "types", container = true)
888
    public TWithTypes getTypeContainer() {
889
        return typeContainer;
3✔
890
    }
891

892
    public void setTypeContainer(TWithTypes typeContainer) {
893
        if (this.typeContainer != null) {
3✔
894
            if (this.typeContainer.equals(typeContainer)) return;
6!
895
            this.typeContainer.getTypes().remove(this);
×
896
        }
897
        this.typeContainer = typeContainer;
3✔
898
        if (typeContainer == null) return;
2!
899
        typeContainer.getTypes().add(this);
5✔
900
    }
1✔
901
    
902
    @FameProperty(name = "visibility")
903
    public String getVisibility() {
904
        return visibility;
3✔
905
    }
906

907
    public void setVisibility(String visibility) {
908
        this.visibility = visibility;
3✔
909
    }
1✔
910
    
911
    @FameProperty(name = "weightedMethodCount", derived = true)
912
    public Number getWeightedMethodCount() {
913
        // TODO: this is a derived property, implement this method manually.
914
        throw new UnsupportedOperationException("Not yet implemented!");  
×
915
    }
916
    
917

918

919
}
920

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc