• 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

28.65
/app/src/main/java/org/moosetechnology/model/famix/famixjavaentities/AnnotationTypeAttribute.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.TAccess;
10
import org.moosetechnology.model.famix.famixtraits.TAnnotationInstanceAttribute;
11
import org.moosetechnology.model.famix.famixtraits.TAnnotationTypeAttribute;
12
import org.moosetechnology.model.famix.famixtraits.TComment;
13
import org.moosetechnology.model.famix.famixtraits.TEntityTyping;
14
import org.moosetechnology.model.famix.famixtraits.TSourceAnchor;
15
import org.moosetechnology.model.famix.famixtraits.TType;
16
import org.moosetechnology.model.famix.famixtraits.TWithAccesses;
17
import org.moosetechnology.model.famix.famixtraits.TWithAttributes;
18
import org.moosetechnology.model.famix.famixtraits.TWithComments;
19

20

21
@FamePackage("Famix-Java-Entities")
22
@FameDescription("AnnotationTypeAttribute")
23
public class AnnotationTypeAttribute extends Variable implements TAnnotationTypeAttribute, TWithComments {
3✔
24

25
    private Collection<TAnnotationInstanceAttribute> annotationAttributeInstances; 
26

27
    private Collection<TComment> comments; 
28

29
    private Collection<TAccess> incomingAccesses; 
30

31
    private Boolean isStub;
32
    
33
    private String name;
34
    
35
    private Number numberOfLinesOfCode;
36
    
37
    private TWithAttributes parentType;
38
    
39
    private TSourceAnchor sourceAnchor;
40
    
41
    private TEntityTyping typing;
42
    
43

44

45
    @FameProperty(name = "parentAnnotationType", derived = true)
46
    public AnnotationType getParentAnnotationType() {
47
        // TODO: this is a derived property, implement this method manually.
48
        throw new UnsupportedOperationException("Not yet implemented!");  
5✔
49
    }
50
    
51
    @FameProperty(name = "accessors", derived = true)
52
    public Collection<TWithAccesses> getAccessors() {
53
        // TODO: this is a derived property, implement this method manually.
54
        throw new UnsupportedOperationException("Not yet implemented!");  
5✔
55
    }
56
        
57
    @FameProperty(name = "annotationAttributeInstances", opposite = "annotationTypeAttribute", derived = true)
58
    public Collection<TAnnotationInstanceAttribute> getAnnotationAttributeInstances() {
59
        if (annotationAttributeInstances == null) {
3✔
60
            annotationAttributeInstances = new MultivalueSet<TAnnotationInstanceAttribute>() {
12✔
61
                @Override
62
                protected void clearOpposite(TAnnotationInstanceAttribute e) {
63
                    e.setAnnotationTypeAttribute(null);
×
64
                }
×
65
                @Override
66
                protected void setOpposite(TAnnotationInstanceAttribute e) {
67
                    e.setAnnotationTypeAttribute(AnnotationTypeAttribute.this);
4✔
68
                }
1✔
69
            };
70
        }
71
        return annotationAttributeInstances;
3✔
72
    }
73
    
74
    public void setAnnotationAttributeInstances(Collection<? extends TAnnotationInstanceAttribute> annotationAttributeInstances) {
75
        this.getAnnotationAttributeInstances().clear();
×
76
        this.getAnnotationAttributeInstances().addAll(annotationAttributeInstances);
×
77
    }                    
×
78
    
79
        
80
    public void addAnnotationAttributeInstances(TAnnotationInstanceAttribute one) {
81
        this.getAnnotationAttributeInstances().add(one);
×
82
    }   
×
83
    
84
    public void addAnnotationAttributeInstances(TAnnotationInstanceAttribute one, TAnnotationInstanceAttribute... many) {
85
        this.getAnnotationAttributeInstances().add(one);
×
NEW
86
        for (TAnnotationInstanceAttribute each : many)
×
87
            this.getAnnotationAttributeInstances().add(each);
×
88
    }   
×
89
    
90
    public void addAnnotationAttributeInstances(Iterable<? extends TAnnotationInstanceAttribute> many) {
NEW
91
        for (TAnnotationInstanceAttribute each : many)
×
92
            this.getAnnotationAttributeInstances().add(each);
×
93
    }   
×
94
                
95
    public void addAnnotationAttributeInstances(TAnnotationInstanceAttribute[] many) {
NEW
96
        for (TAnnotationInstanceAttribute each : many)
×
97
            this.getAnnotationAttributeInstances().add(each);
×
98
    }
×
99
    
100
    public int numberOfAnnotationAttributeInstances() {
101
        return getAnnotationAttributeInstances().size();
×
102
    }
103

104
    public boolean hasAnnotationAttributeInstances() {
105
        return !getAnnotationAttributeInstances().isEmpty();
×
106
    }
107

108
    @FameProperty(name = "comments", opposite = "commentedEntity", derived = true)
109
    public Collection<TComment> getComments() {
110
        if (comments == null) {
3!
111
            comments = new MultivalueSet<TComment>() {
12✔
112
                @Override
113
                protected void clearOpposite(TComment e) {
114
                    e.setCommentedEntity(null);
×
115
                }
×
116
                @Override
117
                protected void setOpposite(TComment e) {
118
                    e.setCommentedEntity(AnnotationTypeAttribute.this);
×
119
                }
×
120
            };
121
        }
122
        return comments;
3✔
123
    }
124
    
125
    public void setComments(Collection<? extends TComment> comments) {
126
        this.getComments().clear();
×
127
        this.getComments().addAll(comments);
×
128
    }                    
×
129
    
130
        
131
    public void addComments(TComment one) {
132
        this.getComments().add(one);
×
133
    }   
×
134
    
135
    public void addComments(TComment one, TComment... many) {
136
        this.getComments().add(one);
×
137
        for (TComment each : many)
×
138
            this.getComments().add(each);
×
139
    }   
×
140
    
141
    public void addComments(Iterable<? extends TComment> many) {
142
        for (TComment each : many)
×
143
            this.getComments().add(each);
×
144
    }   
×
145
                
146
    public void addComments(TComment[] many) {
147
        for (TComment each : many)
×
148
            this.getComments().add(each);
×
149
    }
×
150
    
151
    public int numberOfComments() {
152
        return getComments().size();
×
153
    }
154

155
    public boolean hasComments() {
156
        return !getComments().isEmpty();
×
157
    }
158

159
    @FameProperty(name = "fanIn", derived = true)
160
    public Number getFanIn() {
161
        // TODO: this is a derived property, implement this method manually.
162
        throw new UnsupportedOperationException("Not yet implemented!");  
×
163
    }
164
    
165
    @FameProperty(name = "fanOut", derived = true)
166
    public Number getFanOut() {
167
        // TODO: this is a derived property, implement this method manually.
168
        throw new UnsupportedOperationException("Not yet implemented!");  
×
169
    }
170
    
171
    @FameProperty(name = "hasComments", derived = true)
172
    public Boolean getHasComments() {
173
        // TODO: this is a derived property, implement this method manually.
174
        throw new UnsupportedOperationException("Not yet implemented!");  
×
175
    }
176
    
177
    @FameProperty(name = "hierarchyNestingLevel", derived = true)
178
    public Number getHierarchyNestingLevel() {
179
        // TODO: this is a derived property, implement this method manually.
180
        throw new UnsupportedOperationException("Not yet implemented!");  
×
181
    }
182
    
183
    @FameProperty(name = "incomingAccesses", opposite = "variable", derived = true)
184
    public Collection<TAccess> getIncomingAccesses() {
185
        if (incomingAccesses == null) {
3!
186
            incomingAccesses = new MultivalueSet<TAccess>() {
12✔
187
                @Override
188
                protected void clearOpposite(TAccess e) {
189
                    e.setVariable(null);
×
190
                }
×
191
                @Override
192
                protected void setOpposite(TAccess e) {
193
                    e.setVariable(AnnotationTypeAttribute.this);
×
194
                }
×
195
            };
196
        }
197
        return incomingAccesses;
3✔
198
    }
199
    
200
    public void setIncomingAccesses(Collection<? extends TAccess> incomingAccesses) {
201
        this.getIncomingAccesses().clear();
×
202
        this.getIncomingAccesses().addAll(incomingAccesses);
×
203
    }                    
×
204
    
205
        
206
    public void addIncomingAccesses(TAccess one) {
207
        this.getIncomingAccesses().add(one);
×
208
    }   
×
209
    
210
    public void addIncomingAccesses(TAccess one, TAccess... many) {
211
        this.getIncomingAccesses().add(one);
×
212
        for (TAccess each : many)
×
213
            this.getIncomingAccesses().add(each);
×
214
    }   
×
215
    
216
    public void addIncomingAccesses(Iterable<? extends TAccess> many) {
217
        for (TAccess each : many)
×
218
            this.getIncomingAccesses().add(each);
×
219
    }   
×
220
                
221
    public void addIncomingAccesses(TAccess[] many) {
222
        for (TAccess each : many)
×
223
            this.getIncomingAccesses().add(each);
×
224
    }
×
225
    
226
    public int numberOfIncomingAccesses() {
227
        return getIncomingAccesses().size();
×
228
    }
229

230
    public boolean hasIncomingAccesses() {
231
        return !getIncomingAccesses().isEmpty();
×
232
    }
233

234
    @FameProperty(name = "isDead", derived = true)
235
    public Boolean getIsDead() {
236
        // TODO: this is a derived property, implement this method manually.
237
        throw new UnsupportedOperationException("Not yet implemented!");  
×
238
    }
239
    
240
    @FameProperty(name = "isRoot", derived = true)
241
    public Boolean getIsRoot() {
242
        // TODO: this is a derived property, implement this method manually.
243
        throw new UnsupportedOperationException("Not yet implemented!");  
×
244
    }
245
    
246
    @FameProperty(name = "isStub")
247
    public Boolean getIsStub() {
248
        return isStub;
3✔
249
    }
250

251
    public void setIsStub(Boolean isStub) {
252
        this.isStub = isStub;
3✔
253
    }
1✔
254
    
255
    @FameProperty(name = "name")
256
    public String getName() {
257
        return name;
3✔
258
    }
259

260
    public void setName(String name) {
261
        this.name = name;
3✔
262
    }
1✔
263
    
264
    @FameProperty(name = "numberOfAccesses", derived = true)
265
    public Number getNumberOfAccesses() {
266
        // TODO: this is a derived property, implement this method manually.
267
        throw new UnsupportedOperationException("Not yet implemented!");  
×
268
    }
269
    
270
    @FameProperty(name = "numberOfAccessingClasses", derived = true)
271
    public Number getNumberOfAccessingClasses() {
272
        // TODO: this is a derived property, implement this method manually.
273
        throw new UnsupportedOperationException("Not yet implemented!");  
×
274
    }
275
    
276
    @FameProperty(name = "numberOfAccessingMethods", derived = true)
277
    public Number getNumberOfAccessingMethods() {
278
        // TODO: this is a derived property, implement this method manually.
279
        throw new UnsupportedOperationException("Not yet implemented!");  
×
280
    }
281
    
282
    @FameProperty(name = "numberOfChildren", derived = true)
283
    public Number getNumberOfChildren() {
284
        // TODO: this is a derived property, implement this method manually.
285
        throw new UnsupportedOperationException("Not yet implemented!");  
×
286
    }
287
    
288
    @FameProperty(name = "numberOfComments", derived = true)
289
    public Number getNumberOfComments() {
290
        // TODO: this is a derived property, implement this method manually.
291
        throw new UnsupportedOperationException("Not yet implemented!");  
×
292
    }
293
    
294
    @FameProperty(name = "numberOfDeadChildren", derived = true)
295
    public Number getNumberOfDeadChildren() {
296
        // TODO: this is a derived property, implement this method manually.
297
        throw new UnsupportedOperationException("Not yet implemented!");  
×
298
    }
299
    
300
    @FameProperty(name = "numberOfExternalClients", derived = true)
301
    public Number getNumberOfExternalClients() {
302
        // TODO: this is a derived property, implement this method manually.
303
        throw new UnsupportedOperationException("Not yet implemented!");  
×
304
    }
305
    
306
    @FameProperty(name = "numberOfExternalProviders", derived = true)
307
    public Number getNumberOfExternalProviders() {
308
        // TODO: this is a derived property, implement this method manually.
309
        throw new UnsupportedOperationException("Not yet implemented!");  
×
310
    }
311
    
312
    @FameProperty(name = "numberOfGlobalAccesses", derived = true)
313
    public Number getNumberOfGlobalAccesses() {
314
        // TODO: this is a derived property, implement this method manually.
315
        throw new UnsupportedOperationException("Not yet implemented!");  
×
316
    }
317
    
318
    @FameProperty(name = "numberOfInternalClients", derived = true)
319
    public Number getNumberOfInternalClients() {
320
        // TODO: this is a derived property, implement this method manually.
321
        throw new UnsupportedOperationException("Not yet implemented!");  
×
322
    }
323
    
324
    @FameProperty(name = "numberOfInternalProviders", derived = true)
325
    public Number getNumberOfInternalProviders() {
326
        // TODO: this is a derived property, implement this method manually.
327
        throw new UnsupportedOperationException("Not yet implemented!");  
×
328
    }
329
    
330
    @FameProperty(name = "numberOfLinesOfCode")
331
    public Number getNumberOfLinesOfCode() {
332
        return numberOfLinesOfCode;
3✔
333
    }
334

335
    public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) {
336
        this.numberOfLinesOfCode = numberOfLinesOfCode;
×
337
    }
×
338
    
339
    @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true)
340
    public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() {
341
        // TODO: this is a derived property, implement this method manually.
342
        throw new UnsupportedOperationException("Not yet implemented!");  
×
343
    }
344
    
345
    @FameProperty(name = "numberOfLocalAccesses", derived = true)
346
    public Number getNumberOfLocalAccesses() {
347
        // TODO: this is a derived property, implement this method manually.
348
        throw new UnsupportedOperationException("Not yet implemented!");  
×
349
    }
350
    
351
    @FameProperty(name = "parentType", opposite = "attributes", container = true)
352
    public TWithAttributes getParentType() {
353
        return parentType;
3✔
354
    }
355

356
    public void setParentType(TWithAttributes parentType) {
357
        if (this.parentType != null) {
3✔
358
            if (this.parentType.equals(parentType)) return;
6!
359
            this.parentType.getAttributes().remove(this);
×
360
        }
361
        this.parentType = parentType;
3✔
362
        if (parentType == null) return;
2!
363
        parentType.getAttributes().add(this);
5✔
364
    }
1✔
365
    
366
    @FameProperty(name = "sourceAnchor", opposite = "element", derived = true)
367
    public TSourceAnchor getSourceAnchor() {
368
        return sourceAnchor;
3✔
369
    }
370

371
    public void setSourceAnchor(TSourceAnchor sourceAnchor) {
372
        if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) {
11!
373
            TSourceAnchor old_sourceAnchor = this.sourceAnchor;
3✔
374
            this.sourceAnchor = sourceAnchor;
3✔
375
            if (old_sourceAnchor != null) old_sourceAnchor.setElement(null);
5✔
376
            if (sourceAnchor != null) sourceAnchor.setElement(this);
5✔
377
        }
378
    }
1✔
379
    
380
    @FameProperty(name = "sourceText", derived = true)
381
    public String getSourceText() {
382
        // TODO: this is a derived property, implement this method manually.
383
        throw new UnsupportedOperationException("Not yet implemented!");  
×
384
    }
385
    
386
    @FameProperty(name = "typing", opposite = "typedEntity")
387
    public TEntityTyping getTyping() {
388
        return typing;
3✔
389
    }
390

391
    public void setTyping(TEntityTyping typing) {
NEW
392
        if (this.typing == null ? typing != null : !this.typing.equals(typing)) {
×
NEW
393
            TEntityTyping old_typing = this.typing;
×
NEW
394
            this.typing = typing;
×
NEW
395
            if (old_typing != null) old_typing.setTypedEntity(null);
×
NEW
396
            if (typing != null) typing.setTypedEntity(this);
×
397
        }
NEW
398
    }
×
399
    
400
    public TType getDeclaredType() {
NEW
401
        return (this.typing == null) ? null : this.typing.getDeclaredType();
×
402
    }
403

404
}
405

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