Skip to content

Package: IteratorHelper

IteratorHelper

nameinstructionbranchcomplexitylinemethod
IteratorHelper(String, String, Integer)
M: 0 C: 12
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 5
100%
M: 0 C: 1
100%
getIndexInit()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getIteratorIndexName()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getReferenceName()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
iterateIndex()
M: 18 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
toString()
M: 18 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /**
2: *
3: */
4: package pruefskript.parser.nodes;
5:
6: /**
7: * IteratiorHelper used to Iterate in loops
8: *
9: * @author Phil
10: *
11: */
12: public class IteratorHelper {
13:
14:         private final String iteratorIndexName;
15:         private final String referenceName;
16:         private Integer indexInit;
17:
18:         public IteratorHelper(final String idxName, final String ref, final Integer idxInit) {
19:
20:                 this.iteratorIndexName = idxName;
21:                 this.referenceName = ref;
22:                 this.indexInit = idxInit;
23:
24:         }
25:
26:         public void iterateIndex() {
27:                 this.indexInit++;
28:         }
29:
30:         public String getIteratorIndexName() {
31:                 return this.iteratorIndexName;
32:         }
33:
34:         public String getReferenceName() {
35:                 return this.referenceName;
36:         }
37:
38:         public Integer getIndexInit() {
39:                 return this.indexInit;
40:         }
41:
42:         @Override
43:         public String toString() {
44:                 return this.iteratorIndexName + basic.PruefskriptConstants.STRING + this.referenceName
45:                                 + basic.PruefskriptConstants.STRING + this.indexInit;
46:         }
47:
48: }