Using ASTParser [message #198299] |
Thu, 10 March 2005 14:52  |
Eclipse User |
|
|
|
Originally posted by: ori_calvo.hotmail.com
Hello All,
Short
-------
How to convert a source line number to an ATSNode instance?
Long
------
I am using the ASTParser class to parse some java source files. I am trying
to associate a source code comment (not a javadoc comment) to the code
element which apears in the same line. Using the method
CompilationUnit.getCommentList I can get the list of comments in the source
code. Using each comment I can retrieve the char index (and therefore the
line number) of the comment. Now, suppose this line contains not only a
comment but also some kind of source code how can I get the appropriate
ASTNode for this source code?
Thanks, Ori
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03976 seconds