Jump to content
  • Advertisement
Sign in to follow this  
Instigator

[java] Javadoc Decompiler?

This topic is 4098 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'd like to learn how to create JavaDocs and the best way I usually learn is via working backwards. I know it sounds crazy but is there a way for me to decompile a javadoc back to the original source code?

Share this post


Link to post
Share on other sites
Advertisement
Not that I know of. But I doubt it would show you anything anyway - theres very little to learn. Just run the 'javadoc' tool over your source code and it spits out the generated html. Thats all there is too it.

If you really want to compare source and generated javadoc, then I beleive the source to the JRE classes is included in the JDK somewhere.

Share this post


Link to post
Share on other sites
Quote:
Original post by Antheus
Javadoc doesn't contain any source.


It does if you use the -linksource command option, but I must agree that reverse engineering the javadoc to source is a pointless exercise.
Javadoc is meant to be API documentation that gets written inline with source code. Nothing fancy, but it gets the job done.

The best examples I can think of is to download the source code of one of the projects at http://commons.apache.org/. Compare the source to the published API, and you can see how HTML and other fancy Javadoc stuff gets used.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!