|CompilatioUnit.getCommentList(); - Where are the comments??? [message #118120]
||Tue, 13 November 2007 13:36
Originally posted by: saorf.de.ibm.com|
I'm trying to get all comments (LineComments, BlockComments and
DocComments) appearing in a class.
It seems to be the only way to use 'CompilationUnit.getCommentList()'.
With this I get all comments but the LineComments and BlockComments are
without any content (all LineComments look like this '//'and all
BlockComments like this '/* */').
Checking the length using 'LineComment.getLength' returns numbers that let
suppose, there must be something. But 'LineComment.toString().length'
results in numbers that are much too small.
So has anyone an idea how I can get the contents of the comments?
Powered by FUDForum
. Page generated in 0.01799 seconds