Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找一种编写脚本的方法,该脚本只能为我的程序接口生成 javadoc(不适用于公共类)。我已经尝试过 Eclipse 内置工具甚至 JAutodoc 工具,但还没有成功。
请问有人有什么想法吗?
谢谢。
就个人而言,我会使用自定义 ant 脚本(如果您熟悉的话)。使用 javadoc 任务,您可以将嵌套的“文件集”元素与动态生成的接口列表一起使用。或者只是有脚本将所有接口复制到临时目录,运行 javadoc 并最后删除 temp dir。Last 甚至可以使用 bash 脚本来实现。
但是如果你想让用户看不到你的实现类,限制它们的可见性更有意义。然后您可以仅为公共条目生成文档。只是一个想法。