Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Using the ASTParser to parse .class files.
Using the ASTParser to parse .class files. [message #207917] Sat, 25 June 2005 21:10 Go to next message
Eclipse UserFriend
Originally posted by: clarkep.fiu.edu

Hi,

If you want to parse a .class file using the ASTParser do you first have
to implement the IClassFile? Parsing the source .java text file is not
a problem only the .class file. Also can the parsing of .class files be
done outside of the Eclipse environment?

Thanks,

Peter.
Re: Using the ASTParser to parse .class files. [message #207958 is a reply to message #207917] Sun, 26 June 2005 10:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: olivier_thomann.NOca.ibm.comSPAM

Peter Clarke a écrit :
> If you want to parse a .class file using the ASTParser do you first have
> to implement the IClassFile? Parsing the source .java text file is not
> a problem only the .class file. Also can the parsing of .class files be
> done outside of the Eclipse environment?
Using an ASTParser should be used only to parse source code. The
setSource(IClassFile) works only if the IClassFile has an attached source.
If you want to get information about a .class file, you might want to
look at the org.eclipse.jdt.core.util.IClassFileReader API.
--
Olivier
Re: Using the ASTParser to parse .class files. [message #207966 is a reply to message #207958] Sun, 26 June 2005 16:43 Go to previous message
Eclipse UserFriend
Originally posted by: clarkepeter.bellsouth.net

Olivier,

Thank you very much.

Peter.

Olivier Thomann wrote:

> Peter Clarke a écrit :
> > If you want to parse a .class file using the ASTParser do you first have
> > to implement the IClassFile? Parsing the source .java text file is not
> > a problem only the .class file. Also can the parsing of .class files be
> > done outside of the Eclipse environment?
> Using an ASTParser should be used only to parse source code. The
> setSource(IClassFile) works only if the IClassFile has an attached source.
> If you want to get information about a .class file, you might want to
> look at the org.eclipse.jdt.core.util.IClassFileReader API.
> --
> Olivier
Previous Topic:Cheetah and RC3
Next Topic:Repost: Original source element of working copy in ElementChangedListener
Goto Forum:
  


Current Time: Thu May 08 21:26:03 EDT 2025

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

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

Back to the top