Skip to content

Package: AbstractPhase

AbstractPhase

nameinstructionbranchcomplexitylinemethod
AbstractPhase()
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%
getName()
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%
setName(String)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /**
2: *
3: */
4: package controller;
5:
6: import java.io.IOException;
7:
8: import model.type.TypeDoesNotExistException;
9: import model.type.TypeExceptions;
10: import parser.ParserException;
11: import reader.ReaderException;
12: import scanner.ScannerException;
13:
14: /**
15: * @author Hendrik
16: *
17: */
18: public abstract class AbstractPhase {
19:         /**
20:          * The name of a phase.
21:          */
22:         private String name;
23:
24:         /**
25:          * abstract action for a phase.
26:          *
27:          * @throws TypeDoesNotExistException
28:          * TypeDoesNotExistException
29:          * @throws ReaderException
30:          * ReaderException
31:          * @throws IOException
32:          * IOException
33:          * @throws InterruptedException
34:          * InterruptedException
35:          * @throws ScannerException
36:          * ScannerException
37:          * @throws ParserException
38:          * ParserException
39:          * @throws TypeExceptions
40:          * TypeExceptions
41:          */
42:         public abstract void action() throws TypeDoesNotExistException, ScannerException,
43:                         InterruptedException, IOException, ReaderException, ParserException, TypeExceptions;
44:
45:         /**
46:          * @return the name
47:          */
48:         public String getName() {
49:                 return this.name;
50:         }
51:
52:         /**
53:          * @param name
54:          * the name to set
55:          */
56:         public void setName(final String name) {
57:                 this.name = name;
58:         }
59: }