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
 Operand compileExpression()
           
 org.objectweb.medor.expression.api.Operand evaluate(ParameterOperand[] pos, java.lang.Object o)
           
 PType getElemType()
          Returns the declared PType of the elements.
 java.lang.String getOperatorString()
           
 PType getType()
           
 
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

getElemType

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


getType

public PType getType()

evaluate

public org.objectweb.medor.expression.api.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()