Class OpPlus

  • All Implemented Interfaces:
    Opcodes, SpelNode

    public class OpPlus
    extends Operator
    The plus operator will:
    • add numbers
    • concatenate strings

    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.

    Since:
    3.0
    Author:
    Andy Clement, Juergen Hoeller, Ivo Smid, Giovanni Dall'Oglio Risso