public class

OpMultiply

extends Operator
java.lang.Object
   ↳ org.springframework.expression.spel.ast.SpelNodeImpl
     ↳ org.springframework.expression.spel.ast.Operator
       ↳ org.springframework.expression.spel.ast.OpMultiply

Class Overview

Implements the multiply operator. Conversions and promotions: http://java.sun.com/docs/books/jls/third_edition/html/conversions.html Section 5.6.2:

If any of the operands is of a reference type, unboxing conversion (�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.

Summary

[Expand]
Inherited Fields
From class org.springframework.expression.spel.ast.SpelNodeImpl
Public Constructors
OpMultiply(int pos, SpelNodeImpl... operands)
Public Methods
TypedValue getValueInternal(ExpressionState state)
Implements multiply directly here for some types of operand, otherwise delegates to any registered overloader for types it does not recognize.
[Expand]
Inherited Methods
From class org.springframework.expression.spel.ast.Operator
From class org.springframework.expression.spel.ast.SpelNodeImpl
From class java.lang.Object
From interface org.springframework.expression.spel.SpelNode

Public Constructors

public OpMultiply (int pos, SpelNodeImpl... operands)

Public Methods

public TypedValue getValueInternal (ExpressionState state)

Implements multiply directly here for some types of operand, otherwise delegates to any registered overloader for types it does not recognize. Supported types here are:

  • integers
  • doubles
  • string and int ('abc' * 2 == 'abcabc')