Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Java Model to IBinding ?
Java Model to IBinding ? [message #261279] Mon, 20 July 2009 03:49 Go to next message
Eclipse UserFriend
Hi

After using the ASTParser and the bindings to analyse the compilation
units of a Java Project, i am using the Java Model to analyse class
files from JAR files.

Currently, i am using IJavaProject.findType(String) to find types and
make connections between types from class files.

As the binding information is obtained from the Java model, i am asking
if their is a way to get IBinding objects from the Java Model.
If not, is their a better way than how i am doing ?


Thanks

PS : Sorry for bad english
Re: Java Model to IBinding ? [message #261382 is a reply to message #261279] Mon, 27 July 2009 09:24 Go to previous message
Eclipse UserFriend
> As the binding information is obtained from the Java model, i am asking
> if their is a way to get IBinding objects from the Java Model.

You can use
org.eclipse.jdt.core.dom.ASTParser.createBindings(IJavaEleme nt[],
IProgressMonitor) to create bindings from Java elements (e.g. for the
ITypes from IClassFile#getType()).

Markus
Previous Topic:Add a URL as Classpath to "Java Project" Class Loading
Next Topic:ITypeParameter bounds names are not signatures
Goto Forum:
  


Current Time: Thu Jul 17 03:11:11 EDT 2025

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

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

Back to the top