Skip to contentMethod: toString()
      1: /**
2:  * 
3:  */
4: package symbols;
5: 
6: import model.Position;
7: import scanner.ScannerConstants;
8: 
9: /**
10:  * @author Hendrik
11:  * 
12:  */
13: public class EqualsTildeSymbol extends AbstractSymbol {
14:         /**
15:          * This is the constructor of the EqualsTildeSymbol.
16:          * 
17:          * @param position
18:          *            is the position of the data in the stream.
19:          */
20:         public EqualsTildeSymbol(final Position position) {
21:                 super(position);
22:         }
23: 
24:         @Override
25:         public String toString() {
26:                 return ScannerConstants.EQUALTILDE.toString() + this.getPosition();
27:         }
28: 
29:         @Override
30:         public int hashCode() {
31:                 return super.hashCode();
32:         }
33: 
34:         @Override
35:         public boolean equals(final Object obj) {
36:                 return super.equals(obj) && obj instanceof EqualsTildeSymbol;
37:         }
38: 
39: }