org.objectweb.medor.filter.lib
Class IsEmpty

java.lang.Object
  extended byBasicUnaryOperator
      extended byorg.objectweb.medor.filter.lib.IsEmpty

public class IsEmpty
extends BasicUnaryOperator

IsEmpty operates on an Expression which must be of a TupleCollection type, or a GenClassRef. Its evaluation returns true if the Expression is an empty TupleCollection or if the GenClassRef has no element.

See Also:
Serialized Form

Constructor Summary
IsEmpty()
           
IsEmpty(Expression e)
           
 
Method Summary
 Operand compileExpression()
           
 boolean evaluate(java.lang.Object op)
           
 Operand evaluate(ParameterOperand[] pos, java.lang.Object o)
           
 java.lang.String getOperatorString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsEmpty

public IsEmpty()

IsEmpty

public IsEmpty(Expression e)
Method Detail

evaluate

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

evaluate

public boolean evaluate(java.lang.Object op)

compileExpression

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

getOperatorString

public java.lang.String getOperatorString()