org.objectweb.medor.filter.lib
Class BasicVariableOperand

java.lang.Object
  |
  +--org.objectweb.medor.filter.lib.BasicOperand
        |
        +--org.objectweb.medor.filter.lib.BasicVariableOperand
All Implemented Interfaces:
java.lang.Cloneable, Cloneable, Expression, Operand, VariableOperand
Direct Known Subclasses:
BasicFieldOperand, BasicParameterOperand

public class BasicVariableOperand
extends BasicOperand
implements VariableOperand


Field Summary
 
Fields inherited from class org.objectweb.medor.filter.lib.BasicOperand
doubleValue, isDefined, longValue, objectValue, type
 
Constructor Summary
BasicVariableOperand(PType p)
           
 
Method Summary
 java.lang.Object clone()
           
 void setType(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
 void setValue(java.sql.Time p)
          It assigns the operand value
 void setValue(java.sql.Timestamp p)
          It assigns the operand value
 void setValue(Tuple p)
          It assigns the operand value
 void setValue(TupleCollection p)
          It assigns the operand value
 
Methods inherited from class org.objectweb.medor.filter.lib.BasicOperand
compileExpression, evaluate, getBigDecimal, getBigInteger, getBoolean, getByte, getByteArray, getChar, getCharArray, getDate, getDouble, getFloat, getInt, getLong, getObject, getResult, getShort, getString, getTime, getTimestamp, getTuple, getTupleCollection, getType, getValueAsString, isCompiled, isDefined, setIsDefined, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.objectweb.medor.filter.api.Operand
getBigDecimal, getBigInteger, getBoolean, getByte, getByteArray, getChar, getCharArray, getDate, getDouble, getFloat, getInt, getLong, getObject, getShort, getString, getTime, getTimestamp, getTuple, getTupleCollection, isDefined, setIsDefined
 
Methods inherited from interface org.objectweb.medor.filter.api.Expression
compileExpression, evaluate, getResult, getType, isCompiled
 

Constructor Detail

BasicVariableOperand

public BasicVariableOperand(PType p)
Method Detail

setType

public void setType(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.
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.
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.
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.
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.
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.
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.
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.
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.
TypingException

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Specified by:
clone in interface Cloneable
Overrides:
clone in class BasicOperand
java.lang.CloneNotSupportedException

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.
TypingException

setValue

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

Specified by:
setValue in interface VariableOperand
Parameters:
p - the new java.sql.Time value.
TypingException

setValue

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

Specified by:
setValue in interface VariableOperand
Parameters:
p - the new java.sql.Timestamp value.
TypingException

setValue

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

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

setValue

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

Specified by:
setValue in interface VariableOperand
Parameters:
p - the new TupleCollection value.
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.
TypingException