MCPcopy Create free account
hub / github.com/Snapchat/Valdi / fromReflectedMethod

Method fromReflectedMethod

valdi_core/src/valdi_core/jni/JavaMethod.cpp:208–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208AnyJavaMethod AnyJavaMethod::fromReflectedMethod(jobject reflectedMethod,
209 bool isStatic,
210 std::optional<JavaValueType> returnType) {
211 auto invoker = getInvokerForMethodType(isStatic, returnType);
212
213 auto* methodId = JavaEnv::accessEnvRet([&](JNIEnv& env) { return env.FromReflectedMethod(reflectedMethod); });
214
215 return AnyJavaMethod(JavaEnv(), methodId, invoker);
216}
217
218} // namespace ValdiAndroid

Callers

nothing calls this directly

Calls 2

AnyJavaMethodClass · 0.85
JavaEnvClass · 0.70

Tested by

no test coverage detected