Skip to content

Package: CheckConditions

CheckConditions

nameinstructionbranchcomplexitylinemethod
CheckConditions(TypeFileManager)
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
action()
M: 24 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 8 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /**
2: *
3: */
4: package controller.checkingconditionphase;
5:
6: import java.util.Map;
7: import java.util.Map.Entry;
8:
9: import controller.CheckingConditionPhase;
10: import model.type.NamedVariableType;
11: import model.type.TypeDoesNotExistException;
12: import model.type.TypeExceptions;
13: import model.type.TypeFileManager;
14:
15: /**
16: * @author Jannik
17: *
18: */
19: public class CheckConditions extends CheckingConditionPhase {
20:         /**
21:          * The typeFileManager.
22:          */
23:         private final TypeFileManager typeFileManager;
24:
25:         /**
26:          * The constructor without side-effects.
27:          *
28:          * @param typeFileManager
29:          * the typeFileManager
30:          */
31:         public CheckConditions(final TypeFileManager typeFileManager) {
32:                 this.typeFileManager = typeFileManager;
33:         }
34:
35:         @Override
36:         public void action() throws TypeDoesNotExistException, TypeExceptions {
37:                 typeFileManager.initAllAssignments();
38:                 final Map<String, NamedVariableType> allNamedVariableType =
39:                                 this.typeFileManager.getAlltypes();
40:•                for (Entry<String, NamedVariableType> namedVariableTypeEntry : allNamedVariableType
41:                                 .entrySet()) {
42:                         namedVariableTypeEntry.getValue().checkTypeExtensionConditions();
43:                 }
44:         }
45: }