如何引用类javadoc中的最终静态字段的值? [英] How can I reference the value of a final static field in the class javadoc?

查看:178
本文介绍了如何引用类javadoc中的最终静态字段的值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

/**
 * This is a simple class with only one static field with the value ???.
 */
public class Simple {

    /**
     * We can reference the value with {@value} here, 
     * but how do we reference it in the class JavaDoc?
     */
    public static final String STATIC_FIELD = "simple static field";

}

代码说这一切:-)感谢任何帮助提前!

The code says it all :-) Thanks for any help in advance!

编辑:我真正想要的是???上面的字段由字段 STATIC_FIELD 的值替换。一个链接不会是完美的,但比没有更好: - )

What I actually want is that the "???" above are replaced by the value of the field STATIC_FIELD. A link would not be perfect, but better than nothing :-)

推荐答案

你的意思是 {@值#STATIC_FIELD}

这篇关于如何引用类javadoc中的最终静态字段的值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆