• 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

22.82
/app/src/main/java/org/moosetechnology/model/famix/famixjavaentities/EnumValue.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.TComment;
11
import org.moosetechnology.model.famix.famixtraits.TEntityTyping;
12
import org.moosetechnology.model.famix.famixtraits.TEnumValue;
13
import org.moosetechnology.model.famix.famixtraits.TSourceAnchor;
14
import org.moosetechnology.model.famix.famixtraits.TType;
15
import org.moosetechnology.model.famix.famixtraits.TWithAccesses;
16
import org.moosetechnology.model.famix.famixtraits.TWithComments;
17
import org.moosetechnology.model.famix.famixtraits.TWithEnumValues;
18

19

20
@FamePackage("Famix-Java-Entities")
21
@FameDescription("EnumValue")
22
public class EnumValue extends Variable implements TEnumValue, TWithComments {
3✔
23

24
    private Collection<TComment> comments; 
25

26
    private Collection<TAccess> incomingAccesses; 
27

28
    private Boolean isStub;
29
    
30
    private String name;
31
    
32
    private Number numberOfLinesOfCode;
33
    
34
    private TWithEnumValues parentEnum;
35
    
36
    private TSourceAnchor sourceAnchor;
37
    
38
    private TEntityTyping typing;
39
    
40

41

42
    @FameProperty(name = "accessors", derived = true)
43
    public Collection<TWithAccesses> getAccessors() {
44
        // TODO: this is a derived property, implement this method manually.
45
        throw new UnsupportedOperationException("Not yet implemented!");  
5✔
46
    }
47
        
48
    @FameProperty(name = "comments", opposite = "commentedEntity", derived = true)
49
    public Collection<TComment> getComments() {
50
        if (comments == null) {
3!
51
            comments = new MultivalueSet<TComment>() {
12✔
52
                @Override
53
                protected void clearOpposite(TComment e) {
54
                    e.setCommentedEntity(null);
×
55
                }
×
56
                @Override
57
                protected void setOpposite(TComment e) {
58
                    e.setCommentedEntity(EnumValue.this);
×
59
                }
×
60
            };
61
        }
62
        return comments;
3✔
63
    }
64
    
65
    public void setComments(Collection<? extends TComment> comments) {
66
        this.getComments().clear();
×
67
        this.getComments().addAll(comments);
×
68
    }                    
×
69
    
70
        
71
    public void addComments(TComment one) {
72
        this.getComments().add(one);
×
73
    }   
×
74
    
75
    public void addComments(TComment one, TComment... many) {
76
        this.getComments().add(one);
×
77
        for (TComment each : many)
×
78
            this.getComments().add(each);
×
79
    }   
×
80
    
81
    public void addComments(Iterable<? extends TComment> many) {
82
        for (TComment each : many)
×
83
            this.getComments().add(each);
×
84
    }   
×
85
                
86
    public void addComments(TComment[] many) {
87
        for (TComment each : many)
×
88
            this.getComments().add(each);
×
89
    }
×
90
    
91
    public int numberOfComments() {
92
        return getComments().size();
×
93
    }
94

95
    public boolean hasComments() {
96
        return !getComments().isEmpty();
×
97
    }
98

99
    @FameProperty(name = "fanIn", derived = true)
100
    public Number getFanIn() {
101
        // TODO: this is a derived property, implement this method manually.
102
        throw new UnsupportedOperationException("Not yet implemented!");  
×
103
    }
104
    
105
    @FameProperty(name = "fanOut", derived = true)
106
    public Number getFanOut() {
107
        // TODO: this is a derived property, implement this method manually.
108
        throw new UnsupportedOperationException("Not yet implemented!");  
×
109
    }
110
    
111
    @FameProperty(name = "hasComments", derived = true)
112
    public Boolean getHasComments() {
113
        // TODO: this is a derived property, implement this method manually.
114
        throw new UnsupportedOperationException("Not yet implemented!");  
×
115
    }
116
    
117
    @FameProperty(name = "incomingAccesses", opposite = "variable", derived = true)
118
    public Collection<TAccess> getIncomingAccesses() {
119
        if (incomingAccesses == null) {
3✔
120
            incomingAccesses = new MultivalueSet<TAccess>() {
12✔
121
                @Override
122
                protected void clearOpposite(TAccess e) {
123
                    e.setVariable(null);
×
124
                }
×
125
                @Override
126
                protected void setOpposite(TAccess e) {
127
                    e.setVariable(EnumValue.this);
4✔
128
                }
1✔
129
            };
130
        }
131
        return incomingAccesses;
3✔
132
    }
133
    
134
    public void setIncomingAccesses(Collection<? extends TAccess> incomingAccesses) {
135
        this.getIncomingAccesses().clear();
×
136
        this.getIncomingAccesses().addAll(incomingAccesses);
×
137
    }                    
×
138
    
139
        
140
    public void addIncomingAccesses(TAccess one) {
141
        this.getIncomingAccesses().add(one);
×
142
    }   
×
143
    
144
    public void addIncomingAccesses(TAccess one, TAccess... many) {
145
        this.getIncomingAccesses().add(one);
×
146
        for (TAccess each : many)
×
147
            this.getIncomingAccesses().add(each);
×
148
    }   
×
149
    
150
    public void addIncomingAccesses(Iterable<? extends TAccess> many) {
151
        for (TAccess each : many)
×
152
            this.getIncomingAccesses().add(each);
×
153
    }   
×
154
                
155
    public void addIncomingAccesses(TAccess[] many) {
156
        for (TAccess each : many)
×
157
            this.getIncomingAccesses().add(each);
×
158
    }
×
159
    
160
    public int numberOfIncomingAccesses() {
161
        return getIncomingAccesses().size();
4✔
162
    }
163

164
    public boolean hasIncomingAccesses() {
165
        return !getIncomingAccesses().isEmpty();
×
166
    }
167

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

185
    public void setIsStub(Boolean isStub) {
186
        this.isStub = isStub;
3✔
187
    }
1✔
188
    
189
    @FameProperty(name = "name")
190
    public String getName() {
191
        return name;
3✔
192
    }
193

194
    public void setName(String name) {
195
        this.name = name;
3✔
196
    }
1✔
197
    
198
    @FameProperty(name = "numberOfAccesses", derived = true)
199
    public Number getNumberOfAccesses() {
200
        // TODO: this is a derived property, implement this method manually.
201
        throw new UnsupportedOperationException("Not yet implemented!");  
×
202
    }
203
    
204
    @FameProperty(name = "numberOfAccessingClasses", derived = true)
205
    public Number getNumberOfAccessingClasses() {
206
        // TODO: this is a derived property, implement this method manually.
207
        throw new UnsupportedOperationException("Not yet implemented!");  
×
208
    }
209
    
210
    @FameProperty(name = "numberOfAccessingMethods", derived = true)
211
    public Number getNumberOfAccessingMethods() {
212
        // TODO: this is a derived property, implement this method manually.
213
        throw new UnsupportedOperationException("Not yet implemented!");  
×
214
    }
215
    
216
    @FameProperty(name = "numberOfChildren", derived = true)
217
    public Number getNumberOfChildren() {
218
        // TODO: this is a derived property, implement this method manually.
219
        throw new UnsupportedOperationException("Not yet implemented!");  
×
220
    }
221
    
222
    @FameProperty(name = "numberOfComments", derived = true)
223
    public Number getNumberOfComments() {
224
        // TODO: this is a derived property, implement this method manually.
225
        throw new UnsupportedOperationException("Not yet implemented!");  
×
226
    }
227
    
228
    @FameProperty(name = "numberOfDeadChildren", derived = true)
229
    public Number getNumberOfDeadChildren() {
230
        // TODO: this is a derived property, implement this method manually.
231
        throw new UnsupportedOperationException("Not yet implemented!");  
×
232
    }
233
    
234
    @FameProperty(name = "numberOfExternalClients", derived = true)
235
    public Number getNumberOfExternalClients() {
236
        // TODO: this is a derived property, implement this method manually.
237
        throw new UnsupportedOperationException("Not yet implemented!");  
×
238
    }
239
    
240
    @FameProperty(name = "numberOfExternalProviders", derived = true)
241
    public Number getNumberOfExternalProviders() {
242
        // TODO: this is a derived property, implement this method manually.
243
        throw new UnsupportedOperationException("Not yet implemented!");  
×
244
    }
245
    
246
    @FameProperty(name = "numberOfGlobalAccesses", derived = true)
247
    public Number getNumberOfGlobalAccesses() {
248
        // TODO: this is a derived property, implement this method manually.
249
        throw new UnsupportedOperationException("Not yet implemented!");  
×
250
    }
251
    
252
    @FameProperty(name = "numberOfInternalClients", derived = true)
253
    public Number getNumberOfInternalClients() {
254
        // TODO: this is a derived property, implement this method manually.
255
        throw new UnsupportedOperationException("Not yet implemented!");  
×
256
    }
257
    
258
    @FameProperty(name = "numberOfInternalProviders", derived = true)
259
    public Number getNumberOfInternalProviders() {
260
        // TODO: this is a derived property, implement this method manually.
261
        throw new UnsupportedOperationException("Not yet implemented!");  
×
262
    }
263
    
264
    @FameProperty(name = "numberOfLinesOfCode")
265
    public Number getNumberOfLinesOfCode() {
266
        return numberOfLinesOfCode;
3✔
267
    }
268

269
    public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) {
270
        this.numberOfLinesOfCode = numberOfLinesOfCode;
×
271
    }
×
272
    
273
    @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true)
274
    public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() {
275
        // TODO: this is a derived property, implement this method manually.
276
        throw new UnsupportedOperationException("Not yet implemented!");  
×
277
    }
278
    
279
    @FameProperty(name = "numberOfLocalAccesses", derived = true)
280
    public Number getNumberOfLocalAccesses() {
281
        // TODO: this is a derived property, implement this method manually.
282
        throw new UnsupportedOperationException("Not yet implemented!");  
×
283
    }
284
    
285
    @FameProperty(name = "parentEnum", opposite = "enumValues", container = true)
286
    public TWithEnumValues getParentEnum() {
287
        return parentEnum;
3✔
288
    }
289

290
    public void setParentEnum(TWithEnumValues parentEnum) {
291
        if (this.parentEnum != null) {
3✔
292
            if (this.parentEnum.equals(parentEnum)) return;
6!
293
            this.parentEnum.getEnumValues().remove(this);
×
294
        }
295
        this.parentEnum = parentEnum;
3✔
296
        if (parentEnum == null) return;
2!
297
        parentEnum.getEnumValues().add(this);
5✔
298
    }
1✔
299
    
300
    @FameProperty(name = "sourceAnchor", opposite = "element", derived = true)
301
    public TSourceAnchor getSourceAnchor() {
302
        return sourceAnchor;
3✔
303
    }
304

305
    public void setSourceAnchor(TSourceAnchor sourceAnchor) {
306
        if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) {
×
307
            TSourceAnchor old_sourceAnchor = this.sourceAnchor;
×
308
            this.sourceAnchor = sourceAnchor;
×
309
            if (old_sourceAnchor != null) old_sourceAnchor.setElement(null);
×
310
            if (sourceAnchor != null) sourceAnchor.setElement(this);
×
311
        }
312
    }
×
313
    
314
    @FameProperty(name = "sourceText", derived = true)
315
    public String getSourceText() {
316
        // TODO: this is a derived property, implement this method manually.
317
        throw new UnsupportedOperationException("Not yet implemented!");  
×
318
    }
319
    
320
    @FameProperty(name = "typing", opposite = "typedEntity")
321
    public TEntityTyping getTyping() {
322
        return typing;
3✔
323
    }
324

325
    public void setTyping(TEntityTyping typing) {
NEW
326
        if (this.typing == null ? typing != null : !this.typing.equals(typing)) {
×
NEW
327
            TEntityTyping old_typing = this.typing;
×
NEW
328
            this.typing = typing;
×
NEW
329
            if (old_typing != null) old_typing.setTypedEntity(null);
×
NEW
330
            if (typing != null) typing.setTypedEntity(this);
×
331
        }
NEW
332
    }
×
333
    
334
    public TType getDeclaredType() {
NEW
335
        return (this.typing == null) ? null : this.typing.getDeclaredType();
×
336
    }
337

338
}
339

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