Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Are IClassFile supposed to contain Javadoc comments?
Are IClassFile supposed to contain Javadoc comments? [message #153543] Sat, 10 April 2004 12:32 Go to next message
Eclipse UserFriend
Hi,

I think not, since an IClassFile is for .class files.

I'm wondering why when I parse the IClassFile for java.lang.Object.class
into a CompilationUnit I can extract the Javadoc comment of the

equals method.

The IClassFile is fetched with the IJavaProject.findType() method

Any idea? I have associated the Java source code though so maybe that's
the reason

Charles
Re: Are IClassFile supposed to contain Javadoc comments? [message #153547 is a reply to message #153543] Sat, 10 April 2004 12:37 Go to previous message
Eclipse UserFriend
Charles-Philip Bentley wrote:

> Hi,
>
> I think not, since an IClassFile is for .class files.
>
> I'm wondering why when I parse the IClassFile for java.lang.Object.class
> into a CompilationUnit I can extract the Javadoc comment of the
>
> equals method.
>
> The IClassFile is fetched with the IJavaProject.findType() method
>
> Any idea?

I have associated the Java source code though so maybe that's
> the reason
>

That's the reason. I just tested it.
I guess the public void setSource(IClassFile source) does a pretty good
job at finding the actual source IF attached.

Should be documented

Great!


> Charles
>
>
Previous Topic:Project dependency
Next Topic:org/eclipse/ui/IStartup
Goto Forum:
  


Current Time: Sun May 04 09:02:53 EDT 2025

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

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

Back to the top