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

moosetechnology / VerveineJ / 22185271598

19 Feb 2026 02:12PM UTC coverage: 51.954% (+0.4%) from 51.544%
22185271598

push

github

web-flow
Merge pull request #199 from moosetechnology/initializers

Introducing initializers

1972 of 3976 branches covered (49.6%)

Branch coverage included in aggregate %.

105 of 127 new or added lines in 26 files covered. (82.68%)

1 existing line in 1 file now uncovered.

4343 of 8179 relevant lines covered (53.1%)

2.15 hits per line

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

42.76
/app/src/main/java/org/moosetechnology/model/famix/famixjavaentities/Parameter.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.TCanBeFinal;
11
import org.moosetechnology.model.famix.famixtraits.TComment;
12
import org.moosetechnology.model.famix.famixtraits.TEntityTyping;
13
import org.moosetechnology.model.famix.famixtraits.TParameter;
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.TWithComments;
18
import org.moosetechnology.model.famix.famixtraits.TWithParameters;
19

20

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

25
    private Collection<TComment> comments; 
26

27
    private Collection<TAccess> incomingAccesses; 
28

29
    private Boolean isFinal;
30
    
31
    private Boolean isStub;
32
    
33
    private String name;
34
    
35
    private Number numberOfLinesOfCode;
36
    
37
    private TWithParameters parentBehaviouralEntity;
38
    
39
    private TSourceAnchor sourceAnchor;
40
    
41
    private TEntityTyping typing;
42
    
43

44

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

98
    public boolean hasComments() {
99
        return !getComments().isEmpty();
×
100
    }
101

102
    @FameProperty(name = "fanIn", derived = true)
103
    public Number getFanIn() {
104
        // TODO: this is a derived property, implement this method manually.
105
        throw new UnsupportedOperationException("Not yet implemented!");  
×
106
    }
107
    
108
    @FameProperty(name = "fanOut", derived = true)
109
    public Number getFanOut() {
110
        // TODO: this is a derived property, implement this method manually.
111
        throw new UnsupportedOperationException("Not yet implemented!");  
×
112
    }
113
    
114
    @FameProperty(name = "hasComments", derived = true)
115
    public Boolean getHasComments() {
116
        // TODO: this is a derived property, implement this method manually.
117
        throw new UnsupportedOperationException("Not yet implemented!");  
×
118
    }
119

120
    @FameProperty(name = "incomingAccesses", opposite = "candidates")
121
    public Collection<TAccess> getIncomingAccesses() {
122
        if (incomingAccesses == null) {
3✔
123
            incomingAccesses = new MultivalueSet<TAccess>() {
12✔
124
                @Override
125
                protected void clearOpposite(TAccess e) {
126
                    e.getCandidates().remove(Parameter.this);
×
127
                }
×
128
                @Override
129
                protected void setOpposite(TAccess e) {
130
                    e.getCandidates().add(Parameter.this);
6✔
131
                }
1✔
132
            };
133
        }
134
        return incomingAccesses;
3✔
135
    }
136
    
137
    public void setIncomingAccesses(Collection<? extends TAccess> incomingAccesses) {
138
        this.getIncomingAccesses().clear();
×
139
        this.getIncomingAccesses().addAll(incomingAccesses);
×
140
    }                    
×
141
    
142
        
143
    public void addIncomingAccesses(TAccess one) {
144
        this.getIncomingAccesses().add(one);
×
145
    }   
×
146
    
147
    public void addIncomingAccesses(TAccess one, TAccess... many) {
148
        this.getIncomingAccesses().add(one);
×
149
        for (TAccess each : many)
×
150
            this.getIncomingAccesses().add(each);
×
151
    }   
×
152
    
153
    public void addIncomingAccesses(Iterable<? extends TAccess> many) {
154
        for (TAccess each : many)
×
155
            this.getIncomingAccesses().add(each);
×
156
    }   
×
157
                
158
    public void addIncomingAccesses(TAccess[] many) {
159
        for (TAccess each : many)
×
160
            this.getIncomingAccesses().add(each);
×
161
    }
×
162
    
163
    public int numberOfIncomingAccesses() {
164
        return getIncomingAccesses().size();
×
165
    }
166

167
    public boolean hasIncomingAccesses() {
168
        return !getIncomingAccesses().isEmpty();
×
169
    }
170

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

182
    public void setIsFinal(Boolean isFinal) {
183
        this.isFinal = isFinal;
×
184
    }
×
185
    
186
    @FameProperty(name = "isRoot", derived = true)
187
    public Boolean getIsRoot() {
188
        // TODO: this is a derived property, implement this method manually.
189
        throw new UnsupportedOperationException("Not yet implemented!");  
×
190
    }
191
    
192
    @FameProperty(name = "isStub")
193
    public Boolean getIsStub() {
194
        return isStub;
3✔
195
    }
196

197
    public void setIsStub(Boolean isStub) {
198
        this.isStub = isStub;
3✔
199
    }
1✔
200
    
201
    @FameProperty(name = "name")
202
    public String getName() {
203
        return name;
3✔
204
    }
205

206
    public void setName(String name) {
207
        this.name = name;
3✔
208
    }
1✔
209
    
210
    @FameProperty(name = "numberOfAccesses", derived = true)
211
    public Number getNumberOfAccesses() {
212
        // TODO: this is a derived property, implement this method manually.
213
        throw new UnsupportedOperationException("Not yet implemented!");  
×
214
    }
215
    
216
    @FameProperty(name = "numberOfAccessingClasses", derived = true)
217
    public Number getNumberOfAccessingClasses() {
218
        // TODO: this is a derived property, implement this method manually.
219
        throw new UnsupportedOperationException("Not yet implemented!");  
×
220
    }
221
    
222
    @FameProperty(name = "numberOfAccessingMethods", derived = true)
223
    public Number getNumberOfAccessingMethods() {
224
        // TODO: this is a derived property, implement this method manually.
225
        throw new UnsupportedOperationException("Not yet implemented!");  
×
226
    }
227

228
    @FameProperty(name = "numberOfContainedEntities", derived = true)
229
    public Number getNumberOfContainedEntities() {
230
        // TODO: this is a derived property, implement this method manually.
NEW
231
        throw new UnsupportedOperationException("Not yet implemented!");
×
232
    }
233
    
234
    @FameProperty(name = "numberOfComments", derived = true)
235
    public Number getNumberOfComments() {
236
        // TODO: this is a derived property, implement this method manually.
237
        throw new UnsupportedOperationException("Not yet implemented!");  
×
238
    }
239
    
240
    @FameProperty(name = "numberOfDeadChildren", derived = true)
241
    public Number getNumberOfDeadChildren() {
242
        // TODO: this is a derived property, implement this method manually.
243
        throw new UnsupportedOperationException("Not yet implemented!");  
×
244
    }
245
    
246
    @FameProperty(name = "numberOfExternalClients", derived = true)
247
    public Number getNumberOfExternalClients() {
248
        // TODO: this is a derived property, implement this method manually.
249
        throw new UnsupportedOperationException("Not yet implemented!");  
×
250
    }
251
    
252
    @FameProperty(name = "numberOfExternalProviders", derived = true)
253
    public Number getNumberOfExternalProviders() {
254
        // TODO: this is a derived property, implement this method manually.
255
        throw new UnsupportedOperationException("Not yet implemented!");  
×
256
    }
257
    
258
    @FameProperty(name = "numberOfGlobalAccesses", derived = true)
259
    public Number getNumberOfGlobalAccesses() {
260
        // TODO: this is a derived property, implement this method manually.
261
        throw new UnsupportedOperationException("Not yet implemented!");  
×
262
    }
263
    
264
    @FameProperty(name = "numberOfInternalClients", derived = true)
265
    public Number getNumberOfInternalClients() {
266
        // TODO: this is a derived property, implement this method manually.
267
        throw new UnsupportedOperationException("Not yet implemented!");  
×
268
    }
269
    
270
    @FameProperty(name = "numberOfInternalProviders", derived = true)
271
    public Number getNumberOfInternalProviders() {
272
        // TODO: this is a derived property, implement this method manually.
273
        throw new UnsupportedOperationException("Not yet implemented!");  
×
274
    }
275
    
276
    @FameProperty(name = "numberOfLinesOfCode")
277
    public Number getNumberOfLinesOfCode() {
278
        return numberOfLinesOfCode;
3✔
279
    }
280

281
    public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) {
282
        this.numberOfLinesOfCode = numberOfLinesOfCode;
×
283
    }
×
284
    
285
    @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true)
286
    public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() {
287
        // TODO: this is a derived property, implement this method manually.
288
        throw new UnsupportedOperationException("Not yet implemented!");  
×
289
    }
290
    
291
    @FameProperty(name = "numberOfLocalAccesses", derived = true)
292
    public Number getNumberOfLocalAccesses() {
293
        // TODO: this is a derived property, implement this method manually.
294
        throw new UnsupportedOperationException("Not yet implemented!");  
×
295
    }
296
    
297
    @FameProperty(name = "parentBehaviouralEntity", opposite = "parameters", container = true)
298
    public TWithParameters getParentBehaviouralEntity() {
299
        return parentBehaviouralEntity;
3✔
300
    }
301

302
    public void setParentBehaviouralEntity(TWithParameters parentBehaviouralEntity) {
303
        if (this.parentBehaviouralEntity != null) {
3✔
304
            if (this.parentBehaviouralEntity.equals(parentBehaviouralEntity)) return;
6!
305
            this.parentBehaviouralEntity.getParameters().remove(this);
×
306
        }
307
        this.parentBehaviouralEntity = parentBehaviouralEntity;
3✔
308
        if (parentBehaviouralEntity == null) return;
2!
309
        parentBehaviouralEntity.getParameters().add(this);
5✔
310
    }
1✔
311
    
312
    @FameProperty(name = "sourceAnchor", opposite = "element", derived = true)
313
    public TSourceAnchor getSourceAnchor() {
314
        return sourceAnchor;
3✔
315
    }
316

317
    public void setSourceAnchor(TSourceAnchor sourceAnchor) {
318
        if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) {
11!
319
            TSourceAnchor old_sourceAnchor = this.sourceAnchor;
3✔
320
            this.sourceAnchor = sourceAnchor;
3✔
321
            if (old_sourceAnchor != null) old_sourceAnchor.setElement(null);
2!
322
            if (sourceAnchor != null) sourceAnchor.setElement(this);
5!
323
        }
324
    }
1✔
325
    
326
    @FameProperty(name = "sourceText", derived = true)
327
    public String getSourceText() {
328
        // TODO: this is a derived property, implement this method manually.
329
        throw new UnsupportedOperationException("Not yet implemented!");  
×
330
    }
331
    
332
    @FameProperty(name = "typing", opposite = "typedEntity")
333
    public TEntityTyping getTyping() {
334
        return typing;
3✔
335
    }
336

337
    public void setTyping(TEntityTyping typing) {
338
        if (this.typing == null ? typing != null : !this.typing.equals(typing)) {
11✔
339
            TEntityTyping old_typing = this.typing;
3✔
340
            this.typing = typing;
3✔
341
            if (old_typing != null) old_typing.setTypedEntity(null);
5✔
342
            if (typing != null) typing.setTypedEntity(this);
5✔
343
        }
344
    }
1✔
345
    
346
    public TType getDeclaredType() {
347
        return (this.typing == null) ? null : this.typing.getDeclaredType();
7!
348
    }
349

350
}
351

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