<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks Nocolas and Renaud - I can likely accomplish my goal using the
SourcePosition class. Thanks for the help.<br>
<br>
Pawlak, Renaud wrote:
<blockquote
 cite="mid:6A8A4A6958A879469B4BB76B832D5183012240B6@troy-be-ex2.win.rpi.edu"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta content="MSHTML 6.00.6000.16544" name="GENERATOR">
  <div dir="ltr" align="left"><span class="921003620-15122007"><font
 color="#0000ff" face="Arial" size="2">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 ?</font></span></div>
  <div dir="ltr" align="left"><span class="921003620-15122007"></span>&nbsp;</div>
  <div dir="ltr" align="left"><span class="921003620-15122007"><font
 color="#0000ff" face="Arial" size="2">/Renaud</font></span></div>
  <br>
  <blockquote
 style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;">
    <div class="OutlookMessageHeader" dir="ltr" align="left"
 lang="en-us">
    <hr tabindex="-1"> <font face="Tahoma" size="2"><b>From:</b>
<a class="moz-txt-link-abbreviated" href="mailto:spoon-discuss-bounces@lists.gforge.inria.fr">spoon-discuss-bounces@lists.gforge.inria.fr</a>
[<a class="moz-txt-link-freetext" href="mailto:spoon-discuss-bounces@lists.gforge.inria.fr">mailto:spoon-discuss-bounces@lists.gforge.inria.fr</a>] <b>On Behalf Of </b><a class="moz-txt-link-abbreviated" href="mailto:junk@seguedevelopment.com">junk@seguedevelopment.com</a><br>
    <b>Sent:</b> Friday, December 14, 2007 8:44 PM<br>
    <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:spoon-discuss@lists.gforge.inria.fr">spoon-discuss@lists.gforge.inria.fr</a><br>
    <b>Subject:</b> [Spoon-discuss] using spoon for development project<br>
    </font><br>
    </div>
Hi -<br>
    <br>
I have recently discovered Spoon and I think it is great. I have been
playing around with the API in preparation for a project.<br>
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:<br>
    <blockquote>//random comment <br>
//TODO: must fix this call below<br>
/* some more thoughts on this or that */<br>
etc...<br>
    </blockquote>
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<br>
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.<br>
    <br>
Would it be easy for me to add this support (as of course provide the
solution back into the general release of Spoon)?<br>
    <br>
Any advice is greatly appreciated.<br>
Thanks in advance. I look forward to hearing a response and working
more with Spoon.<br>
    <br>
Cheers,<br>
/jeff mchugh<br>
SegueDevelopment.com<br>
    <br>
    <br>
    <br>
    <br>
  </blockquote>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Spoon-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Spoon-discuss@lists.gforge.inria.fr">Spoon-discuss@lists.gforge.inria.fr</a>
<a class="moz-txt-link-freetext" href="http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/spoon-discuss">http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/spoon-discuss</a>
  </pre>
</blockquote>
<br>
</body>
</html>