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

问题描述

使用JavaDoc,如何引用类中最终静态字段的值?

Using JavaDoc, how can I reference the value of a final static field in the class?

我想要 ??? 替换为字段 STATIC_FIELD 的值。

I want the ??? in this example replaced by the value of the field STATIC_FIELD.

/**
 * 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";

}


推荐答案

你们是 {@ value #STATIC_FIELD}

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

09-05 05:02
查看更多