classes.java.c.golden 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892
  1. // Code generated by gobind. DO NOT EDIT.
  2. #include <jni.h>
  3. #include "seq.h"
  4. #include "classes.h"
  5. static jclass class_java_lang_Runnable;
  6. static jmethodID m_java_lang_Runnable_run;
  7. static jclass class_java_io_InputStream;
  8. static jmethodID m_java_io_InputStream_read__;
  9. static jmethodID m_java_io_InputStream_read___3B;
  10. static jmethodID m_java_io_InputStream_read___3BII;
  11. static jmethodID m_java_io_InputStream_toString;
  12. static jclass class_java_util_concurrent_Future;
  13. static jmethodID m_java_util_concurrent_Future_get__;
  14. static jmethodID m_java_util_concurrent_Future_get__JLjava_util_concurrent_TimeUnit_2;
  15. static jclass class_java_lang_Object;
  16. static jmethodID m_java_lang_Object_toString;
  17. static jclass class_java_util_concurrent_TimeUnit;
  18. static jmethodID m_java_util_concurrent_TimeUnit_toString;
  19. static jclass class_java_util_Spliterators;
  20. static jmethodID m_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_2;
  21. static jmethodID m_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_00024OfInt_2;
  22. static jmethodID m_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_00024OfLong_2;
  23. static jmethodID m_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_00024OfDouble_2;
  24. static jmethodID m_java_util_Spliterators_toString;
  25. ret_jint cproxy_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_2(jint a0) {
  26. JNIEnv *env = go_seq_push_local_frame(1);
  27. jobject _a0 = go_seq_from_refnum(env, a0, NULL, NULL);
  28. jobject res = (*env)->CallStaticObjectMethod(env, class_java_util_Spliterators, m_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_2, _a0);
  29. jobject _exc = go_seq_get_exception(env);
  30. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  31. if (_exc != NULL) {
  32. res = NULL;
  33. }
  34. jint _res = go_seq_to_refnum(env, res);
  35. go_seq_pop_local_frame(env);
  36. ret_jint __res = {_res, _exc_ref};
  37. return __res;
  38. }
  39. ret_jint cproxy_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_00024OfInt_2(jint a0) {
  40. JNIEnv *env = go_seq_push_local_frame(1);
  41. jobject _a0 = go_seq_from_refnum(env, a0, NULL, NULL);
  42. jobject res = (*env)->CallStaticObjectMethod(env, class_java_util_Spliterators, m_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_00024OfInt_2, _a0);
  43. jobject _exc = go_seq_get_exception(env);
  44. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  45. if (_exc != NULL) {
  46. res = NULL;
  47. }
  48. jint _res = go_seq_to_refnum(env, res);
  49. go_seq_pop_local_frame(env);
  50. ret_jint __res = {_res, _exc_ref};
  51. return __res;
  52. }
  53. ret_jint cproxy_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_00024OfLong_2(jint a0) {
  54. JNIEnv *env = go_seq_push_local_frame(1);
  55. jobject _a0 = go_seq_from_refnum(env, a0, NULL, NULL);
  56. jobject res = (*env)->CallStaticObjectMethod(env, class_java_util_Spliterators, m_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_00024OfLong_2, _a0);
  57. jobject _exc = go_seq_get_exception(env);
  58. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  59. if (_exc != NULL) {
  60. res = NULL;
  61. }
  62. jint _res = go_seq_to_refnum(env, res);
  63. go_seq_pop_local_frame(env);
  64. ret_jint __res = {_res, _exc_ref};
  65. return __res;
  66. }
  67. ret_jint cproxy_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_00024OfDouble_2(jint a0) {
  68. JNIEnv *env = go_seq_push_local_frame(1);
  69. jobject _a0 = go_seq_from_refnum(env, a0, NULL, NULL);
  70. jobject res = (*env)->CallStaticObjectMethod(env, class_java_util_Spliterators, m_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_00024OfDouble_2, _a0);
  71. jobject _exc = go_seq_get_exception(env);
  72. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  73. if (_exc != NULL) {
  74. res = NULL;
  75. }
  76. jint _res = go_seq_to_refnum(env, res);
  77. go_seq_pop_local_frame(env);
  78. ret_jint __res = {_res, _exc_ref};
  79. return __res;
  80. }
  81. static jclass class_java_lang_System;
  82. static jmethodID m_s_java_lang_System_console;
  83. static jmethodID m_java_lang_System_toString;
  84. ret_jint cproxy_s_java_lang_System_console() {
  85. JNIEnv *env = go_seq_push_local_frame(0);
  86. jobject res = (*env)->CallStaticObjectMethod(env, class_java_lang_System, m_s_java_lang_System_console);
  87. jobject _exc = go_seq_get_exception(env);
  88. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  89. if (_exc != NULL) {
  90. res = NULL;
  91. }
  92. jint _res = go_seq_to_refnum(env, res);
  93. go_seq_pop_local_frame(env);
  94. ret_jint __res = {_res, _exc_ref};
  95. return __res;
  96. }
  97. static jclass class_java_Future;
  98. static jclass sclass_java_Future;
  99. static jmethodID m_java_Future_get__;
  100. static jmethodID sm_java_Future_get__;
  101. static jmethodID m_java_Future_get__JLjava_util_concurrent_TimeUnit_2;
  102. static jmethodID sm_java_Future_get__JLjava_util_concurrent_TimeUnit_2;
  103. static jclass class_java_InputStream;
  104. static jclass sclass_java_InputStream;
  105. static jmethodID m_java_InputStream_read__;
  106. static jmethodID sm_java_InputStream_read__;
  107. static jmethodID m_java_InputStream_read___3B;
  108. static jmethodID sm_java_InputStream_read___3B;
  109. static jmethodID m_java_InputStream_read___3BII;
  110. static jmethodID sm_java_InputStream_read___3BII;
  111. static jmethodID m_java_InputStream_toString;
  112. static jmethodID sm_java_InputStream_toString;
  113. static jclass class_java_Object;
  114. static jclass sclass_java_Object;
  115. static jmethodID m_java_Object_toString;
  116. static jmethodID sm_java_Object_toString;
  117. static jclass class_java_Runnable;
  118. static jclass sclass_java_Runnable;
  119. static jmethodID m_java_Runnable_run;
  120. static jmethodID sm_java_Runnable_run;
  121. static jclass class_java_util_Iterator;
  122. static jclass class_java_util_Spliterator;
  123. static jclass class_java_util_PrimitiveIterator_OfInt;
  124. static jclass class_java_util_Spliterator_OfInt;
  125. static jclass class_java_util_PrimitiveIterator_OfLong;
  126. static jclass class_java_util_Spliterator_OfLong;
  127. static jclass class_java_util_PrimitiveIterator_OfDouble;
  128. static jclass class_java_util_Spliterator_OfDouble;
  129. static jclass class_java_io_Console;
  130. static jmethodID m_java_io_Console_flush;
  131. static jmethodID m_java_io_Console_toString;
  132. void init_proxies() {
  133. JNIEnv *env = go_seq_push_local_frame(20);
  134. jclass clazz;
  135. clazz = go_seq_find_class("java/lang/Runnable");
  136. if (clazz != NULL) {
  137. class_java_lang_Runnable = (*env)->NewGlobalRef(env, clazz);
  138. m_java_lang_Runnable_run = go_seq_get_method_id(clazz, "run", "()V");
  139. }
  140. clazz = go_seq_find_class("java/io/InputStream");
  141. if (clazz != NULL) {
  142. class_java_io_InputStream = (*env)->NewGlobalRef(env, clazz);
  143. m_java_io_InputStream_read__ = go_seq_get_method_id(clazz, "read", "()I");
  144. m_java_io_InputStream_read___3B = go_seq_get_method_id(clazz, "read", "([B)I");
  145. m_java_io_InputStream_read___3BII = go_seq_get_method_id(clazz, "read", "([BII)I");
  146. m_java_io_InputStream_toString = go_seq_get_method_id(clazz, "toString", "()Ljava/lang/String;");
  147. }
  148. clazz = go_seq_find_class("java/util/concurrent/Future");
  149. if (clazz != NULL) {
  150. class_java_util_concurrent_Future = (*env)->NewGlobalRef(env, clazz);
  151. m_java_util_concurrent_Future_get__ = go_seq_get_method_id(clazz, "get", "()Ljava/lang/Object;");
  152. m_java_util_concurrent_Future_get__JLjava_util_concurrent_TimeUnit_2 = go_seq_get_method_id(clazz, "get", "(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;");
  153. }
  154. clazz = go_seq_find_class("java/lang/Object");
  155. if (clazz != NULL) {
  156. class_java_lang_Object = (*env)->NewGlobalRef(env, clazz);
  157. m_java_lang_Object_toString = go_seq_get_method_id(clazz, "toString", "()Ljava/lang/String;");
  158. }
  159. clazz = go_seq_find_class("java/util/concurrent/TimeUnit");
  160. if (clazz != NULL) {
  161. class_java_util_concurrent_TimeUnit = (*env)->NewGlobalRef(env, clazz);
  162. m_java_util_concurrent_TimeUnit_toString = go_seq_get_method_id(clazz, "toString", "()Ljava/lang/String;");
  163. }
  164. clazz = go_seq_find_class("java/util/Spliterators");
  165. if (clazz != NULL) {
  166. class_java_util_Spliterators = (*env)->NewGlobalRef(env, clazz);
  167. m_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_2 = go_seq_get_static_method_id(clazz, "iterator", "(Ljava/util/Spliterator;)Ljava/util/Iterator;");
  168. m_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_00024OfInt_2 = go_seq_get_static_method_id(clazz, "iterator", "(Ljava/util/Spliterator$OfInt;)Ljava/util/PrimitiveIterator$OfInt;");
  169. m_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_00024OfLong_2 = go_seq_get_static_method_id(clazz, "iterator", "(Ljava/util/Spliterator$OfLong;)Ljava/util/PrimitiveIterator$OfLong;");
  170. m_s_java_util_Spliterators_iterator__Ljava_util_Spliterator_00024OfDouble_2 = go_seq_get_static_method_id(clazz, "iterator", "(Ljava/util/Spliterator$OfDouble;)Ljava/util/PrimitiveIterator$OfDouble;");
  171. m_java_util_Spliterators_toString = go_seq_get_method_id(clazz, "toString", "()Ljava/lang/String;");
  172. }
  173. clazz = go_seq_find_class("java/lang/System");
  174. if (clazz != NULL) {
  175. class_java_lang_System = (*env)->NewGlobalRef(env, clazz);
  176. m_s_java_lang_System_console = go_seq_get_static_method_id(clazz, "console", "()Ljava/io/Console;");
  177. m_java_lang_System_toString = go_seq_get_method_id(clazz, "toString", "()Ljava/lang/String;");
  178. }
  179. clazz = go_seq_find_class("java/Future");
  180. if (clazz != NULL) {
  181. class_java_Future = (*env)->NewGlobalRef(env, clazz);
  182. sclass_java_Future = (*env)->GetSuperclass(env, clazz);
  183. sclass_java_Future = (*env)->NewGlobalRef(env, sclass_java_Future);
  184. m_java_Future_get__ = go_seq_get_method_id(clazz, "get", "()Ljava/lang/Object;");
  185. sm_java_Future_get__ = go_seq_get_method_id(sclass_java_Future, "get", "()Ljava/lang/Object;");
  186. m_java_Future_get__JLjava_util_concurrent_TimeUnit_2 = go_seq_get_method_id(clazz, "get", "(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;");
  187. sm_java_Future_get__JLjava_util_concurrent_TimeUnit_2 = go_seq_get_method_id(sclass_java_Future, "get", "(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;");
  188. }
  189. clazz = go_seq_find_class("java/InputStream");
  190. if (clazz != NULL) {
  191. class_java_InputStream = (*env)->NewGlobalRef(env, clazz);
  192. sclass_java_InputStream = (*env)->GetSuperclass(env, clazz);
  193. sclass_java_InputStream = (*env)->NewGlobalRef(env, sclass_java_InputStream);
  194. m_java_InputStream_read__ = go_seq_get_method_id(clazz, "read", "()I");
  195. sm_java_InputStream_read__ = go_seq_get_method_id(sclass_java_InputStream, "read", "()I");
  196. m_java_InputStream_read___3B = go_seq_get_method_id(clazz, "read", "([B)I");
  197. sm_java_InputStream_read___3B = go_seq_get_method_id(sclass_java_InputStream, "read", "([B)I");
  198. m_java_InputStream_read___3BII = go_seq_get_method_id(clazz, "read", "([BII)I");
  199. sm_java_InputStream_read___3BII = go_seq_get_method_id(sclass_java_InputStream, "read", "([BII)I");
  200. m_java_InputStream_toString = go_seq_get_method_id(clazz, "toString", "()Ljava/lang/String;");
  201. sm_java_InputStream_toString = go_seq_get_method_id(sclass_java_InputStream, "toString", "()Ljava/lang/String;");
  202. }
  203. clazz = go_seq_find_class("java/Object");
  204. if (clazz != NULL) {
  205. class_java_Object = (*env)->NewGlobalRef(env, clazz);
  206. sclass_java_Object = (*env)->GetSuperclass(env, clazz);
  207. sclass_java_Object = (*env)->NewGlobalRef(env, sclass_java_Object);
  208. m_java_Object_toString = go_seq_get_method_id(clazz, "toString", "()Ljava/lang/String;");
  209. sm_java_Object_toString = go_seq_get_method_id(sclass_java_Object, "toString", "()Ljava/lang/String;");
  210. }
  211. clazz = go_seq_find_class("java/Runnable");
  212. if (clazz != NULL) {
  213. class_java_Runnable = (*env)->NewGlobalRef(env, clazz);
  214. sclass_java_Runnable = (*env)->GetSuperclass(env, clazz);
  215. sclass_java_Runnable = (*env)->NewGlobalRef(env, sclass_java_Runnable);
  216. m_java_Runnable_run = go_seq_get_method_id(clazz, "run", "()V");
  217. sm_java_Runnable_run = go_seq_get_method_id(sclass_java_Runnable, "run", "()V");
  218. }
  219. clazz = go_seq_find_class("java/util/Iterator");
  220. if (clazz != NULL) {
  221. class_java_util_Iterator = (*env)->NewGlobalRef(env, clazz);
  222. }
  223. clazz = go_seq_find_class("java/util/Spliterator");
  224. if (clazz != NULL) {
  225. class_java_util_Spliterator = (*env)->NewGlobalRef(env, clazz);
  226. }
  227. clazz = go_seq_find_class("java/util/PrimitiveIterator$OfInt");
  228. if (clazz != NULL) {
  229. class_java_util_PrimitiveIterator_OfInt = (*env)->NewGlobalRef(env, clazz);
  230. }
  231. clazz = go_seq_find_class("java/util/Spliterator$OfInt");
  232. if (clazz != NULL) {
  233. class_java_util_Spliterator_OfInt = (*env)->NewGlobalRef(env, clazz);
  234. }
  235. clazz = go_seq_find_class("java/util/PrimitiveIterator$OfLong");
  236. if (clazz != NULL) {
  237. class_java_util_PrimitiveIterator_OfLong = (*env)->NewGlobalRef(env, clazz);
  238. }
  239. clazz = go_seq_find_class("java/util/Spliterator$OfLong");
  240. if (clazz != NULL) {
  241. class_java_util_Spliterator_OfLong = (*env)->NewGlobalRef(env, clazz);
  242. }
  243. clazz = go_seq_find_class("java/util/PrimitiveIterator$OfDouble");
  244. if (clazz != NULL) {
  245. class_java_util_PrimitiveIterator_OfDouble = (*env)->NewGlobalRef(env, clazz);
  246. }
  247. clazz = go_seq_find_class("java/util/Spliterator$OfDouble");
  248. if (clazz != NULL) {
  249. class_java_util_Spliterator_OfDouble = (*env)->NewGlobalRef(env, clazz);
  250. }
  251. clazz = go_seq_find_class("java/io/Console");
  252. if (clazz != NULL) {
  253. class_java_io_Console = (*env)->NewGlobalRef(env, clazz);
  254. m_java_io_Console_flush = go_seq_get_method_id(clazz, "flush", "()V");
  255. m_java_io_Console_toString = go_seq_get_method_id(clazz, "toString", "()Ljava/lang/String;");
  256. }
  257. go_seq_pop_local_frame(env);
  258. }
  259. jint cproxy_java_lang_Runnable_run(jint this) {
  260. JNIEnv *env = go_seq_push_local_frame(1);
  261. // Must be a Java object
  262. jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
  263. (*env)->CallVoidMethod(env, _this, m_java_lang_Runnable_run);
  264. jobject _exc = go_seq_get_exception(env);
  265. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  266. go_seq_pop_local_frame(env);
  267. return _exc_ref;
  268. }
  269. ret_jint cproxy_java_io_InputStream_read__(jint this) {
  270. JNIEnv *env = go_seq_push_local_frame(1);
  271. // Must be a Java object
  272. jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
  273. jint res = (*env)->CallIntMethod(env, _this, m_java_io_InputStream_read__);
  274. jobject _exc = go_seq_get_exception(env);
  275. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  276. if (_exc != NULL) {
  277. res = 0;
  278. }
  279. jint _res = res;
  280. go_seq_pop_local_frame(env);
  281. ret_jint __res = {_res, _exc_ref};
  282. return __res;
  283. }
  284. ret_jint cproxy_java_io_InputStream_read___3B(jint this, nbyteslice a0) {
  285. JNIEnv *env = go_seq_push_local_frame(2);
  286. // Must be a Java object
  287. jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
  288. jbyteArray _a0 = go_seq_to_java_bytearray(env, a0, 0);
  289. jint res = (*env)->CallIntMethod(env, _this, m_java_io_InputStream_read___3B, _a0);
  290. jobject _exc = go_seq_get_exception(env);
  291. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  292. if (_exc != NULL) {
  293. res = 0;
  294. }
  295. jint _res = res;
  296. go_seq_pop_local_frame(env);
  297. ret_jint __res = {_res, _exc_ref};
  298. return __res;
  299. }
  300. ret_jint cproxy_java_io_InputStream_read___3BII(jint this, nbyteslice a0, jint a1, jint a2) {
  301. JNIEnv *env = go_seq_push_local_frame(4);
  302. // Must be a Java object
  303. jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
  304. jbyteArray _a0 = go_seq_to_java_bytearray(env, a0, 0);
  305. jint _a1 = a1;
  306. jint _a2 = a2;
  307. jint res = (*env)->CallIntMethod(env, _this, m_java_io_InputStream_read___3BII, _a0, _a1, _a2);
  308. jobject _exc = go_seq_get_exception(env);
  309. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  310. if (_exc != NULL) {
  311. res = 0;
  312. }
  313. jint _res = res;
  314. go_seq_pop_local_frame(env);
  315. ret_jint __res = {_res, _exc_ref};
  316. return __res;
  317. }
  318. ret_nstring cproxy_java_io_InputStream_toString(jint this) {
  319. JNIEnv *env = go_seq_push_local_frame(1);
  320. // Must be a Java object
  321. jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
  322. jstring res = (*env)->CallObjectMethod(env, _this, m_java_io_InputStream_toString);
  323. jobject _exc = go_seq_get_exception(env);
  324. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  325. if (_exc != NULL) {
  326. res = NULL;
  327. }
  328. nstring _res = go_seq_from_java_string(env, res);
  329. go_seq_pop_local_frame(env);
  330. ret_nstring __res = {_res, _exc_ref};
  331. return __res;
  332. }
  333. ret_jint cproxy_java_util_concurrent_Future_get__(jint this) {
  334. JNIEnv *env = go_seq_push_local_frame(1);
  335. // Must be a Java object
  336. jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
  337. jobject res = (*env)->CallObjectMethod(env, _this, m_java_util_concurrent_Future_get__);
  338. jobject _exc = go_seq_get_exception(env);
  339. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  340. if (_exc != NULL) {
  341. res = NULL;
  342. }
  343. jint _res = go_seq_to_refnum(env, res);
  344. go_seq_pop_local_frame(env);
  345. ret_jint __res = {_res, _exc_ref};
  346. return __res;
  347. }
  348. ret_jint cproxy_java_util_concurrent_Future_get__JLjava_util_concurrent_TimeUnit_2(jint this, jlong a0, jint a1) {
  349. JNIEnv *env = go_seq_push_local_frame(3);
  350. // Must be a Java object
  351. jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
  352. jlong _a0 = a0;
  353. jobject _a1 = go_seq_from_refnum(env, a1, NULL, NULL);
  354. jobject res = (*env)->CallObjectMethod(env, _this, m_java_util_concurrent_Future_get__JLjava_util_concurrent_TimeUnit_2, _a0, _a1);
  355. jobject _exc = go_seq_get_exception(env);
  356. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  357. if (_exc != NULL) {
  358. res = NULL;
  359. }
  360. jint _res = go_seq_to_refnum(env, res);
  361. go_seq_pop_local_frame(env);
  362. ret_jint __res = {_res, _exc_ref};
  363. return __res;
  364. }
  365. ret_nstring cproxy_java_lang_Object_toString(jint this) {
  366. JNIEnv *env = go_seq_push_local_frame(1);
  367. // Must be a Java object
  368. jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
  369. jstring res = (*env)->CallObjectMethod(env, _this, m_java_lang_Object_toString);
  370. jobject _exc = go_seq_get_exception(env);
  371. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  372. if (_exc != NULL) {
  373. res = NULL;
  374. }
  375. nstring _res = go_seq_from_java_string(env, res);
  376. go_seq_pop_local_frame(env);
  377. ret_nstring __res = {_res, _exc_ref};
  378. return __res;
  379. }
  380. ret_nstring cproxy_java_util_concurrent_TimeUnit_toString(jint this) {
  381. JNIEnv *env = go_seq_push_local_frame(1);
  382. // Must be a Java object
  383. jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
  384. jstring res = (*env)->CallObjectMethod(env, _this, m_java_util_concurrent_TimeUnit_toString);
  385. jobject _exc = go_seq_get_exception(env);
  386. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  387. if (_exc != NULL) {
  388. res = NULL;
  389. }
  390. nstring _res = go_seq_from_java_string(env, res);
  391. go_seq_pop_local_frame(env);
  392. ret_nstring __res = {_res, _exc_ref};
  393. return __res;
  394. }
  395. ret_nstring cproxy_java_util_Spliterators_toString(jint this) {
  396. JNIEnv *env = go_seq_push_local_frame(1);
  397. // Must be a Java object
  398. jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
  399. jstring res = (*env)->CallObjectMethod(env, _this, m_java_util_Spliterators_toString);
  400. jobject _exc = go_seq_get_exception(env);
  401. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  402. if (_exc != NULL) {
  403. res = NULL;
  404. }
  405. nstring _res = go_seq_from_java_string(env, res);
  406. go_seq_pop_local_frame(env);
  407. ret_nstring __res = {_res, _exc_ref};
  408. return __res;
  409. }
  410. ret_nstring cproxy_java_lang_System_toString(jint this) {
  411. JNIEnv *env = go_seq_push_local_frame(1);
  412. // Must be a Java object
  413. jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
  414. jstring res = (*env)->CallObjectMethod(env, _this, m_java_lang_System_toString);
  415. jobject _exc = go_seq_get_exception(env);
  416. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  417. if (_exc != NULL) {
  418. res = NULL;
  419. }
  420. nstring _res = go_seq_from_java_string(env, res);
  421. go_seq_pop_local_frame(env);
  422. ret_nstring __res = {_res, _exc_ref};
  423. return __res;
  424. }
  425. ret_jint cproxy_java_Future_get__(jint this) {
  426. JNIEnv *env = go_seq_push_local_frame(1);
  427. // Must be a Java object
  428. jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
  429. jobject res = (*env)->CallObjectMethod(env, _this, m_java_Future_get__);
  430. jobject _exc = go_seq_get_exception(env);
  431. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  432. if (_exc != NULL) {
  433. res = NULL;
  434. }
  435. jint _res = go_seq_to_refnum(env, res);
  436. go_seq_pop_local_frame(env);
  437. ret_jint __res = {_res, _exc_ref};
  438. return __res;
  439. }
  440. ret_jint csuper_java_Future_get__(jint this) {
  441. JNIEnv *env = go_seq_push_local_frame(1);
  442. // Must be a Java object
  443. jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
  444. jobject res = (*env)->CallNonvirtualObjectMethod(env, _this, sclass_java_Future, sm_java_Future_get__);
  445. jobject _exc = go_seq_get_exception(env);
  446. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  447. if (_exc != NULL) {
  448. res = NULL;
  449. }
  450. jint _res = go_seq_to_refnum(env, res);
  451. go_seq_pop_local_frame(env);
  452. ret_jint __res = {_res, _exc_ref};
  453. return __res;
  454. }
  455. ret_jint cproxy_java_Future_get__JLjava_util_concurrent_TimeUnit_2(jint this, jlong a0, jint a1) {
  456. JNIEnv *env = go_seq_push_local_frame(3);
  457. // Must be a Java object
  458. jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
  459. jlong _a0 = a0;
  460. jobject _a1 = go_seq_from_refnum(env, a1, NULL, NULL);
  461. jobject res = (*env)->CallObjectMethod(env, _this, m_java_Future_get__JLjava_util_concurrent_TimeUnit_2, _a0, _a1);
  462. jobject _exc = go_seq_get_exception(env);
  463. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  464. if (_exc != NULL) {
  465. res = NULL;
  466. }
  467. jint _res = go_seq_to_refnum(env, res);
  468. go_seq_pop_local_frame(env);
  469. ret_jint __res = {_res, _exc_ref};
  470. return __res;
  471. }
  472. ret_jint csuper_java_Future_get__JLjava_util_concurrent_TimeUnit_2(jint this, jlong a0, jint a1) {
  473. JNIEnv *env = go_seq_push_local_frame(3);
  474. // Must be a Java object
  475. jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
  476. jlong _a0 = a0;
  477. jobject _a1 = go_seq_from_refnum(env, a1, NULL, NULL);
  478. jobject res = (*env)->CallNonvirtualObjectMethod(env, _this, sclass_java_Future, sm_java_Future_get__JLjava_util_concurrent_TimeUnit_2, _a0, _a1);
  479. jobject _exc = go_seq_get_exception(env);
  480. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  481. if (_exc != NULL) {
  482. res = NULL;
  483. }
  484. jint _res = go_seq_to_refnum(env, res);
  485. go_seq_pop_local_frame(env);
  486. ret_jint __res = {_res, _exc_ref};
  487. return __res;
  488. }
  489. ret_jint cproxy_java_InputStream_read__(jint this) {
  490. JNIEnv *env = go_seq_push_local_frame(1);
  491. // Must be a Java object
  492. jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
  493. jint res = (*env)->CallIntMethod(env, _this, m_java_InputStream_read__);
  494. jobject _exc = go_seq_get_exception(env);
  495. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  496. if (_exc != NULL) {
  497. res = 0;
  498. }
  499. jint _res = res;
  500. go_seq_pop_local_frame(env);
  501. ret_jint __res = {_res, _exc_ref};
  502. return __res;
  503. }
  504. ret_jint csuper_java_InputStream_read__(jint this) {
  505. JNIEnv *env = go_seq_push_local_frame(1);
  506. // Must be a Java object
  507. jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
  508. jint res = (*env)->CallNonvirtualIntMethod(env, _this, sclass_java_InputStream, sm_java_InputStream_read__);
  509. jobject _exc = go_seq_get_exception(env);
  510. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  511. if (_exc != NULL) {
  512. res = 0;
  513. }
  514. jint _res = res;
  515. go_seq_pop_local_frame(env);
  516. ret_jint __res = {_res, _exc_ref};
  517. return __res;
  518. }
  519. ret_jint cproxy_java_InputStream_read___3B(jint this, nbyteslice a0) {
  520. JNIEnv *env = go_seq_push_local_frame(2);
  521. // Must be a Java object
  522. jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
  523. jbyteArray _a0 = go_seq_to_java_bytearray(env, a0, 0);
  524. jint res = (*env)->CallIntMethod(env, _this, m_java_InputStream_read___3B, _a0);
  525. jobject _exc = go_seq_get_exception(env);
  526. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  527. if (_exc != NULL) {
  528. res = 0;
  529. }
  530. jint _res = res;
  531. go_seq_pop_local_frame(env);
  532. ret_jint __res = {_res, _exc_ref};
  533. return __res;
  534. }
  535. ret_jint csuper_java_InputStream_read___3B(jint this, nbyteslice a0) {
  536. JNIEnv *env = go_seq_push_local_frame(2);
  537. // Must be a Java object
  538. jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
  539. jbyteArray _a0 = go_seq_to_java_bytearray(env, a0, 0);
  540. jint res = (*env)->CallNonvirtualIntMethod(env, _this, sclass_java_InputStream, sm_java_InputStream_read___3B, _a0);
  541. jobject _exc = go_seq_get_exception(env);
  542. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  543. if (_exc != NULL) {
  544. res = 0;
  545. }
  546. jint _res = res;
  547. go_seq_pop_local_frame(env);
  548. ret_jint __res = {_res, _exc_ref};
  549. return __res;
  550. }
  551. ret_jint cproxy_java_InputStream_read___3BII(jint this, nbyteslice a0, jint a1, jint a2) {
  552. JNIEnv *env = go_seq_push_local_frame(4);
  553. // Must be a Java object
  554. jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
  555. jbyteArray _a0 = go_seq_to_java_bytearray(env, a0, 0);
  556. jint _a1 = a1;
  557. jint _a2 = a2;
  558. jint res = (*env)->CallIntMethod(env, _this, m_java_InputStream_read___3BII, _a0, _a1, _a2);
  559. jobject _exc = go_seq_get_exception(env);
  560. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  561. if (_exc != NULL) {
  562. res = 0;
  563. }
  564. jint _res = res;
  565. go_seq_pop_local_frame(env);
  566. ret_jint __res = {_res, _exc_ref};
  567. return __res;
  568. }
  569. ret_jint csuper_java_InputStream_read___3BII(jint this, nbyteslice a0, jint a1, jint a2) {
  570. JNIEnv *env = go_seq_push_local_frame(4);
  571. // Must be a Java object
  572. jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
  573. jbyteArray _a0 = go_seq_to_java_bytearray(env, a0, 0);
  574. jint _a1 = a1;
  575. jint _a2 = a2;
  576. jint res = (*env)->CallNonvirtualIntMethod(env, _this, sclass_java_InputStream, sm_java_InputStream_read___3BII, _a0, _a1, _a2);
  577. jobject _exc = go_seq_get_exception(env);
  578. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  579. if (_exc != NULL) {
  580. res = 0;
  581. }
  582. jint _res = res;
  583. go_seq_pop_local_frame(env);
  584. ret_jint __res = {_res, _exc_ref};
  585. return __res;
  586. }
  587. ret_nstring cproxy_java_InputStream_toString(jint this) {
  588. JNIEnv *env = go_seq_push_local_frame(1);
  589. // Must be a Java object
  590. jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
  591. jstring res = (*env)->CallObjectMethod(env, _this, m_java_InputStream_toString);
  592. jobject _exc = go_seq_get_exception(env);
  593. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  594. if (_exc != NULL) {
  595. res = NULL;
  596. }
  597. nstring _res = go_seq_from_java_string(env, res);
  598. go_seq_pop_local_frame(env);
  599. ret_nstring __res = {_res, _exc_ref};
  600. return __res;
  601. }
  602. ret_nstring csuper_java_InputStream_toString(jint this) {
  603. JNIEnv *env = go_seq_push_local_frame(1);
  604. // Must be a Java object
  605. jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
  606. jstring res = (*env)->CallNonvirtualObjectMethod(env, _this, sclass_java_InputStream, sm_java_InputStream_toString);
  607. jobject _exc = go_seq_get_exception(env);
  608. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  609. if (_exc != NULL) {
  610. res = NULL;
  611. }
  612. nstring _res = go_seq_from_java_string(env, res);
  613. go_seq_pop_local_frame(env);
  614. ret_nstring __res = {_res, _exc_ref};
  615. return __res;
  616. }
  617. ret_nstring cproxy_java_Object_toString(jint this) {
  618. JNIEnv *env = go_seq_push_local_frame(1);
  619. // Must be a Java object
  620. jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
  621. jstring res = (*env)->CallObjectMethod(env, _this, m_java_Object_toString);
  622. jobject _exc = go_seq_get_exception(env);
  623. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  624. if (_exc != NULL) {
  625. res = NULL;
  626. }
  627. nstring _res = go_seq_from_java_string(env, res);
  628. go_seq_pop_local_frame(env);
  629. ret_nstring __res = {_res, _exc_ref};
  630. return __res;
  631. }
  632. ret_nstring csuper_java_Object_toString(jint this) {
  633. JNIEnv *env = go_seq_push_local_frame(1);
  634. // Must be a Java object
  635. jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
  636. jstring res = (*env)->CallNonvirtualObjectMethod(env, _this, sclass_java_Object, sm_java_Object_toString);
  637. jobject _exc = go_seq_get_exception(env);
  638. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  639. if (_exc != NULL) {
  640. res = NULL;
  641. }
  642. nstring _res = go_seq_from_java_string(env, res);
  643. go_seq_pop_local_frame(env);
  644. ret_nstring __res = {_res, _exc_ref};
  645. return __res;
  646. }
  647. jint cproxy_java_Runnable_run(jint this) {
  648. JNIEnv *env = go_seq_push_local_frame(1);
  649. // Must be a Java object
  650. jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
  651. (*env)->CallVoidMethod(env, _this, m_java_Runnable_run);
  652. jobject _exc = go_seq_get_exception(env);
  653. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  654. go_seq_pop_local_frame(env);
  655. return _exc_ref;
  656. }
  657. jint csuper_java_Runnable_run(jint this) {
  658. JNIEnv *env = go_seq_push_local_frame(1);
  659. // Must be a Java object
  660. jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
  661. (*env)->CallNonvirtualVoidMethod(env, _this, sclass_java_Runnable, sm_java_Runnable_run);
  662. jobject _exc = go_seq_get_exception(env);
  663. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  664. go_seq_pop_local_frame(env);
  665. return _exc_ref;
  666. }
  667. jint cproxy_java_io_Console_flush(jint this) {
  668. JNIEnv *env = go_seq_push_local_frame(1);
  669. // Must be a Java object
  670. jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
  671. (*env)->CallVoidMethod(env, _this, m_java_io_Console_flush);
  672. jobject _exc = go_seq_get_exception(env);
  673. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  674. go_seq_pop_local_frame(env);
  675. return _exc_ref;
  676. }
  677. ret_nstring cproxy_java_io_Console_toString(jint this) {
  678. JNIEnv *env = go_seq_push_local_frame(1);
  679. // Must be a Java object
  680. jobject _this = go_seq_from_refnum(env, this, NULL, NULL);
  681. jstring res = (*env)->CallObjectMethod(env, _this, m_java_io_Console_toString);
  682. jobject _exc = go_seq_get_exception(env);
  683. int32_t _exc_ref = go_seq_to_refnum(env, _exc);
  684. if (_exc != NULL) {
  685. res = NULL;
  686. }
  687. nstring _res = go_seq_from_java_string(env, res);
  688. go_seq_pop_local_frame(env);
  689. ret_nstring __res = {_res, _exc_ref};
  690. return __res;
  691. }
  692. // Code generated by gobind. DO NOT EDIT.
  693. // JNI functions for the Go <=> Java bridge.
  694. //
  695. // autogenerated by gobind -lang=java classes
  696. #include <android/log.h>
  697. #include <stdint.h>
  698. #include "seq.h"
  699. #include "_cgo_export.h"
  700. #include "java.h"
  701. jclass proxy_class_java_Future;
  702. jmethodID proxy_class_java_Future_cons;
  703. jclass proxy_class_java_InputStream;
  704. jmethodID proxy_class_java_InputStream_cons;
  705. jclass proxy_class_java_Object;
  706. jmethodID proxy_class_java_Object_cons;
  707. jclass proxy_class_java_Runnable;
  708. jmethodID proxy_class_java_Runnable_cons;
  709. JNIEXPORT void JNICALL
  710. Java_java_Java__1init(JNIEnv *env, jclass _unused) {
  711. jclass clazz;
  712. clazz = (*env)->FindClass(env, "java/Future");
  713. proxy_class_java_Future = (*env)->NewGlobalRef(env, clazz);
  714. proxy_class_java_Future_cons = (*env)->GetMethodID(env, clazz, "<init>", "(I)V");
  715. clazz = (*env)->FindClass(env, "java/Object");
  716. proxy_class_java_Object = (*env)->NewGlobalRef(env, clazz);
  717. proxy_class_java_Object_cons = (*env)->GetMethodID(env, clazz, "<init>", "(I)V");
  718. clazz = (*env)->FindClass(env, "java/Runnable");
  719. proxy_class_java_Runnable = (*env)->NewGlobalRef(env, clazz);
  720. proxy_class_java_Runnable_cons = (*env)->GetMethodID(env, clazz, "<init>", "(I)V");
  721. }
  722. JNIEXPORT jobject JNICALL
  723. Java_java_Java_newInputStream(JNIEnv* env, jclass _clazz) {
  724. int32_t r0 = proxyjava__NewInputStream();
  725. jobject _r0 = go_seq_from_refnum(env, r0, proxy_class_java_InputStream, proxy_class_java_InputStream_cons);
  726. return _r0;
  727. }
  728. JNIEXPORT jint JNICALL
  729. Java_java_Future__1_1New(JNIEnv *env, jclass clazz) {
  730. return new_java_Future();
  731. }
  732. JNIEXPORT jobject JNICALL
  733. Java_java_Future_get__(JNIEnv* env, jobject __this__) {
  734. int32_t o = go_seq_to_refnum_go(env, __this__);
  735. struct proxyjava_Future_Get_return res = proxyjava_Future_Get(o);
  736. jobject _r0 = go_seq_from_refnum(env, res.r0, NULL, NULL);
  737. jobject _r1 = go_seq_from_refnum(env, res.r1, proxy_class__error, proxy_class__error_cons);
  738. go_seq_maybe_throw_exception(env, _r1);
  739. return _r0;
  740. }
  741. JNIEXPORT jobject JNICALL
  742. Java_java_Future_get__JLjava_util_concurrent_TimeUnit_2(JNIEnv* env, jobject __this__, jlong p0, jobject p1) {
  743. int32_t o = go_seq_to_refnum_go(env, __this__);
  744. int64_t _p0 = (int64_t)p0;
  745. int32_t _p1 = go_seq_to_refnum(env, p1);
  746. struct proxyjava_Future_Get__return res = proxyjava_Future_Get_(o, _p0, _p1);
  747. jobject _r0 = go_seq_from_refnum(env, res.r0, NULL, NULL);
  748. jobject _r1 = go_seq_from_refnum(env, res.r1, proxy_class__error, proxy_class__error_cons);
  749. go_seq_maybe_throw_exception(env, _r1);
  750. return _r0;
  751. }
  752. JNIEXPORT void JNICALL
  753. Java_java_Future_setFuture(JNIEnv *env, jobject this, jobject v) {
  754. int32_t o = go_seq_to_refnum_go(env, this);
  755. int32_t _v = go_seq_to_refnum(env, v);
  756. proxyjava_Future_Future_Set(o, _v);
  757. }
  758. JNIEXPORT jobject JNICALL
  759. Java_java_Future_getFuture(JNIEnv *env, jobject this) {
  760. int32_t o = go_seq_to_refnum_go(env, this);
  761. int32_t r0 = proxyjava_Future_Future_Get(o);
  762. jobject _r0 = go_seq_from_refnum(env, r0, NULL, NULL);
  763. return _r0;
  764. }
  765. JNIEXPORT jint JNICALL
  766. Java_java_InputStream__1_1NewInputStream(JNIEnv *env, jclass clazz) {
  767. int32_t refnum = proxyjava__NewInputStream();
  768. return refnum;
  769. }
  770. JNIEXPORT jint JNICALL
  771. Java_java_InputStream_read__(JNIEnv* env, jobject __this__) {
  772. int32_t o = go_seq_to_refnum_go(env, __this__);
  773. struct proxyjava_InputStream_Read_return res = proxyjava_InputStream_Read(o);
  774. jint _r0 = (jint)res.r0;
  775. jobject _r1 = go_seq_from_refnum(env, res.r1, proxy_class__error, proxy_class__error_cons);
  776. go_seq_maybe_throw_exception(env, _r1);
  777. return _r0;
  778. }
  779. JNIEXPORT void JNICALL
  780. Java_java_InputStream_setInputStream(JNIEnv *env, jobject this, jobject v) {
  781. int32_t o = go_seq_to_refnum_go(env, this);
  782. int32_t _v = go_seq_to_refnum(env, v);
  783. proxyjava_InputStream_InputStream_Set(o, _v);
  784. }
  785. JNIEXPORT jobject JNICALL
  786. Java_java_InputStream_getInputStream(JNIEnv *env, jobject this) {
  787. int32_t o = go_seq_to_refnum_go(env, this);
  788. int32_t r0 = proxyjava_InputStream_InputStream_Get(o);
  789. jobject _r0 = go_seq_from_refnum(env, r0, NULL, NULL);
  790. return _r0;
  791. }
  792. JNIEXPORT jint JNICALL
  793. Java_java_Object__1_1New(JNIEnv *env, jclass clazz) {
  794. return new_java_Object();
  795. }
  796. JNIEXPORT void JNICALL
  797. Java_java_Object_setObject(JNIEnv *env, jobject this, jobject v) {
  798. int32_t o = go_seq_to_refnum_go(env, this);
  799. int32_t _v = go_seq_to_refnum(env, v);
  800. proxyjava_Object_Object_Set(o, _v);
  801. }
  802. JNIEXPORT jobject JNICALL
  803. Java_java_Object_getObject(JNIEnv *env, jobject this) {
  804. int32_t o = go_seq_to_refnum_go(env, this);
  805. int32_t r0 = proxyjava_Object_Object_Get(o);
  806. jobject _r0 = go_seq_from_refnum(env, r0, NULL, NULL);
  807. return _r0;
  808. }
  809. JNIEXPORT jint JNICALL
  810. Java_java_Runnable__1_1New(JNIEnv *env, jclass clazz) {
  811. return new_java_Runnable();
  812. }
  813. JNIEXPORT void JNICALL
  814. Java_java_Runnable_run(JNIEnv* env, jobject __this__) {
  815. int32_t o = go_seq_to_refnum_go(env, __this__);
  816. int32_t _this_ = go_seq_to_refnum(env, __this__);
  817. proxyjava_Runnable_Run(o, _this_);
  818. }
  819. JNIEXPORT void JNICALL
  820. Java_java_Runnable_setRunnable(JNIEnv *env, jobject this, jobject v) {
  821. int32_t o = go_seq_to_refnum_go(env, this);
  822. int32_t _v = go_seq_to_refnum(env, v);
  823. proxyjava_Runnable_Runnable_Set(o, _v);
  824. }
  825. JNIEXPORT jobject JNICALL
  826. Java_java_Runnable_getRunnable(JNIEnv *env, jobject this) {
  827. int32_t o = go_seq_to_refnum_go(env, this);
  828. int32_t r0 = proxyjava_Runnable_Runnable_Get(o);
  829. jobject _r0 = go_seq_from_refnum(env, r0, NULL, NULL);
  830. return _r0;
  831. }