Class BinaryOperator

    • Constructor Detail

      • BinaryOperator

        public BinaryOperator​(Item operand1,
                              Item operand2)
    • Method Detail

      • operand1

        public final Item operand1()
      • operator

        public abstract String operator()
        Returns the token that identifiers this Operator's operation. Used to uniquely identify the type of operation, and to aid serialization.
      • operand2

        public final Item operand2()
      • isConstant

        public boolean isConstant()
        Description copied from class: Item
        Returns true if this Item always evaluates to the same Item.
        Specified by:
        isConstant in class Item