java - JavaDoc: document only the public methods in a framework that users are supposed to use? -


frameworks need contain classes have public methods because of needs of framework; users using framework aren't supposed invoke them.

for example, class might have public constructor factory in package can instantiate it, user supposed use factory, never constructor directly.

i'd javadoc emit documentation on methods user supposed invoke, not others. in example, should document factory method, not public constructor.

of course, javadoc won't know which, thinking "public" methods annotated annotation, @supportedapi, , javadoc spit out documentation on those. (this have added benefit mark methods expected remain stable.)

can javadoc configured that?


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -