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

moosetechnology / VerveineJ / 16692677753

02 Aug 2025 10:27AM UTC coverage: 50.97% (+0.3%) from 50.681%
16692677753

push

github

web-flow
Merge pull request #152 from moosetechnology/issue/151

fix #151

1909 of 3962 branches covered (48.18%)

Branch coverage included in aggregate %.

27 of 27 new or added lines in 1 file covered. (100.0%)

5 existing lines in 2 files now uncovered.

4289 of 8198 relevant lines covered (52.32%)

2.1 hits per line

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

28.73
/app/src/main/java/org/moosetechnology/model/famix/famixjavaentities/Exception.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.TAnnotationInstance;
10
import org.moosetechnology.model.famix.famixtraits.TAttribute;
11
import org.moosetechnology.model.famix.famixtraits.TCanImplement;
12
import org.moosetechnology.model.famix.famixtraits.TComment;
13
import org.moosetechnology.model.famix.famixtraits.TEntityTyping;
14
import org.moosetechnology.model.famix.famixtraits.TException;
15
import org.moosetechnology.model.famix.famixtraits.THasVisibility;
16
import org.moosetechnology.model.famix.famixtraits.TImplementation;
17
import org.moosetechnology.model.famix.famixtraits.TInheritance;
18
import org.moosetechnology.model.famix.famixtraits.TInvocation;
19
import org.moosetechnology.model.famix.famixtraits.TMethod;
20
import org.moosetechnology.model.famix.famixtraits.TReference;
21
import org.moosetechnology.model.famix.famixtraits.TSourceAnchor;
22
import org.moosetechnology.model.famix.famixtraits.TType;
23
import org.moosetechnology.model.famix.famixtraits.TWithAnnotationInstances;
24
import org.moosetechnology.model.famix.famixtraits.TWithExceptions;
25
import org.moosetechnology.model.famix.famixtraits.TWithTypes;
26

27

28
@FamePackage("Famix-Java-Entities")
29
@FameDescription("Exception")
30
public class Exception extends Class implements TCanImplement, TException, THasVisibility, TWithAnnotationInstances, TWithTypes {
3✔
31

32
    private Collection<TAnnotationInstance> annotationInstances; 
33

34
    private Collection<TAttribute> attributes; 
35

36
    private Collection<TWithExceptions> catchingEntities; 
37

38
    private Collection<TComment> comments; 
39

40
    private Collection<TWithExceptions> declaringEntities; 
41

42
    private Collection<TReference> incomingReferences; 
43

44
    private Collection<TEntityTyping> incomingTypings; 
45

46
    private Collection<TImplementation> interfaceImplementations; 
47

48
    private Boolean isStub;
49
    
50
    private Collection<TMethod> methods; 
51

52
    private String name;
53
    
54
    private Number numberOfLinesOfCode;
55
    
56
    private Collection<TInvocation> receivingInvocations; 
57

58
    private TSourceAnchor sourceAnchor;
59
    
60
    private Collection<TInheritance> subInheritances; 
61

62
    private Collection<TInheritance> superInheritances; 
63

64
    private Collection<TWithExceptions> throwingEntities; 
65

66
    private TWithTypes typeContainer;
67
    
68
    private Collection<TType> types; 
69

70
    private String visibility;
71
    
72

73

74
    @FameProperty(name = "annotationInstances", opposite = "annotatedEntity", derived = true)
75
    public Collection<TAnnotationInstance> getAnnotationInstances() {
76
        if (annotationInstances == null) {
3✔
77
            annotationInstances = new MultivalueSet<TAnnotationInstance>() {
12✔
78
                @Override
79
                protected void clearOpposite(TAnnotationInstance e) {
80
                    e.setAnnotatedEntity(null);
×
81
                }
×
82
                @Override
83
                protected void setOpposite(TAnnotationInstance e) {
84
                    e.setAnnotatedEntity(Exception.this);
4✔
85
                }
1✔
86
            };
87
        }
88
        return annotationInstances;
3✔
89
    }
90
    
91
    public void setAnnotationInstances(Collection<? extends TAnnotationInstance> annotationInstances) {
92
        this.getAnnotationInstances().clear();
×
93
        this.getAnnotationInstances().addAll(annotationInstances);
×
94
    }                    
×
95
    
96
        
97
    public void addAnnotationInstances(TAnnotationInstance one) {
98
        this.getAnnotationInstances().add(one);
×
99
    }   
×
100
    
101
    public void addAnnotationInstances(TAnnotationInstance one, TAnnotationInstance... many) {
102
        this.getAnnotationInstances().add(one);
×
103
        for (TAnnotationInstance each : many)
×
104
            this.getAnnotationInstances().add(each);
×
105
    }   
×
106
    
107
    public void addAnnotationInstances(Iterable<? extends TAnnotationInstance> many) {
108
        for (TAnnotationInstance each : many)
6!
109
            this.getAnnotationInstances().add(each);
×
110
    }   
1✔
111
                
112
    public void addAnnotationInstances(TAnnotationInstance[] many) {
113
        for (TAnnotationInstance each : many)
×
114
            this.getAnnotationInstances().add(each);
×
115
    }
×
116
    
117
    public int numberOfAnnotationInstances() {
118
        return getAnnotationInstances().size();
×
119
    }
120

121
    public boolean hasAnnotationInstances() {
122
        return !getAnnotationInstances().isEmpty();
×
123
    }
124

125
    @FameProperty(name = "attributes", opposite = "parentType", derived = true)
126
    public Collection<TAttribute> getAttributes() {
127
        if (attributes == null) {
3✔
128
            attributes = new MultivalueSet<TAttribute>() {
12✔
129
                @Override
130
                protected void clearOpposite(TAttribute e) {
131
                    e.setParentType(null);
×
132
                }
×
133
                @Override
134
                protected void setOpposite(TAttribute e) {
135
                    e.setParentType(Exception.this);
4✔
136
                }
1✔
137
            };
138
        }
139
        return attributes;
3✔
140
    }
141
    
142
    public void setAttributes(Collection<? extends TAttribute> attributes) {
143
        this.getAttributes().clear();
×
144
        this.getAttributes().addAll(attributes);
×
145
    }                    
×
146
    
147
        
148
    public void addAttributes(TAttribute one) {
149
        this.getAttributes().add(one);
×
150
    }   
×
151
    
152
    public void addAttributes(TAttribute one, TAttribute... many) {
153
        this.getAttributes().add(one);
×
154
        for (TAttribute each : many)
×
155
            this.getAttributes().add(each);
×
156
    }   
×
157
    
158
    public void addAttributes(Iterable<? extends TAttribute> many) {
159
        for (TAttribute each : many)
10✔
160
            this.getAttributes().add(each);
6✔
161
    }   
1✔
162
                
163
    public void addAttributes(TAttribute[] many) {
164
        for (TAttribute each : many)
×
165
            this.getAttributes().add(each);
×
166
    }
×
167
    
168
    public int numberOfAttributes() {
169
        return getAttributes().size();
×
170
    }
171

172
    public boolean hasAttributes() {
173
        return !getAttributes().isEmpty();
×
174
    }
175

176
    @FameProperty(name = "catchingEntities", opposite = "caughtExceptions", derived = true)
177
    public Collection<TWithExceptions> getCatchingEntities() {
178
        if (catchingEntities == null) {
3✔
179
            catchingEntities = new MultivalueSet<TWithExceptions>() {
12✔
180
                @Override
181
                protected void clearOpposite(TWithExceptions e) {
182
                    e.getCaughtExceptions().remove(Exception.this);
×
183
                }
×
184
                @Override
185
                protected void setOpposite(TWithExceptions e) {
186
                    e.getCaughtExceptions().add(Exception.this);
6✔
187
                }
1✔
188
            };
189
        }
190
        return catchingEntities;
3✔
191
    }
192
    
193
    public void setCatchingEntities(Collection<? extends TWithExceptions> catchingEntities) {
194
        this.getCatchingEntities().clear();
×
195
        this.getCatchingEntities().addAll(catchingEntities);
×
196
    }
×
197
    
198
    public void addCatchingEntities(TWithExceptions one) {
199
        this.getCatchingEntities().add(one);
×
200
    }   
×
201
    
202
    public void addCatchingEntities(TWithExceptions one, TWithExceptions... many) {
203
        this.getCatchingEntities().add(one);
×
204
        for (TWithExceptions each : many)
×
205
            this.getCatchingEntities().add(each);
×
206
    }   
×
207
    
208
    public void addCatchingEntities(Iterable<? extends TWithExceptions> many) {
209
        for (TWithExceptions each : many)
×
210
            this.getCatchingEntities().add(each);
×
211
    }   
×
212
                
213
    public void addCatchingEntities(TWithExceptions[] many) {
214
        for (TWithExceptions each : many)
×
215
            this.getCatchingEntities().add(each);
×
216
    }
×
217
    
218
    public int numberOfCatchingEntities() {
219
        return getCatchingEntities().size();
×
220
    }
221

222
    public boolean hasCatchingEntities() {
223
        return !getCatchingEntities().isEmpty();
×
224
    }
225

226
    @FameProperty(name = "comments", opposite = "commentedEntity", derived = true)
227
    public Collection<TComment> getComments() {
228
        if (comments == null) {
3!
229
            comments = new MultivalueSet<TComment>() {
12✔
230
                @Override
231
                protected void clearOpposite(TComment e) {
232
                    e.setCommentedEntity(null);
×
233
                }
×
234
                @Override
235
                protected void setOpposite(TComment e) {
236
                    e.setCommentedEntity(Exception.this);
×
237
                }
×
238
            };
239
        }
240
        return comments;
3✔
241
    }
242
    
243
    public void setComments(Collection<? extends TComment> comments) {
244
        this.getComments().clear();
×
245
        this.getComments().addAll(comments);
×
246
    }                    
×
247
    
248
        
249
    public void addComments(TComment one) {
250
        this.getComments().add(one);
×
251
    }   
×
252
    
253
    public void addComments(TComment one, TComment... many) {
254
        this.getComments().add(one);
×
255
        for (TComment each : many)
×
256
            this.getComments().add(each);
×
257
    }   
×
258
    
259
    public void addComments(Iterable<? extends TComment> many) {
260
        for (TComment each : many)
×
261
            this.getComments().add(each);
×
262
    }   
×
263
                
264
    public void addComments(TComment[] many) {
265
        for (TComment each : many)
×
266
            this.getComments().add(each);
×
267
    }
×
268
    
269
    public int numberOfComments() {
270
        return getComments().size();
×
271
    }
272

273
    public boolean hasComments() {
274
        return !getComments().isEmpty();
×
275
    }
276

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

323
    public boolean hasDeclaringEntities() {
324
        return !getDeclaringEntities().isEmpty();
×
325
    }
326

327
    @FameProperty(name = "fanIn", derived = true)
328
    public Number getFanIn() {
329
        // TODO: this is a derived property, implement this method manually.
330
        throw new UnsupportedOperationException("Not yet implemented!");  
×
331
    }
332
    
333
    @FameProperty(name = "fanOut", derived = true)
334
    public Number getFanOut() {
335
        // TODO: this is a derived property, implement this method manually.
336
        throw new UnsupportedOperationException("Not yet implemented!");  
×
337
    }
338
    
339
    @FameProperty(name = "hasComments", derived = true)
340
    public Boolean getHasComments() {
341
        // TODO: this is a derived property, implement this method manually.
342
        throw new UnsupportedOperationException("Not yet implemented!");  
×
343
    }
344
    
345
    @FameProperty(name = "hierarchyNestingLevel", derived = true)
346
    public Number getHierarchyNestingLevel() {
347
        // TODO: this is a derived property, implement this method manually.
348
        throw new UnsupportedOperationException("Not yet implemented!");  
×
349
    }
350
    
351
    @FameProperty(name = "incomingReferences", opposite = "referredEntity", derived = true)
352
    public Collection<TReference> getIncomingReferences() {
353
        if (incomingReferences == null) {
3✔
354
            incomingReferences = new MultivalueSet<TReference>() {
12✔
355
                @Override
356
                protected void clearOpposite(TReference e) {
357
                    e.setReferredEntity(null);
×
358
                }
×
359
                @Override
360
                protected void setOpposite(TReference e) {
361
                    e.setReferredEntity(Exception.this);
4✔
362
                }
1✔
363
            };
364
        }
365
        return incomingReferences;
3✔
366
    }
367
    
368
    public void setIncomingReferences(Collection<? extends TReference> incomingReferences) {
369
        this.getIncomingReferences().clear();
×
370
        this.getIncomingReferences().addAll(incomingReferences);
×
371
    }                    
×
372
    
373
        
374
    public void addIncomingReferences(TReference one) {
375
        this.getIncomingReferences().add(one);
×
376
    }   
×
377
    
378
    public void addIncomingReferences(TReference one, TReference... many) {
379
        this.getIncomingReferences().add(one);
×
380
        for (TReference each : many)
×
381
            this.getIncomingReferences().add(each);
×
382
    }   
×
383
    
384
    public void addIncomingReferences(Iterable<? extends TReference> many) {
385
        for (TReference each : many)
6!
386
            this.getIncomingReferences().add(each);
×
387
    }   
1✔
388
                
389
    public void addIncomingReferences(TReference[] many) {
390
        for (TReference each : many)
×
391
            this.getIncomingReferences().add(each);
×
392
    }
×
393
    
394
    public int numberOfIncomingReferences() {
395
        return getIncomingReferences().size();
×
396
    }
397

398
    public boolean hasIncomingReferences() {
399
        return !getIncomingReferences().isEmpty();
×
400
    }
401

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

449
    public boolean hasIncomingTypings() {
450
        return !getIncomingTypings().isEmpty();
×
451
    }
452

453
    @FameProperty(name = "interfaceImplementations", opposite = "implementingClass", derived = true)
454
    public Collection<TImplementation> getInterfaceImplementations() {
455
        if (interfaceImplementations == null) {
3✔
456
            interfaceImplementations = new MultivalueSet<TImplementation>() {
12✔
457
                @Override
458
                protected void clearOpposite(TImplementation e) {
459
                    e.setImplementingClass(null);
×
460
                }
×
461
                @Override
462
                protected void setOpposite(TImplementation e) {
463
                    e.setImplementingClass(Exception.this);
4✔
464
                }
1✔
465
            };
466
        }
467
        return interfaceImplementations;
3✔
468
    }
469
    
470
    public void setInterfaceImplementations(Collection<? extends TImplementation> interfaceImplementations) {
471
        this.getInterfaceImplementations().clear();
×
472
        this.getInterfaceImplementations().addAll(interfaceImplementations);
×
473
    }                    
×
474
    
475
        
476
    public void addInterfaceImplementations(TImplementation one) {
477
        this.getInterfaceImplementations().add(one);
×
478
    }   
×
479
    
480
    public void addInterfaceImplementations(TImplementation one, TImplementation... many) {
481
        this.getInterfaceImplementations().add(one);
×
482
        for (TImplementation each : many)
×
483
            this.getInterfaceImplementations().add(each);
×
484
    }   
×
485
    
486
    public void addInterfaceImplementations(Iterable<? extends TImplementation> many) {
487
        for (TImplementation each : many)
×
488
            this.getInterfaceImplementations().add(each);
×
489
    }   
×
490
                
491
    public void addInterfaceImplementations(TImplementation[] many) {
492
        for (TImplementation each : many)
×
493
            this.getInterfaceImplementations().add(each);
×
494
    }
×
495
    
496
    public int numberOfInterfaceImplementations() {
497
        return getInterfaceImplementations().size();
×
498
    }
499

500
    public boolean hasInterfaceImplementations() {
501
        return !getInterfaceImplementations().isEmpty();
×
502
    }
503

504
    @FameProperty(name = "isDead", derived = true)
505
    public Boolean getIsDead() {
506
        // TODO: this is a derived property, implement this method manually.
507
        throw new UnsupportedOperationException("Not yet implemented!");  
×
508
    }
509
    
510
    @FameProperty(name = "isPackageVisibility", derived = true)
511
    public Boolean getIsPackageVisibility() {
512
        // TODO: this is a derived property, implement this method manually.
513
        throw new UnsupportedOperationException("Not yet implemented!");  
×
514
    }
515
    
516
    @FameProperty(name = "isPrivate", derived = true)
517
    public Boolean getIsPrivate() {
518
        // TODO: this is a derived property, implement this method manually.
519
        throw new UnsupportedOperationException("Not yet implemented!");  
×
520
    }
521
    
522
    @FameProperty(name = "isProtected", derived = true)
523
    public Boolean getIsProtected() {
524
        // TODO: this is a derived property, implement this method manually.
525
        throw new UnsupportedOperationException("Not yet implemented!");  
×
526
    }
527
    
528
    @FameProperty(name = "isPublic", derived = true)
529
    public Boolean getIsPublic() {
530
        // TODO: this is a derived property, implement this method manually.
531
        throw new UnsupportedOperationException("Not yet implemented!");  
×
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 = "isTestCase", derived = true)
550
    public Boolean getIsTestCase() {
551
        // TODO: this is a derived property, implement this method manually.
552
        throw new UnsupportedOperationException("Not yet implemented!");  
×
553
    }
554
    
555
    @FameProperty(name = "methods", opposite = "parentType", derived = true)
556
    public Collection<TMethod> getMethods() {
557
        if (methods == null) {
3✔
558
            methods = new MultivalueSet<TMethod>() {
12✔
559
                @Override
560
                protected void clearOpposite(TMethod e) {
561
                    e.setParentType(null);
×
562
                }
×
563
                @Override
564
                protected void setOpposite(TMethod e) {
565
                    e.setParentType(Exception.this);
4✔
566
                }
1✔
567
            };
568
        }
569
        return methods;
3✔
570
    }
571
    
572
    public void setMethods(Collection<? extends TMethod> methods) {
573
        this.getMethods().clear();
×
574
        this.getMethods().addAll(methods);
×
575
    }                    
×
576
    
577
        
578
    public void addMethods(TMethod one) {
579
        this.getMethods().add(one);
×
580
    }   
×
581
    
582
    public void addMethods(TMethod one, TMethod... many) {
583
        this.getMethods().add(one);
×
584
        for (TMethod each : many)
×
585
            this.getMethods().add(each);
×
586
    }   
×
587
    
588
    public void addMethods(Iterable<? extends TMethod> many) {
589
        for (TMethod each : many)
10✔
590
            this.getMethods().add(each);
6✔
591
    }   
1✔
592
                
593
    public void addMethods(TMethod[] many) {
594
        for (TMethod each : many)
×
595
            this.getMethods().add(each);
×
596
    }
×
597
    
598
    public int numberOfMethods() {
599
        return getMethods().size();
×
600
    }
601

602
    public boolean hasMethods() {
603
        return !getMethods().isEmpty();
×
604
    }
605

606
    @FameProperty(name = "name")
607
    public String getName() {
608
        return name;
3✔
609
    }
610

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

686
    public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) {
687
        this.numberOfLinesOfCode = numberOfLinesOfCode;
×
688
    }
×
689
    
690
    @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true)
691
    public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() {
692
        // TODO: this is a derived property, implement this method manually.
693
        throw new UnsupportedOperationException("Not yet implemented!");  
×
694
    }
695
    
696
    @FameProperty(name = "numberOfMethods", derived = true)
697
    public Number getNumberOfMethods() {
698
        // TODO: this is a derived property, implement this method manually.
699
        throw new UnsupportedOperationException("Not yet implemented!");  
×
700
    }
701
    
702
    @FameProperty(name = "numberOfSubclasses", derived = true)
703
    public Number getNumberOfSubclasses() {
704
        // TODO: this is a derived property, implement this method manually.
705
        throw new UnsupportedOperationException("Not yet implemented!");  
×
706
    }
707
    
708
    @FameProperty(name = "receivingInvocations", opposite = "receiver", derived = true)
709
    public Collection<TInvocation> getReceivingInvocations() {
710
        if (receivingInvocations == null) {
3!
711
            receivingInvocations = new MultivalueSet<TInvocation>() {
12✔
712
                @Override
713
                protected void clearOpposite(TInvocation e) {
714
                    e.setReceiver(null);
×
715
                }
×
716
                @Override
717
                protected void setOpposite(TInvocation e) {
718
                    e.setReceiver(Exception.this);
×
719
                }
×
720
            };
721
        }
722
        return receivingInvocations;
3✔
723
    }
724
    
725
    public void setReceivingInvocations(Collection<? extends TInvocation> receivingInvocations) {
726
        this.getReceivingInvocations().clear();
×
727
        this.getReceivingInvocations().addAll(receivingInvocations);
×
728
    }                    
×
729
    
730
        
731
    public void addReceivingInvocations(TInvocation one) {
732
        this.getReceivingInvocations().add(one);
×
733
    }   
×
734
    
735
    public void addReceivingInvocations(TInvocation one, TInvocation... many) {
736
        this.getReceivingInvocations().add(one);
×
737
        for (TInvocation each : many)
×
738
            this.getReceivingInvocations().add(each);
×
739
    }   
×
740
    
741
    public void addReceivingInvocations(Iterable<? extends TInvocation> many) {
742
        for (TInvocation each : many)
×
743
            this.getReceivingInvocations().add(each);
×
744
    }   
×
745
                
746
    public void addReceivingInvocations(TInvocation[] many) {
747
        for (TInvocation each : many)
×
748
            this.getReceivingInvocations().add(each);
×
749
    }
×
750
    
751
    public int numberOfReceivingInvocations() {
752
        return getReceivingInvocations().size();
×
753
    }
754

755
    public boolean hasReceivingInvocations() {
756
        return !getReceivingInvocations().isEmpty();
×
757
    }
758

759
    @FameProperty(name = "sourceAnchor", opposite = "element", derived = true)
760
    public TSourceAnchor getSourceAnchor() {
761
        return sourceAnchor;
3✔
762
    }
763

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

826
    public boolean hasSubInheritances() {
827
        return !getSubInheritances().isEmpty();
×
828
    }
829

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

883
    public boolean hasSuperInheritances() {
884
        return !getSuperInheritances().isEmpty();
×
885
    }
886

887
    @FameProperty(name = "throwingEntities", opposite = "thrownExceptions", derived = true)
888
    public Collection<TWithExceptions> getThrowingEntities() {
889
        if (throwingEntities == null) {
3✔
890
            throwingEntities = new MultivalueSet<TWithExceptions>() {
12✔
891
                @Override
892
                protected void clearOpposite(TWithExceptions e) {
893
                    e.getThrownExceptions().remove(Exception.this);
×
894
                }
×
895
                @Override
896
                protected void setOpposite(TWithExceptions e) {
897
                    e.getThrownExceptions().add(Exception.this);
6✔
898
                }
1✔
899
            };
900
        }
901
        return throwingEntities;
3✔
902
    }
903
    
904
    public void setThrowingEntities(Collection<? extends TWithExceptions> throwingEntities) {
905
        this.getThrowingEntities().clear();
×
906
        this.getThrowingEntities().addAll(throwingEntities);
×
907
    }
×
908
    
909
    public void addThrowingEntities(TWithExceptions one) {
910
        this.getThrowingEntities().add(one);
×
911
    }   
×
912
    
913
    public void addThrowingEntities(TWithExceptions one, TWithExceptions... many) {
914
        this.getThrowingEntities().add(one);
×
915
        for (TWithExceptions each : many)
×
916
            this.getThrowingEntities().add(each);
×
917
    }   
×
918
    
919
    public void addThrowingEntities(Iterable<? extends TWithExceptions> many) {
920
        for (TWithExceptions each : many)
×
921
            this.getThrowingEntities().add(each);
×
922
    }   
×
923
                
924
    public void addThrowingEntities(TWithExceptions[] many) {
925
        for (TWithExceptions each : many)
×
926
            this.getThrowingEntities().add(each);
×
927
    }
×
928
    
929
    public int numberOfThrowingEntities() {
930
        return getThrowingEntities().size();
×
931
    }
932

933
    public boolean hasThrowingEntities() {
934
        return !getThrowingEntities().isEmpty();
×
935
    }
936

937
    @FameProperty(name = "tightClassCohesion", derived = true)
938
    public Number getTightClassCohesion() {
939
        // TODO: this is a derived property, implement this method manually.
940
        throw new UnsupportedOperationException("Not yet implemented!");  
×
941
    }
942
    
943
    @FameProperty(name = "typeContainer", opposite = "types", container = true)
944
    public TWithTypes getTypeContainer() {
945
        return typeContainer;
3✔
946
    }
947

948
    public void setTypeContainer(TWithTypes typeContainer) {
949
        if (this.typeContainer != null) {
3✔
950
            if (this.typeContainer.equals(typeContainer)) return;
6!
951
            this.typeContainer.getTypes().remove(this);
×
952
        }
953
        this.typeContainer = typeContainer;
3✔
954
        if (typeContainer == null) return;
2!
955
        typeContainer.getTypes().add(this);
5✔
956
    }
1✔
957
    
958
    @FameProperty(name = "types", opposite = "typeContainer", derived = true)
959
    public Collection<TType> getTypes() {
960
        if (types == null) {
3✔
961
            types = new MultivalueSet<TType>() {
12✔
962
                @Override
963
                protected void clearOpposite(TType e) {
964
                    e.setTypeContainer(null);
×
965
                }
×
966
                @Override
967
                protected void setOpposite(TType e) {
968
                    e.setTypeContainer(Exception.this);
4✔
969
                }
1✔
970
            };
971
        }
972
        return types;
3✔
973
    }
974
    
975
    public void setTypes(Collection<? extends TType> types) {
976
        this.getTypes().clear();
×
977
        this.getTypes().addAll(types);
×
978
    }                    
×
979
    
980
        
981
    public void addTypes(TType one) {
982
        this.getTypes().add(one);
×
983
    }   
×
984
    
985
    public void addTypes(TType one, TType... many) {
986
        this.getTypes().add(one);
×
987
        for (TType each : many)
×
988
            this.getTypes().add(each);
×
989
    }   
×
990
    
991
    public void addTypes(Iterable<? extends TType> many) {
992
        for (TType each : many)
10✔
993
            this.getTypes().add(each);
6✔
994
    }   
1✔
995
                
996
    public void addTypes(TType[] many) {
997
        for (TType each : many)
×
998
            this.getTypes().add(each);
×
999
    }
×
1000
    
1001
    public int numberOfTypes() {
1002
        return getTypes().size();
×
1003
    }
1004

1005
    public boolean hasTypes() {
1006
        return !getTypes().isEmpty();
×
1007
    }
1008

1009
    @FameProperty(name = "visibility")
1010
    public String getVisibility() {
1011
        return visibility;
3✔
1012
    }
1013

1014
    public void setVisibility(String visibility) {
UNCOV
1015
        this.visibility = visibility;
×
UNCOV
1016
    }
×
1017
    
1018
    @FameProperty(name = "weightOfAClass", derived = true)
1019
    public Number getWeightOfAClass() {
1020
        // TODO: this is a derived property, implement this method manually.
1021
        throw new UnsupportedOperationException("Not yet implemented!");  
×
1022
    }
1023
    
1024
    @FameProperty(name = "weightedMethodCount", derived = true)
1025
    public Number getWeightedMethodCount() {
1026
        // TODO: this is a derived property, implement this method manually.
1027
        throw new UnsupportedOperationException("Not yet implemented!");  
×
1028
    }
1029
    
1030

1031

1032
}
1033

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