Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.objectweb.medor.clone.lib.BasicCloneable
org.objectweb.medor.expression.lib.BasicExpression
org.objectweb.medor.expression.lib.BasicOperand
Field Summary | |
protected double | |
protected boolean | |
protected long | |
protected Object |
Fields inherited from class org.objectweb.medor.expression.lib.BasicExpression | |
logger , type |
Constructor Summary | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
Method Summary | |
Object |
|
Operand |
|
Operand |
|
BigDecimal | |
BigInteger | |
boolean | |
byte |
|
byte[] | |
char |
|
char[] | |
Date |
|
double | |
float |
|
int |
|
long |
|
Object | |
short |
|
String | |
PType |
|
String |
|
boolean | |
void |
|
String |
|
Methods inherited from class org.objectweb.medor.expression.lib.BasicExpression | |
clone , getType |
Methods inherited from class org.objectweb.medor.clone.lib.BasicCloneable | |
clone , clone , clone , getClone |
protected double doubleValue
protected boolean isDefined
protected long longValue
protected Object objectValue
public BasicOperand()
public BasicOperand(Date p)
public BasicOperand(Object p, PType type)
protected BasicOperand(PType p)
public BasicOperand(String p)
public BasicOperand(boolean p)
public BasicOperand(byte p)
public BasicOperand(byte[] p)
public BasicOperand(char p)
public BasicOperand(char[] p)
public BasicOperand(double p)
public BasicOperand(float p)
public BasicOperand(int p)
public BasicOperand(long p)
public BasicOperand(short p)
public Object clone(Object clone, java.util.Map obj2clone) throws CloneNotSupportedException
- Specified by:
- clone in interface org.objectweb.medor.clone.api.Cloneable
- Overrides:
- clone in interface BasicExpression
public Operand compileExpression()
Checks the semantic integrity of an expression. It checks that all types are compatible and prepare the expression to be evaluable.It also creates buffers where stores the result. Notes that when evaluating there is no creation of new objects. This method change the state of this expression object, it will be evaluable and not modifiable.
- Specified by:
- compileExpression in interface Expression
public BigDecimal getBigDecimal() throws TypingException
- Specified by:
- getBigDecimal in interface Operand
public BigInteger getBigInteger() throws TypingException
- Specified by:
- getBigInteger in interface Operand
public boolean getBoolean() throws TypingException
- Specified by:
- getBoolean in interface Operand
public byte[] getByteArray() throws TypingException
- Specified by:
- getByteArray in interface Operand
public char[] getCharArray() throws TypingException
- Specified by:
- getCharArray in interface Operand
public PType getType()
It gets the result type of this expression
- Specified by:
- getType in interface Expression
- Overrides:
- getType in interface BasicExpression
- Returns:
- a PType object
public String getValueAsString()
It retrieves the value of the operand as a String.
public void setIsDefined(boolean isdefined)
- Specified by:
- setIsDefined in interface Operand
public String toString()