• 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

34.38
/app/src/main/java/org/moosetechnology/model/famix/famixjavaentities/Method.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.TCanBeAbstract;
11
import org.moosetechnology.model.famix.famixtraits.TCanBeClassSide;
12
import org.moosetechnology.model.famix.famixtraits.TCanBeFinal;
13
import org.moosetechnology.model.famix.famixtraits.TComment;
14
import org.moosetechnology.model.famix.famixtraits.TEntityTyping;
15
import org.moosetechnology.model.famix.famixtraits.THasKind;
16
import org.moosetechnology.model.famix.famixtraits.THasVisibility;
17
import org.moosetechnology.model.famix.famixtraits.TImplicitVariable;
18
import org.moosetechnology.model.famix.famixtraits.TImport;
19
import org.moosetechnology.model.famix.famixtraits.TImportable;
20
import org.moosetechnology.model.famix.famixtraits.TInvocation;
21
import org.moosetechnology.model.famix.famixtraits.TLocalVariable;
22
import org.moosetechnology.model.famix.famixtraits.TMethod;
23
import org.moosetechnology.model.famix.famixtraits.TParameter;
24
import org.moosetechnology.model.famix.famixtraits.TReference;
25
import org.moosetechnology.model.famix.famixtraits.TSourceAnchor;
26
import org.moosetechnology.model.famix.famixtraits.TThrowable;
27
import org.moosetechnology.model.famix.famixtraits.TType;
28
import org.moosetechnology.model.famix.famixtraits.TWithComments;
29
import org.moosetechnology.model.famix.famixtraits.TWithExceptions;
30
import org.moosetechnology.model.famix.famixtraits.TWithMethods;
31

32

33
@FamePackage("Famix-Java-Entities")
34
@FameDescription("Method")
35
public class Method extends ContainerEntity implements TCanBeAbstract, TCanBeClassSide, TCanBeFinal, TCanBeSynchronized, THasKind, THasVisibility, TImportable, TMethod, TWithComments, TWithExceptions {
3✔
36

37
    private Number numberOfConditionals;
38
    
39
    private Collection<TAccess> accesses; 
40

41
    private Collection<TThrowable> caughtExceptions; 
42

43
    private Collection<TComment> comments; 
44

45
    private Number cyclomaticComplexity;
46
    
47
    private Collection<TThrowable> declaredExceptions; 
48

49
    private Collection<TImplicitVariable> implicitVariables; 
50

51
    private Collection<TImport> incomingImports; 
52

53
    private Collection<TInvocation> incomingInvocations; 
54

55
    private Boolean isAbstract;
56
    
57
    private Boolean isClassSide;
58
    
59
    private Boolean isFinal;
60
    
61
    private Boolean isStub;
62
    
63
    private Boolean isSynchronized;
64
    
65
    private String kind;
66
    
67
    private Collection<TLocalVariable> localVariables; 
68

69
    private String name;
70
    
71
    private Number numberOfLinesOfCode;
72
    
73
    private Collection<TInvocation> outgoingInvocations; 
74

75
    private Collection<TReference> outgoingReferences; 
76

77
    private Collection<TParameter> parameters; 
78

79
    private TWithMethods parentType;
80
    
81
    private String signature;
82
    
83
    private TSourceAnchor sourceAnchor;
84
    
85
    private Collection<TThrowable> thrownExceptions; 
86

87
    private TEntityTyping typing;
88
    
89
    private String visibility;
90

91
    private Boolean isDead;
92
    
93
    private Number numberOfStatements;
94

95

96
    @FameProperty(name = "clientBehaviours", derived = true)
97
    public Collection<Method> getClientBehaviours() {
98
        // TODO: this is a derived property, implement this method manually.
99
        throw new UnsupportedOperationException("Not yet implemented!");  
5✔
100
    }
101
        
102
    @FameProperty(name = "invokedMethods", derived = true)
103
    public Collection<Method> getInvokedMethods() {
104
        // TODO: this is a derived property, implement this method manually.
105
        throw new UnsupportedOperationException("Not yet implemented!");  
5✔
106
    }
107
        
108
    @FameProperty(name = "invokingMethods", derived = true)
109
    public Collection<Method> getInvokingMethods() {
110
        // TODO: this is a derived property, implement this method manually.
111
        throw new UnsupportedOperationException("Not yet implemented!");  
5✔
112
    }
113
        
114
    @FameProperty(name = "isInitializer", derived = true)
115
    public Boolean getIsInitializer() {
116
        return false;
3✔
117
    }
118
    
119
    @FameProperty(name = "isImplementing", derived = true)
120
    public Boolean getIsImplementing() {
121
        // TODO: this is a derived property, implement this method manually.
122
        throw new UnsupportedOperationException("Not yet implemented!");  
×
123
    }
124
    
125
    @FameProperty(name = "isJUnit4Test", derived = true)
126
    public Boolean getIsJUnit4Test() {
127
        // TODO: this is a derived property, implement this method manually.
128
        throw new UnsupportedOperationException("Not yet implemented!");  
×
129
    }
130
    
131
    @FameProperty(name = "isOverridden", derived = true)
132
    public Boolean getIsOverridden() {
133
        // TODO: this is a derived property, implement this method manually.
134
        throw new UnsupportedOperationException("Not yet implemented!");  
×
135
    }
136
    
137
    @FameProperty(name = "isOverriding", derived = true)
138
    public Boolean getIsOverriding() {
139
        // TODO: this is a derived property, implement this method manually.
140
        throw new UnsupportedOperationException("Not yet implemented!");  
×
141
    }
142
    
143
    @FameProperty(name = "numberOfAccesses", derived = true)
144
    public Number getNumberOfAccesses() {
145
        // TODO: this is a derived property, implement this method manually.
146
        throw new UnsupportedOperationException("Not yet implemented!");  
×
147
    }
148
    
149
    @FameProperty(name = "numberOfConditionals")
150
    public Number getNumberOfConditionals() {
151
        return numberOfConditionals;
3✔
152
    }
153

154
    public void setNumberOfConditionals(Number numberOfConditionals) {
155
        this.numberOfConditionals = numberOfConditionals;
×
156
    }
×
157
    
158
    @FameProperty(name = "numberOfInvokedMethods", derived = true)
159
    public Number getNumberOfInvokedMethods() {
160
        // TODO: this is a derived property, implement this method manually.
161
        throw new UnsupportedOperationException("Not yet implemented!");  
×
162
    }
163
    
164
    @FameProperty(name = "providerBehaviours", derived = true)
165
    public Collection<Method> getProviderBehaviours() {
166
        // TODO: this is a derived property, implement this method manually.
167
        throw new UnsupportedOperationException("Not yet implemented!");  
5✔
168
    }
169
        
170
    @FameProperty(name = "accesses", opposite = "accessor", derived = true)
171
    public Collection<TAccess> getAccesses() {
172
        if (accesses == null) {
3✔
173
            accesses = new MultivalueSet<TAccess>() {
12✔
174
                @Override
175
                protected void clearOpposite(TAccess e) {
176
                    e.setAccessor(null);
×
177
                }
×
178
                @Override
179
                protected void setOpposite(TAccess e) {
180
                    e.setAccessor(Method.this);
4✔
181
                }
1✔
182
            };
183
        }
184
        return accesses;
3✔
185
    }
186
    
187
    public void setAccesses(Collection<? extends TAccess> accesses) {
188
        this.getAccesses().clear();
×
189
        this.getAccesses().addAll(accesses);
×
190
    }                    
×
191
    
192
        
193
    public void addAccesses(TAccess one) {
194
        this.getAccesses().add(one);
×
195
    }   
×
196
    
197
    public void addAccesses(TAccess one, TAccess... many) {
198
        this.getAccesses().add(one);
×
199
        for (TAccess each : many)
×
200
            this.getAccesses().add(each);
×
201
    }   
×
202
    
203
    public void addAccesses(Iterable<? extends TAccess> many) {
204
        for (TAccess each : many)
×
205
            this.getAccesses().add(each);
×
206
    }   
×
207
                
208
    public void addAccesses(TAccess[] many) {
209
        for (TAccess each : many)
×
210
            this.getAccesses().add(each);
×
211
    }
×
212
    
213
    public int numberOfAccesses() {
214
        return getAccesses().size();
×
215
    }
216

217
    public boolean hasAccesses() {
218
        return !getAccesses().isEmpty();
×
219
    }
220

221
    @FameProperty(name = "caughtExceptions", opposite = "catchingEntities")
222
    public Collection<TThrowable> getCaughtExceptions() {
223
        if (caughtExceptions == null) {
3✔
224
            caughtExceptions = new MultivalueSet<TThrowable>() {
12✔
225
                @Override
226
                protected void clearOpposite(TThrowable e) {
227
                    e.getCatchingEntities().remove(Method.this);
×
228
                }
×
229
                @Override
230
                protected void setOpposite(TThrowable e) {
231
                    e.getCatchingEntities().add(Method.this);
6✔
232
                }
1✔
233
            };
234
        }
235
        return caughtExceptions;
3✔
236
    }
237
    
238
    public void setCaughtExceptions(Collection<? extends TThrowable> caughtExceptions) {
239
        this.getCaughtExceptions().clear();
×
240
        this.getCaughtExceptions().addAll(caughtExceptions);
×
241
    }
×
242
    
243
    public void addCaughtExceptions(TThrowable one) {
244
        this.getCaughtExceptions().add(one);
×
245
    }   
×
246
    
247
    public void addCaughtExceptions(TThrowable one, TThrowable... many) {
248
        this.getCaughtExceptions().add(one);
×
249
        for (TThrowable each : many)
×
250
            this.getCaughtExceptions().add(each);
×
251
    }   
×
252
    
253
    public void addCaughtExceptions(Iterable<? extends TThrowable> many) {
254
        for (TThrowable each : many)
×
255
            this.getCaughtExceptions().add(each);
×
256
    }   
×
257
                
258
    public void addCaughtExceptions(TThrowable[] many) {
259
        for (TThrowable each : many)
×
260
            this.getCaughtExceptions().add(each);
×
261
    }
×
262
    
263
    public int numberOfCaughtExceptions() {
264
        return getCaughtExceptions().size();
×
265
    }
266

267
    public boolean hasCaughtExceptions() {
268
        return !getCaughtExceptions().isEmpty();
×
269
    }
270

271
    @FameProperty(name = "comments", opposite = "commentedEntity", derived = true)
272
    public Collection<TComment> getComments() {
273
        if (comments == null) {
3✔
274
            comments = new MultivalueSet<TComment>() {
12✔
275
                @Override
276
                protected void clearOpposite(TComment e) {
277
                    e.setCommentedEntity(null);
×
278
                }
×
279
                @Override
280
                protected void setOpposite(TComment e) {
281
                    e.setCommentedEntity(Method.this);
4✔
282
                }
1✔
283
            };
284
        }
285
        return comments;
3✔
286
    }
287
    
288
    public void setComments(Collection<? extends TComment> comments) {
289
        this.getComments().clear();
×
290
        this.getComments().addAll(comments);
×
291
    }                    
×
292
    
293
        
294
    public void addComments(TComment one) {
295
        this.getComments().add(one);
×
296
    }   
×
297
    
298
    public void addComments(TComment one, TComment... many) {
299
        this.getComments().add(one);
×
300
        for (TComment each : many)
×
301
            this.getComments().add(each);
×
302
    }   
×
303
    
304
    public void addComments(Iterable<? extends TComment> many) {
305
        for (TComment each : many)
×
306
            this.getComments().add(each);
×
307
    }   
×
308
                
309
    public void addComments(TComment[] many) {
310
        for (TComment each : many)
×
311
            this.getComments().add(each);
×
312
    }
×
313
    
314
    public int numberOfComments() {
315
        return getComments().size();
×
316
    }
317

318
    public boolean hasComments() {
319
        return !getComments().isEmpty();
×
320
    }
321

322
    @FameProperty(name = "cyclomaticComplexity")
323
    public Number getCyclomaticComplexity() {
324
        return cyclomaticComplexity;
3✔
325
    }
326

327
    public void setCyclomaticComplexity(Number cyclomaticComplexity) {
328
        this.cyclomaticComplexity = cyclomaticComplexity;
3✔
329
    }
1✔
330
    
331
    @FameProperty(name = "declaredExceptions", opposite = "declaringEntities")
332
    public Collection<TThrowable> getDeclaredExceptions() {
333
        if (declaredExceptions == null) {
3✔
334
            declaredExceptions = new MultivalueSet<TThrowable>() {
12✔
335
                @Override
336
                protected void clearOpposite(TThrowable e) {
337
                    e.getDeclaringEntities().remove(Method.this);
×
338
                }
×
339
                @Override
340
                protected void setOpposite(TThrowable e) {
341
                    e.getDeclaringEntities().add(Method.this);
6✔
342
                }
1✔
343
            };
344
        }
345
        return declaredExceptions;
3✔
346
    }
347
    
348
    public void setDeclaredExceptions(Collection<? extends TThrowable> declaredExceptions) {
349
        this.getDeclaredExceptions().clear();
×
350
        this.getDeclaredExceptions().addAll(declaredExceptions);
×
351
    }
×
352
    
353
    public void addDeclaredExceptions(TThrowable one) {
354
        this.getDeclaredExceptions().add(one);
×
355
    }   
×
356
    
357
    public void addDeclaredExceptions(TThrowable one, TThrowable... many) {
358
        this.getDeclaredExceptions().add(one);
×
359
        for (TThrowable each : many)
×
360
            this.getDeclaredExceptions().add(each);
×
361
    }   
×
362
    
363
    public void addDeclaredExceptions(Iterable<? extends TThrowable> many) {
364
        for (TThrowable each : many)
×
365
            this.getDeclaredExceptions().add(each);
×
366
    }   
×
367
                
368
    public void addDeclaredExceptions(TThrowable[] many) {
369
        for (TThrowable each : many)
×
370
            this.getDeclaredExceptions().add(each);
×
371
    }
×
372
    
373
    public int numberOfDeclaredExceptions() {
374
        return getDeclaredExceptions().size();
×
375
    }
376

377
    public boolean hasDeclaredExceptions() {
378
        return !getDeclaredExceptions().isEmpty();
×
379
    }
380

381
    @FameProperty(name = "fanIn", derived = true)
382
    public Number getFanIn() {
383
        // TODO: this is a derived property, implement this method manually.
384
        throw new UnsupportedOperationException("Not yet implemented!");  
×
385
    }
386
    
387
    @FameProperty(name = "fanOut", derived = true)
388
    public Number getFanOut() {
389
        // TODO: this is a derived property, implement this method manually.
390
        throw new UnsupportedOperationException("Not yet implemented!");  
×
391
    }
392
    
393
    @FameProperty(name = "hasComments", derived = true)
394
    public Boolean getHasComments() {
395
        // TODO: this is a derived property, implement this method manually.
396
        throw new UnsupportedOperationException("Not yet implemented!");  
×
397
    }
398
    
399
    @FameProperty(name = "hierarchyNestingLevel", derived = true)
400
    public Number getHierarchyNestingLevel() {
401
        // TODO: this is a derived property, implement this method manually.
402
        throw new UnsupportedOperationException("Not yet implemented!");  
×
403
    }
404
    
405
    @FameProperty(name = "implicitVariables", opposite = "parentBehaviouralEntity", derived = true)
406
    public Collection<TImplicitVariable> getImplicitVariables() {
407
        if (implicitVariables == null) {
3✔
408
            implicitVariables = new MultivalueSet<TImplicitVariable>() {
12✔
409
                @Override
410
                protected void clearOpposite(TImplicitVariable e) {
411
                    e.setParentBehaviouralEntity(null);
×
412
                }
×
413
                @Override
414
                protected void setOpposite(TImplicitVariable e) {
415
                    e.setParentBehaviouralEntity(Method.this);
4✔
416
                }
1✔
417
            };
418
        }
419
        return implicitVariables;
3✔
420
    }
421
    
422
    public void setImplicitVariables(Collection<? extends TImplicitVariable> implicitVariables) {
423
        this.getImplicitVariables().clear();
×
424
        this.getImplicitVariables().addAll(implicitVariables);
×
425
    }                    
×
426
    
427
        
428
    public void addImplicitVariables(TImplicitVariable one) {
429
        this.getImplicitVariables().add(one);
×
430
    }   
×
431
    
432
    public void addImplicitVariables(TImplicitVariable one, TImplicitVariable... many) {
433
        this.getImplicitVariables().add(one);
×
434
        for (TImplicitVariable each : many)
×
435
            this.getImplicitVariables().add(each);
×
436
    }   
×
437
    
438
    public void addImplicitVariables(Iterable<? extends TImplicitVariable> many) {
439
        for (TImplicitVariable each : many)
×
440
            this.getImplicitVariables().add(each);
×
441
    }   
×
442
                
443
    public void addImplicitVariables(TImplicitVariable[] many) {
444
        for (TImplicitVariable each : many)
×
445
            this.getImplicitVariables().add(each);
×
446
    }
×
447
    
448
    public int numberOfImplicitVariables() {
449
        return getImplicitVariables().size();
×
450
    }
451

452
    public boolean hasImplicitVariables() {
453
        return !getImplicitVariables().isEmpty();
×
454
    }
455

456
    @FameProperty(name = "incomingImports", opposite = "importedEntity", derived = true)
457
    public Collection<TImport> getIncomingImports() {
458
        if (incomingImports == null) {
3✔
459
            incomingImports = new MultivalueSet<TImport>() {
12✔
460
                @Override
461
                protected void clearOpposite(TImport e) {
462
                    e.setImportedEntity(null);
×
463
                }
×
464
                @Override
465
                protected void setOpposite(TImport e) {
466
                    e.setImportedEntity(Method.this);
×
467
                }
×
468
            };
469
        }
470
        return incomingImports;
3✔
471
    }
472
    
473
    public void setIncomingImports(Collection<? extends TImport> incomingImports) {
474
        this.getIncomingImports().clear();
×
475
        this.getIncomingImports().addAll(incomingImports);
×
476
    }                    
×
477
    
478
        
479
    public void addIncomingImports(TImport one) {
480
        this.getIncomingImports().add(one);
×
481
    }   
×
482
    
483
    public void addIncomingImports(TImport one, TImport... many) {
484
        this.getIncomingImports().add(one);
×
485
        for (TImport each : many)
×
486
            this.getIncomingImports().add(each);
×
487
    }   
×
488
    
489
    public void addIncomingImports(Iterable<? extends TImport> many) {
490
        for (TImport each : many)
×
491
            this.getIncomingImports().add(each);
×
492
    }   
×
493
                
494
    public void addIncomingImports(TImport[] many) {
495
        for (TImport each : many)
×
496
            this.getIncomingImports().add(each);
×
497
    }
×
498
    
499
    public int numberOfIncomingImports() {
500
        return getIncomingImports().size();
×
501
    }
502

503
    public boolean hasIncomingImports() {
504
        return !getIncomingImports().isEmpty();
×
505
    }
506

507
    @FameProperty(name = "incomingInvocations", opposite = "candidates", derived = true)
508
    public Collection<TInvocation> getIncomingInvocations() {
509
        if (incomingInvocations == null) {
3✔
510
            incomingInvocations = new MultivalueSet<TInvocation>() {
12✔
511
                @Override
512
                protected void clearOpposite(TInvocation e) {
513
                    e.getCandidates().remove(Method.this);
×
514
                }
×
515
                @Override
516
                protected void setOpposite(TInvocation e) {
517
                    e.getCandidates().add(Method.this);
6✔
518
                }
1✔
519
            };
520
        }
521
        return incomingInvocations;
3✔
522
    }
523
    
524
    public void setIncomingInvocations(Collection<? extends TInvocation> incomingInvocations) {
525
        this.getIncomingInvocations().clear();
×
526
        this.getIncomingInvocations().addAll(incomingInvocations);
×
527
    }
×
528
    
529
    public void addIncomingInvocations(TInvocation one) {
530
        this.getIncomingInvocations().add(one);
×
531
    }   
×
532
    
533
    public void addIncomingInvocations(TInvocation one, TInvocation... many) {
534
        this.getIncomingInvocations().add(one);
×
535
        for (TInvocation each : many)
×
536
            this.getIncomingInvocations().add(each);
×
537
    }   
×
538
    
539
    public void addIncomingInvocations(Iterable<? extends TInvocation> many) {
540
        for (TInvocation each : many)
×
541
            this.getIncomingInvocations().add(each);
×
542
    }   
×
543
                
544
    public void addIncomingInvocations(TInvocation[] many) {
545
        for (TInvocation each : many)
×
546
            this.getIncomingInvocations().add(each);
×
547
    }
×
548
    
549
    public int numberOfIncomingInvocations() {
550
        return getIncomingInvocations().size();
4✔
551
    }
552

553
    public boolean hasIncomingInvocations() {
554
        return !getIncomingInvocations().isEmpty();
×
555
    }
556

557
    @FameProperty(name = "isAbstract")
558
    public Boolean getIsAbstract() {
559
        return Objects.requireNonNullElse(isAbstract, false);
7✔
560
    }
561

562
    public void setIsAbstract(Boolean isAbstract) {
563
        this.isAbstract = isAbstract;
3✔
564
    }
1✔
565
    
566
    @FameProperty(name = "isClassSide")
567
    public Boolean getIsClassSide() {
568
        return Objects.requireNonNullElse(isClassSide, false);
7✔
569
    }
570

571
    public void setIsClassSide(Boolean isClassSide) {
572
        this.isClassSide = isClassSide;
3✔
573
    }
1✔
574
    
575
    @FameProperty(name = "isConstant", derived = true)
576
    public Boolean getIsConstant() {
577
        // TODO: this is a derived property, implement this method manually.
578
        throw new UnsupportedOperationException("Not yet implemented!");  
×
579
    }
580
    
581
    @FameProperty(name = "isConstructor", derived = true)
582
    public Boolean getIsConstructor() {
NEW
583
        return false;
×
584
    }
585
    
586
    @FameProperty(name = "isDead", derived = true)
587
    public Boolean getIsDead() {
588
        return this.isDead;
3✔
589
     }
590

591
    public void setIsDead(boolean b) {
592
        this.isDead = b;
4✔
593
    }
1✔
594
    
595
    @FameProperty(name = "isFinal")
596
    public Boolean getIsFinal() {
597
        return isFinal;
3✔
598
    }
599

600
    public void setIsFinal(Boolean isFinal) {
601
        this.isFinal = isFinal;
3✔
602
    }
1✔
603
    
604
    @FameProperty(name = "isGetter", derived = true)
605
    public Boolean getIsGetter() {
606
        // TODO: this is a derived property, implement this method manually.
607
        throw new UnsupportedOperationException("Not yet implemented!");  
×
608
    }
609
    
610
    @FameProperty(name = "isPackageVisibility", derived = true)
611
    public Boolean getIsPackageVisibility() {
612
        return this.visibility.equals("package");
×
613
    }
614
    
615
    @FameProperty(name = "isPrivate", derived = true)
616
    public Boolean getIsPrivate() {
617
        return this.visibility.equals("private");
6✔
618
    }
619
    
620
    @FameProperty(name = "isProtected", derived = true)
621
    public Boolean getIsProtected() {
622
        return this.visibility.equals("protected");
6✔
623
    }
624

625
    @FameProperty(name = "isPublic", derived = true)
626
    public Boolean getIsPublic() {
627
        return this.visibility.equals("public");
6✔
628
    }
629

630
    @FameProperty(name = "isDefault", derived = true)
631
    public Boolean getIsDefault() {
632
        return this.kind == "default";
9✔
633
    }
634
    
635
    @FameProperty(name = "isRoot", derived = true)
636
    public Boolean getIsRoot() {
637
        // TODO: this is a derived property, implement this method manually.
638
        throw new UnsupportedOperationException("Not yet implemented!");  
×
639
    }
640
    
641
    @FameProperty(name = "isSetter", derived = true)
642
    public Boolean getIsSetter() {
643
        // TODO: this is a derived property, implement this method manually.
644
        throw new UnsupportedOperationException("Not yet implemented!");  
×
645
    }
646
    
647
    @FameProperty(name = "isStub")
648
    public Boolean getIsStub() {
649
        return isStub;
3✔
650
    }
651

652
    public void setIsStub(Boolean isStub) {
653
        this.isStub = isStub;
3✔
654
    }
1✔
655
    
656
    @FameProperty(name = "isSynchronized")
657
    public Boolean getIsSynchronized() {
658
        return isSynchronized;
3✔
659
    }
660

661
    public void setIsSynchronized(Boolean isSynchronized) {
662
        this.isSynchronized = isSynchronized;
3✔
663
    }
1✔
664
    
665
    @FameProperty(name = "kind")
666
    public String getKind() {
667
        return kind;
3✔
668
    }
669

670
    public void setKind(String kind) {
671
        this.kind = kind;
3✔
672
    }
1✔
673
    
674
    @FameProperty(name = "localVariables", opposite = "parentBehaviouralEntity", derived = true)
675
    public Collection<TLocalVariable> getLocalVariables() {
676
        if (localVariables == null) {
3✔
677
            localVariables = new MultivalueSet<TLocalVariable>() {
12✔
678
                @Override
679
                protected void clearOpposite(TLocalVariable e) {
680
                    e.setParentBehaviouralEntity(null);
×
681
                }
×
682
                @Override
683
                protected void setOpposite(TLocalVariable e) {
684
                    e.setParentBehaviouralEntity(Method.this);
4✔
685
                }
1✔
686
            };
687
        }
688
        return localVariables;
3✔
689
    }
690
    
691
    public void setLocalVariables(Collection<? extends TLocalVariable> localVariables) {
692
        this.getLocalVariables().clear();
×
693
        this.getLocalVariables().addAll(localVariables);
×
694
    }                    
×
695
    
696
        
697
    public void addLocalVariables(TLocalVariable one) {
698
        this.getLocalVariables().add(one);
×
699
    }   
×
700
    
701
    public void addLocalVariables(TLocalVariable one, TLocalVariable... many) {
702
        this.getLocalVariables().add(one);
×
703
        for (TLocalVariable each : many)
×
704
            this.getLocalVariables().add(each);
×
705
    }   
×
706
    
707
    public void addLocalVariables(Iterable<? extends TLocalVariable> many) {
708
        for (TLocalVariable each : many)
×
709
            this.getLocalVariables().add(each);
×
710
    }   
×
711
                
712
    public void addLocalVariables(TLocalVariable[] many) {
713
        for (TLocalVariable each : many)
×
714
            this.getLocalVariables().add(each);
×
715
    }
×
716
    
717
    public int numberOfLocalVariables() {
718
        return getLocalVariables().size();
×
719
    }
720

721
    public boolean hasLocalVariables() {
722
        return !getLocalVariables().isEmpty();
×
723
    }
724

725
    @FameProperty(name = "name")
726
    public String getName() {
727
        return name;
3✔
728
    }
729

730
    public void setName(String name) {
731
        this.name = name;
3✔
732
    }
1✔
733
    
734
    @FameProperty(name = "numberOfAnnotationInstances", derived = true)
735
    public Number getNumberOfAnnotationInstances() {
736
        // TODO: this is a derived property, implement this method manually.
737
        throw new UnsupportedOperationException("Not yet implemented!");  
×
738
    }
739

740
    @FameProperty(name = "numberOfContainedEntities", derived = true)
741
    public Number getNumberOfContainedEntities() {
742
        // TODO: this is a derived property, implement this method manually.
NEW
743
        throw new UnsupportedOperationException("Not yet implemented!");
×
744
    }
745
    
746
    @FameProperty(name = "numberOfComments", derived = true)
747
    public Number getNumberOfComments() {
748
        // TODO: this is a derived property, implement this method manually.
749
        throw new UnsupportedOperationException("Not yet implemented!");  
×
750
    }
751
    
752
    @FameProperty(name = "numberOfDeadChildren", derived = true)
753
    public Number getNumberOfDeadChildren() {
754
        // TODO: this is a derived property, implement this method manually.
755
        throw new UnsupportedOperationException("Not yet implemented!");  
×
756
    }
757
    
758
    @FameProperty(name = "numberOfExternalClients", derived = true)
759
    public Number getNumberOfExternalClients() {
760
        // TODO: this is a derived property, implement this method manually.
761
        throw new UnsupportedOperationException("Not yet implemented!");  
×
762
    }
763
    
764
    @FameProperty(name = "numberOfExternalProviders", derived = true)
765
    public Number getNumberOfExternalProviders() {
766
        // TODO: this is a derived property, implement this method manually.
767
        throw new UnsupportedOperationException("Not yet implemented!");  
×
768
    }
769
    
770
    @FameProperty(name = "numberOfInternalClients", derived = true)
771
    public Number getNumberOfInternalClients() {
772
        // TODO: this is a derived property, implement this method manually.
773
        throw new UnsupportedOperationException("Not yet implemented!");  
×
774
    }
775
    
776
    @FameProperty(name = "numberOfInternalProviders", derived = true)
777
    public Number getNumberOfInternalProviders() {
778
        // TODO: this is a derived property, implement this method manually.
779
        throw new UnsupportedOperationException("Not yet implemented!");  
×
780
    }
781
    
782
    @FameProperty(name = "numberOfLinesOfCode")
783
    public Number getNumberOfLinesOfCode() {
784
        return numberOfLinesOfCode;
3✔
785
    }
786

787
    public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) {
788
        this.numberOfLinesOfCode = numberOfLinesOfCode;
×
789
    }
×
790
    
791
    @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true)
792
    public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() {
793
        // TODO: this is a derived property, implement this method manually.
794
        throw new UnsupportedOperationException("Not yet implemented!");  
×
795
    }
796
    
797
    @FameProperty(name = "numberOfOutgoingInvocations", derived = true)
798
    public Number getNumberOfOutgoingInvocations() {
799
        // TODO: this is a derived property, implement this method manually.
800
        throw new UnsupportedOperationException("Not yet implemented!");  
×
801
    }
802
    
803
    @FameProperty(name = "numberOfParameters", derived = true)
804
    public Number getNumberOfParameters() {
NEW
805
        return getParameters().size();
×
806
    }
807
    
808
    @FameProperty(name = "numberOfStatements")
809
    public Number getNumberOfStatements() {
810
        return this.numberOfStatements;
3✔
811
    }
812

813
    public void setNumberOfStatements(Number number) {
814
        this.numberOfStatements = number;
3✔
815
    }
1✔
816
    
817
    @FameProperty(name = "outgoingInvocations", opposite = "sender", derived = true)
818
    public Collection<TInvocation> getOutgoingInvocations() {
819
        if (outgoingInvocations == null) {
3✔
820
            outgoingInvocations = new MultivalueSet<TInvocation>() {
12✔
821
                @Override
822
                protected void clearOpposite(TInvocation e) {
823
                    e.setSender(null);
×
824
                }
×
825
                @Override
826
                protected void setOpposite(TInvocation e) {
827
                    e.setSender(Method.this);
4✔
828
                }
1✔
829
            };
830
        }
831
        return outgoingInvocations;
3✔
832
    }
833
    
834
    public void setOutgoingInvocations(Collection<? extends TInvocation> outgoingInvocations) {
835
        this.getOutgoingInvocations().clear();
×
836
        this.getOutgoingInvocations().addAll(outgoingInvocations);
×
837
    }                    
×
838
    
839
        
840
    public void addOutgoingInvocations(TInvocation one) {
841
        this.getOutgoingInvocations().add(one);
×
842
    }   
×
843
    
844
    public void addOutgoingInvocations(TInvocation one, TInvocation... many) {
845
        this.getOutgoingInvocations().add(one);
×
846
        for (TInvocation each : many)
×
847
            this.getOutgoingInvocations().add(each);
×
848
    }   
×
849
    
850
    public void addOutgoingInvocations(Iterable<? extends TInvocation> many) {
851
        for (TInvocation each : many)
×
852
            this.getOutgoingInvocations().add(each);
×
853
    }   
×
854
                
855
    public void addOutgoingInvocations(TInvocation[] many) {
856
        for (TInvocation each : many)
×
857
            this.getOutgoingInvocations().add(each);
×
858
    }
×
859
    
860
    public int numberOfOutgoingInvocations() {
861
        return getOutgoingInvocations().size();
4✔
862
    }
863

864
    public boolean hasOutgoingInvocations() {
865
        return !getOutgoingInvocations().isEmpty();
×
866
    }
867

868
    @FameProperty(name = "outgoingReferences", opposite = "referencer", derived = true)
869
    public Collection<TReference> getOutgoingReferences() {
870
        if (outgoingReferences == null) {
3✔
871
            outgoingReferences = new MultivalueSet<TReference>() {
12✔
872
                @Override
873
                protected void clearOpposite(TReference e) {
874
                    e.setReferencer(null);
×
875
                }
×
876
                @Override
877
                protected void setOpposite(TReference e) {
878
                    e.setReferencer(Method.this);
4✔
879
                }
1✔
880
            };
881
        }
882
        return outgoingReferences;
3✔
883
    }
884
    
885
    public void setOutgoingReferences(Collection<? extends TReference> outgoingReferences) {
886
        this.getOutgoingReferences().clear();
×
887
        this.getOutgoingReferences().addAll(outgoingReferences);
×
888
    }                    
×
889
    
890
        
891
    public void addOutgoingReferences(TReference one) {
892
        this.getOutgoingReferences().add(one);
×
893
    }   
×
894
    
895
    public void addOutgoingReferences(TReference one, TReference... many) {
896
        this.getOutgoingReferences().add(one);
×
897
        for (TReference each : many)
×
898
            this.getOutgoingReferences().add(each);
×
899
    }   
×
900
    
901
    public void addOutgoingReferences(Iterable<? extends TReference> many) {
902
        for (TReference each : many)
×
903
            this.getOutgoingReferences().add(each);
×
904
    }   
×
905
                
906
    public void addOutgoingReferences(TReference[] many) {
907
        for (TReference each : many)
×
908
            this.getOutgoingReferences().add(each);
×
909
    }
×
910
    
911
    public int numberOfOutgoingReferences() {
912
        return getOutgoingReferences().size();
4✔
913
    }
914

915
    public boolean hasOutgoingReferences() {
916
        return !getOutgoingReferences().isEmpty();
×
917
    }
918

919
    @FameProperty(name = "parameters", opposite = "parentBehaviouralEntity", derived = true)
920
    public Collection<TParameter> getParameters() {
921
        if (parameters == null) {
3✔
922
            parameters = new MultivalueSet<TParameter>() {
12✔
923
                @Override
924
                protected void clearOpposite(TParameter e) {
925
                    e.setParentBehaviouralEntity(null);
×
926
                }
×
927
                @Override
928
                protected void setOpposite(TParameter e) {
929
                    e.setParentBehaviouralEntity(Method.this);
4✔
930
                }
1✔
931
            };
932
        }
933
        return parameters;
3✔
934
    }
935
    
936
    public void setParameters(Collection<? extends TParameter> parameters) {
937
        this.getParameters().clear();
×
938
        this.getParameters().addAll(parameters);
×
939
    }                    
×
940
    
941
        
942
    public void addParameters(TParameter one) {
943
        this.getParameters().add(one);
×
944
    }   
×
945
    
946
    public void addParameters(TParameter one, TParameter... many) {
947
        this.getParameters().add(one);
×
948
        for (TParameter each : many)
×
949
            this.getParameters().add(each);
×
950
    }   
×
951
    
952
    public void addParameters(Iterable<? extends TParameter> many) {
953
        for (TParameter each : many)
×
954
            this.getParameters().add(each);
×
955
    }   
×
956
                
957
    public void addParameters(TParameter[] many) {
958
        for (TParameter each : many)
×
959
            this.getParameters().add(each);
×
960
    }
×
961
    
962
    public int numberOfParameters() {
963
        return getParameters().size();
4✔
964
    }
965

966
    public boolean hasParameters() {
967
        return !getParameters().isEmpty();
×
968
    }
969

970
    @FameProperty(name = "parentType", opposite = "methods", container = true)
971
    public TWithMethods getParentType() {
972
        return parentType;
3✔
973
    }
974

975
    public void setParentType(TWithMethods parentType) {
976
        if (this.parentType != null) {
3✔
977
            if (this.parentType.equals(parentType)) return;
6✔
978
            this.parentType.getMethods().remove(this);
6✔
979
        }
980
        this.parentType = parentType;
3✔
981
        if (parentType == null) return;
3✔
982
        parentType.getMethods().add(this);
5✔
983
    }
1✔
984
    
985
    @FameProperty(name = "signature")
986
    public String getSignature() {
987
        return signature;
3✔
988
    }
989

990
    public void setSignature(String signature) {
991
        this.signature = signature;
3✔
992
    }
1✔
993
    
994
    @FameProperty(name = "sourceAnchor", opposite = "element", derived = true)
995
    public TSourceAnchor getSourceAnchor() {
996
        return sourceAnchor;
3✔
997
    }
998

999
    public void setSourceAnchor(TSourceAnchor sourceAnchor) {
1000
        if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) {
11!
1001
            TSourceAnchor old_sourceAnchor = this.sourceAnchor;
3✔
1002
            this.sourceAnchor = sourceAnchor;
3✔
1003
            if (old_sourceAnchor != null) old_sourceAnchor.setElement(null);
5✔
1004
            if (sourceAnchor != null) sourceAnchor.setElement(this);
5✔
1005
        }
1006
    }
1✔
1007
    
1008
    @FameProperty(name = "sourceText", derived = true)
1009
    public String getSourceText() {
1010
        // TODO: this is a derived property, implement this method manually.
1011
        throw new UnsupportedOperationException("Not yet implemented!");  
×
1012
    }
1013
    
1014
    @FameProperty(name = "thrownExceptions", opposite = "throwingEntities")
1015
    public Collection<TThrowable> getThrownExceptions() {
1016
        if (thrownExceptions == null) {
3✔
1017
            thrownExceptions = new MultivalueSet<TThrowable>() {
12✔
1018
                @Override
1019
                protected void clearOpposite(TThrowable e) {
1020
                    e.getThrowingEntities().remove(Method.this);
×
1021
                }
×
1022
                @Override
1023
                protected void setOpposite(TThrowable e) {
1024
                    e.getThrowingEntities().add(Method.this);
6✔
1025
                }
1✔
1026
            };
1027
        }
1028
        return thrownExceptions;
3✔
1029
    }
1030
    
1031
    public void setThrownExceptions(Collection<? extends TThrowable> thrownExceptions) {
1032
        this.getThrownExceptions().clear();
×
1033
        this.getThrownExceptions().addAll(thrownExceptions);
×
1034
    }
×
1035
    
1036
    public void addThrownExceptions(TThrowable one) {
1037
        this.getThrownExceptions().add(one);
×
1038
    }   
×
1039
    
1040
    public void addThrownExceptions(TThrowable one, TThrowable... many) {
1041
        this.getThrownExceptions().add(one);
×
1042
        for (TThrowable each : many)
×
1043
            this.getThrownExceptions().add(each);
×
1044
    }   
×
1045
    
1046
    public void addThrownExceptions(Iterable<? extends TThrowable> many) {
1047
        for (TThrowable each : many)
×
1048
            this.getThrownExceptions().add(each);
×
1049
    }   
×
1050
                
1051
    public void addThrownExceptions(TThrowable[] many) {
1052
        for (TThrowable each : many)
×
1053
            this.getThrownExceptions().add(each);
×
1054
    }
×
1055
    
1056
    public int numberOfThrownExceptions() {
1057
        return getThrownExceptions().size();
×
1058
    }
1059

1060
    public boolean hasThrownExceptions() {
1061
        return !getThrownExceptions().isEmpty();
×
1062
    }
1063

1064
    @FameProperty(name = "typing", opposite = "typedEntity")
1065
    public TEntityTyping getTyping() {
1066
        return typing;
3✔
1067
    }
1068

1069
    public void setTyping(TEntityTyping typing) {
1070
        if (this.typing == null ? typing != null : !this.typing.equals(typing)) {
11✔
1071
            TEntityTyping old_typing = this.typing;
3✔
1072
            this.typing = typing;
3✔
1073
            if (old_typing != null) old_typing.setTypedEntity(null);
5✔
1074
            if (typing != null) typing.setTypedEntity(this);
5✔
1075
        }
1076
    }
1✔
1077

1078
    public TType getDeclaredType() {
1079
       return (this.typing == null) ? null : this.typing.getDeclaredType();
9✔
1080
    }
1081
    
1082
    @FameProperty(name = "visibility")
1083
    public String getVisibility() {
1084
        return visibility;
3✔
1085
    }
1086

1087
    public void setVisibility(String visibility) {
1088
        this.visibility = visibility;
3✔
1089
    }
1✔
1090
    
1091

1092

1093
}
1094

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