org.objectweb.medor.filter.lib

Class IsEmpty

Implemented Interfaces:
UnaryOperator

public class IsEmpty
extends BasicUnaryOperator
implements UnaryOperator

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.

Constructor Summary

IsEmpty()
IsEmpty(Expression e)

Method Summary

Operand
compileExpression()
boolean
evaluate(Object op)
Operand
evaluate(ParameterOperand[] pos, Object o)
String
getOperatorString()

Constructor Details

IsEmpty

public IsEmpty()


IsEmpty

public IsEmpty(Expression e)

Method Details

compileExpression

public Operand compileExpression()
            throws ExpressionException,
                   MalformedExpressionException


evaluate

public boolean evaluate(Object op)


evaluate

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


getOperatorString

public String getOperatorString()