Package org.apache.activemq.filter
Class ArithmeticExpression
java.lang.Object
org.apache.activemq.filter.BinaryExpression
org.apache.activemq.filter.ArithmeticExpression
- All Implemented Interfaces:
Expression
An expression which performs an operation on two expression values
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected static final intprotected static final intFields inherited from class org.apache.activemq.filter.BinaryExpression
left, right -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Numberstatic ExpressioncreateDivide(Expression left, Expression right) static ExpressioncreateMinus(Expression left, Expression right) static ExpressioncreateMod(Expression left, Expression right) static ExpressioncreateMultiply(Expression left, Expression right) static ExpressioncreatePlus(Expression left, Expression right) protected Numberprotected abstract Objectevaluate(MessageEvaluationContext message) protected Numberprotected Numberprotected Numberprotected NumberMethods inherited from class org.apache.activemq.filter.BinaryExpression
equals, getExpressionSymbol, getLeft, getRight, hashCode, setLeft, setRight, toString
-
Field Details
-
INTEGER
protected static final int INTEGER- See Also:
-
LONG
protected static final int LONG- See Also:
-
DOUBLE
protected static final int DOUBLE- See Also:
-
-
Constructor Details
-
ArithmeticExpression
- Parameters:
left-right-
-
-
Method Details
-
createPlus
-
createMinus
-
createMultiply
-
createDivide
-
createMod
-
plus
-
minus
-
multiply
-
divide
-
mod
-
asNumber
-
evaluate
- Returns:
- the value of this expression
- Throws:
jakarta.jms.JMSException
-
evaluate
- Parameters:
lvalue-rvalue-- Returns:
-