1 |
758 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __java_lang_Runtime__
|
5 |
|
|
#define __java_lang_Runtime__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/lang/Object.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
|
13 |
|
|
class java::lang::Runtime : public ::java::lang::Object
|
14 |
|
|
{
|
15 |
|
|
|
16 |
|
|
Runtime();
|
17 |
|
|
public:
|
18 |
|
|
static ::java::lang::Runtime * getRuntime();
|
19 |
|
|
virtual void exit(jint);
|
20 |
|
|
public: // actually package-private
|
21 |
|
|
static void exitNoChecksAccessor(jint);
|
22 |
|
|
private:
|
23 |
|
|
void exitNoChecks(jint);
|
24 |
|
|
public: // actually package-private
|
25 |
|
|
virtual jboolean runShutdownHooks();
|
26 |
|
|
public:
|
27 |
|
|
virtual void addShutdownHook(::java::lang::Thread *);
|
28 |
|
|
virtual jboolean removeShutdownHook(::java::lang::Thread *);
|
29 |
|
|
virtual void halt(jint);
|
30 |
|
|
static void runFinalizersOnExit(jboolean);
|
31 |
|
|
virtual ::java::lang::Process * exec(::java::lang::String *);
|
32 |
|
|
virtual ::java::lang::Process * exec(::java::lang::String *, JArray< ::java::lang::String * > *);
|
33 |
|
|
virtual ::java::lang::Process * exec(::java::lang::String *, JArray< ::java::lang::String * > *, ::java::io::File *);
|
34 |
|
|
virtual ::java::lang::Process * exec(JArray< ::java::lang::String * > *);
|
35 |
|
|
virtual ::java::lang::Process * exec(JArray< ::java::lang::String * > *, JArray< ::java::lang::String * > *);
|
36 |
|
|
virtual ::java::lang::Process * exec(JArray< ::java::lang::String * > *, JArray< ::java::lang::String * > *, ::java::io::File *);
|
37 |
|
|
virtual jint availableProcessors();
|
38 |
|
|
virtual jlong freeMemory();
|
39 |
|
|
virtual jlong totalMemory();
|
40 |
|
|
virtual jlong maxMemory();
|
41 |
|
|
virtual void gc();
|
42 |
|
|
virtual void runFinalization();
|
43 |
|
|
virtual void traceInstructions(jboolean);
|
44 |
|
|
virtual void traceMethodCalls(jboolean);
|
45 |
|
|
virtual void load(::java::lang::String *);
|
46 |
|
|
virtual void loadLibrary(::java::lang::String *);
|
47 |
|
|
virtual ::java::io::InputStream * getLocalizedInputStream(::java::io::InputStream *);
|
48 |
|
|
virtual ::java::io::OutputStream * getLocalizedOutputStream(::java::io::OutputStream *);
|
49 |
|
|
public: // actually package-private
|
50 |
|
|
virtual void exitInternal(jint);
|
51 |
|
|
virtual void _load(::java::lang::String *, jboolean);
|
52 |
|
|
virtual jboolean loadLibraryInternal(::java::lang::String *);
|
53 |
|
|
private:
|
54 |
|
|
static void init();
|
55 |
|
|
void runFinalizationForExit();
|
56 |
|
|
public: // actually package-private
|
57 |
|
|
static ::java::lang::String * nativeGetLibname(::java::lang::String *, ::java::lang::String *);
|
58 |
|
|
virtual ::java::lang::Process * execInternal(JArray< ::java::lang::String * > *, JArray< ::java::lang::String * > *, ::java::io::File *);
|
59 |
|
|
private:
|
60 |
|
|
JArray< ::java::lang::String * > * __attribute__((aligned(__alignof__( ::java::lang::Object)))) libpath;
|
61 |
|
|
::java::lang::Thread * exitSequence;
|
62 |
|
|
::java::util::Set * shutdownHooks;
|
63 |
|
|
jboolean finalizeOnExit;
|
64 |
|
|
static ::java::lang::Runtime * current;
|
65 |
|
|
public:
|
66 |
|
|
static ::java::lang::Class class$;
|
67 |
|
|
};
|
68 |
|
|
|
69 |
|
|
#endif // __java_lang_Runtime__
|