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

moosetechnology / VerveineJ / 19965596202

05 Dec 2025 02:13PM UTC coverage: 50.975% (+0.09%) from 50.886%
19965596202

push

github

web-flow
Merge pull request #176 from moosetechnology/object

Allow to modelize classes named Object

1923 of 3984 branches covered (48.27%)

Branch coverage included in aggregate %.

9 of 9 new or added lines in 1 file covered. (100.0%)

231 existing lines in 2 files now uncovered.

4300 of 8224 relevant lines covered (52.29%)

2.1 hits per line

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

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

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

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

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

723
    public boolean hasLocalVariables() {
UNCOV
724
        return !getLocalVariables().isEmpty();
×
725
    }
726

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

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

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

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

867
    public boolean hasOutgoingInvocations() {
UNCOV
868
        return !getOutgoingInvocations().isEmpty();
×
869
    }
870

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

918
    public boolean hasOutgoingReferences() {
UNCOV
919
        return !getOutgoingReferences().isEmpty();
×
920
    }
921

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

969
    public boolean hasParameters() {
UNCOV
970
        return !getParameters().isEmpty();
×
971
    }
972

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

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

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

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

1063
    public boolean hasThrownExceptions() {
UNCOV
1064
        return !getThrownExceptions().isEmpty();
×
1065
    }
1066

1067
    @FameProperty(name = "typing", opposite = "typedEntity")
1068
    public TEntityTyping getTyping() {
1069
        return typing;
3✔
1070
    }
1071

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

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

1090
    public void setVisibility(String visibility) {
1091
        this.visibility = visibility;
3✔
1092
    }
1✔
1093
    
1094

1095

1096
}
1097

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

© 2025 Coveralls, Inc