Class LogicExpression
java.lang.Object
org.apache.activemq.artemis.selector.filter.LogicExpression
- All Implemented Interfaces:
BooleanExpression,Expression
A sequence of expressions, to be combined with OR or AND conjunctions.
-
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(Filterable message) abstract StringReturns the symbol that represents this binary expression.getLeft()getRight()abstract booleanmatches(Filterable 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:
FilterException
-
matches
- Specified by:
matchesin interfaceBooleanExpression- Returns:
- true if the expression evaluates to Boolean.TRUE.
- Throws:
FilterException
-