@paramコメントが1行に収まらない場合、JavaDocは、改行で記述された単語をメソッドのパラメーターに関する情報として認識しますか?
2073 次
2 に答える
4
新しい行で説明を続けることができます。例えば:
/*
* . . .
* @param p
* text describing the parameter can overflow the
* line. It doesn't even have to start on the line.
* Indenting is not necessary, but it's nice for
* readability. The asterisk at the start of each
* line does not appear in the docs. The description
* ends at the start of the next "@..." tag or the
* end of the comment block.
*/
于 2013-01-03T18:57:16.923 に答える
1
@param
Oracleの「javadocの書き方」から抜粋して変更した例については、1行以上の情報を実行できます。
/**
* Registers the text to display in a tool tip. The text
* displays when the cursor lingers over the component.
*
* @param text the string to display. If the text is null,
* the tool tip is turned off for this component.
@param
複数のエンターテインメントを行うこともできます。
/**
* ...
* @param url an absolute URL giving the base location of the image
* @param name the location of the image, relative to the url argument
* @return the image at the specified URL
* @see Image
*/
public Image getImage(URL url, String name) {
于 2013-01-03T19:00:44.427 に答える