Installing Xcode on OS X Yosemite
If you have an developer account (I think an arbitrary Apple ID is sufficient) you can download Xcode in various varieties including other developer tools at Downloads for Apple Developers.