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

moosetechnology / VerveineJ / 14660115829

25 Apr 2025 08:16AM UTC coverage: 50.58% (+0.6%) from 49.972%
14660115829

Pull #127

github

web-flow
Merge 56b1c8e73 into 5207a6c7c
Pull Request #127: New generics implementation

1876 of 3946 branches covered (47.54%)

Branch coverage included in aggregate %.

486 of 1087 new or added lines in 52 files covered. (44.71%)

56 existing lines in 10 files now uncovered.

4270 of 8205 relevant lines covered (52.04%)

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
import org.moosetechnology.model.famix.famixtraits.TConcreteType;
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.TWithAttributes;
28
import org.moosetechnology.model.famix.famixtraits.TWithComments;
29
import org.moosetechnology.model.famix.famixtraits.TWithImports;
30
import org.moosetechnology.model.famix.famixtraits.TWithInheritances;
31
import org.moosetechnology.model.famix.famixtraits.TWithMethods;
32

33

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

38
    private Collection<TAttribute> attributes; 
39

40
    private Collection<TComment> comments; 
41

42
    private Collection<TParametricEntity> genericEntities; 
43

44
    private Collection<TImplementation> implementations; 
45

46
    private Collection<TImport> imports; 
47

48
    private Collection<TImport> incomingImports; 
49

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

56
    private Collection<TConcretization> outgoingConcretizations; 
57

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

62
    private Collection<TInheritance> subInheritances; 
63

64
    private Collection<TInheritance> superInheritances; 
65

66
    private String visibility;
67
    
68

69

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

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

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

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

172

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

714

715
}
716

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