Class LogicExpression
java.lang.Object
org.apache.qpid.jms.selector.filter.BinaryExpression
org.apache.qpid.jms.selector.filter.LogicExpression
- All Implemented Interfaces:
BooleanExpression,Expression
A filter performing a comparison of two objects
-
Field Summary
Fields inherited from class org.apache.qpid.jms.selector.filter.BinaryExpression
left, right -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanExpressioncreateAND(BooleanExpression lvalue, BooleanExpression rvalue) static BooleanExpressioncreateOR(BooleanExpression lvalue, BooleanExpression rvalue) abstract Objectevaluate(Filterable message) booleanmatches(Filterable message) Methods inherited from class org.apache.qpid.jms.selector.filter.BinaryExpression
equals, getExpressionSymbol, getLeft, getRight, hashCode, setLeft, setRight, toString
-
Constructor Details
-
LogicExpression
-
-
Method Details
-
createOR
-
createAND
-
evaluate
- Specified by:
evaluatein interfaceExpression- Parameters:
message- The message that is being selected against.- Returns:
- the value of this expression
- Throws:
FilterException- if an error occurs during evaluation.
-
matches
- Specified by:
matchesin interfaceBooleanExpression- Returns:
- true if the expression evaluates to Boolean.TRUE.
- Throws:
FilterException
-