KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > medor > expression > api > Operator


1 /**
2  * MEDOR: Middleware Enabling Distributed Object Requests
3  *
4  * Copyright (C) 2001-2004 France Telecom R&D
5  * Contact: alexandre.lefebvre@rd.francetelecom.com
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20  *
21  * Initial developers: M. Alia, S. Chassande-Barrioz, A. Lefebvre
22  */

23
24 package org.objectweb.medor.expression.api;
25
26 /**
27  *
28  * @author Sebastien Chassande-Barrioz
29  */

30 public interface Operator extends Expression {
31
32     public final static String JavaDoc LOWER = "<";
33     public final static String JavaDoc GREATER = ">";
34     public final static String JavaDoc LOWEREQUAL = "<=";
35     public final static String JavaDoc GREATEREQUAL = ">=";
36     public final static String JavaDoc NOT = "!";
37     public final static String JavaDoc CONDAND = "&&";
38     public final static String JavaDoc CONCAT = "concat";
39     public final static String JavaDoc AND = "&";
40     public final static String JavaDoc CONDOR = "||";
41     public final static String JavaDoc OR = "|";
42     public final static String JavaDoc EQUAL = "==";
43     public final static String JavaDoc NOTEQUAL = "!=";
44     public final static String JavaDoc PLUS = "+";
45     public final static String JavaDoc MINUS = "-";
46     public final static String JavaDoc UMINUS = "-";
47     public final static String JavaDoc MULT = "*";
48     public final static String JavaDoc DIV = "/";
49     public final static String JavaDoc BITWIZE = "~";
50     public final static String JavaDoc NAV = ".";
51     public final static String JavaDoc IN = "IN";
52     public final static String JavaDoc LENGTH = "length";
53     public final static String JavaDoc FIRSTLOCATE = "locate";
54     public final static String JavaDoc INDEXEDLOCATE = "locate";
55     public final static String JavaDoc SQRT = "sqrt";
56     public final static String JavaDoc ABS = "abs";
57     public final static String JavaDoc SUBSTRING = "substring";
58     public final static String JavaDoc STRING_UPPER = "upper";
59     public final static String JavaDoc STRING_LOWER = "lower";
60     public final static String JavaDoc MEMBEROF = "memberof";
61     public final static String JavaDoc NOTMEMBEROF = "notmemberof";
62     public final static String JavaDoc AVG = "avg";
63     public final static String JavaDoc MIN = "min";
64     public final static String JavaDoc MAX = "max";
65     public final static String JavaDoc COUNT = "count";
66     public final static String JavaDoc SUM = "sum";
67     public final static String JavaDoc MOD = "mod";
68
69     /**
70      * Returns the String representing the operator in Java
71      * @return the String representing the operator in Java
72      */

73     String JavaDoc getOperatorString();
74
75     int getOperandNumber();
76
77     Expression getExpression(int idx) throws ArrayIndexOutOfBoundsException JavaDoc;
78
79     void setExpression(int idx, Expression exp)
80         throws ArrayIndexOutOfBoundsException JavaDoc;
81 }
82
Popular Tags