Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javadocs

Status
Not open for further replies.

sandeepmur

Programmer
Dec 14, 2003
295
PT
Hi,

Any suggestions on how I can create javadocs for some methods in my classes ?

Thnx,
 
dont think I explained my problem correctly..

When I instantiate a class and access its methods, I can only view the type of parameter to be sent but not the parameters themselves..

Anyway, I can make the names of the parameters to be sent and not just the type ?

thnx

 
To create javadocs via the "javadoc" command, you must write your comments for methods in a certain way, eg :

Code:
/**
*   My comments on this method
*/
public void myMethod() {

}

See the below link for more info :



--------------------------------------------------
Free Database Connection Pooling Software
 
And you use '@param PARAMNAME' to describe your parameters.

Code:
/**
* Set the current position of the combination.  In order to unlock the
* lock, the position must be set in the correct sequence corresponding
* to the lock's combination.
* @param position String the current position of the combination
*/
public void setPosition(String position)
{
	this.position = position;
};

See:
$JAVA_HOME/docs/tooldocs/javadoc/index.html
for further help

seeking a job as java-programmer in Berlin:
 
Nope, nothing appears.. I have the fwg:

/**
* Logs the data
* @param UserID String the userid of the logged in user.
* @param Site String the Site currently being browsed by
* @param Canal String the canal
* @param Acção String
* @param Dados String
*/

public void logData(String UserID, String Site, String Canal, String Accao, String Dados){
}

anything wrong or missing here ?

TIA
 
Please follow our examples ...

Yes there is something wrong - you have a CRLF (new line) between your comment and you method.

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Similar threads

  • Locked
  • Helpful tip
Replies
4
Views
59

Part and Inventory Search

Sponsor

Back
Top