public class OpMultiply extends Operator
multiply
operator.
Conversions and promotions are handled as defined in Section 5.6.2 of the Java Language Specification:
If any of the operands is of a reference type, unboxing conversion (Section 5.1.8) is performed. Then:
If either operand is of type double, the other is converted to double.
Otherwise, if either operand is of type float, the other is converted to float.
Otherwise, if either operand is of type long, the other is converted to long.
Otherwise, both operands are converted to type int.
children, pos
Constructor and Description |
---|
OpMultiply(int pos,
SpelNodeImpl... operands) |
Modifier and Type | Method and Description |
---|---|
TypedValue |
getValueInternal(ExpressionState state)
Implements the
multiply operator directly here for certain types
of supported operands and otherwise delegates to any registered overloader
for types not supported here. |
getLeftOperand, getOperatorName, getRightOperand, toStringAST
getChild, getChildCount, getEndPosition, getObjectClass, getPreviousChild, getStartPosition, getTypedValue, getValue, getValue, getValueRef, isWritable, nextChildIs, setValue
public OpMultiply(int pos, SpelNodeImpl... operands)
public TypedValue getValueInternal(ExpressionState state) throws EvaluationException
multiply
operator directly here for certain types
of supported operands and otherwise delegates to any registered overloader
for types not supported here.
Supported operand types:
getValueInternal
in class SpelNodeImpl
EvaluationException