KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jofti > parser > Operator


1 /*
2  * Created on 18-Jul-2005
3  *
4  * TODO To change the template for this generated file go to
5  * Window - Preferences - Java - Code Style - Code Templates
6  */

7 package com.jofti.parser;
8
9 /**
10  *
11  *
12  * Specifies an operator type used in a predicate clause.<p>
13  *
14  * @author Steve Woodcock (steve@jofti.com)
15  */

16 public class Operator {
17
18     private int operator;
19     
20     
21     public Operator(int operator){
22         this.operator = operator;
23     }
24     
25     public synchronized int getOperator() {
26         return operator;
27     }
28     /**
29      * @param operator The operator to set.
30      */

31     public synchronized void setOperator(int operator) {
32         this.operator = operator;
33     }
34     
35     public String JavaDoc toString(){
36         return "operator: " + operator;
37     }
38 }
39
Popular Tags