• 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

19.79
/app/src/main/java/org/moosetechnology/model/famix/famixjavaentities/Interface.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.TCanBeClassSide;
11
import org.moosetechnology.model.famix.famixtraits.TCanBeFinal;
12
import org.moosetechnology.model.famix.famixtraits.TComment;
13

14
import org.moosetechnology.model.famix.famixtraits.TConcretization;
15
import org.moosetechnology.model.famix.famixtraits.THasVisibility;
16
import org.moosetechnology.model.famix.famixtraits.TImplementable;
17
import org.moosetechnology.model.famix.famixtraits.TImplementation;
18
import org.moosetechnology.model.famix.famixtraits.TImport;
19
import org.moosetechnology.model.famix.famixtraits.TImportable;
20
import org.moosetechnology.model.famix.famixtraits.TInheritance;
21
import org.moosetechnology.model.famix.famixtraits.TInvocation;
22
import org.moosetechnology.model.famix.famixtraits.TInvocationsReceiver;
23
import org.moosetechnology.model.famix.famixtraits.TMethod;
24
import org.moosetechnology.model.famix.famixtraits.TPackage;
25
import org.moosetechnology.model.famix.famixtraits.TPackageable;
26
import org.moosetechnology.model.famix.famixtraits.TParametricEntity;
27
import org.moosetechnology.model.famix.famixtraits.TTypeArgument;
28
import org.moosetechnology.model.famix.famixtraits.TWithAttributes;
29
import org.moosetechnology.model.famix.famixtraits.TWithComments;
30
import org.moosetechnology.model.famix.famixtraits.TWithImports;
31
import org.moosetechnology.model.famix.famixtraits.TWithInheritances;
32
import org.moosetechnology.model.famix.famixtraits.TWithMethods;
33

34

35
@FamePackage("Famix-Java-Entities")
36
@FameDescription("Interface")
37
public class Interface extends Type implements TCanBeClassSide, TCanBeFinal, TTypeArgument, THasVisibility, TImplementable, TImportable, TInvocationsReceiver, TPackageable, TWithAttributes, TWithComments, TWithImports, TWithInheritances, TWithMethods {
3✔
38

39
    private Collection<TAttribute> attributes; 
40

41
    private Collection<TComment> comments; 
42

43
    private Collection<TParametricEntity> genericEntities; 
44

45
    private Collection<TImplementation> implementations; 
46

47
    private Collection<TImport> imports; 
48

49
    private Collection<TImport> incomingImports; 
50

51
    private Boolean isClassSide;
52
    
53
    private Boolean isFinal;
54
    
55
    private Collection<TMethod> methods; 
56

57
    private Collection<TConcretization> outgoingConcretizations; 
58

59
    private TPackage parentPackage;
60
    
61
    private Collection<TInvocation> receivingInvocations; 
62

63
    private Collection<TInheritance> subInheritances; 
64

65
    private Collection<TInheritance> superInheritances; 
66

67
    private String visibility;
68
    
69

70

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

118
    public boolean hasAttributes() {
119
        return !getAttributes().isEmpty();
×
120
    }
121

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

169
    public boolean hasComments() {
170
        return !getComments().isEmpty();
×
171
    }
172

173

174
    @FameProperty(name = "hasComments", derived = true)
175
    public Boolean getHasComments() {
176
        // TODO: this is a derived property, implement this method manually.
177
        throw new UnsupportedOperationException("Not yet implemented!");  
×
178
    }
179
    
180
    @FameProperty(name = "hierarchyNestingLevel", derived = true)
181
    public Number getHierarchyNestingLevel() {
182
        // TODO: this is a derived property, implement this method manually.
183
        throw new UnsupportedOperationException("Not yet implemented!");  
×
184
    }
185
    
186
    @FameProperty(name = "implementations", opposite = "interface", derived = true)
187
    public Collection<TImplementation> getImplementations() {
188
        if (implementations == null) {
3✔
189
            implementations = new MultivalueSet<TImplementation>() {
12✔
190
                @Override
191
                protected void clearOpposite(TImplementation e) {
192
                    e.setMyInterface(null);
×
193
                }
×
194
                @Override
195
                protected void setOpposite(TImplementation e) {
196
                    e.setMyInterface(Interface.this);
4✔
197
                }
1✔
198
            };
199
        }
200
        return implementations;
3✔
201
    }
202
    
203
    public void setImplementations(Collection<? extends TImplementation> implementations) {
204
        this.getImplementations().clear();
×
205
        this.getImplementations().addAll(implementations);
×
206
    }                    
×
207
    
208
        
209
    public void addImplementations(TImplementation one) {
210
        this.getImplementations().add(one);
×
211
    }   
×
212
    
213
    public void addImplementations(TImplementation one, TImplementation... many) {
214
        this.getImplementations().add(one);
×
215
        for (TImplementation each : many)
×
216
            this.getImplementations().add(each);
×
217
    }   
×
218
    
219
    public void addImplementations(Iterable<? extends TImplementation> many) {
220
        for (TImplementation each : many)
×
221
            this.getImplementations().add(each);
×
222
    }   
×
223
                
224
    public void addImplementations(TImplementation[] many) {
225
        for (TImplementation each : many)
×
226
            this.getImplementations().add(each);
×
227
    }
×
228
    
229
    public int numberOfImplementations() {
230
        return getImplementations().size();
×
231
    }
232

233
    public boolean hasImplementations() {
234
        return !getImplementations().isEmpty();
×
235
    }
236

237
    @FameProperty(name = "imports", opposite = "importingEntity", derived = true)
238
    public Collection<TImport> getImports() {
239
        if (imports == null) {
3✔
240
            imports = new MultivalueSet<TImport>() {
12✔
241
                @Override
242
                protected void clearOpposite(TImport e) {
NEW
243
                    e.setImportingEntity(null);
×
NEW
244
                }
×
245
                @Override
246
                protected void setOpposite(TImport e) {
NEW
247
                    e.setImportingEntity(Interface.this);
×
NEW
248
                }
×
249
            };
250
        }
251
        return imports;
3✔
252
    }
253
    
254
    public void setImports(Collection<? extends TImport> imports) {
NEW
255
        this.getImports().clear();
×
NEW
256
        this.getImports().addAll(imports);
×
NEW
257
    }                    
×
258
    
259
        
260
    public void addImports(TImport one) {
NEW
261
        this.getImports().add(one);
×
NEW
262
    }   
×
263
    
264
    public void addImports(TImport one, TImport... many) {
NEW
265
        this.getImports().add(one);
×
NEW
266
        for (TImport each : many)
×
NEW
267
            this.getImports().add(each);
×
NEW
268
    }   
×
269
    
270
    public void addImports(Iterable<? extends TImport> many) {
NEW
271
        for (TImport each : many)
×
NEW
272
            this.getImports().add(each);
×
NEW
273
    }   
×
274
                
275
    public void addImports(TImport[] many) {
NEW
276
        for (TImport each : many)
×
NEW
277
            this.getImports().add(each);
×
NEW
278
    }
×
279
    
280
    public int numberOfImports() {
NEW
281
        return getImports().size();
×
282
    }
283

284
    public boolean hasImports() {
NEW
285
        return !getImports().isEmpty();
×
286
    }
287

288
    @FameProperty(name = "incomingImports", opposite = "importedEntity", derived = true)
289
    public Collection<TImport> getIncomingImports() {
290
        if (incomingImports == null) {
3✔
291
            incomingImports = new MultivalueSet<TImport>() {
12✔
292
                @Override
293
                protected void clearOpposite(TImport e) {
294
                    e.setImportedEntity(null);
×
295
                }
×
296
                @Override
297
                protected void setOpposite(TImport e) {
298
                    e.setImportedEntity(Interface.this);
×
299
                }
×
300
            };
301
        }
302
        return incomingImports;
3✔
303
    }
304
    
305
    public void setIncomingImports(Collection<? extends TImport> incomingImports) {
306
        this.getIncomingImports().clear();
×
307
        this.getIncomingImports().addAll(incomingImports);
×
308
    }                    
×
309
    
310
        
311
    public void addIncomingImports(TImport one) {
312
        this.getIncomingImports().add(one);
×
313
    }   
×
314
    
315
    public void addIncomingImports(TImport one, TImport... many) {
316
        this.getIncomingImports().add(one);
×
317
        for (TImport each : many)
×
318
            this.getIncomingImports().add(each);
×
319
    }   
×
320
    
321
    public void addIncomingImports(Iterable<? extends TImport> many) {
322
        for (TImport each : many)
×
323
            this.getIncomingImports().add(each);
×
324
    }   
×
325
                
326
    public void addIncomingImports(TImport[] many) {
327
        for (TImport each : many)
×
328
            this.getIncomingImports().add(each);
×
329
    }
×
330
    
331
    public int numberOfIncomingImports() {
332
        return getIncomingImports().size();
×
333
    }
334

335
    public boolean hasIncomingImports() {
336
        return !getIncomingImports().isEmpty();
×
337
    }
338

339
    @FameProperty(name = "isClassSide")
340
    public Boolean getIsClassSide() {
341
        return isClassSide;
3✔
342
    }
343

344
    public void setIsClassSide(Boolean isClassSide) {
345
        this.isClassSide = isClassSide;
3✔
346
    }
1✔
347
    
348
    @FameProperty(name = "isFinal")
349
    public Boolean getIsFinal() {
350
        return isFinal;
3✔
351
    }
352

353
    public void setIsFinal(Boolean isFinal) {
354
        this.isFinal = isFinal;
3✔
355
    }
1✔
356
    
357
    @FameProperty(name = "isPackageVisibility", derived = true)
358
    public Boolean getIsPackageVisibility() {
359
        // TODO: this is a derived property, implement this method manually.
360
        throw new UnsupportedOperationException("Not yet implemented!");  
×
361
    }
362
    
363
    @FameProperty(name = "isPrivate", derived = true)
364
    public Boolean getIsPrivate() {
365
        // TODO: this is a derived property, implement this method manually.
366
        throw new UnsupportedOperationException("Not yet implemented!");  
×
367
    }
368
    
369
    @FameProperty(name = "isProtected", derived = true)
370
    public Boolean getIsProtected() {
371
        // TODO: this is a derived property, implement this method manually.
372
        throw new UnsupportedOperationException("Not yet implemented!");  
×
373
    }
374
    
375
    @FameProperty(name = "isPublic", derived = true)
376
    public Boolean getIsPublic() {
377
        // TODO: this is a derived property, implement this method manually.
378
        throw new UnsupportedOperationException("Not yet implemented!");  
×
379
    }
380
    
381
    @FameProperty(name = "methods", opposite = "parentType", derived = true)
382
    public Collection<TMethod> getMethods() {
383
        if (methods == null) {
3✔
384
            methods = new MultivalueSet<TMethod>() {
12✔
385
                @Override
386
                protected void clearOpposite(TMethod e) {
387
                    e.setParentType(null);
×
388
                }
×
389
                @Override
390
                protected void setOpposite(TMethod e) {
391
                    e.setParentType(Interface.this);
4✔
392
                }
1✔
393
            };
394
        }
395
        return methods;
3✔
396
    }
397
    
398
    public void setMethods(Collection<? extends TMethod> methods) {
399
        this.getMethods().clear();
×
400
        this.getMethods().addAll(methods);
×
401
    }                    
×
402
    
403
        
404
    public void addMethods(TMethod one) {
405
        this.getMethods().add(one);
×
406
    }   
×
407
    
408
    public void addMethods(TMethod one, TMethod... many) {
409
        this.getMethods().add(one);
×
410
        for (TMethod each : many)
×
411
            this.getMethods().add(each);
×
412
    }   
×
413
    
414
    public void addMethods(Iterable<? extends TMethod> many) {
415
        for (TMethod each : many)
×
416
            this.getMethods().add(each);
×
417
    }   
×
418
                
419
    public void addMethods(TMethod[] many) {
420
        for (TMethod each : many)
×
421
            this.getMethods().add(each);
×
422
    }
×
423
    
424
    public int numberOfMethods() {
425
        return getMethods().size();
4✔
426
    }
427

428
    public boolean hasMethods() {
429
        return !getMethods().isEmpty();
×
430
    }
431

432
    @FameProperty(name = "numberOfAbstractMethods", derived = true)
433
    public Number getNumberOfAbstractMethods() {
434
        // TODO: this is a derived property, implement this method manually.
435
        throw new UnsupportedOperationException("Not yet implemented!");  
×
436
    }
437
    
438
    @FameProperty(name = "numberOfAttributes", derived = true)
439
    public Number getNumberOfAttributes() {
440
        // TODO: this is a derived property, implement this method manually.
441
        throw new UnsupportedOperationException("Not yet implemented!");  
×
442
    }
443
    
444
    @FameProperty(name = "numberOfComments", derived = true)
445
    public Number getNumberOfComments() {
446
        // TODO: this is a derived property, implement this method manually.
447
        throw new UnsupportedOperationException("Not yet implemented!");  
×
448
    }
449
    
450
    @FameProperty(name = "numberOfDirectSubclasses", derived = true)
451
    public Number getNumberOfDirectSubclasses() {
452
        // TODO: this is a derived property, implement this method manually.
453
        throw new UnsupportedOperationException("Not yet implemented!");  
×
454
    }
455
    
456
    @FameProperty(name = "numberOfMethods", derived = true)
457
    public Number getNumberOfMethods() {
458
        // TODO: this is a derived property, implement this method manually.
459
        throw new UnsupportedOperationException("Not yet implemented!");  
×
460
    }
461
    
462
    @FameProperty(name = "numberOfSubclasses", derived = true)
463
    public Number getNumberOfSubclasses() {
464
        // TODO: this is a derived property, implement this method manually.
465
        throw new UnsupportedOperationException("Not yet implemented!");  
×
466
    }
467
    
468
    @FameProperty(name = "outgoingConcretizations", opposite = "typeArgument", derived = true)
469
    public Collection<TConcretization> getOutgoingConcretizations() {
470
        if (outgoingConcretizations == null) {
3✔
471
            outgoingConcretizations = new MultivalueSet<TConcretization>() {
12✔
472
                @Override
473
                protected void clearOpposite(TConcretization e) {
NEW
474
                    e.setTypeArgument(null);
×
UNCOV
475
                }
×
476
                @Override
477
                protected void setOpposite(TConcretization e) {
478
                    e.setTypeArgument(Interface.this);
4✔
479
                }
1✔
480
            };
481
        }
482
        return outgoingConcretizations;
3✔
483
    }
484
    
485
    public void setOutgoingConcretizations(Collection<? extends TConcretization> outgoingConcretizations) {
NEW
486
        this.getOutgoingConcretizations().clear();
×
NEW
487
        this.getOutgoingConcretizations().addAll(outgoingConcretizations);
×
UNCOV
488
    }                    
×
489
    
490
        
491
    public void addOutgoingConcretizations(TConcretization one) {
NEW
492
        this.getOutgoingConcretizations().add(one);
×
UNCOV
493
    }   
×
494
    
495
    public void addOutgoingConcretizations(TConcretization one, TConcretization... many) {
NEW
496
        this.getOutgoingConcretizations().add(one);
×
NEW
497
        for (TConcretization each : many)
×
NEW
498
            this.getOutgoingConcretizations().add(each);
×
UNCOV
499
    }   
×
500
    
501
    public void addOutgoingConcretizations(Iterable<? extends TConcretization> many) {
NEW
502
        for (TConcretization each : many)
×
NEW
503
            this.getOutgoingConcretizations().add(each);
×
UNCOV
504
    }   
×
505
                
506
    public void addOutgoingConcretizations(TConcretization[] many) {
NEW
507
        for (TConcretization each : many)
×
NEW
508
            this.getOutgoingConcretizations().add(each);
×
UNCOV
509
    }
×
510
    
511
    public int numberOfOutgoingConcretizations() {
NEW
512
        return getOutgoingConcretizations().size();
×
513
    }
514

515
    public boolean hasOutgoingConcretizations() {
NEW
516
        return !getOutgoingConcretizations().isEmpty();
×
517
    }
518

519
    @FameProperty(name = "parentPackage", opposite = "childEntities", container = true)
520
    public TPackage getParentPackage() {
521
        return parentPackage;
3✔
522
    }
523

524
    public void setParentPackage(TPackage parentPackage) {
525
        if (this.parentPackage != null) {
×
526
            if (this.parentPackage.equals(parentPackage)) return;
×
527
            this.parentPackage.getChildEntities().remove(this);
×
528
        }
529
        this.parentPackage = parentPackage;
×
530
        if (parentPackage == null) return;
×
531
        parentPackage.getChildEntities().add(this);
×
532
    }
×
533
    
534
    @FameProperty(name = "receivingInvocations", opposite = "receiver", derived = true)
535
    public Collection<TInvocation> getReceivingInvocations() {
536
        if (receivingInvocations == null) {
3✔
537
            receivingInvocations = new MultivalueSet<TInvocation>() {
12✔
538
                @Override
539
                protected void clearOpposite(TInvocation e) {
540
                    e.setReceiver(null);
×
541
                }
×
542
                @Override
543
                protected void setOpposite(TInvocation e) {
544
                    e.setReceiver(Interface.this);
×
545
                }
×
546
            };
547
        }
548
        return receivingInvocations;
3✔
549
    }
550
    
551
    public void setReceivingInvocations(Collection<? extends TInvocation> receivingInvocations) {
552
        this.getReceivingInvocations().clear();
×
553
        this.getReceivingInvocations().addAll(receivingInvocations);
×
554
    }                    
×
555
    
556
        
557
    public void addReceivingInvocations(TInvocation one) {
558
        this.getReceivingInvocations().add(one);
×
559
    }   
×
560
    
561
    public void addReceivingInvocations(TInvocation one, TInvocation... many) {
562
        this.getReceivingInvocations().add(one);
×
563
        for (TInvocation each : many)
×
564
            this.getReceivingInvocations().add(each);
×
565
    }   
×
566
    
567
    public void addReceivingInvocations(Iterable<? extends TInvocation> many) {
568
        for (TInvocation each : many)
×
569
            this.getReceivingInvocations().add(each);
×
570
    }   
×
571
                
572
    public void addReceivingInvocations(TInvocation[] many) {
573
        for (TInvocation each : many)
×
574
            this.getReceivingInvocations().add(each);
×
575
    }
×
576
    
577
    public int numberOfReceivingInvocations() {
578
        return getReceivingInvocations().size();
×
579
    }
580

581
    public boolean hasReceivingInvocations() {
582
        return !getReceivingInvocations().isEmpty();
×
583
    }
584

585
    @FameProperty(name = "subInheritances", opposite = "superclass", derived = true)
586
    public Collection<TInheritance> getSubInheritances() {
587
        if (subInheritances == null) {
3✔
588
            subInheritances = new MultivalueSet<TInheritance>() {
12✔
589
                @Override
590
                protected void clearOpposite(TInheritance e) {
591
                    e.setSuperclass(null);
×
592
                }
×
593
                @Override
594
                protected void setOpposite(TInheritance e) {
595
                    e.setSuperclass(Interface.this);
4✔
596
                }
1✔
597
            };
598
        }
599
        return subInheritances;
3✔
600
    }
601
    
602
    public void setSubInheritances(Collection<? extends TInheritance> subInheritances) {
603
        this.getSubInheritances().clear();
×
604
        this.getSubInheritances().addAll(subInheritances);
×
605
    }                    
×
606
    
607
        
608
    public void addSubInheritances(TInheritance one) {
609
        this.getSubInheritances().add(one);
×
610
    }   
×
611
    
612
    public void addSubInheritances(TInheritance one, TInheritance... many) {
613
        this.getSubInheritances().add(one);
×
614
        for (TInheritance each : many)
×
615
            this.getSubInheritances().add(each);
×
616
    }   
×
617
    
618
    public void addSubInheritances(Iterable<? extends TInheritance> many) {
619
        for (TInheritance each : many)
×
620
            this.getSubInheritances().add(each);
×
621
    }   
×
622
                
623
    public void addSubInheritances(TInheritance[] many) {
624
        for (TInheritance each : many)
×
625
            this.getSubInheritances().add(each);
×
626
    }
×
627
    
628
    public int numberOfSubInheritances() {
629
        return getSubInheritances().size();
×
630
    }
631

632
    public boolean hasSubInheritances() {
633
        return !getSubInheritances().isEmpty();
×
634
    }
635

636
    @FameProperty(name = "subclassHierarchyDepth", derived = true)
637
    public Number getSubclassHierarchyDepth() {
638
        // TODO: this is a derived property, implement this method manually.
639
        throw new UnsupportedOperationException("Not yet implemented!");  
×
640
    }
641
    
642
    @FameProperty(name = "superInheritances", opposite = "subclass", derived = true)
643
    public Collection<TInheritance> getSuperInheritances() {
644
        if (superInheritances == null) {
3✔
645
            superInheritances = new MultivalueSet<TInheritance>() {
12✔
646
                @Override
647
                protected void clearOpposite(TInheritance e) {
648
                    e.setSubclass(null);
×
649
                }
×
650
                @Override
651
                protected void setOpposite(TInheritance e) {
652
                    e.setSubclass(Interface.this);
4✔
653
                }
1✔
654
            };
655
        }
656
        return superInheritances;
3✔
657
    }
658
    
659
    public void setSuperInheritances(Collection<? extends TInheritance> superInheritances) {
660
        this.getSuperInheritances().clear();
×
661
        this.getSuperInheritances().addAll(superInheritances);
×
662
    }                    
×
663
    
664
        
665
    public void addSuperInheritances(TInheritance one) {
666
        this.getSuperInheritances().add(one);
×
667
    }   
×
668
    
669
    public void addSuperInheritances(TInheritance one, TInheritance... many) {
670
        this.getSuperInheritances().add(one);
×
671
        for (TInheritance each : many)
×
672
            this.getSuperInheritances().add(each);
×
673
    }   
×
674
    
675
    public void addSuperInheritances(Iterable<? extends TInheritance> many) {
676
        for (TInheritance each : many)
×
677
            this.getSuperInheritances().add(each);
×
678
    }   
×
679
                
680
    public void addSuperInheritances(TInheritance[] many) {
681
        for (TInheritance each : many)
×
682
            this.getSuperInheritances().add(each);
×
683
    }
×
684
    
685
    public int numberOfSuperInheritances() {
686
        return getSuperInheritances().size();
×
687
    }
688

689
    public boolean hasSuperInheritances() {
690
        return !getSuperInheritances().isEmpty();
×
691
    }
692

693
    @FameProperty(name = "tightClassCohesion", derived = true)
694
    public Number getTightClassCohesion() {
695
        // TODO: this is a derived property, implement this method manually.
696
        throw new UnsupportedOperationException("Not yet implemented!");  
×
697
    }
698
    
699
    @FameProperty(name = "visibility")
700
    public String getVisibility() {
701
        return visibility;
3✔
702
    }
703

704
    public void setVisibility(String visibility) {
705
        this.visibility = visibility;
3✔
706
    }
1✔
707
    
708
    @FameProperty(name = "weightedMethodCount", derived = true)
709
    public Number getWeightedMethodCount() {
710
        // TODO: this is a derived property, implement this method manually.
711
        throw new UnsupportedOperationException("Not yet implemented!");  
×
712
    }
713
    
714

715

716
}
717

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