944,142 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1392
  • Java RSS
Nov 7th, 2009
0

how to display private methods in javadoc?

Expand Post »
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.
Similar Threads
Reputation Points: 11
Solved Threads: 0
Posting Whiz in Training
johndoe444 is offline Offline
214 posts
since Feb 2008
Nov 7th, 2009
0
Re: how to display private methods in javadoc?
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.
Reputation Points: 874
Solved Threads: 352
Posting Maven
BestJewSinceJC is offline Offline
2,758 posts
since Sep 2008
Nov 7th, 2009
0
Re: how to display private methods in javadoc?
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.
Reputation Points: 395
Solved Threads: 192
Veteran Poster
darkagn is offline Offline
1,136 posts
since Aug 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Blank JFrame
Next Thread in Java Forum Timeline: Algorithm for creating a linked list that is sorted as nodes are inserted





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC