Package: AbstractPackageParserState
AbstractPackageParserState
| name | instruction | branch | complexity | line | method | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AbstractPackageParserState(PackageDescriptionFileParser) | 
  | 
  | 
  | 
  | 
  | 
||||||||||||||||||||
| getMyParser() | 
  | 
  | 
  | 
  | 
  | 
||||||||||||||||||||
Coverage
1: package parser.states.packagestates;
2: 
3: import model.RouterSoftware;
4: import parser.PackageDescriptionFileParser;
5: import parser.ParserException;
6: import symbols.PackageDescriptionFileSymbol;
7: 
8: /**
9:  * The State for the PackageDescriptionFileScanner.
10:  * 
11:  * @author Lisa Leitloff
12:  * 
13:  */
14: public abstract class AbstractPackageParserState {
15:         /**
16:          * the parser, which owns the state.
17:          */
18:         private final transient PackageDescriptionFileParser myParser;
19: 
20:         /**
21:          * the Konstruktor for the AbstractParserState.
22:          * 
23:          * @param parser
24:          *            the parser, which owns the state.
25:          */
26:         protected AbstractPackageParserState(final PackageDescriptionFileParser parser) {
27:                 super();
28:                 this.myParser = parser;
29:         }
30: 
31:         /**
32:          * handle the given Symbol.
33:          * 
34:          * @param rs
35:          *            The {@link RouterSoftware} to use.
36:          * @param symbol
37:          *            is the given Symbol.
38:          * @throws InterruptedException
39:          *             from the buffer.
40:          * @throws ParserException
41:          *             if there is any Problem while parsing
42:          * @return AbstractParserState, which is the actual State of the Parser.
43:          */
44:         public abstract AbstractPackageParserState action(RouterSoftware rs,
45:                         PackageDescriptionFileSymbol symbol) throws InterruptedException, ParserException;
46: 
47:         /**
48:          * 
49:          * @return the Parser;
50:          */
51:         protected PackageDescriptionFileParser getMyParser() {
52:                 return this.myParser;
53:         }
54: 
55: }