Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » CompilatioUnit.getCommentList(); - Where are the comments???
CompilatioUnit.getCommentList(); - Where are the comments??? [message #118120] Tue, 13 November 2007 13:36
Eclipse UserFriend
Originally posted by:

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?

Previous Topic:IWAT4039E The Test Execution Harness reported the following problems:Failed to retrieve the context
Next Topic:TPTP problems on Linux
Goto Forum:

Current Time: Sat Aug 17 12:34:12 GMT 2019

Powered by FUDForum. Page generated in 0.01869 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top