[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] How to get the fully qualified name of the type of a Variable
|
Hi,
I have a piece of code which is similar to this
class A {
public String one;
}
when i try to use JDOM and get the contents of this java file what i get
the type of the variable one is "String", but what I expect is that it
should give me the fully qualified name of String (i.e.,)
"java.lang.String", coz i do some validation based on the fully qualified
name. Plz provide me the details how can i get the corresponding qualified
name.
This is the same case with the SuperClasses, for eg.,
package org;
public class A {
public String one;
}
package org;
public class B
extends A {
public String two;
}
when i try to get the SuperClass Name it gives me A and not org.A