[英]How can I reference the value of a final static field in the class?
使用JavaDoc,如何引用類中最終靜態字段的值?
我想要???
在此示例中,替換為字段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}
?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.