S
sude
Hi!,
I need a way to associate a javadoc comment with the corresponding
Java Element. And access that programmatically in Java.
e.g. For the code below
/**
* This is my Class
*/
public class X {
…
}
I need something like
<sometype> myJavaElement = <something which gives class X>
myJavaElement.getComment();
One way which I was thinking of was using the AntLR and modifying the
lexer code generated by the AntLR. But was wondering that this problem
might (should ïŠ) have been faced by other people and if there exists
an open source tool which can be used for this purpose.
I looked at qdox but that I guess will not be able to handle package
level comments which is a basic requirement for me.
Any help is highly appreciated and highly awaited.
Thanks a lot,
Sudhanshu
I need a way to associate a javadoc comment with the corresponding
Java Element. And access that programmatically in Java.
e.g. For the code below
/**
* This is my Class
*/
public class X {
…
}
I need something like
<sometype> myJavaElement = <something which gives class X>
myJavaElement.getComment();
One way which I was thinking of was using the AntLR and modifying the
lexer code generated by the AntLR. But was wondering that this problem
might (should ïŠ) have been faced by other people and if there exists
an open source tool which can be used for this purpose.
I looked at qdox but that I guess will not be able to handle package
level comments which is a basic requirement for me.
Any help is highly appreciated and highly awaited.
Thanks a lot,
Sudhanshu