简体   繁体   English

从Java访问Javadoc的库

[英]Library to access Javadoc from Java

I want to find a library that I can use from my Java application that will allow me to access specific Javadoc in the scope of my project (I specify where Javadocs are located). 我想找到一个可以从Java应用程序中使用的库,该库将允许我访问项目范围内的特定Javadoc(我指定Javadocs的位置)。 Just like in Netbeans, I want to potentially access the Javadoc from html files locally and remotely, and from source. 就像在Netbeans中一样,我希望潜在地从本地和远程从源的html文件访问Javadoc。

I expect that I could use code from Netbeans to achieve this, but I don't know how, and I can't easily digest their documentation. 我希望我可以使用Netbeans的代码来实现此目的,但是我不知道如何,而且我不能轻易地消化它们的文档。

Today I started thinking about the same thing. 今天,我开始考虑同一件事。 From CI point of view, I could use @author annotation to send e-mail to someone, who wrote a test that is failing with error, not with a failure. 从CI的角度来看,我可以使用@author批注将电子邮件发送给某人,该人编写的测试因错误而不是失败而失败。

Google didn't help me (or I didn't google deep enough), so I started wondering how to do it on my own. Google并没有帮助我(或者我对Google的了解不够深),所以我开始想知道如何自己做。

First thing that came to my mind is writing a little tool that will check all *.java files specified in a directory, bound file name to annotations and allow user to perform some actions on them. 我想到的第一件事是编写一个小工具,该工具将检查目录中指定的所有* .java文件,将文件名绑定到注释,并允许用户对其执行某些操作。

Is that reasonable? 那合理吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM