我有一個類,其中包含一個帶有獲取器和 setter 的構(gòu)造函數(shù),并且需要為它們創(chuàng)建一個 javadoc。當(dāng)我制作javadoc時,獲取者和設(shè)置者都有他們的評論,但由于某種原因,構(gòu)造函數(shù)沒有出現(xiàn)在javadoc中。注意:我正在CMD中創(chuàng)建爪哇文檔。我嘗試過更改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; }}我需要有塊注釋,以便構(gòu)造函數(shù)個人詳細(xì)信息顯示在javadoc中。
添加回答
舉報
0/150
提交
取消