Thanks for the various helpful comments.
It is interesting that Joshuah/Joseph was in Jamaica when his son John was baptised at Galston in 1786. I supect, therefore, that he may have been abroad when he died.
Mary Boyle's father was David. There is no clue to J's father, other than that he was determined to name a son William - which might have been his father's name.
Gordon