2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __java_lang_ClassLoader__
5 #define __java_lang_ClassLoader__
9 #include <java/lang/Object.h>
10 #include <gcj/array.h>
26 class ProtectionDomain
;
31 jclass
_Jv_FindClass (_Jv_Utf8Const
*name
, java::lang::ClassLoader
*loader
);
32 void _Jv_RunMain (jclass klass
, const char *name
, int argc
, const char **argv
, bool is_jar
);
34 class java::lang::ClassLoader
: public ::java::lang::Object
37 public: // actually package-private
38 virtual JArray
< ::java::lang::Object
* > * getDeclaredAnnotations(::java::lang::Class
*, jint
, jint
, jint
);
39 virtual JArray
< ::java::lang::Object
* > * putDeclaredAnnotations(::java::lang::Class
*, jint
, jint
, jint
, JArray
< ::java::lang::Object
* > *);
40 public: // actually protected
42 ClassLoader(::java::lang::ClassLoader
*);
44 virtual ::java::lang::Class
* loadClass(::java::lang::String
*);
46 ::java::lang::Class
* loadClassFromSig(::java::lang::String
*);
47 public: // actually protected
48 virtual ::java::lang::Class
* loadClass(::java::lang::String
*, jboolean
);
49 virtual ::java::lang::Class
* findClass(::java::lang::String
*);
50 virtual ::java::lang::Class
* defineClass(JArray
< jbyte
> *, jint
, jint
);
51 virtual ::java::lang::Class
* defineClass(::java::lang::String
*, JArray
< jbyte
> *, jint
, jint
);
52 virtual ::java::lang::Class
* defineClass(::java::lang::String
*, JArray
< jbyte
> *, jint
, jint
, ::java::security::ProtectionDomain
*);
53 virtual ::java::lang::Class
* defineClass(::java::lang::String
*, ::java::nio::ByteBuffer
*, ::java::security::ProtectionDomain
*);
54 virtual void resolveClass(::java::lang::Class
*);
55 virtual ::java::lang::Class
* findSystemClass(::java::lang::String
*);
57 virtual ::java::lang::ClassLoader
* getParent();
58 public: // actually protected
59 virtual void setSigners(::java::lang::Class
*, JArray
< ::java::lang::Object
* > *);
60 virtual ::java::lang::Class
* findLoadedClass(::java::lang::String
*);
62 virtual ::java::net::URL
* getResource(::java::lang::String
*);
63 virtual ::java::util::Enumeration
* getResources(::java::lang::String
*);
64 public: // actually protected
65 virtual ::java::util::Enumeration
* findResources(::java::lang::String
*);
66 virtual ::java::net::URL
* findResource(::java::lang::String
*);
68 static ::java::net::URL
* getSystemResource(::java::lang::String
*);
69 static ::java::util::Enumeration
* getSystemResources(::java::lang::String
*);
70 virtual ::java::io::InputStream
* getResourceAsStream(::java::lang::String
*);
71 static ::java::io::InputStream
* getSystemResourceAsStream(::java::lang::String
*);
72 static ::java::lang::ClassLoader
* getSystemClassLoader();
73 public: // actually protected
74 virtual ::java::lang::Package
* definePackage(::java::lang::String
*, ::java::lang::String
*, ::java::lang::String
*, ::java::lang::String
*, ::java::lang::String
*, ::java::lang::String
*, ::java::lang::String
*, ::java::net::URL
*);
75 virtual ::java::lang::Package
* getPackage(::java::lang::String
*);
76 virtual JArray
< ::java::lang::Package
* > * getPackages();
77 virtual ::java::lang::String
* findLibrary(::java::lang::String
*);
79 virtual void setDefaultAssertionStatus(jboolean
);
80 virtual void setPackageAssertionStatus(::java::lang::String
*, jboolean
);
81 virtual void setClassAssertionStatus(::java::lang::String
*, jboolean
);
82 virtual void clearAssertionStatus();
83 public: // actually package-private
84 virtual jboolean
isAncestorOf(::java::lang::ClassLoader
*);
85 ::java::util::HashMap
* __attribute__((aligned(__alignof__( ::java::lang::Object
)))) loadedClasses
;
86 ::java::util::HashMap
* definedPackages
;
88 ::java::lang::ClassLoader
* parent
;
90 public: // actually package-private
91 static ::java::lang::ClassLoader
* systemClassLoader
;
93 ::java::util::concurrent::ConcurrentHashMap
* declaredAnnotations
;
94 public: // actually package-private
95 static ::java::security::ProtectionDomain
* defaultProtectionDomain
;
96 jboolean defaultAssertionStatus
;
97 static ::java::util::Map
* systemPackageAssertionStatus
;
98 ::java::util::Map
* packageAssertionStatus
;
99 static ::java::util::Map
* systemClassAssertionStatus
;
100 ::java::util::Map
* classAssertionStatus
;
102 static ::java::lang::Class
class$
;
104 friend jclass (::_Jv_FindClass
) (_Jv_Utf8Const
*name
, java::lang::ClassLoader
*loader
);
105 friend void ::_Jv_RunMain (jclass klass
, const char *name
, int argc
, const char **argv
, bool is_jar
);
108 #endif // __java_lang_ClassLoader__