An Eclipse plugin which generates Javadoc for getters and setters of a Java class. The generated Javadocs are based on those of fields corresponding to the getters or setters.
How to use
Open a Java source code with the Java Editor of Eclipse and move the cursor inside the class definition (an inner class can be selected).
Select "Javadoc -> Generate Getter/Setter Javadocs from Field Javadocs..." in the main menu of Eclipse or the context menu of the editor, and a dialog opens. The shortcut key is Ctrl+Shift+D.
In the dialog select getters and setters for which you want to generate Javadocs and click "OK" button. Javadocs are generated for the selected getters and setters. If Javadocs already exist, they are replaced by new ones.
If a tag "@accessorjavadoc.excluded" exists in an existing Javadoc of a getter or setter, it remains unselected when the dialog is displayed. This feature is convenient when you want to manually edit the Javadoc.
Configuration
Select "Window→Preferences" in Eclipse's main menu and open Preferences dialog.
Select "AccessorJavadoc" on the left side and the configurations are displayed.
Field name regex specifies the regular expression witch matches class variable names.
Select a group with () and you can extract a variable name without a prefix and/or a suffix. Group #1 of the regular expression should be the whole part with the prefix and/or the suffix removed.
No problem if the regular expression does not match class variable names, but prefixes and suffixes are not removed.
ex. When you specify "(?:[ms]?_)(.+)", variable names are converted as follows: m_foo->foo, s_bar->bar, _baz->baz, qux->not converted
Getter summary template and Setter summary template specify texts used as the templates of the Javadoc summaries of a getter and a setter each.
@param NAME or @return template specifies the template of the description of the parameter of a getter or the return value of a setter.
You can embed variables in these configurations. The format is ${variable name}.
Available variables are shown below.
- label: The "label" of a variable; The first sentence of the Javadoc of a variable with the last period removed.
- label.capitalized: The label with the first character upcased.
- label.uncapitalized: The label with the first character downcased. (If there is a lower case other than the first character in the first word, it is regarded as an abbreviation and not downcased.)
- label.toUpperCase: The upcased label.
- label.toLowerCase: The downcased label.
Period characters specifies characers used as periods at the end of a sentence.
Categories: Documentation, Tools
Tags: javadoc
Additional Details
Eclipse Versions: 2022-12 (4.26), 2022-09 (4.25), 2022-06 (4.24), 2022-03 (4.23), 2021-12 (4.22), 2021-09 (4.21), 2021-06 (4.20), 2021-03 (4.19), 2020-12 (4.18), 2020-09 (4.17), 2020-06 (4.16), 2020-03 (4.15), 2019-12 (4.14), 2019-09 (4.13), 2019-06 (4.12), 2019-03 (4.11), 2018-12 (4.10), 2018-09 (4.9), Photon (4.8), Oxygen (4.7), Neon (4.6)
Platform Support: Windows, Mac, Linux/GTK
Development Status: Beta
Date Created: Sunday, April 30, 2017 - 07:12
License: BSD
Date Updated: Friday, January 27, 2023 - 08:03
Submitted by: recyclebin5385 Doe
Date | Ranking | Installs | Clickthroughs |
---|---|---|---|
January 2025 | 446/641 | 7 | 7 |
December 2024 | 426/654 | 10 | 27 |
November 2024 | 424/658 | 12 | 7 |
October 2024 | 463/663 | 9 | 5 |
September 2024 | 397/642 | 16 | 14 |
August 2024 | 396/641 | 13 | 41 |
July 2024 | 516/663 | 5 | 11 |
June 2024 | 382/681 | 20 | 17 |
May 2024 | 379/682 | 20 | 18 |
April 2024 | 362/687 | 24 | 17 |
March 2024 | 444/694 | 14 | 12 |
February 2024 | 388/687 | 20 | 12 |
Reviews Add new review
can't download
Submitted by Takayuki Okumura on Tue, 12/04/2018 - 00:58
I can't download this plugin.