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

Method newFunctionClass

valdi/src/valdi/android/JavaValueDelegate.cpp:280–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280Valdi::Ref<Valdi::PlatformFunctionClassDelegate<JavaValue>> JavaValueDelegate::newFunctionClass(
281 const Valdi::Ref<Valdi::PlatformFunctionTrampoline<JavaValue>>& trampoline,
282 const Valdi::Ref<Valdi::ValueFunctionSchema>& schema,
283 Valdi::ExceptionTracker& exceptionTracker) {
284 if (schema->getAttributes().isMethod()) {
285 return Valdi::makeShared<JavaMethodClassDelegate>(trampoline);
286 } else {
287 return Valdi::makeShared<JavaFunctionClassDelegate>(trampoline);
288 }
289}
290
291bool JavaValueDelegate::valueIsNull(const JavaValue& value) const {
292 return value.isNull();

Callers 1

Calls 2

isMethodMethod · 0.80
getAttributesMethod · 0.65

Tested by

no test coverage detected