Indexer and AST question [message #11079] |
Thu, 01 May 2003 16:10  |
Eclipse User |
|
|
|
Originally posted by: lopian.netvision.net.il
Hi,
I would like to know if it is possible to parse a Java/Class file that is
external to the project and build an AST?
or how can I read the Index information from outside eclipse.
This can help is creating an index database external to eclipse.
thanks
|
|
|
|
|
|
|
|
|
Re: Indexer and AST question [message #12279 is a reply to message #12256] |
Fri, 02 May 2003 08:59  |
Eclipse User |
|
|
|
Originally posted by: Olivier_Thomann.ca.ibm.comNOSPAM
On Fri, 2 May 2003 14:52:17 +0200, "Adam Kiezun"
<adam_kiezun@ch.ibm.spam.protection.com> wrote:
>i guess, theoretically, bindings for names local to the file could be maybe made available
>(Olivier, could they?)
>but that'd be a feature request for jdt core
I would not push for that. First reason is that to resolve a binding
you always need a context that at least include java.lang.Object. All
bindings are resolved or none, but not simply a subset.
Second reason is consistency. How do you know which bindings could be
available? I prefer to have them all or none.
Third reason: This API clearly states that no binding are available.
* This method does not compute binding information; all
<code>resolveBinding</code>
* methods applied to nodes of the resulting AST return
<code>null</code>.
If you want bindings, then use another API :-).
--
Olivier
|
|
|
Powered by
FUDForum. Page generated in 0.04530 seconds