[Spoon-discuss] using spoon for development project

junk at seguedevelopment.com junk at seguedevelopment.com
Sat Dec 15 02:44:11 CET 2007


Hi -

I have recently discovered Spoon and I think it is great. I have been 
playing around with the API in preparation for a project.
While I see that it does indeed provide support for "accessing" the 
javadoc comments within a codebase (via the getDocComment() method) , I 
do not see any support for access generalized comments such as ones:

    //random comment
    //TODO: must fix this call below
    /* some more thoughts on this or that */
    etc...

Am I missing something obvious in the API? I don't see any "visitor" 
callback method defined nor does the "spoon.reflect.code" package 
contain a class such as CtComment.java
Is there another way to access the entire source-code via the ASP tree 
which would include the "comment" nodes? My project requires this level 
of control/analysis.

Would it be easy for me to add this support (as of course provide the 
solution back into the general release of Spoon)?

Any advice is greatly appreciated.
Thanks in advance. I look forward to hearing a response and working more 
with Spoon.

Cheers,
/jeff mchugh
SegueDevelopment.com




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.gforge.inria.fr/pipermail/spoon-discuss/attachments/20071214/26ec7a21/attachment.htm 


More information about the Spoon-discuss mailing list