Package: ModuleListInterpreter

ModuleListInterpreter

nameinstructionbranchcomplexitylinemethod
ModuleListInterpreter()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
ModuleListInterpreter(ModuleList)
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 3
100%
M: 0 C: 1
100%
notLoaded()
M: 0 C: 20
100%
M: 1 C: 3
75%
M: 1 C: 2
67%
M: 0 C: 6
100%
M: 0 C: 1
100%
setLoaded()
M: 16 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 4 C: 0
0%
M: 1 C: 0
0%

Coverage

1: package org.overture.interpreter.util;
2:
3: import org.overture.ast.modules.AModuleModules;
4: import org.overture.ast.util.modules.ModuleList;
5:
6: public class ModuleListInterpreter extends ModuleList
7: {
8:
9:         /**
10:          *
11:          */
12:         private static final long serialVersionUID = 4806203437270855897L;
13:
14:         public ModuleListInterpreter(ModuleList modules)
15:         {
16:                 super();
17:                 addAll(modules);
18:         }
19:
20:         public ModuleListInterpreter()
21:         {
22:                 super();
23:         }
24:
25:         public void setLoaded()
26:         {
27:•                for (AModuleModules m : this)
28:                 {
29:                         m.setTypeChecked(true);
30:                 }
31:         }
32:
33:         public int notLoaded()
34:         {
35:                 int count = 0;
36:
37:•                for (AModuleModules m : this)
38:                 {
39:•                        if (!m.getTypeChecked())
40:                         {
41:                                 count++;
42:                         }
43:                 }
44:
45:                 return count;
46:         }
47:
48: }