[Spoon-discuss] using spoon for development project

Pawlak, Renaud PAWLAR at rpi.edu
Sat Dec 15 21:40:48 CET 2007


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
	
	
	
	
	

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


More information about the Spoon-discuss mailing list