[英]Is there a way to refer bean's property (both getter and setter) in Javadoc?
Suppose I have a class with bean's property sum
, which is implemented with setter void setSum(double value)
and getter double getSum()
. 假设我有一个带有bean属性sum
的类,该类使用setter void setSum(double value)
和getter double getSum()
。
Is it possible to refer this by single link in javadoc? 是否可以通过javadoc中的单个链接引用它? Suppose I wish to describe some properties in class' preamble. 假设我想在课堂序言中描述一些属性。 For example, something like this: 例如,如下所示:
/**
* A Value class is a bunch of aggregation values
*
* {@beanlink #sum} - sum of all values (hypothetic way)
*
* {@link #getSum()} - sum of all values (conventional way)
*
*/
There isn't any @beanlink
kind of tag in javadoc comments. javadoc注释中没有任何@beanlink
类型的标记。 See a full list of allowed tag javadoc of javadoc ;) 查看javadoc的允许标签javadoc的完整列表;)
There is a -tag
option that can be used to create custom tags. 有一个-tag
选项可用于创建自定义标签。 But that won't perfectly fit for your solution, ie creating links. 但这并不完全适合您的解决方案,即创建链接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.