Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javadoc

 
Simon Ingram
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a series of classes in a package that matches my directory structure. The classes are using the default access level so that they can access each other from within the package, but are not accessible from outside. When I run javadoc on the package, it does not generate any information about my classes. If I change a class to public, then it appears in the documentation! Surely I should be able to generate documentation without having to widen the access level of my classes?
Any ideas?
regards
Simon
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Simon,
Welcome to JavaRanch.
There are command line options that you can give to the javadoc command to set which level it will document to.

So adding the -package option on your command line should document them for you.
For more information, refer to the javadoc help and/or see the documentation in the Javadoc home page.
I don't think you need to do this for your final submission though.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic