| 6 | namespace 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 | { |
nothing calls this directly
no test coverage detected