Class.h

Go to the documentation of this file.
00001 #ifndef JAVA_LANG_OBJECT_H
00002 #include <java_lang/Object.h>
00003 #endif /* JAVA_LANG_OBJECT_H */
00004 // All header files that are included in JObject.h should move its includes to top
00005 
00006 #ifndef JAVA_LANG_CLASS_H
00007 #define JAVA_LANG_CLASS_H 1
00008 
00009 namespace java {
00010   namespace lang {
00011 
00041     class JAVA_LANG_SPEC Class : public Object {
00042 
00043     public:
00044 
00056       virtual String toString() const;
00057 
00089       static const Class& forName(const String& className);
00090 
00119       ObjectRef newInstance() const;
00120 
00139       jboolean isAncestorOf(const Class& src) const;
00140 
00165       jboolean isAssignableFrom(const Class& src) const;
00166 
00197       jboolean isInstance(const Object& src) const;
00198 
00206       jboolean isInterface() const;
00207      
00215       jboolean isArray() const;
00216 
00236       jboolean isPrimitive() const;
00237 
00279       const String& getName() const;
00280 
00293       const Class& getSuperclass() const;
00294 
00335       const Array<jobject>& getInterfaces() const;
00336 
00337     private:
00338 
00339       friend class Global;
00340       friend class ClassImpl;
00341       ObjectRef impl;
00342       REGISTER_MEMBERS;
00343 
00344     };
00345 
00346   } // namespace lang
00347 } // namespace java
00348 
00349 #endif /* JAVA_LANG_CLASS_H */

Generated on Fri May 16 11:54:42 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3