org.objectweb.medor.filter.lib
Class InCollection

java.lang.Object
  extended byBasicBinaryOperator
      extended byorg.objectweb.medor.filter.lib.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)

See Also:
Serialized Form

Constructor Summary
InCollection(FieldOperand left, Operand right, PType elemType)
           
 
Method Summary
 java.lang.Object clone(java.lang.Object clone, java.util.Map obj2clone)
           
 Operand compileExpression()
           
 Operand evaluate(ParameterOperand[] pos, java.lang.Object o)
           
 PType getElemType()
          Returns the declared PType of the elements.
 java.lang.String getOperatorString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InCollection

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

clone

public java.lang.Object clone(java.lang.Object clone,
                              java.util.Map obj2clone)
                       throws java.lang.CloneNotSupportedException
Throws:
java.lang.CloneNotSupportedException

getElemType

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


evaluate

public Operand evaluate(ParameterOperand[] pos,
                        java.lang.Object o)
                 throws ExpressionException
Throws:
ExpressionException

compileExpression

public Operand compileExpression()
                          throws TypingException,
                                 MalformedExpressionException
Throws:
TypingException
MalformedExpressionException

getOperatorString

public java.lang.String getOperatorString()