类 OpMinus

  • 所有已实现的接口:
    Opcodes, SpelNode

    public class OpMinus
    extends Operator
    The minus operator supports:
    • subtraction of numbers
    • 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. The standard promotions are performed when the operand types vary (double-int=double). For other options it defers to the registered overloader.

    从以下版本开始:
    3.0
    作者:
    Andy Clement, Juergen Hoeller, Giovanni Dall'Oglio Risso