KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > tests > jfun > parsec > mssql > NegativeOp


1 /*
2  * Created on 2004-11-15
3  *
4  * Author Ben Yu
5  */

6 package tests.jfun.parsec.mssql;
7
8 /**
9  * @author Ben Yu
10  *
11  * 2004-11-15
12  */

13 public final class NegativeOp extends PrefixOp {
14
15   /*
16    * @see jfun.parsec.mssql.UnaryOp#getPrecedence()
17    */

18   public int getPrecedence() {
19     return Precedences.negative();
20   }
21   public static UnaryOp instance() {
22     return singleton;
23   }
24
25   private NegativeOp(){}
26   private static final UnaryOp singleton = new NegativeOp();
27   public String JavaDoc toString(){return "-";}
28 }
29
Popular Tags