Board index » jbuilder » how to read Javadoc comments

how to read Javadoc comments


2003-08-22 03:22:46 AM
jbuilder15
Hi,
I am looking for a way to read the javadoc comments of a source file using
JOT.
Does anybody have a short example how to retrieve the comments out of the
file shown below?
Thanks in advance!
Mle
package mypackage;
/**
* A demo class.
*/
public class Demo {
private String m_name;
/**
* Gets the name.
* @return the name
*/
public String getName() {
return this.m_name;
}
}
 
 

Re:how to read Javadoc comments

yeah Sinnao is right. I have been able to get the comments from the file
that way.
Thanks and regards
Vikram
Sinnao wrote:
Quote
JotClassSource cSource;
......
JotComment comment = cSource.getComment((JotMarker) field, true);

something like that

"Mle" < XXXX@XXXXX.COM >wrote in message
news: XXXX@XXXXX.COM ...

>Hi,
>
>I am looking for a way to read the javadoc comments of a source file using
>JOT.
>
>Does anybody have a short example how to retrieve the comments out of the
>file shown below?
>
>Thanks in advance!
>
>Mle
>
>--
>
>package mypackage;
>
>/**
>* A demo class.
>*/
>public class Demo {
>
>private String m_name;
>
>/**
>* Gets the name.
>* @return the name
>*/
>public String getName() {
>return this.m_name;
>}
>}
>
>