Runtime.h 2.7 KB

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