Class ArithmeticExpression
java.lang.Object
org.apache.activemq.artemis.selector.filter.BinaryExpression
org.apache.activemq.artemis.selector.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 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(Filterable message) Returns the value of this expression.protected Numberprotected Numberprotected Numberprotected NumberMethods inherited from class 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
-
-
Method Details
-
createPlus
-
createMinus
-
createMultiply
-
createDivide
-
createMod
-
plus
-
minus
-
multiply
-
divide
-
mod
-
asNumber
-
evaluate
Description copied from interface:ExpressionReturns the value of this expression.- Returns:
- the value of this expression
- Throws:
FilterException
-
evaluate
-