1 |
758 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __java_lang_ClassLoader__
|
5 |
|
|
#define __java_lang_ClassLoader__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/lang/Object.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace java
|
15 |
|
|
{
|
16 |
|
|
namespace net
|
17 |
|
|
{
|
18 |
|
|
class URL;
|
19 |
|
|
}
|
20 |
|
|
namespace nio
|
21 |
|
|
{
|
22 |
|
|
class ByteBuffer;
|
23 |
|
|
}
|
24 |
|
|
namespace security
|
25 |
|
|
{
|
26 |
|
|
class ProtectionDomain;
|
27 |
|
|
}
|
28 |
|
|
}
|
29 |
|
|
}
|
30 |
|
|
|
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);
|
33 |
|
|
|
34 |
|
|
class java::lang::ClassLoader : public ::java::lang::Object
|
35 |
|
|
{
|
36 |
|
|
|
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
|
41 |
|
|
ClassLoader();
|
42 |
|
|
ClassLoader(::java::lang::ClassLoader *);
|
43 |
|
|
public:
|
44 |
|
|
virtual ::java::lang::Class * loadClass(::java::lang::String *);
|
45 |
|
|
private:
|
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 *);
|
56 |
|
|
public:
|
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 *);
|
61 |
|
|
public:
|
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 *);
|
67 |
|
|
public:
|
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 *);
|
78 |
|
|
public:
|
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 |
|
|
private:
|
86 |
|
|
void checkInitialized();
|
87 |
|
|
public: // actually package-private
|
88 |
|
|
::java::util::HashMap * __attribute__((aligned(__alignof__( ::java::lang::Object)))) loadedClasses;
|
89 |
|
|
::java::util::HashMap * loadingConstraints;
|
90 |
|
|
::java::util::HashMap * definedPackages;
|
91 |
|
|
private:
|
92 |
|
|
::java::lang::ClassLoader * parent;
|
93 |
|
|
jboolean initialized;
|
94 |
|
|
public: // actually package-private
|
95 |
|
|
static ::java::lang::ClassLoader * systemClassLoader;
|
96 |
|
|
private:
|
97 |
|
|
::java::util::concurrent::ConcurrentHashMap * declaredAnnotations;
|
98 |
|
|
public: // actually package-private
|
99 |
|
|
static ::java::security::ProtectionDomain * defaultProtectionDomain;
|
100 |
|
|
jboolean defaultAssertionStatus;
|
101 |
|
|
static ::java::util::Map * systemPackageAssertionStatus;
|
102 |
|
|
::java::util::Map * packageAssertionStatus;
|
103 |
|
|
static ::java::util::Map * systemClassAssertionStatus;
|
104 |
|
|
::java::util::Map * classAssertionStatus;
|
105 |
|
|
public:
|
106 |
|
|
static ::java::lang::Class class$;
|
107 |
|
|
|
108 |
|
|
friend jclass (::_Jv_FindClass) (_Jv_Utf8Const *name, java::lang::ClassLoader *loader);
|
109 |
|
|
friend void ::_Jv_RunMain (jclass klass, const char *name, int argc, const char **argv, bool is_jar);
|
110 |
|
|
};
|
111 |
|
|
|
112 |
|
|
#endif // __java_lang_ClassLoader__
|