Updating javadoc comments with custom java 5 annotations

Hi,

I have a requirement wherein i want to read javadoc docs from source code and replace it with my own custom java 5 annotation.

For example say i have a file A.java with following javadoc in it:

/*

* @param some parameter

*/

I have to access the compile code as part of build and update the code to use my custom annotation:

Updated A.java would have:

/*

* @mycutsomannotation.param some parameter

*/

Please let me know if anybody has tried out anything on similar lines or any utility or api that could achieve this

Regards

rak

[620 byte] By [Rak123a] at [2007-11-27 10:31:11]
# 1

> Hi,

>

> I have a requirement wherein i want to read javadoc

> docs from source code and replace it with my own

> custom java 5 annotation.

> For example say i have a file A.java with following

> javadoc in it:

> /*

> * @param some parameter

> */

> I have to access the compile code as part of build

> and update the code to use my custom annotation:

>

> Updated A.java would have:

>

> /*

> * @mycutsomannotation.param some parameter

> */

>

> Please let me know if anybody has tried out anything

> on similar lines or any utility or api that could

> achieve this

Unlike javadoc tags, annotations on parameters are associated with the parameter and not the method or constructor. For example,

/**

* @param bar

*/

void Foo(@AnnotationOnBar Bar bar)

j.d.darcya at 2007-7-28 18:07:38 > top of Java-index,Core,Core APIs...