• 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

27.15
/app/src/main/java/org/moosetechnology/model/famix/famixjavaentities/Class.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.TCanBeAbstract;
11
import org.moosetechnology.model.famix.famixtraits.TCanBeClassSide;
12
import org.moosetechnology.model.famix.famixtraits.TCanBeFinal;
13
import org.moosetechnology.model.famix.famixtraits.TCanImplement;
14
import org.moosetechnology.model.famix.famixtraits.TClass;
15
import org.moosetechnology.model.famix.famixtraits.TComment;
16
import org.moosetechnology.model.famix.famixtraits.TConcretization;
17
import org.moosetechnology.model.famix.famixtraits.TEntityTyping;
18
import org.moosetechnology.model.famix.famixtraits.THasVisibility;
19
import org.moosetechnology.model.famix.famixtraits.TImplementation;
20
import org.moosetechnology.model.famix.famixtraits.TImport;
21
import org.moosetechnology.model.famix.famixtraits.TImportable;
22
import org.moosetechnology.model.famix.famixtraits.TInheritance;
23
import org.moosetechnology.model.famix.famixtraits.TInvocation;
24
import org.moosetechnology.model.famix.famixtraits.TLCOMMetrics;
25
import org.moosetechnology.model.famix.famixtraits.TMethod;
26
import org.moosetechnology.model.famix.famixtraits.TPackage;
27
import org.moosetechnology.model.famix.famixtraits.TPackageable;
28
import org.moosetechnology.model.famix.famixtraits.TParametricEntity;
29
import org.moosetechnology.model.famix.famixtraits.TReference;
30
import org.moosetechnology.model.famix.famixtraits.TSourceAnchor;
31
import org.moosetechnology.model.famix.famixtraits.TTypeArgument;
32
import org.moosetechnology.model.famix.famixtraits.TWithImports;
33
import org.moosetechnology.model.famix.famixtraits.TWithTypes;
34

35

36
@FamePackage("Famix-Java-Entities")
37
@FameDescription("Class")
38
public class Class extends Type implements TCanBeAbstract, TCanBeClassSide, TCanBeFinal, TCanImplement, TClass, TClassMetrics, TTypeArgument, THasVisibility, TImportable, TLCOMMetrics, TPackageable, TWithImports {
3✔
39

40
    private Collection<TAttribute> attributes; 
41

42
    private Collection<TComment> comments; 
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 Collection<TImplementation> interfaceImplementations; 
55

56
    private Boolean isAbstract;
57
    
58
    private Boolean isClassSide;
59
    
60
    private Boolean isFinal;
61
    
62
    private Boolean isStub;
63
    
64
    private Collection<TMethod> methods; 
65

66
    private String name;
67
    
68
    private Number numberOfLinesOfCode;
69
    
70
    private Collection<TConcretization> outgoingConcretizations; 
71

72
    private TPackage parentPackage;
73
    
74
    private Collection<TInvocation> receivingInvocations; 
75

76
    private TSourceAnchor sourceAnchor;
77
    
78
    private Collection<TInheritance> subInheritances; 
79

80
    private Collection<TInheritance> superInheritances; 
81

82
    private TWithTypes typeContainer;
83
    
84
    private String visibility;
85
    
86

87

88
    @FameProperty(name = "isJUnit4TestCase", derived = true)
89
    public Boolean getIsJUnit4TestCase() {
90
        // TODO: this is a derived property, implement this method manually.
NEW
91
        throw new UnsupportedOperationException("Not yet implemented!");  
×
92
    }
93
    
94
    @FameProperty(name = "isTestCase", derived = true)
95
    public Boolean getIsTestCase() {
96
        // TODO: this is a derived property, implement this method manually.
NEW
97
        throw new UnsupportedOperationException("Not yet implemented!");  
×
98
    }
99
    
100
    @FameProperty(name = "attributes", opposite = "parentType", derived = true)
101
    public Collection<TAttribute> getAttributes() {
102
        if (attributes == null) {
3✔
103
            attributes = new MultivalueSet<TAttribute>() {
12✔
104
                @Override
105
                protected void clearOpposite(TAttribute e) {
106
                    e.setParentType(null);
×
107
                }
×
108
                @Override
109
                protected void setOpposite(TAttribute e) {
110
                    e.setParentType(Class.this);
4✔
111
                }
1✔
112
            };
113
        }
114
        return attributes;
3✔
115
    }
116
    
117
    public void setAttributes(Collection<? extends TAttribute> attributes) {
118
        this.getAttributes().clear();
×
119
        this.getAttributes().addAll(attributes);
×
120
    }                    
×
121
    
122
        
123
    public void addAttributes(TAttribute one) {
124
        this.getAttributes().add(one);
×
125
    }   
×
126
    
127
    public void addAttributes(TAttribute one, TAttribute... many) {
128
        this.getAttributes().add(one);
×
129
        for (TAttribute each : many)
×
130
            this.getAttributes().add(each);
×
131
    }   
×
132
    
133
    public void addAttributes(Iterable<? extends TAttribute> many) {
134
        for (TAttribute each : many)
×
135
            this.getAttributes().add(each);
×
136
    }   
×
137
                
138
    public void addAttributes(TAttribute[] many) {
139
        for (TAttribute each : many)
×
140
            this.getAttributes().add(each);
×
141
    }
×
142
    
143
    public int numberOfAttributes() {
144
        return getAttributes().size();
4✔
145
    }
146

147
    public boolean hasAttributes() {
148
        return !getAttributes().isEmpty();
×
149
    }
150

151
    @FameProperty(name = "comments", opposite = "commentedEntity", derived = true)
152
    public Collection<TComment> getComments() {
153
        if (comments == null) {
3✔
154
            comments = new MultivalueSet<TComment>() {
12✔
155
                @Override
156
                protected void clearOpposite(TComment e) {
157
                    e.setCommentedEntity(null);
×
158
                }
×
159
                @Override
160
                protected void setOpposite(TComment e) {
161
                    e.setCommentedEntity(Class.this);
4✔
162
                }
1✔
163
            };
164
        }
165
        return comments;
3✔
166
    }
167
    
168
    public void setComments(Collection<? extends TComment> comments) {
169
        this.getComments().clear();
×
170
        this.getComments().addAll(comments);
×
171
    }                    
×
172
    
173
        
174
    public void addComments(TComment one) {
175
        this.getComments().add(one);
×
176
    }   
×
177
    
178
    public void addComments(TComment one, TComment... many) {
179
        this.getComments().add(one);
×
180
        for (TComment each : many)
×
181
            this.getComments().add(each);
×
182
    }   
×
183
    
184
    public void addComments(Iterable<? extends TComment> many) {
185
        for (TComment each : many)
×
186
            this.getComments().add(each);
×
187
    }   
×
188
                
189
    public void addComments(TComment[] many) {
190
        for (TComment each : many)
×
191
            this.getComments().add(each);
×
192
    }
×
193
    
194
    public int numberOfComments() {
195
        return getComments().size();
×
196
    }
197

198
    public boolean hasComments() {
199
        return !getComments().isEmpty();
×
200
    }
201

202
    @FameProperty(name = "fanIn", derived = true)
203
    public Number getFanIn() {
204
        // TODO: this is a derived property, implement this method manually.
205
        throw new UnsupportedOperationException("Not yet implemented!");  
×
206
    }
207
    
208
    @FameProperty(name = "fanOut", derived = true)
209
    public Number getFanOut() {
210
        // TODO: this is a derived property, implement this method manually.
211
        throw new UnsupportedOperationException("Not yet implemented!");  
×
212
    }
213

214
    @FameProperty(name = "hasComments", derived = true)
215
    public Boolean getHasComments() {
216
        // TODO: this is a derived property, implement this method manually.
217
        throw new UnsupportedOperationException("Not yet implemented!");  
×
218
    }
219
    
220
    @FameProperty(name = "hierarchyNestingLevel", derived = true)
221
    public Number getHierarchyNestingLevel() {
222
        // TODO: this is a derived property, implement this method manually.
223
        throw new UnsupportedOperationException("Not yet implemented!");  
×
224
    }
225
    
226
    @FameProperty(name = "imports", opposite = "importingEntity", derived = true)
227
    public Collection<TImport> getImports() {
228
        if (imports == null) {
3✔
229
            imports = new MultivalueSet<TImport>() {
12✔
230
                @Override
231
                protected void clearOpposite(TImport e) {
NEW
232
                    e.setImportingEntity(null);
×
NEW
233
                }
×
234
                @Override
235
                protected void setOpposite(TImport e) {
NEW
236
                    e.setImportingEntity(Class.this);
×
NEW
237
                }
×
238
            };
239
        }
240
        return imports;
3✔
241
    }
242
    
243
    public void setImports(Collection<? extends TImport> imports) {
NEW
244
        this.getImports().clear();
×
NEW
245
        this.getImports().addAll(imports);
×
NEW
246
    }                    
×
247
    
248
        
249
    public void addImports(TImport one) {
NEW
250
        this.getImports().add(one);
×
NEW
251
    }   
×
252
    
253
    public void addImports(TImport one, TImport... many) {
NEW
254
        this.getImports().add(one);
×
NEW
255
        for (TImport each : many)
×
NEW
256
            this.getImports().add(each);
×
NEW
257
    }   
×
258
    
259
    public void addImports(Iterable<? extends TImport> many) {
NEW
260
        for (TImport each : many)
×
NEW
261
            this.getImports().add(each);
×
NEW
262
    }   
×
263
                
264
    public void addImports(TImport[] many) {
NEW
265
        for (TImport each : many)
×
NEW
266
            this.getImports().add(each);
×
NEW
267
    }
×
268
    
269
    public int numberOfImports() {
NEW
270
        return getImports().size();
×
271
    }
272

273
    public boolean hasImports() {
NEW
274
        return !getImports().isEmpty();
×
275
    }
276

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

324
    public boolean hasIncomingImports() {
325
        return !getIncomingImports().isEmpty();
×
326
    }
327

328
    @FameProperty(name = "incomingReferences", opposite = "referredEntity", derived = true)
329
    public Collection<TReference> getIncomingReferences() {
330
        if (incomingReferences == null) {
3✔
331
            incomingReferences = new MultivalueSet<TReference>() {
12✔
332
                @Override
333
                protected void clearOpposite(TReference e) {
334
                    e.setReferredEntity(null);
×
335
                }
×
336
                @Override
337
                protected void setOpposite(TReference e) {
338
                    e.setReferredEntity(Class.this);
4✔
339
                }
1✔
340
            };
341
        }
342
        return incomingReferences;
3✔
343
    }
344
    
345
    public void setIncomingReferences(Collection<? extends TReference> incomingReferences) {
346
        this.getIncomingReferences().clear();
×
347
        this.getIncomingReferences().addAll(incomingReferences);
×
348
    }                    
×
349
    
350
        
351
    public void addIncomingReferences(TReference one) {
352
        this.getIncomingReferences().add(one);
×
353
    }   
×
354
    
355
    public void addIncomingReferences(TReference one, TReference... many) {
356
        this.getIncomingReferences().add(one);
×
357
        for (TReference each : many)
×
358
            this.getIncomingReferences().add(each);
×
359
    }   
×
360
    
361
    public void addIncomingReferences(Iterable<? extends TReference> many) {
362
        for (TReference each : many)
×
363
            this.getIncomingReferences().add(each);
×
364
    }   
×
365
                
366
    public void addIncomingReferences(TReference[] many) {
367
        for (TReference each : many)
×
368
            this.getIncomingReferences().add(each);
×
369
    }
×
370
    
371
    public int numberOfIncomingReferences() {
372
        return getIncomingReferences().size();
4✔
373
    }
374

375
    public boolean hasIncomingReferences() {
376
        return !getIncomingReferences().isEmpty();
×
377
    }
378

379
    @FameProperty(name = "incomingTypings", opposite = "declaredType", derived = true)
380
    public Collection<TEntityTyping> getIncomingTypings() {
381
        if (incomingTypings == null) {
3✔
382
            incomingTypings = new MultivalueSet<TEntityTyping>() {
12✔
383
                @Override
384
                protected void clearOpposite(TEntityTyping e) {
NEW
385
                    e.setDeclaredType(null);
×
NEW
386
                }
×
387
                @Override
388
                protected void setOpposite(TEntityTyping e) {
389
                    e.setDeclaredType(Class.this);
4✔
390
                }
1✔
391
            };
392
        }
393
        return incomingTypings;
3✔
394
    }
395
    
396
    public void setIncomingTypings(Collection<? extends TEntityTyping> incomingTypings) {
NEW
397
        this.getIncomingTypings().clear();
×
NEW
398
        this.getIncomingTypings().addAll(incomingTypings);
×
NEW
399
    }                    
×
400
    
401
        
402
    public void addIncomingTypings(TEntityTyping one) {
NEW
403
        this.getIncomingTypings().add(one);
×
NEW
404
    }   
×
405
    
406
    public void addIncomingTypings(TEntityTyping one, TEntityTyping... many) {
NEW
407
        this.getIncomingTypings().add(one);
×
NEW
408
        for (TEntityTyping each : many)
×
NEW
409
            this.getIncomingTypings().add(each);
×
NEW
410
    }   
×
411
    
412
    public void addIncomingTypings(Iterable<? extends TEntityTyping> many) {
NEW
413
        for (TEntityTyping each : many)
×
NEW
414
            this.getIncomingTypings().add(each);
×
NEW
415
    }   
×
416
                
417
    public void addIncomingTypings(TEntityTyping[] many) {
NEW
418
        for (TEntityTyping each : many)
×
NEW
419
            this.getIncomingTypings().add(each);
×
NEW
420
    }
×
421
    
422
    public int numberOfIncomingTypings() {
423
        return getIncomingTypings().size();
4✔
424
    }
425

426
    public boolean hasIncomingTypings() {
NEW
427
        return !getIncomingTypings().isEmpty();
×
428
    }
429

430
    @FameProperty(name = "interfaceImplementations", opposite = "implementingClass", derived = true)
431
    public Collection<TImplementation> getInterfaceImplementations() {
432
        if (interfaceImplementations == null) {
3✔
433
            interfaceImplementations = new MultivalueSet<TImplementation>() {
12✔
434
                @Override
435
                protected void clearOpposite(TImplementation e) {
436
                    e.setImplementingClass(null);
×
437
                }
×
438
                @Override
439
                protected void setOpposite(TImplementation e) {
440
                    e.setImplementingClass(Class.this);
4✔
441
                }
1✔
442
            };
443
        }
444
        return interfaceImplementations;
3✔
445
    }
446
    
447
    public void setInterfaceImplementations(Collection<? extends TImplementation> interfaceImplementations) {
448
        this.getInterfaceImplementations().clear();
×
449
        this.getInterfaceImplementations().addAll(interfaceImplementations);
×
450
    }                    
×
451
    
452
        
453
    public void addInterfaceImplementations(TImplementation one) {
454
        this.getInterfaceImplementations().add(one);
×
455
    }   
×
456
    
457
    public void addInterfaceImplementations(TImplementation one, TImplementation... many) {
458
        this.getInterfaceImplementations().add(one);
×
459
        for (TImplementation each : many)
×
460
            this.getInterfaceImplementations().add(each);
×
461
    }   
×
462
    
463
    public void addInterfaceImplementations(Iterable<? extends TImplementation> many) {
464
        for (TImplementation each : many)
×
465
            this.getInterfaceImplementations().add(each);
×
466
    }   
×
467
                
468
    public void addInterfaceImplementations(TImplementation[] many) {
469
        for (TImplementation each : many)
×
470
            this.getInterfaceImplementations().add(each);
×
471
    }
×
472
    
473
    public int numberOfInterfaceImplementations() {
474
        return getInterfaceImplementations().size();
4✔
475
    }
476

477
    public boolean hasInterfaceImplementations() {
478
        return !getInterfaceImplementations().isEmpty();
×
479
    }
480

481
    @FameProperty(name = "isAbstract")
482
    public Boolean getIsAbstract() {
483
        return isAbstract;
3✔
484
    }
485

486
    public void setIsAbstract(Boolean isAbstract) {
487
        this.isAbstract = isAbstract;
3✔
488
    }
1✔
489
    
490
    @FameProperty(name = "isClassSide")
491
    public Boolean getIsClassSide() {
492
        return isClassSide;
3✔
493
    }
494

495
    public void setIsClassSide(Boolean isClassSide) {
496
        this.isClassSide = isClassSide;
3✔
497
    }
1✔
498
    
499
    @FameProperty(name = "isDead", derived = true)
500
    public Boolean getIsDead() {
501
        // TODO: this is a derived property, implement this method manually.
502
        throw new UnsupportedOperationException("Not yet implemented!");  
×
503
    }
504
    
505
    @FameProperty(name = "isFinal")
506
    public Boolean getIsFinal() {
507
        return isFinal;
3✔
508
    }
509

510
    public void setIsFinal(Boolean isFinal) {
511
        this.isFinal = isFinal;
3✔
512
    }
1✔
513
    
514
    @FameProperty(name = "isPackageVisibility", derived = true)
515
    public Boolean getIsPackageVisibility() {
516
        return this.visibility.equals("package");
×
517
    }
518
    
519
    @FameProperty(name = "isPrivate", derived = true)
520
    public Boolean getIsPrivate() {
521
        return this.visibility.equals("private");
6✔
522
    }
523
    
524
    @FameProperty(name = "isProtected", derived = true)
525
    public Boolean getIsProtected() {
526
        return this.visibility.equals("protected");
6✔
527
    }
528
    
529
    @FameProperty(name = "isPublic", derived = true)
530
    public Boolean getIsPublic() {
531
        return this.visibility.equals("public");
6✔
532
    }
533
    
534
    @FameProperty(name = "isRoot", derived = true)
535
    public Boolean getIsRoot() {
536
        // TODO: this is a derived property, implement this method manually.
537
        throw new UnsupportedOperationException("Not yet implemented!");  
×
538
    }
539
    
540
    @FameProperty(name = "isStub")
541
    public Boolean getIsStub() {
542
        return isStub;
3✔
543
    }
544

545
    public void setIsStub(Boolean isStub) {
546
        this.isStub = isStub;
3✔
547
    }
1✔
548
    
549
    @FameProperty(name = "lcom2", derived = true)
550
    public Number getLcom2() {
551
        // TODO: this is a derived property, implement this method manually.
552
        throw new UnsupportedOperationException("Not yet implemented!");  
×
553
    }
554
    
555
    @FameProperty(name = "lcom3", derived = true)
556
    public Number getLcom3() {
557
        // TODO: this is a derived property, implement this method manually.
558
        throw new UnsupportedOperationException("Not yet implemented!");  
×
559
    }
560
    
561
    @FameProperty(name = "methods", opposite = "parentType", derived = true)
562
    public Collection<TMethod> getMethods() {
563
        if (methods == null) {
3✔
564
            methods = new MultivalueSet<TMethod>() {
12✔
565
                @Override
566
                protected void clearOpposite(TMethod e) {
567
                    e.setParentType(null);
×
568
                }
×
569
                @Override
570
                protected void setOpposite(TMethod e) {
571
                    e.setParentType(Class.this);
4✔
572
                }
1✔
573
            };
574
        }
575
        return methods;
3✔
576
    }
577
    
578
    public void setMethods(Collection<? extends TMethod> methods) {
579
        this.getMethods().clear();
×
580
        this.getMethods().addAll(methods);
×
581
    }                    
×
582
    
583
        
584
    public void addMethods(TMethod one) {
585
        this.getMethods().add(one);
×
586
    }   
×
587
    
588
    public void addMethods(TMethod one, TMethod... many) {
589
        this.getMethods().add(one);
×
590
        for (TMethod each : many)
×
591
            this.getMethods().add(each);
×
592
    }   
×
593
    
594
    public void addMethods(Iterable<? extends TMethod> many) {
595
        for (TMethod each : many)
×
596
            this.getMethods().add(each);
×
597
    }   
×
598
                
599
    public void addMethods(TMethod[] many) {
600
        for (TMethod each : many)
×
601
            this.getMethods().add(each);
×
602
    }
×
603
    
604
    public int numberOfMethods() {
605
        return getMethods().size();
4✔
606
    }
607

608
    public boolean hasMethods() {
609
        return !getMethods().isEmpty();
×
610
    }
611

612
    @FameProperty(name = "name")
613
    public String getName() {
614
        return name;
3✔
615
    }
616

617
    public void setName(String name) {
618
        this.name = name;
3✔
619
    }
1✔
620
    
621
    @FameProperty(name = "numberOfAbstractMethods", derived = true)
622
    public Number getNumberOfAbstractMethods() {
623
        // TODO: this is a derived property, implement this method manually.
624
        throw new UnsupportedOperationException("Not yet implemented!");  
×
625
    }
626
    
627
    @FameProperty(name = "numberOfAccessorMethods", derived = true)
628
    public Number getNumberOfAccessorMethods() {
629
        // TODO: this is a derived property, implement this method manually.
630
        throw new UnsupportedOperationException("Not yet implemented!");  
×
631
    }
632
    
633
    @FameProperty(name = "numberOfAttributes", derived = true)
634
    public Number getNumberOfAttributes() {
635
        // TODO: this is a derived property, implement this method manually.
636
        throw new UnsupportedOperationException("Not yet implemented!");  
×
637
    }
638
    
639
    @FameProperty(name = "numberOfChildren", derived = true)
640
    public Number getNumberOfChildren() {
641
        // TODO: this is a derived property, implement this method manually.
642
        throw new UnsupportedOperationException("Not yet implemented!");  
×
643
    }
644
    
645
    @FameProperty(name = "numberOfComments", derived = true)
646
    public Number getNumberOfComments() {
647
        // TODO: this is a derived property, implement this method manually.
648
        throw new UnsupportedOperationException("Not yet implemented!");  
×
649
    }
650
    
651
    @FameProperty(name = "numberOfConstructorMethods", derived = true)
652
    public Number getNumberOfConstructorMethods() {
653
        // TODO: this is a derived property, implement this method manually.
654
        throw new UnsupportedOperationException("Not yet implemented!");  
×
655
    }
656
    
657
    @FameProperty(name = "numberOfDeadChildren", derived = true)
658
    public Number getNumberOfDeadChildren() {
659
        // TODO: this is a derived property, implement this method manually.
660
        throw new UnsupportedOperationException("Not yet implemented!");  
×
661
    }
662
    
663
    @FameProperty(name = "numberOfDirectSubclasses", derived = true)
664
    public Number getNumberOfDirectSubclasses() {
665
        // TODO: this is a derived property, implement this method manually.
666
        throw new UnsupportedOperationException("Not yet implemented!");  
×
667
    }
668
    
669
    @FameProperty(name = "numberOfExternalClients", derived = true)
670
    public Number getNumberOfExternalClients() {
671
        // TODO: this is a derived property, implement this method manually.
672
        throw new UnsupportedOperationException("Not yet implemented!");  
×
673
    }
674
    
675
    @FameProperty(name = "numberOfExternalProviders", derived = true)
676
    public Number getNumberOfExternalProviders() {
677
        // TODO: this is a derived property, implement this method manually.
678
        throw new UnsupportedOperationException("Not yet implemented!");  
×
679
    }
680
    
681
    @FameProperty(name = "numberOfInternalClients", derived = true)
682
    public Number getNumberOfInternalClients() {
683
        // TODO: this is a derived property, implement this method manually.
684
        throw new UnsupportedOperationException("Not yet implemented!");  
×
685
    }
686
    
687
    @FameProperty(name = "numberOfInternalProviders", derived = true)
688
    public Number getNumberOfInternalProviders() {
689
        // TODO: this is a derived property, implement this method manually.
690
        throw new UnsupportedOperationException("Not yet implemented!");  
×
691
    }
692
    
693
    @FameProperty(name = "numberOfLinesOfCode")
694
    public Number getNumberOfLinesOfCode() {
695
        return numberOfLinesOfCode;
3✔
696
    }
697

698
    public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) {
699
        this.numberOfLinesOfCode = numberOfLinesOfCode;
×
700
    }
×
701
    
702
    @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true)
703
    public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() {
704
        // TODO: this is a derived property, implement this method manually.
705
        throw new UnsupportedOperationException("Not yet implemented!");  
×
706
    }
707
    
708
    @FameProperty(name = "numberOfMethods", derived = true)
709
    public Number getNumberOfMethods() {
710
        // TODO: this is a derived property, implement this method manually.
711
        throw new UnsupportedOperationException("Not yet implemented!");  
×
712
    }
713
    
714
    @FameProperty(name = "numberOfPrivateMethods", derived = true)
715
    public Number getNumberOfPrivateMethods() {
716
        // TODO: this is a derived property, implement this method manually.
717
        throw new UnsupportedOperationException("Not yet implemented!");  
×
718
    }
719
    
720
    @FameProperty(name = "numberOfProtectedMethods", derived = true)
721
    public Number getNumberOfProtectedMethods() {
722
        // TODO: this is a derived property, implement this method manually.
723
        throw new UnsupportedOperationException("Not yet implemented!");  
×
724
    }
725
    
726
    @FameProperty(name = "numberOfPublicMethods", derived = true)
727
    public Number getNumberOfPublicMethods() {
728
        // TODO: this is a derived property, implement this method manually.
729
        throw new UnsupportedOperationException("Not yet implemented!");  
×
730
    }
731
    
732
    @FameProperty(name = "numberOfSubclasses", derived = true)
733
    public Number getNumberOfSubclasses() {
734
        // TODO: this is a derived property, implement this method manually.
735
        throw new UnsupportedOperationException("Not yet implemented!");  
×
736
    }
737
    
738
    @FameProperty(name = "outgoingConcretizations", opposite = "typeArgument", derived = true)
739
    public Collection<TConcretization> getOutgoingConcretizations() {
740
        if (outgoingConcretizations == null) {
3✔
741
            outgoingConcretizations = new MultivalueSet<TConcretization>() {
12✔
742
                @Override
743
                protected void clearOpposite(TConcretization e) {
NEW
744
                    e.setTypeArgument(null);
×
UNCOV
745
                }
×
746
                @Override
747
                protected void setOpposite(TConcretization e) {
748
                    e.setTypeArgument(Class.this);
4✔
749
                }
1✔
750
            };
751
        }
752
        return outgoingConcretizations;
3✔
753
    }
754
    
755
    public void setOutgoingConcretizations(Collection<? extends TConcretization> outgoingConcretizations) {
NEW
756
        this.getOutgoingConcretizations().clear();
×
NEW
757
        this.getOutgoingConcretizations().addAll(outgoingConcretizations);
×
UNCOV
758
    }                    
×
759
    
760
        
761
    public void addOutgoingConcretizations(TConcretization one) {
NEW
762
        this.getOutgoingConcretizations().add(one);
×
UNCOV
763
    }   
×
764
    
765
    public void addOutgoingConcretizations(TConcretization one, TConcretization... many) {
NEW
766
        this.getOutgoingConcretizations().add(one);
×
NEW
767
        for (TConcretization each : many)
×
NEW
768
            this.getOutgoingConcretizations().add(each);
×
UNCOV
769
    }   
×
770
    
771
    public void addOutgoingConcretizations(Iterable<? extends TConcretization> many) {
NEW
772
        for (TConcretization each : many)
×
NEW
773
            this.getOutgoingConcretizations().add(each);
×
UNCOV
774
    }   
×
775
                
776
    public void addOutgoingConcretizations(TConcretization[] many) {
NEW
777
        for (TConcretization each : many)
×
NEW
778
            this.getOutgoingConcretizations().add(each);
×
UNCOV
779
    }
×
780
    
781
    public int numberOfOutgoingConcretizations() {
NEW
782
        return getOutgoingConcretizations().size();
×
783
    }
784

785
    public boolean hasOutgoingConcretizations() {
NEW
786
        return !getOutgoingConcretizations().isEmpty();
×
787
    }
788

789
    @FameProperty(name = "parentPackage", opposite = "childEntities", container = true)
790
    public TPackage getParentPackage() {
791
        return parentPackage;
3✔
792
    }
793

794
    public void setParentPackage(TPackage parentPackage) {
795
        if (this.parentPackage != null) {
×
796
            if (this.parentPackage.equals(parentPackage)) return;
×
797
            this.parentPackage.getChildEntities().remove(this);
×
798
        }
799
        this.parentPackage = parentPackage;
×
800
        if (parentPackage == null) return;
×
801
        parentPackage.getChildEntities().add(this);
×
802
    }
×
803
    
804
    @FameProperty(name = "receivingInvocations", opposite = "receiver", derived = true)
805
    public Collection<TInvocation> getReceivingInvocations() {
806
        if (receivingInvocations == null) {
3✔
807
            receivingInvocations = new MultivalueSet<TInvocation>() {
12✔
808
                @Override
809
                protected void clearOpposite(TInvocation e) {
810
                    e.setReceiver(null);
×
811
                }
×
812
                @Override
813
                protected void setOpposite(TInvocation e) {
814
                    e.setReceiver(Class.this);
4✔
815
                }
1✔
816
            };
817
        }
818
        return receivingInvocations;
3✔
819
    }
820
    
821
    public void setReceivingInvocations(Collection<? extends TInvocation> receivingInvocations) {
822
        this.getReceivingInvocations().clear();
×
823
        this.getReceivingInvocations().addAll(receivingInvocations);
×
824
    }                    
×
825
    
826
        
827
    public void addReceivingInvocations(TInvocation one) {
828
        this.getReceivingInvocations().add(one);
×
829
    }   
×
830
    
831
    public void addReceivingInvocations(TInvocation one, TInvocation... many) {
832
        this.getReceivingInvocations().add(one);
×
833
        for (TInvocation each : many)
×
834
            this.getReceivingInvocations().add(each);
×
835
    }   
×
836
    
837
    public void addReceivingInvocations(Iterable<? extends TInvocation> many) {
838
        for (TInvocation each : many)
×
839
            this.getReceivingInvocations().add(each);
×
840
    }   
×
841
                
842
    public void addReceivingInvocations(TInvocation[] many) {
843
        for (TInvocation each : many)
×
844
            this.getReceivingInvocations().add(each);
×
845
    }
×
846
    
847
    public int numberOfReceivingInvocations() {
848
        return getReceivingInvocations().size();
×
849
    }
850

851
    public boolean hasReceivingInvocations() {
852
        return !getReceivingInvocations().isEmpty();
×
853
    }
854

855
    @FameProperty(name = "sourceAnchor", opposite = "element", derived = true)
856
    public TSourceAnchor getSourceAnchor() {
857
        return sourceAnchor;
3✔
858
    }
859

860
    public void setSourceAnchor(TSourceAnchor sourceAnchor) {
861
        if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) {
11!
862
            TSourceAnchor old_sourceAnchor = this.sourceAnchor;
3✔
863
            this.sourceAnchor = sourceAnchor;
3✔
864
            if (old_sourceAnchor != null) old_sourceAnchor.setElement(null);
2!
865
            if (sourceAnchor != null) sourceAnchor.setElement(this);
5!
866
        }
867
    }
1✔
868
    
869
    @FameProperty(name = "sourceText", derived = true)
870
    public String getSourceText() {
871
        // TODO: this is a derived property, implement this method manually.
872
        throw new UnsupportedOperationException("Not yet implemented!");  
×
873
    }
874
    
875
    @FameProperty(name = "subInheritances", opposite = "superclass", derived = true)
876
    public Collection<TInheritance> getSubInheritances() {
877
        if (subInheritances == null) {
3✔
878
            subInheritances = new MultivalueSet<TInheritance>() {
12✔
879
                @Override
880
                protected void clearOpposite(TInheritance e) {
881
                    e.setSuperclass(null);
×
882
                }
×
883
                @Override
884
                protected void setOpposite(TInheritance e) {
885
                    e.setSuperclass(Class.this);
4✔
886
                }
1✔
887
            };
888
        }
889
        return subInheritances;
3✔
890
    }
891
    
892
    public void setSubInheritances(Collection<? extends TInheritance> subInheritances) {
893
        this.getSubInheritances().clear();
×
894
        this.getSubInheritances().addAll(subInheritances);
×
895
    }                    
×
896
    
897
        
898
    public void addSubInheritances(TInheritance one) {
899
        this.getSubInheritances().add(one);
×
900
    }   
×
901
    
902
    public void addSubInheritances(TInheritance one, TInheritance... many) {
903
        this.getSubInheritances().add(one);
×
904
        for (TInheritance each : many)
×
905
            this.getSubInheritances().add(each);
×
906
    }   
×
907
    
908
    public void addSubInheritances(Iterable<? extends TInheritance> many) {
909
        for (TInheritance each : many)
×
910
            this.getSubInheritances().add(each);
×
911
    }   
×
912
                
913
    public void addSubInheritances(TInheritance[] many) {
914
        for (TInheritance each : many)
×
915
            this.getSubInheritances().add(each);
×
916
    }
×
917
    
918
    public int numberOfSubInheritances() {
919
        return getSubInheritances().size();
4✔
920
    }
921

922
    public boolean hasSubInheritances() {
923
        return !getSubInheritances().isEmpty();
×
924
    }
925

926
    @FameProperty(name = "subclassHierarchyDepth", derived = true)
927
    public Number getSubclassHierarchyDepth() {
928
        // TODO: this is a derived property, implement this method manually.
929
        throw new UnsupportedOperationException("Not yet implemented!");  
×
930
    }
931
    
932
    @FameProperty(name = "superInheritances", opposite = "subclass", derived = true)
933
    public Collection<TInheritance> getSuperInheritances() {
934
        if (superInheritances == null) {
3✔
935
            superInheritances = new MultivalueSet<TInheritance>() {
12✔
936
                @Override
937
                protected void clearOpposite(TInheritance e) {
938
                    e.setSubclass(null);
3✔
939
                }
1✔
940
                @Override
941
                protected void setOpposite(TInheritance e) {
942
                    e.setSubclass(Class.this);
4✔
943
                }
1✔
944
            };
945
        }
946
        return superInheritances;
3✔
947
    }
948
    
949
    public void setSuperInheritances(Collection<? extends TInheritance> superInheritances) {
950
        this.getSuperInheritances().clear();
×
951
        this.getSuperInheritances().addAll(superInheritances);
×
952
    }                    
×
953
    
954
        
955
    public void addSuperInheritances(TInheritance one) {
956
        this.getSuperInheritances().add(one);
×
957
    }   
×
958
    
959
    public void addSuperInheritances(TInheritance one, TInheritance... many) {
960
        this.getSuperInheritances().add(one);
×
961
        for (TInheritance each : many)
×
962
            this.getSuperInheritances().add(each);
×
963
    }   
×
964
    
965
    public void addSuperInheritances(Iterable<? extends TInheritance> many) {
966
        for (TInheritance each : many)
×
967
            this.getSuperInheritances().add(each);
×
968
    }   
×
969
                
970
    public void addSuperInheritances(TInheritance[] many) {
971
        for (TInheritance each : many)
×
972
            this.getSuperInheritances().add(each);
×
973
    }
×
974
    
975
    public int numberOfSuperInheritances() {
976
        return getSuperInheritances().size();
×
977
    }
978

979
    public boolean hasSuperInheritances() {
980
        return !getSuperInheritances().isEmpty();
×
981
    }
982

983
    @FameProperty(name = "tightClassCohesion", derived = true)
984
    public Number getTightClassCohesion() {
985
        // TODO: this is a derived property, implement this method manually.
986
        throw new UnsupportedOperationException("Not yet implemented!");  
×
987
    }
988
    
989
    @FameProperty(name = "typeContainer", opposite = "types", container = true)
990
    public TWithTypes getTypeContainer() {
991
        return typeContainer;
3✔
992
    }
993

994
    public void setTypeContainer(TWithTypes typeContainer) {
995
        if (this.typeContainer != null) {
3✔
996
            if (this.typeContainer.equals(typeContainer)) return;
6✔
997
            this.typeContainer.getTypes().remove(this);
6✔
998
        }
999
        this.typeContainer = typeContainer;
3✔
1000
        if (typeContainer == null) return;
3✔
1001
        typeContainer.getTypes().add(this);
5✔
1002
    }
1✔
1003
    
1004
    @FameProperty(name = "visibility")
1005
    public String getVisibility() {
1006
        return visibility;
3✔
1007
    }
1008

1009
    public void setVisibility(String visibility) {
1010
        this.visibility = visibility;
3✔
1011
    }
1✔
1012
    
1013
    @FameProperty(name = "weightOfAClass", derived = true)
1014
    public Number getWeightOfAClass() {
1015
        // TODO: this is a derived property, implement this method manually.
1016
        throw new UnsupportedOperationException("Not yet implemented!");  
×
1017
    }
1018
    
1019
    @FameProperty(name = "weightedMethodCount", derived = true)
1020
    public Number getWeightedMethodCount() {
1021
        // TODO: this is a derived property, implement this method manually.
1022
        throw new UnsupportedOperationException("Not yet implemented!");  
×
1023
    }
1024
    
1025

1026

1027
}
1028

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