github.com/F4RD1N/gomobile@v1.0.1/bind/testdata/doc.java.c.golden (about) 1 // Code generated by gobind. DO NOT EDIT. 2 3 // JNI functions for the Go <=> Java bridge. 4 // 5 // autogenerated by gobind -lang=java doc 6 7 #include <android/log.h> 8 #include <stdint.h> 9 #include "seq.h" 10 #include "_cgo_export.h" 11 #include "doc.h" 12 13 jclass proxy_class_doc_I; 14 jmethodID proxy_class_doc_I_cons; 15 static jmethodID mid_I_IM; 16 jclass proxy_class_doc_NoDoc; 17 jmethodID proxy_class_doc_NoDoc_cons; 18 jclass proxy_class_doc_S; 19 jmethodID proxy_class_doc_S_cons; 20 jclass proxy_class_doc_S2; 21 jmethodID proxy_class_doc_S2_cons; 22 23 JNIEXPORT void JNICALL 24 Java_doc_Doc__1init(JNIEnv *env, jclass _unused) { 25 jclass clazz; 26 clazz = (*env)->FindClass(env, "doc/NoDoc"); 27 proxy_class_doc_NoDoc = (*env)->NewGlobalRef(env, clazz); 28 proxy_class_doc_NoDoc_cons = (*env)->GetMethodID(env, clazz, "<init>", "(I)V"); 29 clazz = (*env)->FindClass(env, "doc/S"); 30 proxy_class_doc_S = (*env)->NewGlobalRef(env, clazz); 31 proxy_class_doc_S_cons = (*env)->GetMethodID(env, clazz, "<init>", "(I)V"); 32 clazz = (*env)->FindClass(env, "doc/S2"); 33 proxy_class_doc_S2 = (*env)->NewGlobalRef(env, clazz); 34 proxy_class_doc_S2_cons = (*env)->GetMethodID(env, clazz, "<init>", "(I)V"); 35 clazz = (*env)->FindClass(env, "doc/Doc$proxyI"); 36 proxy_class_doc_I = (*env)->NewGlobalRef(env, clazz); 37 proxy_class_doc_I_cons = (*env)->GetMethodID(env, clazz, "<init>", "(I)V"); 38 clazz = (*env)->FindClass(env, "doc/I"); 39 mid_I_IM = (*env)->GetMethodID(env, clazz, "im", "()V"); 40 41 } 42 43 JNIEXPORT void JNICALL 44 Java_doc_Doc_f(JNIEnv* env, jclass _clazz) { 45 proxydoc__F(); 46 } 47 48 JNIEXPORT jobject JNICALL 49 Java_doc_Doc_newS(JNIEnv* env, jclass _clazz) { 50 int32_t r0 = proxydoc__NewS(); 51 jobject _r0 = go_seq_from_refnum(env, r0, proxy_class_doc_S, proxy_class_doc_S_cons); 52 return _r0; 53 } 54 55 JNIEXPORT jint JNICALL 56 Java_doc_NoDoc__1_1New(JNIEnv *env, jclass clazz) { 57 return new_doc_NoDoc(); 58 } 59 60 JNIEXPORT jint JNICALL 61 Java_doc_S__1_1NewS(JNIEnv *env, jclass clazz) { 62 int32_t refnum = proxydoc__NewS(); 63 return refnum; 64 } 65 66 JNIEXPORT void JNICALL 67 Java_doc_S_after(JNIEnv* env, jobject __this__) { 68 int32_t o = go_seq_to_refnum_go(env, __this__); 69 proxydoc_S_After(o); 70 } 71 72 JNIEXPORT void JNICALL 73 Java_doc_S_before(JNIEnv* env, jobject __this__) { 74 int32_t o = go_seq_to_refnum_go(env, __this__); 75 proxydoc_S_Before(o); 76 } 77 78 JNIEXPORT void JNICALL 79 Java_doc_S_setSF(JNIEnv *env, jobject this, jstring v) { 80 int32_t o = go_seq_to_refnum_go(env, this); 81 nstring _v = go_seq_from_java_string(env, v); 82 proxydoc_S_SF_Set(o, _v); 83 } 84 85 JNIEXPORT jstring JNICALL 86 Java_doc_S_getSF(JNIEnv *env, jobject this) { 87 int32_t o = go_seq_to_refnum_go(env, this); 88 nstring r0 = proxydoc_S_SF_Get(o); 89 jstring _r0 = go_seq_to_java_string(env, r0); 90 return _r0; 91 } 92 93 JNIEXPORT void JNICALL 94 Java_doc_S_setS2(JNIEnv *env, jobject this, jobject v) { 95 int32_t o = go_seq_to_refnum_go(env, this); 96 int32_t _v = go_seq_to_refnum(env, v); 97 proxydoc_S_S2_Set(o, _v); 98 } 99 100 JNIEXPORT jobject JNICALL 101 Java_doc_S_getS2(JNIEnv *env, jobject this) { 102 int32_t o = go_seq_to_refnum_go(env, this); 103 int32_t r0 = proxydoc_S_S2_Get(o); 104 jobject _r0 = go_seq_from_refnum(env, r0, proxy_class_doc_S2, proxy_class_doc_S2_cons); 105 return _r0; 106 } 107 108 JNIEXPORT void JNICALL 109 Java_doc_S_setF1(JNIEnv *env, jobject this, jstring v) { 110 int32_t o = go_seq_to_refnum_go(env, this); 111 nstring _v = go_seq_from_java_string(env, v); 112 proxydoc_S_F1_Set(o, _v); 113 } 114 115 JNIEXPORT jstring JNICALL 116 Java_doc_S_getF1(JNIEnv *env, jobject this) { 117 int32_t o = go_seq_to_refnum_go(env, this); 118 nstring r0 = proxydoc_S_F1_Get(o); 119 jstring _r0 = go_seq_to_java_string(env, r0); 120 return _r0; 121 } 122 123 JNIEXPORT void JNICALL 124 Java_doc_S_setF2(JNIEnv *env, jobject this, jstring v) { 125 int32_t o = go_seq_to_refnum_go(env, this); 126 nstring _v = go_seq_from_java_string(env, v); 127 proxydoc_S_F2_Set(o, _v); 128 } 129 130 JNIEXPORT jstring JNICALL 131 Java_doc_S_getF2(JNIEnv *env, jobject this) { 132 int32_t o = go_seq_to_refnum_go(env, this); 133 nstring r0 = proxydoc_S_F2_Get(o); 134 jstring _r0 = go_seq_to_java_string(env, r0); 135 return _r0; 136 } 137 138 JNIEXPORT jint JNICALL 139 Java_doc_S2__1_1New(JNIEnv *env, jclass clazz) { 140 return new_doc_S2(); 141 } 142 143 JNIEXPORT void JNICALL 144 Java_doc_Doc_00024proxyI_im(JNIEnv* env, jobject __this__) { 145 int32_t o = go_seq_to_refnum_go(env, __this__); 146 proxydoc_I_IM(o); 147 } 148 149 void cproxydoc_I_IM(int32_t refnum) { 150 JNIEnv *env = go_seq_push_local_frame(0); 151 jobject o = go_seq_from_refnum(env, refnum, proxy_class_doc_I, proxy_class_doc_I_cons); 152 (*env)->CallVoidMethod(env, o, mid_I_IM); 153 go_seq_pop_local_frame(env); 154 } 155 156 JNIEXPORT void JNICALL 157 Java_doc_Doc_setNoDocVar(JNIEnv *env, jclass clazz, jdouble v) { 158 double _v = (double)v; 159 var_setdoc_NoDocVar(_v); 160 } 161 162 JNIEXPORT jdouble JNICALL 163 Java_doc_Doc_getNoDocVar(JNIEnv *env, jclass clazz) { 164 double r0 = var_getdoc_NoDocVar(); 165 jdouble _r0 = (jdouble)r0; 166 return _r0; 167 } 168 169 JNIEXPORT void JNICALL 170 Java_doc_Doc_setSpecific(JNIEnv *env, jclass clazz, jstring v) { 171 nstring _v = go_seq_from_java_string(env, v); 172 var_setdoc_Specific(_v); 173 } 174 175 JNIEXPORT jstring JNICALL 176 Java_doc_Doc_getSpecific(JNIEnv *env, jclass clazz) { 177 nstring r0 = var_getdoc_Specific(); 178 jstring _r0 = go_seq_to_java_string(env, r0); 179 return _r0; 180 } 181 182 JNIEXPORT void JNICALL 183 Java_doc_Doc_setV(JNIEnv *env, jclass clazz, jstring v) { 184 nstring _v = go_seq_from_java_string(env, v); 185 var_setdoc_V(_v); 186 } 187 188 JNIEXPORT jstring JNICALL 189 Java_doc_Doc_getV(JNIEnv *env, jclass clazz) { 190 nstring r0 = var_getdoc_V(); 191 jstring _r0 = go_seq_to_java_string(env, r0); 192 return _r0; 193 } 194