如何使用@link
标签链接到方法?
我想要改变:
/**
* Returns the Baz object owned by the Bar object owned by Foo owned by this.
* A convenience method, equivalent to getFoo().getBar().getBaz()
* @return baz
*/
public Baz fooBarBaz()
至:
/**
* Returns the Baz object owned by the Bar object owned by Foo owned by this.
* A convenience method, equivalent to {@link getFoo()}.{@link getBar()}.{@link getBaz()}
* @return baz
*/
public Baz fooBarBaz()
但我不知道如何@link
正确设置标签格式。
22
我知道这是几年前的事,但是...查看官方Java类可以帮助您找到所需的任何形式的Javadoc格式。例如,查看HashMap Javadoc。
—
Christophe Roussy 2014年