org.objectweb.medor.expression.api
Interface Operand
- org.objectweb.medor.clone.api.Cloneable, Expression, Serializable
- CalculatedParameterOperand, ParameterOperand, VariableOperand
- BasicOperand, BasicParameterOperand, BasicVariableOperand
This interface represents a byte, char, int,...or an object value.
When
of primitive type, widing conversions allowed by the Java programming
language are used to get the value in different types.
Each getXXX() method returns the operand value of the XXX type.
BigDecimal | getBigDecimal() - evalute the expression result and return a BigDecimal value
|
BigInteger | getBigInteger() - evalute the expression result and return a BigInteger value
|
boolean | getBoolean() - get the operand result as a boolean value
|
byte | getByte() - get the operand result as a byte value
|
byte[] | getByteArray() - get the operand result as a byte[] value
|
char | getChar() - get the operand result as a char value
|
char[] | getCharArray() - get the operand result as a char[] value
|
Date | getDate() - get the operand result a java.util.Date value
|
double | getDouble() - get the operand result as a double value
|
float | getFloat() - get the operand result as a float value
|
int | getInt() - get the operand result as a byte value
|
long | getLong() - get the operand result as a long value
|
Object | getObject() - get the operand result as a java.lang.Object value
|
short | getShort() - get the operand result as a short value
|
String | getString() - evalute the expression result and return a string value
|
boolean | isDefined() - Indicates if the operand has been defined, ie is the value returned if
pertinent
|
void | setIsDefined(boolean isdefined)
|
getBigDecimal
public BigDecimal getBigDecimal()
throws TypingException
evalute the expression result and return a BigDecimal value
- BigDecimal result
TypingException
- if it is impossible to return a string value
getBigInteger
public BigInteger getBigInteger()
throws TypingException
evalute the expression result and return a BigInteger value
- BigInteger result
TypingException
- if it is impossible to return a string value
getBoolean
public boolean getBoolean()
throws TypingException
get the operand result as a boolean value
- a boolean value
TypingException
- if it is impossible to return a boolean value
getByte
public byte getByte()
throws TypingException
get the operand result as a byte value
- a byte value
TypingException
- if it is impossible to return an int value
getByteArray
public byte[] getByteArray()
throws TypingException
get the operand result as a byte[] value
- a byte[] value
TypingException
- if it is impossible to return an int value
getChar
public char getChar()
throws TypingException
get the operand result as a char value
- a char value
TypingException
- if it is impossible to return a char value;
getCharArray
public char[] getCharArray()
throws TypingException
get the operand result as a char[] value
- a char[] value
TypingException
- if it is impossible to return a char value;
getDate
public Date getDate()
throws TypingException
get the operand result a java.util.Date value
- a date value
TypingException
- if it is impossible to return java.util.Date
getDouble
public double getDouble()
throws TypingException
get the operand result as a double value
- a double value
TypingException
- if it is impossible to return a double value
getFloat
public float getFloat()
throws TypingException
get the operand result as a float value
- a float value
TypingException
- if it is impossible to return a float value;
getInt
public int getInt()
throws TypingException
get the operand result as a byte value
- an int value
TypingException
- if it is impossible to return an int value
getLong
public long getLong()
throws TypingException
get the operand result as a long value
- a long value
TypingException
- if it is impossible to return a long value
getObject
public Object getObject()
get the operand result as a java.lang.Object value
- an object
getShort
public short getShort()
throws TypingException
get the operand result as a short value
- a short value
TypingException
- if it is impossible to return a short value
getString
public String getString()
throws TypingException
evalute the expression result and return a string value
- string result
TypingException
- if it is impossible to return a string value
isDefined
public boolean isDefined()
Indicates if the operand has been defined, ie is the value returned if
pertinent
setIsDefined
public void setIsDefined(boolean isdefined)