This site requires JavaScript, please enable it in your browser!
Greenfoot back
PaulRosca
PaulRosca wrote ...

2020/12/22

Generating javadoc

PaulRosca PaulRosca

2020/12/22

#
How could I generate the javadoc for private methods and variables? Also for nested classes? I know there is an option in most IDE's does Greenfoot have it?
danpost danpost

2020/12/22

#
PaulRosca wrote...
How could I generate the javadoc for private methods and variables? Also for nested classes? I know there is an option in most IDE's does Greenfoot have it?
In class editor, near top right of frame, you can change view from "Source Code" to "Documentation". Be warned that altering the source does not update the generated documentation automatically.
PaulRosca PaulRosca

2020/12/22

#
danpost wrote...
PaulRosca wrote...
How could I generate the javadoc for private methods and variables? Also for nested classes? I know there is an option in most IDE's does Greenfoot have it?
In class editor, near top right of frame, you can change view from "Source Code" to "Documentation". Be warned that altering the source does not update the generated documentation automatically.
My problem is that only public fields show up in the documentation, I'm trying to document private fields also.
danpost danpost

2020/12/22

#
Private fields and methods are not documented in the java documentation. They are considered internal to the class.
You need to login to post a reply.