Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-core-dev] ITypeBinding - How to tell your at "java.lang.Object"?

If one walks up the type hierarchy using ITypeBindings it appears a bit
difficult to figure out you are at the top (e.g., you get null from an
getSuperclass() method call).  The problem is "null" from this call can
reasonably mean a few other things as well.

I've compared the fully qualified name to "java.lang.Object" but I'm
wondering if there is a better way?

Should there be a "boolean isJavaLangObject()" method that returns true
if the type is "java.lang.Object", and false otherwise?

Thoughts?

Take Care,
Tim Halloran
Carnegie Mellon University




Back to the top