blob: e5937df54eb9974371d82de58e00ff54928c4df4 [file]
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Autogenerated by jnigen. DO NOT EDIT!
#include <stdint.h>
#include "dartjni.h"
#include "jni.h"
thread_local JNIEnv* jniEnv;
JniContext jni;
JniContext (*context_getter)(void);
JNIEnv* (*env_getter)(void);
void setJniGetters(JniContext (*cg)(void), JNIEnv* (*eg)(void)) {
context_getter = cg;
env_getter = eg;
}
// com.github.dart_lang.jnigen.simple_package.Example
jclass _c_Example = NULL;
jmethodID _m_Example__ctor = NULL;
FFI_PLUGIN_EXPORT
JniResult Example__ctor() {
load_env();
load_class_gr(&_c_Example,
"com/github/dart_lang/jnigen/simple_package/Example");
if (_c_Example == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_Example, &_m_Example__ctor, "<init>", "()V");
if (_m_Example__ctor == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result = (*jniEnv)->NewObject(jniEnv, _c_Example, _m_Example__ctor);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
jmethodID _m_Example__ctor1 = NULL;
FFI_PLUGIN_EXPORT
JniResult Example__ctor1(int32_t internal) {
load_env();
load_class_gr(&_c_Example,
"com/github/dart_lang/jnigen/simple_package/Example");
if (_c_Example == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_Example, &_m_Example__ctor1, "<init>", "(I)V");
if (_m_Example__ctor1 == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result =
(*jniEnv)->NewObject(jniEnv, _c_Example, _m_Example__ctor1, internal);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
jmethodID _m_Example__whichExample = NULL;
FFI_PLUGIN_EXPORT
JniResult Example__whichExample(jobject self_) {
load_env();
load_class_gr(&_c_Example,
"com/github/dart_lang/jnigen/simple_package/Example");
if (_c_Example == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_Example, &_m_Example__whichExample, "whichExample", "()I");
if (_m_Example__whichExample == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
int32_t _result =
(*jniEnv)->CallIntMethod(jniEnv, self_, _m_Example__whichExample);
return (JniResult){.result = {.i = _result}, .exception = check_exception()};
}
jmethodID _m_Example__getAux = NULL;
FFI_PLUGIN_EXPORT
JniResult Example__getAux() {
load_env();
load_class_gr(&_c_Example,
"com/github/dart_lang/jnigen/simple_package/Example");
if (_c_Example == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_static_method(
_c_Example, &_m_Example__getAux, "getAux",
"()Lcom/github/dart_lang/jnigen/simple_package/Example$Aux;");
if (_m_Example__getAux == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result =
(*jniEnv)->CallStaticObjectMethod(jniEnv, _c_Example, _m_Example__getAux);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
jmethodID _m_Example__addInts = NULL;
FFI_PLUGIN_EXPORT
JniResult Example__addInts(int32_t a, int32_t b) {
load_env();
load_class_gr(&_c_Example,
"com/github/dart_lang/jnigen/simple_package/Example");
if (_c_Example == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_static_method(_c_Example, &_m_Example__addInts, "addInts", "(II)I");
if (_m_Example__addInts == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
int32_t _result = (*jniEnv)->CallStaticIntMethod(jniEnv, _c_Example,
_m_Example__addInts, a, b);
return (JniResult){.result = {.i = _result}, .exception = check_exception()};
}
jmethodID _m_Example__getArr = NULL;
FFI_PLUGIN_EXPORT
JniResult Example__getArr() {
load_env();
load_class_gr(&_c_Example,
"com/github/dart_lang/jnigen/simple_package/Example");
if (_c_Example == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_static_method(_c_Example, &_m_Example__getArr, "getArr", "()[I");
if (_m_Example__getArr == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result =
(*jniEnv)->CallStaticObjectMethod(jniEnv, _c_Example, _m_Example__getArr);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
jmethodID _m_Example__addAll = NULL;
FFI_PLUGIN_EXPORT
JniResult Example__addAll(jobject arr) {
load_env();
load_class_gr(&_c_Example,
"com/github/dart_lang/jnigen/simple_package/Example");
if (_c_Example == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_static_method(_c_Example, &_m_Example__addAll, "addAll", "([I)I");
if (_m_Example__addAll == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
int32_t _result = (*jniEnv)->CallStaticIntMethod(jniEnv, _c_Example,
_m_Example__addAll, arr);
return (JniResult){.result = {.i = _result}, .exception = check_exception()};
}
jmethodID _m_Example__getSelf = NULL;
FFI_PLUGIN_EXPORT
JniResult Example__getSelf(jobject self_) {
load_env();
load_class_gr(&_c_Example,
"com/github/dart_lang/jnigen/simple_package/Example");
if (_c_Example == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_Example, &_m_Example__getSelf, "getSelf",
"()Lcom/github/dart_lang/jnigen/simple_package/Example;");
if (_m_Example__getSelf == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result =
(*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Example__getSelf);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
jmethodID _m_Example__getNum = NULL;
FFI_PLUGIN_EXPORT
JniResult Example__getNum(jobject self_) {
load_env();
load_class_gr(&_c_Example,
"com/github/dart_lang/jnigen/simple_package/Example");
if (_c_Example == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_Example, &_m_Example__getNum, "getNum", "()I");
if (_m_Example__getNum == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
int32_t _result = (*jniEnv)->CallIntMethod(jniEnv, self_, _m_Example__getNum);
return (JniResult){.result = {.i = _result}, .exception = check_exception()};
}
jmethodID _m_Example__setNum = NULL;
FFI_PLUGIN_EXPORT
JniResult Example__setNum(jobject self_, int32_t num) {
load_env();
load_class_gr(&_c_Example,
"com/github/dart_lang/jnigen/simple_package/Example");
if (_c_Example == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_Example, &_m_Example__setNum, "setNum", "(I)V");
if (_m_Example__setNum == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
(*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Example__setNum, num);
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
}
jmethodID _m_Example__getInternal = NULL;
FFI_PLUGIN_EXPORT
JniResult Example__getInternal(jobject self_) {
load_env();
load_class_gr(&_c_Example,
"com/github/dart_lang/jnigen/simple_package/Example");
if (_c_Example == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_Example, &_m_Example__getInternal, "getInternal", "()I");
if (_m_Example__getInternal == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
int32_t _result =
(*jniEnv)->CallIntMethod(jniEnv, self_, _m_Example__getInternal);
return (JniResult){.result = {.i = _result}, .exception = check_exception()};
}
jmethodID _m_Example__setInternal = NULL;
FFI_PLUGIN_EXPORT
JniResult Example__setInternal(jobject self_, int32_t internal) {
load_env();
load_class_gr(&_c_Example,
"com/github/dart_lang/jnigen/simple_package/Example");
if (_c_Example == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_Example, &_m_Example__setInternal, "setInternal", "(I)V");
if (_m_Example__setInternal == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
(*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Example__setInternal, internal);
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
}
jmethodID _m_Example__throwException = NULL;
FFI_PLUGIN_EXPORT
JniResult Example__throwException() {
load_env();
load_class_gr(&_c_Example,
"com/github/dart_lang/jnigen/simple_package/Example");
if (_c_Example == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_static_method(_c_Example, &_m_Example__throwException, "throwException",
"()V");
if (_m_Example__throwException == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
(*jniEnv)->CallStaticVoidMethod(jniEnv, _c_Example,
_m_Example__throwException);
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
}
jfieldID _f_Example__aux = NULL;
FFI_PLUGIN_EXPORT
JniResult get_Example__aux() {
load_env();
load_class_gr(&_c_Example,
"com/github/dart_lang/jnigen/simple_package/Example");
if (_c_Example == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_static_field(_c_Example, &_f_Example__aux, "aux",
"Lcom/github/dart_lang/jnigen/simple_package/Example$Aux;");
jobject _result = to_global_ref(
(*jniEnv)->GetStaticObjectField(jniEnv, _c_Example, _f_Example__aux));
return (JniResult){.result = {.l = _result}, .exception = check_exception()};
}
FFI_PLUGIN_EXPORT
JniResult set_Example__aux(jobject value) {
load_env();
load_class_gr(&_c_Example,
"com/github/dart_lang/jnigen/simple_package/Example");
if (_c_Example == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_static_field(_c_Example, &_f_Example__aux, "aux",
"Lcom/github/dart_lang/jnigen/simple_package/Example$Aux;");
(*jniEnv)->SetStaticObjectField(jniEnv, _c_Example, _f_Example__aux, value);
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
}
jfieldID _f_Example__num = NULL;
FFI_PLUGIN_EXPORT
JniResult get_Example__num() {
load_env();
load_class_gr(&_c_Example,
"com/github/dart_lang/jnigen/simple_package/Example");
if (_c_Example == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_static_field(_c_Example, &_f_Example__num, "num", "I");
int32_t _result =
(*jniEnv)->GetStaticIntField(jniEnv, _c_Example, _f_Example__num);
return (JniResult){.result = {.i = _result}, .exception = check_exception()};
}
FFI_PLUGIN_EXPORT
JniResult set_Example__num(int32_t value) {
load_env();
load_class_gr(&_c_Example,
"com/github/dart_lang/jnigen/simple_package/Example");
if (_c_Example == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_static_field(_c_Example, &_f_Example__num, "num", "I");
(*jniEnv)->SetStaticIntField(jniEnv, _c_Example, _f_Example__num, value);
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
}
// com.github.dart_lang.jnigen.simple_package.Example$Aux
jclass _c_Example_Aux = NULL;
jmethodID _m_Example_Aux__ctor = NULL;
FFI_PLUGIN_EXPORT
JniResult Example_Aux__ctor(uint8_t value) {
load_env();
load_class_gr(&_c_Example_Aux,
"com/github/dart_lang/jnigen/simple_package/Example$Aux");
if (_c_Example_Aux == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_Example_Aux, &_m_Example_Aux__ctor, "<init>", "(Z)V");
if (_m_Example_Aux__ctor == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result =
(*jniEnv)->NewObject(jniEnv, _c_Example_Aux, _m_Example_Aux__ctor, value);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
jmethodID _m_Example_Aux__getValue = NULL;
FFI_PLUGIN_EXPORT
JniResult Example_Aux__getValue(jobject self_) {
load_env();
load_class_gr(&_c_Example_Aux,
"com/github/dart_lang/jnigen/simple_package/Example$Aux");
if (_c_Example_Aux == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_Example_Aux, &_m_Example_Aux__getValue, "getValue", "()Z");
if (_m_Example_Aux__getValue == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
uint8_t _result =
(*jniEnv)->CallBooleanMethod(jniEnv, self_, _m_Example_Aux__getValue);
return (JniResult){.result = {.z = _result}, .exception = check_exception()};
}
jmethodID _m_Example_Aux__setValue = NULL;
FFI_PLUGIN_EXPORT
JniResult Example_Aux__setValue(jobject self_, uint8_t value) {
load_env();
load_class_gr(&_c_Example_Aux,
"com/github/dart_lang/jnigen/simple_package/Example$Aux");
if (_c_Example_Aux == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_Example_Aux, &_m_Example_Aux__setValue, "setValue", "(Z)V");
if (_m_Example_Aux__setValue == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
(*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Example_Aux__setValue, value);
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
}
jfieldID _f_Example_Aux__value = NULL;
FFI_PLUGIN_EXPORT
JniResult get_Example_Aux__value(jobject self_) {
load_env();
load_class_gr(&_c_Example_Aux,
"com/github/dart_lang/jnigen/simple_package/Example$Aux");
if (_c_Example_Aux == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_field(_c_Example_Aux, &_f_Example_Aux__value, "value", "Z");
uint8_t _result =
(*jniEnv)->GetBooleanField(jniEnv, self_, _f_Example_Aux__value);
return (JniResult){.result = {.z = _result}, .exception = check_exception()};
}
FFI_PLUGIN_EXPORT
JniResult set_Example_Aux__value(jobject self_, uint8_t value) {
load_env();
load_class_gr(&_c_Example_Aux,
"com/github/dart_lang/jnigen/simple_package/Example$Aux");
if (_c_Example_Aux == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_field(_c_Example_Aux, &_f_Example_Aux__value, "value", "Z");
(*jniEnv)->SetBooleanField(jniEnv, self_, _f_Example_Aux__value, value);
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
}
// com.github.dart_lang.jnigen.pkg2.C2
jclass _c_C2 = NULL;
jmethodID _m_C2__ctor = NULL;
FFI_PLUGIN_EXPORT
JniResult C2__ctor() {
load_env();
load_class_gr(&_c_C2, "com/github/dart_lang/jnigen/pkg2/C2");
if (_c_C2 == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_C2, &_m_C2__ctor, "<init>", "()V");
if (_m_C2__ctor == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result = (*jniEnv)->NewObject(jniEnv, _c_C2, _m_C2__ctor);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
jfieldID _f_C2__CONSTANT = NULL;
FFI_PLUGIN_EXPORT
JniResult get_C2__CONSTANT() {
load_env();
load_class_gr(&_c_C2, "com/github/dart_lang/jnigen/pkg2/C2");
if (_c_C2 == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_static_field(_c_C2, &_f_C2__CONSTANT, "CONSTANT", "I");
int32_t _result =
(*jniEnv)->GetStaticIntField(jniEnv, _c_C2, _f_C2__CONSTANT);
return (JniResult){.result = {.i = _result}, .exception = check_exception()};
}
FFI_PLUGIN_EXPORT
JniResult set_C2__CONSTANT(int32_t value) {
load_env();
load_class_gr(&_c_C2, "com/github/dart_lang/jnigen/pkg2/C2");
if (_c_C2 == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_static_field(_c_C2, &_f_C2__CONSTANT, "CONSTANT", "I");
(*jniEnv)->SetStaticIntField(jniEnv, _c_C2, _f_C2__CONSTANT, value);
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
}
// com.github.dart_lang.jnigen.pkg2.Example
jclass _c_Example1 = NULL;
jmethodID _m_Example1__ctor = NULL;
FFI_PLUGIN_EXPORT
JniResult Example1__ctor() {
load_env();
load_class_gr(&_c_Example1, "com/github/dart_lang/jnigen/pkg2/Example");
if (_c_Example1 == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_Example1, &_m_Example1__ctor, "<init>", "()V");
if (_m_Example1__ctor == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result =
(*jniEnv)->NewObject(jniEnv, _c_Example1, _m_Example1__ctor);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
jmethodID _m_Example1__whichExample = NULL;
FFI_PLUGIN_EXPORT
JniResult Example1__whichExample(jobject self_) {
load_env();
load_class_gr(&_c_Example1, "com/github/dart_lang/jnigen/pkg2/Example");
if (_c_Example1 == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_Example1, &_m_Example1__whichExample, "whichExample", "()I");
if (_m_Example1__whichExample == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
int32_t _result =
(*jniEnv)->CallIntMethod(jniEnv, self_, _m_Example1__whichExample);
return (JniResult){.result = {.i = _result}, .exception = check_exception()};
}
// com.github.dart_lang.jnigen.generics.GrandParent
jclass _c_GrandParent = NULL;
jmethodID _m_GrandParent__ctor = NULL;
FFI_PLUGIN_EXPORT
JniResult GrandParent__ctor(jobject value) {
load_env();
load_class_gr(&_c_GrandParent,
"com/github/dart_lang/jnigen/generics/GrandParent");
if (_c_GrandParent == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_GrandParent, &_m_GrandParent__ctor, "<init>",
"(Ljava/lang/Object;)V");
if (_m_GrandParent__ctor == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result =
(*jniEnv)->NewObject(jniEnv, _c_GrandParent, _m_GrandParent__ctor, value);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
jmethodID _m_GrandParent__stringParent = NULL;
FFI_PLUGIN_EXPORT
JniResult GrandParent__stringParent(jobject self_) {
load_env();
load_class_gr(&_c_GrandParent,
"com/github/dart_lang/jnigen/generics/GrandParent");
if (_c_GrandParent == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_GrandParent, &_m_GrandParent__stringParent, "stringParent",
"()Lcom/github/dart_lang/jnigen/generics/GrandParent$Parent;");
if (_m_GrandParent__stringParent == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result =
(*jniEnv)->CallObjectMethod(jniEnv, self_, _m_GrandParent__stringParent);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
jmethodID _m_GrandParent__varParent = NULL;
FFI_PLUGIN_EXPORT
JniResult GrandParent__varParent(jobject self_, jobject nestedValue) {
load_env();
load_class_gr(&_c_GrandParent,
"com/github/dart_lang/jnigen/generics/GrandParent");
if (_c_GrandParent == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_GrandParent, &_m_GrandParent__varParent, "varParent",
"(Ljava/lang/Object;)Lcom/github/dart_lang/jnigen/generics/"
"GrandParent$Parent;");
if (_m_GrandParent__varParent == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result = (*jniEnv)->CallObjectMethod(
jniEnv, self_, _m_GrandParent__varParent, nestedValue);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
jmethodID _m_GrandParent__stringStaticParent = NULL;
FFI_PLUGIN_EXPORT
JniResult GrandParent__stringStaticParent() {
load_env();
load_class_gr(&_c_GrandParent,
"com/github/dart_lang/jnigen/generics/GrandParent");
if (_c_GrandParent == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_static_method(
_c_GrandParent, &_m_GrandParent__stringStaticParent, "stringStaticParent",
"()Lcom/github/dart_lang/jnigen/generics/GrandParent$StaticParent;");
if (_m_GrandParent__stringStaticParent == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result = (*jniEnv)->CallStaticObjectMethod(
jniEnv, _c_GrandParent, _m_GrandParent__stringStaticParent);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
jmethodID _m_GrandParent__varStaticParent = NULL;
FFI_PLUGIN_EXPORT
JniResult GrandParent__varStaticParent(jobject value) {
load_env();
load_class_gr(&_c_GrandParent,
"com/github/dart_lang/jnigen/generics/GrandParent");
if (_c_GrandParent == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_static_method(_c_GrandParent, &_m_GrandParent__varStaticParent,
"varStaticParent",
"(Ljava/lang/Object;)Lcom/github/dart_lang/jnigen/"
"generics/GrandParent$StaticParent;");
if (_m_GrandParent__varStaticParent == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result = (*jniEnv)->CallStaticObjectMethod(
jniEnv, _c_GrandParent, _m_GrandParent__varStaticParent, value);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
jmethodID _m_GrandParent__staticParentWithSameType = NULL;
FFI_PLUGIN_EXPORT
JniResult GrandParent__staticParentWithSameType(jobject self_) {
load_env();
load_class_gr(&_c_GrandParent,
"com/github/dart_lang/jnigen/generics/GrandParent");
if (_c_GrandParent == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(
_c_GrandParent, &_m_GrandParent__staticParentWithSameType,
"staticParentWithSameType",
"()Lcom/github/dart_lang/jnigen/generics/GrandParent$StaticParent;");
if (_m_GrandParent__staticParentWithSameType == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result = (*jniEnv)->CallObjectMethod(
jniEnv, self_, _m_GrandParent__staticParentWithSameType);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
jfieldID _f_GrandParent__value = NULL;
FFI_PLUGIN_EXPORT
JniResult get_GrandParent__value(jobject self_) {
load_env();
load_class_gr(&_c_GrandParent,
"com/github/dart_lang/jnigen/generics/GrandParent");
if (_c_GrandParent == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_field(_c_GrandParent, &_f_GrandParent__value, "value",
"Ljava/lang/Object;");
jobject _result = to_global_ref(
(*jniEnv)->GetObjectField(jniEnv, self_, _f_GrandParent__value));
return (JniResult){.result = {.l = _result}, .exception = check_exception()};
}
FFI_PLUGIN_EXPORT
JniResult set_GrandParent__value(jobject self_, jobject value) {
load_env();
load_class_gr(&_c_GrandParent,
"com/github/dart_lang/jnigen/generics/GrandParent");
if (_c_GrandParent == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_field(_c_GrandParent, &_f_GrandParent__value, "value",
"Ljava/lang/Object;");
(*jniEnv)->SetObjectField(jniEnv, self_, _f_GrandParent__value, value);
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
}
// com.github.dart_lang.jnigen.generics.GrandParent$Parent
jclass _c_GrandParent_Parent = NULL;
jmethodID _m_GrandParent_Parent__ctor = NULL;
FFI_PLUGIN_EXPORT
JniResult GrandParent_Parent__ctor(jobject parentValue, jobject value) {
load_env();
load_class_gr(&_c_GrandParent_Parent,
"com/github/dart_lang/jnigen/generics/GrandParent$Parent");
if (_c_GrandParent_Parent == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_GrandParent_Parent, &_m_GrandParent_Parent__ctor, "<init>",
"(Ljava/lang/Object;Ljava/lang/Object;)V");
if (_m_GrandParent_Parent__ctor == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result =
(*jniEnv)->NewObject(jniEnv, _c_GrandParent_Parent,
_m_GrandParent_Parent__ctor, parentValue, value);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
jfieldID _f_GrandParent_Parent__parentValue = NULL;
FFI_PLUGIN_EXPORT
JniResult get_GrandParent_Parent__parentValue(jobject self_) {
load_env();
load_class_gr(&_c_GrandParent_Parent,
"com/github/dart_lang/jnigen/generics/GrandParent$Parent");
if (_c_GrandParent_Parent == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_field(_c_GrandParent_Parent, &_f_GrandParent_Parent__parentValue,
"parentValue", "Ljava/lang/Object;");
jobject _result = to_global_ref((*jniEnv)->GetObjectField(
jniEnv, self_, _f_GrandParent_Parent__parentValue));
return (JniResult){.result = {.l = _result}, .exception = check_exception()};
}
FFI_PLUGIN_EXPORT
JniResult set_GrandParent_Parent__parentValue(jobject self_, jobject value) {
load_env();
load_class_gr(&_c_GrandParent_Parent,
"com/github/dart_lang/jnigen/generics/GrandParent$Parent");
if (_c_GrandParent_Parent == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_field(_c_GrandParent_Parent, &_f_GrandParent_Parent__parentValue,
"parentValue", "Ljava/lang/Object;");
(*jniEnv)->SetObjectField(jniEnv, self_, _f_GrandParent_Parent__parentValue,
value);
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
}
jfieldID _f_GrandParent_Parent__value = NULL;
FFI_PLUGIN_EXPORT
JniResult get_GrandParent_Parent__value(jobject self_) {
load_env();
load_class_gr(&_c_GrandParent_Parent,
"com/github/dart_lang/jnigen/generics/GrandParent$Parent");
if (_c_GrandParent_Parent == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_field(_c_GrandParent_Parent, &_f_GrandParent_Parent__value, "value",
"Ljava/lang/Object;");
jobject _result = to_global_ref(
(*jniEnv)->GetObjectField(jniEnv, self_, _f_GrandParent_Parent__value));
return (JniResult){.result = {.l = _result}, .exception = check_exception()};
}
FFI_PLUGIN_EXPORT
JniResult set_GrandParent_Parent__value(jobject self_, jobject value) {
load_env();
load_class_gr(&_c_GrandParent_Parent,
"com/github/dart_lang/jnigen/generics/GrandParent$Parent");
if (_c_GrandParent_Parent == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_field(_c_GrandParent_Parent, &_f_GrandParent_Parent__value, "value",
"Ljava/lang/Object;");
(*jniEnv)->SetObjectField(jniEnv, self_, _f_GrandParent_Parent__value, value);
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
}
// com.github.dart_lang.jnigen.generics.GrandParent$Parent$Child
jclass _c_GrandParent_Parent_Child = NULL;
jmethodID _m_GrandParent_Parent_Child__ctor = NULL;
FFI_PLUGIN_EXPORT
JniResult GrandParent_Parent_Child__ctor(jobject grandParentValue,
jobject parentValue,
jobject value) {
load_env();
load_class_gr(
&_c_GrandParent_Parent_Child,
"com/github/dart_lang/jnigen/generics/GrandParent$Parent$Child");
if (_c_GrandParent_Parent_Child == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_GrandParent_Parent_Child, &_m_GrandParent_Parent_Child__ctor,
"<init>",
"(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V");
if (_m_GrandParent_Parent_Child__ctor == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result = (*jniEnv)->NewObject(jniEnv, _c_GrandParent_Parent_Child,
_m_GrandParent_Parent_Child__ctor,
grandParentValue, parentValue, value);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
jfieldID _f_GrandParent_Parent_Child__grandParentValue = NULL;
FFI_PLUGIN_EXPORT
JniResult get_GrandParent_Parent_Child__grandParentValue(jobject self_) {
load_env();
load_class_gr(
&_c_GrandParent_Parent_Child,
"com/github/dart_lang/jnigen/generics/GrandParent$Parent$Child");
if (_c_GrandParent_Parent_Child == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_field(_c_GrandParent_Parent_Child,
&_f_GrandParent_Parent_Child__grandParentValue, "grandParentValue",
"Ljava/lang/Object;");
jobject _result = to_global_ref((*jniEnv)->GetObjectField(
jniEnv, self_, _f_GrandParent_Parent_Child__grandParentValue));
return (JniResult){.result = {.l = _result}, .exception = check_exception()};
}
FFI_PLUGIN_EXPORT
JniResult set_GrandParent_Parent_Child__grandParentValue(jobject self_,
jobject value) {
load_env();
load_class_gr(
&_c_GrandParent_Parent_Child,
"com/github/dart_lang/jnigen/generics/GrandParent$Parent$Child");
if (_c_GrandParent_Parent_Child == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_field(_c_GrandParent_Parent_Child,
&_f_GrandParent_Parent_Child__grandParentValue, "grandParentValue",
"Ljava/lang/Object;");
(*jniEnv)->SetObjectField(
jniEnv, self_, _f_GrandParent_Parent_Child__grandParentValue, value);
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
}
jfieldID _f_GrandParent_Parent_Child__parentValue = NULL;
FFI_PLUGIN_EXPORT
JniResult get_GrandParent_Parent_Child__parentValue(jobject self_) {
load_env();
load_class_gr(
&_c_GrandParent_Parent_Child,
"com/github/dart_lang/jnigen/generics/GrandParent$Parent$Child");
if (_c_GrandParent_Parent_Child == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_field(_c_GrandParent_Parent_Child,
&_f_GrandParent_Parent_Child__parentValue, "parentValue",
"Ljava/lang/Object;");
jobject _result = to_global_ref((*jniEnv)->GetObjectField(
jniEnv, self_, _f_GrandParent_Parent_Child__parentValue));
return (JniResult){.result = {.l = _result}, .exception = check_exception()};
}
FFI_PLUGIN_EXPORT
JniResult set_GrandParent_Parent_Child__parentValue(jobject self_,
jobject value) {
load_env();
load_class_gr(
&_c_GrandParent_Parent_Child,
"com/github/dart_lang/jnigen/generics/GrandParent$Parent$Child");
if (_c_GrandParent_Parent_Child == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_field(_c_GrandParent_Parent_Child,
&_f_GrandParent_Parent_Child__parentValue, "parentValue",
"Ljava/lang/Object;");
(*jniEnv)->SetObjectField(jniEnv, self_,
_f_GrandParent_Parent_Child__parentValue, value);
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
}
jfieldID _f_GrandParent_Parent_Child__value = NULL;
FFI_PLUGIN_EXPORT
JniResult get_GrandParent_Parent_Child__value(jobject self_) {
load_env();
load_class_gr(
&_c_GrandParent_Parent_Child,
"com/github/dart_lang/jnigen/generics/GrandParent$Parent$Child");
if (_c_GrandParent_Parent_Child == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_field(_c_GrandParent_Parent_Child, &_f_GrandParent_Parent_Child__value,
"value", "Ljava/lang/Object;");
jobject _result = to_global_ref((*jniEnv)->GetObjectField(
jniEnv, self_, _f_GrandParent_Parent_Child__value));
return (JniResult){.result = {.l = _result}, .exception = check_exception()};
}
FFI_PLUGIN_EXPORT
JniResult set_GrandParent_Parent_Child__value(jobject self_, jobject value) {
load_env();
load_class_gr(
&_c_GrandParent_Parent_Child,
"com/github/dart_lang/jnigen/generics/GrandParent$Parent$Child");
if (_c_GrandParent_Parent_Child == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_field(_c_GrandParent_Parent_Child, &_f_GrandParent_Parent_Child__value,
"value", "Ljava/lang/Object;");
(*jniEnv)->SetObjectField(jniEnv, self_, _f_GrandParent_Parent_Child__value,
value);
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
}
// com.github.dart_lang.jnigen.generics.GrandParent$StaticParent
jclass _c_GrandParent_StaticParent = NULL;
jmethodID _m_GrandParent_StaticParent__ctor = NULL;
FFI_PLUGIN_EXPORT
JniResult GrandParent_StaticParent__ctor(jobject value) {
load_env();
load_class_gr(
&_c_GrandParent_StaticParent,
"com/github/dart_lang/jnigen/generics/GrandParent$StaticParent");
if (_c_GrandParent_StaticParent == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_GrandParent_StaticParent, &_m_GrandParent_StaticParent__ctor,
"<init>", "(Ljava/lang/Object;)V");
if (_m_GrandParent_StaticParent__ctor == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result =
(*jniEnv)->NewObject(jniEnv, _c_GrandParent_StaticParent,
_m_GrandParent_StaticParent__ctor, value);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
jfieldID _f_GrandParent_StaticParent__value = NULL;
FFI_PLUGIN_EXPORT
JniResult get_GrandParent_StaticParent__value(jobject self_) {
load_env();
load_class_gr(
&_c_GrandParent_StaticParent,
"com/github/dart_lang/jnigen/generics/GrandParent$StaticParent");
if (_c_GrandParent_StaticParent == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_field(_c_GrandParent_StaticParent, &_f_GrandParent_StaticParent__value,
"value", "Ljava/lang/Object;");
jobject _result = to_global_ref((*jniEnv)->GetObjectField(
jniEnv, self_, _f_GrandParent_StaticParent__value));
return (JniResult){.result = {.l = _result}, .exception = check_exception()};
}
FFI_PLUGIN_EXPORT
JniResult set_GrandParent_StaticParent__value(jobject self_, jobject value) {
load_env();
load_class_gr(
&_c_GrandParent_StaticParent,
"com/github/dart_lang/jnigen/generics/GrandParent$StaticParent");
if (_c_GrandParent_StaticParent == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_field(_c_GrandParent_StaticParent, &_f_GrandParent_StaticParent__value,
"value", "Ljava/lang/Object;");
(*jniEnv)->SetObjectField(jniEnv, self_, _f_GrandParent_StaticParent__value,
value);
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
}
// com.github.dart_lang.jnigen.generics.GrandParent$StaticParent$Child
jclass _c_GrandParent_StaticParent_Child = NULL;
jmethodID _m_GrandParent_StaticParent_Child__ctor = NULL;
FFI_PLUGIN_EXPORT
JniResult GrandParent_StaticParent_Child__ctor(jobject parentValue,
jobject value) {
load_env();
load_class_gr(
&_c_GrandParent_StaticParent_Child,
"com/github/dart_lang/jnigen/generics/GrandParent$StaticParent$Child");
if (_c_GrandParent_StaticParent_Child == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_GrandParent_StaticParent_Child,
&_m_GrandParent_StaticParent_Child__ctor, "<init>",
"(Ljava/lang/Object;Ljava/lang/Object;)V");
if (_m_GrandParent_StaticParent_Child__ctor == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result = (*jniEnv)->NewObject(
jniEnv, _c_GrandParent_StaticParent_Child,
_m_GrandParent_StaticParent_Child__ctor, parentValue, value);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
jfieldID _f_GrandParent_StaticParent_Child__parentValue = NULL;
FFI_PLUGIN_EXPORT
JniResult get_GrandParent_StaticParent_Child__parentValue(jobject self_) {
load_env();
load_class_gr(
&_c_GrandParent_StaticParent_Child,
"com/github/dart_lang/jnigen/generics/GrandParent$StaticParent$Child");
if (_c_GrandParent_StaticParent_Child == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_field(_c_GrandParent_StaticParent_Child,
&_f_GrandParent_StaticParent_Child__parentValue, "parentValue",
"Ljava/lang/Object;");
jobject _result = to_global_ref((*jniEnv)->GetObjectField(
jniEnv, self_, _f_GrandParent_StaticParent_Child__parentValue));
return (JniResult){.result = {.l = _result}, .exception = check_exception()};
}
FFI_PLUGIN_EXPORT
JniResult set_GrandParent_StaticParent_Child__parentValue(jobject self_,
jobject value) {
load_env();
load_class_gr(
&_c_GrandParent_StaticParent_Child,
"com/github/dart_lang/jnigen/generics/GrandParent$StaticParent$Child");
if (_c_GrandParent_StaticParent_Child == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_field(_c_GrandParent_StaticParent_Child,
&_f_GrandParent_StaticParent_Child__parentValue, "parentValue",
"Ljava/lang/Object;");
(*jniEnv)->SetObjectField(
jniEnv, self_, _f_GrandParent_StaticParent_Child__parentValue, value);
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
}
jfieldID _f_GrandParent_StaticParent_Child__value = NULL;
FFI_PLUGIN_EXPORT
JniResult get_GrandParent_StaticParent_Child__value(jobject self_) {
load_env();
load_class_gr(
&_c_GrandParent_StaticParent_Child,
"com/github/dart_lang/jnigen/generics/GrandParent$StaticParent$Child");
if (_c_GrandParent_StaticParent_Child == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_field(_c_GrandParent_StaticParent_Child,
&_f_GrandParent_StaticParent_Child__value, "value",
"Ljava/lang/Object;");
jobject _result = to_global_ref((*jniEnv)->GetObjectField(
jniEnv, self_, _f_GrandParent_StaticParent_Child__value));
return (JniResult){.result = {.l = _result}, .exception = check_exception()};
}
FFI_PLUGIN_EXPORT
JniResult set_GrandParent_StaticParent_Child__value(jobject self_,
jobject value) {
load_env();
load_class_gr(
&_c_GrandParent_StaticParent_Child,
"com/github/dart_lang/jnigen/generics/GrandParent$StaticParent$Child");
if (_c_GrandParent_StaticParent_Child == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_field(_c_GrandParent_StaticParent_Child,
&_f_GrandParent_StaticParent_Child__value, "value",
"Ljava/lang/Object;");
(*jniEnv)->SetObjectField(jniEnv, self_,
_f_GrandParent_StaticParent_Child__value, value);
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
}
// com.github.dart_lang.jnigen.generics.MyMap
jclass _c_MyMap = NULL;
jmethodID _m_MyMap__ctor = NULL;
FFI_PLUGIN_EXPORT
JniResult MyMap__ctor() {
load_env();
load_class_gr(&_c_MyMap, "com/github/dart_lang/jnigen/generics/MyMap");
if (_c_MyMap == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_MyMap, &_m_MyMap__ctor, "<init>", "()V");
if (_m_MyMap__ctor == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result = (*jniEnv)->NewObject(jniEnv, _c_MyMap, _m_MyMap__ctor);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
jmethodID _m_MyMap__get0 = NULL;
FFI_PLUGIN_EXPORT
JniResult MyMap__get0(jobject self_, jobject key) {
load_env();
load_class_gr(&_c_MyMap, "com/github/dart_lang/jnigen/generics/MyMap");
if (_c_MyMap == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_MyMap, &_m_MyMap__get0, "get",
"(Ljava/lang/Object;)Ljava/lang/Object;");
if (_m_MyMap__get0 == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result =
(*jniEnv)->CallObjectMethod(jniEnv, self_, _m_MyMap__get0, key);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
jmethodID _m_MyMap__put = NULL;
FFI_PLUGIN_EXPORT
JniResult MyMap__put(jobject self_, jobject key, jobject value) {
load_env();
load_class_gr(&_c_MyMap, "com/github/dart_lang/jnigen/generics/MyMap");
if (_c_MyMap == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_MyMap, &_m_MyMap__put, "put",
"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;");
if (_m_MyMap__put == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result =
(*jniEnv)->CallObjectMethod(jniEnv, self_, _m_MyMap__put, key, value);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
jmethodID _m_MyMap__entryStack = NULL;
FFI_PLUGIN_EXPORT
JniResult MyMap__entryStack(jobject self_) {
load_env();
load_class_gr(&_c_MyMap, "com/github/dart_lang/jnigen/generics/MyMap");
if (_c_MyMap == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_MyMap, &_m_MyMap__entryStack, "entryStack",
"()Lcom/github/dart_lang/jnigen/generics/MyStack;");
if (_m_MyMap__entryStack == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result =
(*jniEnv)->CallObjectMethod(jniEnv, self_, _m_MyMap__entryStack);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
// com.github.dart_lang.jnigen.generics.MyMap$MyEntry
jclass _c_MyMap_MyEntry = NULL;
jmethodID _m_MyMap_MyEntry__ctor = NULL;
FFI_PLUGIN_EXPORT
JniResult MyMap_MyEntry__ctor(jobject key, jobject value) {
load_env();
load_class_gr(&_c_MyMap_MyEntry,
"com/github/dart_lang/jnigen/generics/MyMap$MyEntry");
if (_c_MyMap_MyEntry == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_MyMap_MyEntry, &_m_MyMap_MyEntry__ctor, "<init>",
"(Ljava/lang/Object;Ljava/lang/Object;)V");
if (_m_MyMap_MyEntry__ctor == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result = (*jniEnv)->NewObject(jniEnv, _c_MyMap_MyEntry,
_m_MyMap_MyEntry__ctor, key, value);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
jfieldID _f_MyMap_MyEntry__key = NULL;
FFI_PLUGIN_EXPORT
JniResult get_MyMap_MyEntry__key(jobject self_) {
load_env();
load_class_gr(&_c_MyMap_MyEntry,
"com/github/dart_lang/jnigen/generics/MyMap$MyEntry");
if (_c_MyMap_MyEntry == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_field(_c_MyMap_MyEntry, &_f_MyMap_MyEntry__key, "key",
"Ljava/lang/Object;");
jobject _result = to_global_ref(
(*jniEnv)->GetObjectField(jniEnv, self_, _f_MyMap_MyEntry__key));
return (JniResult){.result = {.l = _result}, .exception = check_exception()};
}
FFI_PLUGIN_EXPORT
JniResult set_MyMap_MyEntry__key(jobject self_, jobject value) {
load_env();
load_class_gr(&_c_MyMap_MyEntry,
"com/github/dart_lang/jnigen/generics/MyMap$MyEntry");
if (_c_MyMap_MyEntry == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_field(_c_MyMap_MyEntry, &_f_MyMap_MyEntry__key, "key",
"Ljava/lang/Object;");
(*jniEnv)->SetObjectField(jniEnv, self_, _f_MyMap_MyEntry__key, value);
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
}
jfieldID _f_MyMap_MyEntry__value = NULL;
FFI_PLUGIN_EXPORT
JniResult get_MyMap_MyEntry__value(jobject self_) {
load_env();
load_class_gr(&_c_MyMap_MyEntry,
"com/github/dart_lang/jnigen/generics/MyMap$MyEntry");
if (_c_MyMap_MyEntry == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_field(_c_MyMap_MyEntry, &_f_MyMap_MyEntry__value, "value",
"Ljava/lang/Object;");
jobject _result = to_global_ref(
(*jniEnv)->GetObjectField(jniEnv, self_, _f_MyMap_MyEntry__value));
return (JniResult){.result = {.l = _result}, .exception = check_exception()};
}
FFI_PLUGIN_EXPORT
JniResult set_MyMap_MyEntry__value(jobject self_, jobject value) {
load_env();
load_class_gr(&_c_MyMap_MyEntry,
"com/github/dart_lang/jnigen/generics/MyMap$MyEntry");
if (_c_MyMap_MyEntry == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_field(_c_MyMap_MyEntry, &_f_MyMap_MyEntry__value, "value",
"Ljava/lang/Object;");
(*jniEnv)->SetObjectField(jniEnv, self_, _f_MyMap_MyEntry__value, value);
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
}
// com.github.dart_lang.jnigen.generics.MyStack
jclass _c_MyStack = NULL;
jmethodID _m_MyStack__ctor = NULL;
FFI_PLUGIN_EXPORT
JniResult MyStack__ctor() {
load_env();
load_class_gr(&_c_MyStack, "com/github/dart_lang/jnigen/generics/MyStack");
if (_c_MyStack == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_MyStack, &_m_MyStack__ctor, "<init>", "()V");
if (_m_MyStack__ctor == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result = (*jniEnv)->NewObject(jniEnv, _c_MyStack, _m_MyStack__ctor);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
jmethodID _m_MyStack__push = NULL;
FFI_PLUGIN_EXPORT
JniResult MyStack__push(jobject self_, jobject item) {
load_env();
load_class_gr(&_c_MyStack, "com/github/dart_lang/jnigen/generics/MyStack");
if (_c_MyStack == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_MyStack, &_m_MyStack__push, "push", "(Ljava/lang/Object;)V");
if (_m_MyStack__push == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
(*jniEnv)->CallVoidMethod(jniEnv, self_, _m_MyStack__push, item);
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
}
jmethodID _m_MyStack__pop = NULL;
FFI_PLUGIN_EXPORT
JniResult MyStack__pop(jobject self_) {
load_env();
load_class_gr(&_c_MyStack, "com/github/dart_lang/jnigen/generics/MyStack");
if (_c_MyStack == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_MyStack, &_m_MyStack__pop, "pop", "()Ljava/lang/Object;");
if (_m_MyStack__pop == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_MyStack__pop);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
// com.github.dart_lang.jnigen.generics.StringKeyedMap
jclass _c_StringKeyedMap = NULL;
jmethodID _m_StringKeyedMap__ctor = NULL;
FFI_PLUGIN_EXPORT
JniResult StringKeyedMap__ctor() {
load_env();
load_class_gr(&_c_StringKeyedMap,
"com/github/dart_lang/jnigen/generics/StringKeyedMap");
if (_c_StringKeyedMap == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_StringKeyedMap, &_m_StringKeyedMap__ctor, "<init>", "()V");
if (_m_StringKeyedMap__ctor == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result =
(*jniEnv)->NewObject(jniEnv, _c_StringKeyedMap, _m_StringKeyedMap__ctor);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
// com.github.dart_lang.jnigen.generics.StringStack
jclass _c_StringStack = NULL;
jmethodID _m_StringStack__ctor = NULL;
FFI_PLUGIN_EXPORT
JniResult StringStack__ctor() {
load_env();
load_class_gr(&_c_StringStack,
"com/github/dart_lang/jnigen/generics/StringStack");
if (_c_StringStack == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_StringStack, &_m_StringStack__ctor, "<init>", "()V");
if (_m_StringStack__ctor == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result =
(*jniEnv)->NewObject(jniEnv, _c_StringStack, _m_StringStack__ctor);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
// com.github.dart_lang.jnigen.generics.StringValuedMap
jclass _c_StringValuedMap = NULL;
jmethodID _m_StringValuedMap__ctor = NULL;
FFI_PLUGIN_EXPORT
JniResult StringValuedMap__ctor() {
load_env();
load_class_gr(&_c_StringValuedMap,
"com/github/dart_lang/jnigen/generics/StringValuedMap");
if (_c_StringValuedMap == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_StringValuedMap, &_m_StringValuedMap__ctor, "<init>", "()V");
if (_m_StringValuedMap__ctor == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result = (*jniEnv)->NewObject(jniEnv, _c_StringValuedMap,
_m_StringValuedMap__ctor);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
// com.github.dart_lang.jnigen.annotations.JsonSerializable$Case
jclass _c_JsonSerializable_Case = NULL;
jmethodID _m_JsonSerializable_Case__values = NULL;
FFI_PLUGIN_EXPORT
JniResult JsonSerializable_Case__values() {
load_env();
load_class_gr(
&_c_JsonSerializable_Case,
"com/github/dart_lang/jnigen/annotations/JsonSerializable$Case");
if (_c_JsonSerializable_Case == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_static_method(
_c_JsonSerializable_Case, &_m_JsonSerializable_Case__values, "values",
"()[Lcom/github/dart_lang/jnigen/annotations/JsonSerializable$Case;");
if (_m_JsonSerializable_Case__values == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result = (*jniEnv)->CallStaticObjectMethod(
jniEnv, _c_JsonSerializable_Case, _m_JsonSerializable_Case__values);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
jmethodID _m_JsonSerializable_Case__valueOf = NULL;
FFI_PLUGIN_EXPORT
JniResult JsonSerializable_Case__valueOf(jobject name) {
load_env();
load_class_gr(
&_c_JsonSerializable_Case,
"com/github/dart_lang/jnigen/annotations/JsonSerializable$Case");
if (_c_JsonSerializable_Case == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_static_method(_c_JsonSerializable_Case,
&_m_JsonSerializable_Case__valueOf, "valueOf",
"(Ljava/lang/String;)Lcom/github/dart_lang/jnigen/"
"annotations/JsonSerializable$Case;");
if (_m_JsonSerializable_Case__valueOf == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result = (*jniEnv)->CallStaticObjectMethod(
jniEnv, _c_JsonSerializable_Case, _m_JsonSerializable_Case__valueOf,
name);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}
// com.github.dart_lang.jnigen.annotations.MyDataClass
jclass _c_MyDataClass = NULL;
jmethodID _m_MyDataClass__ctor = NULL;
FFI_PLUGIN_EXPORT
JniResult MyDataClass__ctor() {
load_env();
load_class_gr(&_c_MyDataClass,
"com/github/dart_lang/jnigen/annotations/MyDataClass");
if (_c_MyDataClass == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
load_method(_c_MyDataClass, &_m_MyDataClass__ctor, "<init>", "()V");
if (_m_MyDataClass__ctor == NULL)
return (JniResult){.result = {.j = 0}, .exception = check_exception()};
jobject _result =
(*jniEnv)->NewObject(jniEnv, _c_MyDataClass, _m_MyDataClass__ctor);
return (JniResult){.result = {.l = to_global_ref(_result)},
.exception = check_exception()};
}