org.objectweb.medor.filter.lib

Class InCollection


public class InCollection
extends BasicBinaryOperator

The InCollection class is an operator testing whether the value of a Field (the left operand, which is supposed to be a FieldOperand) is equal to one of the elements of a collecton (the right Operand)

Constructor Summary

InCollection(FieldOperand left, Operand right, PType elemType)

Method Summary

Object
clone(Object clone, Map obj2clone)
Operand
compileExpression()
Operand
evaluate(ParameterOperand[] pos, Object o)
PType
getElemType()
Returns the declared PType of the elements.
String
getOperatorString()

Constructor Details

InCollection

public InCollection(FieldOperand left,
                    Operand right,
                    PType elemType)

Method Details

clone

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


compileExpression

public Operand compileExpression()
            throws TypingException,
                   MalformedExpressionException


evaluate

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


getElemType

public PType getElemType()
Returns the declared PType of the elements.


getOperatorString

public String getOperatorString()