Lines Matching refs:env

25 nxt_java_jni_init(JNIEnv *env)  in nxt_java_jni_init()  argument
29 cls = (*env)->FindClass(env, "java/util/NoSuchElementException"); in nxt_java_jni_init()
34 nxt_java_NoSuchElementException_class = (*env)->NewGlobalRef(env, cls); in nxt_java_jni_init()
35 (*env)->DeleteLocalRef(env, cls); in nxt_java_jni_init()
38 cls = (*env)->FindClass(env, "java/io/IOException"); in nxt_java_jni_init()
40 (*env)->DeleteGlobalRef(env, nxt_java_NoSuchElementException_class); in nxt_java_jni_init()
44 nxt_java_IOException_class = (*env)->NewGlobalRef(env, cls); in nxt_java_jni_init()
45 (*env)->DeleteLocalRef(env, cls); in nxt_java_jni_init()
48 cls = (*env)->FindClass(env, "java/lang/IllegalStateException"); in nxt_java_jni_init()
50 (*env)->DeleteGlobalRef(env, nxt_java_NoSuchElementException_class); in nxt_java_jni_init()
51 (*env)->DeleteGlobalRef(env, nxt_java_IOException_class); in nxt_java_jni_init()
55 nxt_java_IllegalStateException_class = (*env)->NewGlobalRef(env, cls); in nxt_java_jni_init()
56 (*env)->DeleteLocalRef(env, cls); in nxt_java_jni_init()
59 cls = (*env)->FindClass(env, "java/io/File"); in nxt_java_jni_init()
61 (*env)->DeleteGlobalRef(env, nxt_java_NoSuchElementException_class); in nxt_java_jni_init()
62 (*env)->DeleteGlobalRef(env, nxt_java_IOException_class); in nxt_java_jni_init()
63 (*env)->DeleteGlobalRef(env, nxt_java_IllegalStateException_class); in nxt_java_jni_init()
67 nxt_java_File_class = (*env)->NewGlobalRef(env, cls); in nxt_java_jni_init()
68 (*env)->DeleteLocalRef(env, cls); in nxt_java_jni_init()
71 nxt_java_File_ctor = (*env)->GetMethodID(env, nxt_java_File_class, "<init>", in nxt_java_jni_init()
74 (*env)->DeleteGlobalRef(env, nxt_java_NoSuchElementException_class); in nxt_java_jni_init()
75 (*env)->DeleteGlobalRef(env, nxt_java_IOException_class); in nxt_java_jni_init()
76 (*env)->DeleteGlobalRef(env, nxt_java_IllegalStateException_class); in nxt_java_jni_init()
77 (*env)->DeleteGlobalRef(env, nxt_java_File_class); in nxt_java_jni_init()
86 nxt_java_throw_NoSuchElementException(JNIEnv *env, const char *msg) in nxt_java_throw_NoSuchElementException() argument
88 (*env)->ThrowNew(env, nxt_java_NoSuchElementException_class, msg); in nxt_java_throw_NoSuchElementException()
93 nxt_java_throw_IOException(JNIEnv *env, const char *msg) in nxt_java_throw_IOException() argument
95 (*env)->ThrowNew(env, nxt_java_IOException_class, msg); in nxt_java_throw_IOException()
100 nxt_java_throw_IllegalStateException(JNIEnv *env, const char *msg) in nxt_java_throw_IllegalStateException() argument
102 (*env)->ThrowNew(env, nxt_java_IllegalStateException_class, msg); in nxt_java_throw_IllegalStateException()
157 nxt_java_newString(JNIEnv *env, char *str, uint32_t len) in nxt_java_newString() argument
168 res = (*env)->NewStringUTF(env, str); in nxt_java_newString()