Package org.apache.activemq.filter
Class LogicExpression
java.lang.Object
org.apache.activemq.filter.LogicExpression
- All Implemented Interfaces:
BooleanExpression,Expression
- Direct Known Subclasses:
LogicExpression.ORExpression
A sequence of expressions, to be combined with OR or AND conjunctions.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddExpression(BooleanExpression expression) static BooleanExpressioncreateAND(BooleanExpression lvalue, BooleanExpression rvalue) static BooleanExpressioncreateOR(BooleanExpression lvalue, BooleanExpression rvalue) abstract Objectevaluate(MessageEvaluationContext message) abstract StringReturns the symbol that represents this binary expression.getLeft()getRight()abstract booleanmatches(MessageEvaluationContext message) toString()
-
Field Details
-
expressions
-
-
Method Details
-
addExpression
-
getLeft
-
getRight
-
getExpressionSymbol
Returns the symbol that represents this binary expression. For example, addition is represented by "+"- Returns:
-
toString
-
createOR
-
createAND
-
evaluate
- Specified by:
evaluatein interfaceExpression- Returns:
- the value of this expression
- Throws:
jakarta.jms.JMSException
-
matches
- Specified by:
matchesin interfaceBooleanExpression- Returns:
- true if the expression evaluates to Boolean.TRUE.
- Throws:
jakarta.jms.JMSException
-