MCPcopy Create free account
hub / github.com/NativeScript/android / CheckForClassInCache

Method CheckForClassInCache

test-app/runtime/src/main/cpp/JEnv.cpp:759–768  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

757}
758
759jclass JEnv::CheckForClassInCache(const string &className) {
760 jclass global_class = nullptr;
761 auto itFound = s_classCache.find(className);
762
763 if (itFound != s_classCache.end()) {
764 global_class = itFound->second;
765 }
766
767 return global_class;
768}
769
770jclass JEnv::InsertClassIntoCache(const string &className, jclass &tmp) {
771 auto global_class = reinterpret_cast<jclass>(m_env->NewGlobalRef(tmp));

Callers 1

ResolveClassMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected