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

moosetechnology / VerveineJ / 14660115829

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

Pull #127

github

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

1876 of 3946 branches covered (47.54%)

Branch coverage included in aggregate %.

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

56 existing lines in 10 files now uncovered.

4270 of 8205 relevant lines covered (52.04%)

2.08 hits per line

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

32.02
/app/src/main/java/org/moosetechnology/model/famix/famixjavaentities/Type.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.TEntityTyping;
10
import org.moosetechnology.model.famix.famixtraits.TMethod;
11
import org.moosetechnology.model.famix.famixtraits.TReference;
12
import org.moosetechnology.model.famix.famixtraits.TSourceAnchor;
13
import org.moosetechnology.model.famix.famixtraits.TType;
14
import org.moosetechnology.model.famix.famixtraits.TWithMethods;
15
import org.moosetechnology.model.famix.famixtraits.TWithTypes;
16

17

18
@FamePackage("Famix-Java-Entities")
19
@FameDescription("Type")
20
public class Type extends ContainerEntity implements TBound, TType, TWithMethods {
3✔
21

22
    private Collection<TReference> incomingReferences; 
23

24
    private Collection<TEntityTyping> incomingTypings; 
25

26
    private Boolean isStub;
27
    
28
    private Collection<TBounded> lowerBoundedWildcards; 
29

30
    private Collection<TMethod> methods; 
31

32
    private String name;
33
    
34
    private Number numberOfLinesOfCode;
35
    
36
    private TSourceAnchor sourceAnchor;
37
    
38
    private TWithTypes typeContainer;
39
    
40
    private Collection<TBounded> upperBoundedWildcards; 
41

42

43

44
    @FameProperty(name = "isInnerClass", derived = true)
45
    public Boolean getIsInnerClass() {
46
        // TODO: this is a derived property, implement this method manually.
47
        throw new UnsupportedOperationException("Not yet implemented!");  
×
48
    }
49
    
50
    @FameProperty(name = "fanIn", derived = true)
51
    public Number getFanIn() {
52
        // TODO: this is a derived property, implement this method manually.
53
        throw new UnsupportedOperationException("Not yet implemented!");  
×
54
    }
55
    
56
    @FameProperty(name = "fanOut", derived = true)
57
    public Number getFanOut() {
58
        // TODO: this is a derived property, implement this method manually.
59
        throw new UnsupportedOperationException("Not yet implemented!");  
×
60
    }
61
    
62
    @FameProperty(name = "incomingReferences", opposite = "referredEntity", derived = true)
63
    public Collection<TReference> getIncomingReferences() {
64
        if (incomingReferences == null) {
3✔
65
            incomingReferences = new MultivalueSet<TReference>() {
12✔
66
                @Override
67
                protected void clearOpposite(TReference e) {
68
                    e.setReferredEntity(null);
×
69
                }
×
70
                @Override
71
                protected void setOpposite(TReference e) {
72
                    e.setReferredEntity(Type.this);
4✔
73
                }
1✔
74
            };
75
        }
76
        return incomingReferences;
3✔
77
    }
78
    
79
    public void setIncomingReferences(Collection<? extends TReference> incomingReferences) {
80
        this.getIncomingReferences().clear();
×
81
        this.getIncomingReferences().addAll(incomingReferences);
×
82
    }                    
×
83
    
84
        
85
    public void addIncomingReferences(TReference one) {
86
        this.getIncomingReferences().add(one);
×
87
    }   
×
88
    
89
    public void addIncomingReferences(TReference one, TReference... many) {
90
        this.getIncomingReferences().add(one);
×
91
        for (TReference each : many)
×
92
            this.getIncomingReferences().add(each);
×
93
    }   
×
94
    
95
    public void addIncomingReferences(Iterable<? extends TReference> many) {
96
        for (TReference each : many)
×
97
            this.getIncomingReferences().add(each);
×
98
    }   
×
99
                
100
    public void addIncomingReferences(TReference[] many) {
101
        for (TReference each : many)
×
102
            this.getIncomingReferences().add(each);
×
103
    }
×
104
    
105
    public int numberOfIncomingReferences() {
106
        return getIncomingReferences().size();
×
107
    }
108

109
    public boolean hasIncomingReferences() {
110
        return !getIncomingReferences().isEmpty();
×
111
    }
112

113
    @FameProperty(name = "incomingTypings", opposite = "declaredType", derived = true)
114
    public Collection<TEntityTyping> getIncomingTypings() {
115
        if (incomingTypings == null) {
3✔
116
            incomingTypings = new MultivalueSet<TEntityTyping>() {
12✔
117
                @Override
118
                protected void clearOpposite(TEntityTyping e) {
NEW
119
                    e.setDeclaredType(null);
×
NEW
120
                }
×
121
                @Override
122
                protected void setOpposite(TEntityTyping e) {
123
                    e.setDeclaredType(Type.this);
4✔
124
                }
1✔
125
            };
126
        }
127
        return incomingTypings;
3✔
128
    }
129
    
130
    public void setIncomingTypings(Collection<? extends TEntityTyping> incomingTypings) {
NEW
131
        this.getIncomingTypings().clear();
×
NEW
132
        this.getIncomingTypings().addAll(incomingTypings);
×
NEW
133
    }                    
×
134
    
135
        
136
    public void addIncomingTypings(TEntityTyping one) {
NEW
137
        this.getIncomingTypings().add(one);
×
NEW
138
    }   
×
139
    
140
    public void addIncomingTypings(TEntityTyping one, TEntityTyping... many) {
NEW
141
        this.getIncomingTypings().add(one);
×
NEW
142
        for (TEntityTyping each : many)
×
NEW
143
            this.getIncomingTypings().add(each);
×
NEW
144
    }   
×
145
    
146
    public void addIncomingTypings(Iterable<? extends TEntityTyping> many) {
NEW
147
        for (TEntityTyping each : many)
×
NEW
148
            this.getIncomingTypings().add(each);
×
NEW
149
    }   
×
150
                
151
    public void addIncomingTypings(TEntityTyping[] many) {
NEW
152
        for (TEntityTyping each : many)
×
NEW
153
            this.getIncomingTypings().add(each);
×
NEW
154
    }
×
155
    
156
    public int numberOfIncomingTypings() {
NEW
157
        return getIncomingTypings().size();
×
158
    }
159

160
    public boolean hasIncomingTypings() {
NEW
161
        return !getIncomingTypings().isEmpty();
×
162
    }
163

164
    @FameProperty(name = "isDead", derived = true)
165
    public Boolean getIsDead() {
166
        // TODO: this is a derived property, implement this method manually.
167
        throw new UnsupportedOperationException("Not yet implemented!");  
×
168
    }
169
    
170
    @FameProperty(name = "isRoot", derived = true)
171
    public Boolean getIsRoot() {
172
        // TODO: this is a derived property, implement this method manually.
173
        throw new UnsupportedOperationException("Not yet implemented!");  
×
174
    }
175
    
176
    @FameProperty(name = "isStub")
177
    public Boolean getIsStub() {
178
        return isStub;
3✔
179
    }
180

181
    public void setIsStub(Boolean isStub) {
182
        this.isStub = isStub;
3✔
183
    }
1✔
184
    
185
    @FameProperty(name = "lowerBoundedWildcards", opposite = "lowerBound", derived = true)
186
    public Collection<TBounded> getLowerBoundedWildcards() {
187
        if (lowerBoundedWildcards == null) {
3✔
188
            lowerBoundedWildcards = new MultivalueSet<TBounded>() {
12✔
189
                @Override
190
                protected void clearOpposite(TBounded e) {
191
                    e.setLowerBound(null);
×
192
                }
×
193
                @Override
194
                protected void setOpposite(TBounded e) {
195
                    e.setLowerBound(Type.this);
4✔
196
                }
1✔
197
            };
198
        }
199
        return lowerBoundedWildcards;
3✔
200
    }
201
    
202
    public void setLowerBoundedWildcards(Collection<? extends TBounded> lowerBoundedWildcards) {
203
        this.getLowerBoundedWildcards().clear();
×
204
        this.getLowerBoundedWildcards().addAll(lowerBoundedWildcards);
×
205
    }                    
×
206
    
207
        
208
    public void addLowerBoundedWildcards(TBounded one) {
209
        this.getLowerBoundedWildcards().add(one);
5✔
210
    }   
1✔
211
    
212
    public void addLowerBoundedWildcards(TBounded one, TBounded... many) {
213
        this.getLowerBoundedWildcards().add(one);
×
214
        for (TBounded each : many)
×
215
            this.getLowerBoundedWildcards().add(each);
×
216
    }   
×
217
    
218
    public void addLowerBoundedWildcards(Iterable<? extends TBounded> many) {
219
        for (TBounded each : many)
×
220
            this.getLowerBoundedWildcards().add(each);
×
221
    }   
×
222
                
223
    public void addLowerBoundedWildcards(TBounded[] many) {
224
        for (TBounded each : many)
×
225
            this.getLowerBoundedWildcards().add(each);
×
226
    }
×
227
    
228
    public int numberOfLowerBoundedWildcards() {
229
        return getLowerBoundedWildcards().size();
×
230
    }
231

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

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

283
    public boolean hasMethods() {
284
        return !getMethods().isEmpty();
×
285
    }
286

287
    @FameProperty(name = "name")
288
    public String getName() {
289
        return name;
3✔
290
    }
291

292
    public void setName(String name) {
293
        this.name = name;
3✔
294
    }
1✔
295
    
296
    @FameProperty(name = "numberOfAbstractMethods", derived = true)
297
    public Number getNumberOfAbstractMethods() {
298
        // TODO: this is a derived property, implement this method manually.
299
        throw new UnsupportedOperationException("Not yet implemented!");  
×
300
    }
301
    
302
    @FameProperty(name = "numberOfChildren", derived = true)
303
    public Number getNumberOfChildren() {
304
        // TODO: this is a derived property, implement this method manually.
305
        throw new UnsupportedOperationException("Not yet implemented!");  
×
306
    }
307
    
308
    @FameProperty(name = "numberOfDeadChildren", derived = true)
309
    public Number getNumberOfDeadChildren() {
310
        // TODO: this is a derived property, implement this method manually.
311
        throw new UnsupportedOperationException("Not yet implemented!");  
×
312
    }
313
    
314
    @FameProperty(name = "numberOfExternalClients", derived = true)
315
    public Number getNumberOfExternalClients() {
316
        // TODO: this is a derived property, implement this method manually.
317
        throw new UnsupportedOperationException("Not yet implemented!");  
×
318
    }
319
    
320
    @FameProperty(name = "numberOfExternalProviders", derived = true)
321
    public Number getNumberOfExternalProviders() {
322
        // TODO: this is a derived property, implement this method manually.
323
        throw new UnsupportedOperationException("Not yet implemented!");  
×
324
    }
325
    
326
    @FameProperty(name = "numberOfInternalClients", derived = true)
327
    public Number getNumberOfInternalClients() {
328
        // TODO: this is a derived property, implement this method manually.
329
        throw new UnsupportedOperationException("Not yet implemented!");  
×
330
    }
331
    
332
    @FameProperty(name = "numberOfInternalProviders", derived = true)
333
    public Number getNumberOfInternalProviders() {
334
        // TODO: this is a derived property, implement this method manually.
335
        throw new UnsupportedOperationException("Not yet implemented!");  
×
336
    }
337
    
338
    @FameProperty(name = "numberOfLinesOfCode")
339
    public Number getNumberOfLinesOfCode() {
340
        return numberOfLinesOfCode;
3✔
341
    }
342

343
    public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) {
344
        this.numberOfLinesOfCode = numberOfLinesOfCode;
×
345
    }
×
346
    
347
    @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true)
348
    public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() {
349
        // TODO: this is a derived property, implement this method manually.
350
        throw new UnsupportedOperationException("Not yet implemented!");  
×
351
    }
352
    
353
    @FameProperty(name = "numberOfMethods", derived = true)
354
    public Number getNumberOfMethods() {
355
        // TODO: this is a derived property, implement this method manually.
356
        throw new UnsupportedOperationException("Not yet implemented!");  
×
357
    }
358
    
359
    @FameProperty(name = "sourceAnchor", opposite = "element", derived = true)
360
    public TSourceAnchor getSourceAnchor() {
361
        return sourceAnchor;
3✔
362
    }
363

364
    public void setSourceAnchor(TSourceAnchor sourceAnchor) {
365
        if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) {
11!
366
            TSourceAnchor old_sourceAnchor = this.sourceAnchor;
3✔
367
            this.sourceAnchor = sourceAnchor;
3✔
368
            if (old_sourceAnchor != null) old_sourceAnchor.setElement(null);
2!
369
            if (sourceAnchor != null) sourceAnchor.setElement(this);
5!
370
        }
371
    }
1✔
372
    
373
    @FameProperty(name = "sourceText", derived = true)
374
    public String getSourceText() {
375
        // TODO: this is a derived property, implement this method manually.
376
        throw new UnsupportedOperationException("Not yet implemented!");  
×
377
    }
378
    
379
    @FameProperty(name = "tightClassCohesion", derived = true)
380
    public Number getTightClassCohesion() {
381
        // TODO: this is a derived property, implement this method manually.
382
        throw new UnsupportedOperationException("Not yet implemented!");  
×
383
    }
384
    
385
    @FameProperty(name = "typeContainer", opposite = "types", container = true)
386
    public TWithTypes getTypeContainer() {
387
        return typeContainer;
3✔
388
    }
389

390
    public void setTypeContainer(TWithTypes typeContainer) {
391
        if (this.typeContainer != null) {
3✔
392
            if (this.typeContainer.equals(typeContainer)) return;
6!
393
            this.typeContainer.getTypes().remove(this);
×
394
        }
395
        this.typeContainer = typeContainer;
3✔
396
        if (typeContainer == null) return;
2!
397
        typeContainer.getTypes().add(this);
5✔
398
    }
1✔
399
    
400
    @FameProperty(name = "upperBoundedWildcards", opposite = "upperBound", derived = true)
401
    public Collection<TBounded> getUpperBoundedWildcards() {
402
        if (upperBoundedWildcards == null) {
3✔
403
            upperBoundedWildcards = new MultivalueSet<TBounded>() {
12✔
404
                @Override
405
                protected void clearOpposite(TBounded e) {
406
                    e.setUpperBound(null);
3✔
407
                }
1✔
408
                @Override
409
                protected void setOpposite(TBounded e) {
410
                    e.setUpperBound(Type.this);
4✔
411
                }
1✔
412
            };
413
        }
414
        return upperBoundedWildcards;
3✔
415
    }
416
    
417
    public void setUpperBoundedWildcards(Collection<? extends TBounded> upperBoundedWildcards) {
418
        this.getUpperBoundedWildcards().clear();
×
419
        this.getUpperBoundedWildcards().addAll(upperBoundedWildcards);
×
420
    }                    
×
421
    
422
        
423
    public void addUpperBoundedWildcards(TBounded one) {
424
        this.getUpperBoundedWildcards().add(one);
5✔
425
    }   
1✔
426
    
427
    public void addUpperBoundedWildcards(TBounded one, TBounded... many) {
428
        this.getUpperBoundedWildcards().add(one);
×
429
        for (TBounded each : many)
×
430
            this.getUpperBoundedWildcards().add(each);
×
431
    }   
×
432
    
433
    public void addUpperBoundedWildcards(Iterable<? extends TBounded> many) {
434
        for (TBounded each : many)
×
435
            this.getUpperBoundedWildcards().add(each);
×
436
    }   
×
437
                
438
    public void addUpperBoundedWildcards(TBounded[] many) {
439
        for (TBounded each : many)
×
440
            this.getUpperBoundedWildcards().add(each);
×
441
    }
×
442
    
443
    public int numberOfUpperBoundedWildcards() {
444
        return getUpperBoundedWildcards().size();
×
445
    }
446

447
    public boolean hasUpperBoundedWildcards() {
448
        return !getUpperBoundedWildcards().isEmpty();
×
449
    }
450

451
    @FameProperty(name = "weightedMethodCount", derived = true)
452
    public Number getWeightedMethodCount() {
453
        // TODO: this is a derived property, implement this method manually.
454
        throw new UnsupportedOperationException("Not yet implemented!");  
×
455
    }
456
    
457

458

459
}
460

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