I don't quite understand how this maps to what the doc string says it should do.  I think having `self._integer == True` is incompatible with this locator, should probably just raise an exception.