Wie verweise ich auf eine Methode in Javadoc?Java

Java-Forum
Anonymous
 Wie verweise ich auf eine Methode in Javadoc?

Post by Anonymous »

Wie kann ich das @link-Tag verwenden, um eine Verknüpfung zu einer Methode herzustellen?

Ich möchte Folgendes ändern:

Code: Select all

/**
* 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()
zu:

Code: Select all

/**
* 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()
aber ich weiß nicht, wie ich das @link-Tag richtig formatieren soll.

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post