Update api.rst

update __javaconstructor__ usage