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

Method newObject

valdi_core/src/valdi_core/jni/JavaClass.hpp:121–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119
120 template<typename... T>
121 ::djinni::LocalRef<jobject> newObject(JavaMethod<ConstructorType, T...>& constructor, T... args) {
122 const int ksize = sizeof...(args);
123 JavaValue parameters[ksize] = {toJavaValue(getEnv(), args)...};
124
125 return newObjectUntyped(constructor, &parameters[0], ksize);
126 }
127
128 AnyJavaMethod getMethod(const char* name,
129 const Valdi::ValueFunctionSchema& functionSchema,

Callers 11

doUnmarshallMethod · 0.45
toJavaObjectFunction · 0.45
newValdiExceptionFunction · 0.45
newJavaBooleanObjectFunction · 0.45
newJavaFloatObjectFunction · 0.45
newJavaDoubleObjectFunction · 0.45
newJavaIntObjectFunction · 0.45
newJavaLongObjectFunction · 0.45
newWeakReferenceFunction · 0.45
createJavaFunctionMethod · 0.45

Calls 2

toJavaValueFunction · 0.85
getEnvFunction · 0.50

Tested by

no test coverage detected