开发者

Doxygen parse javadoc?

开发者 https://www.devze.com 2023-02-04 07:38 出处:网络
I\'m curious as to if Doxygen parses Javadoc comments? - that is, does doxygen accept something alike this:

I'm curious as to if Doxygen parses Javadoc comments? - that is, does doxygen accept something alike this:

/**
   Greet with a "Hello" message.
   @param a string containing the name of the person or entity
   @ret return a 开发者_如何转开发string containing "Hello" and the name of the greeted person or entity.
*/
public String sayHello(string name)
{
   return "Hello" + name;
}

And another thing, is there a more correct way of doing these comments, doxygen style?


Doxygen accepts similar syntax to JavaDoc, but not exactly the same. Your example comment would be recognized, except for the @ret command. The correct command in doxygen is @return.

Here are the examples on doxygen's website:

http://www.doxygen.nl/manual/docblocks.html

0

精彩评论

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