[Spoon-discuss] using spoon for development project
junk at seguedevelopment.com
junk at seguedevelopment.com
Sun Dec 16 20:15:07 CET 2007
Thanks Nocolas and Renaud - I can likely accomplish my goal using the
SourcePosition class. Thanks for the help.
Pawlak, Renaud wrote:
> As Nicolas said, this would probably be possible with some sort of
> hack in the source code (non-javadoc comments are not dealt with as
> regular AST nodes by the JDT compiler). It would require some
> development efforts to make it cleanly integrated in the Spoon AST.
> Maybe a feature that we could add on the list for version 2 ?
>
> /Renaud
>
> ------------------------------------------------------------------------
> *From:* spoon-discuss-bounces at lists.gforge.inria.fr
> [mailto:spoon-discuss-bounces at lists.gforge.inria.fr] *On Behalf Of
> *junk at seguedevelopment.com
> *Sent:* Friday, December 14, 2007 8:44 PM
> *To:* spoon-discuss at lists.gforge.inria.fr
> *Subject:* [Spoon-discuss] using spoon for development project
>
> 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
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Spoon-discuss mailing list
> Spoon-discuss at lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/spoon-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.gforge.inria.fr/pipermail/spoon-discuss/attachments/20071216/55752598/attachment.htm
More information about the Spoon-discuss
mailing list