org.objectweb.medor.expression.lib
Class BasicVariableOperand

java.lang.Object
  extended byorg.objectweb.medor.clone.lib.BasicCloneable
      extended byorg.objectweb.medor.expression.lib.BasicExpression
          extended byorg.objectweb.medor.expression.lib.BasicOperand
              extended byorg.objectweb.medor.expression.lib.BasicVariableOperand
All Implemented Interfaces:
org.objectweb.medor.clone.api.Cloneable, java.lang.Cloneable, Expression, Operand, java.io.Serializable, VariableOperand
Direct Known Subclasses:
BasicParameterOperand

public class BasicVariableOperand
extends BasicOperand
implements VariableOperand

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.medor.expression.lib.BasicOperand
doubleValue, isDefined, longValue, objectValue
 
Fields inherited from class org.objectweb.medor.expression.lib.BasicExpression
logger, type
 
Constructor Summary
BasicVariableOperand()
           
BasicVariableOperand(BasicOperand p)
           
BasicVariableOperand(boolean b)
           
BasicVariableOperand(byte p)
           
BasicVariableOperand(char p)
           
BasicVariableOperand(java.util.Date p)
           
BasicVariableOperand(double p)
           
BasicVariableOperand(float p)
           
BasicVariableOperand(int p)
           
BasicVariableOperand(long p)
           
BasicVariableOperand(org.objectweb.jorm.type.api.PType p)
           
BasicVariableOperand(short p)
           
BasicVariableOperand(java.lang.String p)
           
 
Method Summary
 void setType(org.objectweb.jorm.type.api.PType type)
          This method changes the type of the current operand object.
 void setValue(boolean p)
          It assigns the operand value as a boolean value
 void setValue(byte p)
          It assigns the operand value
 void setValue(char p)
          It assigns the operand value
 void setValue(java.util.Date p)
          It assigns the operand value
 void setValue(double p)
          It assigns the operand value
 void setValue(float p)
          It assigns the operand value
 void setValue(int p)
          It assigns the operand value
 void setValue(long p)
          It assigns the operand value
 void setValue(java.lang.Object p)
          It assigns the operand value
 void setValue(short p)
          It assigns the operand value
 void setValue(java.lang.String p)
          It assigns the operand value
 
Methods inherited from class org.objectweb.medor.expression.lib.BasicOperand
clone, compileExpression, evaluate, getBigDecimal, getBigInteger, getBoolean, getByte, getByteArray, getChar, getCharArray, getDate, getDouble, getFloat, getInt, getLong, getObject, getShort, getString, getType, getValueAsString, isDefined, setIsDefined, toString
 
Methods inherited from class org.objectweb.medor.clone.lib.BasicCloneable
clone, clone, getClone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.objectweb.medor.expression.api.Operand
getBigDecimal, getBigInteger, getBoolean, getByte, getByteArray, getChar, getCharArray, getDate, getDouble, getFloat, getInt, getLong, getObject, getShort, getString, isDefined, setIsDefined
 
Methods inherited from interface org.objectweb.medor.expression.api.Expression
compileExpression, evaluate, getType
 
Methods inherited from interface org.objectweb.medor.clone.api.Cloneable
clone
 

Constructor Detail

BasicVariableOperand

public BasicVariableOperand()

BasicVariableOperand

public BasicVariableOperand(BasicOperand p)

BasicVariableOperand

public BasicVariableOperand(org.objectweb.jorm.type.api.PType p)

BasicVariableOperand

public BasicVariableOperand(boolean b)

BasicVariableOperand

public BasicVariableOperand(char p)

BasicVariableOperand

public BasicVariableOperand(byte p)

BasicVariableOperand

public BasicVariableOperand(short p)

BasicVariableOperand

public BasicVariableOperand(int p)

BasicVariableOperand

public BasicVariableOperand(long p)

BasicVariableOperand

public BasicVariableOperand(float p)

BasicVariableOperand

public BasicVariableOperand(double p)

BasicVariableOperand

public BasicVariableOperand(java.lang.String p)

BasicVariableOperand

public BasicVariableOperand(java.util.Date p)
Method Detail

setType

public void setType(org.objectweb.jorm.type.api.PType type)
Description copied from interface: VariableOperand
This method changes the type of the current operand object.

Specified by:
setType in interface VariableOperand

setValue

public void setValue(boolean p)
              throws TypingException
Description copied from interface: VariableOperand
It assigns the operand value as a boolean value

Specified by:
setValue in interface VariableOperand
Parameters:
p - the new boolean value.
Throws:
TypingException

setValue

public void setValue(int p)
              throws TypingException
Description copied from interface: VariableOperand
It assigns the operand value

Specified by:
setValue in interface VariableOperand
Parameters:
p - the new integer value.
Throws:
TypingException

setValue

public void setValue(byte p)
              throws TypingException
Description copied from interface: VariableOperand
It assigns the operand value

Specified by:
setValue in interface VariableOperand
Parameters:
p - the new byte value.
Throws:
TypingException

setValue

public void setValue(short p)
              throws TypingException
Description copied from interface: VariableOperand
It assigns the operand value

Specified by:
setValue in interface VariableOperand
Parameters:
p - the new short value.
Throws:
TypingException

setValue

public void setValue(long p)
              throws TypingException
Description copied from interface: VariableOperand
It assigns the operand value

Specified by:
setValue in interface VariableOperand
Parameters:
p - the new long value.
Throws:
TypingException

setValue

public void setValue(float p)
              throws TypingException
Description copied from interface: VariableOperand
It assigns the operand value

Specified by:
setValue in interface VariableOperand
Parameters:
p - the new float value.
Throws:
TypingException

setValue

public void setValue(double p)
              throws TypingException
Description copied from interface: VariableOperand
It assigns the operand value

Specified by:
setValue in interface VariableOperand
Parameters:
p - the new double value.
Throws:
TypingException

setValue

public void setValue(char p)
              throws TypingException
Description copied from interface: VariableOperand
It assigns the operand value

Specified by:
setValue in interface VariableOperand
Parameters:
p - the new char value.
Throws:
TypingException

setValue

public void setValue(java.lang.String p)
              throws TypingException
Description copied from interface: VariableOperand
It assigns the operand value

Specified by:
setValue in interface VariableOperand
Parameters:
p - the new String value.
Throws:
TypingException

setValue

public void setValue(java.util.Date p)
              throws TypingException
Description copied from interface: VariableOperand
It assigns the operand value

Specified by:
setValue in interface VariableOperand
Parameters:
p - the new java.util.Date value.
Throws:
TypingException

setValue

public void setValue(java.lang.Object p)
              throws TypingException
Description copied from interface: VariableOperand
It assigns the operand value

Specified by:
setValue in interface VariableOperand
Parameters:
p - the new Object value.
Throws:
TypingException