public abstract class ArithmeticExpression extends BinaryExpression
| Modifier and Type | Field and Description |
|---|---|
protected static int |
DOUBLE |
protected static int |
INTEGER |
protected static int |
LONG |
left, rightCACHE| Constructor and Description |
|---|
ArithmeticExpression(Expression left,
Expression right)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Number |
asNumber(Object value) |
static Expression |
createDivide(Expression left,
Expression right) |
static Expression |
createMinus(Expression left,
Expression right) |
static Expression |
createMod(Expression left,
Expression right) |
static Expression |
createMultiply(Expression left,
Expression right) |
static Expression |
createPlus(Expression left,
Expression right) |
protected Number |
divide(Number left,
Number right) |
io.atlasmap.v2.Field |
evaluate(ExpressionContext message)
Execute the expression against the given context.
|
protected abstract io.atlasmap.v2.Field |
evaluate(io.atlasmap.v2.Field lvalue,
io.atlasmap.v2.Field rvalue)
Evaluate expression.
|
protected Number |
minus(Number left,
Number right) |
protected Number |
mod(Number left,
Number right) |
protected Number |
multiply(Number left,
Number right) |
protected Number |
plus(Number left,
Number right) |
equals, getExpressionSymbol, getLeft, getRight, hashCode, setLeft, setRight, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitclearCache, parseprotected static final int INTEGER
protected static final int LONG
protected static final int DOUBLE
public ArithmeticExpression(Expression left, Expression right)
left - The left Expressionright - The right Expressionpublic static Expression createPlus(Expression left, Expression right)
public static Expression createMinus(Expression left, Expression right)
public static Expression createMultiply(Expression left, Expression right)
public static Expression createDivide(Expression left, Expression right)
public static Expression createMod(Expression left, Expression right)
public io.atlasmap.v2.Field evaluate(ExpressionContext message) throws ExpressionException
Expressionmessage - ExpressionContextField represents a resultExpressionException - If evaluation failsprotected abstract io.atlasmap.v2.Field evaluate(io.atlasmap.v2.Field lvalue,
io.atlasmap.v2.Field rvalue)
lvalue - Field represents left valuervalue - Field represents right valueField reporesents a resultCopyright © 2020 JBoss by Red Hat. All rights reserved.