NetBeans 生成的 javadoc 中缺少字段描述

发布于 2024-12-13 14:54:09 字数 312 浏览 4 评论 0原文

我正在使用 NetBeans 7.0.1,并且正在尝试为我的项目之一生成 javadoc。

我通过右键单击项目 -> 尝试了这两种方法生成 Javadoc 并通过 Run ->生成 Javadoc。我设法创建了以下 javadoc 部分:

  • 构造函数摘要
  • 方法摘要
  • 构造函数详细信息
  • 方法详细信息

,但不是:

  • 字段摘要
  • 归档详细信息

如何通过注释、注释或仅通过配置来指示 IDE 来添加这些内容?

I'm using NetBeans 7.0.1 and I'm trying to generate the javadocs for one of my projects.

I tried both by right clicking the project -> Generate Javadoc and by Run -> Generate Javadoc. I managed to create the following javadocs sections:

  • Constructor Summary
  • Method Summary
  • Constructor Detail
  • Method Detail

but not the:

  • Field Summary
  • Filed Detail

How can I instruct the IDE with annotations, comments, or just through configuration to add that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

海螺姑娘 2024-12-20 14:54:09

“字段摘要”是由 javadoc 使用字段的第一个句子创建的。

应为公共字段自动生成字段文档。要为私有字段和受保护字段生成文档,有一个复选框选项可将它们包含在项目的构建/文档属性中。

The "field summary" is created by javadoc using the first sentences of fields.

Field documentation should be generated automatically for public fields. To generate documentation for private and protected fields there's a checkbox option to include them in the project's Build/Documenting properties.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文