how to display private methods in javadoc?

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Feb 2008
Posts: 21
Reputation: johndoe444 is an unknown quantity at this point 
Solved Threads: 0
johndoe444 johndoe444 is offline Offline
Newbie Poster

how to display private methods in javadoc?

 
0
  #1
Nov 7th, 2009
Hi,

I commented every method of my source code using javadoc tags. But I noticed the private methods/variables do not show up in the api documentation. If I change the access modifier to public then they show up. I was wondering how to make them visible (without declaring them as public) if I want to make all the contents visible to a developer (for his easy reading) who are going to develop on it later on.

Thanks.
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 1,629
Reputation: BestJewSinceJC is a splendid one to behold BestJewSinceJC is a splendid one to behold BestJewSinceJC is a splendid one to behold BestJewSinceJC is a splendid one to behold BestJewSinceJC is a splendid one to behold BestJewSinceJC is a splendid one to behold 
Solved Threads: 206
BestJewSinceJC BestJewSinceJC is offline Offline
Posting Virtuoso
 
0
  #2
Nov 7th, 2009
It makes sense that private variables wouldn't show up in a javadoc because only the class itself has access to private variables. So it is just not necessary.
Out.
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 801
Reputation: darkagn has a spectacular aura about darkagn has a spectacular aura about darkagn has a spectacular aura about 
Solved Threads: 110
darkagn's Avatar
darkagn darkagn is offline Offline
Practically a Posting Shark
 
0
  #3
Nov 7th, 2009
I believe it is possible to set a flag to generate javadoc for private/protected fields and methods. I think its -private or something like that. Google might be able to help you some more on that.
There are no stupid questions, only those too stupid to ask for help.
echo is a web developer's best friend.
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC