Package: SymbolToken
SymbolToken
| name | instruction | branch | complexity | line | method | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SymbolToken(Position, String) | 
  | 
  | 
  | 
  | 
  | 
||||||||||||||||||||
| isSymbolToken() | 
  | 
  | 
  | 
  | 
  | 
||||||||||||||||||||
Coverage
1: package de.fhdw.wtf.common.token.symbols;
2: 
3: import de.fhdw.wtf.common.token.MultiCharToken;
4: import de.fhdw.wtf.common.token.Position;
5: 
6: /**
7:  * Represents all symbols as a token.
8:  */
9: public abstract class SymbolToken extends MultiCharToken {
10:         
11:         /**
12:          * generated.
13:          */
14:         private static final long serialVersionUID = -7701059608100914045L;
15:         
16:         /**
17:          * Protected constructor for {@link SymbolToken}. Use create(...)-Factory instead!
18:          * 
19:          * @param position
20:          *            represents the start position of the {@link SymbolToken} in the original input.
21:          * @param symbol
22:          *            represents the symbol
23:          */
24:         protected SymbolToken(final Position position, final String symbol) {
25:                 super(symbol, position);
26:         }
27:         
28:         @Override
29:         public boolean isSymbolToken() {
30:                 return true;
31:         }
32: }