我有一個類,其中包含一個帶有獲取器和 setter 的構造函數,并且需要為它們創建一個 javadoc。當我制作javadoc時,獲取者和設置者都有他們的評論,但由于某種原因,構造函數沒有出現在javadoc中。注意:我正在CMD中創建爪哇文檔。我嘗試過更改HTML版本,但仍然一無所獲這是類的樣子:/** * PersonalDetails class * * <p>Details the general information of a person involved in Saint Louis University */public class PersonalDetails { private String name;/** * Creates a person with the specified characteristics * @param name a String containing the name of the person * @param sy a String specifying the current school year * @param idNo a String containing the id number of the person */PersonalDetails(String name, String sy, String idNo){ this.name = name; this.sy = sy; this.idNo = idNo;}/** * Registers the name of the person * @param name a String containing the name of the person */public void setName(String name) { this.name = name;}/** * Retrieves the name of the person * @return a String representing the name of the person */public String getName() { return name; }}我需要有塊注釋,以便構造函數個人詳細信息顯示在javadoc中。
添加回答
舉報
0/150
提交
取消
