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) Returns the value of this expression.abstract StringReturns the symbol that represents this binary expression. For example, addition is represented by "+".getLeft()getRight()abstract booleanmatches(Filterable message) Returnstrueif the expression evaluates toBoolean.TRUE.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:
- the symbol that represents this binary expression. For example, addition is represented by "+"
-
toString
-
createOR
-
createAND
-
evaluate
Description copied from interface:ExpressionReturns the value of this expression.- Specified by:
evaluatein interfaceExpression- Returns:
- the value of this expression
- Throws:
FilterException
-
matches
Description copied from interface:BooleanExpressionReturnstrueif the expression evaluates toBoolean.TRUE.- Specified by:
matchesin interfaceBooleanExpression- Returns:
trueif the expression evaluates toBoolean.TRUE- Throws:
FilterException
-