| 403 | return javaFunction->toObject(); |
| 404 | } |
| 405 | |
| 406 | auto* functionCopy = new Valdi::Value(value); |
| 407 | |
| 408 | auto actionObject = JavaEnv::getCache().getValdiFunctionNativeClass().newObject( |
| 409 | JavaEnv::getCache().getValdiFunctionNativeConstructorMethod(), reinterpret_cast<int64_t>(functionCopy)); |
| 410 | return JavaObject(env, std::move(actionObject)); |
| 411 | } |
| 412 | |
| 413 | djinni::LocalRef<jobject> newJavaBooleanObject(bool value) { |
| 414 | auto& cache = JavaCache::get(); |
| 415 | return cache.getBooleanClass().newObject(cache.getBooleanConstructorMethod(), value); |
| 416 | } |
| 417 | |
| 418 | djinni::LocalRef<jobject> newJavaFloatObject(float value) { |
| 419 | auto& cache = JavaCache::get(); |
| 420 | return cache.getFloatClass().newObject(cache.getFloatConstructorMethod(), value); |
no outgoing calls
no test coverage detected