As you can see there is no specific code for the name attribute.
There is the possibility to set name attribute value with the code:
https://github.com/magento/magento2/blob/2.0.0/lib/internal/Magento/Framework/Data/Form/Element/Checkboxes.php#L198-L202
But see how it works:
So a \Magento\Framework\Data\Form\Element\Checkboxes instance will called for the getName method with the parameter (a particular checkbox key), but the method getName has no parameters in the base class:
PHP does not allow to have multiple methods with the same name but different parameter signatures so we can not handle the call \Magento\Framework\Data\Form\Element\Checkboxes for getName method with a parameter.