• 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

32.71
/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 = "isClassInitializer", derived = true)
115
    public Boolean getIsClassInitializer() {
116
        // TODO: this is a derived property, implement this method manually.
117
        throw new UnsupportedOperationException("Not yet implemented!");  
×
118
    }
119
    
120
    @FameProperty(name = "isImplementing", derived = true)
121
    public Boolean getIsImplementing() {
122
        // TODO: this is a derived property, implement this method manually.
123
        throw new UnsupportedOperationException("Not yet implemented!");  
×
124
    }
125
    
126
    @FameProperty(name = "isJUnit4Test", derived = true)
127
    public Boolean getIsJUnit4Test() {
128
        // TODO: this is a derived property, implement this method manually.
129
        throw new UnsupportedOperationException("Not yet implemented!");  
×
130
    }
131
    
132
    @FameProperty(name = "isOverridden", derived = true)
133
    public Boolean getIsOverridden() {
134
        // TODO: this is a derived property, implement this method manually.
135
        throw new UnsupportedOperationException("Not yet implemented!");  
×
136
    }
137
    
138
    @FameProperty(name = "isOverriding", derived = true)
139
    public Boolean getIsOverriding() {
140
        // TODO: this is a derived property, implement this method manually.
141
        throw new UnsupportedOperationException("Not yet implemented!");  
×
142
    }
143
    
144
    @FameProperty(name = "numberOfAccesses", derived = true)
145
    public Number getNumberOfAccesses() {
146
        // TODO: this is a derived property, implement this method manually.
147
        throw new UnsupportedOperationException("Not yet implemented!");  
×
148
    }
149
    
150
    @FameProperty(name = "numberOfConditionals")
151
    public Number getNumberOfConditionals() {
152
        return numberOfConditionals;
3✔
153
    }
154

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

558
    @FameProperty(name = "isAbstract")
559
    public Boolean getIsAbstract() {
560
        return isAbstract;
3✔
561
    }
562

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

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

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

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

627
    @FameProperty(name = "isPublic", derived = true)
628
    public Boolean getIsPublic() {
629
        return this.visibility.equals("public");
6✔
630
    }
631
    
632
    @FameProperty(name = "isRoot", derived = true)
633
    public Boolean getIsRoot() {
634
        // TODO: this is a derived property, implement this method manually.
635
        throw new UnsupportedOperationException("Not yet implemented!");  
×
636
    }
637
    
638
    @FameProperty(name = "isSetter", derived = true)
639
    public Boolean getIsSetter() {
640
        // TODO: this is a derived property, implement this method manually.
641
        throw new UnsupportedOperationException("Not yet implemented!");  
×
642
    }
643
    
644
    @FameProperty(name = "isStub")
645
    public Boolean getIsStub() {
646
        return isStub;
3✔
647
    }
648

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

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

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

718
    public boolean hasLocalVariables() {
719
        return !getLocalVariables().isEmpty();
×
720
    }
721

722
    @FameProperty(name = "name")
723
    public String getName() {
724
        return name;
3✔
725
    }
726

727
    public void setName(String name) {
728
        this.name = name;
3✔
729
    }
1✔
730
    
731
    @FameProperty(name = "numberOfAnnotationInstances", derived = true)
732
    public Number getNumberOfAnnotationInstances() {
733
        // TODO: this is a derived property, implement this method manually.
734
        throw new UnsupportedOperationException("Not yet implemented!");  
×
735
    }
736
    
737
    @FameProperty(name = "numberOfChildren", derived = true)
738
    public Number getNumberOfChildren() {
739
        // TODO: this is a derived property, implement this method manually.
740
        throw new UnsupportedOperationException("Not yet implemented!");  
×
741
    }
742
    
743
    @FameProperty(name = "numberOfComments", derived = true)
744
    public Number getNumberOfComments() {
745
        // TODO: this is a derived property, implement this method manually.
NEW
746
        throw new UnsupportedOperationException("Not yet implemented!");  
×
747
    }
748
    
749
    @FameProperty(name = "numberOfDeadChildren", derived = true)
750
    public Number getNumberOfDeadChildren() {
751
        // TODO: this is a derived property, implement this method manually.
752
        throw new UnsupportedOperationException("Not yet implemented!");  
×
753
    }
754
    
755
    @FameProperty(name = "numberOfExternalClients", derived = true)
756
    public Number getNumberOfExternalClients() {
757
        // TODO: this is a derived property, implement this method manually.
758
        throw new UnsupportedOperationException("Not yet implemented!");  
×
759
    }
760
    
761
    @FameProperty(name = "numberOfExternalProviders", derived = true)
762
    public Number getNumberOfExternalProviders() {
763
        // TODO: this is a derived property, implement this method manually.
764
        throw new UnsupportedOperationException("Not yet implemented!");  
×
765
    }
766
    
767
    @FameProperty(name = "numberOfInternalClients", derived = true)
768
    public Number getNumberOfInternalClients() {
769
        // TODO: this is a derived property, implement this method manually.
770
        throw new UnsupportedOperationException("Not yet implemented!");  
×
771
    }
772
    
773
    @FameProperty(name = "numberOfInternalProviders", derived = true)
774
    public Number getNumberOfInternalProviders() {
775
        // TODO: this is a derived property, implement this method manually.
776
        throw new UnsupportedOperationException("Not yet implemented!");  
×
777
    }
778
    
779
    @FameProperty(name = "numberOfLinesOfCode")
780
    public Number getNumberOfLinesOfCode() {
781
        return numberOfLinesOfCode;
3✔
782
    }
783

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

1090

1091
}
1092

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