private Property evalMultiply(Numeric op1, Numeric op2) { if (op1 == null || op2 == null) { throw new PropertyException("Non numeric operand in multiplication"); } return(new NumericProperty(op1.multiply(op2))); }
private Property evalNegate(Numeric op) { if (op == null) { throw new PropertyException("Non numeric operand to unary minus"); } return(new NumericProperty(op.multiply(negOne))); }
private Property evalMultiply(Numeric op1, Numeric op2) { if (op1 == null || op2 == null) { throw new PropertyException("Non numeric operand in multiplication"); } return new NumericProperty(op1.multiply(op2)); }
private Property evalNegate(Numeric op) { if (op == null) { throw new PropertyException("Non numeric operand to unary minus"); } return new NumericProperty(op.multiply(negOne)); }