Home | History | Annotate | Download | only in libnativehelper

Lines Matching refs:get

48     T get() const {
74 if (c.get() == NULL) {
79 if ((*env)->RegisterNatives(e, c.get(), gMethods, numMethods) < 0) {
95 /* get the name of the exception's class */
98 (*env)->GetObjectClass(e, exceptionClass.get())); // java.lang.Class, can't fail
100 (*env)->GetMethodID(e, classClass.get(), "getName", "()Ljava/lang/String;");
102 (jstring) (*env)->CallObjectMethod(e, exceptionClass.get(), classGetNameMethod));
103 if (classNameStr.get() == NULL) {
107 /* get printable string */
108 const char* classNameChars = (*env)->GetStringUTFChars(e, classNameStr.get(), NULL);
113 /* if the exception has a detail message, get that */
115 (*env)->GetMethodID(e, exceptionClass.get(), "getMessage", "()Ljava/lang/String;");
118 if (messageStr.get() == NULL) {
123 const char* messageChars = (*env)->GetStringUTFChars(e, messageStr.get(), NULL);
126 (*env)->ReleaseStringUTFChars(e, messageStr.get(), messageChars);
132 (*env)->ReleaseStringUTFChars(e, classNameStr.get(), classNameChars);
153 if (stringWriterClass.get() == NULL) {
157 jmethodID stringWriterCtor = (*env)->GetMethodID(e, stringWriterClass.get(), "<init>", "()V");
159 (*env)->GetMethodID(e, stringWriterClass.get(), "toString", "()Ljava/lang/String;");
162 if (printWriterClass.get() == NULL) {
167 (*env)->GetMethodID(e, printWriterClass.get(), "<init>", "(Ljava/io/Writer;)V");
170 (*env)->NewObject(e, stringWriterClass.get(), stringWriterCtor));
171 if (stringWriter.get() == NULL) {
176 (*env)->NewObject(e, printWriterClass.get(), printWriterCtor, stringWriter.get());
183 (*env)->GetMethodID(e, exceptionClass.get(), "printStackTrace", "(Ljava/io/PrintWriter;)V");
191 (jstring) (*env)->CallObjectMethod(e, stringWriter.get(), stringWriterToStringMethod));
192 if (messageStr.get() == NULL) {
196 const char* utfChars = (*env)->GetStringUTFChars(e, messageStr.get(), NULL);
202 (*env)->ReleaseStringUTFChars(e, messageStr.get(), utfChars);
214 if (exception.get() != NULL) {
215 char* text = getExceptionSummary(env, exception.get());
222 if (exceptionClass.get() == NULL) {
228 if ((*env)->ThrowNew(e, exceptionClass.get(), msg) != JNI_OK) {
280 if (currentException.get() != NULL) {
355 * Get a pointer to the elements of a non-movable array.