Package: RowEndSymbol
RowEndSymbol
| name | instruction | branch | complexity | line | method | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| RowEndSymbol(Position) | 
  | 
  | 
  | 
  | 
  | 
||||||||||||||||||||
| accept(PackageDescriptionSymbolVisitor, PackageDescriptionFileParser) | 
  | 
  | 
  | 
  | 
  | 
||||||||||||||||||||
| accept(PackageDescriptionSymbolVisitorWithTempRule, PackageDescriptionFileParser, TempPackageRule) | 
  | 
  | 
  | 
  | 
  | 
||||||||||||||||||||
| equals(Object) | 
  | 
  | 
  | 
  | 
  | 
||||||||||||||||||||
| hashCode() | 
  | 
  | 
  | 
  | 
  | 
||||||||||||||||||||
| isPackageDescriptionFileSymbol() | 
  | 
  | 
  | 
  | 
  | 
||||||||||||||||||||
| isRowEndSymbol() | 
  | 
  | 
  | 
  | 
  | 
||||||||||||||||||||
| toPackageDescriptionFileSymbol() | 
  | 
  | 
  | 
  | 
  | 
||||||||||||||||||||
| toString() | 
  | 
  | 
  | 
  | 
  | 
||||||||||||||||||||
Coverage
1: package symbols;
2: 
3: import model.Position;
4: import parser.PackageDescriptionFileParser;
5: import parser.ParserException;
6: import parser.TempPackageRule;
7: import parser.states.packagestates.AbstractPackageParserState;
8: import scanner.ScannerConstants;
9: 
10: /**
11:  * This class represents the row end symbol. This is the end of a row.
12:  * 
13:  */
14: public final class RowEndSymbol extends AbstractSymbol implements PackageDescriptionFileSymbol {
15: 
16:         /**
17:          * This is the constructor for the row end symbol.
18:          * 
19:          * @param position
20:          *            is the position of the data in the stream.
21:          */
22:         public RowEndSymbol(final Position position) {
23:                 super(position);
24:         }
25: 
26:         @Override
27:         public String toString() {
28:                 return ScannerConstants.ROWEND + this.getPosition();
29:         }
30: 
31:         @Override
32:         public AbstractPackageParserState accept(final PackageDescriptionSymbolVisitor visitor,
33:                         final PackageDescriptionFileParser parser) throws InterruptedException,
34:                         ParserException {
35:                 return visitor.handle(this, parser);
36:         }
37: 
38:         @Override
39:         public AbstractPackageParserState accept(
40:                         final PackageDescriptionSymbolVisitorWithTempRule visitor,
41:                         final PackageDescriptionFileParser parser, final TempPackageRule tempPackageRule)
42:                         throws InterruptedException, ParserException {
43:                 return visitor.handle(this, parser, tempPackageRule);
44:         }
45: 
46:         @Override
47:         public Boolean isRowEndSymbol() {
48:                 return Boolean.TRUE;
49:         }
50: 
51:         @Override
52:         public int hashCode() {
53:                 return super.hashCode();
54:         }
55: 
56:         @Override
57:         public boolean equals(final Object obj) {
58:•                return super.equals(obj) && obj instanceof RowEndSymbol;
59:         }
60: 
61:         @Override
62:         public Boolean isPackageDescriptionFileSymbol() {
63:                 return Boolean.TRUE;
64:         }
65: 
66:         @Override
67:         public PackageDescriptionFileSymbol toPackageDescriptionFileSymbol() {
68:                 return this;
69:         }
70: 
71: }