Lines Matching refs:get
52 T get() const { in get() function in scoped_local_ref
78 if (c.get() == NULL) { in jniRegisterNativeMethods()
84 if ((*env)->RegisterNatives(e, c.get(), gMethods, numMethods) < 0) { in jniRegisterNativeMethods()
104 (*env)->GetObjectClass(e, exceptionClass.get())); // java.lang.Class, can't fail in getExceptionSummary()
106 (*env)->GetMethodID(e, classClass.get(), "getName", "()Ljava/lang/String;"); in getExceptionSummary()
108 (jstring) (*env)->CallObjectMethod(e, exceptionClass.get(), classGetNameMethod)); in getExceptionSummary()
109 if (classNameStr.get() == NULL) { in getExceptionSummary()
114 const char* classNameChars = (*env)->GetStringUTFChars(e, classNameStr.get(), NULL); in getExceptionSummary()
121 (*env)->ReleaseStringUTFChars(e, classNameStr.get(), classNameChars); in getExceptionSummary()
125 (*env)->GetMethodID(e, exceptionClass.get(), "getMessage", "()Ljava/lang/String;"); in getExceptionSummary()
128 if (messageStr.get() == NULL) { in getExceptionSummary()
134 const char* messageChars = (*env)->GetStringUTFChars(e, messageStr.get(), NULL); in getExceptionSummary()
137 (*env)->ReleaseStringUTFChars(e, messageStr.get(), messageChars); in getExceptionSummary()
153 if (stringWriterClass.get() == NULL) { in getStackTrace()
157 jmethodID stringWriterCtor = (*env)->GetMethodID(e, stringWriterClass.get(), "<init>", "()V"); in getStackTrace()
159 (*env)->GetMethodID(e, stringWriterClass.get(), "toString", "()Ljava/lang/String;"); in getStackTrace()
162 if (printWriterClass.get() == NULL) { in getStackTrace()
167 (*env)->GetMethodID(e, printWriterClass.get(), "<init>", "(Ljava/io/Writer;)V"); in getStackTrace()
170 (*env)->NewObject(e, stringWriterClass.get(), stringWriterCtor)); in getStackTrace()
171 if (stringWriter.get() == NULL) { in getStackTrace()
176 (*env)->NewObject(e, printWriterClass.get(), printWriterCtor, stringWriter.get())); in getStackTrace()
177 if (printWriter.get() == NULL) { in getStackTrace()
183 … (*env)->GetMethodID(e, exceptionClass.get(), "printStackTrace", "(Ljava/io/PrintWriter;)V"); in getStackTrace()
184 (*env)->CallVoidMethod(e, exception, printStackTraceMethod, printWriter.get()); in getStackTrace()
191 (jstring) (*env)->CallObjectMethod(e, stringWriter.get(), stringWriterToStringMethod)); in getStackTrace()
192 if (messageStr.get() == NULL) { in getStackTrace()
196 const char* utfChars = (*env)->GetStringUTFChars(e, messageStr.get(), NULL); in getStackTrace()
203 (*env)->ReleaseStringUTFChars(e, messageStr.get(), utfChars); in getStackTrace()
215 if (exception.get() != NULL) { in jniThrowException()
217 getExceptionSummary(env, exception.get(), text); in jniThrowException()
223 if (exceptionClass.get() == NULL) { in jniThrowException()
229 if ((*env)->ThrowNew(e, exceptionClass.get(), msg) != JNI_OK) { in jniThrowException()
263 exception = currentException.get(); in jniGetStackTrace()
269 if (currentException.get() != NULL) { in jniGetStackTrace()
279 if (currentException.get() != NULL) { in jniGetStackTrace()
280 (*env)->Throw(e, currentException.get()); // rethrow in jniGetStackTrace()
338 …static jmethodID get = e->GetMethodID(JniConstants::referenceClass, "get", "()Ljava/lang/Object;"); in jniGetReferent() local
339 return (*env)->CallObjectMethod(e, ref, get); in jniGetReferent()