KickJava   Java API By Example, From Geeks To Geeks.

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


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 class PositiveOp extends PrefixOp {
14   public static UnaryOp instance() {
15     return singleton;
16   }
17
18   /*
19    * @see jfun.parsec.mssql.UnaryOp#getPrecedence()
20    */

21   public int getPrecedence() {
22     return Precedences.positive();
23   }
24
25   private PositiveOp(){}
26   private static final UnaryOp singleton = new PositiveOp();
27   public String JavaDoc toString(){return "+";}
28 }
29
Popular Tags