org.apache.activemq.filter
Class LogicExpression
java.lang.Object
org.apache.activemq.filter.BinaryExpression
org.apache.activemq.filter.LogicExpression
- All Implemented Interfaces:
- BooleanExpression, Expression
public abstract class LogicExpression
- extends BinaryExpression
- implements BooleanExpression
A filter performing a comparison of two objects
- Version:
- $Revision: 1.2 $
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
LogicExpression
public LogicExpression(BooleanExpression left,
BooleanExpression right)
- Parameters:
left
- right
-
createOR
public static BooleanExpression createOR(BooleanExpression lvalue,
BooleanExpression rvalue)
createAND
public static BooleanExpression createAND(BooleanExpression lvalue,
BooleanExpression rvalue)
evaluate
public abstract java.lang.Object evaluate(MessageEvaluationContext message)
throws javax.jms.JMSException
- Specified by:
evaluate
in interface Expression
- Returns:
- the value of this expression
- Throws:
javax.jms.JMSException
matches
public boolean matches(MessageEvaluationContext message)
throws javax.jms.JMSException
- Specified by:
matches
in interface BooleanExpression
- Returns:
- true if the expression evaluates to Boolean.TRUE.
- Throws:
javax.jms.JMSException
Copyright © 2009 Apache Software Foundation. All Rights Reserved.