public class

OpMinus

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

Class Overview

The minus operator supports:

  • subtraction of doubles (floats are represented as doubles)
  • subtraction of longs
  • subtraction of integers
  • subtraction of an int from a string of one character (effectively decreasing that character), so 'd'-3='a'
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
OpMinus(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 OpMinus (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] ')'