【发布时间】:2010-12-04 00:32:07
【问题描述】:
使用 Javadoc 1.5,我无法创建指向枚举值的 @link。
我想做的是像这样创建一个枚举:
public enum Planet {
/**
* MERCURY is a fun place.
*/
MERCURY,
/**
* VENUS is more fun.
*/
VENUS,
/**
* But nothing beats the Earth.
*/
EARTH,
/**
* Others we know nothing about.
*/
OTHERS
}
然后使用如下链接参考地球的 Javadoc:
{@link Planet.EARTH}
我也尝试过{@link Planet#EARTH} 样式,但无济于事。
有人知道这是否可行吗?
【问题讨论】: