public class

OpPlus

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

Class Overview

The plus operator will:

  • add doubles (floats are represented as doubles)
  • add longs
  • add integers
  • concatenate strings
It can be used as a unary operator for numbers (double/long/int). The standard promotions are performed when the operand types vary (double+int=double). For other options it defers to the registered overloader.

Summary

[Expand]
Inherited Fields
From class org.springframework.expression.spel.ast.SpelNodeImpl
Public Constructors
OpPlus(int pos, SpelNodeImpl... operands)
Public Methods
SpelNodeImpl getRightOperand()
TypedValue getValueInternal(ExpressionState state)
String toStringAST()
String format for all operators is the same '(' [operand] [operator] [operand] ')'
[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 OpPlus (int pos, SpelNodeImpl... operands)

Public Methods

public SpelNodeImpl getRightOperand ()

public TypedValue getValueInternal (ExpressionState state)

public String toStringAST ()

String format for all operators is the same '(' [operand] [operator] [operand] ')'