Lines Matching defs:obj
43 jobject obj() const { return obj_; }
51 // Takes ownership of the |obj| reference passed; requires it to be a local
53 JavaRef(JNIEnv* env, jobject obj);
59 JNIEnv* SetNewLocalRef(JNIEnv* env, jobject obj);
60 void SetNewGlobalRef(JNIEnv* env, jobject obj);
77 T obj() const { return static_cast<T>(JavaRef<jobject>::obj()); }
83 JavaRef(JNIEnv* env, T obj) : JavaRef<jobject>(env, obj) {}
108 this->SetNewLocalRef(env_, other.obj());
117 // Assumes that |obj| is a local reference to a Java object and takes
119 ScopedJavaLocalRef(JNIEnv* env, T obj) : JavaRef<T>(env, obj), env_(env) {}
140 this->Reset(other.env_, other.obj());
147 this->Reset(env_, other.obj());
151 void Reset(JNIEnv* env, U obj) {
152 implicit_cast<T>(obj); // Ensure U is assignable to T
153 env_ = this->SetNewLocalRef(env, obj);
196 this->Reset(NULL, other.obj());
200 void Reset(JNIEnv* env, U obj) {
201 implicit_cast<T>(obj); // Ensure U is assignable to T
202 this->SetNewGlobalRef(env, obj);