gpt4 book ai didi

java - 如何从 javadoc Ant 任务的结果中排除特定的方法/构造函数?

转载 作者:太空狗 更新时间:2023-10-29 22:43:08 25 4
gpt4 key购买 nike

我正在使用 javadoc Ant 任务生成的 javadoc 来记录 Web 服务,我想从输出中排除一些构造函数。我该怎么做?

最佳答案

公共(public)方法无法做到这一点。标准做法(甚至在相当多的 JDK 类中)是指示该方法或构造函数不供公共(public)使用。

有一个plan to add an @exclude tag in the future :

@exclude - for API to be excluded from generation by Javadoc. Programmer would mark a class, interface, constructor, method or field with @exclude. Presence of tag would cause API to be excluded from the generated documentation. Text following tag could explain reason for exclusion, but would be ignored by Javadoc. (Formerly proposed as @hide, but the term "hide" is more appropriate for run-time dynamic show/hide capability.) For more discussion, see: Feature Request #4058216 in Developer Connection.

关于java - 如何从 javadoc Ant 任务的结果中排除特定的方法/构造函数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1120455/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com