Skip to content

Package: PackageDescriptionInitialState

PackageDescriptionInitialState

nameinstructionbranchcomplexitylinemethod
PackageDescriptionInitialState(PackageDescriptionFileParser)
M: 0 C: 4
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
action(RouterSoftware, PackageDescriptionFileSymbol)
M: 0 C: 8
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

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 InititalState for the PackageDescriptionParser.
10: *
11: * @author HFW410
12: *
13: */
14: public class PackageDescriptionInitialState extends AbstractPackageParserState {
15:
16:         /**
17:          * creates a PackageDescriptionInitialState.
18:          *
19:          * @param parser
20:          * is the parser, who owns the state.
21:          */
22:         public PackageDescriptionInitialState(final PackageDescriptionFileParser parser) {
23:                 super(parser);
24:         }
25:
26:         @Override
27:         public AbstractPackageParserState action(final RouterSoftware rs,
28:                         final PackageDescriptionFileSymbol symbol) throws InterruptedException,
29:                         ParserException {
30:                 return symbol.accept(new InitialsStateSymbolVisitor(), this.getMyParser());
31:         }
32: }