Bug 37532 - How can i get a qualified name of a super class/ qualified name of a Field type
Summary: How can i get a qualified name of a super class/ qualified name of a Field type
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.0 M2   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-13 01:44 EDT by easwaran CLA
Modified: 2003-06-19 18:09 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description easwaran CLA 2003-05-13 01:44:01 EDT
Hi,




I am working on the jdom, when i try to get the superclass information of an 
IDOMType it returns me the class name as given in the code, where as what i need 
is the fully qualified name of the class.




for eg.,




package com.xyz;




class A {


      public int one;


}




package com.xyz;




class B extends A {


      public String two;


}




with regard to the same above given example, i also face a problem when try to 
work with the IDOMField.getType() method it returns me String where as not 
java.lang.String,




what can i do if i need to get these things as said by me.




Waiting for an urgent reply




with regards




easwaran.V
Comment 1 Philipe Mulet CLA 2003-05-13 08:28:32 EDT
The simplest for you would be to switch from JDOM to the new DOM AST 
(org.eclipse.jdt.core.dom.AST), which carries annotations about bound types 
(type bindings).

Alternatively, you could request explicit name resolution in the context of 
your unit, see IType.resolveType(String typeName)
Comment 2 Philipe Mulet CLA 2003-06-19 18:09:37 EDT
Closing