1 |
758 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __java_net_URLClassLoader__
|
5 |
|
|
#define __java_net_URLClassLoader__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/security/SecureClassLoader.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace gnu
|
15 |
|
|
{
|
16 |
|
|
namespace java
|
17 |
|
|
{
|
18 |
|
|
namespace net
|
19 |
|
|
{
|
20 |
|
|
namespace loader
|
21 |
|
|
{
|
22 |
|
|
class Resource;
|
23 |
|
|
class URLStreamHandlerCache;
|
24 |
|
|
}
|
25 |
|
|
}
|
26 |
|
|
}
|
27 |
|
|
}
|
28 |
|
|
namespace java
|
29 |
|
|
{
|
30 |
|
|
namespace net
|
31 |
|
|
{
|
32 |
|
|
class URL;
|
33 |
|
|
class URLClassLoader;
|
34 |
|
|
class URLStreamHandlerFactory;
|
35 |
|
|
}
|
36 |
|
|
namespace security
|
37 |
|
|
{
|
38 |
|
|
class AccessControlContext;
|
39 |
|
|
class CodeSource;
|
40 |
|
|
class PermissionCollection;
|
41 |
|
|
}
|
42 |
|
|
}
|
43 |
|
|
}
|
44 |
|
|
|
45 |
|
|
class java::net::URLClassLoader : public ::java::security::SecureClassLoader
|
46 |
|
|
{
|
47 |
|
|
|
48 |
|
|
public:
|
49 |
|
|
URLClassLoader(JArray< ::java::net::URL * > *);
|
50 |
|
|
URLClassLoader(JArray< ::java::net::URL * > *, ::java::lang::ClassLoader *);
|
51 |
|
|
public: // actually package-private
|
52 |
|
|
URLClassLoader(::java::lang::ClassLoader *, ::java::security::AccessControlContext *);
|
53 |
|
|
public:
|
54 |
|
|
URLClassLoader(JArray< ::java::net::URL * > *, ::java::lang::ClassLoader *, ::java::net::URLStreamHandlerFactory *);
|
55 |
|
|
public: // actually protected
|
56 |
|
|
virtual void addURL(::java::net::URL *);
|
57 |
|
|
private:
|
58 |
|
|
void addURLImpl(::java::net::URL *);
|
59 |
|
|
void addURLs(JArray< ::java::net::URL * > *);
|
60 |
|
|
::java::lang::String * getAttributeValue(::java::util::jar::Attributes$Name *, ::java::util::jar::Attributes *, ::java::util::jar::Attributes *);
|
61 |
|
|
public: // actually protected
|
62 |
|
|
virtual ::java::lang::Package * definePackage(::java::lang::String *, ::java::util::jar::Manifest *, ::java::net::URL *);
|
63 |
|
|
virtual ::java::lang::Class * findClass(::java::lang::String *);
|
64 |
|
|
public:
|
65 |
|
|
virtual ::java::lang::String * toString();
|
66 |
|
|
private:
|
67 |
|
|
::gnu::java::net::loader::Resource * findURLResource(::java::lang::String *);
|
68 |
|
|
public:
|
69 |
|
|
virtual ::java::net::URL * findResource(::java::lang::String *);
|
70 |
|
|
virtual ::java::util::Enumeration * findResources(::java::lang::String *);
|
71 |
|
|
public: // actually protected
|
72 |
|
|
virtual ::java::security::PermissionCollection * getPermissions(::java::security::CodeSource *);
|
73 |
|
|
public:
|
74 |
|
|
virtual JArray< ::java::net::URL * > * getURLs();
|
75 |
|
|
static ::java::net::URLClassLoader * newInstance(JArray< ::java::net::URL * > *);
|
76 |
|
|
static ::java::net::URLClassLoader * newInstance(JArray< ::java::net::URL * > *, ::java::lang::ClassLoader *);
|
77 |
|
|
public: // actually package-private
|
78 |
|
|
static ::java::lang::Class * access$0(::java::net::URLClassLoader *, ::java::lang::String *, JArray< jbyte > *, jint, jint, ::java::security::CodeSource *);
|
79 |
|
|
private:
|
80 |
|
|
static ::gnu::java::net::loader::URLStreamHandlerCache * factoryCache;
|
81 |
|
|
static ::java::lang::String * URL_LOADER_PREFIX;
|
82 |
|
|
::java::util::Vector * __attribute__((aligned(__alignof__( ::java::security::SecureClassLoader)))) urls;
|
83 |
|
|
::java::util::Vector * urlinfos;
|
84 |
|
|
::java::net::URLStreamHandlerFactory * factory;
|
85 |
|
|
::java::security::AccessControlContext * securityContext;
|
86 |
|
|
::java::lang::String * thisString;
|
87 |
|
|
public:
|
88 |
|
|
static ::java::lang::Class class$;
|
89 |
|
|
};
|
90 |
|
|
|
91 |
|
|
#endif // __java_net_URLClassLoader__
|