• 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

21.71
/app/src/main/java/org/moosetechnology/model/famix/famixjavaentities/AnnotationType.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.TAnnotationType;
11
import org.moosetechnology.model.famix.famixtraits.TAttribute;
12
import org.moosetechnology.model.famix.famixtraits.TComment;
13
import org.moosetechnology.model.famix.famixtraits.TConcretization;
14
import org.moosetechnology.model.famix.famixtraits.THasVisibility;
15
import org.moosetechnology.model.famix.famixtraits.TImplementable;
16
import org.moosetechnology.model.famix.famixtraits.TImplementation;
17
import org.moosetechnology.model.famix.famixtraits.TInheritance;
18
import org.moosetechnology.model.famix.famixtraits.TPackage;
19
import org.moosetechnology.model.famix.famixtraits.TPackageable;
20
import org.moosetechnology.model.famix.famixtraits.TParametricEntity;
21
import org.moosetechnology.model.famix.famixtraits.TTypeArgument;
22
import org.moosetechnology.model.famix.famixtraits.TWithAnnotationTypes;
23
import org.moosetechnology.model.famix.famixtraits.TWithAttributes;
24
import org.moosetechnology.model.famix.famixtraits.TWithComments;
25
import org.moosetechnology.model.famix.famixtraits.TWithInheritances;
26

27

28
@FamePackage("Famix-Java-Entities")
29
@FameDescription("AnnotationType")
30
public class AnnotationType extends Type implements TAnnotationType, TTypeArgument, THasVisibility, TImplementable, TPackageable, TWithAttributes, TWithComments, TWithInheritances {
3✔
31

32
    private TWithAnnotationTypes annotationTypesContainer;
33
    
34
    private Collection<TAttribute> attributes; 
35

36
    private Collection<TComment> comments; 
37

38
    private Collection<TParametricEntity> genericEntities; 
39

40
    private Collection<TImplementation> implementations; 
41

42
    private Collection<TAnnotationInstance> instances; 
43

44
    private Collection<TConcretization> outgoingConcretizations; 
45

46
    private TPackage parentPackage;
47
    
48
    private Collection<TInheritance> subInheritances; 
49

50
    private Collection<TInheritance> superInheritances; 
51

52
    private String visibility;
53
    
54

55

56
    @FameProperty(name = "annotationTypesContainer", opposite = "definedAnnotationTypes", container = true)
57
    public TWithAnnotationTypes getAnnotationTypesContainer() {
58
        return annotationTypesContainer;
3✔
59
    }
60

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

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

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

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

173

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

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

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

284
    public boolean hasInstances() {
285
        return !getInstances().isEmpty();
×
286
    }
287

288
    @FameProperty(name = "isPackageVisibility", derived = true)
289
    public Boolean getIsPackageVisibility() {
290
        // TODO: this is a derived property, implement this method manually.
291
        throw new UnsupportedOperationException("Not yet implemented!");  
×
292
    }
293
    
294
    @FameProperty(name = "isPrivate", derived = true)
295
    public Boolean getIsPrivate() {
296
        // TODO: this is a derived property, implement this method manually.
297
        throw new UnsupportedOperationException("Not yet implemented!");  
×
298
    }
299
    
300
    @FameProperty(name = "isProtected", derived = true)
301
    public Boolean getIsProtected() {
302
        // TODO: this is a derived property, implement this method manually.
303
        throw new UnsupportedOperationException("Not yet implemented!");  
×
304
    }
305
    
306
    @FameProperty(name = "isPublic", derived = true)
307
    public Boolean getIsPublic() {
308
        // TODO: this is a derived property, implement this method manually.
309
        throw new UnsupportedOperationException("Not yet implemented!");  
×
310
    }
311
    
312
    @FameProperty(name = "numberOfAttributes", derived = true)
313
    public Number getNumberOfAttributes() {
314
        // TODO: this is a derived property, implement this method manually.
315
        throw new UnsupportedOperationException("Not yet implemented!");  
×
316
    }
317
    
318
    @FameProperty(name = "numberOfComments", derived = true)
319
    public Number getNumberOfComments() {
320
        // TODO: this is a derived property, implement this method manually.
321
        throw new UnsupportedOperationException("Not yet implemented!");  
×
322
    }
323
    
324
    @FameProperty(name = "numberOfDirectSubclasses", derived = true)
325
    public Number getNumberOfDirectSubclasses() {
326
        // TODO: this is a derived property, implement this method manually.
327
        throw new UnsupportedOperationException("Not yet implemented!");  
×
328
    }
329
    
330
    @FameProperty(name = "numberOfSubclasses", derived = true)
331
    public Number getNumberOfSubclasses() {
332
        // TODO: this is a derived property, implement this method manually.
333
        throw new UnsupportedOperationException("Not yet implemented!");  
×
334
    }
335
    
336
    @FameProperty(name = "outgoingConcretizations", opposite = "typeArgument", derived = true)
337
    public Collection<TConcretization> getOutgoingConcretizations() {
338
        if (outgoingConcretizations == null) {
3✔
339
            outgoingConcretizations = new MultivalueSet<TConcretization>() {
12✔
340
                @Override
341
                protected void clearOpposite(TConcretization e) {
NEW
342
                    e.setTypeArgument(null);
×
NEW
343
                }
×
344
                @Override
345
                protected void setOpposite(TConcretization e) {
346
                    e.setTypeArgument(AnnotationType.this);
4✔
347
                }
1✔
348
            };
349
        }
350
        return outgoingConcretizations;
3✔
351
    }
352
    
353
    public void setOutgoingConcretizations(Collection<? extends TConcretization> outgoingConcretizations) {
NEW
354
        this.getOutgoingConcretizations().clear();
×
NEW
355
        this.getOutgoingConcretizations().addAll(outgoingConcretizations);
×
NEW
356
    }                    
×
357
    
358
        
359
    public void addOutgoingConcretizations(TConcretization one) {
NEW
360
        this.getOutgoingConcretizations().add(one);
×
NEW
361
    }   
×
362
    
363
    public void addOutgoingConcretizations(TConcretization one, TConcretization... many) {
NEW
364
        this.getOutgoingConcretizations().add(one);
×
NEW
365
        for (TConcretization each : many)
×
NEW
366
            this.getOutgoingConcretizations().add(each);
×
NEW
367
    }   
×
368
    
369
    public void addOutgoingConcretizations(Iterable<? extends TConcretization> many) {
NEW
370
        for (TConcretization each : many)
×
NEW
371
            this.getOutgoingConcretizations().add(each);
×
NEW
372
    }   
×
373
                
374
    public void addOutgoingConcretizations(TConcretization[] many) {
NEW
375
        for (TConcretization each : many)
×
NEW
376
            this.getOutgoingConcretizations().add(each);
×
NEW
377
    }
×
378
    
379
    public int numberOfOutgoingConcretizations() {
NEW
380
        return getOutgoingConcretizations().size();
×
381
    }
382

383
    public boolean hasOutgoingConcretizations() {
NEW
384
        return !getOutgoingConcretizations().isEmpty();
×
385
    }
386

387
    @FameProperty(name = "parentPackage", opposite = "childEntities", container = true)
388
    public TPackage getParentPackage() {
389
        return parentPackage;
3✔
390
    }
391

392
    public void setParentPackage(TPackage parentPackage) {
393
        if (this.parentPackage != null) {
×
394
            if (this.parentPackage.equals(parentPackage)) return;
×
395
            this.parentPackage.getChildEntities().remove(this);
×
396
        }
397
        this.parentPackage = parentPackage;
×
398
        if (parentPackage == null) return;
×
399
        parentPackage.getChildEntities().add(this);
×
400
    }
×
401
    
402
    @FameProperty(name = "subInheritances", opposite = "superclass", derived = true)
403
    public Collection<TInheritance> getSubInheritances() {
404
        if (subInheritances == null) {
3✔
405
            subInheritances = new MultivalueSet<TInheritance>() {
12✔
406
                @Override
407
                protected void clearOpposite(TInheritance e) {
408
                    e.setSuperclass(null);
×
409
                }
×
410
                @Override
411
                protected void setOpposite(TInheritance e) {
412
                    e.setSuperclass(AnnotationType.this);
×
413
                }
×
414
            };
415
        }
416
        return subInheritances;
3✔
417
    }
418
    
419
    public void setSubInheritances(Collection<? extends TInheritance> subInheritances) {
420
        this.getSubInheritances().clear();
×
421
        this.getSubInheritances().addAll(subInheritances);
×
422
    }                    
×
423
    
424
        
425
    public void addSubInheritances(TInheritance one) {
426
        this.getSubInheritances().add(one);
×
427
    }   
×
428
    
429
    public void addSubInheritances(TInheritance one, TInheritance... many) {
430
        this.getSubInheritances().add(one);
×
431
        for (TInheritance each : many)
×
432
            this.getSubInheritances().add(each);
×
433
    }   
×
434
    
435
    public void addSubInheritances(Iterable<? extends TInheritance> many) {
436
        for (TInheritance each : many)
×
437
            this.getSubInheritances().add(each);
×
438
    }   
×
439
                
440
    public void addSubInheritances(TInheritance[] many) {
441
        for (TInheritance each : many)
×
442
            this.getSubInheritances().add(each);
×
443
    }
×
444
    
445
    public int numberOfSubInheritances() {
446
        return getSubInheritances().size();
×
447
    }
448

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

453
    @FameProperty(name = "subclassHierarchyDepth", derived = true)
454
    public Number getSubclassHierarchyDepth() {
455
        // TODO: this is a derived property, implement this method manually.
456
        throw new UnsupportedOperationException("Not yet implemented!");  
×
457
    }
458
    
459
    @FameProperty(name = "superInheritances", opposite = "subclass", derived = true)
460
    public Collection<TInheritance> getSuperInheritances() {
461
        if (superInheritances == null) {
3✔
462
            superInheritances = new MultivalueSet<TInheritance>() {
12✔
463
                @Override
464
                protected void clearOpposite(TInheritance e) {
465
                    e.setSubclass(null);
×
466
                }
×
467
                @Override
468
                protected void setOpposite(TInheritance e) {
469
                    e.setSubclass(AnnotationType.this);
×
470
                }
×
471
            };
472
        }
473
        return superInheritances;
3✔
474
    }
475
    
476
    public void setSuperInheritances(Collection<? extends TInheritance> superInheritances) {
477
        this.getSuperInheritances().clear();
×
478
        this.getSuperInheritances().addAll(superInheritances);
×
479
    }                    
×
480
    
481
        
482
    public void addSuperInheritances(TInheritance one) {
483
        this.getSuperInheritances().add(one);
×
484
    }   
×
485
    
486
    public void addSuperInheritances(TInheritance one, TInheritance... many) {
487
        this.getSuperInheritances().add(one);
×
488
        for (TInheritance each : many)
×
489
            this.getSuperInheritances().add(each);
×
490
    }   
×
491
    
492
    public void addSuperInheritances(Iterable<? extends TInheritance> many) {
493
        for (TInheritance each : many)
×
494
            this.getSuperInheritances().add(each);
×
495
    }   
×
496
                
497
    public void addSuperInheritances(TInheritance[] many) {
498
        for (TInheritance each : many)
×
499
            this.getSuperInheritances().add(each);
×
500
    }
×
501
    
502
    public int numberOfSuperInheritances() {
503
        return getSuperInheritances().size();
×
504
    }
505

506
    public boolean hasSuperInheritances() {
507
        return !getSuperInheritances().isEmpty();
×
508
    }
509

510
    @FameProperty(name = "visibility")
511
    public String getVisibility() {
512
        return visibility;
3✔
513
    }
514

515
    public void setVisibility(String visibility) {
516
        this.visibility = visibility;
×
517
    }
×
518
    
519

520

521
}
522

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