org.objectweb.medor.filter.lib
Class BasicFieldOperand
java.lang.Object
BasicVariableOperand
org.objectweb.medor.filter.lib.BasicFieldOperand
- All Implemented Interfaces:
- FieldOperand
- public class BasicFieldOperand
- extends BasicVariableOperand
- implements FieldOperand
- Author:
- Sebastien Chassande-Barrioz
- See Also:
- Serialized Form
Method Summary |
java.lang.Object |
clone(java.lang.Object clone,
java.util.Map obj2clone)
|
Operand |
evaluate(ParameterOperand[] pos,
java.lang.Object t)
|
Field |
getField()
|
int |
getIndex()
The index of this Field in the array made of the concatenation of the
tuples from the children QueryTrees. |
void |
setField(Field f)
|
void |
setIndex(int idx)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BasicFieldOperand
public BasicFieldOperand()
BasicFieldOperand
public BasicFieldOperand(Field field)
BasicFieldOperand
public BasicFieldOperand(PType type,
Field field)
clone
public java.lang.Object clone(java.lang.Object clone,
java.util.Map obj2clone)
throws java.lang.CloneNotSupportedException
- Throws:
java.lang.CloneNotSupportedException
getField
public Field getField()
- Specified by:
getField
in interface FieldOperand
setField
public void setField(Field f)
- Specified by:
setField
in interface FieldOperand
getIndex
public int getIndex()
- Description copied from interface:
FieldOperand
- The index of this Field in the array made of the concatenation of the
tuples from the children QueryTrees.
This is required here, since a FieldOperand does not have to be built
on a PropagatedField. In other words, the Field associated to this
FieldOperand may not be projected in the result of the operation.
- Specified by:
getIndex
in interface FieldOperand
setIndex
public void setIndex(int idx)
- Specified by:
setIndex
in interface FieldOperand
toString
public java.lang.String toString()
evaluate
public Operand evaluate(ParameterOperand[] pos,
java.lang.Object t)
throws ExpressionException
- Throws:
ExpressionException