KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * MEDOR: Middleware Enabling Distributed Object Requests
3  *
4  * Copyright (C) 2001-2003 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, A. Lefebvre
22  */

23 package org.objectweb.medor.expression.api;
24
25 import org.objectweb.jorm.type.api.PType;
26 import java.util.Date JavaDoc;
27
28 /**
29  * This Interface extends a simple operand. It offers methods to sets new value
30  * to this object. The type of this operand does not change.
31  */

32 public interface VariableOperand extends Operand {
33
34     /**
35      * This method changes the type of the current operand object.
36      */

37     void setType(PType type);
38
39     /**
40      * It assigns the operand value as a boolean value
41      * @param p the new boolean value.
42      */

43     void setValue(boolean p) throws TypingException;
44
45     /**
46      * It assigns the operand value
47      * @param p the new integer value.
48      */

49     void setValue(int p) throws TypingException;
50
51     /**
52      * It assigns the operand value
53      * @param p the new byte value.
54      */

55     void setValue(byte p) throws TypingException;
56
57     /**
58      * It assigns the operand value
59      * @param p the new short value.
60      */

61     void setValue(short p) throws TypingException;
62
63     /**
64      * It assigns the operand value
65      * @param p the new long value.
66      */

67     void setValue(long p) throws TypingException;
68
69     /**
70      * It assigns the operand value
71      * @param p the new float value.
72      */

73     void setValue(float p) throws TypingException;
74
75     /**
76      * It assigns the operand value
77      * @param p the new double value.
78      */

79     void setValue(double p) throws TypingException;
80
81     /**
82      * It assigns the operand value
83      * @param p the new char value.
84      */

85     void setValue(char p) throws TypingException;
86
87     /**
88      * It assigns the operand value
89      * @param p the new String value.
90      */

91     void setValue(String JavaDoc p) throws TypingException;
92
93     /**
94      * It assigns the operand value
95      * @param p the new java.util.Date value.
96      */

97     void setValue(Date JavaDoc p) throws TypingException;
98
99     /**
100      * It assigns the operand value
101      * @param p the new Object value.
102      */

103     void setValue(Object JavaDoc p) throws TypingException;
104 }
105
Popular Tags