loader.tex
[cacao.git] / nativecalls.h
1 /* Table of native methods calls: nativecalls.h       */
2 /*     This file should be updated manually if        */
3 /*     a new Native class/method is added to CACAO    */
4 /*     with the methods the new native method calls.  */
5
6
7 /*------------------------------------*/
8
9 {"java/lang/Object",
10 {
11 {"getClass" , "()Ljava/lang/Class;",
12         {
13         {"java/lang/VMClass" , "<init>",  "(Lgnu/classpath/RawData;)V"},
14         }
15 },
16
17
18 },
19 1,  {1}
20 },
21 /*------------------------------------*/
22
23
24 {"java/lang/reflect/Constructor",
25 {
26 {"constructNative" , "([Ljava/lang/Object;Ljava/lang/Class;I)Ljava/lang/Object;",
27         {
28         {"gnu/java/io/decode/Decoder" , "<clinit>",  "()V"},
29         {"gnu/java/io/decode/Decoder8859_1" , "<clinit>",  "()V"},
30         {"gnu/java/io/decode/Decoder8859_1" , "<init>",  "(Ljava/io/InputStream;)V"},
31         {"gnu/java/io/encode/Encoder" , "<clinit>",  "()V"},
32         {"gnu/java/io/encode/Encoder8859_1" , "<clinit>",  "()V"},
33         {"gnu/java/io/encode/Encoder8859_1" , "<init>",  "(Ljava/io/OutputStream;)V"},
34         {"gnu/java/net/protocol/file/Handler" , "<init>",  "()V"},
35         }
36 },
37
38 },
39 1,  {7 }
40 },
41 /*------------------------------------*/
42
43
44 {"java/lang/Thread",
45 {
46 {"sleep" , "(JI)V",
47         {
48         {"Runner" , "run",  "()V"},
49         }
50 },
51
52 },
53 1,  {1}
54 },
55 /*------------------------------------*/
56
57
58 {"java/lang/VMClass",
59 {
60 {"getDeclaredConstructors" , "(Z)[Ljava/lang/reflect/Constructor;",
61         {
62         {"java/lang/reflect/Constructor" , "<init>",  "()V"},
63         }
64 },
65 {"forName" , "(Ljava/lang/String;)Ljava/lang/Class;",
66         {
67         {"java/lang/VMClass" , "<init>",  "(Lgnu/classpath/RawData;)V"},
68         }
69 },
70
71 },
72 2,  {1 ,1}
73 },
74 /*------------------------------------*/
75
76
77 {"java/lang/VMSystem",
78 {
79 {"identityHashCode" , "(Ljava/lang/Object;)I",
80         {
81         {"java/lang/Class" , "getConstructor",  "([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;"},
82         {"java/lang/Class" , "getDeclaredConstructors",  "(Z)[Ljava/lang/reflect/Constructor;"},
83         {"java/lang/reflect/Constructor" , "<init>",  "()V"},
84         /* really getDeclaredConstructors calls VMClass.getDeclaredConstructors         */ 
85         /*      which is not NATIVE & has no constructor to use to flag class as used   */
86         }
87 },
88
89 },
90 1,  {3}
91 },
92 /*------------------------------------*/
93
94
95 /*
96  * These are local overrides for various environment variables in Emacs.
97  * Please do not remove this and leave it at the end of the file, where
98  * Emacs will automagically detect them.
99  * ---------------------------------------------------------------------
100  * Local variables:
101  * mode: c
102  * indent-tabs-mode: t
103  * c-basic-offset: 4
104  * tab-width: 4
105  * End:
106  */