Sim*_*mon 84 java documentation javadoc
使用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";
}
Run Code Online (Sandbox Code Playgroud)
use*_*421 168
你的意思是{@value #STATIC_FIELD}
?