org.objectweb.medor.filter.lib

Class BasicFieldOperand

Implemented Interfaces:
FieldOperand, Operand

public class BasicFieldOperand
extends BasicVariableOperand
implements FieldOperand

Author:
Sebastien Chassande-Barrioz

Constructor Summary

BasicFieldOperand()
BasicFieldOperand(PType type, Field field)
BasicFieldOperand(Field field)

Method Summary

Object
clone(Object clone, Map obj2clone)
Operand
evaluate(ParameterOperand[] pos, 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)
String
toString()

Constructor Details

BasicFieldOperand

public BasicFieldOperand()


BasicFieldOperand

public BasicFieldOperand(PType type,
                         Field field)


BasicFieldOperand

public BasicFieldOperand(Field field)

Method Details

clone

public Object clone(Object clone,
                    Map obj2clone)
            throws CloneNotSupportedException


evaluate

public Operand evaluate(ParameterOperand[] pos,
                        Object t)
            throws ExpressionException


getField

public Field getField()
Specified by:
getField in interface FieldOperand


getIndex

public int getIndex()
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


setField

public void setField(Field f)
Specified by:
setField in interface FieldOperand


setIndex

public void setIndex(int idx)
Specified by:
setIndex in interface FieldOperand


toString

public String toString()