Skip to content

Package: PackageDescriptionSymbolVisitor

PackageDescriptionSymbolVisitor

nameinstructionbranchcomplexitylinemethod
PackageDescriptionSymbolVisitor(String)
M: 0 C: 6
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 3
100%
M: 0 C: 1
100%
handle(CommentSymbol, PackageDescriptionFileParser)
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
handle(EndSymbol, PackageDescriptionFileParser)
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
handle(OptionSymbol, PackageDescriptionFileParser)
M: 0 C: 6
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
handle(PathSymbol, PackageDescriptionFileParser)
M: 0 C: 6
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
handle(RowEndSymbol, PackageDescriptionFileParser)
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
handle(ValueSymbol, PackageDescriptionFileParser)
M: 0 C: 6
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
handle(VariableSymbol, PackageDescriptionFileParser)
M: 6 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: package symbols;
2:
3: import parser.PackageDescriptionFileParser;
4: import parser.ParserException;
5: import parser.states.packagestates.AbstractPackageParserState;
6:
7: /**
8: * Visitor for the Symbols.
9: *
10: * @author Lisa Leitloff
11: *
12: */
13: public class PackageDescriptionSymbolVisitor {
14:         /**
15:          * is the message for the parserexception, which is thrown.
16:          */
17:         private final String exceptionMessage;
18:
19:         /**
20:          * konstruktor of the SymbolVisitor.
21:          *
22:          * @param exceptionMessage
23:          * is the message for the parserexception, which is thrown
24:          */
25:         protected PackageDescriptionSymbolVisitor(final String exceptionMessage) {
26:                 super();
27:                 this.exceptionMessage = exceptionMessage;
28:         }
29:
30:         /**
31:          * handles an object of the type commentSymbol.
32:          *
33:          * @param commentSymbol
34:          * is the type of the handled object.
35:          *
36:          * @param parser
37:          * is the parser.
38:          * @return the actual state of the parser.
39:          * @throws ParserException
40:          * if the symbol is not expected.
41:          */
42:         protected AbstractPackageParserState handle(final CommentSymbol commentSymbol,
43:                         final PackageDescriptionFileParser parser) throws ParserException {
44:                 throw new ParserException(this.exceptionMessage);
45:         }
46:
47:         /**
48:          * handles an object of the Type EndSymbol.
49:          *
50:          * @param endSymbol
51:          * is the type of the handled object.
52:          * @param parser
53:          * is the parser.
54:          * @throws InterruptedException
55:          * from the Buffer.
56:          * @return the actual state of the parser.
57:          * @throws ParserException
58:          * if the symbol is not expected.
59:          */
60:         protected AbstractPackageParserState handle(final EndSymbol endSymbol,
61:                         final PackageDescriptionFileParser parser) throws InterruptedException,
62:                         ParserException {
63:                 throw new ParserException(this.exceptionMessage);
64:         }
65:
66:         /**
67:          * handles an object of the Type RowEndSymbol.
68:          *
69:          * @param rowEndSymbol
70:          * is the type of the handled object.
71:          * @param parser
72:          * is the parser.
73:          * @throws InterruptedException
74:          * from the buffer.
75:          * @return the actual state of the parser.
76:          * @throws ParserException
77:          * if the symbol is not expected.
78:          */
79:         protected AbstractPackageParserState handle(final RowEndSymbol rowEndSymbol,
80:                         final PackageDescriptionFileParser parser) throws InterruptedException,
81:                         ParserException {
82:                 throw new ParserException(this.exceptionMessage);
83:         }
84:
85:         /**
86:          * handles an object of the Type VariableSymbol.
87:          *
88:          * @param variableSymbol
89:          * is the type of the handled object.
90:          * @param parser
91:          * is the parser.
92:          * @return the actual state of the parser.
93:          * @throws ParserException
94:          * if the symbol is not expected.
95:          */
96:         protected AbstractPackageParserState handle(final VariableSymbol variableSymbol,
97:                         final PackageDescriptionFileParser parser) throws ParserException {
98:                 throw new ParserException(this.exceptionMessage);
99:         }
100:
101:         /**
102:          * handles an object of the Type ValueSymbol.
103:          *
104:          * @param valueSymbol
105:          * is the type of the handled object.
106:          * @param parser
107:          * is the parser.
108:          * @return the actual state of the parser.
109:          * @throws ParserException
110:          * if the symbol is not expected.
111:          */
112:         protected AbstractPackageParserState handle(final ValueSymbol valueSymbol,
113:                         final PackageDescriptionFileParser parser) throws ParserException {
114:                 throw new ParserException(this.exceptionMessage);
115:         }
116:
117:         /**
118:          * handles an object of the Type PathSymbol.
119:          *
120:          * @param pathSymbol
121:          * is the type of the handled object.
122:          * @param parser
123:          * is the parser.
124:          * @return the actual state of the parser.
125:          * @throws ParserException
126:          * if the symbol is not expected.
127:          */
128:         protected AbstractPackageParserState handle(final PathSymbol pathSymbol,
129:                         final PackageDescriptionFileParser parser) throws ParserException {
130:                 throw new ParserException(this.exceptionMessage);
131:         }
132:
133:         /**
134:          * handles an object of the Type OptionSymbol.
135:          *
136:          * @param optionSymbol
137:          * is the type of the handled object.
138:          * @param parser
139:          * is the parser.
140:          * @return the actual state of the parser.
141:          * @throws ParserException
142:          * if the symbol is not expected.
143:          */
144:         protected AbstractPackageParserState handle(final OptionSymbol optionSymbol,
145:                         final PackageDescriptionFileParser parser) throws ParserException {
146:                 throw new ParserException(this.exceptionMessage);
147:         }
148: }