Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » decoding generics in signature(help needed)
decoding generics in signature [message #526033] Thu, 08 April 2010 10:52 Go to next message
Eclipse UserFriend
Hi all

I am trying to get the fully qualified name of generic types, for instance

"QArrayList<QObservator;>;" should be read as "java.util.ArrayList<fr.emn.example.Observator>"

There are several methods about that in Signature of core JDT but
it seems rather complex to use.
What help me could be an example or better a program doing this!

best regards
Re: decoding generics in signature [message #526095 is a reply to message #526033] Thu, 08 April 2010 12:42 Go to previous messageGo to next message
Eclipse UserFriend
You cannot do that using the java model.
The java model doesn't contain resolved signatures. If you describe what you are trying to do, I might be able to tell you how to do it.

Olivier
Re: decoding generics in signature [message #526237 is a reply to message #526095] Fri, 09 April 2010 06:23 Go to previous messageGo to next message
Eclipse UserFriend
Hi Olivier

I want to analyse Java source code and to extract type information,
for signature, fields, array, generics and so on.
I was presuming that JDT could help me here, and in fact I known to extract
some information.
But I have problems with the various encoding, resolved types, etc.
If there is a better and simpler way to do that of course I am interested.

regards
Re: decoding generics in signature [message #529858 is a reply to message #526033] Tue, 27 April 2010 09:40 Go to previous messageGo to next message
Eclipse UserFriend
see also snippet of ScoutSignature (Eclipse Scout Project)

http://www.eclipse.org/forums/index.php?t=msg&th=167027& amp;start=0&

Cheers
Andreas
Re: decoding generics in signature [message #530530 is a reply to message #526237] Thu, 29 April 2010 19:54 Go to previous message
Eclipse UserFriend
You can use the DOM/AST API with bindings if you care about resolved information.

Olivier
Previous Topic:how to view project cycles?
Next Topic:Produce ant build.xml or maven pom.xml automatically in Eclipse
Goto Forum:
  


Current Time: Mon Mar 24 15:47:39 EDT 2025

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

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

Back to the top