开发者

Javadoc text for variables within main method

I was wondering if it is possible to generate Javadoc text for important variables within the main method of a class.

public static void main(String[] args) {

    /**
     * Writes statistical information to results file
     */开发者_C百科
    BufferedWriter report_stream = null; 
    ....

This is an example of a variable whose description I would like displayed in Javadoc. Thanks.


No. Javadoc is for generating documentation of the API, not the implementation.

However you could wrap the buffered writer in another class and document that, if required.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜