Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Retrieving fully qualified names of method and field signatures.
Retrieving fully qualified names of method and field signatures. [message #259633] Mon, 20 April 2009 10:29 Go to next message
Eclipse UserFriend
Hello all :)

I'm parsing a Java Project using the Java Model. I get to method and field
declarations and I have encountered a problem. Using the following methods:

IMethod#getSignature
IMethod#getExceptionTypes
IField#getTypeSignature

I get the simple type names for source types and resolved for binary
types. Now I want to have the fully qualified names for all the types,
regardless if they are source types or binary types.

As I know, the Java Model is not as resource consuming as the AST, so I
would like to know if it's possible in any way, based on the Java Model,
to get the fully qualified names of the types in the signature. If no,
what alternatives do I have other than parsing the AST or actually what
would be the best way to retrieve the fully qualified names?

Thanks and best regards,
Domi
Re: Retrieving fully qualified names of method and field signatures. [message #259641 is a reply to message #259633] Mon, 20 April 2009 14:03 Go to previous message
Eclipse UserFriend
After searching more, here's the answer: IType#resolveType.

D
Previous Topic:Generics lost on IField when coming from .class files
Next Topic:Package Explorer Icons for Java Files
Goto Forum:
  


Current Time: Sun Apr 20 10:27:10 EDT 2025

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

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

Back to the top