Package org.apache.activemq.filter
Class LogicExpression.ORExpression
- java.lang.Object
-
- org.apache.activemq.filter.LogicExpression
-
- org.apache.activemq.filter.LogicExpression.ORExpression
-
- All Implemented Interfaces:
BooleanExpression,Expression
- Enclosing class:
- LogicExpression
public static class LogicExpression.ORExpression extends LogicExpression
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.activemq.filter.LogicExpression
LogicExpression.ORExpression
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.filter.LogicExpression
expressions
-
-
Constructor Summary
Constructors Constructor Description ORExpression(BooleanExpression lvalue, BooleanExpression rvalue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectevaluate(MessageEvaluationContext message)StringgetExpressionSymbol()Returns the symbol that represents this binary expression.booleanmatches(MessageEvaluationContext message)-
Methods inherited from class org.apache.activemq.filter.LogicExpression
addExpression, createAND, createOR, getLeft, getRight, toString
-
-
-
-
Constructor Detail
-
ORExpression
public ORExpression(BooleanExpression lvalue, BooleanExpression rvalue)
-
-
Method Detail
-
evaluate
public Object evaluate(MessageEvaluationContext message) throws JMSException
- Specified by:
evaluatein interfaceExpression- Specified by:
evaluatein classLogicExpression- Returns:
- the value of this expression
- Throws:
JMSException
-
matches
public boolean matches(MessageEvaluationContext message) throws JMSException
- Specified by:
matchesin interfaceBooleanExpression- Specified by:
matchesin classLogicExpression- Returns:
- true if the expression evaluates to Boolean.TRUE.
- Throws:
JMSException
-
getExpressionSymbol
public String getExpressionSymbol()
Description copied from class:LogicExpressionReturns the symbol that represents this binary expression. For example, addition is represented by "+"- Specified by:
getExpressionSymbolin classLogicExpression- Returns:
-
-