5

I'm trying to write a javadoc which displays the javadoc from another method, like:

private List<Object> list;

/**
 * {@link list#indexOf(Object)} 
 */
int getMyIndex(Object o) {
   return list.indexOf(o);
}

This would give me a javadoc link when I use my getMyIndex() method. But what I want is that eclipse just actually shows(!) the javadoc from the method that I referenced in @link.

Of course that's not what link is for. Link does what is should do in this case.

But what do I have to use to somehow "import" a foreign javadoc there?

4

1 に答える 1

9

私の知る限り、そのようなタグや機能はありません。詳細については、javadoc タグ リストを参照してください

リンクから

    タグ | JDK/SDKで導入
-----------------------------------
    @著者 1.0
    {@コード} 1.5
    {@docRoot} 1.3
    @deprecated 1.0
    @例外 1.0
    {@inheritDoc} 1.4
    {@リンク} 1.2
    {@linkplain} 1.4
    {@リテラル} 1.5
    @パラメータ 1.0
    @リターン 1.0
    @see 1.0
    @シリアル 1.2
    @シリアルデータ 1.2
    @シリアルフィールド 1.2
    @since 1.1
    @スロー 1.2
    {@値} 1.4
    @バージョン 1.0
于 2013-02-18T09:01:55.903 に答える