\#include "pch.h" \#include"cstring" \#include \#include "framework.h" \#include \#include \#include \#include #{foreach} ($mpkEntity in $entities) #{foreach} ($entity in $mpkEntity.modelMethods) JNIEXPORT jobject JNICALL Java_${mpkEntity.pkgName.replace('.','_')}_impl_${mpkEntity.pyName}Impl_${mpkEntity.pyName}${entity.methodName}(JNIEnv* env, jobject object1, #{foreach} ($column in [1..$entity.dataLength])jobjectArray data${column}, #{end}#{if}($entity.model==1)jobject model_path_, #{end}jobject settings) { jclass class_hashmap = env->FindClass("java/util/HashMap"); jmethodID hashmap_construct_method = env->GetMethodID(class_hashmap, "", "()V"); jobject obj_hashmap = env->NewObject(class_hashmap, hashmap_construct_method, ""); env->DeleteLocalRef(class_hashmap); obj_hashmap = ${mpkEntity.pyName}_${entity.methodName}(env, #{foreach} ($column in [1..$entity.dataLength])data${column}, #{end}#{if}($entity.model==1)model_path_, #{end}settings); return obj_hashmap; } #{end} #{end}