MCPcopy Create free account
hub / github.com/AshampooSystems/boden / init

Method init

framework/foundation/platforms/android/src/java/MethodId.cpp:8–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6namespace bdn::java
7{
8 void MethodId::init(wrapper::Class &cls, const std::string &methodName, const std::string &methodSignature)
9 {
10 Env &env = Env::get();
11
12 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-cstyle-cast)
13 auto clsObject = (jclass)cls.getJObject_();
14 jmethodID methodId = env.getJniEnv()->GetMethodID(clsObject, methodName.c_str(), methodSignature.c_str());
15
16 init(methodId);
17 }
18
19 void MethodId::initStatic(wrapper::Class &cls, const std::string &methodName, const std::string &methodSignature)
20 {

Callers

nothing calls this directly

Calls 3

getJObject_Method · 0.80
GetMethodIDMethod · 0.80
getJniEnvMethod · 0.80

Tested by

no test coverage detected