Resolve ITypeBinding to IType for anonymous inner classes [message #93023] |
Sun, 07 September 2003 17:38  |
Eclipse User |
|
|
|
Hi!
I would like to retrieve an IType for an anonymous inner class by a given ID
"DeclaringClass$<number>". Since IJavaProject.findType(String) does not
support inner types, I wrote a small AST visitor. This returns me the
TypeBinding of the <number>th anonymous inner class of a given
ICompilationUnit. My problem is now that I need an IType, not an
ITypeBinding, and apparently the class Bindings does not have an appropriate
method to resolve this, am I right?
Hope somebody has an idea.
Thank you very much in advance,
Eric
|
|
|
|
|
Re: Resolve ITypeBinding to IType for anonymous inner classes [message #93113 is a reply to message #93098] |
Mon, 08 September 2003 07:43  |
Eclipse User |
|
|
|
"Eric Bodden" <eric@bodden.de> wrote in message
news:bjhnbn$2t7$1@eclipse.org...
> Hmmm... so that means there is no way at all to retrieve an anonymous type
> in eclipse? That is almost a bug rather than a lacking feature I would
> say...
Hey, you got an ITypeBinding for an anonymous type, didn't you?
> Does anybody know when that functionality will be included?
As soon as you send me the money :-)
More seriously, this is on the plan for 3.0, and to tell you the truth, I'm
working on it. Expect to see something in an upcoming build.
Jerome
|
|
|
Powered by
FUDForum. Page generated in 0.03235 seconds