diff --git a/pkgs/jni/example/lib/main.dart b/pkgs/jni/example/lib/main.dart index bd6fb00bc..8149a9770 100644 --- a/pkgs/jni/example/lib/main.dart +++ b/pkgs/jni/example/lib/main.dart @@ -54,7 +54,7 @@ int randomUsingEnv(int n) => using((arena) { double randomDouble() { final math = JClass.forName("java/lang/Math"); final random = - math.staticMethodId("random", "()D").call(math, const jdoubleType(), []); + math.staticMethodId("random", "()D").call(math, jdouble.type, []); math.release(); return random; } @@ -63,7 +63,7 @@ int uptime() { return JClass.forName("android/os/SystemClock").use( (systemClock) => systemClock .staticMethodId("uptimeMillis", "()J") - .call(systemClock, const jlongType(), []), + .call(systemClock, jlong.type, []), ); } @@ -74,9 +74,8 @@ String backAndForth() { } void quit() { - JObject.fromReference(Jni.getCurrentActivity()).use((ac) => ac.jClass - .instanceMethodId("finish", "()V") - .call(ac, const jvoidType(), [])); + JObject.fromReference(Jni.getCurrentActivity()).use((ac) => + ac.jClass.instanceMethodId("finish", "()V").call(ac, jvoid.type, [])); } void showToast(String text) { @@ -94,14 +93,14 @@ void showToast(String text) { '(Landroid/app/Activity;Landroid/content/Context;' 'Ljava/lang/CharSequence;I)' 'Lcom/github/dart_lang/jni_example/Toaster;'); - final toaster = makeText.call(toasterClass, const JObjectType(), [ + final toaster = makeText.call(toasterClass, JObject.type, [ Jni.getCurrentActivity(), Jni.getCachedApplicationContext(), '😀'.toJString(), 0, ]); final show = toasterClass.instanceMethodId('show', '()V'); - show(toaster, const jvoidType(), []); + show(toaster, jvoid.type, []); } void main() { diff --git a/pkgs/jni/lib/_internal.dart b/pkgs/jni/lib/_internal.dart index f7d3806d9..768be191f 100644 --- a/pkgs/jni/lib/_internal.dart +++ b/pkgs/jni/lib/_internal.dart @@ -8,42 +8,68 @@ /// not to be used directly. library; -import 'dart:ffi' as ffi; +import 'dart:ffi' as ffi show Int32; +import 'dart:ffi' hide Int32; + +// Exporting all the necessary bits for the generated bindings. +export 'dart:ffi' + show + Double, + Int64, + NativeFunction, + NativeFunctionPointer, + NativePort, + Pointer, + VarArgs, + Void, + nullptr; +export 'dart:isolate' show RawReceivePort, ReceivePort; + +export 'package:meta/meta.dart' show internal; export 'src/accessors.dart'; export 'src/jni.dart' show ProtectedJniExtensions; export 'src/jreference.dart'; export 'src/method_invocation.dart'; -export 'src/types.dart' show referenceType; +export 'src/types.dart' + show + JAccessible, + JArrayElementType, + JCallable, + JConstructable, + JObjType, + JType, + lowestCommonSuperType, + referenceType; /// Temporary fix for the macOS arm64 varargs problem. /// -/// This integer type is Int32 on all architectures, other than macOS arm64. -/// Where it is Int64. -@ffi.AbiSpecificIntegerMapping({ - ffi.Abi.androidArm: ffi.Int32(), - ffi.Abi.androidArm64: ffi.Int32(), - ffi.Abi.androidIA32: ffi.Int32(), - ffi.Abi.androidX64: ffi.Int32(), - ffi.Abi.androidRiscv64: ffi.Int32(), - ffi.Abi.fuchsiaArm64: ffi.Int32(), - ffi.Abi.fuchsiaX64: ffi.Int32(), - ffi.Abi.fuchsiaRiscv64: ffi.Int32(), - ffi.Abi.iosArm: ffi.Int32(), - ffi.Abi.iosArm64: ffi.Int32(), - ffi.Abi.iosX64: ffi.Int32(), - ffi.Abi.linuxArm: ffi.Int32(), - ffi.Abi.linuxArm64: ffi.Int32(), - ffi.Abi.linuxIA32: ffi.Int32(), - ffi.Abi.linuxX64: ffi.Int32(), - ffi.Abi.linuxRiscv32: ffi.Int32(), - ffi.Abi.linuxRiscv64: ffi.Int32(), - ffi.Abi.macosArm64: ffi.Int64(), // <-- Only this is different. - ffi.Abi.macosX64: ffi.Int32(), - ffi.Abi.windowsArm64: ffi.Int32(), - ffi.Abi.windowsIA32: ffi.Int32(), - ffi.Abi.windowsX64: ffi.Int32(), +/// This integer type is `Int32` on all architectures, other than macOS arm64. +/// Where it is `Int64`. +@AbiSpecificIntegerMapping({ + Abi.androidArm: ffi.Int32(), + Abi.androidArm64: ffi.Int32(), + Abi.androidIA32: ffi.Int32(), + Abi.androidX64: ffi.Int32(), + Abi.androidRiscv64: ffi.Int32(), + Abi.fuchsiaArm64: ffi.Int32(), + Abi.fuchsiaX64: ffi.Int32(), + Abi.fuchsiaRiscv64: ffi.Int32(), + Abi.iosArm: ffi.Int32(), + Abi.iosArm64: ffi.Int32(), + Abi.iosX64: ffi.Int32(), + Abi.linuxArm: ffi.Int32(), + Abi.linuxArm64: ffi.Int32(), + Abi.linuxIA32: ffi.Int32(), + Abi.linuxX64: ffi.Int32(), + Abi.linuxRiscv32: ffi.Int32(), + Abi.linuxRiscv64: ffi.Int32(), + Abi.macosArm64: Int64(), // <-- Only this is different. + Abi.macosX64: ffi.Int32(), + Abi.windowsArm64: ffi.Int32(), + Abi.windowsIA32: ffi.Int32(), + Abi.windowsX64: ffi.Int32(), }) -final class $Int32 extends ffi.AbiSpecificInteger { - const $Int32(); +final class Int32 extends AbiSpecificInteger { + const Int32(); } diff --git a/pkgs/jni/lib/jni.dart b/pkgs/jni/lib/jni.dart index 713a3dd6b..cb069dc21 100644 --- a/pkgs/jni/lib/jni.dart +++ b/pkgs/jni/lib/jni.dart @@ -60,8 +60,6 @@ /// This library provides classes and functions for JNI interop from Dart. library; -export 'dart:ffi' show nullptr; - export 'package:ffi/ffi.dart' show Arena, using; export 'src/errors.dart'; @@ -74,5 +72,13 @@ export 'src/lang/lang.dart'; export 'src/nio/nio.dart'; export 'src/third_party/generated_bindings.dart' hide JniBindings, JniEnv, JniEnv1, JniExceptionDetails; -export 'src/types.dart' hide referenceType; +export 'src/types.dart' + hide + JAccessible, + JArrayElementType, + JCallable, + JConstructable, + JObjType, + JType, + lowestCommonSuperType; export 'src/util/util.dart'; diff --git a/pkgs/jni/lib/src/accessors.dart b/pkgs/jni/lib/src/accessors.dart index 4629fbb2e..c90bd9529 100644 --- a/pkgs/jni/lib/src/accessors.dart +++ b/pkgs/jni/lib/src/accessors.dart @@ -6,7 +6,11 @@ import 'dart:ffi'; import 'package:meta/meta.dart' show internal; -import '../jni.dart'; +import 'jni.dart'; +import 'jobject.dart'; +import 'jreference.dart'; +import 'third_party/generated_bindings.dart'; +import 'types.dart'; void _check(JThrowablePtr exception) { if (exception != nullptr) { diff --git a/pkgs/jni/lib/src/jarray.dart b/pkgs/jni/lib/src/jarray.dart index b2e326fb3..ff31034b8 100644 --- a/pkgs/jni/lib/src/jarray.dart +++ b/pkgs/jni/lib/src/jarray.dart @@ -7,20 +7,26 @@ part of 'types.dart'; final class JArrayType extends JObjType> { + @internal final JArrayElementType elementType; + @internal const JArrayType(this.elementType); + @internal @override String get signature => '[${elementType.signature}'; + @internal @override JArray fromReference(JReference reference) => JArray.fromReference(elementType, reference); + @internal @override JObjType get superType => const JObjectType(); + @internal @override final int superCount = 1; @@ -36,18 +42,21 @@ final class JArrayType extends JObjType> { } class JArray extends JObject { + @internal final JArrayElementType elementType; + @internal @override - late final JArrayType $type = type(elementType) as JArrayType; + final JArrayType $type; /// The type which includes information such as the signature of this class. - static JObjType> type(JArrayElementType innerType) => + static JArrayType type(JArrayElementType innerType) => JArrayType(innerType); /// Construct a new [JArray] with [reference] as its underlying reference. JArray.fromReference(this.elementType, JReference reference) - : super.fromReference(reference); + : $type = type(elementType), + super.fromReference(reference); /// Creates a [JArray] of the given length from the given [elementType]. /// diff --git a/pkgs/jni/lib/src/jimplementer.dart b/pkgs/jni/lib/src/jimplementer.dart index 79ba52bbb..ea6784b7b 100644 --- a/pkgs/jni/lib/src/jimplementer.dart +++ b/pkgs/jni/lib/src/jimplementer.dart @@ -6,10 +6,12 @@ import 'dart:ffi'; import 'dart:isolate'; import 'package:ffi/ffi.dart'; -import 'package:meta/meta.dart'; +import 'package:meta/meta.dart' show internal; -import '../_internal.dart'; +import 'accessors.dart'; +import 'jni.dart'; import 'jobject.dart'; +import 'jreference.dart'; import 'lang/jstring.dart'; import 'third_party/generated_bindings.dart'; import 'types.dart'; diff --git a/pkgs/jni/lib/src/jni.dart b/pkgs/jni/lib/src/jni.dart index cfafc37b8..71967cd00 100644 --- a/pkgs/jni/lib/src/jni.dart +++ b/pkgs/jni/lib/src/jni.dart @@ -10,9 +10,12 @@ import 'package:ffi/ffi.dart'; import 'package:meta/meta.dart' show internal; import 'package:path/path.dart'; -import '../_internal.dart'; -import '../jni.dart'; +import 'accessors.dart'; +import 'errors.dart'; +import 'jobject.dart'; +import 'jreference.dart'; import 'third_party/generated_bindings.dart'; +import 'types.dart'; String _getLibraryFileName(String base) { if (Platform.isLinux || Platform.isAndroid) { diff --git a/pkgs/jni/lib/src/jobject.dart b/pkgs/jni/lib/src/jobject.dart index df3fa94e9..9390b7aee 100644 --- a/pkgs/jni/lib/src/jobject.dart +++ b/pkgs/jni/lib/src/jobject.dart @@ -1,10 +1,10 @@ // 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. - import 'dart:ffi'; import 'package:ffi/ffi.dart'; +import 'package:meta/meta.dart' show internal; import 'jni.dart'; import 'jreference.dart'; @@ -12,21 +12,26 @@ import 'lang/jstring.dart'; import 'types.dart'; final class JObjectType extends JObjType { + @internal const JObjectType(); + @internal @override String get signature => 'Ljava/lang/Object;'; + @internal @override JObject fromReference(JReference reference) => JObject.fromReference(reference); + @internal @override JObjType get superType => const JObjectType(); // TODO(#70): Once interface implementation lands, other than [superType], // we should have a list of implemented interfaces. + @internal @override final int superCount = 0; @@ -43,9 +48,11 @@ final class JObjectType extends JObjType { /// /// This is the base class for classes generated by `jnigen`. class JObject { + @internal final JReference reference; - late final JObjType $type = type; + @internal + final JObjType $type = type; /// The type which includes information such as the signature of this class. static const JObjType type = JObjectType(); @@ -77,7 +84,7 @@ class JObject { /// Casts this object to another [type]. /// /// If [releaseOriginal] is `true`, the casted object will be released. - T castTo( + T as( JObjType type, { bool releaseOriginal = false, }) { diff --git a/pkgs/jni/lib/src/jprimitives.dart b/pkgs/jni/lib/src/jprimitives.dart index 6516a6b2e..7e0997120 100644 --- a/pkgs/jni/lib/src/jprimitives.dart +++ b/pkgs/jni/lib/src/jprimitives.dart @@ -19,8 +19,10 @@ final class jbyteType extends JType JCallable, JAccessible, JArrayElementType { + @internal const jbyteType(); + @internal @override final signature = 'B'; @@ -74,8 +76,10 @@ final class jbooleanType extends JType JCallable, JAccessible, JArrayElementType { + @internal const jbooleanType(); + @internal @override final signature = 'Z'; @@ -129,8 +133,10 @@ final class jcharType extends JType JCallable, JAccessible, JArrayElementType { + @internal const jcharType(); + @internal @override final signature = 'C'; @@ -184,8 +190,10 @@ final class jshortType extends JType JCallable, JAccessible, JArrayElementType { + @internal const jshortType(); + @internal @override final signature = 'S'; @@ -236,6 +244,7 @@ abstract final class jint extends JPrimitive { final class jintType extends JType with JCallable, JAccessible, JArrayElementType { + @internal const jintType(); @override @@ -291,6 +300,7 @@ final class jlongType extends JType JCallable, JAccessible, JArrayElementType { + @internal const jlongType(); @override @@ -346,8 +356,10 @@ final class jfloatType extends JType JCallable, JAccessible, JArrayElementType { + @internal const jfloatType(); + @internal @override final signature = 'F'; @@ -401,8 +413,10 @@ final class jdoubleType extends JType JCallable, JAccessible, JArrayElementType { + @internal const jdoubleType(); + @internal @override final signature = 'D'; @@ -452,8 +466,10 @@ abstract final class jvoid extends JPrimitive { } final class jvoidType extends JType with JCallable { + @internal const jvoidType(); + @internal @override final signature = 'V'; diff --git a/pkgs/jni/lib/src/lang/jboolean.dart b/pkgs/jni/lib/src/lang/jboolean.dart index 1fdcf7ccf..0513ab745 100644 --- a/pkgs/jni/lib/src/lang/jboolean.dart +++ b/pkgs/jni/lib/src/lang/jboolean.dart @@ -2,23 +2,30 @@ // 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. +import 'package:meta/meta.dart' show internal; + import '../jobject.dart'; import '../jreference.dart'; import '../types.dart'; final class JBooleanType extends JObjType { + @internal const JBooleanType(); + @internal @override String get signature => r'Ljava/lang/Boolean;'; + @internal @override JBoolean fromReference(JReference reference) => JBoolean.fromReference(reference); + @internal @override JObjType get superType => const JObjectType(); + @internal @override final superCount = 2; @@ -32,9 +39,10 @@ final class JBooleanType extends JObjType { } class JBoolean extends JObject { + @internal @override // ignore: overridden_fields - late final JObjType $type = type; + final JObjType $type = type; JBoolean.fromReference( super.reference, diff --git a/pkgs/jni/lib/src/lang/jbyte.dart b/pkgs/jni/lib/src/lang/jbyte.dart index 78aa3be4e..db4a39ca3 100644 --- a/pkgs/jni/lib/src/lang/jbyte.dart +++ b/pkgs/jni/lib/src/lang/jbyte.dart @@ -2,23 +2,30 @@ // 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. +import 'package:meta/meta.dart' show internal; + import '../jreference.dart'; import '../jvalues.dart'; import '../types.dart'; import 'jnumber.dart'; final class JByteType extends JObjType { + @internal const JByteType(); + @internal @override String get signature => r'Ljava/lang/Byte;'; + @internal @override JByte fromReference(JReference reference) => JByte.fromReference(reference); + @internal @override JObjType get superType => const JNumberType(); + @internal @override final superCount = 2; @@ -32,9 +39,10 @@ final class JByteType extends JObjType { } class JByte extends JNumber { + @internal @override // ignore: overridden_fields - late final JObjType $type = type; + final JObjType $type = type; JByte.fromReference( super.reference, diff --git a/pkgs/jni/lib/src/lang/jcharacter.dart b/pkgs/jni/lib/src/lang/jcharacter.dart index 1e7ecda78..4730d73fa 100644 --- a/pkgs/jni/lib/src/lang/jcharacter.dart +++ b/pkgs/jni/lib/src/lang/jcharacter.dart @@ -1,21 +1,32 @@ +// Copyright (c) 2024, 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. + +import 'package:meta/meta.dart' show internal; + import '../jobject.dart'; import '../jreference.dart'; import '../jvalues.dart'; import '../types.dart'; final class JCharacterType extends JObjType { + @internal const JCharacterType(); + @internal @override String get signature => r'Ljava/lang/Character;'; + @internal @override JCharacter fromReference(JReference reference) => JCharacter.fromReference(reference); + @internal @override JObjType get superType => const JObjectType(); + @internal @override final superCount = 1; @@ -29,9 +40,10 @@ final class JCharacterType extends JObjType { } class JCharacter extends JObject { + @internal @override // ignore: overridden_fields - late final JObjType $type = type; + final JObjType $type = type; JCharacter.fromReference( super.reference, diff --git a/pkgs/jni/lib/src/lang/jdouble.dart b/pkgs/jni/lib/src/lang/jdouble.dart index ac8b69d9d..6bad5c65b 100644 --- a/pkgs/jni/lib/src/lang/jdouble.dart +++ b/pkgs/jni/lib/src/lang/jdouble.dart @@ -2,23 +2,30 @@ // 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. +import 'package:meta/meta.dart' show internal; + import '../jreference.dart'; import '../types.dart'; import 'jnumber.dart'; final class JDoubleType extends JObjType { + @internal const JDoubleType(); + @internal @override String get signature => r'Ljava/lang/Double;'; + @internal @override JDouble fromReference(JReference reference) => JDouble.fromReference(reference); + @internal @override JObjType get superType => const JNumberType(); + @internal @override final superCount = 2; @@ -32,9 +39,10 @@ final class JDoubleType extends JObjType { } class JDouble extends JNumber { + @internal @override // ignore: overridden_fields - late final JObjType $type = type; + final JObjType $type = type; JDouble.fromReference( super.reference, diff --git a/pkgs/jni/lib/src/lang/jfloat.dart b/pkgs/jni/lib/src/lang/jfloat.dart index 31dd7bd7b..744a91528 100644 --- a/pkgs/jni/lib/src/lang/jfloat.dart +++ b/pkgs/jni/lib/src/lang/jfloat.dart @@ -2,23 +2,30 @@ // 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. +import 'package:meta/meta.dart' show internal; + import '../jreference.dart'; import '../jvalues.dart'; import '../types.dart'; import 'jnumber.dart'; final class JFloatType extends JObjType { + @internal const JFloatType(); + @internal @override String get signature => r'Ljava/lang/Float;'; + @internal @override JFloat fromReference(JReference reference) => JFloat.fromReference(reference); + @internal @override JObjType get superType => const JNumberType(); + @internal @override final superCount = 2; @@ -32,9 +39,10 @@ final class JFloatType extends JObjType { } class JFloat extends JNumber { + @internal @override // ignore: overridden_fields - late final JObjType $type = type; + final JObjType $type = type; JFloat.fromReference( super.reference, diff --git a/pkgs/jni/lib/src/lang/jinteger.dart b/pkgs/jni/lib/src/lang/jinteger.dart index d99ec91ad..a527cde11 100644 --- a/pkgs/jni/lib/src/lang/jinteger.dart +++ b/pkgs/jni/lib/src/lang/jinteger.dart @@ -2,24 +2,31 @@ // 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. +import 'package:meta/meta.dart' show internal; + import '../jreference.dart'; import '../jvalues.dart'; import '../types.dart'; import 'jnumber.dart'; final class JIntegerType extends JObjType { + @internal const JIntegerType(); + @internal @override String get signature => r'Ljava/lang/Integer;'; + @internal @override JInteger fromReference(JReference reference) => JInteger.fromReference(reference); + @internal @override JObjType get superType => const JNumberType(); + @internal @override final superCount = 2; @@ -33,9 +40,10 @@ final class JIntegerType extends JObjType { } class JInteger extends JNumber { + @internal @override // ignore: overridden_fields - late final JObjType $type = type; + final JObjType $type = type; JInteger.fromReference( super.reference, diff --git a/pkgs/jni/lib/src/lang/jlong.dart b/pkgs/jni/lib/src/lang/jlong.dart index 7cbaedb0f..5dc9c8530 100644 --- a/pkgs/jni/lib/src/lang/jlong.dart +++ b/pkgs/jni/lib/src/lang/jlong.dart @@ -2,22 +2,29 @@ // 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. +import 'package:meta/meta.dart' show internal; + import '../jreference.dart'; import '../types.dart'; import 'jnumber.dart'; final class JLongType extends JObjType { + @internal const JLongType(); + @internal @override String get signature => r'Ljava/lang/Long;'; + @internal @override JLong fromReference(JReference reference) => JLong.fromReference(reference); + @internal @override JObjType get superType => const JNumberType(); + @internal @override final superCount = 2; @@ -31,9 +38,10 @@ final class JLongType extends JObjType { } class JLong extends JNumber { + @internal @override // ignore: overridden_fields - late final JObjType $type = type; + final JObjType $type = type; JLong.fromReference( super.reference, diff --git a/pkgs/jni/lib/src/lang/jnumber.dart b/pkgs/jni/lib/src/lang/jnumber.dart index 2a3bb4d27..e0295296a 100644 --- a/pkgs/jni/lib/src/lang/jnumber.dart +++ b/pkgs/jni/lib/src/lang/jnumber.dart @@ -2,6 +2,8 @@ // 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. +import 'package:meta/meta.dart' show internal; + import '../jobject.dart'; import '../jreference.dart'; import '../types.dart'; @@ -15,18 +17,23 @@ import 'jlong.dart'; import 'jshort.dart'; final class JNumberType extends JObjType { + @internal const JNumberType(); + @internal @override String get signature => r'Ljava/lang/Number;'; + @internal @override JNumber fromReference(JReference reference) => JNumber.fromReference(reference); + @internal @override JObjType get superType => const JObjectType(); + @internal @override final superCount = 1; @@ -40,9 +47,10 @@ final class JNumberType extends JObjType { } class JNumber extends JObject { + @internal @override // ignore: overridden_fields - late final JObjType $type = type; + final JObjType $type = type; JNumber.fromReference( super.reference, diff --git a/pkgs/jni/lib/src/lang/jshort.dart b/pkgs/jni/lib/src/lang/jshort.dart index a2e054401..52715169c 100644 --- a/pkgs/jni/lib/src/lang/jshort.dart +++ b/pkgs/jni/lib/src/lang/jshort.dart @@ -2,23 +2,30 @@ // 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. +import 'package:meta/meta.dart' show internal; + import '../jreference.dart'; import '../jvalues.dart'; import '../types.dart'; import 'jnumber.dart'; final class JShortType extends JObjType { + @internal const JShortType(); + @internal @override String get signature => r'Ljava/lang/Short;'; + @internal @override JShort fromReference(JReference reference) => JShort.fromReference(reference); + @internal @override JObjType get superType => const JNumberType(); + @internal @override final superCount = 2; @@ -32,9 +39,10 @@ final class JShortType extends JObjType { } class JShort extends JNumber { + @internal @override // ignore: overridden_fields - late final JObjType $type = type; + final JObjType $type = type; JShort.fromReference( super.reference, diff --git a/pkgs/jni/lib/src/lang/jstring.dart b/pkgs/jni/lib/src/lang/jstring.dart index bf0b16c3d..9df267d4d 100644 --- a/pkgs/jni/lib/src/lang/jstring.dart +++ b/pkgs/jni/lib/src/lang/jstring.dart @@ -2,24 +2,31 @@ // 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. +import 'package:meta/meta.dart' show internal; + import '../jni.dart'; import '../jobject.dart'; import '../jreference.dart'; import '../types.dart'; final class JStringType extends JObjType { + @internal const JStringType(); + @internal @override String get signature => 'Ljava/lang/String;'; + @internal @override JString fromReference(JReference reference) => JString.fromReference(reference); + @internal @override JObjType get superType => const JObjectType(); + @internal @override final int superCount = 1; @@ -33,9 +40,10 @@ final class JStringType extends JObjType { } class JString extends JObject { + @internal @override // ignore: overridden_fields - late final JObjType $type = type; + final JObjType $type = type; /// The type which includes information such as the signature of this class. static const JObjType type = JStringType(); diff --git a/pkgs/jni/lib/src/method_invocation.dart b/pkgs/jni/lib/src/method_invocation.dart index f1c9c56d2..ee779b55f 100644 --- a/pkgs/jni/lib/src/method_invocation.dart +++ b/pkgs/jni/lib/src/method_invocation.dart @@ -13,19 +13,19 @@ import 'third_party/generated_bindings.dart'; import 'types.dart'; @internal -class $MethodInvocation { +class MethodInvocation { final Pointer result; final JString methodDescriptor; final JArray args; - $MethodInvocation._(this.result, this.methodDescriptor, this.args); + MethodInvocation._(this.result, this.methodDescriptor, this.args); - factory $MethodInvocation.fromAddresses( + factory MethodInvocation.fromAddresses( int resultAddress, int descriptorAddress, int argsAddress, ) { - return $MethodInvocation._( + return MethodInvocation._( Pointer.fromAddress(resultAddress), JString.fromReference( JGlobalReference(Pointer.fromAddress(descriptorAddress))), @@ -36,8 +36,8 @@ class $MethodInvocation { ); } - factory $MethodInvocation.fromMessage(List message) { - return $MethodInvocation.fromAddresses( + factory MethodInvocation.fromMessage(List message) { + return MethodInvocation.fromAddresses( message[0] as int, message[1] as int, message[2] as int, diff --git a/pkgs/jni/lib/src/nio/jbuffer.dart b/pkgs/jni/lib/src/nio/jbuffer.dart index 13d012f62..f26f57955 100644 --- a/pkgs/jni/lib/src/nio/jbuffer.dart +++ b/pkgs/jni/lib/src/nio/jbuffer.dart @@ -2,6 +2,8 @@ // 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. +import 'package:meta/meta.dart' show internal; + import '../jobject.dart'; import '../jreference.dart'; import '../jvalues.dart'; @@ -9,18 +11,23 @@ import '../types.dart'; import 'jbyte_buffer.dart'; final class JBufferType extends JObjType { + @internal const JBufferType(); + @internal @override String get signature => r'Ljava/nio/Buffer;'; + @internal @override JBuffer fromReference(JReference reference) => JBuffer.fromReference(reference); + @internal @override JObjType get superType => const JObjectType(); + @internal @override final superCount = 1; @@ -45,9 +52,10 @@ final class JBufferType extends JObjType { /// We currently only have the bindings for `java.nio.ByteBuffer` in this /// package as [JByteBuffer]. class JBuffer extends JObject { + @internal @override // ignore: overridden_fields - late final JObjType $type = type; + final JObjType $type = type; JBuffer.fromReference( super.reference, diff --git a/pkgs/jni/lib/src/nio/jbyte_buffer.dart b/pkgs/jni/lib/src/nio/jbyte_buffer.dart index 35b4f1774..54e5bcaae 100644 --- a/pkgs/jni/lib/src/nio/jbyte_buffer.dart +++ b/pkgs/jni/lib/src/nio/jbyte_buffer.dart @@ -5,6 +5,8 @@ import 'dart:ffi'; import 'dart:typed_data'; +import 'package:meta/meta.dart' show internal; + import '../jni.dart'; import '../jobject.dart'; import '../jreference.dart'; @@ -13,18 +15,23 @@ import '../types.dart'; import 'jbuffer.dart'; final class JByteBufferType extends JObjType { + @internal const JByteBufferType(); + @internal @override String get signature => r'Ljava/nio/ByteBuffer;'; + @internal @override JByteBuffer fromReference(JReference reference) => JByteBuffer.fromReference(reference); + @internal @override JObjType get superType => const JBufferType(); + @internal @override final superCount = 2; @@ -87,9 +94,10 @@ final class JByteBufferType extends JObjType { /// // directBuffer.nextByte = 42; // throws [UseAfterReleaseException]! /// ``` class JByteBuffer extends JBuffer { + @internal @override // ignore: overridden_fields - late final JObjType $type = type; + final JObjType $type = type; JByteBuffer.fromReference( super.reference, diff --git a/pkgs/jni/lib/src/types.dart b/pkgs/jni/lib/src/types.dart index af0c34fd9..5e37a4675 100644 --- a/pkgs/jni/lib/src/types.dart +++ b/pkgs/jni/lib/src/types.dart @@ -6,7 +6,6 @@ import 'dart:ffi'; import 'dart:typed_data'; import 'package:ffi/ffi.dart'; -import 'package:meta/meta.dart' show internal; import '../_internal.dart'; import 'jni.dart'; @@ -18,6 +17,7 @@ part 'jarray.dart'; part 'jclass.dart'; part 'jprimitives.dart'; +@internal sealed class JType { const JType(); @@ -25,6 +25,7 @@ sealed class JType { } /// Able to be a return type of a method that can be called. +@internal mixin JCallable on JType { DartT _staticCall( JClassPtr clazz, JMethodIDPtr methodID, Pointer args); @@ -33,12 +34,14 @@ mixin JCallable on JType { } /// Able to be constructed. +@internal mixin JConstructable on JType { DartT _newObject( JClassPtr clazz, JMethodIDPtr methodID, Pointer args); } /// Able to be the type of a field that can be get and set. +@internal mixin JAccessible on JType { DartT _staticGet(JClassPtr clazz, JFieldIDPtr fieldID); DartT _instanceGet(JObjectPtr obj, JFieldIDPtr fieldID); @@ -47,6 +50,7 @@ mixin JAccessible on JType { } /// Able to be the type of array elements. +@internal mixin JArrayElementType on JType { JArray _newArray(int length); } @@ -69,10 +73,12 @@ final class _ReferenceType extends JType return JGlobalReference(Jni.env.NewObjectA(clazz, methodID, args)); } + @internal @override String get signature => 'Ljava/lang/Object;'; } +@internal abstract class JObjType extends JType with JCallable, @@ -167,6 +173,7 @@ JObjType _lowestCommonAncestor(JObjType a, JObjType b) { return a; } +@internal JObjType lowestCommonSuperType(List types) { return types.reduce(_lowestCommonAncestor); } diff --git a/pkgs/jni/lib/src/util/jiterator.dart b/pkgs/jni/lib/src/util/jiterator.dart index 79e0e3d21..d3bb4421e 100644 --- a/pkgs/jni/lib/src/util/jiterator.dart +++ b/pkgs/jni/lib/src/util/jiterator.dart @@ -2,27 +2,35 @@ // 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. +import 'package:meta/meta.dart' show internal; + import '../jobject.dart'; import '../jreference.dart'; import '../types.dart'; final class JIteratorType<$E extends JObject> extends JObjType> { + @internal final JObjType<$E> E; + @internal const JIteratorType( this.E, ); + @internal @override String get signature => r'Ljava/util/Iterator;'; + @internal @override JIterator<$E> fromReference(JReference reference) => JIterator.fromReference(E, reference); + @internal @override JObjType get superType => const JObjectType(); + @internal @override final superCount = 1; @@ -38,16 +46,19 @@ final class JIteratorType<$E extends JObject> extends JObjType> { } class JIterator<$E extends JObject> extends JObject implements Iterator<$E> { + @internal @override // ignore: overridden_fields - late final JObjType $type = type(E); + final JObjType> $type; + @internal final JObjType<$E> E; JIterator.fromReference( this.E, JReference reference, - ) : super.fromReference(reference); + ) : $type = type(E), + super.fromReference(reference); static final _class = JClass.forName(r'java/util/Iterator'); diff --git a/pkgs/jni/lib/src/util/jlist.dart b/pkgs/jni/lib/src/util/jlist.dart index c754102a4..368bc55e8 100644 --- a/pkgs/jni/lib/src/util/jlist.dart +++ b/pkgs/jni/lib/src/util/jlist.dart @@ -4,6 +4,8 @@ import 'dart:collection'; +import 'package:meta/meta.dart' show internal; + import '../jni.dart'; import '../jobject.dart'; import '../jreference.dart'; @@ -13,22 +15,28 @@ import 'jiterator.dart'; import 'jset.dart'; final class JListType<$E extends JObject> extends JObjType> { + @internal final JObjType<$E> E; + @internal const JListType( this.E, ); + @internal @override String get signature => r'Ljava/util/List;'; + @internal @override JList<$E> fromReference(JReference reference) => JList.fromReference(E, reference); + @internal @override JObjType get superType => const JObjectType(); + @internal @override final superCount = 1; @@ -37,21 +45,26 @@ final class JListType<$E extends JObject> extends JObjType> { @override bool operator ==(Object other) { - return other.runtimeType == JListType && other is JListType && E == other.E; + return other.runtimeType == (JListType<$E>) && + other is JListType<$E> && + E == other.E; } } class JList<$E extends JObject> extends JObject with ListMixin<$E> { + @internal @override // ignore: overridden_fields - late final JObjType $type = type(E); + final JObjType> $type; + @internal final JObjType<$E> E; JList.fromReference( this.E, JReference reference, - ) : super.fromReference(reference); + ) : $type = type(E), + super.fromReference(reference); static final _class = JClass.forName(r'java/util/List'); @@ -67,7 +80,8 @@ class JList<$E extends JObject> extends JObject with ListMixin<$E> { static final _arrayListClassRef = JClass.forName(r'java/util/ArrayList'); static final _ctorId = _arrayListClassRef.constructorId(r'()V'); JList.array(this.E) - : super.fromReference(_ctorId(_arrayListClassRef, referenceType, [])); + : $type = type(E), + super.fromReference(_ctorId(_arrayListClassRef, referenceType, [])); static final _sizeId = _class.instanceMethodId(r'size', r'()I'); @override diff --git a/pkgs/jni/lib/src/util/jmap.dart b/pkgs/jni/lib/src/util/jmap.dart index 2d8612fb8..59eed41d0 100644 --- a/pkgs/jni/lib/src/util/jmap.dart +++ b/pkgs/jni/lib/src/util/jmap.dart @@ -4,6 +4,8 @@ import 'dart:collection'; +import 'package:meta/meta.dart' show internal; + import '../jobject.dart'; import '../jreference.dart'; import '../types.dart'; @@ -11,24 +13,32 @@ import 'jset.dart'; final class JMapType<$K extends JObject, $V extends JObject> extends JObjType> { + @internal final JObjType<$K> K; + + @internal final JObjType<$V> V; + @internal const JMapType( this.K, this.V, ); + @internal @override String get signature => r'Ljava/util/Map;'; + @internal @override JMap<$K, $V> fromReference(JReference reference) => JMap.fromReference(K, V, reference); + @internal @override JObjType get superType => const JObjectType(); + @internal @override final superCount = 1; @@ -46,18 +56,23 @@ final class JMapType<$K extends JObject, $V extends JObject> class JMap<$K extends JObject, $V extends JObject> extends JObject with MapMixin<$K, $V> { + @internal @override // ignore: overridden_fields - late final JObjType $type = type(K, V); + final JObjType> $type; + @internal final JObjType<$K> K; + + @internal final JObjType<$V> V; JMap.fromReference( this.K, this.V, JReference reference, - ) : super.fromReference(reference); + ) : $type = type(K, V), + super.fromReference(reference); static final _class = JClass.forName(r'java/util/Map'); @@ -75,7 +90,8 @@ class JMap<$K extends JObject, $V extends JObject> extends JObject static final _hashMapClass = JClass.forName(r'java/util/HashMap'); static final _ctorId = _hashMapClass.constructorId(r'()V'); JMap.hash(this.K, this.V) - : super.fromReference(_ctorId(_hashMapClass, referenceType, [])); + : $type = type(K, V), + super.fromReference(_ctorId(_hashMapClass, referenceType, [])); static final _getId = _class.instanceMethodId( r'get', r'(Ljava/lang/Object;)Ljava/lang/Object;'); diff --git a/pkgs/jni/lib/src/util/jset.dart b/pkgs/jni/lib/src/util/jset.dart index 2886a8874..44e6998cb 100644 --- a/pkgs/jni/lib/src/util/jset.dart +++ b/pkgs/jni/lib/src/util/jset.dart @@ -4,6 +4,8 @@ import 'dart:collection'; +import 'package:meta/meta.dart' show internal; + import '../jni.dart'; import '../jobject.dart'; import '../jreference.dart'; @@ -11,22 +13,28 @@ import '../types.dart'; import 'jiterator.dart'; final class JSetType<$E extends JObject> extends JObjType> { + @internal final JObjType<$E> E; + @internal const JSetType( this.E, ); + @internal @override String get signature => r'Ljava/util/Set;'; + @internal @override JSet<$E> fromReference(JReference reference) => JSet.fromReference(E, reference); + @internal @override JObjType get superType => const JObjectType(); + @internal @override final superCount = 1; @@ -42,16 +50,19 @@ final class JSetType<$E extends JObject> extends JObjType> { } class JSet<$E extends JObject> extends JObject with SetMixin<$E> { + @internal @override // ignore: overridden_fields - late final JObjType $type = type(E); + final JObjType> $type; + @internal final JObjType<$E> E; JSet.fromReference( this.E, JReference reference, - ) : super.fromReference(reference); + ) : $type = type(E), + super.fromReference(reference); static final _class = JClass.forName(r'java/util/Set'); @@ -67,7 +78,8 @@ class JSet<$E extends JObject> extends JObject with SetMixin<$E> { static final _hashSetClass = JClass.forName(r'java/util/HashSet'); static final _ctorId = _hashSetClass.constructorId(r'()V'); JSet.hash(this.E) - : super.fromReference(_ctorId(_hashSetClass, referenceType, [])); + : $type = type(E), + super.fromReference(_ctorId(_hashSetClass, referenceType, [])); static final _addId = _class.instanceMethodId(r'add', r'(Ljava/lang/Object;)Z'); diff --git a/pkgs/jni/test/exception_test.dart b/pkgs/jni/test/exception_test.dart index 803a417ed..54e36b80d 100644 --- a/pkgs/jni/test/exception_test.dart +++ b/pkgs/jni/test/exception_test.dart @@ -38,9 +38,7 @@ void main() { void run({required TestRunnerCallback testRunner}) { JObject newRandom(JClass randomClass) { - return randomClass - .constructorId('()V') - .call(randomClass, const JObjectType(), []); + return randomClass.constructorId('()V').call(randomClass, JObject.type, []); } testRunner('double free throws exception', () { diff --git a/pkgs/jni/test/global_env_test.dart b/pkgs/jni/test/global_env_test.dart index d1296c3c7..0ac6191ab 100644 --- a/pkgs/jni/test/global_env_test.dart +++ b/pkgs/jni/test/global_env_test.dart @@ -2,6 +2,7 @@ // 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. +import 'dart:ffi'; import 'dart:io'; import 'package:ffi/ffi.dart'; diff --git a/pkgs/jni/test/jobject_test.dart b/pkgs/jni/test/jobject_test.dart index b8417807a..a3ffd2d85 100644 --- a/pkgs/jni/test/jobject_test.dart +++ b/pkgs/jni/test/jobject_test.dart @@ -2,6 +2,7 @@ // 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. +import 'dart:ffi'; import 'dart:io'; import 'dart:isolate'; @@ -211,10 +212,10 @@ void run({required TestRunnerCallback testRunner}) { testRunner('casting', () { using((arena) { final str = 'hello'.toJString()..releasedBy(arena); - final obj = str.castTo(JObject.type)..releasedBy(arena); - final backToStr = obj.castTo(JString.type); + final obj = str.as(JObject.type)..releasedBy(arena); + final backToStr = obj.as(JString.type); expect(backToStr.toDartString(), str.toDartString()); - final _ = backToStr.castTo(JObject.type, releaseOriginal: true) + final _ = backToStr.as(JObject.type, releaseOriginal: true) ..releasedBy(arena); expect(backToStr.toDartString, throwsA(isA())); expect(backToStr.release, throwsA(isA())); @@ -284,14 +285,14 @@ void run({required TestRunnerCallback testRunner}) { testRunner('Casting correctly succeeds', () { final long = JLong(1); - final long2 = long.castTo(JLong.type, releaseOriginal: true); + final long2 = long.as(JLong.type, releaseOriginal: true); expect(long2.longValue(releaseOriginal: true), 1); }); testRunner('Casting incorrectly fails', () { final long = JLong(1); expect( - () => long.castTo(JInteger.type, releaseOriginal: true), + () => long.as(JInteger.type, releaseOriginal: true), throwsA(isA()), ); }); diff --git a/pkgs/jni/test/load_test.dart b/pkgs/jni/test/load_test.dart index 1f331dc95..748ddc6de 100644 --- a/pkgs/jni/test/load_test.dart +++ b/pkgs/jni/test/load_test.dart @@ -43,8 +43,9 @@ const secureRandomSeedBound = 4294967296; final random = Random.secure(); final randomClass = JClass.forName('java/util/Random'); -JObject newRandom() => randomClass.constructorId('(J)V').call( - randomClass, const JObjectType(), [random.nextInt(secureRandomSeedBound)]); +JObject newRandom() => randomClass + .constructorId('(J)V') + .call(randomClass, JObject.type, [random.nextInt(secureRandomSeedBound)]); void run({required TestRunnerCallback testRunner}) { testRunner('Test 4K refs can be created in a row', () { diff --git a/pkgs/jni/test/type_test.dart b/pkgs/jni/test/type_test.dart index b15b26c86..c42e3ddd2 100644 --- a/pkgs/jni/test/type_test.dart +++ b/pkgs/jni/test/type_test.dart @@ -4,7 +4,9 @@ import 'dart:io'; +import 'package:jni/_internal.dart'; import 'package:jni/jni.dart'; +import 'package:jni/src/types.dart'; import 'package:test/test.dart'; import 'test_util/test_util.dart'; @@ -25,17 +27,21 @@ class A extends JObject { } final class $AType extends JObjType { + @internal @override A fromReference(JReference reference) { return A.fromReference(reference); } + @internal @override String get signature => 'A'; + @internal @override int get superCount => superType.superCount + 1; + @internal @override JObjType get superType => JObject.type; @@ -55,17 +61,21 @@ class B extends JObject { } final class $BType extends JObjType { + @internal @override B fromReference(JReference reference) { return B.fromReference(reference); } + @internal @override String get signature => 'B'; + @internal @override int get superCount => superType.superCount + 1; + @internal @override JObjType get superType => JObject.type; @@ -86,17 +96,21 @@ class C extends A { } final class $CType extends JObjType { + @internal @override C fromReference(JReference reference) { return C.fromReference(reference); } + @internal @override String get signature => 'C'; + @internal @override int get superCount => superType.superCount + 1; + @internal @override JObjType get superType => $AType(); @@ -117,17 +131,21 @@ class D extends A { } final class $DType extends JObjType { + @internal @override D fromReference(JReference reference) { return D.fromReference(reference); } + @internal @override String get signature => 'D'; + @internal @override int get superCount => superType.superCount + 1; + @internal @override JObjType get superType => $AType(); @@ -148,17 +166,21 @@ class E extends B { } final class $EType extends JObjType { + @internal @override E fromReference(JReference reference) { return E.fromReference(reference); } + @internal @override String get signature => 'E'; + @internal @override int get superCount => superType.superCount + 1; + @internal @override JObjType get superType => $BType(); @@ -179,17 +201,21 @@ class F extends C { } final class $FType extends JObjType { + @internal @override F fromReference(JReference reference) { return F.fromReference(reference); } + @internal @override String get signature => 'F'; + @internal @override int get superCount => superType.superCount + 1; + @internal @override JObjType get superType => $CType(); @@ -310,11 +336,10 @@ void run({required TestRunnerCallback testRunner}) { // C D E // / // F - expect(lowestCommonSuperType([$AType(), $BType()]), const JObjectType()); - expect(lowestCommonSuperType([$CType(), $BType()]), const JObjectType()); - expect(lowestCommonSuperType([$FType(), $BType()]), const JObjectType()); - expect(lowestCommonSuperType([$EType(), $CType(), $FType()]), - const JObjectType()); + expect(lowestCommonSuperType([$AType(), $BType()]), JObject.type); + expect(lowestCommonSuperType([$CType(), $BType()]), JObject.type); + expect(lowestCommonSuperType([$FType(), $BType()]), JObject.type); + expect(lowestCommonSuperType([$EType(), $CType(), $FType()]), JObject.type); expect(lowestCommonSuperType([$CType(), $DType()]), $AType()); expect(lowestCommonSuperType([$FType(), $DType()]), $AType()); diff --git a/pkgs/jnigen/CHANGELOG.md b/pkgs/jnigen/CHANGELOG.md index 98238dd0d..12b2f6120 100644 --- a/pkgs/jnigen/CHANGELOG.md +++ b/pkgs/jnigen/CHANGELOG.md @@ -12,6 +12,10 @@ - **Breaking Change**: Removed the `Impl` suffix from the generated implemenation classes. So the implementation class for an interface named `Foo` is now simply called `$Foo` instead of `$FooImpl`. +- **Breaking Change**: Renamed `castTo` to `as`. +- **Breaking Change**: Renamed and made the typeclasses internal. +- **Breaking Change**: Relaxed the renaming rules to allow for more identifiers + to remain unchanged. - Added `JImplementer` which enables building an object that implements multiple Java interfaces. Each interface now has a static `implementIn` method that takes a `JImplementer` and the implementation object. diff --git a/pkgs/jnigen/example/in_app_java/lib/android_utils.dart b/pkgs/jnigen/example/in_app_java/lib/android_utils.dart index 936e3f0ab..ffe6d2aea 100644 --- a/pkgs/jnigen/example/in_app_java/lib/android_utils.dart +++ b/pkgs/jnigen/example/in_app_java/lib/android_utils.dart @@ -9,7 +9,9 @@ // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter // ignore_for_file: invalid_use_of_internal_member +// ignore_for_file: library_prefixes // ignore_for_file: lines_longer_than_80_chars +// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_local_identifiers // ignore_for_file: non_constant_identifier_names // ignore_for_file: only_throw_errors @@ -25,88 +27,98 @@ // ignore_for_file: unused_shown_name // ignore_for_file: use_super_parameters -import 'dart:ffi' as ffi; -import 'dart:isolate' show RawReceivePort, ReceivePort; +import 'dart:core' show Object, String, bool, double, int; +import 'dart:core' as _$core; -import 'package:jni/_internal.dart'; -import 'package:jni/jni.dart' as jni; +import 'package:jni/_internal.dart' as _$jni; +import 'package:jni/jni.dart' as _$jni; /// from: `androidx.emoji2.text.EmojiCompat$CodepointSequenceMatchResult` -class EmojiCompat_CodepointSequenceMatchResult extends jni.JObject { - @override - late final jni.JObjType $type = - type; +class EmojiCompat_CodepointSequenceMatchResult extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal EmojiCompat_CodepointSequenceMatchResult.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'androidx/emoji2/text/EmojiCompat$CodepointSequenceMatchResult'); /// The type which includes information such as the signature of this class. - static const type = $EmojiCompat_CodepointSequenceMatchResultType(); + static const type = $EmojiCompat_CodepointSequenceMatchResult$Type(); } -final class $EmojiCompat_CodepointSequenceMatchResultType - extends jni.JObjType { - const $EmojiCompat_CodepointSequenceMatchResultType(); +final class $EmojiCompat_CodepointSequenceMatchResult$Type + extends _$jni.JObjType { + @_$jni.internal + const $EmojiCompat_CodepointSequenceMatchResult$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Landroidx/emoji2/text/EmojiCompat$CodepointSequenceMatchResult;'; - @override + @_$jni.internal + @_$core.override EmojiCompat_CodepointSequenceMatchResult fromReference( - jni.JReference reference) => + _$jni.JReference reference) => EmojiCompat_CodepointSequenceMatchResult.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($EmojiCompat_CodepointSequenceMatchResultType).hashCode; + @_$core.override + int get hashCode => ($EmojiCompat_CodepointSequenceMatchResult$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { return other.runtimeType == - ($EmojiCompat_CodepointSequenceMatchResultType) && - other is $EmojiCompat_CodepointSequenceMatchResultType; + ($EmojiCompat_CodepointSequenceMatchResult$Type) && + other is $EmojiCompat_CodepointSequenceMatchResult$Type; } } /// from: `androidx.emoji2.text.EmojiCompat$Config` -class EmojiCompat_Config extends jni.JObject { - @override - late final jni.JObjType $type = type; +class EmojiCompat_Config extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal EmojiCompat_Config.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); static final _class = - jni.JClass.forName(r'androidx/emoji2/text/EmojiCompat$Config'); + _$jni.JClass.forName(r'androidx/emoji2/text/EmojiCompat$Config'); /// The type which includes information such as the signature of this class. - static const type = $EmojiCompat_ConfigType(); + static const type = $EmojiCompat_Config$Type(); static final _id_registerInitCallback = _class.instanceMethodId( r'registerInitCallback', r'(Landroidx/emoji2/text/EmojiCompat$InitCallback;)Landroidx/emoji2/text/EmojiCompat$Config;', ); - static final _registerInitCallback = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _registerInitCallback = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public androidx.emoji2.text.EmojiCompat$Config registerInitCallback(androidx.emoji2.text.EmojiCompat$InitCallback initCallback)` /// The returned object must be released after use, by calling the [release] method. @@ -115,9 +127,9 @@ class EmojiCompat_Config extends jni.JObject { ) { return _registerInitCallback( reference.pointer, - _id_registerInitCallback as jni.JMethodIDPtr, + _id_registerInitCallback as _$jni.JMethodIDPtr, initCallback.reference.pointer) - .object(const $EmojiCompat_ConfigType()); + .object(const $EmojiCompat_Config$Type()); } static final _id_unregisterInitCallback = _class.instanceMethodId( @@ -125,16 +137,16 @@ class EmojiCompat_Config extends jni.JObject { r'(Landroidx/emoji2/text/EmojiCompat$InitCallback;)Landroidx/emoji2/text/EmojiCompat$Config;', ); - static final _unregisterInitCallback = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _unregisterInitCallback = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public androidx.emoji2.text.EmojiCompat$Config unregisterInitCallback(androidx.emoji2.text.EmojiCompat$InitCallback initCallback)` /// The returned object must be released after use, by calling the [release] method. @@ -143,9 +155,9 @@ class EmojiCompat_Config extends jni.JObject { ) { return _unregisterInitCallback( reference.pointer, - _id_unregisterInitCallback as jni.JMethodIDPtr, + _id_unregisterInitCallback as _$jni.JMethodIDPtr, initCallback.reference.pointer) - .object(const $EmojiCompat_ConfigType()); + .object(const $EmojiCompat_Config$Type()); } static final _id_setReplaceAll = _class.instanceMethodId( @@ -153,22 +165,24 @@ class EmojiCompat_Config extends jni.JObject { r'(Z)Landroidx/emoji2/text/EmojiCompat$Config;', ); - static final _setReplaceAll = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallObjectMethod') + static final _setReplaceAll = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public androidx.emoji2.text.EmojiCompat$Config setReplaceAll(boolean z)` /// The returned object must be released after use, by calling the [release] method. EmojiCompat_Config setReplaceAll( bool z, ) { - return _setReplaceAll( - reference.pointer, _id_setReplaceAll as jni.JMethodIDPtr, z ? 1 : 0) - .object(const $EmojiCompat_ConfigType()); + return _setReplaceAll(reference.pointer, + _id_setReplaceAll as _$jni.JMethodIDPtr, z ? 1 : 0) + .object(const $EmojiCompat_Config$Type()); } static final _id_setUseEmojiAsDefaultStyle = _class.instanceMethodId( @@ -176,13 +190,15 @@ class EmojiCompat_Config extends jni.JObject { r'(Z)Landroidx/emoji2/text/EmojiCompat$Config;', ); - static final _setUseEmojiAsDefaultStyle = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallObjectMethod') + static final _setUseEmojiAsDefaultStyle = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public androidx.emoji2.text.EmojiCompat$Config setUseEmojiAsDefaultStyle(boolean z)` /// The returned object must be released after use, by calling the [release] method. @@ -190,8 +206,8 @@ class EmojiCompat_Config extends jni.JObject { bool z, ) { return _setUseEmojiAsDefaultStyle(reference.pointer, - _id_setUseEmojiAsDefaultStyle as jni.JMethodIDPtr, z ? 1 : 0) - .object(const $EmojiCompat_ConfigType()); + _id_setUseEmojiAsDefaultStyle as _$jni.JMethodIDPtr, z ? 1 : 0) + .object(const $EmojiCompat_Config$Type()); } static final _id_setUseEmojiAsDefaultStyle$1 = _class.instanceMethodId( @@ -199,29 +215,33 @@ class EmojiCompat_Config extends jni.JObject { r'(ZLjava/util/List;)Landroidx/emoji2/text/EmojiCompat$Config;', ); - static final _setUseEmojiAsDefaultStyle$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<($Int32, ffi.Pointer)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, int, - ffi.Pointer)>(); + static final _setUseEmojiAsDefaultStyle$1 = + _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Int32, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, int, _$jni.Pointer<_$jni.Void>)>(); /// from: `public androidx.emoji2.text.EmojiCompat$Config setUseEmojiAsDefaultStyle(boolean z, java.util.List list)` /// The returned object must be released after use, by calling the [release] method. EmojiCompat_Config setUseEmojiAsDefaultStyle$1( bool z, - jni.JList list, + _$jni.JList<_$jni.JInteger> list, ) { return _setUseEmojiAsDefaultStyle$1( reference.pointer, - _id_setUseEmojiAsDefaultStyle$1 as jni.JMethodIDPtr, + _id_setUseEmojiAsDefaultStyle$1 as _$jni.JMethodIDPtr, z ? 1 : 0, list.reference.pointer) - .object(const $EmojiCompat_ConfigType()); + .object(const $EmojiCompat_Config$Type()); } static final _id_setEmojiSpanIndicatorEnabled = _class.instanceMethodId( @@ -229,13 +249,15 @@ class EmojiCompat_Config extends jni.JObject { r'(Z)Landroidx/emoji2/text/EmojiCompat$Config;', ); - static final _setEmojiSpanIndicatorEnabled = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + static final _setEmojiSpanIndicatorEnabled = + _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Int32,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public androidx.emoji2.text.EmojiCompat$Config setEmojiSpanIndicatorEnabled(boolean z)` /// The returned object must be released after use, by calling the [release] method. @@ -243,8 +265,8 @@ class EmojiCompat_Config extends jni.JObject { bool z, ) { return _setEmojiSpanIndicatorEnabled(reference.pointer, - _id_setEmojiSpanIndicatorEnabled as jni.JMethodIDPtr, z ? 1 : 0) - .object(const $EmojiCompat_ConfigType()); + _id_setEmojiSpanIndicatorEnabled as _$jni.JMethodIDPtr, z ? 1 : 0) + .object(const $EmojiCompat_Config$Type()); } static final _id_setEmojiSpanIndicatorColor = _class.instanceMethodId( @@ -252,13 +274,15 @@ class EmojiCompat_Config extends jni.JObject { r'(I)Landroidx/emoji2/text/EmojiCompat$Config;', ); - static final _setEmojiSpanIndicatorColor = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + static final _setEmojiSpanIndicatorColor = + _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Int32,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public androidx.emoji2.text.EmojiCompat$Config setEmojiSpanIndicatorColor(int i)` /// The returned object must be released after use, by calling the [release] method. @@ -266,8 +290,8 @@ class EmojiCompat_Config extends jni.JObject { int i, ) { return _setEmojiSpanIndicatorColor(reference.pointer, - _id_setEmojiSpanIndicatorColor as jni.JMethodIDPtr, i) - .object(const $EmojiCompat_ConfigType()); + _id_setEmojiSpanIndicatorColor as _$jni.JMethodIDPtr, i) + .object(const $EmojiCompat_Config$Type()); } static final _id_setMetadataLoadStrategy = _class.instanceMethodId( @@ -275,13 +299,15 @@ class EmojiCompat_Config extends jni.JObject { r'(I)Landroidx/emoji2/text/EmojiCompat$Config;', ); - static final _setMetadataLoadStrategy = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallObjectMethod') + static final _setMetadataLoadStrategy = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public androidx.emoji2.text.EmojiCompat$Config setMetadataLoadStrategy(int i)` /// The returned object must be released after use, by calling the [release] method. @@ -289,8 +315,8 @@ class EmojiCompat_Config extends jni.JObject { int i, ) { return _setMetadataLoadStrategy(reference.pointer, - _id_setMetadataLoadStrategy as jni.JMethodIDPtr, i) - .object(const $EmojiCompat_ConfigType()); + _id_setMetadataLoadStrategy as _$jni.JMethodIDPtr, i) + .object(const $EmojiCompat_Config$Type()); } static final _id_setSpanFactory = _class.instanceMethodId( @@ -298,16 +324,16 @@ class EmojiCompat_Config extends jni.JObject { r'(Landroidx/emoji2/text/EmojiCompat$SpanFactory;)Landroidx/emoji2/text/EmojiCompat$Config;', ); - static final _setSpanFactory = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setSpanFactory = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public androidx.emoji2.text.EmojiCompat$Config setSpanFactory(androidx.emoji2.text.EmojiCompat$SpanFactory spanFactory)` /// The returned object must be released after use, by calling the [release] method. @@ -316,9 +342,9 @@ class EmojiCompat_Config extends jni.JObject { ) { return _setSpanFactory( reference.pointer, - _id_setSpanFactory as jni.JMethodIDPtr, + _id_setSpanFactory as _$jni.JMethodIDPtr, spanFactory.reference.pointer) - .object(const $EmojiCompat_ConfigType()); + .object(const $EmojiCompat_Config$Type()); } static final _id_setGlyphChecker = _class.instanceMethodId( @@ -326,16 +352,16 @@ class EmojiCompat_Config extends jni.JObject { r'(Landroidx/emoji2/text/EmojiCompat$GlyphChecker;)Landroidx/emoji2/text/EmojiCompat$Config;', ); - static final _setGlyphChecker = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setGlyphChecker = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public androidx.emoji2.text.EmojiCompat$Config setGlyphChecker(androidx.emoji2.text.EmojiCompat$GlyphChecker glyphChecker)` /// The returned object must be released after use, by calling the [release] method. @@ -344,73 +370,82 @@ class EmojiCompat_Config extends jni.JObject { ) { return _setGlyphChecker( reference.pointer, - _id_setGlyphChecker as jni.JMethodIDPtr, + _id_setGlyphChecker as _$jni.JMethodIDPtr, glyphChecker.reference.pointer) - .object(const $EmojiCompat_ConfigType()); + .object(const $EmojiCompat_Config$Type()); } } -final class $EmojiCompat_ConfigType extends jni.JObjType { - const $EmojiCompat_ConfigType(); +final class $EmojiCompat_Config$Type + extends _$jni.JObjType { + @_$jni.internal + const $EmojiCompat_Config$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Landroidx/emoji2/text/EmojiCompat$Config;'; - @override - EmojiCompat_Config fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + EmojiCompat_Config fromReference(_$jni.JReference reference) => EmojiCompat_Config.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($EmojiCompat_ConfigType).hashCode; + @_$core.override + int get hashCode => ($EmojiCompat_Config$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($EmojiCompat_ConfigType) && - other is $EmojiCompat_ConfigType; + return other.runtimeType == ($EmojiCompat_Config$Type) && + other is $EmojiCompat_Config$Type; } } /// from: `androidx.emoji2.text.EmojiCompat$DefaultSpanFactory` -class EmojiCompat_DefaultSpanFactory extends jni.JObject { - @override - late final jni.JObjType $type = type; +class EmojiCompat_DefaultSpanFactory extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal EmojiCompat_DefaultSpanFactory.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'androidx/emoji2/text/EmojiCompat$DefaultSpanFactory'); /// The type which includes information such as the signature of this class. - static const type = $EmojiCompat_DefaultSpanFactoryType(); + static const type = $EmojiCompat_DefaultSpanFactory$Type(); static final _id_new$ = _class.constructorId( r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory EmojiCompat_DefaultSpanFactory() { return EmojiCompat_DefaultSpanFactory.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } @@ -419,165 +454,181 @@ class EmojiCompat_DefaultSpanFactory extends jni.JObject { r'(Landroidx/emoji2/text/TypefaceEmojiRasterizer;)Landroidx/emoji2/text/EmojiSpan;', ); - static final _createSpan = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _createSpan = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public androidx.emoji2.text.EmojiSpan createSpan(androidx.emoji2.text.TypefaceEmojiRasterizer typefaceEmojiRasterizer)` /// The returned object must be released after use, by calling the [release] method. - jni.JObject createSpan( - jni.JObject typefaceEmojiRasterizer, + _$jni.JObject createSpan( + _$jni.JObject typefaceEmojiRasterizer, ) { - return _createSpan(reference.pointer, _id_createSpan as jni.JMethodIDPtr, + return _createSpan(reference.pointer, _id_createSpan as _$jni.JMethodIDPtr, typefaceEmojiRasterizer.reference.pointer) - .object(const jni.JObjectType()); + .object(const _$jni.JObjectType()); } } -final class $EmojiCompat_DefaultSpanFactoryType - extends jni.JObjType { - const $EmojiCompat_DefaultSpanFactoryType(); +final class $EmojiCompat_DefaultSpanFactory$Type + extends _$jni.JObjType { + @_$jni.internal + const $EmojiCompat_DefaultSpanFactory$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Landroidx/emoji2/text/EmojiCompat$DefaultSpanFactory;'; - @override - EmojiCompat_DefaultSpanFactory fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + EmojiCompat_DefaultSpanFactory fromReference(_$jni.JReference reference) => EmojiCompat_DefaultSpanFactory.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($EmojiCompat_DefaultSpanFactoryType).hashCode; + @_$core.override + int get hashCode => ($EmojiCompat_DefaultSpanFactory$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($EmojiCompat_DefaultSpanFactoryType) && - other is $EmojiCompat_DefaultSpanFactoryType; + return other.runtimeType == ($EmojiCompat_DefaultSpanFactory$Type) && + other is $EmojiCompat_DefaultSpanFactory$Type; } } /// from: `androidx.emoji2.text.EmojiCompat$GlyphChecker` -class EmojiCompat_GlyphChecker extends jni.JObject { - @override - late final jni.JObjType $type = type; +class EmojiCompat_GlyphChecker extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal EmojiCompat_GlyphChecker.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); static final _class = - jni.JClass.forName(r'androidx/emoji2/text/EmojiCompat$GlyphChecker'); + _$jni.JClass.forName(r'androidx/emoji2/text/EmojiCompat$GlyphChecker'); /// The type which includes information such as the signature of this class. - static const type = $EmojiCompat_GlyphCheckerType(); + static const type = $EmojiCompat_GlyphChecker$Type(); static final _id_hasGlyph = _class.instanceMethodId( r'hasGlyph', r'(Ljava/lang/CharSequence;III)Z', ); - static final _hasGlyph = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _hasGlyph = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - $Int32, - $Int32, - $Int32 + _$jni.Pointer<_$jni.Void>, + _$jni.Int32, + _$jni.Int32, + _$jni.Int32 )>)>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int, int, int)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int, int, int)>(); /// from: `public abstract boolean hasGlyph(java.lang.CharSequence charSequence, int i, int i1, int i2)` bool hasGlyph( - jni.JObject charSequence, + _$jni.JObject charSequence, int i, int i1, int i2, ) { - return _hasGlyph(reference.pointer, _id_hasGlyph as jni.JMethodIDPtr, + return _hasGlyph(reference.pointer, _id_hasGlyph as _$jni.JMethodIDPtr, charSequence.reference.pointer, i, i1, i2) .boolean; } } -final class $EmojiCompat_GlyphCheckerType - extends jni.JObjType { - const $EmojiCompat_GlyphCheckerType(); +final class $EmojiCompat_GlyphChecker$Type + extends _$jni.JObjType { + @_$jni.internal + const $EmojiCompat_GlyphChecker$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Landroidx/emoji2/text/EmojiCompat$GlyphChecker;'; - @override - EmojiCompat_GlyphChecker fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + EmojiCompat_GlyphChecker fromReference(_$jni.JReference reference) => EmojiCompat_GlyphChecker.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($EmojiCompat_GlyphCheckerType).hashCode; + @_$core.override + int get hashCode => ($EmojiCompat_GlyphChecker$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($EmojiCompat_GlyphCheckerType) && - other is $EmojiCompat_GlyphCheckerType; + return other.runtimeType == ($EmojiCompat_GlyphChecker$Type) && + other is $EmojiCompat_GlyphChecker$Type; } } /// from: `androidx.emoji2.text.EmojiCompat$InitCallback` -class EmojiCompat_InitCallback extends jni.JObject { - @override - late final jni.JObjType $type = type; +class EmojiCompat_InitCallback extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal EmojiCompat_InitCallback.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); static final _class = - jni.JClass.forName(r'androidx/emoji2/text/EmojiCompat$InitCallback'); + _$jni.JClass.forName(r'androidx/emoji2/text/EmojiCompat$InitCallback'); /// The type which includes information such as the signature of this class. - static const type = $EmojiCompat_InitCallbackType(); + static const type = $EmojiCompat_InitCallback$Type(); static final _id_onInitialized = _class.instanceMethodId( r'onInitialized', r'()V', ); - static final _onInitialized = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _onInitialized = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void onInitialized()` void onInitialized() { - _onInitialized(reference.pointer, _id_onInitialized as jni.JMethodIDPtr) + _onInitialized(reference.pointer, _id_onInitialized as _$jni.JMethodIDPtr) .check(); } @@ -586,200 +637,224 @@ class EmojiCompat_InitCallback extends jni.JObject { r'(Ljava/lang/Throwable;)V', ); - static final _onFailed = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _onFailed = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void onFailed(java.lang.Throwable throwable)` void onFailed( - jni.JObject throwable, + _$jni.JObject throwable, ) { - _onFailed(reference.pointer, _id_onFailed as jni.JMethodIDPtr, + _onFailed(reference.pointer, _id_onFailed as _$jni.JMethodIDPtr, throwable.reference.pointer) .check(); } } -final class $EmojiCompat_InitCallbackType - extends jni.JObjType { - const $EmojiCompat_InitCallbackType(); +final class $EmojiCompat_InitCallback$Type + extends _$jni.JObjType { + @_$jni.internal + const $EmojiCompat_InitCallback$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Landroidx/emoji2/text/EmojiCompat$InitCallback;'; - @override - EmojiCompat_InitCallback fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + EmojiCompat_InitCallback fromReference(_$jni.JReference reference) => EmojiCompat_InitCallback.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($EmojiCompat_InitCallbackType).hashCode; + @_$core.override + int get hashCode => ($EmojiCompat_InitCallback$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($EmojiCompat_InitCallbackType) && - other is $EmojiCompat_InitCallbackType; + return other.runtimeType == ($EmojiCompat_InitCallback$Type) && + other is $EmojiCompat_InitCallback$Type; } } /// from: `androidx.emoji2.text.EmojiCompat$LoadStrategy` -class EmojiCompat_LoadStrategy extends jni.JObject { - @override - late final jni.JObjType $type = type; +class EmojiCompat_LoadStrategy extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal EmojiCompat_LoadStrategy.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); static final _class = - jni.JClass.forName(r'androidx/emoji2/text/EmojiCompat$LoadStrategy'); + _$jni.JClass.forName(r'androidx/emoji2/text/EmojiCompat$LoadStrategy'); /// The type which includes information such as the signature of this class. - static const type = $EmojiCompat_LoadStrategyType(); + static const type = $EmojiCompat_LoadStrategy$Type(); } -final class $EmojiCompat_LoadStrategyType - extends jni.JObjType { - const $EmojiCompat_LoadStrategyType(); +final class $EmojiCompat_LoadStrategy$Type + extends _$jni.JObjType { + @_$jni.internal + const $EmojiCompat_LoadStrategy$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Landroidx/emoji2/text/EmojiCompat$LoadStrategy;'; - @override - EmojiCompat_LoadStrategy fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + EmojiCompat_LoadStrategy fromReference(_$jni.JReference reference) => EmojiCompat_LoadStrategy.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($EmojiCompat_LoadStrategyType).hashCode; + @_$core.override + int get hashCode => ($EmojiCompat_LoadStrategy$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($EmojiCompat_LoadStrategyType) && - other is $EmojiCompat_LoadStrategyType; + return other.runtimeType == ($EmojiCompat_LoadStrategy$Type) && + other is $EmojiCompat_LoadStrategy$Type; } } /// from: `androidx.emoji2.text.EmojiCompat$MetadataRepoLoader` -class EmojiCompat_MetadataRepoLoader extends jni.JObject { - @override - late final jni.JObjType $type = type; +class EmojiCompat_MetadataRepoLoader extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal EmojiCompat_MetadataRepoLoader.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'androidx/emoji2/text/EmojiCompat$MetadataRepoLoader'); /// The type which includes information such as the signature of this class. - static const type = $EmojiCompat_MetadataRepoLoaderType(); + static const type = $EmojiCompat_MetadataRepoLoader$Type(); static final _id_load = _class.instanceMethodId( r'load', r'(Landroidx/emoji2/text/EmojiCompat$MetadataRepoLoaderCallback;)V', ); - static final _load = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _load = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public abstract void load(androidx.emoji2.text.EmojiCompat$MetadataRepoLoaderCallback metadataRepoLoaderCallback)` void load( EmojiCompat_MetadataRepoLoaderCallback metadataRepoLoaderCallback, ) { - _load(reference.pointer, _id_load as jni.JMethodIDPtr, + _load(reference.pointer, _id_load as _$jni.JMethodIDPtr, metadataRepoLoaderCallback.reference.pointer) .check(); } } -final class $EmojiCompat_MetadataRepoLoaderType - extends jni.JObjType { - const $EmojiCompat_MetadataRepoLoaderType(); +final class $EmojiCompat_MetadataRepoLoader$Type + extends _$jni.JObjType { + @_$jni.internal + const $EmojiCompat_MetadataRepoLoader$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Landroidx/emoji2/text/EmojiCompat$MetadataRepoLoader;'; - @override - EmojiCompat_MetadataRepoLoader fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + EmojiCompat_MetadataRepoLoader fromReference(_$jni.JReference reference) => EmojiCompat_MetadataRepoLoader.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($EmojiCompat_MetadataRepoLoaderType).hashCode; + @_$core.override + int get hashCode => ($EmojiCompat_MetadataRepoLoader$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($EmojiCompat_MetadataRepoLoaderType) && - other is $EmojiCompat_MetadataRepoLoaderType; + return other.runtimeType == ($EmojiCompat_MetadataRepoLoader$Type) && + other is $EmojiCompat_MetadataRepoLoader$Type; } } /// from: `androidx.emoji2.text.EmojiCompat$MetadataRepoLoaderCallback` -class EmojiCompat_MetadataRepoLoaderCallback extends jni.JObject { - @override - late final jni.JObjType $type = type; +class EmojiCompat_MetadataRepoLoaderCallback extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal EmojiCompat_MetadataRepoLoaderCallback.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'androidx/emoji2/text/EmojiCompat$MetadataRepoLoaderCallback'); /// The type which includes information such as the signature of this class. - static const type = $EmojiCompat_MetadataRepoLoaderCallbackType(); + static const type = $EmojiCompat_MetadataRepoLoaderCallback$Type(); static final _id_onLoaded = _class.instanceMethodId( r'onLoaded', r'(Landroidx/emoji2/text/MetadataRepo;)V', ); - static final _onLoaded = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _onLoaded = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public abstract void onLoaded(androidx.emoji2.text.MetadataRepo metadataRepo)` void onLoaded( - jni.JObject metadataRepo, + _$jni.JObject metadataRepo, ) { - _onLoaded(reference.pointer, _id_onLoaded as jni.JMethodIDPtr, + _onLoaded(reference.pointer, _id_onLoaded as _$jni.JMethodIDPtr, metadataRepo.reference.pointer) .check(); } @@ -789,180 +864,206 @@ class EmojiCompat_MetadataRepoLoaderCallback extends jni.JObject { r'(Ljava/lang/Throwable;)V', ); - static final _onFailed = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _onFailed = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public abstract void onFailed(java.lang.Throwable throwable)` void onFailed( - jni.JObject throwable, + _$jni.JObject throwable, ) { - _onFailed(reference.pointer, _id_onFailed as jni.JMethodIDPtr, + _onFailed(reference.pointer, _id_onFailed as _$jni.JMethodIDPtr, throwable.reference.pointer) .check(); } } -final class $EmojiCompat_MetadataRepoLoaderCallbackType - extends jni.JObjType { - const $EmojiCompat_MetadataRepoLoaderCallbackType(); +final class $EmojiCompat_MetadataRepoLoaderCallback$Type + extends _$jni.JObjType { + @_$jni.internal + const $EmojiCompat_MetadataRepoLoaderCallback$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Landroidx/emoji2/text/EmojiCompat$MetadataRepoLoaderCallback;'; - @override + @_$jni.internal + @_$core.override EmojiCompat_MetadataRepoLoaderCallback fromReference( - jni.JReference reference) => + _$jni.JReference reference) => EmojiCompat_MetadataRepoLoaderCallback.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($EmojiCompat_MetadataRepoLoaderCallbackType).hashCode; + @_$core.override + int get hashCode => ($EmojiCompat_MetadataRepoLoaderCallback$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($EmojiCompat_MetadataRepoLoaderCallbackType) && - other is $EmojiCompat_MetadataRepoLoaderCallbackType; + return other.runtimeType == + ($EmojiCompat_MetadataRepoLoaderCallback$Type) && + other is $EmojiCompat_MetadataRepoLoaderCallback$Type; } } /// from: `androidx.emoji2.text.EmojiCompat$ReplaceStrategy` -class EmojiCompat_ReplaceStrategy extends jni.JObject { - @override - late final jni.JObjType $type = type; +class EmojiCompat_ReplaceStrategy extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal EmojiCompat_ReplaceStrategy.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); static final _class = - jni.JClass.forName(r'androidx/emoji2/text/EmojiCompat$ReplaceStrategy'); + _$jni.JClass.forName(r'androidx/emoji2/text/EmojiCompat$ReplaceStrategy'); /// The type which includes information such as the signature of this class. - static const type = $EmojiCompat_ReplaceStrategyType(); + static const type = $EmojiCompat_ReplaceStrategy$Type(); } -final class $EmojiCompat_ReplaceStrategyType - extends jni.JObjType { - const $EmojiCompat_ReplaceStrategyType(); +final class $EmojiCompat_ReplaceStrategy$Type + extends _$jni.JObjType { + @_$jni.internal + const $EmojiCompat_ReplaceStrategy$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Landroidx/emoji2/text/EmojiCompat$ReplaceStrategy;'; - @override - EmojiCompat_ReplaceStrategy fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + EmojiCompat_ReplaceStrategy fromReference(_$jni.JReference reference) => EmojiCompat_ReplaceStrategy.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($EmojiCompat_ReplaceStrategyType).hashCode; + @_$core.override + int get hashCode => ($EmojiCompat_ReplaceStrategy$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($EmojiCompat_ReplaceStrategyType) && - other is $EmojiCompat_ReplaceStrategyType; + return other.runtimeType == ($EmojiCompat_ReplaceStrategy$Type) && + other is $EmojiCompat_ReplaceStrategy$Type; } } /// from: `androidx.emoji2.text.EmojiCompat$SpanFactory` -class EmojiCompat_SpanFactory extends jni.JObject { - @override - late final jni.JObjType $type = type; +class EmojiCompat_SpanFactory extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal EmojiCompat_SpanFactory.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); static final _class = - jni.JClass.forName(r'androidx/emoji2/text/EmojiCompat$SpanFactory'); + _$jni.JClass.forName(r'androidx/emoji2/text/EmojiCompat$SpanFactory'); /// The type which includes information such as the signature of this class. - static const type = $EmojiCompat_SpanFactoryType(); + static const type = $EmojiCompat_SpanFactory$Type(); static final _id_createSpan = _class.instanceMethodId( r'createSpan', r'(Landroidx/emoji2/text/TypefaceEmojiRasterizer;)Landroidx/emoji2/text/EmojiSpan;', ); - static final _createSpan = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _createSpan = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public abstract androidx.emoji2.text.EmojiSpan createSpan(androidx.emoji2.text.TypefaceEmojiRasterizer typefaceEmojiRasterizer)` /// The returned object must be released after use, by calling the [release] method. - jni.JObject createSpan( - jni.JObject typefaceEmojiRasterizer, + _$jni.JObject createSpan( + _$jni.JObject typefaceEmojiRasterizer, ) { - return _createSpan(reference.pointer, _id_createSpan as jni.JMethodIDPtr, + return _createSpan(reference.pointer, _id_createSpan as _$jni.JMethodIDPtr, typefaceEmojiRasterizer.reference.pointer) - .object(const jni.JObjectType()); + .object(const _$jni.JObjectType()); } } -final class $EmojiCompat_SpanFactoryType - extends jni.JObjType { - const $EmojiCompat_SpanFactoryType(); +final class $EmojiCompat_SpanFactory$Type + extends _$jni.JObjType { + @_$jni.internal + const $EmojiCompat_SpanFactory$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Landroidx/emoji2/text/EmojiCompat$SpanFactory;'; - @override - EmojiCompat_SpanFactory fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + EmojiCompat_SpanFactory fromReference(_$jni.JReference reference) => EmojiCompat_SpanFactory.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($EmojiCompat_SpanFactoryType).hashCode; + @_$core.override + int get hashCode => ($EmojiCompat_SpanFactory$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($EmojiCompat_SpanFactoryType) && - other is $EmojiCompat_SpanFactoryType; + return other.runtimeType == ($EmojiCompat_SpanFactory$Type) && + other is $EmojiCompat_SpanFactory$Type; } } /// from: `androidx.emoji2.text.EmojiCompat` -class EmojiCompat extends jni.JObject { - @override - late final jni.JObjType $type = type; +class EmojiCompat extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal EmojiCompat.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = jni.JClass.forName(r'androidx/emoji2/text/EmojiCompat'); + static final _class = + _$jni.JClass.forName(r'androidx/emoji2/text/EmojiCompat'); /// The type which includes information such as the signature of this class. - static const type = $EmojiCompatType(); + static const type = $EmojiCompat$Type(); static final _id_EDITOR_INFO_METAVERSION_KEY = _class.staticFieldId( r'EDITOR_INFO_METAVERSION_KEY', r'Ljava/lang/String;', @@ -970,8 +1071,8 @@ class EmojiCompat extends jni.JObject { /// from: `static public final java.lang.String EDITOR_INFO_METAVERSION_KEY` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get EDITOR_INFO_METAVERSION_KEY => - _id_EDITOR_INFO_METAVERSION_KEY.get(_class, const jni.JStringType()); + static _$jni.JString get EDITOR_INFO_METAVERSION_KEY => + _id_EDITOR_INFO_METAVERSION_KEY.get(_class, const _$jni.JStringType()); static final _id_EDITOR_INFO_REPLACE_ALL_KEY = _class.staticFieldId( r'EDITOR_INFO_REPLACE_ALL_KEY', @@ -980,8 +1081,8 @@ class EmojiCompat extends jni.JObject { /// from: `static public final java.lang.String EDITOR_INFO_REPLACE_ALL_KEY` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get EDITOR_INFO_REPLACE_ALL_KEY => - _id_EDITOR_INFO_REPLACE_ALL_KEY.get(_class, const jni.JStringType()); + static _$jni.JString get EDITOR_INFO_REPLACE_ALL_KEY => + _id_EDITOR_INFO_REPLACE_ALL_KEY.get(_class, const _$jni.JStringType()); /// from: `static public final int LOAD_STATE_DEFAULT` static const LOAD_STATE_DEFAULT = 3; @@ -1023,25 +1124,25 @@ class EmojiCompat extends jni.JObject { r'(Landroid/content/Context;)Landroidx/emoji2/text/EmojiCompat;', ); - static final _init = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _init = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `static public androidx.emoji2.text.EmojiCompat init(android.content.Context context)` /// The returned object must be released after use, by calling the [release] method. static EmojiCompat init( - jni.JObject context, + _$jni.JObject context, ) { - return _init(_class.reference.pointer, _id_init as jni.JMethodIDPtr, + return _init(_class.reference.pointer, _id_init as _$jni.JMethodIDPtr, context.reference.pointer) - .object(const $EmojiCompatType()); + .object(const $EmojiCompat$Type()); } static final _id_init$1 = _class.staticMethodId( @@ -1049,33 +1150,36 @@ class EmojiCompat extends jni.JObject { r'(Landroid/content/Context;Landroidx/emoji2/text/DefaultEmojiCompatConfig$DefaultEmojiCompatConfigFactory;)Landroidx/emoji2/text/EmojiCompat;', ); - static final _init$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _init$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `static public androidx.emoji2.text.EmojiCompat init(android.content.Context context, androidx.emoji2.text.DefaultEmojiCompatConfig$DefaultEmojiCompatConfigFactory defaultEmojiCompatConfigFactory)` /// The returned object must be released after use, by calling the [release] method. static EmojiCompat init$1( - jni.JObject context, + _$jni.JObject context, DefaultEmojiCompatConfig_DefaultEmojiCompatConfigFactory defaultEmojiCompatConfigFactory, ) { return _init$1( _class.reference.pointer, - _id_init$1 as jni.JMethodIDPtr, + _id_init$1 as _$jni.JMethodIDPtr, context.reference.pointer, defaultEmojiCompatConfigFactory.reference.pointer) - .object(const $EmojiCompatType()); + .object(const $EmojiCompat$Type()); } static final _id_init$2 = _class.staticMethodId( @@ -1083,25 +1187,25 @@ class EmojiCompat extends jni.JObject { r'(Landroidx/emoji2/text/EmojiCompat$Config;)Landroidx/emoji2/text/EmojiCompat;', ); - static final _init$2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _init$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `static public androidx.emoji2.text.EmojiCompat init(androidx.emoji2.text.EmojiCompat$Config config)` /// The returned object must be released after use, by calling the [release] method. static EmojiCompat init$2( EmojiCompat_Config config, ) { - return _init$2(_class.reference.pointer, _id_init$2 as jni.JMethodIDPtr, + return _init$2(_class.reference.pointer, _id_init$2 as _$jni.JMethodIDPtr, config.reference.pointer) - .object(const $EmojiCompatType()); + .object(const $EmojiCompat$Type()); } static final _id_isConfigured = _class.staticMethodId( @@ -1109,22 +1213,22 @@ class EmojiCompat extends jni.JObject { r'()Z', ); - static final _isConfigured = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _isConfigured = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public boolean isConfigured()` static bool isConfigured() { return _isConfigured( - _class.reference.pointer, _id_isConfigured as jni.JMethodIDPtr) + _class.reference.pointer, _id_isConfigured as _$jni.JMethodIDPtr) .boolean; } @@ -1133,25 +1237,25 @@ class EmojiCompat extends jni.JObject { r'(Landroidx/emoji2/text/EmojiCompat$Config;)Landroidx/emoji2/text/EmojiCompat;', ); - static final _reset = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _reset = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `static public androidx.emoji2.text.EmojiCompat reset(androidx.emoji2.text.EmojiCompat$Config config)` /// The returned object must be released after use, by calling the [release] method. static EmojiCompat reset( EmojiCompat_Config config, ) { - return _reset(_class.reference.pointer, _id_reset as jni.JMethodIDPtr, + return _reset(_class.reference.pointer, _id_reset as _$jni.JMethodIDPtr, config.reference.pointer) - .object(const $EmojiCompatType()); + .object(const $EmojiCompat$Type()); } static final _id_reset$1 = _class.staticMethodId( @@ -1159,25 +1263,25 @@ class EmojiCompat extends jni.JObject { r'(Landroidx/emoji2/text/EmojiCompat;)Landroidx/emoji2/text/EmojiCompat;', ); - static final _reset$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _reset$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `static public androidx.emoji2.text.EmojiCompat reset(androidx.emoji2.text.EmojiCompat emojiCompat)` /// The returned object must be released after use, by calling the [release] method. static EmojiCompat reset$1( EmojiCompat emojiCompat, ) { - return _reset$1(_class.reference.pointer, _id_reset$1 as jni.JMethodIDPtr, + return _reset$1(_class.reference.pointer, _id_reset$1 as _$jni.JMethodIDPtr, emojiCompat.reference.pointer) - .object(const $EmojiCompatType()); + .object(const $EmojiCompat$Type()); } static final _id_skipDefaultConfigurationLookup = _class.staticMethodId( @@ -1185,47 +1289,47 @@ class EmojiCompat extends jni.JObject { r'(Z)V', ); - static final _skipDefaultConfigurationLookup = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + static final _skipDefaultConfigurationLookup = + _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Int32,)>)>>( + 'globalEnv_CallStaticVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `static public void skipDefaultConfigurationLookup(boolean z)` static void skipDefaultConfigurationLookup( bool z, ) { _skipDefaultConfigurationLookup(_class.reference.pointer, - _id_skipDefaultConfigurationLookup as jni.JMethodIDPtr, z ? 1 : 0) + _id_skipDefaultConfigurationLookup as _$jni.JMethodIDPtr, z ? 1 : 0) .check(); } - static final _id_get$ = _class.staticMethodId( + static final _id_get = _class.staticMethodId( r'get', r'()Landroidx/emoji2/text/EmojiCompat;', ); - static final _get$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _get = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public androidx.emoji2.text.EmojiCompat get()` /// The returned object must be released after use, by calling the [release] method. - static EmojiCompat get$() { - return _get$(_class.reference.pointer, _id_get$ as jni.JMethodIDPtr) - .object(const $EmojiCompatType()); + static EmojiCompat get() { + return _get(_class.reference.pointer, _id_get as _$jni.JMethodIDPtr) + .object(const $EmojiCompat$Type()); } static final _id_load = _class.instanceMethodId( @@ -1233,21 +1337,21 @@ class EmojiCompat extends jni.JObject { r'()V', ); - static final _load = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _load = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void load()` void load() { - _load(reference.pointer, _id_load as jni.JMethodIDPtr).check(); + _load(reference.pointer, _id_load as _$jni.JMethodIDPtr).check(); } static final _id_registerInitCallback = _class.instanceMethodId( @@ -1255,16 +1359,16 @@ class EmojiCompat extends jni.JObject { r'(Landroidx/emoji2/text/EmojiCompat$InitCallback;)V', ); - static final _registerInitCallback = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _registerInitCallback = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void registerInitCallback(androidx.emoji2.text.EmojiCompat$InitCallback initCallback)` void registerInitCallback( @@ -1272,7 +1376,7 @@ class EmojiCompat extends jni.JObject { ) { _registerInitCallback( reference.pointer, - _id_registerInitCallback as jni.JMethodIDPtr, + _id_registerInitCallback as _$jni.JMethodIDPtr, initCallback.reference.pointer) .check(); } @@ -1282,16 +1386,16 @@ class EmojiCompat extends jni.JObject { r'(Landroidx/emoji2/text/EmojiCompat$InitCallback;)V', ); - static final _unregisterInitCallback = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _unregisterInitCallback = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void unregisterInitCallback(androidx.emoji2.text.EmojiCompat$InitCallback initCallback)` void unregisterInitCallback( @@ -1299,7 +1403,7 @@ class EmojiCompat extends jni.JObject { ) { _unregisterInitCallback( reference.pointer, - _id_unregisterInitCallback as jni.JMethodIDPtr, + _id_unregisterInitCallback as _$jni.JMethodIDPtr, initCallback.reference.pointer) .check(); } @@ -1309,22 +1413,22 @@ class EmojiCompat extends jni.JObject { r'()I', ); - static final _getLoadState = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getLoadState = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public int getLoadState()` int getLoadState() { return _getLoadState( - reference.pointer, _id_getLoadState as jni.JMethodIDPtr) + reference.pointer, _id_getLoadState as _$jni.JMethodIDPtr) .integer; } @@ -1333,22 +1437,23 @@ class EmojiCompat extends jni.JObject { r'()Z', ); - static final _isEmojiSpanIndicatorEnabled = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + static final _isEmojiSpanIndicatorEnabled = + _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); /// from: `public boolean isEmojiSpanIndicatorEnabled()` bool isEmojiSpanIndicatorEnabled() { return _isEmojiSpanIndicatorEnabled(reference.pointer, - _id_isEmojiSpanIndicatorEnabled as jni.JMethodIDPtr) + _id_isEmojiSpanIndicatorEnabled as _$jni.JMethodIDPtr) .boolean; } @@ -1357,22 +1462,23 @@ class EmojiCompat extends jni.JObject { r'()I', ); - static final _getEmojiSpanIndicatorColor = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + static final _getEmojiSpanIndicatorColor = + _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); /// from: `public int getEmojiSpanIndicatorColor()` int getEmojiSpanIndicatorColor() { return _getEmojiSpanIndicatorColor(reference.pointer, - _id_getEmojiSpanIndicatorColor as jni.JMethodIDPtr) + _id_getEmojiSpanIndicatorColor as _$jni.JMethodIDPtr) .integer; } @@ -1381,25 +1487,26 @@ class EmojiCompat extends jni.JObject { r'(Ljava/lang/CharSequence;I)I', ); - static final _getEmojiStart = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer, $Int32)>)>>( + static final _getEmojiStart = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Int32)>)>>( 'globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int)>(); /// from: `public int getEmojiStart(java.lang.CharSequence charSequence, int i)` int getEmojiStart( - jni.JObject charSequence, + _$jni.JObject charSequence, int i, ) { return _getEmojiStart( reference.pointer, - _id_getEmojiStart as jni.JMethodIDPtr, + _id_getEmojiStart as _$jni.JMethodIDPtr, charSequence.reference.pointer, i) .integer; @@ -1410,24 +1517,28 @@ class EmojiCompat extends jni.JObject { r'(Ljava/lang/CharSequence;I)I', ); - static final _getEmojiEnd = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer, $Int32)>)>>( + static final _getEmojiEnd = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Int32)>)>>( 'globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int)>(); /// from: `public int getEmojiEnd(java.lang.CharSequence charSequence, int i)` int getEmojiEnd( - jni.JObject charSequence, + _$jni.JObject charSequence, int i, ) { - return _getEmojiEnd(reference.pointer, _id_getEmojiEnd as jni.JMethodIDPtr, - charSequence.reference.pointer, i) + return _getEmojiEnd( + reference.pointer, + _id_getEmojiEnd as _$jni.JMethodIDPtr, + charSequence.reference.pointer, + i) .integer; } @@ -1436,30 +1547,34 @@ class EmojiCompat extends jni.JObject { r'(Landroid/text/Editable;ILandroid/view/KeyEvent;)Z', ); - static final _handleOnKeyDown = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _handleOnKeyDown = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - $Int32, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Int32, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallStaticBooleanMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + int, + _$jni.Pointer<_$jni.Void>)>(); /// from: `static public boolean handleOnKeyDown(android.text.Editable editable, int i, android.view.KeyEvent keyEvent)` static bool handleOnKeyDown( - jni.JObject editable, + _$jni.JObject editable, int i, - jni.JObject keyEvent, + _$jni.JObject keyEvent, ) { return _handleOnKeyDown( _class.reference.pointer, - _id_handleOnKeyDown as jni.JMethodIDPtr, + _id_handleOnKeyDown as _$jni.JMethodIDPtr, editable.reference.pointer, i, keyEvent.reference.pointer) @@ -1471,34 +1586,41 @@ class EmojiCompat extends jni.JObject { r'(Landroid/view/inputmethod/InputConnection;Landroid/text/Editable;IIZ)Z', ); - static final _handleDeleteSurroundingText = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer, - $Int32, - $Int32, - $Int32 - )>)>>('globalEnv_CallStaticBooleanMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer, int, int, int)>(); + static final _handleDeleteSurroundingText = + _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Int32, + _$jni.Int32, + _$jni.Int32 + )>)>>('globalEnv_CallStaticBooleanMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + int, + int, + int)>(); /// from: `static public boolean handleDeleteSurroundingText(android.view.inputmethod.InputConnection inputConnection, android.text.Editable editable, int i, int i1, boolean z)` static bool handleDeleteSurroundingText( - jni.JObject inputConnection, - jni.JObject editable, + _$jni.JObject inputConnection, + _$jni.JObject editable, int i, int i1, bool z, ) { return _handleDeleteSurroundingText( _class.reference.pointer, - _id_handleDeleteSurroundingText as jni.JMethodIDPtr, + _id_handleDeleteSurroundingText as _$jni.JMethodIDPtr, inputConnection.reference.pointer, editable.reference.pointer, i, @@ -1512,24 +1634,24 @@ class EmojiCompat extends jni.JObject { r'(Ljava/lang/CharSequence;)Z', ); - static final _hasEmojiGlyph = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _hasEmojiGlyph = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public boolean hasEmojiGlyph(java.lang.CharSequence charSequence)` bool hasEmojiGlyph( - jni.JObject charSequence, + _$jni.JObject charSequence, ) { return _hasEmojiGlyph( reference.pointer, - _id_hasEmojiGlyph as jni.JMethodIDPtr, + _id_hasEmojiGlyph as _$jni.JMethodIDPtr, charSequence.reference.pointer) .boolean; } @@ -1539,25 +1661,26 @@ class EmojiCompat extends jni.JObject { r'(Ljava/lang/CharSequence;I)Z', ); - static final _hasEmojiGlyph$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer, $Int32)>)>>( + static final _hasEmojiGlyph$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Int32)>)>>( 'globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int)>(); /// from: `public boolean hasEmojiGlyph(java.lang.CharSequence charSequence, int i)` bool hasEmojiGlyph$1( - jni.JObject charSequence, + _$jni.JObject charSequence, int i, ) { return _hasEmojiGlyph$1( reference.pointer, - _id_hasEmojiGlyph$1 as jni.JMethodIDPtr, + _id_hasEmojiGlyph$1 as _$jni.JMethodIDPtr, charSequence.reference.pointer, i) .boolean; @@ -1568,25 +1691,26 @@ class EmojiCompat extends jni.JObject { r'(Ljava/lang/CharSequence;I)I', ); - static final _getEmojiMatch = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer, $Int32)>)>>( + static final _getEmojiMatch = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Int32)>)>>( 'globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int)>(); /// from: `public int getEmojiMatch(java.lang.CharSequence charSequence, int i)` int getEmojiMatch( - jni.JObject charSequence, + _$jni.JObject charSequence, int i, ) { return _getEmojiMatch( reference.pointer, - _id_getEmojiMatch as jni.JMethodIDPtr, + _id_getEmojiMatch as _$jni.JMethodIDPtr, charSequence.reference.pointer, i) .integer; @@ -1597,25 +1721,25 @@ class EmojiCompat extends jni.JObject { r'(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;', ); - static final _process = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _process = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public java.lang.CharSequence process(java.lang.CharSequence charSequence)` /// The returned object must be released after use, by calling the [release] method. - jni.JObject process( - jni.JObject charSequence, + _$jni.JObject process( + _$jni.JObject charSequence, ) { - return _process(reference.pointer, _id_process as jni.JMethodIDPtr, + return _process(reference.pointer, _id_process as _$jni.JMethodIDPtr, charSequence.reference.pointer) - .object(const jni.JObjectType()); + .object(const _$jni.JObjectType()); } static final _id_process$1 = _class.instanceMethodId( @@ -1623,27 +1747,31 @@ class EmojiCompat extends jni.JObject { r'(Ljava/lang/CharSequence;II)Ljava/lang/CharSequence;', ); - static final _process$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer, $Int32, $Int32)>)>>( - 'globalEnv_CallObjectMethod') + static final _process$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Int32, + _$jni.Int32 + )>)>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int, int)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int, int)>(); /// from: `public java.lang.CharSequence process(java.lang.CharSequence charSequence, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. - jni.JObject process$1( - jni.JObject charSequence, + _$jni.JObject process$1( + _$jni.JObject charSequence, int i, int i1, ) { - return _process$1(reference.pointer, _id_process$1 as jni.JMethodIDPtr, + return _process$1(reference.pointer, _id_process$1 as _$jni.JMethodIDPtr, charSequence.reference.pointer, i, i1) - .object(const jni.JObjectType()); + .object(const _$jni.JObjectType()); } static final _id_process$2 = _class.instanceMethodId( @@ -1651,33 +1779,33 @@ class EmojiCompat extends jni.JObject { r'(Ljava/lang/CharSequence;III)Ljava/lang/CharSequence;', ); - static final _process$2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _process$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - $Int32, - $Int32, - $Int32 + _$jni.Pointer<_$jni.Void>, + _$jni.Int32, + _$jni.Int32, + _$jni.Int32 )>)>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int, int, int)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int, int, int)>(); /// from: `public java.lang.CharSequence process(java.lang.CharSequence charSequence, int i, int i1, int i2)` /// The returned object must be released after use, by calling the [release] method. - jni.JObject process$2( - jni.JObject charSequence, + _$jni.JObject process$2( + _$jni.JObject charSequence, int i, int i1, int i2, ) { - return _process$2(reference.pointer, _id_process$2 as jni.JMethodIDPtr, + return _process$2(reference.pointer, _id_process$2 as _$jni.JMethodIDPtr, charSequence.reference.pointer, i, i1, i2) - .object(const jni.JObjectType()); + .object(const _$jni.JObjectType()); } static final _id_process$3 = _class.instanceMethodId( @@ -1685,35 +1813,41 @@ class EmojiCompat extends jni.JObject { r'(Ljava/lang/CharSequence;IIII)Ljava/lang/CharSequence;', ); - static final _process$3 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _process$3 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - $Int32, - $Int32, - $Int32, - $Int32 + _$jni.Pointer<_$jni.Void>, + _$jni.Int32, + _$jni.Int32, + _$jni.Int32, + _$jni.Int32 )>)>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int, int, int, int)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + int, + int, + int, + int)>(); /// from: `public java.lang.CharSequence process(java.lang.CharSequence charSequence, int i, int i1, int i2, int i3)` /// The returned object must be released after use, by calling the [release] method. - jni.JObject process$3( - jni.JObject charSequence, + _$jni.JObject process$3( + _$jni.JObject charSequence, int i, int i1, int i2, int i3, ) { - return _process$3(reference.pointer, _id_process$3 as jni.JMethodIDPtr, + return _process$3(reference.pointer, _id_process$3 as _$jni.JMethodIDPtr, charSequence.reference.pointer, i, i1, i2, i3) - .object(const jni.JObjectType()); + .object(const _$jni.JObjectType()); } static final _id_getAssetSignature = _class.instanceMethodId( @@ -1721,24 +1855,24 @@ class EmojiCompat extends jni.JObject { r'()Ljava/lang/String;', ); - static final _getAssetSignature = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getAssetSignature = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.String getAssetSignature()` /// The returned object must be released after use, by calling the [release] method. - jni.JString getAssetSignature() { + _$jni.JString getAssetSignature() { return _getAssetSignature( - reference.pointer, _id_getAssetSignature as jni.JMethodIDPtr) - .object(const jni.JStringType()); + reference.pointer, _id_getAssetSignature as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_updateEditorInfo = _class.instanceMethodId( @@ -1746,86 +1880,94 @@ class EmojiCompat extends jni.JObject { r'(Landroid/view/inputmethod/EditorInfo;)V', ); - static final _updateEditorInfo = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _updateEditorInfo = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void updateEditorInfo(android.view.inputmethod.EditorInfo editorInfo)` void updateEditorInfo( - jni.JObject editorInfo, + _$jni.JObject editorInfo, ) { _updateEditorInfo( reference.pointer, - _id_updateEditorInfo as jni.JMethodIDPtr, + _id_updateEditorInfo as _$jni.JMethodIDPtr, editorInfo.reference.pointer) .check(); } } -final class $EmojiCompatType extends jni.JObjType { - const $EmojiCompatType(); +final class $EmojiCompat$Type extends _$jni.JObjType { + @_$jni.internal + const $EmojiCompat$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Landroidx/emoji2/text/EmojiCompat;'; - @override - EmojiCompat fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + EmojiCompat fromReference(_$jni.JReference reference) => EmojiCompat.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($EmojiCompatType).hashCode; + @_$core.override + int get hashCode => ($EmojiCompat$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($EmojiCompatType) && other is $EmojiCompatType; + return other.runtimeType == ($EmojiCompat$Type) && + other is $EmojiCompat$Type; } } /// from: `androidx.emoji2.text.DefaultEmojiCompatConfig$DefaultEmojiCompatConfigFactory` class DefaultEmojiCompatConfig_DefaultEmojiCompatConfigFactory - extends jni.JObject { - @override - late final jni - .JObjType - $type = type; + extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType + $type; + @_$jni.internal DefaultEmojiCompatConfig_DefaultEmojiCompatConfigFactory.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'androidx/emoji2/text/DefaultEmojiCompatConfig$DefaultEmojiCompatConfigFactory'); /// The type which includes information such as the signature of this class. static const type = - $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigFactoryType(); + $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigFactory$Type(); static final _id_new$ = _class.constructorId( r'(Landroidx/emoji2/text/DefaultEmojiCompatConfig$DefaultEmojiCompatConfigHelper;)V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_NewObject') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void (androidx.emoji2.text.DefaultEmojiCompatConfig$DefaultEmojiCompatConfigHelper defaultEmojiCompatConfigHelper)` /// The returned object must be released after use, by calling the [release] method. @@ -1836,7 +1978,7 @@ class DefaultEmojiCompatConfig_DefaultEmojiCompatConfigFactory return DefaultEmojiCompatConfig_DefaultEmojiCompatConfigFactory .fromReference(_new$( _class.reference.pointer, - _id_new$ as jni.JMethodIDPtr, + _id_new$ as _$jni.JMethodIDPtr, defaultEmojiCompatConfigHelper.reference.pointer) .reference); } @@ -1846,93 +1988,100 @@ class DefaultEmojiCompatConfig_DefaultEmojiCompatConfigFactory r'(Landroid/content/Context;)Landroidx/emoji2/text/EmojiCompat$Config;', ); - static final _create = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _create = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public androidx.emoji2.text.EmojiCompat$Config create(android.content.Context context)` /// The returned object must be released after use, by calling the [release] method. EmojiCompat_Config create( - jni.JObject context, + _$jni.JObject context, ) { - return _create(reference.pointer, _id_create as jni.JMethodIDPtr, + return _create(reference.pointer, _id_create as _$jni.JMethodIDPtr, context.reference.pointer) - .object(const $EmojiCompat_ConfigType()); + .object(const $EmojiCompat_Config$Type()); } } -final class $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigFactoryType - extends jni +final class $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigFactory$Type + extends _$jni .JObjType { - const $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigFactoryType(); + @_$jni.internal + const $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigFactory$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Landroidx/emoji2/text/DefaultEmojiCompatConfig$DefaultEmojiCompatConfigFactory;'; - @override + @_$jni.internal + @_$core.override DefaultEmojiCompatConfig_DefaultEmojiCompatConfigFactory fromReference( - jni.JReference reference) => + _$jni.JReference reference) => DefaultEmojiCompatConfig_DefaultEmojiCompatConfigFactory.fromReference( reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override + @_$core.override int get hashCode => - ($DefaultEmojiCompatConfig_DefaultEmojiCompatConfigFactoryType).hashCode; + ($DefaultEmojiCompatConfig_DefaultEmojiCompatConfigFactory$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { return other.runtimeType == - ($DefaultEmojiCompatConfig_DefaultEmojiCompatConfigFactoryType) && - other is $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigFactoryType; + ($DefaultEmojiCompatConfig_DefaultEmojiCompatConfigFactory$Type) && + other is $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigFactory$Type; } } /// from: `androidx.emoji2.text.DefaultEmojiCompatConfig$DefaultEmojiCompatConfigHelper` class DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper - extends jni.JObject { - @override - late final jni - .JObjType $type = - type; + extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType + $type; + @_$jni.internal DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'androidx/emoji2/text/DefaultEmojiCompatConfig$DefaultEmojiCompatConfigHelper'); /// The type which includes information such as the signature of this class. static const type = - $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelperType(); + $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper$Type(); static final _id_new$ = _class.constructorId( r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` @@ -1940,7 +2089,7 @@ class DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper factory DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper() { return DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper .fromReference( - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } @@ -1949,32 +2098,35 @@ class DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper r'(Landroid/content/pm/PackageManager;Ljava/lang/String;)[Landroid/content/pm/Signature;', ); - static final _getSigningSignatures = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _getSigningSignatures = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public android.content.pm.Signature[] getSigningSignatures(android.content.pm.PackageManager packageManager, java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - jni.JArray getSigningSignatures( - jni.JObject packageManager, - jni.JString string, + _$jni.JArray<_$jni.JObject> getSigningSignatures( + _$jni.JObject packageManager, + _$jni.JString string, ) { return _getSigningSignatures( reference.pointer, - _id_getSigningSignatures as jni.JMethodIDPtr, + _id_getSigningSignatures as _$jni.JMethodIDPtr, packageManager.reference.pointer, string.reference.pointer) - .object(const jni.JArrayType(jni.JObjectType())); + .object(const _$jni.JArrayType(_$jni.JObjectType())); } static final _id_queryIntentContentProviders = _class.instanceMethodId( @@ -1982,35 +2134,40 @@ class DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper r'(Landroid/content/pm/PackageManager;Landroid/content/Intent;I)Ljava/util/List;', ); - static final _queryIntentContentProviders = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer, - $Int32 - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer, int)>(); + static final _queryIntentContentProviders = + _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Int32 + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + int)>(); /// from: `public java.util.List queryIntentContentProviders(android.content.pm.PackageManager packageManager, android.content.Intent intent, int i)` /// The returned object must be released after use, by calling the [release] method. - jni.JList queryIntentContentProviders( - jni.JObject packageManager, - jni.JObject intent, + _$jni.JList<_$jni.JObject> queryIntentContentProviders( + _$jni.JObject packageManager, + _$jni.JObject intent, int i, ) { return _queryIntentContentProviders( reference.pointer, - _id_queryIntentContentProviders as jni.JMethodIDPtr, + _id_queryIntentContentProviders as _$jni.JMethodIDPtr, packageManager.reference.pointer, intent.reference.pointer, i) - .object(const jni.JListType(jni.JObjectType())); + .object(const _$jni.JListType(_$jni.JObjectType())); } static final _id_getProviderInfo = _class.instanceMethodId( @@ -2018,95 +2175,103 @@ class DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper r'(Landroid/content/pm/ResolveInfo;)Landroid/content/pm/ProviderInfo;', ); - static final _getProviderInfo = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _getProviderInfo = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public android.content.pm.ProviderInfo getProviderInfo(android.content.pm.ResolveInfo resolveInfo)` /// The returned object must be released after use, by calling the [release] method. - jni.JObject getProviderInfo( - jni.JObject resolveInfo, + _$jni.JObject getProviderInfo( + _$jni.JObject resolveInfo, ) { return _getProviderInfo( reference.pointer, - _id_getProviderInfo as jni.JMethodIDPtr, + _id_getProviderInfo as _$jni.JMethodIDPtr, resolveInfo.reference.pointer) - .object(const jni.JObjectType()); + .object(const _$jni.JObjectType()); } } -final class $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelperType - extends jni +final class $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper$Type + extends _$jni .JObjType { - const $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelperType(); + @_$jni.internal + const $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Landroidx/emoji2/text/DefaultEmojiCompatConfig$DefaultEmojiCompatConfigHelper;'; - @override + @_$jni.internal + @_$core.override DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper fromReference( - jni.JReference reference) => + _$jni.JReference reference) => DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper.fromReference( reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override + @_$core.override int get hashCode => - ($DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelperType).hashCode; + ($DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { return other.runtimeType == - ($DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelperType) && - other is $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelperType; + ($DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper$Type) && + other is $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper$Type; } } /// from: `androidx.emoji2.text.DefaultEmojiCompatConfig$DefaultEmojiCompatConfigHelper_API19` class DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API19 extends DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper { - @override - late final jni + @_$jni.internal + @_$core.override + final _$jni .JObjType - $type = type; + $type; + @_$jni.internal DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API19.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'androidx/emoji2/text/DefaultEmojiCompatConfig$DefaultEmojiCompatConfigHelper_API19'); /// The type which includes information such as the signature of this class. static const type = - $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API19Type(); + $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API19$Type(); static final _id_new$ = _class.constructorId( r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` @@ -2114,7 +2279,7 @@ class DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API19 factory DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API19() { return DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API19 .fromReference( - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } @@ -2123,35 +2288,40 @@ class DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API19 r'(Landroid/content/pm/PackageManager;Landroid/content/Intent;I)Ljava/util/List;', ); - static final _queryIntentContentProviders = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer, - $Int32 - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer, int)>(); + static final _queryIntentContentProviders = + _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Int32 + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + int)>(); /// from: `public java.util.List queryIntentContentProviders(android.content.pm.PackageManager packageManager, android.content.Intent intent, int i)` /// The returned object must be released after use, by calling the [release] method. - jni.JList queryIntentContentProviders( - jni.JObject packageManager, - jni.JObject intent, + _$jni.JList<_$jni.JObject> queryIntentContentProviders( + _$jni.JObject packageManager, + _$jni.JObject intent, int i, ) { return _queryIntentContentProviders( reference.pointer, - _id_queryIntentContentProviders as jni.JMethodIDPtr, + _id_queryIntentContentProviders as _$jni.JMethodIDPtr, packageManager.reference.pointer, intent.reference.pointer, i) - .object(const jni.JListType(jni.JObjectType())); + .object(const _$jni.JListType(_$jni.JObjectType())); } static final _id_getProviderInfo = _class.instanceMethodId( @@ -2159,98 +2329,106 @@ class DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API19 r'(Landroid/content/pm/ResolveInfo;)Landroid/content/pm/ProviderInfo;', ); - static final _getProviderInfo = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _getProviderInfo = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public android.content.pm.ProviderInfo getProviderInfo(android.content.pm.ResolveInfo resolveInfo)` /// The returned object must be released after use, by calling the [release] method. - jni.JObject getProviderInfo( - jni.JObject resolveInfo, + _$jni.JObject getProviderInfo( + _$jni.JObject resolveInfo, ) { return _getProviderInfo( reference.pointer, - _id_getProviderInfo as jni.JMethodIDPtr, + _id_getProviderInfo as _$jni.JMethodIDPtr, resolveInfo.reference.pointer) - .object(const jni.JObjectType()); + .object(const _$jni.JObjectType()); } } -final class $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API19Type - extends jni +final class $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API19$Type + extends _$jni .JObjType { - const $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API19Type(); + @_$jni.internal + const $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API19$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Landroidx/emoji2/text/DefaultEmojiCompatConfig$DefaultEmojiCompatConfigHelper_API19;'; - @override + @_$jni.internal + @_$core.override DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API19 fromReference( - jni.JReference reference) => + _$jni.JReference reference) => DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API19 .fromReference(reference); - @override - jni.JObjType get superType => - const $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelperType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => + const $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper$Type(); - @override + @_$jni.internal + @_$core.override final superCount = 2; - @override + @_$core.override int get hashCode => - ($DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API19Type) + ($DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API19$Type) .hashCode; - @override + @_$core.override bool operator ==(Object other) { return other.runtimeType == - ($DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API19Type) && + ($DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API19$Type) && other - is $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API19Type; + is $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API19$Type; } } /// from: `androidx.emoji2.text.DefaultEmojiCompatConfig$DefaultEmojiCompatConfigHelper_API28` class DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API28 extends DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API19 { - @override - late final jni + @_$jni.internal + @_$core.override + final _$jni .JObjType - $type = type; + $type; + @_$jni.internal DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API28.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'androidx/emoji2/text/DefaultEmojiCompatConfig$DefaultEmojiCompatConfigHelper_API28'); /// The type which includes information such as the signature of this class. static const type = - $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API28Type(); + $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API28$Type(); static final _id_new$ = _class.constructorId( r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` @@ -2258,7 +2436,7 @@ class DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API28 factory DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API28() { return DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API28 .fromReference( - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } @@ -2267,152 +2445,171 @@ class DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API28 r'(Landroid/content/pm/PackageManager;Ljava/lang/String;)[Landroid/content/pm/Signature;', ); - static final _getSigningSignatures$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _getSigningSignatures$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public android.content.pm.Signature[] getSigningSignatures(android.content.pm.PackageManager packageManager, java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - jni.JArray getSigningSignatures$1( - jni.JObject packageManager, - jni.JString string, + _$jni.JArray<_$jni.JObject> getSigningSignatures$1( + _$jni.JObject packageManager, + _$jni.JString string, ) { return _getSigningSignatures$1( reference.pointer, - _id_getSigningSignatures$1 as jni.JMethodIDPtr, + _id_getSigningSignatures$1 as _$jni.JMethodIDPtr, packageManager.reference.pointer, string.reference.pointer) - .object(const jni.JArrayType(jni.JObjectType())); + .object(const _$jni.JArrayType(_$jni.JObjectType())); } } -final class $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API28Type - extends jni +final class $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API28$Type + extends _$jni .JObjType { - const $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API28Type(); + @_$jni.internal + const $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API28$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Landroidx/emoji2/text/DefaultEmojiCompatConfig$DefaultEmojiCompatConfigHelper_API28;'; - @override + @_$jni.internal + @_$core.override DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API28 fromReference( - jni.JReference reference) => + _$jni.JReference reference) => DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API28 .fromReference(reference); - @override - jni.JObjType get superType => - const $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API19Type(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => + const $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API19$Type(); - @override + @_$jni.internal + @_$core.override final superCount = 3; - @override + @_$core.override int get hashCode => - ($DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API28Type) + ($DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API28$Type) .hashCode; - @override + @_$core.override bool operator ==(Object other) { return other.runtimeType == - ($DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API28Type) && + ($DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API28$Type) && other - is $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API28Type; + is $DefaultEmojiCompatConfig_DefaultEmojiCompatConfigHelper_API28$Type; } } /// from: `androidx.emoji2.text.DefaultEmojiCompatConfig` -class DefaultEmojiCompatConfig extends jni.JObject { - @override - late final jni.JObjType $type = type; +class DefaultEmojiCompatConfig extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal DefaultEmojiCompatConfig.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); static final _class = - jni.JClass.forName(r'androidx/emoji2/text/DefaultEmojiCompatConfig'); + _$jni.JClass.forName(r'androidx/emoji2/text/DefaultEmojiCompatConfig'); /// The type which includes information such as the signature of this class. - static const type = $DefaultEmojiCompatConfigType(); + static const type = $DefaultEmojiCompatConfig$Type(); static final _id_create = _class.staticMethodId( r'create', r'(Landroid/content/Context;)Landroidx/emoji2/text/FontRequestEmojiCompatConfig;', ); - static final _create = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _create = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `static public androidx.emoji2.text.FontRequestEmojiCompatConfig create(android.content.Context context)` /// The returned object must be released after use, by calling the [release] method. - static jni.JObject create( - jni.JObject context, + static _$jni.JObject create( + _$jni.JObject context, ) { - return _create(_class.reference.pointer, _id_create as jni.JMethodIDPtr, + return _create(_class.reference.pointer, _id_create as _$jni.JMethodIDPtr, context.reference.pointer) - .object(const jni.JObjectType()); + .object(const _$jni.JObjectType()); } } -final class $DefaultEmojiCompatConfigType - extends jni.JObjType { - const $DefaultEmojiCompatConfigType(); +final class $DefaultEmojiCompatConfig$Type + extends _$jni.JObjType { + @_$jni.internal + const $DefaultEmojiCompatConfig$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Landroidx/emoji2/text/DefaultEmojiCompatConfig;'; - @override - DefaultEmojiCompatConfig fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + DefaultEmojiCompatConfig fromReference(_$jni.JReference reference) => DefaultEmojiCompatConfig.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($DefaultEmojiCompatConfigType).hashCode; + @_$core.override + int get hashCode => ($DefaultEmojiCompatConfig$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($DefaultEmojiCompatConfigType) && - other is $DefaultEmojiCompatConfigType; + return other.runtimeType == ($DefaultEmojiCompatConfig$Type) && + other is $DefaultEmojiCompatConfig$Type; } } /// from: `android.os.Build$Partition` -class Build_Partition extends jni.JObject { - @override - late final jni.JObjType $type = type; +class Build_Partition extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal Build_Partition.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = jni.JClass.forName(r'android/os/Build$Partition'); + static final _class = _$jni.JClass.forName(r'android/os/Build$Partition'); /// The type which includes information such as the signature of this class. - static const type = $Build_PartitionType(); + static const type = $Build_Partition$Type(); static final _id_PARTITION_NAME_SYSTEM = _class.staticFieldId( r'PARTITION_NAME_SYSTEM', r'Ljava/lang/String;', @@ -2420,31 +2617,31 @@ class Build_Partition extends jni.JObject { /// from: `static public final java.lang.String PARTITION_NAME_SYSTEM` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get PARTITION_NAME_SYSTEM => - _id_PARTITION_NAME_SYSTEM.get(_class, const jni.JStringType()); + static _$jni.JString get PARTITION_NAME_SYSTEM => + _id_PARTITION_NAME_SYSTEM.get(_class, const _$jni.JStringType()); static final _id_getName = _class.instanceMethodId( r'getName', r'()Ljava/lang/String;', ); - static final _getName = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getName = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.String getName()` /// The returned object must be released after use, by calling the [release] method. - jni.JString getName() { - return _getName(reference.pointer, _id_getName as jni.JMethodIDPtr) - .object(const jni.JStringType()); + _$jni.JString getName() { + return _getName(reference.pointer, _id_getName as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_getFingerprint = _class.instanceMethodId( @@ -2452,24 +2649,24 @@ class Build_Partition extends jni.JObject { r'()Ljava/lang/String;', ); - static final _getFingerprint = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getFingerprint = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.String getFingerprint()` /// The returned object must be released after use, by calling the [release] method. - jni.JString getFingerprint() { + _$jni.JString getFingerprint() { return _getFingerprint( - reference.pointer, _id_getFingerprint as jni.JMethodIDPtr) - .object(const jni.JStringType()); + reference.pointer, _id_getFingerprint as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_getBuildTimeMillis = _class.instanceMethodId( @@ -2477,22 +2674,22 @@ class Build_Partition extends jni.JObject { r'()J', ); - static final _getBuildTimeMillis = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getBuildTimeMillis = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallLongMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public long getBuildTimeMillis()` int getBuildTimeMillis() { return _getBuildTimeMillis( - reference.pointer, _id_getBuildTimeMillis as jni.JMethodIDPtr) + reference.pointer, _id_getBuildTimeMillis as _$jni.JMethodIDPtr) .long; } @@ -2501,22 +2698,22 @@ class Build_Partition extends jni.JObject { r'(Ljava/lang/Object;)Z', ); - static final _equals = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _equals = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public boolean equals(java.lang.Object object)` bool equals( - jni.JObject object, + _$jni.JObject object, ) { - return _equals(reference.pointer, _id_equals as jni.JMethodIDPtr, + return _equals(reference.pointer, _id_equals as _$jni.JMethodIDPtr, object.reference.pointer) .boolean; } @@ -2526,64 +2723,72 @@ class Build_Partition extends jni.JObject { r'()I', ); - static final _hashCode$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _hashCode$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public int hashCode()` int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni.JMethodIDPtr) + return _hashCode$1(reference.pointer, _id_hashCode$1 as _$jni.JMethodIDPtr) .integer; } } -final class $Build_PartitionType extends jni.JObjType { - const $Build_PartitionType(); +final class $Build_Partition$Type extends _$jni.JObjType { + @_$jni.internal + const $Build_Partition$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Landroid/os/Build$Partition;'; - @override - Build_Partition fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + Build_Partition fromReference(_$jni.JReference reference) => Build_Partition.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($Build_PartitionType).hashCode; + @_$core.override + int get hashCode => ($Build_Partition$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($Build_PartitionType) && - other is $Build_PartitionType; + return other.runtimeType == ($Build_Partition$Type) && + other is $Build_Partition$Type; } } /// from: `android.os.Build$VERSION` -class Build_VERSION extends jni.JObject { - @override - late final jni.JObjType $type = type; +class Build_VERSION extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal Build_VERSION.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = jni.JClass.forName(r'android/os/Build$VERSION'); + static final _class = _$jni.JClass.forName(r'android/os/Build$VERSION'); /// The type which includes information such as the signature of this class. - static const type = $Build_VERSIONType(); + static const type = $Build_VERSION$Type(); static final _id_BASE_OS = _class.staticFieldId( r'BASE_OS', r'Ljava/lang/String;', @@ -2591,8 +2796,8 @@ class Build_VERSION extends jni.JObject { /// from: `static public final java.lang.String BASE_OS` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get BASE_OS => - _id_BASE_OS.get(_class, const jni.JStringType()); + static _$jni.JString get BASE_OS => + _id_BASE_OS.get(_class, const _$jni.JStringType()); static final _id_CODENAME = _class.staticFieldId( r'CODENAME', @@ -2601,8 +2806,8 @@ class Build_VERSION extends jni.JObject { /// from: `static public final java.lang.String CODENAME` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get CODENAME => - _id_CODENAME.get(_class, const jni.JStringType()); + static _$jni.JString get CODENAME => + _id_CODENAME.get(_class, const _$jni.JStringType()); static final _id_INCREMENTAL = _class.staticFieldId( r'INCREMENTAL', @@ -2611,8 +2816,8 @@ class Build_VERSION extends jni.JObject { /// from: `static public final java.lang.String INCREMENTAL` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get INCREMENTAL => - _id_INCREMENTAL.get(_class, const jni.JStringType()); + static _$jni.JString get INCREMENTAL => + _id_INCREMENTAL.get(_class, const _$jni.JStringType()); static final _id_MEDIA_PERFORMANCE_CLASS = _class.staticFieldId( r'MEDIA_PERFORMANCE_CLASS', @@ -2621,7 +2826,7 @@ class Build_VERSION extends jni.JObject { /// from: `static public final int MEDIA_PERFORMANCE_CLASS` static int get MEDIA_PERFORMANCE_CLASS => - _id_MEDIA_PERFORMANCE_CLASS.get(_class, const jni.jintType()); + _id_MEDIA_PERFORMANCE_CLASS.get(_class, const _$jni.jintType()); static final _id_PREVIEW_SDK_INT = _class.staticFieldId( r'PREVIEW_SDK_INT', @@ -2630,7 +2835,7 @@ class Build_VERSION extends jni.JObject { /// from: `static public final int PREVIEW_SDK_INT` static int get PREVIEW_SDK_INT => - _id_PREVIEW_SDK_INT.get(_class, const jni.jintType()); + _id_PREVIEW_SDK_INT.get(_class, const _$jni.jintType()); static final _id_RELEASE = _class.staticFieldId( r'RELEASE', @@ -2639,8 +2844,8 @@ class Build_VERSION extends jni.JObject { /// from: `static public final java.lang.String RELEASE` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get RELEASE => - _id_RELEASE.get(_class, const jni.JStringType()); + static _$jni.JString get RELEASE => + _id_RELEASE.get(_class, const _$jni.JStringType()); static final _id_RELEASE_OR_CODENAME = _class.staticFieldId( r'RELEASE_OR_CODENAME', @@ -2649,8 +2854,8 @@ class Build_VERSION extends jni.JObject { /// from: `static public final java.lang.String RELEASE_OR_CODENAME` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get RELEASE_OR_CODENAME => - _id_RELEASE_OR_CODENAME.get(_class, const jni.JStringType()); + static _$jni.JString get RELEASE_OR_CODENAME => + _id_RELEASE_OR_CODENAME.get(_class, const _$jni.JStringType()); static final _id_RELEASE_OR_PREVIEW_DISPLAY = _class.staticFieldId( r'RELEASE_OR_PREVIEW_DISPLAY', @@ -2659,8 +2864,8 @@ class Build_VERSION extends jni.JObject { /// from: `static public final java.lang.String RELEASE_OR_PREVIEW_DISPLAY` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get RELEASE_OR_PREVIEW_DISPLAY => - _id_RELEASE_OR_PREVIEW_DISPLAY.get(_class, const jni.JStringType()); + static _$jni.JString get RELEASE_OR_PREVIEW_DISPLAY => + _id_RELEASE_OR_PREVIEW_DISPLAY.get(_class, const _$jni.JStringType()); static final _id_SDK = _class.staticFieldId( r'SDK', @@ -2669,7 +2874,8 @@ class Build_VERSION extends jni.JObject { /// from: `static public final java.lang.String SDK` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get SDK => _id_SDK.get(_class, const jni.JStringType()); + static _$jni.JString get SDK => + _id_SDK.get(_class, const _$jni.JStringType()); static final _id_SDK_INT = _class.staticFieldId( r'SDK_INT', @@ -2677,7 +2883,7 @@ class Build_VERSION extends jni.JObject { ); /// from: `static public final int SDK_INT` - static int get SDK_INT => _id_SDK_INT.get(_class, const jni.jintType()); + static int get SDK_INT => _id_SDK_INT.get(_class, const _$jni.jintType()); static final _id_SECURITY_PATCH = _class.staticFieldId( r'SECURITY_PATCH', @@ -2686,73 +2892,81 @@ class Build_VERSION extends jni.JObject { /// from: `static public final java.lang.String SECURITY_PATCH` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get SECURITY_PATCH => - _id_SECURITY_PATCH.get(_class, const jni.JStringType()); + static _$jni.JString get SECURITY_PATCH => + _id_SECURITY_PATCH.get(_class, const _$jni.JStringType()); static final _id_new$ = _class.constructorId( r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory Build_VERSION() { return Build_VERSION.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } } -final class $Build_VERSIONType extends jni.JObjType { - const $Build_VERSIONType(); +final class $Build_VERSION$Type extends _$jni.JObjType { + @_$jni.internal + const $Build_VERSION$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Landroid/os/Build$VERSION;'; - @override - Build_VERSION fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + Build_VERSION fromReference(_$jni.JReference reference) => Build_VERSION.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($Build_VERSIONType).hashCode; + @_$core.override + int get hashCode => ($Build_VERSION$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($Build_VERSIONType) && - other is $Build_VERSIONType; + return other.runtimeType == ($Build_VERSION$Type) && + other is $Build_VERSION$Type; } } /// from: `android.os.Build$VERSION_CODES` -class Build_VERSION_CODES extends jni.JObject { - @override - late final jni.JObjType $type = type; +class Build_VERSION_CODES extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal Build_VERSION_CODES.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = jni.JClass.forName(r'android/os/Build$VERSION_CODES'); + static final _class = _$jni.JClass.forName(r'android/os/Build$VERSION_CODES'); /// The type which includes information such as the signature of this class. - static const type = $Build_VERSION_CODESType(); + static const type = $Build_VERSION_CODES$Type(); /// from: `static public final int BASE` static const BASE = 1; @@ -2865,66 +3079,75 @@ class Build_VERSION_CODES extends jni.JObject { r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory Build_VERSION_CODES() { return Build_VERSION_CODES.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } } -final class $Build_VERSION_CODESType extends jni.JObjType { - const $Build_VERSION_CODESType(); +final class $Build_VERSION_CODES$Type + extends _$jni.JObjType { + @_$jni.internal + const $Build_VERSION_CODES$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Landroid/os/Build$VERSION_CODES;'; - @override - Build_VERSION_CODES fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + Build_VERSION_CODES fromReference(_$jni.JReference reference) => Build_VERSION_CODES.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($Build_VERSION_CODESType).hashCode; + @_$core.override + int get hashCode => ($Build_VERSION_CODES$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($Build_VERSION_CODESType) && - other is $Build_VERSION_CODESType; + return other.runtimeType == ($Build_VERSION_CODES$Type) && + other is $Build_VERSION_CODES$Type; } } /// from: `android.os.Build` -class Build extends jni.JObject { - @override - late final jni.JObjType $type = type; +class Build extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal Build.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = jni.JClass.forName(r'android/os/Build'); + static final _class = _$jni.JClass.forName(r'android/os/Build'); /// The type which includes information such as the signature of this class. - static const type = $BuildType(); + static const type = $Build$Type(); static final _id_BOARD = _class.staticFieldId( r'BOARD', r'Ljava/lang/String;', @@ -2932,8 +3155,8 @@ class Build extends jni.JObject { /// from: `static public final java.lang.String BOARD` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get BOARD => - _id_BOARD.get(_class, const jni.JStringType()); + static _$jni.JString get BOARD => + _id_BOARD.get(_class, const _$jni.JStringType()); static final _id_BOOTLOADER = _class.staticFieldId( r'BOOTLOADER', @@ -2942,8 +3165,8 @@ class Build extends jni.JObject { /// from: `static public final java.lang.String BOOTLOADER` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get BOOTLOADER => - _id_BOOTLOADER.get(_class, const jni.JStringType()); + static _$jni.JString get BOOTLOADER => + _id_BOOTLOADER.get(_class, const _$jni.JStringType()); static final _id_BRAND = _class.staticFieldId( r'BRAND', @@ -2952,8 +3175,8 @@ class Build extends jni.JObject { /// from: `static public final java.lang.String BRAND` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get BRAND => - _id_BRAND.get(_class, const jni.JStringType()); + static _$jni.JString get BRAND => + _id_BRAND.get(_class, const _$jni.JStringType()); static final _id_CPU_ABI = _class.staticFieldId( r'CPU_ABI', @@ -2962,8 +3185,8 @@ class Build extends jni.JObject { /// from: `static public final java.lang.String CPU_ABI` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get CPU_ABI => - _id_CPU_ABI.get(_class, const jni.JStringType()); + static _$jni.JString get CPU_ABI => + _id_CPU_ABI.get(_class, const _$jni.JStringType()); static final _id_CPU_ABI2 = _class.staticFieldId( r'CPU_ABI2', @@ -2972,8 +3195,8 @@ class Build extends jni.JObject { /// from: `static public final java.lang.String CPU_ABI2` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get CPU_ABI2 => - _id_CPU_ABI2.get(_class, const jni.JStringType()); + static _$jni.JString get CPU_ABI2 => + _id_CPU_ABI2.get(_class, const _$jni.JStringType()); static final _id_DEVICE = _class.staticFieldId( r'DEVICE', @@ -2982,8 +3205,8 @@ class Build extends jni.JObject { /// from: `static public final java.lang.String DEVICE` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get DEVICE => - _id_DEVICE.get(_class, const jni.JStringType()); + static _$jni.JString get DEVICE => + _id_DEVICE.get(_class, const _$jni.JStringType()); static final _id_DISPLAY = _class.staticFieldId( r'DISPLAY', @@ -2992,8 +3215,8 @@ class Build extends jni.JObject { /// from: `static public final java.lang.String DISPLAY` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get DISPLAY => - _id_DISPLAY.get(_class, const jni.JStringType()); + static _$jni.JString get DISPLAY => + _id_DISPLAY.get(_class, const _$jni.JStringType()); static final _id_FINGERPRINT = _class.staticFieldId( r'FINGERPRINT', @@ -3002,8 +3225,8 @@ class Build extends jni.JObject { /// from: `static public final java.lang.String FINGERPRINT` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get FINGERPRINT => - _id_FINGERPRINT.get(_class, const jni.JStringType()); + static _$jni.JString get FINGERPRINT => + _id_FINGERPRINT.get(_class, const _$jni.JStringType()); static final _id_HARDWARE = _class.staticFieldId( r'HARDWARE', @@ -3012,8 +3235,8 @@ class Build extends jni.JObject { /// from: `static public final java.lang.String HARDWARE` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get HARDWARE => - _id_HARDWARE.get(_class, const jni.JStringType()); + static _$jni.JString get HARDWARE => + _id_HARDWARE.get(_class, const _$jni.JStringType()); static final _id_HOST = _class.staticFieldId( r'HOST', @@ -3022,7 +3245,8 @@ class Build extends jni.JObject { /// from: `static public final java.lang.String HOST` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get HOST => _id_HOST.get(_class, const jni.JStringType()); + static _$jni.JString get HOST => + _id_HOST.get(_class, const _$jni.JStringType()); static final _id_ID = _class.staticFieldId( r'ID', @@ -3031,7 +3255,7 @@ class Build extends jni.JObject { /// from: `static public final java.lang.String ID` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get ID => _id_ID.get(_class, const jni.JStringType()); + static _$jni.JString get ID => _id_ID.get(_class, const _$jni.JStringType()); static final _id_MANUFACTURER = _class.staticFieldId( r'MANUFACTURER', @@ -3040,8 +3264,8 @@ class Build extends jni.JObject { /// from: `static public final java.lang.String MANUFACTURER` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get MANUFACTURER => - _id_MANUFACTURER.get(_class, const jni.JStringType()); + static _$jni.JString get MANUFACTURER => + _id_MANUFACTURER.get(_class, const _$jni.JStringType()); static final _id_MODEL = _class.staticFieldId( r'MODEL', @@ -3050,8 +3274,8 @@ class Build extends jni.JObject { /// from: `static public final java.lang.String MODEL` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get MODEL => - _id_MODEL.get(_class, const jni.JStringType()); + static _$jni.JString get MODEL => + _id_MODEL.get(_class, const _$jni.JStringType()); static final _id_ODM_SKU = _class.staticFieldId( r'ODM_SKU', @@ -3060,8 +3284,8 @@ class Build extends jni.JObject { /// from: `static public final java.lang.String ODM_SKU` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get ODM_SKU => - _id_ODM_SKU.get(_class, const jni.JStringType()); + static _$jni.JString get ODM_SKU => + _id_ODM_SKU.get(_class, const _$jni.JStringType()); static final _id_PRODUCT = _class.staticFieldId( r'PRODUCT', @@ -3070,8 +3294,8 @@ class Build extends jni.JObject { /// from: `static public final java.lang.String PRODUCT` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get PRODUCT => - _id_PRODUCT.get(_class, const jni.JStringType()); + static _$jni.JString get PRODUCT => + _id_PRODUCT.get(_class, const _$jni.JStringType()); static final _id_RADIO = _class.staticFieldId( r'RADIO', @@ -3080,8 +3304,8 @@ class Build extends jni.JObject { /// from: `static public final java.lang.String RADIO` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get RADIO => - _id_RADIO.get(_class, const jni.JStringType()); + static _$jni.JString get RADIO => + _id_RADIO.get(_class, const _$jni.JStringType()); static final _id_SERIAL = _class.staticFieldId( r'SERIAL', @@ -3090,8 +3314,8 @@ class Build extends jni.JObject { /// from: `static public final java.lang.String SERIAL` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get SERIAL => - _id_SERIAL.get(_class, const jni.JStringType()); + static _$jni.JString get SERIAL => + _id_SERIAL.get(_class, const _$jni.JStringType()); static final _id_SKU = _class.staticFieldId( r'SKU', @@ -3100,7 +3324,8 @@ class Build extends jni.JObject { /// from: `static public final java.lang.String SKU` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get SKU => _id_SKU.get(_class, const jni.JStringType()); + static _$jni.JString get SKU => + _id_SKU.get(_class, const _$jni.JStringType()); static final _id_SOC_MANUFACTURER = _class.staticFieldId( r'SOC_MANUFACTURER', @@ -3109,8 +3334,8 @@ class Build extends jni.JObject { /// from: `static public final java.lang.String SOC_MANUFACTURER` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get SOC_MANUFACTURER => - _id_SOC_MANUFACTURER.get(_class, const jni.JStringType()); + static _$jni.JString get SOC_MANUFACTURER => + _id_SOC_MANUFACTURER.get(_class, const _$jni.JStringType()); static final _id_SOC_MODEL = _class.staticFieldId( r'SOC_MODEL', @@ -3119,8 +3344,8 @@ class Build extends jni.JObject { /// from: `static public final java.lang.String SOC_MODEL` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get SOC_MODEL => - _id_SOC_MODEL.get(_class, const jni.JStringType()); + static _$jni.JString get SOC_MODEL => + _id_SOC_MODEL.get(_class, const _$jni.JStringType()); static final _id_SUPPORTED_32_BIT_ABIS = _class.staticFieldId( r'SUPPORTED_32_BIT_ABIS', @@ -3129,9 +3354,9 @@ class Build extends jni.JObject { /// from: `static public final java.lang.String[] SUPPORTED_32_BIT_ABIS` /// The returned object must be released after use, by calling the [release] method. - static jni.JArray get SUPPORTED_32_BIT_ABIS => + static _$jni.JArray<_$jni.JString> get SUPPORTED_32_BIT_ABIS => _id_SUPPORTED_32_BIT_ABIS.get( - _class, const jni.JArrayType(jni.JStringType())); + _class, const _$jni.JArrayType(_$jni.JStringType())); static final _id_SUPPORTED_64_BIT_ABIS = _class.staticFieldId( r'SUPPORTED_64_BIT_ABIS', @@ -3140,9 +3365,9 @@ class Build extends jni.JObject { /// from: `static public final java.lang.String[] SUPPORTED_64_BIT_ABIS` /// The returned object must be released after use, by calling the [release] method. - static jni.JArray get SUPPORTED_64_BIT_ABIS => + static _$jni.JArray<_$jni.JString> get SUPPORTED_64_BIT_ABIS => _id_SUPPORTED_64_BIT_ABIS.get( - _class, const jni.JArrayType(jni.JStringType())); + _class, const _$jni.JArrayType(_$jni.JStringType())); static final _id_SUPPORTED_ABIS = _class.staticFieldId( r'SUPPORTED_ABIS', @@ -3151,8 +3376,8 @@ class Build extends jni.JObject { /// from: `static public final java.lang.String[] SUPPORTED_ABIS` /// The returned object must be released after use, by calling the [release] method. - static jni.JArray get SUPPORTED_ABIS => - _id_SUPPORTED_ABIS.get(_class, const jni.JArrayType(jni.JStringType())); + static _$jni.JArray<_$jni.JString> get SUPPORTED_ABIS => _id_SUPPORTED_ABIS + .get(_class, const _$jni.JArrayType(_$jni.JStringType())); static final _id_TAGS = _class.staticFieldId( r'TAGS', @@ -3161,7 +3386,8 @@ class Build extends jni.JObject { /// from: `static public final java.lang.String TAGS` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get TAGS => _id_TAGS.get(_class, const jni.JStringType()); + static _$jni.JString get TAGS => + _id_TAGS.get(_class, const _$jni.JStringType()); static final _id_TIME = _class.staticFieldId( r'TIME', @@ -3169,7 +3395,7 @@ class Build extends jni.JObject { ); /// from: `static public final long TIME` - static int get TIME => _id_TIME.get(_class, const jni.jlongType()); + static int get TIME => _id_TIME.get(_class, const _$jni.jlongType()); static final _id_TYPE = _class.staticFieldId( r'TYPE', @@ -3178,7 +3404,8 @@ class Build extends jni.JObject { /// from: `static public final java.lang.String TYPE` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get TYPE => _id_TYPE.get(_class, const jni.JStringType()); + static _$jni.JString get TYPE => + _id_TYPE.get(_class, const _$jni.JStringType()); static final _id_UNKNOWN = _class.staticFieldId( r'UNKNOWN', @@ -3187,8 +3414,8 @@ class Build extends jni.JObject { /// from: `static public final java.lang.String UNKNOWN` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get UNKNOWN => - _id_UNKNOWN.get(_class, const jni.JStringType()); + static _$jni.JString get UNKNOWN => + _id_UNKNOWN.get(_class, const _$jni.JStringType()); static final _id_USER = _class.staticFieldId( r'USER', @@ -3197,29 +3424,30 @@ class Build extends jni.JObject { /// from: `static public final java.lang.String USER` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get USER => _id_USER.get(_class, const jni.JStringType()); + static _$jni.JString get USER => + _id_USER.get(_class, const _$jni.JStringType()); static final _id_new$ = _class.constructorId( r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory Build() { return Build.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } @@ -3228,24 +3456,24 @@ class Build extends jni.JObject { r'()Ljava/lang/String;', ); - static final _getSerial = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getSerial = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public java.lang.String getSerial()` /// The returned object must be released after use, by calling the [release] method. - static jni.JString getSerial() { + static _$jni.JString getSerial() { return _getSerial( - _class.reference.pointer, _id_getSerial as jni.JMethodIDPtr) - .object(const jni.JStringType()); + _class.reference.pointer, _id_getSerial as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_getFingerprintedPartitions = _class.staticMethodId( @@ -3253,24 +3481,25 @@ class Build extends jni.JObject { r'()Ljava/util/List;', ); - static final _getFingerprintedPartitions = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + static final _getFingerprintedPartitions = + _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); /// from: `static public java.util.List getFingerprintedPartitions()` /// The returned object must be released after use, by calling the [release] method. - static jni.JList getFingerprintedPartitions() { + static _$jni.JList getFingerprintedPartitions() { return _getFingerprintedPartitions(_class.reference.pointer, - _id_getFingerprintedPartitions as jni.JMethodIDPtr) - .object(const jni.JListType($Build_PartitionType())); + _id_getFingerprintedPartitions as _$jni.JMethodIDPtr) + .object(const _$jni.JListType($Build_Partition$Type())); } static final _id_getRadioVersion = _class.staticMethodId( @@ -3278,76 +3507,87 @@ class Build extends jni.JObject { r'()Ljava/lang/String;', ); - static final _getRadioVersion = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getRadioVersion = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public java.lang.String getRadioVersion()` /// The returned object must be released after use, by calling the [release] method. - static jni.JString getRadioVersion() { + static _$jni.JString getRadioVersion() { return _getRadioVersion( - _class.reference.pointer, _id_getRadioVersion as jni.JMethodIDPtr) - .object(const jni.JStringType()); + _class.reference.pointer, _id_getRadioVersion as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } } -final class $BuildType extends jni.JObjType { - const $BuildType(); +final class $Build$Type extends _$jni.JObjType { + @_$jni.internal + const $Build$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Landroid/os/Build;'; - @override - Build fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + Build fromReference(_$jni.JReference reference) => Build.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($BuildType).hashCode; + @_$core.override + int get hashCode => ($Build$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($BuildType) && other is $BuildType; + return other.runtimeType == ($Build$Type) && other is $Build$Type; } } /// from: `java.util.HashMap` -class HashMap<$K extends jni.JObject, $V extends jni.JObject> - extends jni.JObject { - @override - late final jni.JObjType> $type = type(K, V); +class HashMap<$K extends _$jni.JObject, $V extends _$jni.JObject> + extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType> $type; - final jni.JObjType<$K> K; - final jni.JObjType<$V> V; + @_$jni.internal + final _$jni.JObjType<$K> K; + @_$jni.internal + final _$jni.JObjType<$V> V; + + @_$jni.internal HashMap.fromReference( this.K, this.V, - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type(K, V), + super.fromReference(reference); - static final _class = jni.JClass.forName(r'java/util/HashMap'); + static final _class = _$jni.JClass.forName(r'java/util/HashMap'); /// The type which includes information such as the signature of this class. - static $HashMapType<$K, $V> - type<$K extends jni.JObject, $V extends jni.JObject>( - jni.JObjType<$K> K, - jni.JObjType<$V> V, + static $HashMap$Type<$K, $V> + type<$K extends _$jni.JObject, $V extends _$jni.JObject>( + _$jni.JObjType<$K> K, + _$jni.JObjType<$V> V, ) { - return $HashMapType( + return $HashMap$Type( K, V, ); @@ -3357,26 +3597,29 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> r'(IF)V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32, ffi.Double)>)>>('globalEnv_NewObject') + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32, _$jni.Double)>)>>( + 'globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int, double)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int, double)>(); /// from: `public void (int i, float f)` /// The returned object must be released after use, by calling the [release] method. factory HashMap( int i, double f, { - required jni.JObjType<$K> K, - required jni.JObjType<$V> V, + required _$jni.JObjType<$K> K, + required _$jni.JObjType<$V> V, }) { return HashMap.fromReference( K, V, - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr, i, f) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr, i, f) .reference); } @@ -3384,25 +3627,27 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> r'(I)V', ); - static final _new$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_NewObject') + static final _new$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public void (int i)` /// The returned object must be released after use, by calling the [release] method. factory HashMap.new$1( int i, { - required jni.JObjType<$K> K, - required jni.JObjType<$V> V, + required _$jni.JObjType<$K> K, + required _$jni.JObjType<$V> V, }) { return HashMap.fromReference( K, V, - _new$1(_class.reference.pointer, _id_new$1 as jni.JMethodIDPtr, i) + _new$1(_class.reference.pointer, _id_new$1 as _$jni.JMethodIDPtr, i) .reference); } @@ -3410,28 +3655,28 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> r'()V', ); - static final _new$2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory HashMap.new$2({ - required jni.JObjType<$K> K, - required jni.JObjType<$V> V, + required _$jni.JObjType<$K> K, + required _$jni.JObjType<$V> V, }) { return HashMap.fromReference( K, V, - _new$2(_class.reference.pointer, _id_new$2 as jni.JMethodIDPtr) + _new$2(_class.reference.pointer, _id_new$2 as _$jni.JMethodIDPtr) .reference); } @@ -3439,34 +3684,34 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> r'(Ljava/util/Map;)V', ); - static final _new$3 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _new$3 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_NewObject') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void (java.util.Map map)` /// The returned object must be released after use, by calling the [release] method. factory HashMap.new$3( - jni.JMap<$K, $V> map, { - jni.JObjType<$K>? K, - jni.JObjType<$V>? V, + _$jni.JMap<$K, $V> map, { + _$jni.JObjType<$K>? K, + _$jni.JObjType<$V>? V, }) { - K ??= jni.lowestCommonSuperType([ - (map.$type as jni.JMapType).K, - ]) as jni.JObjType<$K>; - V ??= jni.lowestCommonSuperType([ - (map.$type as jni.JMapType).V, - ]) as jni.JObjType<$V>; + K ??= _$jni.lowestCommonSuperType([ + (map.$type as _$jni.JMapType).K, + ]) as _$jni.JObjType<$K>; + V ??= _$jni.lowestCommonSuperType([ + (map.$type as _$jni.JMapType).V, + ]) as _$jni.JObjType<$V>; return HashMap.fromReference( K, V, - _new$3(_class.reference.pointer, _id_new$3 as jni.JMethodIDPtr, + _new$3(_class.reference.pointer, _id_new$3 as _$jni.JMethodIDPtr, map.reference.pointer) .reference); } @@ -3476,21 +3721,21 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> r'()I', ); - static final _size = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _size = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public int size()` int size() { - return _size(reference.pointer, _id_size as jni.JMethodIDPtr).integer; + return _size(reference.pointer, _id_size as _$jni.JMethodIDPtr).integer; } static final _id_isEmpty = _class.instanceMethodId( @@ -3498,45 +3743,46 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> r'()Z', ); - static final _isEmpty = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _isEmpty = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public boolean isEmpty()` bool isEmpty() { - return _isEmpty(reference.pointer, _id_isEmpty as jni.JMethodIDPtr).boolean; + return _isEmpty(reference.pointer, _id_isEmpty as _$jni.JMethodIDPtr) + .boolean; } - static final _id_get$ = _class.instanceMethodId( + static final _id_get = _class.instanceMethodId( r'get', r'(Ljava/lang/Object;)Ljava/lang/Object;', ); - static final _get$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _get = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public V get(java.lang.Object object)` /// The returned object must be released after use, by calling the [release] method. - $V get$( - jni.JObject object, + $V get( + _$jni.JObject object, ) { - return _get$(reference.pointer, _id_get$ as jni.JMethodIDPtr, + return _get(reference.pointer, _id_get as _$jni.JMethodIDPtr, object.reference.pointer) .object(V); } @@ -3546,23 +3792,23 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> r'(Ljava/lang/Object;)Z', ); - static final _containsKey = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _containsKey = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public boolean containsKey(java.lang.Object object)` bool containsKey( - jni.JObject object, + _$jni.JObject object, ) { - return _containsKey(reference.pointer, _id_containsKey as jni.JMethodIDPtr, - object.reference.pointer) + return _containsKey(reference.pointer, + _id_containsKey as _$jni.JMethodIDPtr, object.reference.pointer) .boolean; } @@ -3571,19 +3817,22 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> r'(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;', ); - static final _put = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _put = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public V put(K object, V object1)` /// The returned object must be released after use, by calling the [release] method. @@ -3591,7 +3840,7 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> $K object, $V object1, ) { - return _put(reference.pointer, _id_put as jni.JMethodIDPtr, + return _put(reference.pointer, _id_put as _$jni.JMethodIDPtr, object.reference.pointer, object1.reference.pointer) .object(V); } @@ -3601,22 +3850,22 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> r'(Ljava/util/Map;)V', ); - static final _putAll = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _putAll = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void putAll(java.util.Map map)` void putAll( - jni.JMap<$K, $V> map, + _$jni.JMap<$K, $V> map, ) { - _putAll(reference.pointer, _id_putAll as jni.JMethodIDPtr, + _putAll(reference.pointer, _id_putAll as _$jni.JMethodIDPtr, map.reference.pointer) .check(); } @@ -3626,23 +3875,23 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> r'(Ljava/lang/Object;)Ljava/lang/Object;', ); - static final _remove = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _remove = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public V remove(java.lang.Object object)` /// The returned object must be released after use, by calling the [release] method. $V remove( - jni.JObject object, + _$jni.JObject object, ) { - return _remove(reference.pointer, _id_remove as jni.JMethodIDPtr, + return _remove(reference.pointer, _id_remove as _$jni.JMethodIDPtr, object.reference.pointer) .object(V); } @@ -3652,21 +3901,21 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> r'()V', ); - static final _clear = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _clear = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void clear()` void clear() { - _clear(reference.pointer, _id_clear as jni.JMethodIDPtr).check(); + _clear(reference.pointer, _id_clear as _$jni.JMethodIDPtr).check(); } static final _id_containsValue = _class.instanceMethodId( @@ -3674,23 +3923,23 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> r'(Ljava/lang/Object;)Z', ); - static final _containsValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _containsValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public boolean containsValue(java.lang.Object object)` bool containsValue( - jni.JObject object, + _$jni.JObject object, ) { return _containsValue(reference.pointer, - _id_containsValue as jni.JMethodIDPtr, object.reference.pointer) + _id_containsValue as _$jni.JMethodIDPtr, object.reference.pointer) .boolean; } @@ -3699,23 +3948,23 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> r'()Ljava/util/Set;', ); - static final _keySet = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _keySet = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.util.Set keySet()` /// The returned object must be released after use, by calling the [release] method. - jni.JSet<$K> keySet() { - return _keySet(reference.pointer, _id_keySet as jni.JMethodIDPtr) - .object(jni.JSetType(K)); + _$jni.JSet<$K> keySet() { + return _keySet(reference.pointer, _id_keySet as _$jni.JMethodIDPtr) + .object(_$jni.JSetType(K)); } static final _id_values = _class.instanceMethodId( @@ -3723,23 +3972,23 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> r'()Ljava/util/Collection;', ); - static final _values = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _values = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.util.Collection values()` /// The returned object must be released after use, by calling the [release] method. - jni.JObject values() { - return _values(reference.pointer, _id_values as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + _$jni.JObject values() { + return _values(reference.pointer, _id_values as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_entrySet = _class.instanceMethodId( @@ -3747,23 +3996,23 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> r'()Ljava/util/Set;', ); - static final _entrySet = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _entrySet = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.util.Set entrySet()` /// The returned object must be released after use, by calling the [release] method. - jni.JSet entrySet() { - return _entrySet(reference.pointer, _id_entrySet as jni.JMethodIDPtr) - .object(const jni.JSetType(jni.JObjectType())); + _$jni.JSet<_$jni.JObject> entrySet() { + return _entrySet(reference.pointer, _id_entrySet as _$jni.JMethodIDPtr) + .object(const _$jni.JSetType(_$jni.JObjectType())); } static final _id_getOrDefault = _class.instanceMethodId( @@ -3771,29 +4020,32 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> r'(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;', ); - static final _getOrDefault = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _getOrDefault = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public V getOrDefault(java.lang.Object object, V object1)` /// The returned object must be released after use, by calling the [release] method. $V getOrDefault( - jni.JObject object, + _$jni.JObject object, $V object1, ) { return _getOrDefault( reference.pointer, - _id_getOrDefault as jni.JMethodIDPtr, + _id_getOrDefault as _$jni.JMethodIDPtr, object.reference.pointer, object1.reference.pointer) .object(V); @@ -3804,19 +4056,22 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> r'(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;', ); - static final _putIfAbsent = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _putIfAbsent = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public V putIfAbsent(K object, V object1)` /// The returned object must be released after use, by calling the [release] method. @@ -3824,8 +4079,11 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> $K object, $V object1, ) { - return _putIfAbsent(reference.pointer, _id_putIfAbsent as jni.JMethodIDPtr, - object.reference.pointer, object1.reference.pointer) + return _putIfAbsent( + reference.pointer, + _id_putIfAbsent as _$jni.JMethodIDPtr, + object.reference.pointer, + object1.reference.pointer) .object(V); } @@ -3834,26 +4092,29 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> r'(Ljava/lang/Object;Ljava/lang/Object;)Z', ); - static final _remove$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _remove$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public boolean remove(java.lang.Object object, java.lang.Object object1)` bool remove$1( - jni.JObject object, - jni.JObject object1, + _$jni.JObject object, + _$jni.JObject object1, ) { - return _remove$1(reference.pointer, _id_remove$1 as jni.JMethodIDPtr, + return _remove$1(reference.pointer, _id_remove$1 as _$jni.JMethodIDPtr, object.reference.pointer, object1.reference.pointer) .boolean; } @@ -3863,24 +4124,24 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> r'(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z', ); - static final _replace = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _replace = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public boolean replace(K object, V object1, V object2)` bool replace( @@ -3890,7 +4151,7 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> ) { return _replace( reference.pointer, - _id_replace as jni.JMethodIDPtr, + _id_replace as _$jni.JMethodIDPtr, object.reference.pointer, object1.reference.pointer, object2.reference.pointer) @@ -3902,19 +4163,22 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> r'(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;', ); - static final _replace$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _replace$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public V replace(K object, V object1)` /// The returned object must be released after use, by calling the [release] method. @@ -3922,7 +4186,7 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> $K object, $V object1, ) { - return _replace$1(reference.pointer, _id_replace$1 as jni.JMethodIDPtr, + return _replace$1(reference.pointer, _id_replace$1 as _$jni.JMethodIDPtr, object.reference.pointer, object1.reference.pointer) .object(V); } @@ -3932,29 +4196,32 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> r'(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;', ); - static final _computeIfAbsent = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _computeIfAbsent = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public V computeIfAbsent(K object, java.util.function.Function function)` /// The returned object must be released after use, by calling the [release] method. $V computeIfAbsent( $K object, - jni.JObject function, + _$jni.JObject function, ) { return _computeIfAbsent( reference.pointer, - _id_computeIfAbsent as jni.JMethodIDPtr, + _id_computeIfAbsent as _$jni.JMethodIDPtr, object.reference.pointer, function.reference.pointer) .object(V); @@ -3965,29 +4232,32 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> r'(Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object;', ); - static final _computeIfPresent = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _computeIfPresent = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public V computeIfPresent(K object, java.util.function.BiFunction biFunction)` /// The returned object must be released after use, by calling the [release] method. $V computeIfPresent( $K object, - jni.JObject biFunction, + _$jni.JObject biFunction, ) { return _computeIfPresent( reference.pointer, - _id_computeIfPresent as jni.JMethodIDPtr, + _id_computeIfPresent as _$jni.JMethodIDPtr, object.reference.pointer, biFunction.reference.pointer) .object(V); @@ -3998,27 +4268,30 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> r'(Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object;', ); - static final _compute = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _compute = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public V compute(K object, java.util.function.BiFunction biFunction)` /// The returned object must be released after use, by calling the [release] method. $V compute( $K object, - jni.JObject biFunction, + _$jni.JObject biFunction, ) { - return _compute(reference.pointer, _id_compute as jni.JMethodIDPtr, + return _compute(reference.pointer, _id_compute as _$jni.JMethodIDPtr, object.reference.pointer, biFunction.reference.pointer) .object(V); } @@ -4028,35 +4301,35 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> r'(Ljava/lang/Object;Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object;', ); - static final _merge = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _merge = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public V merge(K object, V object1, java.util.function.BiFunction biFunction)` /// The returned object must be released after use, by calling the [release] method. $V merge( $K object, $V object1, - jni.JObject biFunction, + _$jni.JObject biFunction, ) { return _merge( reference.pointer, - _id_merge as jni.JMethodIDPtr, + _id_merge as _$jni.JMethodIDPtr, object.reference.pointer, object1.reference.pointer, biFunction.reference.pointer) @@ -4068,22 +4341,22 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> r'(Ljava/util/function/BiConsumer;)V', ); - static final _forEach = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _forEach = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void forEach(java.util.function.BiConsumer biConsumer)` void forEach( - jni.JObject biConsumer, + _$jni.JObject biConsumer, ) { - _forEach(reference.pointer, _id_forEach as jni.JMethodIDPtr, + _forEach(reference.pointer, _id_forEach as _$jni.JMethodIDPtr, biConsumer.reference.pointer) .check(); } @@ -4093,22 +4366,22 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> r'(Ljava/util/function/BiFunction;)V', ); - static final _replaceAll = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _replaceAll = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void replaceAll(java.util.function.BiFunction biFunction)` void replaceAll( - jni.JObject biFunction, + _$jni.JObject biFunction, ) { - _replaceAll(reference.pointer, _id_replaceAll as jni.JMethodIDPtr, + _replaceAll(reference.pointer, _id_replaceAll as _$jni.JMethodIDPtr, biFunction.reference.pointer) .check(); } @@ -4118,23 +4391,23 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> r'()Ljava/lang/Object;', ); - static final _clone = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _clone = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.Object clone()` /// The returned object must be released after use, by calling the [release] method. - jni.JObject clone() { - return _clone(reference.pointer, _id_clone as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + _$jni.JObject clone() { + return _clone(reference.pointer, _id_clone as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_newHashMap = _class.staticMethodId( @@ -4142,131 +4415,152 @@ class HashMap<$K extends jni.JObject, $V extends jni.JObject> r'(I)Ljava/util/HashMap;', ); - static final _newHashMap = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallStaticObjectMethod') + static final _newHashMap = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Int32,)>)>>( + 'globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `static public java.util.HashMap newHashMap(int i)` /// The returned object must be released after use, by calling the [release] method. static HashMap<$K, $V> - newHashMap<$K extends jni.JObject, $V extends jni.JObject>( + newHashMap<$K extends _$jni.JObject, $V extends _$jni.JObject>( int i, { - required jni.JObjType<$K> K, - required jni.JObjType<$V> V, + required _$jni.JObjType<$K> K, + required _$jni.JObjType<$V> V, }) { return _newHashMap( - _class.reference.pointer, _id_newHashMap as jni.JMethodIDPtr, i) - .object($HashMapType(K, V)); + _class.reference.pointer, _id_newHashMap as _$jni.JMethodIDPtr, i) + .object($HashMap$Type(K, V)); } } -final class $HashMapType<$K extends jni.JObject, $V extends jni.JObject> - extends jni.JObjType> { - final jni.JObjType<$K> K; - final jni.JObjType<$V> V; +final class $HashMap$Type<$K extends _$jni.JObject, $V extends _$jni.JObject> + extends _$jni.JObjType> { + @_$jni.internal + final _$jni.JObjType<$K> K; + + @_$jni.internal + final _$jni.JObjType<$V> V; - const $HashMapType( + @_$jni.internal + const $HashMap$Type( this.K, this.V, ); - @override + @_$jni.internal + @_$core.override String get signature => r'Ljava/util/HashMap;'; - @override - HashMap<$K, $V> fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + HashMap<$K, $V> fromReference(_$jni.JReference reference) => HashMap.fromReference(K, V, reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => Object.hash($HashMapType, K, V); + @_$core.override + int get hashCode => Object.hash($HashMap$Type, K, V); - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($HashMapType<$K, $V>) && - other is $HashMapType<$K, $V> && + return other.runtimeType == ($HashMap$Type<$K, $V>) && + other is $HashMap$Type<$K, $V> && K == other.K && V == other.V; } } /// from: `com.example.in_app_java.AndroidUtils` -class AndroidUtils extends jni.JObject { - @override - late final jni.JObjType $type = type; +class AndroidUtils extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal AndroidUtils.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); static final _class = - jni.JClass.forName(r'com/example/in_app_java/AndroidUtils'); + _$jni.JClass.forName(r'com/example/in_app_java/AndroidUtils'); /// The type which includes information such as the signature of this class. - static const type = $AndroidUtilsType(); + static const type = $AndroidUtils$Type(); static final _id_showToast = _class.staticMethodId( r'showToast', r'(Landroid/app/Activity;Ljava/lang/CharSequence;I)V', ); - static final _showToast = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _showToast = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer, - $Int32 + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Int32 )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer, int)>(); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + int)>(); /// from: `static public void showToast(android.app.Activity mainActivity, java.lang.CharSequence text, int duration)` static void showToast( - jni.JObject mainActivity, - jni.JObject text, + _$jni.JObject mainActivity, + _$jni.JObject text, int duration, ) { - _showToast(_class.reference.pointer, _id_showToast as jni.JMethodIDPtr, + _showToast(_class.reference.pointer, _id_showToast as _$jni.JMethodIDPtr, mainActivity.reference.pointer, text.reference.pointer, duration) .check(); } } -final class $AndroidUtilsType extends jni.JObjType { - const $AndroidUtilsType(); +final class $AndroidUtils$Type extends _$jni.JObjType { + @_$jni.internal + const $AndroidUtils$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/example/in_app_java/AndroidUtils;'; - @override - AndroidUtils fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + AndroidUtils fromReference(_$jni.JReference reference) => AndroidUtils.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($AndroidUtilsType).hashCode; + @_$core.override + int get hashCode => ($AndroidUtils$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($AndroidUtilsType) && - other is $AndroidUtilsType; + return other.runtimeType == ($AndroidUtils$Type) && + other is $AndroidUtils$Type; } } diff --git a/pkgs/jnigen/example/in_app_java/lib/main.dart b/pkgs/jnigen/example/in_app_java/lib/main.dart index c913918a1..3f3cdcab6 100644 --- a/pkgs/jnigen/example/in_app_java/lib/main.dart +++ b/pkgs/jnigen/example/in_app_java/lib/main.dart @@ -14,7 +14,7 @@ JObject context = JObject.fromReference(Jni.getCachedApplicationContext()); final hashmap = HashMap.new$2(K: JString.type, V: JString.type); -final emojiCompat = EmojiCompat.get$(); +final emojiCompat = EmojiCompat.get(); extension IntX on int { JString toJString() { diff --git a/pkgs/jnigen/example/kotlin_plugin/lib/kotlin_bindings.dart b/pkgs/jnigen/example/kotlin_plugin/lib/kotlin_bindings.dart index 70569b65f..5c3c341ad 100644 --- a/pkgs/jnigen/example/kotlin_plugin/lib/kotlin_bindings.dart +++ b/pkgs/jnigen/example/kotlin_plugin/lib/kotlin_bindings.dart @@ -9,7 +9,9 @@ // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter // ignore_for_file: invalid_use_of_internal_member +// ignore_for_file: library_prefixes // ignore_for_file: lines_longer_than_80_chars +// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_local_identifiers // ignore_for_file: non_constant_identifier_names // ignore_for_file: only_throw_errors @@ -25,46 +27,49 @@ // ignore_for_file: unused_shown_name // ignore_for_file: use_super_parameters -import 'dart:ffi' as ffi; -import 'dart:isolate' show RawReceivePort, ReceivePort; +import 'dart:core' show Object, String, bool, double, int; +import 'dart:core' as _$core; -import 'package:jni/_internal.dart'; -import 'package:jni/jni.dart' as jni; +import 'package:jni/_internal.dart' as _$jni; +import 'package:jni/jni.dart' as _$jni; /// from: `Example` -class Example extends jni.JObject { - @override - late final jni.JObjType $type = type; +class Example extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal Example.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = jni.JClass.forName(r'Example'); + static final _class = _$jni.JClass.forName(r'Example'); /// The type which includes information such as the signature of this class. - static const type = $ExampleType(); + static const type = $Example$Type(); static final _id_new$ = _class.constructorId( r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory Example() { return Example.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } @@ -73,56 +78,64 @@ class Example extends jni.JObject { r'(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;', ); - static final _thinkBeforeAnswering = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _thinkBeforeAnswering = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public final java.lang.Object thinkBeforeAnswering(kotlin.coroutines.Continuation continuation)` /// The returned object must be released after use, by calling the [release] method. - Future thinkBeforeAnswering() async { - final $p = ReceivePort(); - final $c = jni.JObject.fromReference( - ProtectedJniExtensions.newPortContinuation($p)); - _thinkBeforeAnswering(reference.pointer, - _id_thinkBeforeAnswering as jni.JMethodIDPtr, $c.reference.pointer) - .object(const jni.JObjectType()); - final $o = jni.JGlobalReference(jni.JObjectPtr.fromAddress(await $p.first)); - final $k = const jni.JStringType().jClass.reference.pointer; - if (!jni.Jni.env.IsInstanceOf($o.pointer, $k)) { + _$core.Future<_$jni.JString> thinkBeforeAnswering() async { + final $p = _$jni.ReceivePort(); + final $c = _$jni.JObject.fromReference( + _$jni.ProtectedJniExtensions.newPortContinuation($p)); + _thinkBeforeAnswering( + reference.pointer, + _id_thinkBeforeAnswering as _$jni.JMethodIDPtr, + $c.reference.pointer) + .object(const _$jni.JObjectType()); + final $o = + _$jni.JGlobalReference(_$jni.JObjectPtr.fromAddress(await $p.first)); + final $k = const _$jni.JStringType().jClass.reference.pointer; + if (!_$jni.Jni.env.IsInstanceOf($o.pointer, $k)) { throw 'Failed'; } - return const jni.JStringType().fromReference($o); + return const _$jni.JStringType().fromReference($o); } } -final class $ExampleType extends jni.JObjType { - const $ExampleType(); +final class $Example$Type extends _$jni.JObjType { + @_$jni.internal + const $Example$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'LExample;'; - @override - Example fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + Example fromReference(_$jni.JReference reference) => Example.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($ExampleType).hashCode; + @_$core.override + int get hashCode => ($Example$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($ExampleType) && other is $ExampleType; + return other.runtimeType == ($Example$Type) && other is $Example$Type; } } diff --git a/pkgs/jnigen/example/notification_plugin/lib/notifications.dart b/pkgs/jnigen/example/notification_plugin/lib/notifications.dart index 9b8afd1b0..d0d788d94 100644 --- a/pkgs/jnigen/example/notification_plugin/lib/notifications.dart +++ b/pkgs/jnigen/example/notification_plugin/lib/notifications.dart @@ -13,7 +13,9 @@ // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter // ignore_for_file: invalid_use_of_internal_member +// ignore_for_file: library_prefixes // ignore_for_file: lines_longer_than_80_chars +// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_local_identifiers // ignore_for_file: non_constant_identifier_names // ignore_for_file: only_throw_errors @@ -29,47 +31,50 @@ // ignore_for_file: unused_shown_name // ignore_for_file: use_super_parameters -import 'dart:ffi' as ffi; -import 'dart:isolate' show RawReceivePort, ReceivePort; +import 'dart:core' show Object, String, bool, double, int; +import 'dart:core' as _$core; -import 'package:jni/_internal.dart'; -import 'package:jni/jni.dart' as jni; +import 'package:jni/_internal.dart' as _$jni; +import 'package:jni/jni.dart' as _$jni; /// from: `com.example.notification_plugin.Notifications` -class Notifications extends jni.JObject { - @override - late final jni.JObjType $type = type; +class Notifications extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal Notifications.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); static final _class = - jni.JClass.forName(r'com/example/notification_plugin/Notifications'); + _$jni.JClass.forName(r'com/example/notification_plugin/Notifications'); /// The type which includes information such as the signature of this class. - static const type = $NotificationsType(); + static const type = $Notifications$Type(); static final _id_new$ = _class.constructorId( r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory Notifications() { return Notifications.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } @@ -78,37 +83,37 @@ class Notifications extends jni.JObject { r'(Landroid/content/Context;ILjava/lang/String;Ljava/lang/String;)V', ); - static final _showNotification = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _showNotification = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - $Int32, - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Int32, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.Pointer, + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, int, - ffi.Pointer, - ffi.Pointer)>(); + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `static public void showNotification(android.content.Context context, int notificationID, java.lang.String title, java.lang.String text)` static void showNotification( - jni.JObject context, + _$jni.JObject context, int notificationID, - jni.JString title, - jni.JString text, + _$jni.JString title, + _$jni.JString text, ) { _showNotification( _class.reference.pointer, - _id_showNotification as jni.JMethodIDPtr, + _id_showNotification as _$jni.JMethodIDPtr, context.reference.pointer, notificationID, title.reference.pointer, @@ -117,28 +122,33 @@ class Notifications extends jni.JObject { } } -final class $NotificationsType extends jni.JObjType { - const $NotificationsType(); +final class $Notifications$Type extends _$jni.JObjType { + @_$jni.internal + const $Notifications$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/example/notification_plugin/Notifications;'; - @override - Notifications fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + Notifications fromReference(_$jni.JReference reference) => Notifications.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($NotificationsType).hashCode; + @_$core.override + int get hashCode => ($Notifications$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($NotificationsType) && - other is $NotificationsType; + return other.runtimeType == ($Notifications$Type) && + other is $Notifications$Type; } } diff --git a/pkgs/jnigen/example/pdfbox_plugin/example/lib/main.dart b/pkgs/jnigen/example/pdfbox_plugin/example/lib/main.dart index 80941a807..52fb69d27 100644 --- a/pkgs/jnigen/example/pdfbox_plugin/example/lib/main.dart +++ b/pkgs/jnigen/example/pdfbox_plugin/example/lib/main.dart @@ -158,7 +158,7 @@ class PDFFileInfo { /// Converts JString to dart string and deletes the original. /// Also handles the case where the underlying string is Null. String _fromJavaStr(JString jstr) { - if (jstr.reference.pointer == nullptr) { + if (jstr.isNull) { return '(null)'; } return jstr.toDartString(releaseOriginal: true); diff --git a/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/pdmodel/PDDocument.dart b/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/pdmodel/PDDocument.dart index d159f5155..5570187f8 100644 --- a/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/pdmodel/PDDocument.dart +++ b/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/pdmodel/PDDocument.dart @@ -27,7 +27,9 @@ // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter // ignore_for_file: invalid_use_of_internal_member +// ignore_for_file: library_prefixes // ignore_for_file: lines_longer_than_80_chars +// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_local_identifiers // ignore_for_file: non_constant_identifier_names // ignore_for_file: only_throw_errors @@ -43,11 +45,11 @@ // ignore_for_file: unused_shown_name // ignore_for_file: use_super_parameters -import 'dart:ffi' as ffi; -import 'dart:isolate' show RawReceivePort, ReceivePort; +import 'dart:core' show Object, String, bool, double, int; +import 'dart:core' as _$core; -import 'package:jni/_internal.dart'; -import 'package:jni/jni.dart' as jni; +import 'package:jni/_internal.dart' as _$jni; +import 'package:jni/jni.dart' as _$jni; import 'PDDocumentInformation.dart' as pddocumentinformation_; @@ -56,33 +58,36 @@ import 'PDDocumentInformation.dart' as pddocumentinformation_; /// This is the in-memory representation of the PDF document. /// The \#close() method must be called once the document is no longer needed. ///@author Ben Litchfield -class PDDocument extends jni.JObject { - @override - late final jni.JObjType $type = type; +class PDDocument extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal PDDocument.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); static final _class = - jni.JClass.forName(r'org/apache/pdfbox/pdmodel/PDDocument'); + _$jni.JClass.forName(r'org/apache/pdfbox/pdmodel/PDDocument'); /// The type which includes information such as the signature of this class. - static const type = $PDDocumentType(); + static const type = $PDDocument$Type(); static final _id_new$ = _class.constructorId( r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` @@ -92,7 +97,7 @@ class PDDocument extends jni.JObject { /// You need to add at least one page for the document to be valid. factory PDDocument() { return PDDocument.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } @@ -100,16 +105,16 @@ class PDDocument extends jni.JObject { r'(Lorg/apache/pdfbox/io/MemoryUsageSetting;)V', ); - static final _new$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _new$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_NewObject') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void (org.apache.pdfbox.io.MemoryUsageSetting memUsageSetting)` /// The returned object must be released after use, by calling the [release] method. @@ -118,10 +123,10 @@ class PDDocument extends jni.JObject { /// You need to add at least one page for the document to be valid. ///@param memUsageSetting defines how memory is used for buffering PDF streams factory PDDocument.new$1( - jni.JObject memUsageSetting, + _$jni.JObject memUsageSetting, ) { return PDDocument.fromReference(_new$1(_class.reference.pointer, - _id_new$1 as jni.JMethodIDPtr, memUsageSetting.reference.pointer) + _id_new$1 as _$jni.JMethodIDPtr, memUsageSetting.reference.pointer) .reference); } @@ -129,16 +134,16 @@ class PDDocument extends jni.JObject { r'(Lorg/apache/pdfbox/cos/COSDocument;)V', ); - static final _new$2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _new$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_NewObject') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void (org.apache.pdfbox.cos.COSDocument doc)` /// The returned object must be released after use, by calling the [release] method. @@ -146,10 +151,10 @@ class PDDocument extends jni.JObject { /// Constructor that uses an existing document. The COSDocument that is passed in must be valid. ///@param doc The COSDocument that this document wraps. factory PDDocument.new$2( - jni.JObject doc, + _$jni.JObject doc, ) { return PDDocument.fromReference(_new$2(_class.reference.pointer, - _id_new$2 as jni.JMethodIDPtr, doc.reference.pointer) + _id_new$2 as _$jni.JMethodIDPtr, doc.reference.pointer) .reference); } @@ -157,19 +162,22 @@ class PDDocument extends jni.JObject { r'(Lorg/apache/pdfbox/cos/COSDocument;Lorg/apache/pdfbox/io/RandomAccessRead;)V', ); - static final _new$3 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _new$3 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public void (org.apache.pdfbox.cos.COSDocument doc, org.apache.pdfbox.io.RandomAccessRead source)` /// The returned object must be released after use, by calling the [release] method. @@ -178,12 +186,12 @@ class PDDocument extends jni.JObject { ///@param doc The COSDocument that this document wraps. ///@param source the parser which is used to read the pdf factory PDDocument.new$3( - jni.JObject doc, - jni.JObject source, + _$jni.JObject doc, + _$jni.JObject source, ) { return PDDocument.fromReference(_new$3( _class.reference.pointer, - _id_new$3 as jni.JMethodIDPtr, + _id_new$3 as _$jni.JMethodIDPtr, doc.reference.pointer, source.reference.pointer) .reference); @@ -193,24 +201,24 @@ class PDDocument extends jni.JObject { r'(Lorg/apache/pdfbox/cos/COSDocument;Lorg/apache/pdfbox/io/RandomAccessRead;Lorg/apache/pdfbox/pdmodel/encryption/AccessPermission;)V', ); - static final _new$4 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _new$4 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public void (org.apache.pdfbox.cos.COSDocument doc, org.apache.pdfbox.io.RandomAccessRead source, org.apache.pdfbox.pdmodel.encryption.AccessPermission permission)` /// The returned object must be released after use, by calling the [release] method. @@ -220,13 +228,13 @@ class PDDocument extends jni.JObject { ///@param source the parser which is used to read the pdf ///@param permission he access permissions of the pdf factory PDDocument.new$4( - jni.JObject doc, - jni.JObject source, - jni.JObject permission, + _$jni.JObject doc, + _$jni.JObject source, + _$jni.JObject permission, ) { return PDDocument.fromReference(_new$4( _class.reference.pointer, - _id_new$4 as jni.JMethodIDPtr, + _id_new$4 as _$jni.JMethodIDPtr, doc.reference.pointer, source.reference.pointer, permission.reference.pointer) @@ -238,16 +246,16 @@ class PDDocument extends jni.JObject { r'(Lorg/apache/pdfbox/pdmodel/PDPage;)V', ); - static final _addPage = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _addPage = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void addPage(org.apache.pdfbox.pdmodel.PDPage page)` /// @@ -255,9 +263,9 @@ class PDDocument extends jni.JObject { /// hierarchy and set the parent of the page to the root. ///@param page The page to add to the document. void addPage( - jni.JObject page, + _$jni.JObject page, ) { - _addPage(reference.pointer, _id_addPage as jni.JMethodIDPtr, + _addPage(reference.pointer, _id_addPage as _$jni.JMethodIDPtr, page.reference.pointer) .check(); } @@ -267,16 +275,16 @@ class PDDocument extends jni.JObject { r'(Lorg/apache/pdfbox/pdmodel/interactive/digitalsignature/PDSignature;)V', ); - static final _addSignature = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _addSignature = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void addSignature(org.apache.pdfbox.pdmodel.interactive.digitalsignature.PDSignature sigObject)` /// @@ -291,9 +299,9 @@ class PDDocument extends jni.JObject { ///@throws IllegalStateException if one attempts to add several signature /// fields. void addSignature( - jni.JObject sigObject, + _$jni.JObject sigObject, ) { - _addSignature(reference.pointer, _id_addSignature as jni.JMethodIDPtr, + _addSignature(reference.pointer, _id_addSignature as _$jni.JMethodIDPtr, sigObject.reference.pointer) .check(); } @@ -303,19 +311,22 @@ class PDDocument extends jni.JObject { r'(Lorg/apache/pdfbox/pdmodel/interactive/digitalsignature/PDSignature;Lorg/apache/pdfbox/pdmodel/interactive/digitalsignature/SignatureOptions;)V', ); - static final _addSignature$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _addSignature$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public void addSignature(org.apache.pdfbox.pdmodel.interactive.digitalsignature.PDSignature sigObject, org.apache.pdfbox.pdmodel.interactive.digitalsignature.SignatureOptions options)` /// @@ -331,10 +342,10 @@ class PDDocument extends jni.JObject { ///@throws IllegalStateException if one attempts to add several signature /// fields. void addSignature$1( - jni.JObject sigObject, - jni.JObject options, + _$jni.JObject sigObject, + _$jni.JObject options, ) { - _addSignature$1(reference.pointer, _id_addSignature$1 as jni.JMethodIDPtr, + _addSignature$1(reference.pointer, _id_addSignature$1 as _$jni.JMethodIDPtr, sigObject.reference.pointer, options.reference.pointer) .check(); } @@ -344,19 +355,22 @@ class PDDocument extends jni.JObject { r'(Lorg/apache/pdfbox/pdmodel/interactive/digitalsignature/PDSignature;Lorg/apache/pdfbox/pdmodel/interactive/digitalsignature/SignatureInterface;)V', ); - static final _addSignature$2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _addSignature$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public void addSignature(org.apache.pdfbox.pdmodel.interactive.digitalsignature.PDSignature sigObject, org.apache.pdfbox.pdmodel.interactive.digitalsignature.SignatureInterface signatureInterface)` /// @@ -371,10 +385,10 @@ class PDDocument extends jni.JObject { ///@throws IllegalStateException if one attempts to add several signature /// fields. void addSignature$2( - jni.JObject sigObject, - jni.JObject signatureInterface, + _$jni.JObject sigObject, + _$jni.JObject signatureInterface, ) { - _addSignature$2(reference.pointer, _id_addSignature$2 as jni.JMethodIDPtr, + _addSignature$2(reference.pointer, _id_addSignature$2 as _$jni.JMethodIDPtr, sigObject.reference.pointer, signatureInterface.reference.pointer) .check(); } @@ -384,24 +398,24 @@ class PDDocument extends jni.JObject { r'(Lorg/apache/pdfbox/pdmodel/interactive/digitalsignature/PDSignature;Lorg/apache/pdfbox/pdmodel/interactive/digitalsignature/SignatureInterface;Lorg/apache/pdfbox/pdmodel/interactive/digitalsignature/SignatureOptions;)V', ); - static final _addSignature$3 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _addSignature$3 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public void addSignature(org.apache.pdfbox.pdmodel.interactive.digitalsignature.PDSignature sigObject, org.apache.pdfbox.pdmodel.interactive.digitalsignature.SignatureInterface signatureInterface, org.apache.pdfbox.pdmodel.interactive.digitalsignature.SignatureOptions options)` /// @@ -419,13 +433,13 @@ class PDDocument extends jni.JObject { ///@throws IllegalStateException if one attempts to add several signature /// fields. void addSignature$3( - jni.JObject sigObject, - jni.JObject signatureInterface, - jni.JObject options, + _$jni.JObject sigObject, + _$jni.JObject signatureInterface, + _$jni.JObject options, ) { _addSignature$3( reference.pointer, - _id_addSignature$3 as jni.JMethodIDPtr, + _id_addSignature$3 as _$jni.JMethodIDPtr, sigObject.reference.pointer, signatureInterface.reference.pointer, options.reference.pointer) @@ -437,24 +451,24 @@ class PDDocument extends jni.JObject { r'(Ljava/util/List;Lorg/apache/pdfbox/pdmodel/interactive/digitalsignature/SignatureInterface;Lorg/apache/pdfbox/pdmodel/interactive/digitalsignature/SignatureOptions;)V', ); - static final _addSignatureField = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _addSignatureField = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public void addSignatureField(java.util.List sigFields, org.apache.pdfbox.pdmodel.interactive.digitalsignature.SignatureInterface signatureInterface, org.apache.pdfbox.pdmodel.interactive.digitalsignature.SignatureOptions options)` /// @@ -467,13 +481,13 @@ class PDDocument extends jni.JObject { ///@deprecated The method is misleading, because only one signature may be /// added in a document. The method will be removed in the future. void addSignatureField( - jni.JList sigFields, - jni.JObject signatureInterface, - jni.JObject options, + _$jni.JList<_$jni.JObject> sigFields, + _$jni.JObject signatureInterface, + _$jni.JObject options, ) { _addSignatureField( reference.pointer, - _id_addSignatureField as jni.JMethodIDPtr, + _id_addSignatureField as _$jni.JMethodIDPtr, sigFields.reference.pointer, signatureInterface.reference.pointer, options.reference.pointer) @@ -485,25 +499,25 @@ class PDDocument extends jni.JObject { r'(Lorg/apache/pdfbox/pdmodel/PDPage;)V', ); - static final _removePage = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _removePage = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void removePage(org.apache.pdfbox.pdmodel.PDPage page)` /// /// Remove the page from the document. ///@param page The page to remove from the document. void removePage( - jni.JObject page, + _$jni.JObject page, ) { - _removePage(reference.pointer, _id_removePage as jni.JMethodIDPtr, + _removePage(reference.pointer, _id_removePage as _$jni.JMethodIDPtr, page.reference.pointer) .check(); } @@ -513,15 +527,15 @@ class PDDocument extends jni.JObject { r'(I)V', ); - static final _removePage$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallVoidMethod') + static final _removePage$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public void removePage(int pageNumber)` /// @@ -530,8 +544,8 @@ class PDDocument extends jni.JObject { void removePage$1( int pageNumber, ) { - _removePage$1( - reference.pointer, _id_removePage$1 as jni.JMethodIDPtr, pageNumber) + _removePage$1(reference.pointer, _id_removePage$1 as _$jni.JMethodIDPtr, + pageNumber) .check(); } @@ -540,16 +554,16 @@ class PDDocument extends jni.JObject { r'(Lorg/apache/pdfbox/pdmodel/PDPage;)Lorg/apache/pdfbox/pdmodel/PDPage;', ); - static final _importPage = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _importPage = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public org.apache.pdfbox.pdmodel.PDPage importPage(org.apache.pdfbox.pdmodel.PDPage page)` /// The returned object must be released after use, by calling the [release] method. @@ -575,12 +589,12 @@ class PDDocument extends jni.JObject { ///@param page The page to import. ///@return The page that was imported. ///@throws IOException If there is an error copying the page. - jni.JObject importPage( - jni.JObject page, + _$jni.JObject importPage( + _$jni.JObject page, ) { - return _importPage(reference.pointer, _id_importPage as jni.JMethodIDPtr, + return _importPage(reference.pointer, _id_importPage as _$jni.JMethodIDPtr, page.reference.pointer) - .object(const jni.JObjectType()); + .object(const _$jni.JObjectType()); } static final _id_getDocument = _class.instanceMethodId( @@ -588,16 +602,16 @@ class PDDocument extends jni.JObject { r'()Lorg/apache/pdfbox/cos/COSDocument;', ); - static final _getDocument = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getDocument = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public org.apache.pdfbox.cos.COSDocument getDocument()` @@ -605,9 +619,10 @@ class PDDocument extends jni.JObject { /// /// This will get the low level document. ///@return The document that this layer sits on top of. - jni.JObject getDocument() { - return _getDocument(reference.pointer, _id_getDocument as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + _$jni.JObject getDocument() { + return _getDocument( + reference.pointer, _id_getDocument as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_getDocumentInformation = _class.instanceMethodId( @@ -615,16 +630,16 @@ class PDDocument extends jni.JObject { r'()Lorg/apache/pdfbox/pdmodel/PDDocumentInformation;', ); - static final _getDocumentInformation = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getDocumentInformation = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public org.apache.pdfbox.pdmodel.PDDocumentInformation getDocumentInformation()` @@ -639,8 +654,8 @@ class PDDocument extends jni.JObject { ///@return The documents /Info dictionary, never null. pddocumentinformation_.PDDocumentInformation getDocumentInformation() { return _getDocumentInformation( - reference.pointer, _id_getDocumentInformation as jni.JMethodIDPtr) - .object(const pddocumentinformation_.$PDDocumentInformationType()); + reference.pointer, _id_getDocumentInformation as _$jni.JMethodIDPtr) + .object(const pddocumentinformation_.$PDDocumentInformation$Type()); } static final _id_setDocumentInformation = _class.instanceMethodId( @@ -648,16 +663,16 @@ class PDDocument extends jni.JObject { r'(Lorg/apache/pdfbox/pdmodel/PDDocumentInformation;)V', ); - static final _setDocumentInformation = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setDocumentInformation = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setDocumentInformation(org.apache.pdfbox.pdmodel.PDDocumentInformation info)` /// @@ -672,7 +687,7 @@ class PDDocument extends jni.JObject { ) { _setDocumentInformation( reference.pointer, - _id_setDocumentInformation as jni.JMethodIDPtr, + _id_setDocumentInformation as _$jni.JMethodIDPtr, info.reference.pointer) .check(); } @@ -682,16 +697,16 @@ class PDDocument extends jni.JObject { r'()Lorg/apache/pdfbox/pdmodel/PDDocumentCatalog;', ); - static final _getDocumentCatalog = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getDocumentCatalog = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public org.apache.pdfbox.pdmodel.PDDocumentCatalog getDocumentCatalog()` @@ -699,10 +714,10 @@ class PDDocument extends jni.JObject { /// /// This will get the document CATALOG. This is guaranteed to not return null. ///@return The documents /Root dictionary - jni.JObject getDocumentCatalog() { + _$jni.JObject getDocumentCatalog() { return _getDocumentCatalog( - reference.pointer, _id_getDocumentCatalog as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + reference.pointer, _id_getDocumentCatalog as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_isEncrypted = _class.instanceMethodId( @@ -710,16 +725,16 @@ class PDDocument extends jni.JObject { r'()Z', ); - static final _isEncrypted = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _isEncrypted = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public boolean isEncrypted()` @@ -727,7 +742,8 @@ class PDDocument extends jni.JObject { /// This will tell if this document is encrypted or not. ///@return true If this document is encrypted. bool isEncrypted() { - return _isEncrypted(reference.pointer, _id_isEncrypted as jni.JMethodIDPtr) + return _isEncrypted( + reference.pointer, _id_isEncrypted as _$jni.JMethodIDPtr) .boolean; } @@ -736,16 +752,16 @@ class PDDocument extends jni.JObject { r'()Lorg/apache/pdfbox/pdmodel/encryption/PDEncryption;', ); - static final _getEncryption = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getEncryption = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public org.apache.pdfbox.pdmodel.encryption.PDEncryption getEncryption()` @@ -756,10 +772,10 @@ class PDDocument extends jni.JObject { /// but the only supported subclass at this time is a /// PDStandardEncryption object. ///@return The encryption dictionary(most likely a PDStandardEncryption object) - jni.JObject getEncryption() { + _$jni.JObject getEncryption() { return _getEncryption( - reference.pointer, _id_getEncryption as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + reference.pointer, _id_getEncryption as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_setEncryptionDictionary = _class.instanceMethodId( @@ -767,16 +783,16 @@ class PDDocument extends jni.JObject { r'(Lorg/apache/pdfbox/pdmodel/encryption/PDEncryption;)V', ); - static final _setEncryptionDictionary = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setEncryptionDictionary = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setEncryptionDictionary(org.apache.pdfbox.pdmodel.encryption.PDEncryption encryption)` /// @@ -784,11 +800,11 @@ class PDDocument extends jni.JObject { ///@param encryption The encryption dictionary(most likely a PDStandardEncryption object) ///@throws IOException If there is an error determining which security handler to use. void setEncryptionDictionary( - jni.JObject encryption, + _$jni.JObject encryption, ) { _setEncryptionDictionary( reference.pointer, - _id_setEncryptionDictionary as jni.JMethodIDPtr, + _id_setEncryptionDictionary as _$jni.JMethodIDPtr, encryption.reference.pointer) .check(); } @@ -798,17 +814,18 @@ class PDDocument extends jni.JObject { r'()Lorg/apache/pdfbox/pdmodel/interactive/digitalsignature/PDSignature;', ); - static final _getLastSignatureDictionary = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + static final _getLastSignatureDictionary = + _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); /// from: `public org.apache.pdfbox.pdmodel.interactive.digitalsignature.PDSignature getLastSignatureDictionary()` /// The returned object must be released after use, by calling the [release] method. @@ -817,10 +834,10 @@ class PDDocument extends jni.JObject { /// last in time when empty signature fields are created first but signed after other fields. ///@return the last signature as PDSignatureField. ///@throws IOException if no document catalog can be found. - jni.JObject getLastSignatureDictionary() { + _$jni.JObject getLastSignatureDictionary() { return _getLastSignatureDictionary(reference.pointer, - _id_getLastSignatureDictionary as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + _id_getLastSignatureDictionary as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_getSignatureFields = _class.instanceMethodId( @@ -828,16 +845,16 @@ class PDDocument extends jni.JObject { r'()Ljava/util/List;', ); - static final _getSignatureFields = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getSignatureFields = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.util.List getSignatureFields()` @@ -846,10 +863,10 @@ class PDDocument extends jni.JObject { /// Retrieve all signature fields from the document. ///@return a List of PDSignatureFields ///@throws IOException if no document catalog can be found. - jni.JList getSignatureFields() { + _$jni.JList<_$jni.JObject> getSignatureFields() { return _getSignatureFields( - reference.pointer, _id_getSignatureFields as jni.JMethodIDPtr) - .object(const jni.JListType(jni.JObjectType())); + reference.pointer, _id_getSignatureFields as _$jni.JMethodIDPtr) + .object(const _$jni.JListType(_$jni.JObjectType())); } static final _id_getSignatureDictionaries = _class.instanceMethodId( @@ -857,16 +874,16 @@ class PDDocument extends jni.JObject { r'()Ljava/util/List;', ); - static final _getSignatureDictionaries = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getSignatureDictionaries = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.util.List getSignatureDictionaries()` @@ -875,10 +892,10 @@ class PDDocument extends jni.JObject { /// Retrieve all signature dictionaries from the document. ///@return a List of PDSignatureFields ///@throws IOException if no document catalog can be found. - jni.JList getSignatureDictionaries() { - return _getSignatureDictionaries( - reference.pointer, _id_getSignatureDictionaries as jni.JMethodIDPtr) - .object(const jni.JListType(jni.JObjectType())); + _$jni.JList<_$jni.JObject> getSignatureDictionaries() { + return _getSignatureDictionaries(reference.pointer, + _id_getSignatureDictionaries as _$jni.JMethodIDPtr) + .object(const _$jni.JListType(_$jni.JObjectType())); } static final _id_registerTrueTypeFontForClosing = _class.instanceMethodId( @@ -886,16 +903,17 @@ class PDDocument extends jni.JObject { r'(Lorg/apache/fontbox/ttf/TrueTypeFont;)V', ); - static final _registerTrueTypeFontForClosing = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + static final _registerTrueTypeFontForClosing = + _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void registerTrueTypeFontForClosing(org.apache.fontbox.ttf.TrueTypeFont ttf)` /// @@ -904,11 +922,11 @@ class PDDocument extends jni.JObject { /// method, it is done by the appropriate PDFont classes. ///@param ttf void registerTrueTypeFontForClosing( - jni.JObject ttf, + _$jni.JObject ttf, ) { _registerTrueTypeFontForClosing( reference.pointer, - _id_registerTrueTypeFontForClosing as jni.JMethodIDPtr, + _id_registerTrueTypeFontForClosing as _$jni.JMethodIDPtr, ttf.reference.pointer) .check(); } @@ -918,16 +936,16 @@ class PDDocument extends jni.JObject { r'(Ljava/io/File;)Lorg/apache/pdfbox/pdmodel/PDDocument;', ); - static final _load = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _load = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `static public org.apache.pdfbox.pdmodel.PDDocument load(java.io.File file)` /// The returned object must be released after use, by calling the [release] method. @@ -938,11 +956,11 @@ class PDDocument extends jni.JObject { ///@throws InvalidPasswordException If the file required a non-empty password. ///@throws IOException in case of a file reading or parsing error static PDDocument load( - jni.JObject file, + _$jni.JObject file, ) { - return _load(_class.reference.pointer, _id_load as jni.JMethodIDPtr, + return _load(_class.reference.pointer, _id_load as _$jni.JMethodIDPtr, file.reference.pointer) - .object(const $PDDocumentType()); + .object(const $PDDocument$Type()); } static final _id_load$1 = _class.staticMethodId( @@ -950,19 +968,22 @@ class PDDocument extends jni.JObject { r'(Ljava/io/File;Lorg/apache/pdfbox/io/MemoryUsageSetting;)Lorg/apache/pdfbox/pdmodel/PDDocument;', ); - static final _load$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _load$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `static public org.apache.pdfbox.pdmodel.PDDocument load(java.io.File file, org.apache.pdfbox.io.MemoryUsageSetting memUsageSetting)` /// The returned object must be released after use, by calling the [release] method. @@ -974,12 +995,12 @@ class PDDocument extends jni.JObject { ///@throws InvalidPasswordException If the file required a non-empty password. ///@throws IOException in case of a file reading or parsing error static PDDocument load$1( - jni.JObject file, - jni.JObject memUsageSetting, + _$jni.JObject file, + _$jni.JObject memUsageSetting, ) { - return _load$1(_class.reference.pointer, _id_load$1 as jni.JMethodIDPtr, + return _load$1(_class.reference.pointer, _id_load$1 as _$jni.JMethodIDPtr, file.reference.pointer, memUsageSetting.reference.pointer) - .object(const $PDDocumentType()); + .object(const $PDDocument$Type()); } static final _id_load$2 = _class.staticMethodId( @@ -987,19 +1008,22 @@ class PDDocument extends jni.JObject { r'(Ljava/io/File;Ljava/lang/String;)Lorg/apache/pdfbox/pdmodel/PDDocument;', ); - static final _load$2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _load$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `static public org.apache.pdfbox.pdmodel.PDDocument load(java.io.File file, java.lang.String password)` /// The returned object must be released after use, by calling the [release] method. @@ -1011,12 +1035,12 @@ class PDDocument extends jni.JObject { ///@throws InvalidPasswordException If the password is incorrect. ///@throws IOException in case of a file reading or parsing error static PDDocument load$2( - jni.JObject file, - jni.JString password, + _$jni.JObject file, + _$jni.JString password, ) { - return _load$2(_class.reference.pointer, _id_load$2 as jni.JMethodIDPtr, + return _load$2(_class.reference.pointer, _id_load$2 as _$jni.JMethodIDPtr, file.reference.pointer, password.reference.pointer) - .object(const $PDDocumentType()); + .object(const $PDDocument$Type()); } static final _id_load$3 = _class.staticMethodId( @@ -1024,24 +1048,24 @@ class PDDocument extends jni.JObject { r'(Ljava/io/File;Ljava/lang/String;Lorg/apache/pdfbox/io/MemoryUsageSetting;)Lorg/apache/pdfbox/pdmodel/PDDocument;', ); - static final _load$3 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _load$3 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `static public org.apache.pdfbox.pdmodel.PDDocument load(java.io.File file, java.lang.String password, org.apache.pdfbox.io.MemoryUsageSetting memUsageSetting)` /// The returned object must be released after use, by calling the [release] method. @@ -1054,17 +1078,17 @@ class PDDocument extends jni.JObject { ///@throws InvalidPasswordException If the password is incorrect. ///@throws IOException in case of a file reading or parsing error static PDDocument load$3( - jni.JObject file, - jni.JString password, - jni.JObject memUsageSetting, + _$jni.JObject file, + _$jni.JString password, + _$jni.JObject memUsageSetting, ) { return _load$3( _class.reference.pointer, - _id_load$3 as jni.JMethodIDPtr, + _id_load$3 as _$jni.JMethodIDPtr, file.reference.pointer, password.reference.pointer, memUsageSetting.reference.pointer) - .object(const $PDDocumentType()); + .object(const $PDDocument$Type()); } static final _id_load$4 = _class.staticMethodId( @@ -1072,26 +1096,26 @@ class PDDocument extends jni.JObject { r'(Ljava/io/File;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;)Lorg/apache/pdfbox/pdmodel/PDDocument;', ); - static final _load$4 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _load$4 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `static public org.apache.pdfbox.pdmodel.PDDocument load(java.io.File file, java.lang.String password, java.io.InputStream keyStore, java.lang.String alias)` /// The returned object must be released after use, by calling the [release] method. @@ -1104,19 +1128,19 @@ class PDDocument extends jni.JObject { ///@return loaded document ///@throws IOException in case of a file reading or parsing error static PDDocument load$4( - jni.JObject file, - jni.JString password, - jni.JObject keyStore, - jni.JString alias, + _$jni.JObject file, + _$jni.JString password, + _$jni.JObject keyStore, + _$jni.JString alias, ) { return _load$4( _class.reference.pointer, - _id_load$4 as jni.JMethodIDPtr, + _id_load$4 as _$jni.JMethodIDPtr, file.reference.pointer, password.reference.pointer, keyStore.reference.pointer, alias.reference.pointer) - .object(const $PDDocumentType()); + .object(const $PDDocument$Type()); } static final _id_load$5 = _class.staticMethodId( @@ -1124,28 +1148,28 @@ class PDDocument extends jni.JObject { r'(Ljava/io/File;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;Lorg/apache/pdfbox/io/MemoryUsageSetting;)Lorg/apache/pdfbox/pdmodel/PDDocument;', ); - static final _load$5 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _load$5 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `static public org.apache.pdfbox.pdmodel.PDDocument load(java.io.File file, java.lang.String password, java.io.InputStream keyStore, java.lang.String alias, org.apache.pdfbox.io.MemoryUsageSetting memUsageSetting)` /// The returned object must be released after use, by calling the [release] method. @@ -1159,21 +1183,21 @@ class PDDocument extends jni.JObject { ///@return loaded document ///@throws IOException in case of a file reading or parsing error static PDDocument load$5( - jni.JObject file, - jni.JString password, - jni.JObject keyStore, - jni.JString alias, - jni.JObject memUsageSetting, + _$jni.JObject file, + _$jni.JString password, + _$jni.JObject keyStore, + _$jni.JString alias, + _$jni.JObject memUsageSetting, ) { return _load$5( _class.reference.pointer, - _id_load$5 as jni.JMethodIDPtr, + _id_load$5 as _$jni.JMethodIDPtr, file.reference.pointer, password.reference.pointer, keyStore.reference.pointer, alias.reference.pointer, memUsageSetting.reference.pointer) - .object(const $PDDocumentType()); + .object(const $PDDocument$Type()); } static final _id_load$6 = _class.staticMethodId( @@ -1181,16 +1205,16 @@ class PDDocument extends jni.JObject { r'(Ljava/io/InputStream;)Lorg/apache/pdfbox/pdmodel/PDDocument;', ); - static final _load$6 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _load$6 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `static public org.apache.pdfbox.pdmodel.PDDocument load(java.io.InputStream input)` /// The returned object must be released after use, by calling the [release] method. @@ -1202,11 +1226,11 @@ class PDDocument extends jni.JObject { ///@throws InvalidPasswordException If the PDF required a non-empty password. ///@throws IOException In case of a reading or parsing error. static PDDocument load$6( - jni.JObject input, + _$jni.JObject input, ) { - return _load$6(_class.reference.pointer, _id_load$6 as jni.JMethodIDPtr, + return _load$6(_class.reference.pointer, _id_load$6 as _$jni.JMethodIDPtr, input.reference.pointer) - .object(const $PDDocumentType()); + .object(const $PDDocument$Type()); } static final _id_load$7 = _class.staticMethodId( @@ -1214,19 +1238,22 @@ class PDDocument extends jni.JObject { r'(Ljava/io/InputStream;Lorg/apache/pdfbox/io/MemoryUsageSetting;)Lorg/apache/pdfbox/pdmodel/PDDocument;', ); - static final _load$7 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _load$7 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `static public org.apache.pdfbox.pdmodel.PDDocument load(java.io.InputStream input, org.apache.pdfbox.io.MemoryUsageSetting memUsageSetting)` /// The returned object must be released after use, by calling the [release] method. @@ -1239,12 +1266,12 @@ class PDDocument extends jni.JObject { ///@throws InvalidPasswordException If the PDF required a non-empty password. ///@throws IOException In case of a reading or parsing error. static PDDocument load$7( - jni.JObject input, - jni.JObject memUsageSetting, + _$jni.JObject input, + _$jni.JObject memUsageSetting, ) { - return _load$7(_class.reference.pointer, _id_load$7 as jni.JMethodIDPtr, + return _load$7(_class.reference.pointer, _id_load$7 as _$jni.JMethodIDPtr, input.reference.pointer, memUsageSetting.reference.pointer) - .object(const $PDDocumentType()); + .object(const $PDDocument$Type()); } static final _id_load$8 = _class.staticMethodId( @@ -1252,19 +1279,22 @@ class PDDocument extends jni.JObject { r'(Ljava/io/InputStream;Ljava/lang/String;)Lorg/apache/pdfbox/pdmodel/PDDocument;', ); - static final _load$8 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _load$8 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `static public org.apache.pdfbox.pdmodel.PDDocument load(java.io.InputStream input, java.lang.String password)` /// The returned object must be released after use, by calling the [release] method. @@ -1277,12 +1307,12 @@ class PDDocument extends jni.JObject { ///@throws InvalidPasswordException If the password is incorrect. ///@throws IOException In case of a reading or parsing error. static PDDocument load$8( - jni.JObject input, - jni.JString password, + _$jni.JObject input, + _$jni.JString password, ) { - return _load$8(_class.reference.pointer, _id_load$8 as jni.JMethodIDPtr, + return _load$8(_class.reference.pointer, _id_load$8 as _$jni.JMethodIDPtr, input.reference.pointer, password.reference.pointer) - .object(const $PDDocumentType()); + .object(const $PDDocument$Type()); } static final _id_load$9 = _class.staticMethodId( @@ -1290,26 +1320,26 @@ class PDDocument extends jni.JObject { r'(Ljava/io/InputStream;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;)Lorg/apache/pdfbox/pdmodel/PDDocument;', ); - static final _load$9 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _load$9 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `static public org.apache.pdfbox.pdmodel.PDDocument load(java.io.InputStream input, java.lang.String password, java.io.InputStream keyStore, java.lang.String alias)` /// The returned object must be released after use, by calling the [release] method. @@ -1323,19 +1353,19 @@ class PDDocument extends jni.JObject { ///@return loaded document ///@throws IOException In case of a reading or parsing error. static PDDocument load$9( - jni.JObject input, - jni.JString password, - jni.JObject keyStore, - jni.JString alias, + _$jni.JObject input, + _$jni.JString password, + _$jni.JObject keyStore, + _$jni.JString alias, ) { return _load$9( _class.reference.pointer, - _id_load$9 as jni.JMethodIDPtr, + _id_load$9 as _$jni.JMethodIDPtr, input.reference.pointer, password.reference.pointer, keyStore.reference.pointer, alias.reference.pointer) - .object(const $PDDocumentType()); + .object(const $PDDocument$Type()); } static final _id_load$10 = _class.staticMethodId( @@ -1343,24 +1373,24 @@ class PDDocument extends jni.JObject { r'(Ljava/io/InputStream;Ljava/lang/String;Lorg/apache/pdfbox/io/MemoryUsageSetting;)Lorg/apache/pdfbox/pdmodel/PDDocument;', ); - static final _load$10 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _load$10 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `static public org.apache.pdfbox.pdmodel.PDDocument load(java.io.InputStream input, java.lang.String password, org.apache.pdfbox.io.MemoryUsageSetting memUsageSetting)` /// The returned object must be released after use, by calling the [release] method. @@ -1374,17 +1404,17 @@ class PDDocument extends jni.JObject { ///@throws InvalidPasswordException If the password is incorrect. ///@throws IOException In case of a reading or parsing error. static PDDocument load$10( - jni.JObject input, - jni.JString password, - jni.JObject memUsageSetting, + _$jni.JObject input, + _$jni.JString password, + _$jni.JObject memUsageSetting, ) { return _load$10( _class.reference.pointer, - _id_load$10 as jni.JMethodIDPtr, + _id_load$10 as _$jni.JMethodIDPtr, input.reference.pointer, password.reference.pointer, memUsageSetting.reference.pointer) - .object(const $PDDocumentType()); + .object(const $PDDocument$Type()); } static final _id_load$11 = _class.staticMethodId( @@ -1392,28 +1422,28 @@ class PDDocument extends jni.JObject { r'(Ljava/io/InputStream;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;Lorg/apache/pdfbox/io/MemoryUsageSetting;)Lorg/apache/pdfbox/pdmodel/PDDocument;', ); - static final _load$11 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _load$11 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `static public org.apache.pdfbox.pdmodel.PDDocument load(java.io.InputStream input, java.lang.String password, java.io.InputStream keyStore, java.lang.String alias, org.apache.pdfbox.io.MemoryUsageSetting memUsageSetting)` /// The returned object must be released after use, by calling the [release] method. @@ -1429,21 +1459,21 @@ class PDDocument extends jni.JObject { ///@throws InvalidPasswordException If the password is incorrect. ///@throws IOException In case of a reading or parsing error. static PDDocument load$11( - jni.JObject input, - jni.JString password, - jni.JObject keyStore, - jni.JString alias, - jni.JObject memUsageSetting, + _$jni.JObject input, + _$jni.JString password, + _$jni.JObject keyStore, + _$jni.JString alias, + _$jni.JObject memUsageSetting, ) { return _load$11( _class.reference.pointer, - _id_load$11 as jni.JMethodIDPtr, + _id_load$11 as _$jni.JMethodIDPtr, input.reference.pointer, password.reference.pointer, keyStore.reference.pointer, alias.reference.pointer, memUsageSetting.reference.pointer) - .object(const $PDDocumentType()); + .object(const $PDDocument$Type()); } static final _id_load$12 = _class.staticMethodId( @@ -1451,16 +1481,16 @@ class PDDocument extends jni.JObject { r'([B)Lorg/apache/pdfbox/pdmodel/PDDocument;', ); - static final _load$12 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _load$12 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `static public org.apache.pdfbox.pdmodel.PDDocument load(byte[] input)` /// The returned object must be released after use, by calling the [release] method. @@ -1471,11 +1501,11 @@ class PDDocument extends jni.JObject { ///@throws InvalidPasswordException If the PDF required a non-empty password. ///@throws IOException In case of a reading or parsing error. static PDDocument load$12( - jni.JArray input, + _$jni.JArray<_$jni.jbyte> input, ) { - return _load$12(_class.reference.pointer, _id_load$12 as jni.JMethodIDPtr, + return _load$12(_class.reference.pointer, _id_load$12 as _$jni.JMethodIDPtr, input.reference.pointer) - .object(const $PDDocumentType()); + .object(const $PDDocument$Type()); } static final _id_load$13 = _class.staticMethodId( @@ -1483,19 +1513,22 @@ class PDDocument extends jni.JObject { r'([BLjava/lang/String;)Lorg/apache/pdfbox/pdmodel/PDDocument;', ); - static final _load$13 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _load$13 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `static public org.apache.pdfbox.pdmodel.PDDocument load(byte[] input, java.lang.String password)` /// The returned object must be released after use, by calling the [release] method. @@ -1507,12 +1540,12 @@ class PDDocument extends jni.JObject { ///@throws InvalidPasswordException If the password is incorrect. ///@throws IOException In case of a reading or parsing error. static PDDocument load$13( - jni.JArray input, - jni.JString password, + _$jni.JArray<_$jni.jbyte> input, + _$jni.JString password, ) { - return _load$13(_class.reference.pointer, _id_load$13 as jni.JMethodIDPtr, + return _load$13(_class.reference.pointer, _id_load$13 as _$jni.JMethodIDPtr, input.reference.pointer, password.reference.pointer) - .object(const $PDDocumentType()); + .object(const $PDDocument$Type()); } static final _id_load$14 = _class.staticMethodId( @@ -1520,26 +1553,26 @@ class PDDocument extends jni.JObject { r'([BLjava/lang/String;Ljava/io/InputStream;Ljava/lang/String;)Lorg/apache/pdfbox/pdmodel/PDDocument;', ); - static final _load$14 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _load$14 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `static public org.apache.pdfbox.pdmodel.PDDocument load(byte[] input, java.lang.String password, java.io.InputStream keyStore, java.lang.String alias)` /// The returned object must be released after use, by calling the [release] method. @@ -1553,19 +1586,19 @@ class PDDocument extends jni.JObject { ///@throws InvalidPasswordException If the password is incorrect. ///@throws IOException In case of a reading or parsing error. static PDDocument load$14( - jni.JArray input, - jni.JString password, - jni.JObject keyStore, - jni.JString alias, + _$jni.JArray<_$jni.jbyte> input, + _$jni.JString password, + _$jni.JObject keyStore, + _$jni.JString alias, ) { return _load$14( _class.reference.pointer, - _id_load$14 as jni.JMethodIDPtr, + _id_load$14 as _$jni.JMethodIDPtr, input.reference.pointer, password.reference.pointer, keyStore.reference.pointer, alias.reference.pointer) - .object(const $PDDocumentType()); + .object(const $PDDocument$Type()); } static final _id_load$15 = _class.staticMethodId( @@ -1573,28 +1606,28 @@ class PDDocument extends jni.JObject { r'([BLjava/lang/String;Ljava/io/InputStream;Ljava/lang/String;Lorg/apache/pdfbox/io/MemoryUsageSetting;)Lorg/apache/pdfbox/pdmodel/PDDocument;', ); - static final _load$15 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _load$15 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `static public org.apache.pdfbox.pdmodel.PDDocument load(byte[] input, java.lang.String password, java.io.InputStream keyStore, java.lang.String alias, org.apache.pdfbox.io.MemoryUsageSetting memUsageSetting)` /// The returned object must be released after use, by calling the [release] method. @@ -1609,21 +1642,21 @@ class PDDocument extends jni.JObject { ///@throws InvalidPasswordException If the password is incorrect. ///@throws IOException In case of a reading or parsing error. static PDDocument load$15( - jni.JArray input, - jni.JString password, - jni.JObject keyStore, - jni.JString alias, - jni.JObject memUsageSetting, + _$jni.JArray<_$jni.jbyte> input, + _$jni.JString password, + _$jni.JObject keyStore, + _$jni.JString alias, + _$jni.JObject memUsageSetting, ) { return _load$15( _class.reference.pointer, - _id_load$15 as jni.JMethodIDPtr, + _id_load$15 as _$jni.JMethodIDPtr, input.reference.pointer, password.reference.pointer, keyStore.reference.pointer, alias.reference.pointer, memUsageSetting.reference.pointer) - .object(const $PDDocumentType()); + .object(const $PDDocument$Type()); } static final _id_save = _class.instanceMethodId( @@ -1631,16 +1664,16 @@ class PDDocument extends jni.JObject { r'(Ljava/lang/String;)V', ); - static final _save = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _save = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void save(java.lang.String fileName)` /// @@ -1652,9 +1685,9 @@ class PDDocument extends jni.JObject { ///@param fileName The file to save as. ///@throws IOException if the output could not be written void save( - jni.JString fileName, + _$jni.JString fileName, ) { - _save(reference.pointer, _id_save as jni.JMethodIDPtr, + _save(reference.pointer, _id_save as _$jni.JMethodIDPtr, fileName.reference.pointer) .check(); } @@ -1664,16 +1697,16 @@ class PDDocument extends jni.JObject { r'(Ljava/io/File;)V', ); - static final _save$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _save$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void save(java.io.File file)` /// @@ -1685,9 +1718,9 @@ class PDDocument extends jni.JObject { ///@param file The file to save as. ///@throws IOException if the output could not be written void save$1( - jni.JObject file, + _$jni.JObject file, ) { - _save$1(reference.pointer, _id_save$1 as jni.JMethodIDPtr, + _save$1(reference.pointer, _id_save$1 as _$jni.JMethodIDPtr, file.reference.pointer) .check(); } @@ -1697,16 +1730,16 @@ class PDDocument extends jni.JObject { r'(Ljava/io/OutputStream;)V', ); - static final _save$2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _save$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void save(java.io.OutputStream output)` /// @@ -1719,9 +1752,9 @@ class PDDocument extends jni.JObject { /// it in a java.io.BufferedOutputStream, unless it is already buffered. ///@throws IOException if the output could not be written void save$2( - jni.JObject output, + _$jni.JObject output, ) { - _save$2(reference.pointer, _id_save$2 as jni.JMethodIDPtr, + _save$2(reference.pointer, _id_save$2 as _$jni.JMethodIDPtr, output.reference.pointer) .check(); } @@ -1731,16 +1764,16 @@ class PDDocument extends jni.JObject { r'(Ljava/io/OutputStream;)V', ); - static final _saveIncremental = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _saveIncremental = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void saveIncremental(java.io.OutputStream output)` /// @@ -1758,10 +1791,10 @@ class PDDocument extends jni.JObject { ///@throws IOException if the output could not be written ///@throws IllegalStateException if the document was not loaded from a file or a stream. void saveIncremental( - jni.JObject output, + _$jni.JObject output, ) { - _saveIncremental(reference.pointer, _id_saveIncremental as jni.JMethodIDPtr, - output.reference.pointer) + _saveIncremental(reference.pointer, + _id_saveIncremental as _$jni.JMethodIDPtr, output.reference.pointer) .check(); } @@ -1770,19 +1803,22 @@ class PDDocument extends jni.JObject { r'(Ljava/io/OutputStream;Ljava/util/Set;)V', ); - static final _saveIncremental$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _saveIncremental$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public void saveIncremental(java.io.OutputStream output, java.util.Set objectsToWrite)` /// @@ -1805,12 +1841,12 @@ class PDDocument extends jni.JObject { ///@throws IOException if the output could not be written ///@throws IllegalStateException if the document was not loaded from a file or a stream. void saveIncremental$1( - jni.JObject output, - jni.JSet objectsToWrite, + _$jni.JObject output, + _$jni.JSet<_$jni.JObject> objectsToWrite, ) { _saveIncremental$1( reference.pointer, - _id_saveIncremental$1 as jni.JMethodIDPtr, + _id_saveIncremental$1 as _$jni.JMethodIDPtr, output.reference.pointer, objectsToWrite.reference.pointer) .check(); @@ -1822,16 +1858,16 @@ class PDDocument extends jni.JObject { ); static final _saveIncrementalForExternalSigning = - ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public org.apache.pdfbox.pdmodel.interactive.digitalsignature.ExternalSigningSupport saveIncrementalForExternalSigning(java.io.OutputStream output)` /// The returned object must be released after use, by calling the [release] method. @@ -1873,14 +1909,14 @@ class PDDocument extends jni.JObject { ///@throws IOException if the output could not be written ///@throws IllegalStateException if the document was not loaded from a file or a stream or /// signature options were not set. - jni.JObject saveIncrementalForExternalSigning( - jni.JObject output, + _$jni.JObject saveIncrementalForExternalSigning( + _$jni.JObject output, ) { return _saveIncrementalForExternalSigning( reference.pointer, - _id_saveIncrementalForExternalSigning as jni.JMethodIDPtr, + _id_saveIncrementalForExternalSigning as _$jni.JMethodIDPtr, output.reference.pointer) - .object(const jni.JObjectType()); + .object(const _$jni.JObjectType()); } static final _id_getPage = _class.instanceMethodId( @@ -1888,13 +1924,15 @@ class PDDocument extends jni.JObject { r'(I)Lorg/apache/pdfbox/pdmodel/PDPage;', ); - static final _getPage = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallObjectMethod') + static final _getPage = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public org.apache.pdfbox.pdmodel.PDPage getPage(int pageIndex)` /// The returned object must be released after use, by calling the [release] method. @@ -1906,12 +1944,12 @@ class PDDocument extends jni.JObject { /// PDDocument\#getPages() instead. ///@param pageIndex the 0-based page index ///@return the page at the given index. - jni.JObject getPage( + _$jni.JObject getPage( int pageIndex, ) { return _getPage( - reference.pointer, _id_getPage as jni.JMethodIDPtr, pageIndex) - .object(const jni.JObjectType()); + reference.pointer, _id_getPage as _$jni.JMethodIDPtr, pageIndex) + .object(const _$jni.JObjectType()); } static final _id_getPages = _class.instanceMethodId( @@ -1919,16 +1957,16 @@ class PDDocument extends jni.JObject { r'()Lorg/apache/pdfbox/pdmodel/PDPageTree;', ); - static final _getPages = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getPages = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public org.apache.pdfbox.pdmodel.PDPageTree getPages()` @@ -1936,9 +1974,9 @@ class PDDocument extends jni.JObject { /// /// Returns the page tree. ///@return the page tree - jni.JObject getPages() { - return _getPages(reference.pointer, _id_getPages as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + _$jni.JObject getPages() { + return _getPages(reference.pointer, _id_getPages as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_getNumberOfPages = _class.instanceMethodId( @@ -1946,16 +1984,16 @@ class PDDocument extends jni.JObject { r'()I', ); - static final _getNumberOfPages = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getNumberOfPages = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public int getNumberOfPages()` @@ -1964,7 +2002,7 @@ class PDDocument extends jni.JObject { ///@return The total number of pages in the PDF document. int getNumberOfPages() { return _getNumberOfPages( - reference.pointer, _id_getNumberOfPages as jni.JMethodIDPtr) + reference.pointer, _id_getNumberOfPages as _$jni.JMethodIDPtr) .integer; } @@ -1973,16 +2011,16 @@ class PDDocument extends jni.JObject { r'()V', ); - static final _close = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _close = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void close()` @@ -1990,7 +2028,7 @@ class PDDocument extends jni.JObject { /// This will close the underlying COSDocument object. ///@throws IOException If there is an error releasing resources. void close() { - _close(reference.pointer, _id_close as jni.JMethodIDPtr).check(); + _close(reference.pointer, _id_close as _$jni.JMethodIDPtr).check(); } static final _id_protect = _class.instanceMethodId( @@ -1998,16 +2036,16 @@ class PDDocument extends jni.JObject { r'(Lorg/apache/pdfbox/pdmodel/encryption/ProtectionPolicy;)V', ); - static final _protect = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _protect = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void protect(org.apache.pdfbox.pdmodel.encryption.ProtectionPolicy policy)` /// @@ -2022,9 +2060,9 @@ class PDDocument extends jni.JObject { ///@param policy The protection policy. ///@throws IOException if there isn't any suitable security handler. void protect( - jni.JObject policy, + _$jni.JObject policy, ) { - _protect(reference.pointer, _id_protect as jni.JMethodIDPtr, + _protect(reference.pointer, _id_protect as _$jni.JMethodIDPtr, policy.reference.pointer) .check(); } @@ -2034,17 +2072,18 @@ class PDDocument extends jni.JObject { r'()Lorg/apache/pdfbox/pdmodel/encryption/AccessPermission;', ); - static final _getCurrentAccessPermission = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + static final _getCurrentAccessPermission = + _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); /// from: `public org.apache.pdfbox.pdmodel.encryption.AccessPermission getCurrentAccessPermission()` /// The returned object must be released after use, by calling the [release] method. @@ -2054,10 +2093,10 @@ class PDDocument extends jni.JObject { /// only mode so that permissions cannot be changed. Methods providing access to content should rely on this object /// to verify if the current user is allowed to proceed. ///@return the access permissions for the current user on the document. - jni.JObject getCurrentAccessPermission() { + _$jni.JObject getCurrentAccessPermission() { return _getCurrentAccessPermission(reference.pointer, - _id_getCurrentAccessPermission as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + _id_getCurrentAccessPermission as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_isAllSecurityToBeRemoved = _class.instanceMethodId( @@ -2065,16 +2104,16 @@ class PDDocument extends jni.JObject { r'()Z', ); - static final _isAllSecurityToBeRemoved = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _isAllSecurityToBeRemoved = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public boolean isAllSecurityToBeRemoved()` @@ -2082,8 +2121,8 @@ class PDDocument extends jni.JObject { /// Indicates if all security is removed or not when writing the pdf. ///@return returns true if all security shall be removed otherwise false bool isAllSecurityToBeRemoved() { - return _isAllSecurityToBeRemoved( - reference.pointer, _id_isAllSecurityToBeRemoved as jni.JMethodIDPtr) + return _isAllSecurityToBeRemoved(reference.pointer, + _id_isAllSecurityToBeRemoved as _$jni.JMethodIDPtr) .boolean; } @@ -2092,15 +2131,15 @@ class PDDocument extends jni.JObject { r'(Z)V', ); - static final _setAllSecurityToBeRemoved = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallVoidMethod') + static final _setAllSecurityToBeRemoved = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public void setAllSecurityToBeRemoved(boolean removeAllSecurity)` /// @@ -2111,7 +2150,7 @@ class PDDocument extends jni.JObject { ) { _setAllSecurityToBeRemoved( reference.pointer, - _id_setAllSecurityToBeRemoved as jni.JMethodIDPtr, + _id_setAllSecurityToBeRemoved as _$jni.JMethodIDPtr, removeAllSecurity ? 1 : 0) .check(); } @@ -2121,16 +2160,16 @@ class PDDocument extends jni.JObject { r'()Ljava/lang/Long;', ); - static final _getDocumentId = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getDocumentId = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.Long getDocumentId()` @@ -2138,10 +2177,10 @@ class PDDocument extends jni.JObject { /// /// Provides the document ID. ///@return the document ID - jni.JLong getDocumentId() { + _$jni.JLong getDocumentId() { return _getDocumentId( - reference.pointer, _id_getDocumentId as jni.JMethodIDPtr) - .object(const jni.JLongType()); + reference.pointer, _id_getDocumentId as _$jni.JMethodIDPtr) + .object(const _$jni.JLongType()); } static final _id_setDocumentId = _class.instanceMethodId( @@ -2149,25 +2188,25 @@ class PDDocument extends jni.JObject { r'(Ljava/lang/Long;)V', ); - static final _setDocumentId = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setDocumentId = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setDocumentId(java.lang.Long docId)` /// /// Sets the document ID to the given value. ///@param docId the new document ID void setDocumentId( - jni.JLong docId, + _$jni.JLong docId, ) { - _setDocumentId(reference.pointer, _id_setDocumentId as jni.JMethodIDPtr, + _setDocumentId(reference.pointer, _id_setDocumentId as _$jni.JMethodIDPtr, docId.reference.pointer) .check(); } @@ -2177,16 +2216,16 @@ class PDDocument extends jni.JObject { r'()F', ); - static final _getVersion = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getVersion = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallFloatMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public float getVersion()` @@ -2194,7 +2233,7 @@ class PDDocument extends jni.JObject { /// Returns the PDF specification version this document conforms to. ///@return the PDF version (e.g. 1.4f) double getVersion() { - return _getVersion(reference.pointer, _id_getVersion as jni.JMethodIDPtr) + return _getVersion(reference.pointer, _id_getVersion as _$jni.JMethodIDPtr) .float; } @@ -2203,15 +2242,15 @@ class PDDocument extends jni.JObject { r'(F)V', ); - static final _setVersion = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Double,)>)>>('globalEnv_CallVoidMethod') + static final _setVersion = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Double,)>)>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, jni.JMethodIDPtr, double)>(); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, double)>(); /// from: `public void setVersion(float newVersion)` /// @@ -2221,7 +2260,7 @@ class PDDocument extends jni.JObject { double newVersion, ) { _setVersion( - reference.pointer, _id_setVersion as jni.JMethodIDPtr, newVersion) + reference.pointer, _id_setVersion as _$jni.JMethodIDPtr, newVersion) .check(); } @@ -2230,16 +2269,16 @@ class PDDocument extends jni.JObject { r'()Lorg/apache/pdfbox/pdmodel/ResourceCache;', ); - static final _getResourceCache = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getResourceCache = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public org.apache.pdfbox.pdmodel.ResourceCache getResourceCache()` @@ -2247,10 +2286,10 @@ class PDDocument extends jni.JObject { /// /// Returns the resource cache associated with this document, or null if there is none. ///@return the resource cache or null. - jni.JObject getResourceCache() { + _$jni.JObject getResourceCache() { return _getResourceCache( - reference.pointer, _id_getResourceCache as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + reference.pointer, _id_getResourceCache as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_setResourceCache = _class.instanceMethodId( @@ -2258,53 +2297,58 @@ class PDDocument extends jni.JObject { r'(Lorg/apache/pdfbox/pdmodel/ResourceCache;)V', ); - static final _setResourceCache = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setResourceCache = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setResourceCache(org.apache.pdfbox.pdmodel.ResourceCache resourceCache)` /// /// Sets the resource cache associated with this document. ///@param resourceCache A resource cache, or null. void setResourceCache( - jni.JObject resourceCache, + _$jni.JObject resourceCache, ) { _setResourceCache( reference.pointer, - _id_setResourceCache as jni.JMethodIDPtr, + _id_setResourceCache as _$jni.JMethodIDPtr, resourceCache.reference.pointer) .check(); } } -final class $PDDocumentType extends jni.JObjType { - const $PDDocumentType(); +final class $PDDocument$Type extends _$jni.JObjType { + @_$jni.internal + const $PDDocument$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lorg/apache/pdfbox/pdmodel/PDDocument;'; - @override - PDDocument fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + PDDocument fromReference(_$jni.JReference reference) => PDDocument.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($PDDocumentType).hashCode; + @_$core.override + int get hashCode => ($PDDocument$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($PDDocumentType) && other is $PDDocumentType; + return other.runtimeType == ($PDDocument$Type) && other is $PDDocument$Type; } } diff --git a/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/pdmodel/PDDocumentInformation.dart b/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/pdmodel/PDDocumentInformation.dart index 784b16f3b..8696ca3bc 100644 --- a/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/pdmodel/PDDocumentInformation.dart +++ b/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/pdmodel/PDDocumentInformation.dart @@ -27,7 +27,9 @@ // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter // ignore_for_file: invalid_use_of_internal_member +// ignore_for_file: library_prefixes // ignore_for_file: lines_longer_than_80_chars +// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_local_identifiers // ignore_for_file: non_constant_identifier_names // ignore_for_file: only_throw_errors @@ -43,11 +45,11 @@ // ignore_for_file: unused_shown_name // ignore_for_file: use_super_parameters -import 'dart:ffi' as ffi; -import 'dart:isolate' show RawReceivePort, ReceivePort; +import 'dart:core' show Object, String, bool, double, int; +import 'dart:core' as _$core; -import 'package:jni/_internal.dart'; -import 'package:jni/jni.dart' as jni; +import 'package:jni/_internal.dart' as _$jni; +import 'package:jni/jni.dart' as _$jni; /// from: `org.apache.pdfbox.pdmodel.PDDocumentInformation` /// @@ -56,33 +58,36 @@ import 'package:jni/jni.dart' as jni; /// method then it will clear the value. ///@author Ben Litchfield ///@author Gerardo Ortiz -class PDDocumentInformation extends jni.JObject { - @override - late final jni.JObjType $type = type; +class PDDocumentInformation extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal PDDocumentInformation.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); static final _class = - jni.JClass.forName(r'org/apache/pdfbox/pdmodel/PDDocumentInformation'); + _$jni.JClass.forName(r'org/apache/pdfbox/pdmodel/PDDocumentInformation'); /// The type which includes information such as the signature of this class. - static const type = $PDDocumentInformationType(); + static const type = $PDDocumentInformation$Type(); static final _id_new$ = _class.constructorId( r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` @@ -91,7 +96,7 @@ class PDDocumentInformation extends jni.JObject { /// Default Constructor. factory PDDocumentInformation() { return PDDocumentInformation.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } @@ -99,16 +104,16 @@ class PDDocumentInformation extends jni.JObject { r'(Lorg/apache/pdfbox/cos/COSDictionary;)V', ); - static final _new$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _new$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_NewObject') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void (org.apache.pdfbox.cos.COSDictionary dic)` /// The returned object must be released after use, by calling the [release] method. @@ -116,10 +121,10 @@ class PDDocumentInformation extends jni.JObject { /// Constructor that is used for a preexisting dictionary. ///@param dic The underlying dictionary. factory PDDocumentInformation.new$1( - jni.JObject dic, + _$jni.JObject dic, ) { return PDDocumentInformation.fromReference(_new$1(_class.reference.pointer, - _id_new$1 as jni.JMethodIDPtr, dic.reference.pointer) + _id_new$1 as _$jni.JMethodIDPtr, dic.reference.pointer) .reference); } @@ -128,16 +133,16 @@ class PDDocumentInformation extends jni.JObject { r'()Lorg/apache/pdfbox/cos/COSDictionary;', ); - static final _getCOSObject = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getCOSObject = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public org.apache.pdfbox.cos.COSDictionary getCOSObject()` @@ -145,10 +150,10 @@ class PDDocumentInformation extends jni.JObject { /// /// This will get the underlying dictionary that this object wraps. ///@return The underlying info dictionary. - jni.JObject getCOSObject() { + _$jni.JObject getCOSObject() { return _getCOSObject( - reference.pointer, _id_getCOSObject as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + reference.pointer, _id_getCOSObject as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_getPropertyStringValue = _class.instanceMethodId( @@ -156,16 +161,16 @@ class PDDocumentInformation extends jni.JObject { r'(Ljava/lang/String;)Ljava/lang/Object;', ); - static final _getPropertyStringValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _getPropertyStringValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public java.lang.Object getPropertyStringValue(java.lang.String propertyKey)` /// The returned object must be released after use, by calling the [release] method. @@ -178,14 +183,14 @@ class PDDocumentInformation extends jni.JObject { /// ///@param propertyKey the dictionaries key ///@return the properties value - jni.JObject getPropertyStringValue( - jni.JString propertyKey, + _$jni.JObject getPropertyStringValue( + _$jni.JString propertyKey, ) { return _getPropertyStringValue( reference.pointer, - _id_getPropertyStringValue as jni.JMethodIDPtr, + _id_getPropertyStringValue as _$jni.JMethodIDPtr, propertyKey.reference.pointer) - .object(const jni.JObjectType()); + .object(const _$jni.JObjectType()); } static final _id_getTitle = _class.instanceMethodId( @@ -193,16 +198,16 @@ class PDDocumentInformation extends jni.JObject { r'()Ljava/lang/String;', ); - static final _getTitle = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getTitle = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.String getTitle()` @@ -210,9 +215,9 @@ class PDDocumentInformation extends jni.JObject { /// /// This will get the title of the document. This will return null if no title exists. ///@return The title of the document. - jni.JString getTitle() { - return _getTitle(reference.pointer, _id_getTitle as jni.JMethodIDPtr) - .object(const jni.JStringType()); + _$jni.JString getTitle() { + return _getTitle(reference.pointer, _id_getTitle as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_setTitle = _class.instanceMethodId( @@ -220,25 +225,25 @@ class PDDocumentInformation extends jni.JObject { r'(Ljava/lang/String;)V', ); - static final _setTitle = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setTitle = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setTitle(java.lang.String title)` /// /// This will set the title of the document. ///@param title The new title for the document. void setTitle( - jni.JString title, + _$jni.JString title, ) { - _setTitle(reference.pointer, _id_setTitle as jni.JMethodIDPtr, + _setTitle(reference.pointer, _id_setTitle as _$jni.JMethodIDPtr, title.reference.pointer) .check(); } @@ -248,16 +253,16 @@ class PDDocumentInformation extends jni.JObject { r'()Ljava/lang/String;', ); - static final _getAuthor = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getAuthor = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.String getAuthor()` @@ -265,9 +270,9 @@ class PDDocumentInformation extends jni.JObject { /// /// This will get the author of the document. This will return null if no author exists. ///@return The author of the document. - jni.JString getAuthor() { - return _getAuthor(reference.pointer, _id_getAuthor as jni.JMethodIDPtr) - .object(const jni.JStringType()); + _$jni.JString getAuthor() { + return _getAuthor(reference.pointer, _id_getAuthor as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_setAuthor = _class.instanceMethodId( @@ -275,25 +280,25 @@ class PDDocumentInformation extends jni.JObject { r'(Ljava/lang/String;)V', ); - static final _setAuthor = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setAuthor = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setAuthor(java.lang.String author)` /// /// This will set the author of the document. ///@param author The new author for the document. void setAuthor( - jni.JString author, + _$jni.JString author, ) { - _setAuthor(reference.pointer, _id_setAuthor as jni.JMethodIDPtr, + _setAuthor(reference.pointer, _id_setAuthor as _$jni.JMethodIDPtr, author.reference.pointer) .check(); } @@ -303,16 +308,16 @@ class PDDocumentInformation extends jni.JObject { r'()Ljava/lang/String;', ); - static final _getSubject = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getSubject = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.String getSubject()` @@ -320,9 +325,9 @@ class PDDocumentInformation extends jni.JObject { /// /// This will get the subject of the document. This will return null if no subject exists. ///@return The subject of the document. - jni.JString getSubject() { - return _getSubject(reference.pointer, _id_getSubject as jni.JMethodIDPtr) - .object(const jni.JStringType()); + _$jni.JString getSubject() { + return _getSubject(reference.pointer, _id_getSubject as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_setSubject = _class.instanceMethodId( @@ -330,25 +335,25 @@ class PDDocumentInformation extends jni.JObject { r'(Ljava/lang/String;)V', ); - static final _setSubject = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setSubject = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setSubject(java.lang.String subject)` /// /// This will set the subject of the document. ///@param subject The new subject for the document. void setSubject( - jni.JString subject, + _$jni.JString subject, ) { - _setSubject(reference.pointer, _id_setSubject as jni.JMethodIDPtr, + _setSubject(reference.pointer, _id_setSubject as _$jni.JMethodIDPtr, subject.reference.pointer) .check(); } @@ -358,16 +363,16 @@ class PDDocumentInformation extends jni.JObject { r'()Ljava/lang/String;', ); - static final _getKeywords = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getKeywords = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.String getKeywords()` @@ -375,9 +380,10 @@ class PDDocumentInformation extends jni.JObject { /// /// This will get the keywords of the document. This will return null if no keywords exists. ///@return The keywords of the document. - jni.JString getKeywords() { - return _getKeywords(reference.pointer, _id_getKeywords as jni.JMethodIDPtr) - .object(const jni.JStringType()); + _$jni.JString getKeywords() { + return _getKeywords( + reference.pointer, _id_getKeywords as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_setKeywords = _class.instanceMethodId( @@ -385,25 +391,25 @@ class PDDocumentInformation extends jni.JObject { r'(Ljava/lang/String;)V', ); - static final _setKeywords = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setKeywords = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setKeywords(java.lang.String keywords)` /// /// This will set the keywords of the document. ///@param keywords The new keywords for the document. void setKeywords( - jni.JString keywords, + _$jni.JString keywords, ) { - _setKeywords(reference.pointer, _id_setKeywords as jni.JMethodIDPtr, + _setKeywords(reference.pointer, _id_setKeywords as _$jni.JMethodIDPtr, keywords.reference.pointer) .check(); } @@ -413,16 +419,16 @@ class PDDocumentInformation extends jni.JObject { r'()Ljava/lang/String;', ); - static final _getCreator = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getCreator = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.String getCreator()` @@ -430,9 +436,9 @@ class PDDocumentInformation extends jni.JObject { /// /// This will get the creator of the document. This will return null if no creator exists. ///@return The creator of the document. - jni.JString getCreator() { - return _getCreator(reference.pointer, _id_getCreator as jni.JMethodIDPtr) - .object(const jni.JStringType()); + _$jni.JString getCreator() { + return _getCreator(reference.pointer, _id_getCreator as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_setCreator = _class.instanceMethodId( @@ -440,25 +446,25 @@ class PDDocumentInformation extends jni.JObject { r'(Ljava/lang/String;)V', ); - static final _setCreator = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setCreator = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setCreator(java.lang.String creator)` /// /// This will set the creator of the document. ///@param creator The new creator for the document. void setCreator( - jni.JString creator, + _$jni.JString creator, ) { - _setCreator(reference.pointer, _id_setCreator as jni.JMethodIDPtr, + _setCreator(reference.pointer, _id_setCreator as _$jni.JMethodIDPtr, creator.reference.pointer) .check(); } @@ -468,16 +474,16 @@ class PDDocumentInformation extends jni.JObject { r'()Ljava/lang/String;', ); - static final _getProducer = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getProducer = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.String getProducer()` @@ -485,9 +491,10 @@ class PDDocumentInformation extends jni.JObject { /// /// This will get the producer of the document. This will return null if no producer exists. ///@return The producer of the document. - jni.JString getProducer() { - return _getProducer(reference.pointer, _id_getProducer as jni.JMethodIDPtr) - .object(const jni.JStringType()); + _$jni.JString getProducer() { + return _getProducer( + reference.pointer, _id_getProducer as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_setProducer = _class.instanceMethodId( @@ -495,25 +502,25 @@ class PDDocumentInformation extends jni.JObject { r'(Ljava/lang/String;)V', ); - static final _setProducer = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setProducer = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setProducer(java.lang.String producer)` /// /// This will set the producer of the document. ///@param producer The new producer for the document. void setProducer( - jni.JString producer, + _$jni.JString producer, ) { - _setProducer(reference.pointer, _id_setProducer as jni.JMethodIDPtr, + _setProducer(reference.pointer, _id_setProducer as _$jni.JMethodIDPtr, producer.reference.pointer) .check(); } @@ -523,16 +530,16 @@ class PDDocumentInformation extends jni.JObject { r'()Ljava/util/Calendar;', ); - static final _getCreationDate = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getCreationDate = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.util.Calendar getCreationDate()` @@ -540,10 +547,10 @@ class PDDocumentInformation extends jni.JObject { /// /// This will get the creation date of the document. This will return null if no creation date exists. ///@return The creation date of the document. - jni.JObject getCreationDate() { + _$jni.JObject getCreationDate() { return _getCreationDate( - reference.pointer, _id_getCreationDate as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + reference.pointer, _id_getCreationDate as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_setCreationDate = _class.instanceMethodId( @@ -551,26 +558,26 @@ class PDDocumentInformation extends jni.JObject { r'(Ljava/util/Calendar;)V', ); - static final _setCreationDate = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setCreationDate = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setCreationDate(java.util.Calendar date)` /// /// This will set the creation date of the document. ///@param date The new creation date for the document. void setCreationDate( - jni.JObject date, + _$jni.JObject date, ) { - _setCreationDate(reference.pointer, _id_setCreationDate as jni.JMethodIDPtr, - date.reference.pointer) + _setCreationDate(reference.pointer, + _id_setCreationDate as _$jni.JMethodIDPtr, date.reference.pointer) .check(); } @@ -579,16 +586,16 @@ class PDDocumentInformation extends jni.JObject { r'()Ljava/util/Calendar;', ); - static final _getModificationDate = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getModificationDate = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.util.Calendar getModificationDate()` @@ -596,10 +603,10 @@ class PDDocumentInformation extends jni.JObject { /// /// This will get the modification date of the document. This will return null if no modification date exists. ///@return The modification date of the document. - jni.JObject getModificationDate() { + _$jni.JObject getModificationDate() { return _getModificationDate( - reference.pointer, _id_getModificationDate as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + reference.pointer, _id_getModificationDate as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_setModificationDate = _class.instanceMethodId( @@ -607,26 +614,28 @@ class PDDocumentInformation extends jni.JObject { r'(Ljava/util/Calendar;)V', ); - static final _setModificationDate = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setModificationDate = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setModificationDate(java.util.Calendar date)` /// /// This will set the modification date of the document. ///@param date The new modification date for the document. void setModificationDate( - jni.JObject date, + _$jni.JObject date, ) { - _setModificationDate(reference.pointer, - _id_setModificationDate as jni.JMethodIDPtr, date.reference.pointer) + _setModificationDate( + reference.pointer, + _id_setModificationDate as _$jni.JMethodIDPtr, + date.reference.pointer) .check(); } @@ -635,16 +644,16 @@ class PDDocumentInformation extends jni.JObject { r'()Ljava/lang/String;', ); - static final _getTrapped = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getTrapped = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.String getTrapped()` @@ -653,9 +662,9 @@ class PDDocumentInformation extends jni.JObject { /// This will get the trapped value for the document. /// This will return null if one is not found. ///@return The trapped value for the document. - jni.JString getTrapped() { - return _getTrapped(reference.pointer, _id_getTrapped as jni.JMethodIDPtr) - .object(const jni.JStringType()); + _$jni.JString getTrapped() { + return _getTrapped(reference.pointer, _id_getTrapped as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_getMetadataKeys = _class.instanceMethodId( @@ -663,16 +672,16 @@ class PDDocumentInformation extends jni.JObject { r'()Ljava/util/Set;', ); - static final _getMetadataKeys = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getMetadataKeys = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.util.Set getMetadataKeys()` @@ -681,10 +690,10 @@ class PDDocumentInformation extends jni.JObject { /// This will get the keys of all metadata information fields for the document. ///@return all metadata key strings. ///@since Apache PDFBox 1.3.0 - jni.JSet getMetadataKeys() { + _$jni.JSet<_$jni.JString> getMetadataKeys() { return _getMetadataKeys( - reference.pointer, _id_getMetadataKeys as jni.JMethodIDPtr) - .object(const jni.JSetType(jni.JStringType())); + reference.pointer, _id_getMetadataKeys as _$jni.JMethodIDPtr) + .object(const _$jni.JSetType(_$jni.JStringType())); } static final _id_getCustomMetadataValue = _class.instanceMethodId( @@ -692,16 +701,16 @@ class PDDocumentInformation extends jni.JObject { r'(Ljava/lang/String;)Ljava/lang/String;', ); - static final _getCustomMetadataValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _getCustomMetadataValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public java.lang.String getCustomMetadataValue(java.lang.String fieldName)` /// The returned object must be released after use, by calling the [release] method. @@ -710,14 +719,14 @@ class PDDocumentInformation extends jni.JObject { /// This will return null if one is not found. ///@param fieldName Name of custom metadata field from pdf document. ///@return String Value of metadata field - jni.JString getCustomMetadataValue( - jni.JString fieldName, + _$jni.JString getCustomMetadataValue( + _$jni.JString fieldName, ) { return _getCustomMetadataValue( reference.pointer, - _id_getCustomMetadataValue as jni.JMethodIDPtr, + _id_getCustomMetadataValue as _$jni.JMethodIDPtr, fieldName.reference.pointer) - .object(const jni.JStringType()); + .object(const _$jni.JStringType()); } static final _id_setCustomMetadataValue = _class.instanceMethodId( @@ -725,19 +734,22 @@ class PDDocumentInformation extends jni.JObject { r'(Ljava/lang/String;Ljava/lang/String;)V', ); - static final _setCustomMetadataValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _setCustomMetadataValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setCustomMetadataValue(java.lang.String fieldName, java.lang.String fieldValue)` /// @@ -745,12 +757,12 @@ class PDDocumentInformation extends jni.JObject { ///@param fieldName The name of the custom metadata field. ///@param fieldValue The value to the custom metadata field. void setCustomMetadataValue( - jni.JString fieldName, - jni.JString fieldValue, + _$jni.JString fieldName, + _$jni.JString fieldValue, ) { _setCustomMetadataValue( reference.pointer, - _id_setCustomMetadataValue as jni.JMethodIDPtr, + _id_setCustomMetadataValue as _$jni.JMethodIDPtr, fieldName.reference.pointer, fieldValue.reference.pointer) .check(); @@ -761,16 +773,16 @@ class PDDocumentInformation extends jni.JObject { r'(Ljava/lang/String;)V', ); - static final _setTrapped = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setTrapped = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setTrapped(java.lang.String value)` /// @@ -779,37 +791,42 @@ class PDDocumentInformation extends jni.JObject { ///@param value The new trapped value for the document. ///@throws IllegalArgumentException if the parameter is invalid. void setTrapped( - jni.JString value, + _$jni.JString value, ) { - _setTrapped(reference.pointer, _id_setTrapped as jni.JMethodIDPtr, + _setTrapped(reference.pointer, _id_setTrapped as _$jni.JMethodIDPtr, value.reference.pointer) .check(); } } -final class $PDDocumentInformationType - extends jni.JObjType { - const $PDDocumentInformationType(); +final class $PDDocumentInformation$Type + extends _$jni.JObjType { + @_$jni.internal + const $PDDocumentInformation$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lorg/apache/pdfbox/pdmodel/PDDocumentInformation;'; - @override - PDDocumentInformation fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + PDDocumentInformation fromReference(_$jni.JReference reference) => PDDocumentInformation.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($PDDocumentInformationType).hashCode; + @_$core.override + int get hashCode => ($PDDocumentInformation$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($PDDocumentInformationType) && - other is $PDDocumentInformationType; + return other.runtimeType == ($PDDocumentInformation$Type) && + other is $PDDocumentInformation$Type; } } diff --git a/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/text/PDFTextStripper.dart b/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/text/PDFTextStripper.dart index fd97d14f4..b4354d1e5 100644 --- a/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/text/PDFTextStripper.dart +++ b/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/text/PDFTextStripper.dart @@ -27,7 +27,9 @@ // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter // ignore_for_file: invalid_use_of_internal_member +// ignore_for_file: library_prefixes // ignore_for_file: lines_longer_than_80_chars +// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_local_identifiers // ignore_for_file: non_constant_identifier_names // ignore_for_file: only_throw_errors @@ -43,11 +45,11 @@ // ignore_for_file: unused_shown_name // ignore_for_file: use_super_parameters -import 'dart:ffi' as ffi; -import 'dart:isolate' show RawReceivePort, ReceivePort; +import 'dart:core' show Object, String, bool, double, int; +import 'dart:core' as _$core; -import 'package:jni/_internal.dart'; -import 'package:jni/jni.dart' as jni; +import 'package:jni/_internal.dart' as _$jni; +import 'package:jni/jni.dart' as _$jni; import '../pdmodel/PDDocument.dart' as pddocument_; @@ -60,33 +62,36 @@ import '../pdmodel/PDDocument.dart' as pddocument_; /// The basic flow of this process is that we get a document and use a series of processXXX() functions that work on /// smaller and smaller chunks of the page. Eventually, we fully process each page and then print it. ///@author Ben Litchfield -class PDFTextStripper extends jni.JObject { - @override - late final jni.JObjType $type = type; +class PDFTextStripper extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal PDFTextStripper.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); static final _class = - jni.JClass.forName(r'org/apache/pdfbox/text/PDFTextStripper'); + _$jni.JClass.forName(r'org/apache/pdfbox/text/PDFTextStripper'); /// The type which includes information such as the signature of this class. - static const type = $PDFTextStripperType(); + static const type = $PDFTextStripper$Type(); static final _id_new$ = _class.constructorId( r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` @@ -96,7 +101,7 @@ class PDFTextStripper extends jni.JObject { ///@throws IOException If there is an error loading the properties. factory PDFTextStripper() { return PDFTextStripper.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } @@ -105,16 +110,16 @@ class PDFTextStripper extends jni.JObject { r'(Lorg/apache/pdfbox/pdmodel/PDDocument;)Ljava/lang/String;', ); - static final _getText = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _getText = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public java.lang.String getText(org.apache.pdfbox.pdmodel.PDDocument doc)` /// The returned object must be released after use, by calling the [release] method. @@ -129,12 +134,12 @@ class PDFTextStripper extends jni.JObject { ///@param doc The document to get the text from. ///@return The text of the PDF document. ///@throws IOException if the doc state is invalid or it is encrypted. - jni.JString getText( + _$jni.JString getText( pddocument_.PDDocument doc, ) { - return _getText(reference.pointer, _id_getText as jni.JMethodIDPtr, + return _getText(reference.pointer, _id_getText as _$jni.JMethodIDPtr, doc.reference.pointer) - .object(const jni.JStringType()); + .object(const _$jni.JStringType()); } static final _id_writeText = _class.instanceMethodId( @@ -142,19 +147,22 @@ class PDFTextStripper extends jni.JObject { r'(Lorg/apache/pdfbox/pdmodel/PDDocument;Ljava/io/Writer;)V', ); - static final _writeText = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _writeText = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public void writeText(org.apache.pdfbox.pdmodel.PDDocument doc, java.io.Writer outputStream)` /// @@ -164,9 +172,9 @@ class PDFTextStripper extends jni.JObject { ///@throws IOException If the doc is in an invalid state. void writeText( pddocument_.PDDocument doc, - jni.JObject outputStream, + _$jni.JObject outputStream, ) { - _writeText(reference.pointer, _id_writeText as jni.JMethodIDPtr, + _writeText(reference.pointer, _id_writeText as _$jni.JMethodIDPtr, doc.reference.pointer, outputStream.reference.pointer) .check(); } @@ -176,16 +184,16 @@ class PDFTextStripper extends jni.JObject { r'(Lorg/apache/pdfbox/pdmodel/PDPage;)V', ); - static final _processPage = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _processPage = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void processPage(org.apache.pdfbox.pdmodel.PDPage page)` /// @@ -193,9 +201,9 @@ class PDFTextStripper extends jni.JObject { ///@param page The page to process. ///@throws IOException If there is an error processing the page. void processPage( - jni.JObject page, + _$jni.JObject page, ) { - _processPage(reference.pointer, _id_processPage as jni.JMethodIDPtr, + _processPage(reference.pointer, _id_processPage as _$jni.JMethodIDPtr, page.reference.pointer) .check(); } @@ -205,16 +213,16 @@ class PDFTextStripper extends jni.JObject { r'()I', ); - static final _getStartPage = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getStartPage = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public int getStartPage()` @@ -225,7 +233,7 @@ class PDFTextStripper extends jni.JObject { ///@return Value of property startPage. int getStartPage() { return _getStartPage( - reference.pointer, _id_getStartPage as jni.JMethodIDPtr) + reference.pointer, _id_getStartPage as _$jni.JMethodIDPtr) .integer; } @@ -234,15 +242,15 @@ class PDFTextStripper extends jni.JObject { r'(I)V', ); - static final _setStartPage = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallVoidMethod') + static final _setStartPage = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public void setStartPage(int startPageValue)` /// @@ -251,7 +259,7 @@ class PDFTextStripper extends jni.JObject { void setStartPage( int startPageValue, ) { - _setStartPage(reference.pointer, _id_setStartPage as jni.JMethodIDPtr, + _setStartPage(reference.pointer, _id_setStartPage as _$jni.JMethodIDPtr, startPageValue) .check(); } @@ -261,16 +269,16 @@ class PDFTextStripper extends jni.JObject { r'()I', ); - static final _getEndPage = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getEndPage = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public int getEndPage()` @@ -280,7 +288,7 @@ class PDFTextStripper extends jni.JObject { /// Integer.MAX_VALUE such that all pages of the pdf will be extracted. ///@return Value of property endPage. int getEndPage() { - return _getEndPage(reference.pointer, _id_getEndPage as jni.JMethodIDPtr) + return _getEndPage(reference.pointer, _id_getEndPage as _$jni.JMethodIDPtr) .integer; } @@ -289,15 +297,15 @@ class PDFTextStripper extends jni.JObject { r'(I)V', ); - static final _setEndPage = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallVoidMethod') + static final _setEndPage = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public void setEndPage(int endPageValue)` /// @@ -306,8 +314,8 @@ class PDFTextStripper extends jni.JObject { void setEndPage( int endPageValue, ) { - _setEndPage( - reference.pointer, _id_setEndPage as jni.JMethodIDPtr, endPageValue) + _setEndPage(reference.pointer, _id_setEndPage as _$jni.JMethodIDPtr, + endPageValue) .check(); } @@ -316,16 +324,16 @@ class PDFTextStripper extends jni.JObject { r'(Ljava/lang/String;)V', ); - static final _setLineSeparator = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setLineSeparator = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setLineSeparator(java.lang.String separator)` /// @@ -333,11 +341,11 @@ class PDFTextStripper extends jni.JObject { /// preference is not set explicitly using this method. ///@param separator The desired line separator string. void setLineSeparator( - jni.JString separator, + _$jni.JString separator, ) { _setLineSeparator( reference.pointer, - _id_setLineSeparator as jni.JMethodIDPtr, + _id_setLineSeparator as _$jni.JMethodIDPtr, separator.reference.pointer) .check(); } @@ -347,16 +355,16 @@ class PDFTextStripper extends jni.JObject { r'()Ljava/lang/String;', ); - static final _getLineSeparator = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getLineSeparator = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.String getLineSeparator()` @@ -364,10 +372,10 @@ class PDFTextStripper extends jni.JObject { /// /// This will get the line separator. ///@return The desired line separator string. - jni.JString getLineSeparator() { + _$jni.JString getLineSeparator() { return _getLineSeparator( - reference.pointer, _id_getLineSeparator as jni.JMethodIDPtr) - .object(const jni.JStringType()); + reference.pointer, _id_getLineSeparator as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_getWordSeparator = _class.instanceMethodId( @@ -375,16 +383,16 @@ class PDFTextStripper extends jni.JObject { r'()Ljava/lang/String;', ); - static final _getWordSeparator = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getWordSeparator = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.String getWordSeparator()` @@ -392,10 +400,10 @@ class PDFTextStripper extends jni.JObject { /// /// This will get the word separator. ///@return The desired word separator string. - jni.JString getWordSeparator() { + _$jni.JString getWordSeparator() { return _getWordSeparator( - reference.pointer, _id_getWordSeparator as jni.JMethodIDPtr) - .object(const jni.JStringType()); + reference.pointer, _id_getWordSeparator as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_setWordSeparator = _class.instanceMethodId( @@ -403,16 +411,16 @@ class PDFTextStripper extends jni.JObject { r'(Ljava/lang/String;)V', ); - static final _setWordSeparator = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setWordSeparator = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setWordSeparator(java.lang.String separator)` /// @@ -422,11 +430,11 @@ class PDFTextStripper extends jni.JObject { /// the empty string. ///@param separator The desired page separator string. void setWordSeparator( - jni.JString separator, + _$jni.JString separator, ) { _setWordSeparator( reference.pointer, - _id_setWordSeparator as jni.JMethodIDPtr, + _id_setWordSeparator as _$jni.JMethodIDPtr, separator.reference.pointer) .check(); } @@ -438,16 +446,16 @@ class PDFTextStripper extends jni.JObject { ); static final _getSuppressDuplicateOverlappingText = - ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public boolean getSuppressDuplicateOverlappingText()` @@ -455,7 +463,7 @@ class PDFTextStripper extends jni.JObject { /// @return Returns the suppressDuplicateOverlappingText. bool getSuppressDuplicateOverlappingText() { return _getSuppressDuplicateOverlappingText(reference.pointer, - _id_getSuppressDuplicateOverlappingText as jni.JMethodIDPtr) + _id_getSuppressDuplicateOverlappingText as _$jni.JMethodIDPtr) .boolean; } @@ -466,15 +474,14 @@ class PDFTextStripper extends jni.JObject { ); static final _setSuppressDuplicateOverlappingText = - ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallVoidMethod') + _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Int32,)>)>>( + 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public void setSuppressDuplicateOverlappingText(boolean suppressDuplicateOverlappingTextValue)` /// @@ -487,7 +494,7 @@ class PDFTextStripper extends jni.JObject { ) { _setSuppressDuplicateOverlappingText( reference.pointer, - _id_setSuppressDuplicateOverlappingText as jni.JMethodIDPtr, + _id_setSuppressDuplicateOverlappingText as _$jni.JMethodIDPtr, suppressDuplicateOverlappingTextValue ? 1 : 0) .check(); } @@ -497,16 +504,16 @@ class PDFTextStripper extends jni.JObject { r'()Z', ); - static final _getSeparateByBeads = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getSeparateByBeads = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public boolean getSeparateByBeads()` @@ -515,7 +522,7 @@ class PDFTextStripper extends jni.JObject { ///@return If the text will be grouped by beads. bool getSeparateByBeads() { return _getSeparateByBeads( - reference.pointer, _id_getSeparateByBeads as jni.JMethodIDPtr) + reference.pointer, _id_getSeparateByBeads as _$jni.JMethodIDPtr) .boolean; } @@ -524,15 +531,15 @@ class PDFTextStripper extends jni.JObject { r'(Z)V', ); - static final _setShouldSeparateByBeads = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallVoidMethod') + static final _setShouldSeparateByBeads = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public void setShouldSeparateByBeads(boolean aShouldSeparateByBeads)` /// @@ -543,7 +550,7 @@ class PDFTextStripper extends jni.JObject { ) { _setShouldSeparateByBeads( reference.pointer, - _id_setShouldSeparateByBeads as jni.JMethodIDPtr, + _id_setShouldSeparateByBeads as _$jni.JMethodIDPtr, aShouldSeparateByBeads ? 1 : 0) .check(); } @@ -553,16 +560,16 @@ class PDFTextStripper extends jni.JObject { r'()Lorg/apache/pdfbox/pdmodel/interactive/documentnavigation/outline/PDOutlineItem;', ); - static final _getEndBookmark = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getEndBookmark = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineItem getEndBookmark()` @@ -570,10 +577,10 @@ class PDFTextStripper extends jni.JObject { /// /// Get the bookmark where text extraction should end, inclusive. Default is null. ///@return The ending bookmark. - jni.JObject getEndBookmark() { + _$jni.JObject getEndBookmark() { return _getEndBookmark( - reference.pointer, _id_getEndBookmark as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + reference.pointer, _id_getEndBookmark as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_setEndBookmark = _class.instanceMethodId( @@ -581,25 +588,25 @@ class PDFTextStripper extends jni.JObject { r'(Lorg/apache/pdfbox/pdmodel/interactive/documentnavigation/outline/PDOutlineItem;)V', ); - static final _setEndBookmark = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setEndBookmark = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setEndBookmark(org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineItem aEndBookmark)` /// /// Set the bookmark where the text extraction should stop. ///@param aEndBookmark The ending bookmark. void setEndBookmark( - jni.JObject aEndBookmark, + _$jni.JObject aEndBookmark, ) { - _setEndBookmark(reference.pointer, _id_setEndBookmark as jni.JMethodIDPtr, + _setEndBookmark(reference.pointer, _id_setEndBookmark as _$jni.JMethodIDPtr, aEndBookmark.reference.pointer) .check(); } @@ -609,16 +616,16 @@ class PDFTextStripper extends jni.JObject { r'()Lorg/apache/pdfbox/pdmodel/interactive/documentnavigation/outline/PDOutlineItem;', ); - static final _getStartBookmark = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getStartBookmark = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineItem getStartBookmark()` @@ -626,10 +633,10 @@ class PDFTextStripper extends jni.JObject { /// /// Get the bookmark where text extraction should start, inclusive. Default is null. ///@return The starting bookmark. - jni.JObject getStartBookmark() { + _$jni.JObject getStartBookmark() { return _getStartBookmark( - reference.pointer, _id_getStartBookmark as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + reference.pointer, _id_getStartBookmark as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_setStartBookmark = _class.instanceMethodId( @@ -637,27 +644,27 @@ class PDFTextStripper extends jni.JObject { r'(Lorg/apache/pdfbox/pdmodel/interactive/documentnavigation/outline/PDOutlineItem;)V', ); - static final _setStartBookmark = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setStartBookmark = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setStartBookmark(org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineItem aStartBookmark)` /// /// Set the bookmark where text extraction should start, inclusive. ///@param aStartBookmark The starting bookmark. void setStartBookmark( - jni.JObject aStartBookmark, + _$jni.JObject aStartBookmark, ) { _setStartBookmark( reference.pointer, - _id_setStartBookmark as jni.JMethodIDPtr, + _id_setStartBookmark as _$jni.JMethodIDPtr, aStartBookmark.reference.pointer) .check(); } @@ -667,16 +674,16 @@ class PDFTextStripper extends jni.JObject { r'()Z', ); - static final _getAddMoreFormatting = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getAddMoreFormatting = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public boolean getAddMoreFormatting()` @@ -685,7 +692,7 @@ class PDFTextStripper extends jni.JObject { ///@return true if some more text formatting will be added bool getAddMoreFormatting() { return _getAddMoreFormatting( - reference.pointer, _id_getAddMoreFormatting as jni.JMethodIDPtr) + reference.pointer, _id_getAddMoreFormatting as _$jni.JMethodIDPtr) .boolean; } @@ -694,15 +701,15 @@ class PDFTextStripper extends jni.JObject { r'(Z)V', ); - static final _setAddMoreFormatting = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallVoidMethod') + static final _setAddMoreFormatting = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public void setAddMoreFormatting(boolean newAddMoreFormatting)` /// @@ -713,7 +720,7 @@ class PDFTextStripper extends jni.JObject { ) { _setAddMoreFormatting( reference.pointer, - _id_setAddMoreFormatting as jni.JMethodIDPtr, + _id_setAddMoreFormatting as _$jni.JMethodIDPtr, newAddMoreFormatting ? 1 : 0) .check(); } @@ -723,16 +730,16 @@ class PDFTextStripper extends jni.JObject { r'()Z', ); - static final _getSortByPosition = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getSortByPosition = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public boolean getSortByPosition()` @@ -741,7 +748,7 @@ class PDFTextStripper extends jni.JObject { ///@return true If the text tokens will be sorted before being written. bool getSortByPosition() { return _getSortByPosition( - reference.pointer, _id_getSortByPosition as jni.JMethodIDPtr) + reference.pointer, _id_getSortByPosition as _$jni.JMethodIDPtr) .boolean; } @@ -750,15 +757,15 @@ class PDFTextStripper extends jni.JObject { r'(Z)V', ); - static final _setSortByPosition = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallVoidMethod') + static final _setSortByPosition = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public void setSortByPosition(boolean newSortByPosition)` /// @@ -775,7 +782,7 @@ class PDFTextStripper extends jni.JObject { ) { _setSortByPosition( reference.pointer, - _id_setSortByPosition as jni.JMethodIDPtr, + _id_setSortByPosition as _$jni.JMethodIDPtr, newSortByPosition ? 1 : 0) .check(); } @@ -785,16 +792,16 @@ class PDFTextStripper extends jni.JObject { r'()F', ); - static final _getSpacingTolerance = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getSpacingTolerance = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallFloatMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public float getSpacingTolerance()` @@ -804,7 +811,7 @@ class PDFTextStripper extends jni.JObject { ///@return The current tolerance / scaling factor double getSpacingTolerance() { return _getSpacingTolerance( - reference.pointer, _id_getSpacingTolerance as jni.JMethodIDPtr) + reference.pointer, _id_getSpacingTolerance as _$jni.JMethodIDPtr) .float; } @@ -813,15 +820,15 @@ class PDFTextStripper extends jni.JObject { r'(F)V', ); - static final _setSpacingTolerance = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Double,)>)>>('globalEnv_CallVoidMethod') + static final _setSpacingTolerance = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Double,)>)>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, jni.JMethodIDPtr, double)>(); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, double)>(); /// from: `public void setSpacingTolerance(float spacingToleranceValue)` /// @@ -832,8 +839,10 @@ class PDFTextStripper extends jni.JObject { void setSpacingTolerance( double spacingToleranceValue, ) { - _setSpacingTolerance(reference.pointer, - _id_setSpacingTolerance as jni.JMethodIDPtr, spacingToleranceValue) + _setSpacingTolerance( + reference.pointer, + _id_setSpacingTolerance as _$jni.JMethodIDPtr, + spacingToleranceValue) .check(); } @@ -842,16 +851,16 @@ class PDFTextStripper extends jni.JObject { r'()F', ); - static final _getAverageCharTolerance = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getAverageCharTolerance = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallFloatMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public float getAverageCharTolerance()` @@ -860,8 +869,8 @@ class PDFTextStripper extends jni.JObject { /// be added. Note that the default value for this has been determined from trial and error. ///@return The current tolerance / scaling factor double getAverageCharTolerance() { - return _getAverageCharTolerance( - reference.pointer, _id_getAverageCharTolerance as jni.JMethodIDPtr) + return _getAverageCharTolerance(reference.pointer, + _id_getAverageCharTolerance as _$jni.JMethodIDPtr) .float; } @@ -870,15 +879,15 @@ class PDFTextStripper extends jni.JObject { r'(F)V', ); - static final _setAverageCharTolerance = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Double,)>)>>('globalEnv_CallVoidMethod') + static final _setAverageCharTolerance = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Double,)>)>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, jni.JMethodIDPtr, double)>(); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, double)>(); /// from: `public void setAverageCharTolerance(float averageCharToleranceValue)` /// @@ -891,7 +900,7 @@ class PDFTextStripper extends jni.JObject { ) { _setAverageCharTolerance( reference.pointer, - _id_setAverageCharTolerance as jni.JMethodIDPtr, + _id_setAverageCharTolerance as _$jni.JMethodIDPtr, averageCharToleranceValue) .check(); } @@ -901,16 +910,16 @@ class PDFTextStripper extends jni.JObject { r'()F', ); - static final _getIndentThreshold = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getIndentThreshold = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallFloatMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public float getIndentThreshold()` @@ -920,7 +929,7 @@ class PDFTextStripper extends jni.JObject { ///@return the number of whitespace character widths to use when detecting paragraph indents. double getIndentThreshold() { return _getIndentThreshold( - reference.pointer, _id_getIndentThreshold as jni.JMethodIDPtr) + reference.pointer, _id_getIndentThreshold as _$jni.JMethodIDPtr) .float; } @@ -929,15 +938,15 @@ class PDFTextStripper extends jni.JObject { r'(F)V', ); - static final _setIndentThreshold = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Double,)>)>>('globalEnv_CallVoidMethod') + static final _setIndentThreshold = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Double,)>)>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, jni.JMethodIDPtr, double)>(); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, double)>(); /// from: `public void setIndentThreshold(float indentThresholdValue)` /// @@ -949,7 +958,7 @@ class PDFTextStripper extends jni.JObject { double indentThresholdValue, ) { _setIndentThreshold(reference.pointer, - _id_setIndentThreshold as jni.JMethodIDPtr, indentThresholdValue) + _id_setIndentThreshold as _$jni.JMethodIDPtr, indentThresholdValue) .check(); } @@ -958,16 +967,16 @@ class PDFTextStripper extends jni.JObject { r'()F', ); - static final _getDropThreshold = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getDropThreshold = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallFloatMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public float getDropThreshold()` @@ -977,7 +986,7 @@ class PDFTextStripper extends jni.JObject { ///@return the character height multiple for max allowed whitespace between lines in the same paragraph. double getDropThreshold() { return _getDropThreshold( - reference.pointer, _id_getDropThreshold as jni.JMethodIDPtr) + reference.pointer, _id_getDropThreshold as _$jni.JMethodIDPtr) .float; } @@ -986,15 +995,15 @@ class PDFTextStripper extends jni.JObject { r'(F)V', ); - static final _setDropThreshold = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Double,)>)>>('globalEnv_CallVoidMethod') + static final _setDropThreshold = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Double,)>)>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, jni.JMethodIDPtr, double)>(); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, double)>(); /// from: `public void setDropThreshold(float dropThresholdValue)` /// @@ -1006,7 +1015,7 @@ class PDFTextStripper extends jni.JObject { double dropThresholdValue, ) { _setDropThreshold(reference.pointer, - _id_setDropThreshold as jni.JMethodIDPtr, dropThresholdValue) + _id_setDropThreshold as _$jni.JMethodIDPtr, dropThresholdValue) .check(); } @@ -1015,16 +1024,16 @@ class PDFTextStripper extends jni.JObject { r'()Ljava/lang/String;', ); - static final _getParagraphStart = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getParagraphStart = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.String getParagraphStart()` @@ -1032,10 +1041,10 @@ class PDFTextStripper extends jni.JObject { /// /// Returns the string which will be used at the beginning of a paragraph. ///@return the paragraph start string - jni.JString getParagraphStart() { + _$jni.JString getParagraphStart() { return _getParagraphStart( - reference.pointer, _id_getParagraphStart as jni.JMethodIDPtr) - .object(const jni.JStringType()); + reference.pointer, _id_getParagraphStart as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_setParagraphStart = _class.instanceMethodId( @@ -1043,26 +1052,26 @@ class PDFTextStripper extends jni.JObject { r'(Ljava/lang/String;)V', ); - static final _setParagraphStart = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setParagraphStart = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setParagraphStart(java.lang.String s)` /// /// Sets the string which will be used at the beginning of a paragraph. ///@param s the paragraph start string void setParagraphStart( - jni.JString s, + _$jni.JString s, ) { _setParagraphStart(reference.pointer, - _id_setParagraphStart as jni.JMethodIDPtr, s.reference.pointer) + _id_setParagraphStart as _$jni.JMethodIDPtr, s.reference.pointer) .check(); } @@ -1071,16 +1080,16 @@ class PDFTextStripper extends jni.JObject { r'()Ljava/lang/String;', ); - static final _getParagraphEnd = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getParagraphEnd = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.String getParagraphEnd()` @@ -1088,10 +1097,10 @@ class PDFTextStripper extends jni.JObject { /// /// Returns the string which will be used at the end of a paragraph. ///@return the paragraph end string - jni.JString getParagraphEnd() { + _$jni.JString getParagraphEnd() { return _getParagraphEnd( - reference.pointer, _id_getParagraphEnd as jni.JMethodIDPtr) - .object(const jni.JStringType()); + reference.pointer, _id_getParagraphEnd as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_setParagraphEnd = _class.instanceMethodId( @@ -1099,26 +1108,26 @@ class PDFTextStripper extends jni.JObject { r'(Ljava/lang/String;)V', ); - static final _setParagraphEnd = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setParagraphEnd = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setParagraphEnd(java.lang.String s)` /// /// Sets the string which will be used at the end of a paragraph. ///@param s the paragraph end string void setParagraphEnd( - jni.JString s, + _$jni.JString s, ) { - _setParagraphEnd(reference.pointer, _id_setParagraphEnd as jni.JMethodIDPtr, - s.reference.pointer) + _setParagraphEnd(reference.pointer, + _id_setParagraphEnd as _$jni.JMethodIDPtr, s.reference.pointer) .check(); } @@ -1127,16 +1136,16 @@ class PDFTextStripper extends jni.JObject { r'()Ljava/lang/String;', ); - static final _getPageStart = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getPageStart = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.String getPageStart()` @@ -1144,10 +1153,10 @@ class PDFTextStripper extends jni.JObject { /// /// Returns the string which will be used at the beginning of a page. ///@return the page start string - jni.JString getPageStart() { + _$jni.JString getPageStart() { return _getPageStart( - reference.pointer, _id_getPageStart as jni.JMethodIDPtr) - .object(const jni.JStringType()); + reference.pointer, _id_getPageStart as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_setPageStart = _class.instanceMethodId( @@ -1155,25 +1164,25 @@ class PDFTextStripper extends jni.JObject { r'(Ljava/lang/String;)V', ); - static final _setPageStart = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setPageStart = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setPageStart(java.lang.String pageStartValue)` /// /// Sets the string which will be used at the beginning of a page. ///@param pageStartValue the page start string void setPageStart( - jni.JString pageStartValue, + _$jni.JString pageStartValue, ) { - _setPageStart(reference.pointer, _id_setPageStart as jni.JMethodIDPtr, + _setPageStart(reference.pointer, _id_setPageStart as _$jni.JMethodIDPtr, pageStartValue.reference.pointer) .check(); } @@ -1183,16 +1192,16 @@ class PDFTextStripper extends jni.JObject { r'()Ljava/lang/String;', ); - static final _getPageEnd = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getPageEnd = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.String getPageEnd()` @@ -1200,9 +1209,9 @@ class PDFTextStripper extends jni.JObject { /// /// Returns the string which will be used at the end of a page. ///@return the page end string - jni.JString getPageEnd() { - return _getPageEnd(reference.pointer, _id_getPageEnd as jni.JMethodIDPtr) - .object(const jni.JStringType()); + _$jni.JString getPageEnd() { + return _getPageEnd(reference.pointer, _id_getPageEnd as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_setPageEnd = _class.instanceMethodId( @@ -1210,25 +1219,25 @@ class PDFTextStripper extends jni.JObject { r'(Ljava/lang/String;)V', ); - static final _setPageEnd = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setPageEnd = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setPageEnd(java.lang.String pageEndValue)` /// /// Sets the string which will be used at the end of a page. ///@param pageEndValue the page end string void setPageEnd( - jni.JString pageEndValue, + _$jni.JString pageEndValue, ) { - _setPageEnd(reference.pointer, _id_setPageEnd as jni.JMethodIDPtr, + _setPageEnd(reference.pointer, _id_setPageEnd as _$jni.JMethodIDPtr, pageEndValue.reference.pointer) .check(); } @@ -1238,16 +1247,16 @@ class PDFTextStripper extends jni.JObject { r'()Ljava/lang/String;', ); - static final _getArticleStart = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getArticleStart = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.String getArticleStart()` @@ -1255,10 +1264,10 @@ class PDFTextStripper extends jni.JObject { /// /// Returns the string which will be used at the beginning of an article. ///@return the article start string - jni.JString getArticleStart() { + _$jni.JString getArticleStart() { return _getArticleStart( - reference.pointer, _id_getArticleStart as jni.JMethodIDPtr) - .object(const jni.JStringType()); + reference.pointer, _id_getArticleStart as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_setArticleStart = _class.instanceMethodId( @@ -1266,25 +1275,27 @@ class PDFTextStripper extends jni.JObject { r'(Ljava/lang/String;)V', ); - static final _setArticleStart = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setArticleStart = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setArticleStart(java.lang.String articleStartValue)` /// /// Sets the string which will be used at the beginning of an article. ///@param articleStartValue the article start string void setArticleStart( - jni.JString articleStartValue, + _$jni.JString articleStartValue, ) { - _setArticleStart(reference.pointer, _id_setArticleStart as jni.JMethodIDPtr, + _setArticleStart( + reference.pointer, + _id_setArticleStart as _$jni.JMethodIDPtr, articleStartValue.reference.pointer) .check(); } @@ -1294,16 +1305,16 @@ class PDFTextStripper extends jni.JObject { r'()Ljava/lang/String;', ); - static final _getArticleEnd = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getArticleEnd = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.String getArticleEnd()` @@ -1311,10 +1322,10 @@ class PDFTextStripper extends jni.JObject { /// /// Returns the string which will be used at the end of an article. ///@return the article end string - jni.JString getArticleEnd() { + _$jni.JString getArticleEnd() { return _getArticleEnd( - reference.pointer, _id_getArticleEnd as jni.JMethodIDPtr) - .object(const jni.JStringType()); + reference.pointer, _id_getArticleEnd as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_setArticleEnd = _class.instanceMethodId( @@ -1322,52 +1333,57 @@ class PDFTextStripper extends jni.JObject { r'(Ljava/lang/String;)V', ); - static final _setArticleEnd = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setArticleEnd = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setArticleEnd(java.lang.String articleEndValue)` /// /// Sets the string which will be used at the end of an article. ///@param articleEndValue the article end string void setArticleEnd( - jni.JString articleEndValue, + _$jni.JString articleEndValue, ) { - _setArticleEnd(reference.pointer, _id_setArticleEnd as jni.JMethodIDPtr, + _setArticleEnd(reference.pointer, _id_setArticleEnd as _$jni.JMethodIDPtr, articleEndValue.reference.pointer) .check(); } } -final class $PDFTextStripperType extends jni.JObjType { - const $PDFTextStripperType(); +final class $PDFTextStripper$Type extends _$jni.JObjType { + @_$jni.internal + const $PDFTextStripper$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lorg/apache/pdfbox/text/PDFTextStripper;'; - @override - PDFTextStripper fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + PDFTextStripper fromReference(_$jni.JReference reference) => PDFTextStripper.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($PDFTextStripperType).hashCode; + @_$core.override + int get hashCode => ($PDFTextStripper$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($PDFTextStripperType) && - other is $PDFTextStripperType; + return other.runtimeType == ($PDFTextStripper$Type) && + other is $PDFTextStripper$Type; } } diff --git a/pkgs/jnigen/lib/src/bindings/dart_generator.dart b/pkgs/jnigen/lib/src/bindings/dart_generator.dart index 4fe850c8b..1c7420c43 100644 --- a/pkgs/jnigen/lib/src/bindings/dart_generator.dart +++ b/pkgs/jnigen/lib/src/bindings/dart_generator.dart @@ -15,8 +15,11 @@ import 'resolver.dart'; import 'visitor.dart'; // Import prefixes. -const _jni = 'jni'; -const _ffi = 'ffi'; +const _jni = '_\$jni'; +const _core = '_\$core'; + +// dart:core types +const _override = '@$_core.override'; // package:jni types. const _jType = '$_jni.JObjType'; @@ -27,16 +30,14 @@ const _jArray = '$_jni.JArray'; const _jObject = '$_jni.JObject'; const _jResult = '$_jni.JniResult'; const _jThrowable = '$_jni.JThrowablePtr'; - -// package:ffi types. -const _voidPointer = '$_ffi.Pointer<$_ffi.Void>'; +const _methodInvocation = '$_jni.MethodInvocation'; +const _protectedExtension = '$_jni.ProtectedJniExtensions'; +const _voidPointer = '$_jni.Pointer<$_jni.Void>'; +const _internal = '@$_jni.internal'; // Prefixes and suffixes. const _typeParamPrefix = '\$'; -// Misc. -const _protectedExtension = 'ProtectedJniExtensions'; - /// Used for C bindings. const _selfPointer = 'reference.pointer'; @@ -124,11 +125,11 @@ class DartGenerator extends Visitor> { static const autoGeneratedNotice = '// Autogenerated by jnigen. ' 'DO NOT EDIT!\n\n'; static const defaultImports = ''' -import 'dart:ffi' as ffi; -import 'dart:isolate' show RawReceivePort, ReceivePort; +import 'dart:core' show Object, String, bool, double, int; +import 'dart:core' as $_core; -import 'package:jni/_internal.dart'; -import 'package:jni/jni.dart' as jni; +import 'package:jni/_internal.dart' as $_jni; +import 'package:jni/jni.dart' as $_jni; '''; @@ -143,7 +144,9 @@ import 'package:jni/jni.dart' as jni; // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter // ignore_for_file: invalid_use_of_internal_member +// ignore_for_file: library_prefixes // ignore_for_file: lines_longer_than_80_chars +// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_local_identifiers // ignore_for_file: non_constant_identifier_names // ignore_for_file: only_throw_errors @@ -333,10 +336,10 @@ ${modifier}final $classRef = $_jni.JClass.forName(r'$internalName'); typeParams.join(', '), ')', ); - final typeClassesDef = typeParams - .map((typeParam) => - 'final $_jType<$_typeParamPrefix$typeParam> $typeParam;') - .join(_newLine(depth: 1)); + final typeClassesDef = typeParams.map((typeParam) => ''' + $_internal + final $_jType<$_typeParamPrefix$typeParam> $typeParam; +''').join('\n'); final ctorTypeClassesDef = typeParams .map((typeParam) => 'this.$typeParam,') .join(_newLine(depth: 2)); @@ -349,18 +352,22 @@ ${modifier}final $classRef = $_jni.JClass.forName(r'$internalName'); .join(_newLine(depth: 2)); s.write(''' class $name$typeParamsDef extends $superName { - @override - late final $_jType<$name$typeParamsCall> $instanceTypeGetter = $staticTypeGetter$staticTypeGetterCallArgs; + $_internal + $_override + final $_jType<$name$typeParamsCall> $instanceTypeGetter; $typeClassesDef + $_internal $name.fromReference( $ctorTypeClassesDef $_jReference reference, - ): super.fromReference( - $superTypeClassesCall - reference - ); + ) : + $instanceTypeGetter = $staticTypeGetter$staticTypeGetterCallArgs, + super.fromReference( + $superTypeClassesCall + reference + ); '''); @@ -400,17 +407,17 @@ class $name$typeParamsDef extends $superName { false)) { s.write(''' /// Maps a specific port to the implemented interface. - static final Map _\$impls = {}; + static final $_core.Map _\$impls = {}; '''); - s.write(r''' - static jni.JObjectPtr _$invoke( + s.write(''' + static $_jni.JObjectPtr _\$invoke( int port, - jni.JObjectPtr descriptor, - jni.JObjectPtr args, + $_jni.JObjectPtr descriptor, + $_jni.JObjectPtr args, ) { - return _$invokeMethod( + return _\$invokeMethod( port, - $MethodInvocation.fromAddresses( + $_methodInvocation.fromAddresses( 0, descriptor.address, args.address, @@ -418,19 +425,19 @@ class $name$typeParamsDef extends $superName { ); } - static final ffi.Pointer< - ffi.NativeFunction< - jni.JObjectPtr Function( - ffi.Int64, jni.JObjectPtr, jni.JObjectPtr)>> - _$invokePointer = ffi.Pointer.fromFunction(_$invoke); + static final $_jni.Pointer< + $_jni.NativeFunction< + $_jni.JObjectPtr Function( + $_jni.Int64, $_jni.JObjectPtr, $_jni.JObjectPtr)>> + _\$invokePointer = $_jni.Pointer.fromFunction(_\$invoke); - static ffi.Pointer _$invokeMethod( - int $p, - $MethodInvocation $i, + static $_jni.Pointer<$_jni.Void> _\$invokeMethod( + int \$p, + $_methodInvocation \$i, ) { try { - final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); - final $a = $i.args; + final \$d = \$i.methodDescriptor.toDartString(releaseOriginal: true); + final \$a = \$i.args; '''); final proxyMethodIf = _InterfaceMethodIf(resolver, s); for (final method in node.methods) { @@ -440,21 +447,21 @@ class $name$typeParamsDef extends $superName { } catch (e) { return $_protectedExtension.newDartException(e); } - return jni.nullptr; + return $_jni.nullptr; } static void implementIn$typeParamsDef( $_jni.JImplementer implementer, $implClassName$typeParamsCall \$impl, ) { - late final RawReceivePort \$p; - \$p = RawReceivePort((\$m) { + late final $_jni.RawReceivePort \$p; + \$p = $_jni.RawReceivePort((\$m) { if (\$m == null) { _\$impls.remove(\$p.sendPort.nativePort); \$p.close(); return; } - final \$i = \$MethodInvocation.fromMessage(\$m as List); + final \$i = $_methodInvocation.fromMessage(\$m); final \$r = _\$invokeMethod(\$p.sendPort.nativePort, \$i); $_protectedExtension.returnResult(\$i.result, \$r); }); @@ -546,7 +553,7 @@ abstract interface class $implClassName$typeParamsDef { '', ); final typeClassesDef = typeParams.map((typeParam) => ''' -@override +$_override final $_jType<\$$typeParam> $typeParam; ''').join(_newLine(depth: 1)); s.write(''' @@ -586,29 +593,34 @@ class _$implClassName$typeParamsDef implements $implClassName$typeParamsCall { final class $typeClassName$typeParamsDef extends $_jType<$name$typeParamsCall> { $typeClassesDef + $_internal const $typeClassName( $ctorTypeClassesDef ); - @override + $_internal + $_override String get signature => r'$signature'; - @override + $_internal + $_override $name$typeParamsCall fromReference($_jReference reference) => $name.fromReference( $typeClassesCall reference ); - @override + $_internal + $_override $_jType get superType => ${superTypeClass.name}; - @override + $_internal + $_override final superCount = ${node.superCount}; - @override + $_override int get hashCode => $hashCode; - @override + $_override bool operator ==(Object other) { return other.runtimeType == ($typeClassName$typeParamsCall) && other is $typeClassName$typeParamsCall$equalityTypeClasses; @@ -891,7 +903,7 @@ class _TypeSig extends TypeVisitor { @override String visitPrimitiveType(PrimitiveType node) { - if (isFfi) return node.ffiVarArgType; + if (isFfi) return '$_jni.${node.ffiVarArgType}'; if (node.name == 'boolean') return 'int'; return node.dartType; } @@ -1023,7 +1035,7 @@ class _MethodTypeSig extends Visitor { _voidPointer, '$_jni.JMethodIDPtr', isFfi && callParams.isNotEmpty - ? '$_ffi.VarArgs<($callParams${node.params.length == 1 ? ',' : ''})>' + ? '$_jni.VarArgs<($callParams${node.params.length == 1 ? ',' : ''})>' : callParams ].join(', '); final isCtor = node.isConstructor; @@ -1073,7 +1085,7 @@ ${modifier}final _id_$name = $classRef.${kind}Id( s.write(''' ${modifier}final _$name = $_protectedExtension - .lookup<$_ffi.NativeFunction<$ffiSig>>('$methodName') + .lookup<$_jni.NativeFunction<$ffiSig>>('$methodName') .asFunction<$dartSig>(); '''); } @@ -1194,7 +1206,8 @@ ${modifier}final _$name = $_protectedExtension final name = node.finalName; final returnType = isSuspendFun(node) - ? 'Future<${node.asyncReturnType!.accept(_TypeGenerator(resolver))}>' + ? '$_core.Future<' + '${node.asyncReturnType!.accept(_TypeGenerator(resolver))}>' : node.returnType.accept(_TypeGenerator(resolver)); final returnTypeClass = (node.asyncReturnType ?? node.returnType) .accept(_TypeClassGenerator(resolver)) @@ -1228,7 +1241,7 @@ ${modifier}final _$name = $_protectedExtension node.asyncReturnType!.accept(_TypeClassGenerator(resolver)).name; s.write('''async { $typeInference - final \$p = ReceivePort(); + final \$p = $_jni.ReceivePort(); final \$c = $_jObject.fromReference($_protectedExtension.newPortContinuation(\$p)); $callExpr; final \$o = $_jGlobalReference($_jPointer.fromAddress(await \$p.first)); @@ -1367,13 +1380,13 @@ class OutsideInBuffer { /// /// For example in `JArray> a`, `T` can be retreived using /// ```dart -/// ((((a.$type as jni.JArrayType).elementType) as $JMapType).K) -/// as jni.JObjType<$T> +/// ((((a.$type as JArrayType).elementType) as $JMapType).K) +/// as JObjType<$T> /// ``` /// and /// ```dart -/// ((((a.$type as jni.JArrayType).elementType) as $JMapType).V) -/// as jni.JObjType<$T> +/// ((((a.$type as JArrayType).elementType) as $JMapType).V) +/// as JObjType<$T> /// ``` class _ParamTypeLocator extends Visitor>> { final Resolver resolver; @@ -1577,7 +1590,7 @@ class _InterfaceParamCast extends Visitor { typeVarFromMap: true, )) .name; - s.write('\$a[$paramIndex].castTo($typeClass, releaseOriginal: true)'); + s.write('\$a[$paramIndex].as($typeClass, releaseOriginal: true)'); if (node.type.kind == Kind.primitive) { // Convert to Dart type. final name = (node.type.type as PrimitiveType).name; @@ -1608,7 +1621,7 @@ class _InterfaceReturnBox extends TypeVisitor { // Casting is done to create a new global reference. The user might // use the original reference elsewhere and so the original object // should not be `setAsReleased`. - return '(\$r as $_jObject).castTo(const ${_jObject}Type())' + return '(\$r as $_jObject).as(const ${_jObject}Type())' '.reference.toPointer()'; } diff --git a/pkgs/jnigen/lib/src/bindings/renamer.dart b/pkgs/jnigen/lib/src/bindings/renamer.dart index c3178e41d..b5a0b34c2 100644 --- a/pkgs/jnigen/lib/src/bindings/renamer.dart +++ b/pkgs/jnigen/lib/src/bindings/renamer.dart @@ -7,70 +7,80 @@ import '../elements/elements.dart'; import '../logging/logging.dart'; import 'visitor.dart'; -const Set _keywords = { - 'abstract', - 'as', - 'assert', - 'async', - 'await', - 'break', - 'case', - 'catch', - 'class', - 'const', - 'continue', - 'covariant', - 'default', - 'deferred', - 'do', - 'dynamic', - 'else', - 'enum', - 'export', - 'extends', - 'extension', - 'external', - 'factory', - 'false', - 'final', - 'finally', - 'for', - 'Function', - 'get', - 'hide', - 'if', - 'implements', - 'import', - 'in', - 'interface', - 'is', - 'late', - 'library', - 'mixin', - 'new', - 'null', - 'on', - 'operator', - 'part', - 'required', - 'rethrow', - 'return', - 'set', - 'show', - 'static', - 'super', - 'switch', - 'sync', - 'this', - 'throw', - 'true', - 'try', - 'typedef', - 'var', - 'void', - 'while', - 'with', - 'yield', +class _Allowed { + static const none = 0; + static const fields = 1 << 0; + static const methods = 1 << 1; + static const classes = 1 << 2; + static const all = fields | methods | classes; +} + +enum _ElementKind { + field, + method, + klass; + + bool isAllowed(String identifier) { + return 1 << index & (_keywords[identifier] ?? _Allowed.all) != 0; + } +} + +const _keywords = { + 'abstract': _Allowed.fields | _Allowed.methods, + 'assert': _Allowed.none, + 'await': _Allowed.none, // Cannot be used in async context + 'break': _Allowed.none, + 'case': _Allowed.none, + 'catch': _Allowed.none, + 'class': _Allowed.none, + 'const': _Allowed.none, + 'continue': _Allowed.none, + 'covariant': _Allowed.fields | _Allowed.methods, + 'default': _Allowed.none, + 'deferred': _Allowed.fields | _Allowed.methods, + 'do': _Allowed.none, + 'dynamic': _Allowed.fields | _Allowed.methods, + 'else': _Allowed.none, + 'enum': _Allowed.none, + 'export': _Allowed.fields | _Allowed.methods, + 'extends': _Allowed.none, + 'extension': _Allowed.fields | _Allowed.methods, + 'external': _Allowed.fields | _Allowed.methods, + 'factory': _Allowed.fields | _Allowed.fields, + 'false': _Allowed.none, + 'final': _Allowed.none, + 'finally': _Allowed.none, + 'for': _Allowed.none, + 'Function': _Allowed.fields | _Allowed.methods, + 'if': _Allowed.none, + 'implements': _Allowed.fields | _Allowed.methods, + 'import': _Allowed.methods, + 'in': _Allowed.none, + 'interface': _Allowed.fields | _Allowed.methods, + 'is': _Allowed.none, + 'late': _Allowed.fields | _Allowed.methods, + 'library': _Allowed.fields | _Allowed.methods, + 'mixin': _Allowed.fields | _Allowed.methods, + 'new': _Allowed.none, + 'null': _Allowed.none, + 'operator': _Allowed.fields | _Allowed.methods, + 'part': _Allowed.fields | _Allowed.methods, + 'required': _Allowed.fields | _Allowed.methods, + 'rethrow': _Allowed.none, + 'return': _Allowed.none, + 'static': _Allowed.fields | _Allowed.methods, + 'super': _Allowed.none, + 'switch': _Allowed.none, + 'this': _Allowed.none, + 'throw': _Allowed.none, + 'true': _Allowed.none, + 'try': _Allowed.none, + 'typedef': _Allowed.fields | _Allowed.methods, + 'var': _Allowed.none, + 'void': _Allowed.none, + 'while': _Allowed.none, + 'with': _Allowed.none, + 'yield': _Allowed.none, // Cannot be used in async context }; /// Methods & properties already defined by dart JObject base class. @@ -78,6 +88,7 @@ const Set _keywords = { /// If a second method or field has the same name, it will be appended by a /// numeric suffix. const Map _definedSyms = { + 'as': 1, 'fromReference': 1, 'toString': 1, 'hashCode': 1, @@ -111,10 +122,11 @@ String _preprocess(String name) { /// Examples: /// * `yield` -> `yield$` /// * `foo` -> `foo` -String _keywordRename(String name) => - _keywords.contains(name) ? '$name\$' : name; +String _keywordRename(String name, _ElementKind kind) => + kind.isAllowed(name) ? name : '$name\$'; -String _renameConflict(Map counts, String name) { +String _renameConflict( + Map counts, String name, _ElementKind kind) { if (counts.containsKey(name)) { final count = counts[name]!; final renamed = '$name\$$count'; @@ -122,7 +134,7 @@ String _renameConflict(Map counts, String name) { return renamed; } counts[name] = 1; - return _keywordRename(name); + return _keywordRename(name, kind); } class Renamer implements Visitor { @@ -173,10 +185,10 @@ class _ClassRenamer implements Visitor { // the names need to be unique. final uniquifyName = config.outputConfig.dartConfig.structure == OutputStructure.singleFile; - node.finalName = - uniquifyName ? _renameConflict(classNameCounts, className) : className; - // TODO(#143): $ at the beginning is a temporary fix for the name collision. - node.typeClassName = '\$${node.finalName}Type'; + node.finalName = uniquifyName + ? _renameConflict(classNameCounts, className, _ElementKind.klass) + : className; + node.typeClassName = '\$${node.finalName}\$Type'; log.fine('Class ${node.binaryName} is named ${node.finalName}'); final superClass = (node.superclass!.type as DeclaredType).classDecl; @@ -219,11 +231,12 @@ class _MethodRenamer implements Visitor { // Don't rename if superNum == 0 // Unless the node name is a keyword. final superNumText = superNum == 0 ? '' : '$superNum'; - final methodName = superNum == 0 ? _keywordRename(name) : name; + final methodName = + superNum == 0 ? _keywordRename(name, _ElementKind.method) : name; node.finalName = '$methodName$superNumText'; node.classDecl.methodNumsAfterRenaming[sig] = superNum; } else { - node.finalName = _renameConflict(nameCounts, name); + node.finalName = _renameConflict(nameCounts, name, _ElementKind.method); node.classDecl.methodNumsAfterRenaming[sig] = nameCounts[name]! - 1; } log.fine('Method ${node.classDecl.binaryName}#${node.name}' @@ -252,7 +265,7 @@ class _FieldRenamer implements Visitor { @override void visit(Field node) { final fieldName = _preprocess(node.name); - node.finalName = _renameConflict(nameCounts, fieldName); + node.finalName = _renameConflict(nameCounts, fieldName, _ElementKind.field); log.fine('Field ${node.classDecl.binaryName}#${node.name}' ' is named ${node.finalName}'); } @@ -265,6 +278,6 @@ class _ParamRenamer implements Visitor { @override void visit(Param node) { - node.finalName = _keywordRename(node.name); + node.finalName = _keywordRename(node.name, _ElementKind.field); } } diff --git a/pkgs/jnigen/lib/src/bindings/resolver.dart b/pkgs/jnigen/lib/src/bindings/resolver.dart index 1ad96d729..a6805237c 100644 --- a/pkgs/jnigen/lib/src/bindings/resolver.dart +++ b/pkgs/jnigen/lib/src/bindings/resolver.dart @@ -51,8 +51,7 @@ class Resolver { /// Get the prefix for the class String resolvePrefix(ClassDecl classDecl) { if (classDecl.path == 'package:jni/jni.dart') { - // For package:jni we don't use a leading underscore. - return 'jni.'; + return '_\$jni.'; } final binaryName = classDecl.binaryName; final target = getFileClassName(binaryName); diff --git a/pkgs/jnigen/lib/src/elements/elements.dart b/pkgs/jnigen/lib/src/elements/elements.dart index 8065d5683..b22656216 100644 --- a/pkgs/jnigen/lib/src/elements/elements.dart +++ b/pkgs/jnigen/lib/src/elements/elements.dart @@ -270,7 +270,7 @@ class PrimitiveType extends ReferredType { dartType: 'int', boxedName: 'Byte', cType: 'int8_t', - ffiVarArgType: '\$Int32', + ffiVarArgType: 'Int32', ), 'short': PrimitiveType._( name: 'short', @@ -278,7 +278,7 @@ class PrimitiveType extends ReferredType { dartType: 'int', boxedName: 'Short', cType: 'int16_t', - ffiVarArgType: '\$Int32', + ffiVarArgType: 'Int32', ), 'char': PrimitiveType._( name: 'char', @@ -286,7 +286,7 @@ class PrimitiveType extends ReferredType { dartType: 'int', boxedName: 'Character', cType: 'uint16_t', - ffiVarArgType: '\$Int32', + ffiVarArgType: 'Int32', ), 'int': PrimitiveType._( name: 'int', @@ -294,7 +294,7 @@ class PrimitiveType extends ReferredType { dartType: 'int', boxedName: 'Integer', cType: 'int32_t', - ffiVarArgType: '\$Int32', + ffiVarArgType: 'Int32', ), 'long': PrimitiveType._( name: 'long', @@ -302,7 +302,7 @@ class PrimitiveType extends ReferredType { dartType: 'int', boxedName: 'Long', cType: 'int64_t', - ffiVarArgType: 'ffi.Int64', + ffiVarArgType: 'Int64', ), 'float': PrimitiveType._( name: 'float', @@ -310,7 +310,7 @@ class PrimitiveType extends ReferredType { dartType: 'double', boxedName: 'Float', cType: 'float', - ffiVarArgType: 'ffi.Double', + ffiVarArgType: 'Double', ), 'double': PrimitiveType._( name: 'double', @@ -318,7 +318,7 @@ class PrimitiveType extends ReferredType { dartType: 'double', boxedName: 'Double', cType: 'double', - ffiVarArgType: 'ffi.Double', + ffiVarArgType: 'Double', ), 'boolean': PrimitiveType._( name: 'boolean', @@ -326,7 +326,7 @@ class PrimitiveType extends ReferredType { dartType: 'bool', boxedName: 'Boolean', cType: 'uint8_t', - ffiVarArgType: '\$Int32', + ffiVarArgType: 'Int32', ), 'void': PrimitiveType._( name: 'void', @@ -334,7 +334,7 @@ class PrimitiveType extends ReferredType { dartType: 'void', boxedName: 'Void', // Not used. cType: 'void', - ffiVarArgType: 'ffi.Void', // Not used. + ffiVarArgType: 'Void', // Not used. ), }; diff --git a/pkgs/jnigen/test/jackson_core_test/third_party/bindings/com/fasterxml/jackson/core/JsonFactory.dart b/pkgs/jnigen/test/jackson_core_test/third_party/bindings/com/fasterxml/jackson/core/JsonFactory.dart index bf24fe2f9..67b312dc2 100644 --- a/pkgs/jnigen/test/jackson_core_test/third_party/bindings/com/fasterxml/jackson/core/JsonFactory.dart +++ b/pkgs/jnigen/test/jackson_core_test/third_party/bindings/com/fasterxml/jackson/core/JsonFactory.dart @@ -26,7 +26,9 @@ // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter // ignore_for_file: invalid_use_of_internal_member +// ignore_for_file: library_prefixes // ignore_for_file: lines_longer_than_80_chars +// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_local_identifiers // ignore_for_file: non_constant_identifier_names // ignore_for_file: only_throw_errors @@ -42,11 +44,11 @@ // ignore_for_file: unused_shown_name // ignore_for_file: use_super_parameters -import 'dart:ffi' as ffi; -import 'dart:isolate' show RawReceivePort, ReceivePort; +import 'dart:core' show Object, String, bool, double, int; +import 'dart:core' as _$core; -import 'package:jni/_internal.dart'; -import 'package:jni/jni.dart' as jni; +import 'package:jni/_internal.dart' as _$jni; +import 'package:jni/jni.dart' as _$jni; import 'JsonParser.dart' as jsonparser_; @@ -54,41 +56,44 @@ import 'JsonParser.dart' as jsonparser_; /// /// Enumeration that defines all on/off features that can only be /// changed for JsonFactory. -class JsonFactory_Feature extends jni.JObject { - @override - late final jni.JObjType $type = type; +class JsonFactory_Feature extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal JsonFactory_Feature.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); static final _class = - jni.JClass.forName(r'com/fasterxml/jackson/core/JsonFactory$Feature'); + _$jni.JClass.forName(r'com/fasterxml/jackson/core/JsonFactory$Feature'); /// The type which includes information such as the signature of this class. - static const type = $JsonFactory_FeatureType(); + static const type = $JsonFactory_Feature$Type(); static final _id_values = _class.staticMethodId( r'values', r'()[Lcom/fasterxml/jackson/core/JsonFactory$Feature;', ); - static final _values = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _values = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public com.fasterxml.jackson.core.JsonFactory.Feature[] values()` /// The returned object must be released after use, by calling the [release] method. - static jni.JArray values() { - return _values(_class.reference.pointer, _id_values as jni.JMethodIDPtr) - .object(const jni.JArrayType($JsonFactory_FeatureType())); + static _$jni.JArray values() { + return _values(_class.reference.pointer, _id_values as _$jni.JMethodIDPtr) + .object(const _$jni.JArrayType($JsonFactory_Feature$Type())); } static final _id_valueOf = _class.staticMethodId( @@ -96,25 +101,25 @@ class JsonFactory_Feature extends jni.JObject { r'(Ljava/lang/String;)Lcom/fasterxml/jackson/core/JsonFactory$Feature;', ); - static final _valueOf = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _valueOf = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `static public com.fasterxml.jackson.core.JsonFactory.Feature valueOf(java.lang.String name)` /// The returned object must be released after use, by calling the [release] method. static JsonFactory_Feature valueOf( - jni.JString name, + _$jni.JString name, ) { - return _valueOf(_class.reference.pointer, _id_valueOf as jni.JMethodIDPtr, + return _valueOf(_class.reference.pointer, _id_valueOf as _$jni.JMethodIDPtr, name.reference.pointer) - .object(const $JsonFactory_FeatureType()); + .object(const $JsonFactory_Feature$Type()); } static final _id_collectDefaults = _class.staticMethodId( @@ -122,16 +127,16 @@ class JsonFactory_Feature extends jni.JObject { r'()I', ); - static final _collectDefaults = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _collectDefaults = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public int collectDefaults()` @@ -141,7 +146,7 @@ class JsonFactory_Feature extends jni.JObject { ///@return Bit field of features enabled by default static int collectDefaults() { return _collectDefaults( - _class.reference.pointer, _id_collectDefaults as jni.JMethodIDPtr) + _class.reference.pointer, _id_collectDefaults as _$jni.JMethodIDPtr) .integer; } @@ -150,22 +155,22 @@ class JsonFactory_Feature extends jni.JObject { r'()Z', ); - static final _enabledByDefault = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _enabledByDefault = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public boolean enabledByDefault()` bool enabledByDefault() { return _enabledByDefault( - reference.pointer, _id_enabledByDefault as jni.JMethodIDPtr) + reference.pointer, _id_enabledByDefault as _$jni.JMethodIDPtr) .boolean; } @@ -174,20 +179,23 @@ class JsonFactory_Feature extends jni.JObject { r'(I)Z', ); - static final _enabledIn = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallBooleanMethod') + static final _enabledIn = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public boolean enabledIn(int flags)` bool enabledIn( int flags, ) { return _enabledIn( - reference.pointer, _id_enabledIn as jni.JMethodIDPtr, flags) + reference.pointer, _id_enabledIn as _$jni.JMethodIDPtr, flags) .boolean; } @@ -196,47 +204,54 @@ class JsonFactory_Feature extends jni.JObject { r'()I', ); - static final _getMask = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getMask = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public int getMask()` int getMask() { - return _getMask(reference.pointer, _id_getMask as jni.JMethodIDPtr).integer; + return _getMask(reference.pointer, _id_getMask as _$jni.JMethodIDPtr) + .integer; } } -final class $JsonFactory_FeatureType extends jni.JObjType { - const $JsonFactory_FeatureType(); +final class $JsonFactory_Feature$Type + extends _$jni.JObjType { + @_$jni.internal + const $JsonFactory_Feature$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/fasterxml/jackson/core/JsonFactory$Feature;'; - @override - JsonFactory_Feature fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + JsonFactory_Feature fromReference(_$jni.JReference reference) => JsonFactory_Feature.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($JsonFactory_FeatureType).hashCode; + @_$core.override + int get hashCode => ($JsonFactory_Feature$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($JsonFactory_FeatureType) && - other is $JsonFactory_FeatureType; + return other.runtimeType == ($JsonFactory_Feature$Type) && + other is $JsonFactory_Feature$Type; } } @@ -259,19 +274,22 @@ final class $JsonFactory_FeatureType extends jni.JObjType { /// the default constructor is used for constructing factory /// instances. ///@author Tatu Saloranta -class JsonFactory extends jni.JObject { - @override - late final jni.JObjType $type = type; +class JsonFactory extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal JsonFactory.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); static final _class = - jni.JClass.forName(r'com/fasterxml/jackson/core/JsonFactory'); + _$jni.JClass.forName(r'com/fasterxml/jackson/core/JsonFactory'); /// The type which includes information such as the signature of this class. - static const type = $JsonFactoryType(); + static const type = $JsonFactory$Type(); static final _id_FORMAT_NAME_JSON = _class.staticFieldId( r'FORMAT_NAME_JSON', r'Ljava/lang/String;', @@ -282,8 +300,8 @@ class JsonFactory extends jni.JObject { /// /// Name used to identify JSON format /// (and returned by \#getFormatName() - static jni.JString get FORMAT_NAME_JSON => - _id_FORMAT_NAME_JSON.get(_class, const jni.JStringType()); + static _$jni.JString get FORMAT_NAME_JSON => + _id_FORMAT_NAME_JSON.get(_class, const _$jni.JStringType()); static final _id_DEFAULT_ROOT_VALUE_SEPARATOR = _class.staticFieldId( r'DEFAULT_ROOT_VALUE_SEPARATOR', @@ -292,8 +310,8 @@ class JsonFactory extends jni.JObject { /// from: `static public final com.fasterxml.jackson.core.SerializableString DEFAULT_ROOT_VALUE_SEPARATOR` /// The returned object must be released after use, by calling the [release] method. - static jni.JObject get DEFAULT_ROOT_VALUE_SEPARATOR => - _id_DEFAULT_ROOT_VALUE_SEPARATOR.get(_class, const jni.JObjectType()); + static _$jni.JObject get DEFAULT_ROOT_VALUE_SEPARATOR => + _id_DEFAULT_ROOT_VALUE_SEPARATOR.get(_class, const _$jni.JObjectType()); /// from: `static public final char DEFAULT_QUOTE_CHAR` /// @@ -303,16 +321,16 @@ class JsonFactory extends jni.JObject { r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` @@ -328,7 +346,7 @@ class JsonFactory extends jni.JObject { /// factory instance. factory JsonFactory() { return JsonFactory.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } @@ -336,24 +354,24 @@ class JsonFactory extends jni.JObject { r'(Lcom/fasterxml/jackson/core/ObjectCodec;)V', ); - static final _new$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _new$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_NewObject') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void (com.fasterxml.jackson.core.ObjectCodec oc)` /// The returned object must be released after use, by calling the [release] method. factory JsonFactory.new$1( - jni.JObject oc, + _$jni.JObject oc, ) { return JsonFactory.fromReference(_new$1(_class.reference.pointer, - _id_new$1 as jni.JMethodIDPtr, oc.reference.pointer) + _id_new$1 as _$jni.JMethodIDPtr, oc.reference.pointer) .reference); } @@ -361,16 +379,16 @@ class JsonFactory extends jni.JObject { r'(Lcom/fasterxml/jackson/core/JsonFactoryBuilder;)V', ); - static final _new$2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _new$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_NewObject') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void (com.fasterxml.jackson.core.JsonFactoryBuilder b)` /// The returned object must be released after use, by calling the [release] method. @@ -379,10 +397,10 @@ class JsonFactory extends jni.JObject { ///@param b Builder that contains settings to use ///@since 2.10 factory JsonFactory.new$2( - jni.JObject b, + _$jni.JObject b, ) { return JsonFactory.fromReference(_new$2(_class.reference.pointer, - _id_new$2 as jni.JMethodIDPtr, b.reference.pointer) + _id_new$2 as _$jni.JMethodIDPtr, b.reference.pointer) .reference); } @@ -391,16 +409,16 @@ class JsonFactory extends jni.JObject { r'()Lcom/fasterxml/jackson/core/TSFBuilder;', ); - static final _rebuild = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _rebuild = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public com.fasterxml.jackson.core.TSFBuilder rebuild()` @@ -410,9 +428,9 @@ class JsonFactory extends jni.JObject { /// with settings of this factory. ///@return Builder instance to use ///@since 2.10 - jni.JObject rebuild() { - return _rebuild(reference.pointer, _id_rebuild as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + _$jni.JObject rebuild() { + return _rebuild(reference.pointer, _id_rebuild as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_builder = _class.staticMethodId( @@ -420,16 +438,16 @@ class JsonFactory extends jni.JObject { r'()Lcom/fasterxml/jackson/core/TSFBuilder;', ); - static final _builder = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _builder = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public com.fasterxml.jackson.core.TSFBuilder builder()` @@ -443,9 +461,9 @@ class JsonFactory extends jni.JObject { /// NOTE: signature unfortunately does not expose true implementation type; this /// will be fixed in 3.0. ///@return Builder instance to use - static jni.JObject builder() { - return _builder(_class.reference.pointer, _id_builder as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + static _$jni.JObject builder() { + return _builder(_class.reference.pointer, _id_builder as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_copy = _class.instanceMethodId( @@ -453,16 +471,16 @@ class JsonFactory extends jni.JObject { r'()Lcom/fasterxml/jackson/core/JsonFactory;', ); - static final _copy = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _copy = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public com.fasterxml.jackson.core.JsonFactory copy()` @@ -481,8 +499,8 @@ class JsonFactory extends jni.JObject { ///@return Copy of this factory instance ///@since 2.1 JsonFactory copy() { - return _copy(reference.pointer, _id_copy as jni.JMethodIDPtr) - .object(const $JsonFactoryType()); + return _copy(reference.pointer, _id_copy as _$jni.JMethodIDPtr) + .object(const $JsonFactory$Type()); } static final _id_requiresPropertyOrdering = _class.instanceMethodId( @@ -490,16 +508,16 @@ class JsonFactory extends jni.JObject { r'()Z', ); - static final _requiresPropertyOrdering = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _requiresPropertyOrdering = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public boolean requiresPropertyOrdering()` @@ -519,8 +537,8 @@ class JsonFactory extends jni.JObject { /// requires Object properties to be ordered. ///@since 2.3 bool requiresPropertyOrdering() { - return _requiresPropertyOrdering( - reference.pointer, _id_requiresPropertyOrdering as jni.JMethodIDPtr) + return _requiresPropertyOrdering(reference.pointer, + _id_requiresPropertyOrdering as _$jni.JMethodIDPtr) .boolean; } @@ -529,16 +547,16 @@ class JsonFactory extends jni.JObject { r'()Z', ); - static final _canHandleBinaryNatively = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _canHandleBinaryNatively = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public boolean canHandleBinaryNatively()` @@ -555,8 +573,8 @@ class JsonFactory extends jni.JObject { /// supports native binary content ///@since 2.3 bool canHandleBinaryNatively() { - return _canHandleBinaryNatively( - reference.pointer, _id_canHandleBinaryNatively as jni.JMethodIDPtr) + return _canHandleBinaryNatively(reference.pointer, + _id_canHandleBinaryNatively as _$jni.JMethodIDPtr) .boolean; } @@ -565,16 +583,16 @@ class JsonFactory extends jni.JObject { r'()Z', ); - static final _canUseCharArrays = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _canUseCharArrays = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public boolean canUseCharArrays()` @@ -592,7 +610,7 @@ class JsonFactory extends jni.JObject { ///@since 2.4 bool canUseCharArrays() { return _canUseCharArrays( - reference.pointer, _id_canUseCharArrays as jni.JMethodIDPtr) + reference.pointer, _id_canUseCharArrays as _$jni.JMethodIDPtr) .boolean; } @@ -601,16 +619,16 @@ class JsonFactory extends jni.JObject { r'()Z', ); - static final _canParseAsync = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _canParseAsync = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public boolean canParseAsync()` @@ -624,7 +642,7 @@ class JsonFactory extends jni.JObject { ///@since 2.9 bool canParseAsync() { return _canParseAsync( - reference.pointer, _id_canParseAsync as jni.JMethodIDPtr) + reference.pointer, _id_canParseAsync as _$jni.JMethodIDPtr) .boolean; } @@ -633,24 +651,24 @@ class JsonFactory extends jni.JObject { r'()Ljava/lang/Class;', ); - static final _getFormatReadFeatureType = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getFormatReadFeatureType = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.Class getFormatReadFeatureType()` /// The returned object must be released after use, by calling the [release] method. - jni.JObject getFormatReadFeatureType() { - return _getFormatReadFeatureType( - reference.pointer, _id_getFormatReadFeatureType as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + _$jni.JObject getFormatReadFeatureType() { + return _getFormatReadFeatureType(reference.pointer, + _id_getFormatReadFeatureType as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_getFormatWriteFeatureType = _class.instanceMethodId( @@ -658,24 +676,24 @@ class JsonFactory extends jni.JObject { r'()Ljava/lang/Class;', ); - static final _getFormatWriteFeatureType = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getFormatWriteFeatureType = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.Class getFormatWriteFeatureType()` /// The returned object must be released after use, by calling the [release] method. - jni.JObject getFormatWriteFeatureType() { + _$jni.JObject getFormatWriteFeatureType() { return _getFormatWriteFeatureType(reference.pointer, - _id_getFormatWriteFeatureType as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + _id_getFormatWriteFeatureType as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_canUseSchema = _class.instanceMethodId( @@ -683,16 +701,16 @@ class JsonFactory extends jni.JObject { r'(Lcom/fasterxml/jackson/core/FormatSchema;)Z', ); - static final _canUseSchema = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _canUseSchema = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public boolean canUseSchema(com.fasterxml.jackson.core.FormatSchema schema)` /// @@ -706,10 +724,10 @@ class JsonFactory extends jni.JObject { ///@return Whether parsers and generators constructed by this factory /// can use specified format schema instance bool canUseSchema( - jni.JObject schema, + _$jni.JObject schema, ) { return _canUseSchema(reference.pointer, - _id_canUseSchema as jni.JMethodIDPtr, schema.reference.pointer) + _id_canUseSchema as _$jni.JMethodIDPtr, schema.reference.pointer) .boolean; } @@ -718,16 +736,16 @@ class JsonFactory extends jni.JObject { r'()Ljava/lang/String;', ); - static final _getFormatName = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getFormatName = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.String getFormatName()` @@ -739,10 +757,10 @@ class JsonFactory extends jni.JObject { /// Note: sub-classes should override this method; default /// implementation will return null for all sub-classes ///@return Name of the format handled by parsers, generators this factory creates - jni.JString getFormatName() { + _$jni.JString getFormatName() { return _getFormatName( - reference.pointer, _id_getFormatName as jni.JMethodIDPtr) - .object(const jni.JStringType()); + reference.pointer, _id_getFormatName as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_hasFormat = _class.instanceMethodId( @@ -750,25 +768,25 @@ class JsonFactory extends jni.JObject { r'(Lcom/fasterxml/jackson/core/format/InputAccessor;)Lcom/fasterxml/jackson/core/format/MatchStrength;', ); - static final _hasFormat = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _hasFormat = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.format.MatchStrength hasFormat(com.fasterxml.jackson.core.format.InputAccessor acc)` /// The returned object must be released after use, by calling the [release] method. - jni.JObject hasFormat( - jni.JObject acc, + _$jni.JObject hasFormat( + _$jni.JObject acc, ) { - return _hasFormat(reference.pointer, _id_hasFormat as jni.JMethodIDPtr, + return _hasFormat(reference.pointer, _id_hasFormat as _$jni.JMethodIDPtr, acc.reference.pointer) - .object(const jni.JObjectType()); + .object(const _$jni.JObjectType()); } static final _id_requiresCustomCodec = _class.instanceMethodId( @@ -776,16 +794,16 @@ class JsonFactory extends jni.JObject { r'()Z', ); - static final _requiresCustomCodec = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _requiresCustomCodec = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public boolean requiresCustomCodec()` @@ -801,7 +819,7 @@ class JsonFactory extends jni.JObject { ///@since 2.1 bool requiresCustomCodec() { return _requiresCustomCodec( - reference.pointer, _id_requiresCustomCodec as jni.JMethodIDPtr) + reference.pointer, _id_requiresCustomCodec as _$jni.JMethodIDPtr) .boolean; } @@ -810,23 +828,23 @@ class JsonFactory extends jni.JObject { r'()Lcom/fasterxml/jackson/core/Version;', ); - static final _version = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _version = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public com.fasterxml.jackson.core.Version version()` /// The returned object must be released after use, by calling the [release] method. - jni.JObject version() { - return _version(reference.pointer, _id_version as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + _$jni.JObject version() { + return _version(reference.pointer, _id_version as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_configure = _class.instanceMethodId( @@ -834,16 +852,17 @@ class JsonFactory extends jni.JObject { r'(Lcom/fasterxml/jackson/core/JsonFactory$Feature;Z)Lcom/fasterxml/jackson/core/JsonFactory;', ); - static final _configure = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer, $Int32)>)>>( + static final _configure = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Int32)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int)>(); /// from: `public final com.fasterxml.jackson.core.JsonFactory configure(com.fasterxml.jackson.core.JsonFactory.Feature f, boolean state)` /// The returned object must be released after use, by calling the [release] method. @@ -858,9 +877,9 @@ class JsonFactory extends jni.JObject { JsonFactory_Feature f, bool state, ) { - return _configure(reference.pointer, _id_configure as jni.JMethodIDPtr, + return _configure(reference.pointer, _id_configure as _$jni.JMethodIDPtr, f.reference.pointer, state ? 1 : 0) - .object(const $JsonFactoryType()); + .object(const $JsonFactory$Type()); } static final _id_enable = _class.instanceMethodId( @@ -868,16 +887,16 @@ class JsonFactory extends jni.JObject { r'(Lcom/fasterxml/jackson/core/JsonFactory$Feature;)Lcom/fasterxml/jackson/core/JsonFactory;', ); - static final _enable = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _enable = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonFactory enable(com.fasterxml.jackson.core.JsonFactory.Feature f)` /// The returned object must be released after use, by calling the [release] method. @@ -890,9 +909,9 @@ class JsonFactory extends jni.JObject { JsonFactory enable( JsonFactory_Feature f, ) { - return _enable(reference.pointer, _id_enable as jni.JMethodIDPtr, + return _enable(reference.pointer, _id_enable as _$jni.JMethodIDPtr, f.reference.pointer) - .object(const $JsonFactoryType()); + .object(const $JsonFactory$Type()); } static final _id_disable = _class.instanceMethodId( @@ -900,16 +919,16 @@ class JsonFactory extends jni.JObject { r'(Lcom/fasterxml/jackson/core/JsonFactory$Feature;)Lcom/fasterxml/jackson/core/JsonFactory;', ); - static final _disable = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _disable = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonFactory disable(com.fasterxml.jackson.core.JsonFactory.Feature f)` /// The returned object must be released after use, by calling the [release] method. @@ -922,9 +941,9 @@ class JsonFactory extends jni.JObject { JsonFactory disable( JsonFactory_Feature f, ) { - return _disable(reference.pointer, _id_disable as jni.JMethodIDPtr, + return _disable(reference.pointer, _id_disable as _$jni.JMethodIDPtr, f.reference.pointer) - .object(const $JsonFactoryType()); + .object(const $JsonFactory$Type()); } static final _id_isEnabled = _class.instanceMethodId( @@ -932,16 +951,16 @@ class JsonFactory extends jni.JObject { r'(Lcom/fasterxml/jackson/core/JsonFactory$Feature;)Z', ); - static final _isEnabled = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _isEnabled = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public final boolean isEnabled(com.fasterxml.jackson.core.JsonFactory.Feature f)` /// @@ -951,7 +970,7 @@ class JsonFactory extends jni.JObject { bool isEnabled( JsonFactory_Feature f, ) { - return _isEnabled(reference.pointer, _id_isEnabled as jni.JMethodIDPtr, + return _isEnabled(reference.pointer, _id_isEnabled as _$jni.JMethodIDPtr, f.reference.pointer) .boolean; } @@ -961,22 +980,22 @@ class JsonFactory extends jni.JObject { r'()I', ); - static final _getParserFeatures = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getParserFeatures = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public final int getParserFeatures()` int getParserFeatures() { return _getParserFeatures( - reference.pointer, _id_getParserFeatures as jni.JMethodIDPtr) + reference.pointer, _id_getParserFeatures as _$jni.JMethodIDPtr) .integer; } @@ -985,22 +1004,22 @@ class JsonFactory extends jni.JObject { r'()I', ); - static final _getGeneratorFeatures = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getGeneratorFeatures = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public final int getGeneratorFeatures()` int getGeneratorFeatures() { return _getGeneratorFeatures( - reference.pointer, _id_getGeneratorFeatures as jni.JMethodIDPtr) + reference.pointer, _id_getGeneratorFeatures as _$jni.JMethodIDPtr) .integer; } @@ -1009,22 +1028,22 @@ class JsonFactory extends jni.JObject { r'()I', ); - static final _getFormatParserFeatures = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getFormatParserFeatures = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public int getFormatParserFeatures()` int getFormatParserFeatures() { - return _getFormatParserFeatures( - reference.pointer, _id_getFormatParserFeatures as jni.JMethodIDPtr) + return _getFormatParserFeatures(reference.pointer, + _id_getFormatParserFeatures as _$jni.JMethodIDPtr) .integer; } @@ -1033,22 +1052,23 @@ class JsonFactory extends jni.JObject { r'()I', ); - static final _getFormatGeneratorFeatures = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + static final _getFormatGeneratorFeatures = + _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); /// from: `public int getFormatGeneratorFeatures()` int getFormatGeneratorFeatures() { return _getFormatGeneratorFeatures(reference.pointer, - _id_getFormatGeneratorFeatures as jni.JMethodIDPtr) + _id_getFormatGeneratorFeatures as _$jni.JMethodIDPtr) .integer; } @@ -1057,16 +1077,17 @@ class JsonFactory extends jni.JObject { r'(Lcom/fasterxml/jackson/core/JsonParser$Feature;Z)Lcom/fasterxml/jackson/core/JsonFactory;', ); - static final _configure$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer, $Int32)>)>>( + static final _configure$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Int32)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int)>(); /// from: `public final com.fasterxml.jackson.core.JsonFactory configure(com.fasterxml.jackson.core.JsonParser.Feature f, boolean state)` /// The returned object must be released after use, by calling the [release] method. @@ -1080,9 +1101,12 @@ class JsonFactory extends jni.JObject { jsonparser_.JsonParser_Feature f, bool state, ) { - return _configure$1(reference.pointer, _id_configure$1 as jni.JMethodIDPtr, - f.reference.pointer, state ? 1 : 0) - .object(const $JsonFactoryType()); + return _configure$1( + reference.pointer, + _id_configure$1 as _$jni.JMethodIDPtr, + f.reference.pointer, + state ? 1 : 0) + .object(const $JsonFactory$Type()); } static final _id_enable$1 = _class.instanceMethodId( @@ -1090,16 +1114,16 @@ class JsonFactory extends jni.JObject { r'(Lcom/fasterxml/jackson/core/JsonParser$Feature;)Lcom/fasterxml/jackson/core/JsonFactory;', ); - static final _enable$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _enable$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonFactory enable(com.fasterxml.jackson.core.JsonParser.Feature f)` /// The returned object must be released after use, by calling the [release] method. @@ -1111,9 +1135,9 @@ class JsonFactory extends jni.JObject { JsonFactory enable$1( jsonparser_.JsonParser_Feature f, ) { - return _enable$1(reference.pointer, _id_enable$1 as jni.JMethodIDPtr, + return _enable$1(reference.pointer, _id_enable$1 as _$jni.JMethodIDPtr, f.reference.pointer) - .object(const $JsonFactoryType()); + .object(const $JsonFactory$Type()); } static final _id_disable$1 = _class.instanceMethodId( @@ -1121,16 +1145,16 @@ class JsonFactory extends jni.JObject { r'(Lcom/fasterxml/jackson/core/JsonParser$Feature;)Lcom/fasterxml/jackson/core/JsonFactory;', ); - static final _disable$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _disable$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonFactory disable(com.fasterxml.jackson.core.JsonParser.Feature f)` /// The returned object must be released after use, by calling the [release] method. @@ -1142,9 +1166,9 @@ class JsonFactory extends jni.JObject { JsonFactory disable$1( jsonparser_.JsonParser_Feature f, ) { - return _disable$1(reference.pointer, _id_disable$1 as jni.JMethodIDPtr, + return _disable$1(reference.pointer, _id_disable$1 as _$jni.JMethodIDPtr, f.reference.pointer) - .object(const $JsonFactoryType()); + .object(const $JsonFactory$Type()); } static final _id_isEnabled$1 = _class.instanceMethodId( @@ -1152,16 +1176,16 @@ class JsonFactory extends jni.JObject { r'(Lcom/fasterxml/jackson/core/JsonParser$Feature;)Z', ); - static final _isEnabled$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _isEnabled$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public final boolean isEnabled(com.fasterxml.jackson.core.JsonParser.Feature f)` /// @@ -1171,8 +1195,8 @@ class JsonFactory extends jni.JObject { bool isEnabled$1( jsonparser_.JsonParser_Feature f, ) { - return _isEnabled$1(reference.pointer, _id_isEnabled$1 as jni.JMethodIDPtr, - f.reference.pointer) + return _isEnabled$1(reference.pointer, + _id_isEnabled$1 as _$jni.JMethodIDPtr, f.reference.pointer) .boolean; } @@ -1181,16 +1205,16 @@ class JsonFactory extends jni.JObject { r'(Lcom/fasterxml/jackson/core/StreamReadFeature;)Z', ); - static final _isEnabled$2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _isEnabled$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public final boolean isEnabled(com.fasterxml.jackson.core.StreamReadFeature f)` /// @@ -1199,10 +1223,10 @@ class JsonFactory extends jni.JObject { ///@return True if specified feature is enabled ///@since 2.10 bool isEnabled$2( - jni.JObject f, + _$jni.JObject f, ) { - return _isEnabled$2(reference.pointer, _id_isEnabled$2 as jni.JMethodIDPtr, - f.reference.pointer) + return _isEnabled$2(reference.pointer, + _id_isEnabled$2 as _$jni.JMethodIDPtr, f.reference.pointer) .boolean; } @@ -1211,16 +1235,16 @@ class JsonFactory extends jni.JObject { r'()Lcom/fasterxml/jackson/core/io/InputDecorator;', ); - static final _getInputDecorator = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getInputDecorator = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public com.fasterxml.jackson.core.io.InputDecorator getInputDecorator()` @@ -1229,10 +1253,10 @@ class JsonFactory extends jni.JObject { /// Method for getting currently configured input decorator (if any; /// there is no default decorator). ///@return InputDecorator configured, if any - jni.JObject getInputDecorator() { + _$jni.JObject getInputDecorator() { return _getInputDecorator( - reference.pointer, _id_getInputDecorator as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + reference.pointer, _id_getInputDecorator as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_setInputDecorator = _class.instanceMethodId( @@ -1240,16 +1264,16 @@ class JsonFactory extends jni.JObject { r'(Lcom/fasterxml/jackson/core/io/InputDecorator;)Lcom/fasterxml/jackson/core/JsonFactory;', ); - static final _setInputDecorator = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setInputDecorator = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonFactory setInputDecorator(com.fasterxml.jackson.core.io.InputDecorator d)` /// The returned object must be released after use, by calling the [release] method. @@ -1259,11 +1283,11 @@ class JsonFactory extends jni.JObject { ///@return This factory instance (to allow call chaining) ///@deprecated Since 2.10 use JsonFactoryBuilder\#inputDecorator(InputDecorator) instead JsonFactory setInputDecorator( - jni.JObject d, + _$jni.JObject d, ) { return _setInputDecorator(reference.pointer, - _id_setInputDecorator as jni.JMethodIDPtr, d.reference.pointer) - .object(const $JsonFactoryType()); + _id_setInputDecorator as _$jni.JMethodIDPtr, d.reference.pointer) + .object(const $JsonFactory$Type()); } static final _id_configure$2 = _class.instanceMethodId( @@ -1271,16 +1295,17 @@ class JsonFactory extends jni.JObject { r'(Lcom/fasterxml/jackson/core/JsonGenerator$Feature;Z)Lcom/fasterxml/jackson/core/JsonFactory;', ); - static final _configure$2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer, $Int32)>)>>( + static final _configure$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Int32)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int)>(); /// from: `public final com.fasterxml.jackson.core.JsonFactory configure(com.fasterxml.jackson.core.JsonGenerator.Feature f, boolean state)` /// The returned object must be released after use, by calling the [release] method. @@ -1291,12 +1316,15 @@ class JsonFactory extends jni.JObject { ///@param state Whether to enable or disable the feature ///@return This factory instance (to allow call chaining) JsonFactory configure$2( - jni.JObject f, + _$jni.JObject f, bool state, ) { - return _configure$2(reference.pointer, _id_configure$2 as jni.JMethodIDPtr, - f.reference.pointer, state ? 1 : 0) - .object(const $JsonFactoryType()); + return _configure$2( + reference.pointer, + _id_configure$2 as _$jni.JMethodIDPtr, + f.reference.pointer, + state ? 1 : 0) + .object(const $JsonFactory$Type()); } static final _id_enable$2 = _class.instanceMethodId( @@ -1304,16 +1332,16 @@ class JsonFactory extends jni.JObject { r'(Lcom/fasterxml/jackson/core/JsonGenerator$Feature;)Lcom/fasterxml/jackson/core/JsonFactory;', ); - static final _enable$2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _enable$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonFactory enable(com.fasterxml.jackson.core.JsonGenerator.Feature f)` /// The returned object must be released after use, by calling the [release] method. @@ -1323,11 +1351,11 @@ class JsonFactory extends jni.JObject { ///@param f Feature to enable ///@return This factory instance (to allow call chaining) JsonFactory enable$2( - jni.JObject f, + _$jni.JObject f, ) { - return _enable$2(reference.pointer, _id_enable$2 as jni.JMethodIDPtr, + return _enable$2(reference.pointer, _id_enable$2 as _$jni.JMethodIDPtr, f.reference.pointer) - .object(const $JsonFactoryType()); + .object(const $JsonFactory$Type()); } static final _id_disable$2 = _class.instanceMethodId( @@ -1335,16 +1363,16 @@ class JsonFactory extends jni.JObject { r'(Lcom/fasterxml/jackson/core/JsonGenerator$Feature;)Lcom/fasterxml/jackson/core/JsonFactory;', ); - static final _disable$2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _disable$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonFactory disable(com.fasterxml.jackson.core.JsonGenerator.Feature f)` /// The returned object must be released after use, by calling the [release] method. @@ -1354,11 +1382,11 @@ class JsonFactory extends jni.JObject { ///@param f Feature to disable ///@return This factory instance (to allow call chaining) JsonFactory disable$2( - jni.JObject f, + _$jni.JObject f, ) { - return _disable$2(reference.pointer, _id_disable$2 as jni.JMethodIDPtr, + return _disable$2(reference.pointer, _id_disable$2 as _$jni.JMethodIDPtr, f.reference.pointer) - .object(const $JsonFactoryType()); + .object(const $JsonFactory$Type()); } static final _id_isEnabled$3 = _class.instanceMethodId( @@ -1366,16 +1394,16 @@ class JsonFactory extends jni.JObject { r'(Lcom/fasterxml/jackson/core/JsonGenerator$Feature;)Z', ); - static final _isEnabled$3 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _isEnabled$3 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public final boolean isEnabled(com.fasterxml.jackson.core.JsonGenerator.Feature f)` /// @@ -1383,10 +1411,10 @@ class JsonFactory extends jni.JObject { ///@param f Feature to check ///@return Whether specified feature is enabled bool isEnabled$3( - jni.JObject f, + _$jni.JObject f, ) { - return _isEnabled$3(reference.pointer, _id_isEnabled$3 as jni.JMethodIDPtr, - f.reference.pointer) + return _isEnabled$3(reference.pointer, + _id_isEnabled$3 as _$jni.JMethodIDPtr, f.reference.pointer) .boolean; } @@ -1395,16 +1423,16 @@ class JsonFactory extends jni.JObject { r'(Lcom/fasterxml/jackson/core/StreamWriteFeature;)Z', ); - static final _isEnabled$4 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _isEnabled$4 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public final boolean isEnabled(com.fasterxml.jackson.core.StreamWriteFeature f)` /// @@ -1413,10 +1441,10 @@ class JsonFactory extends jni.JObject { ///@return Whether specified feature is enabled ///@since 2.10 bool isEnabled$4( - jni.JObject f, + _$jni.JObject f, ) { - return _isEnabled$4(reference.pointer, _id_isEnabled$4 as jni.JMethodIDPtr, - f.reference.pointer) + return _isEnabled$4(reference.pointer, + _id_isEnabled$4 as _$jni.JMethodIDPtr, f.reference.pointer) .boolean; } @@ -1425,16 +1453,16 @@ class JsonFactory extends jni.JObject { r'()Lcom/fasterxml/jackson/core/io/CharacterEscapes;', ); - static final _getCharacterEscapes = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getCharacterEscapes = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public com.fasterxml.jackson.core.io.CharacterEscapes getCharacterEscapes()` @@ -1443,10 +1471,10 @@ class JsonFactory extends jni.JObject { /// Method for accessing custom escapes factory uses for JsonGenerators /// it creates. ///@return Configured {@code CharacterEscapes}, if any; {@code null} if none - jni.JObject getCharacterEscapes() { + _$jni.JObject getCharacterEscapes() { return _getCharacterEscapes( - reference.pointer, _id_getCharacterEscapes as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + reference.pointer, _id_getCharacterEscapes as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_setCharacterEscapes = _class.instanceMethodId( @@ -1454,16 +1482,16 @@ class JsonFactory extends jni.JObject { r'(Lcom/fasterxml/jackson/core/io/CharacterEscapes;)Lcom/fasterxml/jackson/core/JsonFactory;', ); - static final _setCharacterEscapes = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setCharacterEscapes = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonFactory setCharacterEscapes(com.fasterxml.jackson.core.io.CharacterEscapes esc)` /// The returned object must be released after use, by calling the [release] method. @@ -1473,11 +1501,13 @@ class JsonFactory extends jni.JObject { ///@param esc CharaterEscapes to set (or {@code null} for "none") ///@return This factory instance (to allow call chaining) JsonFactory setCharacterEscapes( - jni.JObject esc, + _$jni.JObject esc, ) { - return _setCharacterEscapes(reference.pointer, - _id_setCharacterEscapes as jni.JMethodIDPtr, esc.reference.pointer) - .object(const $JsonFactoryType()); + return _setCharacterEscapes( + reference.pointer, + _id_setCharacterEscapes as _$jni.JMethodIDPtr, + esc.reference.pointer) + .object(const $JsonFactory$Type()); } static final _id_getOutputDecorator = _class.instanceMethodId( @@ -1485,16 +1515,16 @@ class JsonFactory extends jni.JObject { r'()Lcom/fasterxml/jackson/core/io/OutputDecorator;', ); - static final _getOutputDecorator = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getOutputDecorator = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public com.fasterxml.jackson.core.io.OutputDecorator getOutputDecorator()` @@ -1504,10 +1534,10 @@ class JsonFactory extends jni.JObject { /// there is no default decorator). ///@return OutputDecorator configured for generators factory creates, if any; /// {@code null} if none. - jni.JObject getOutputDecorator() { + _$jni.JObject getOutputDecorator() { return _getOutputDecorator( - reference.pointer, _id_getOutputDecorator as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + reference.pointer, _id_getOutputDecorator as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_setOutputDecorator = _class.instanceMethodId( @@ -1515,16 +1545,16 @@ class JsonFactory extends jni.JObject { r'(Lcom/fasterxml/jackson/core/io/OutputDecorator;)Lcom/fasterxml/jackson/core/JsonFactory;', ); - static final _setOutputDecorator = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setOutputDecorator = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonFactory setOutputDecorator(com.fasterxml.jackson.core.io.OutputDecorator d)` /// The returned object must be released after use, by calling the [release] method. @@ -1534,11 +1564,11 @@ class JsonFactory extends jni.JObject { ///@param d Output decorator to use, if any ///@deprecated Since 2.10 use JsonFactoryBuilder\#outputDecorator(OutputDecorator) instead JsonFactory setOutputDecorator( - jni.JObject d, + _$jni.JObject d, ) { return _setOutputDecorator(reference.pointer, - _id_setOutputDecorator as jni.JMethodIDPtr, d.reference.pointer) - .object(const $JsonFactoryType()); + _id_setOutputDecorator as _$jni.JMethodIDPtr, d.reference.pointer) + .object(const $JsonFactory$Type()); } static final _id_setRootValueSeparator = _class.instanceMethodId( @@ -1546,16 +1576,16 @@ class JsonFactory extends jni.JObject { r'(Ljava/lang/String;)Lcom/fasterxml/jackson/core/JsonFactory;', ); - static final _setRootValueSeparator = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setRootValueSeparator = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonFactory setRootValueSeparator(java.lang.String sep)` /// The returned object must be released after use, by calling the [release] method. @@ -1566,13 +1596,13 @@ class JsonFactory extends jni.JObject { /// automatically added ///@return This factory instance (to allow call chaining) JsonFactory setRootValueSeparator( - jni.JString sep, + _$jni.JString sep, ) { return _setRootValueSeparator( reference.pointer, - _id_setRootValueSeparator as jni.JMethodIDPtr, + _id_setRootValueSeparator as _$jni.JMethodIDPtr, sep.reference.pointer) - .object(const $JsonFactoryType()); + .object(const $JsonFactory$Type()); } static final _id_getRootValueSeparator = _class.instanceMethodId( @@ -1580,26 +1610,26 @@ class JsonFactory extends jni.JObject { r'()Ljava/lang/String;', ); - static final _getRootValueSeparator = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getRootValueSeparator = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.String getRootValueSeparator()` /// The returned object must be released after use, by calling the [release] method. /// /// @return Root value separator configured, if any - jni.JString getRootValueSeparator() { + _$jni.JString getRootValueSeparator() { return _getRootValueSeparator( - reference.pointer, _id_getRootValueSeparator as jni.JMethodIDPtr) - .object(const jni.JStringType()); + reference.pointer, _id_getRootValueSeparator as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_setCodec = _class.instanceMethodId( @@ -1607,16 +1637,16 @@ class JsonFactory extends jni.JObject { r'(Lcom/fasterxml/jackson/core/ObjectCodec;)Lcom/fasterxml/jackson/core/JsonFactory;', ); - static final _setCodec = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setCodec = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonFactory setCodec(com.fasterxml.jackson.core.ObjectCodec oc)` /// The returned object must be released after use, by calling the [release] method. @@ -1629,11 +1659,11 @@ class JsonFactory extends jni.JObject { ///@param oc Codec to use ///@return This factory instance (to allow call chaining) JsonFactory setCodec( - jni.JObject oc, + _$jni.JObject oc, ) { - return _setCodec(reference.pointer, _id_setCodec as jni.JMethodIDPtr, + return _setCodec(reference.pointer, _id_setCodec as _$jni.JMethodIDPtr, oc.reference.pointer) - .object(const $JsonFactoryType()); + .object(const $JsonFactory$Type()); } static final _id_getCodec = _class.instanceMethodId( @@ -1641,23 +1671,23 @@ class JsonFactory extends jni.JObject { r'()Lcom/fasterxml/jackson/core/ObjectCodec;', ); - static final _getCodec = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getCodec = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public com.fasterxml.jackson.core.ObjectCodec getCodec()` /// The returned object must be released after use, by calling the [release] method. - jni.JObject getCodec() { - return _getCodec(reference.pointer, _id_getCodec as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + _$jni.JObject getCodec() { + return _getCodec(reference.pointer, _id_getCodec as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_createParser = _class.instanceMethodId( @@ -1665,16 +1695,16 @@ class JsonFactory extends jni.JObject { r'(Ljava/io/File;)Lcom/fasterxml/jackson/core/JsonParser;', ); - static final _createParser = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _createParser = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonParser createParser(java.io.File f)` /// The returned object must be released after use, by calling the [release] method. @@ -1696,11 +1726,11 @@ class JsonFactory extends jni.JObject { ///@param f File that contains JSON content to parse ///@since 2.1 jsonparser_.JsonParser createParser( - jni.JObject f, + _$jni.JObject f, ) { return _createParser(reference.pointer, - _id_createParser as jni.JMethodIDPtr, f.reference.pointer) - .object(const jsonparser_.$JsonParserType()); + _id_createParser as _$jni.JMethodIDPtr, f.reference.pointer) + .object(const jsonparser_.$JsonParser$Type()); } static final _id_createParser$1 = _class.instanceMethodId( @@ -1708,16 +1738,16 @@ class JsonFactory extends jni.JObject { r'(Ljava/net/URL;)Lcom/fasterxml/jackson/core/JsonParser;', ); - static final _createParser$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _createParser$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonParser createParser(java.net.URL url)` /// The returned object must be released after use, by calling the [release] method. @@ -1737,11 +1767,11 @@ class JsonFactory extends jni.JObject { ///@param url URL pointing to resource that contains JSON content to parse ///@since 2.1 jsonparser_.JsonParser createParser$1( - jni.JObject url, + _$jni.JObject url, ) { return _createParser$1(reference.pointer, - _id_createParser$1 as jni.JMethodIDPtr, url.reference.pointer) - .object(const jsonparser_.$JsonParserType()); + _id_createParser$1 as _$jni.JMethodIDPtr, url.reference.pointer) + .object(const jsonparser_.$JsonParser$Type()); } static final _id_createParser$2 = _class.instanceMethodId( @@ -1749,16 +1779,16 @@ class JsonFactory extends jni.JObject { r'(Ljava/io/InputStream;)Lcom/fasterxml/jackson/core/JsonParser;', ); - static final _createParser$2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _createParser$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonParser createParser(java.io.InputStream in)` /// The returned object must be released after use, by calling the [release] method. @@ -1781,11 +1811,11 @@ class JsonFactory extends jni.JObject { ///@param in InputStream to use for reading JSON content to parse ///@since 2.1 jsonparser_.JsonParser createParser$2( - jni.JObject in$, + _$jni.JObject in$, ) { return _createParser$2(reference.pointer, - _id_createParser$2 as jni.JMethodIDPtr, in$.reference.pointer) - .object(const jsonparser_.$JsonParserType()); + _id_createParser$2 as _$jni.JMethodIDPtr, in$.reference.pointer) + .object(const jsonparser_.$JsonParser$Type()); } static final _id_createParser$3 = _class.instanceMethodId( @@ -1793,16 +1823,16 @@ class JsonFactory extends jni.JObject { r'(Ljava/io/Reader;)Lcom/fasterxml/jackson/core/JsonParser;', ); - static final _createParser$3 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _createParser$3 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonParser createParser(java.io.Reader r)` /// The returned object must be released after use, by calling the [release] method. @@ -1818,11 +1848,11 @@ class JsonFactory extends jni.JObject { ///@param r Reader to use for reading JSON content to parse ///@since 2.1 jsonparser_.JsonParser createParser$3( - jni.JObject r, + _$jni.JObject r, ) { return _createParser$3(reference.pointer, - _id_createParser$3 as jni.JMethodIDPtr, r.reference.pointer) - .object(const jsonparser_.$JsonParserType()); + _id_createParser$3 as _$jni.JMethodIDPtr, r.reference.pointer) + .object(const jsonparser_.$JsonParser$Type()); } static final _id_createParser$4 = _class.instanceMethodId( @@ -1830,16 +1860,16 @@ class JsonFactory extends jni.JObject { r'([B)Lcom/fasterxml/jackson/core/JsonParser;', ); - static final _createParser$4 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _createParser$4 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonParser createParser(byte[] data)` /// The returned object must be released after use, by calling the [release] method. @@ -1848,11 +1878,11 @@ class JsonFactory extends jni.JObject { /// the contents of given byte array. ///@since 2.1 jsonparser_.JsonParser createParser$4( - jni.JArray data, + _$jni.JArray<_$jni.jbyte> data, ) { return _createParser$4(reference.pointer, - _id_createParser$4 as jni.JMethodIDPtr, data.reference.pointer) - .object(const jsonparser_.$JsonParserType()); + _id_createParser$4 as _$jni.JMethodIDPtr, data.reference.pointer) + .object(const jsonparser_.$JsonParser$Type()); } static final _id_createParser$5 = _class.instanceMethodId( @@ -1860,16 +1890,20 @@ class JsonFactory extends jni.JObject { r'([BII)Lcom/fasterxml/jackson/core/JsonParser;', ); - static final _createParser$5 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer, $Int32, $Int32)>)>>( - 'globalEnv_CallObjectMethod') + static final _createParser$5 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Int32, + _$jni.Int32 + )>)>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int, int)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int, int)>(); /// from: `public com.fasterxml.jackson.core.JsonParser createParser(byte[] data, int offset, int len)` /// The returned object must be released after use, by calling the [release] method. @@ -1881,17 +1915,17 @@ class JsonFactory extends jni.JObject { ///@param len Length of contents to parse within buffer ///@since 2.1 jsonparser_.JsonParser createParser$5( - jni.JArray data, + _$jni.JArray<_$jni.jbyte> data, int offset, int len, ) { return _createParser$5( reference.pointer, - _id_createParser$5 as jni.JMethodIDPtr, + _id_createParser$5 as _$jni.JMethodIDPtr, data.reference.pointer, offset, len) - .object(const jsonparser_.$JsonParserType()); + .object(const jsonparser_.$JsonParser$Type()); } static final _id_createParser$6 = _class.instanceMethodId( @@ -1899,16 +1933,16 @@ class JsonFactory extends jni.JObject { r'(Ljava/lang/String;)Lcom/fasterxml/jackson/core/JsonParser;', ); - static final _createParser$6 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _createParser$6 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonParser createParser(java.lang.String content)` /// The returned object must be released after use, by calling the [release] method. @@ -1917,11 +1951,11 @@ class JsonFactory extends jni.JObject { /// contents of given String. ///@since 2.1 jsonparser_.JsonParser createParser$6( - jni.JString content, + _$jni.JString content, ) { return _createParser$6(reference.pointer, - _id_createParser$6 as jni.JMethodIDPtr, content.reference.pointer) - .object(const jsonparser_.$JsonParserType()); + _id_createParser$6 as _$jni.JMethodIDPtr, content.reference.pointer) + .object(const jsonparser_.$JsonParser$Type()); } static final _id_createParser$7 = _class.instanceMethodId( @@ -1929,16 +1963,16 @@ class JsonFactory extends jni.JObject { r'([C)Lcom/fasterxml/jackson/core/JsonParser;', ); - static final _createParser$7 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _createParser$7 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonParser createParser(char[] content)` /// The returned object must be released after use, by calling the [release] method. @@ -1947,11 +1981,11 @@ class JsonFactory extends jni.JObject { /// contents of given char array. ///@since 2.4 jsonparser_.JsonParser createParser$7( - jni.JArray content, + _$jni.JArray<_$jni.jchar> content, ) { return _createParser$7(reference.pointer, - _id_createParser$7 as jni.JMethodIDPtr, content.reference.pointer) - .object(const jsonparser_.$JsonParserType()); + _id_createParser$7 as _$jni.JMethodIDPtr, content.reference.pointer) + .object(const jsonparser_.$JsonParser$Type()); } static final _id_createParser$8 = _class.instanceMethodId( @@ -1959,16 +1993,20 @@ class JsonFactory extends jni.JObject { r'([CII)Lcom/fasterxml/jackson/core/JsonParser;', ); - static final _createParser$8 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer, $Int32, $Int32)>)>>( - 'globalEnv_CallObjectMethod') + static final _createParser$8 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Int32, + _$jni.Int32 + )>)>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int, int)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int, int)>(); /// from: `public com.fasterxml.jackson.core.JsonParser createParser(char[] content, int offset, int len)` /// The returned object must be released after use, by calling the [release] method. @@ -1976,17 +2014,17 @@ class JsonFactory extends jni.JObject { /// Method for constructing parser for parsing contents of given char array. ///@since 2.4 jsonparser_.JsonParser createParser$8( - jni.JArray content, + _$jni.JArray<_$jni.jchar> content, int offset, int len, ) { return _createParser$8( reference.pointer, - _id_createParser$8 as jni.JMethodIDPtr, + _id_createParser$8 as _$jni.JMethodIDPtr, content.reference.pointer, offset, len) - .object(const jsonparser_.$JsonParserType()); + .object(const jsonparser_.$JsonParser$Type()); } static final _id_createParser$9 = _class.instanceMethodId( @@ -1994,16 +2032,16 @@ class JsonFactory extends jni.JObject { r'(Ljava/io/DataInput;)Lcom/fasterxml/jackson/core/JsonParser;', ); - static final _createParser$9 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _createParser$9 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonParser createParser(java.io.DataInput in)` /// The returned object must be released after use, by calling the [release] method. @@ -2015,11 +2053,11 @@ class JsonFactory extends jni.JObject { /// will throw UnsupportedOperationException ///@since 2.8 jsonparser_.JsonParser createParser$9( - jni.JObject in$, + _$jni.JObject in$, ) { return _createParser$9(reference.pointer, - _id_createParser$9 as jni.JMethodIDPtr, in$.reference.pointer) - .object(const jsonparser_.$JsonParserType()); + _id_createParser$9 as _$jni.JMethodIDPtr, in$.reference.pointer) + .object(const jsonparser_.$JsonParser$Type()); } static final _id_createNonBlockingByteArrayParser = _class.instanceMethodId( @@ -2028,16 +2066,16 @@ class JsonFactory extends jni.JObject { ); static final _createNonBlockingByteArrayParser = - ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public com.fasterxml.jackson.core.JsonParser createNonBlockingByteArrayParser()` @@ -2058,8 +2096,8 @@ class JsonFactory extends jni.JObject { ///@since 2.9 jsonparser_.JsonParser createNonBlockingByteArrayParser() { return _createNonBlockingByteArrayParser(reference.pointer, - _id_createNonBlockingByteArrayParser as jni.JMethodIDPtr) - .object(const jsonparser_.$JsonParserType()); + _id_createNonBlockingByteArrayParser as _$jni.JMethodIDPtr) + .object(const jsonparser_.$JsonParser$Type()); } static final _id_createGenerator = _class.instanceMethodId( @@ -2067,19 +2105,22 @@ class JsonFactory extends jni.JObject { r'(Ljava/io/OutputStream;Lcom/fasterxml/jackson/core/JsonEncoding;)Lcom/fasterxml/jackson/core/JsonGenerator;', ); - static final _createGenerator = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _createGenerator = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonGenerator createGenerator(java.io.OutputStream out, com.fasterxml.jackson.core.JsonEncoding enc)` /// The returned object must be released after use, by calling the [release] method. @@ -2102,16 +2143,16 @@ class JsonFactory extends jni.JObject { ///@param out OutputStream to use for writing JSON content ///@param enc Character encoding to use ///@since 2.1 - jni.JObject createGenerator( - jni.JObject out, - jni.JObject enc, + _$jni.JObject createGenerator( + _$jni.JObject out, + _$jni.JObject enc, ) { return _createGenerator( reference.pointer, - _id_createGenerator as jni.JMethodIDPtr, + _id_createGenerator as _$jni.JMethodIDPtr, out.reference.pointer, enc.reference.pointer) - .object(const jni.JObjectType()); + .object(const _$jni.JObjectType()); } static final _id_createGenerator$1 = _class.instanceMethodId( @@ -2119,16 +2160,16 @@ class JsonFactory extends jni.JObject { r'(Ljava/io/OutputStream;)Lcom/fasterxml/jackson/core/JsonGenerator;', ); - static final _createGenerator$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _createGenerator$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonGenerator createGenerator(java.io.OutputStream out)` /// The returned object must be released after use, by calling the [release] method. @@ -2138,12 +2179,12 @@ class JsonFactory extends jni.JObject { /// /// Note: there are formats that use fixed encoding (like most binary data formats). ///@since 2.1 - jni.JObject createGenerator$1( - jni.JObject out, + _$jni.JObject createGenerator$1( + _$jni.JObject out, ) { return _createGenerator$1(reference.pointer, - _id_createGenerator$1 as jni.JMethodIDPtr, out.reference.pointer) - .object(const jni.JObjectType()); + _id_createGenerator$1 as _$jni.JMethodIDPtr, out.reference.pointer) + .object(const _$jni.JObjectType()); } static final _id_createGenerator$2 = _class.instanceMethodId( @@ -2151,16 +2192,16 @@ class JsonFactory extends jni.JObject { r'(Ljava/io/Writer;)Lcom/fasterxml/jackson/core/JsonGenerator;', ); - static final _createGenerator$2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _createGenerator$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonGenerator createGenerator(java.io.Writer w)` /// The returned object must be released after use, by calling the [release] method. @@ -2176,12 +2217,12 @@ class JsonFactory extends jni.JObject { /// Using application needs to close it explicitly. ///@since 2.1 ///@param w Writer to use for writing JSON content - jni.JObject createGenerator$2( - jni.JObject w, + _$jni.JObject createGenerator$2( + _$jni.JObject w, ) { return _createGenerator$2(reference.pointer, - _id_createGenerator$2 as jni.JMethodIDPtr, w.reference.pointer) - .object(const jni.JObjectType()); + _id_createGenerator$2 as _$jni.JMethodIDPtr, w.reference.pointer) + .object(const _$jni.JObjectType()); } static final _id_createGenerator$3 = _class.instanceMethodId( @@ -2189,19 +2230,22 @@ class JsonFactory extends jni.JObject { r'(Ljava/io/File;Lcom/fasterxml/jackson/core/JsonEncoding;)Lcom/fasterxml/jackson/core/JsonGenerator;', ); - static final _createGenerator$3 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _createGenerator$3 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonGenerator createGenerator(java.io.File f, com.fasterxml.jackson.core.JsonEncoding enc)` /// The returned object must be released after use, by calling the [release] method. @@ -2218,16 +2262,16 @@ class JsonFactory extends jni.JObject { ///@param f File to write contents to ///@param enc Character encoding to use ///@since 2.1 - jni.JObject createGenerator$3( - jni.JObject f, - jni.JObject enc, + _$jni.JObject createGenerator$3( + _$jni.JObject f, + _$jni.JObject enc, ) { return _createGenerator$3( reference.pointer, - _id_createGenerator$3 as jni.JMethodIDPtr, + _id_createGenerator$3 as _$jni.JMethodIDPtr, f.reference.pointer, enc.reference.pointer) - .object(const jni.JObjectType()); + .object(const _$jni.JObjectType()); } static final _id_createGenerator$4 = _class.instanceMethodId( @@ -2235,19 +2279,22 @@ class JsonFactory extends jni.JObject { r'(Ljava/io/DataOutput;Lcom/fasterxml/jackson/core/JsonEncoding;)Lcom/fasterxml/jackson/core/JsonGenerator;', ); - static final _createGenerator$4 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _createGenerator$4 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonGenerator createGenerator(java.io.DataOutput out, com.fasterxml.jackson.core.JsonEncoding enc)` /// The returned object must be released after use, by calling the [release] method. @@ -2255,16 +2302,16 @@ class JsonFactory extends jni.JObject { /// Method for constructing generator for writing content using specified /// DataOutput instance. ///@since 2.8 - jni.JObject createGenerator$4( - jni.JObject out, - jni.JObject enc, + _$jni.JObject createGenerator$4( + _$jni.JObject out, + _$jni.JObject enc, ) { return _createGenerator$4( reference.pointer, - _id_createGenerator$4 as jni.JMethodIDPtr, + _id_createGenerator$4 as _$jni.JMethodIDPtr, out.reference.pointer, enc.reference.pointer) - .object(const jni.JObjectType()); + .object(const _$jni.JObjectType()); } static final _id_createGenerator$5 = _class.instanceMethodId( @@ -2272,16 +2319,16 @@ class JsonFactory extends jni.JObject { r'(Ljava/io/DataOutput;)Lcom/fasterxml/jackson/core/JsonGenerator;', ); - static final _createGenerator$5 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _createGenerator$5 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonGenerator createGenerator(java.io.DataOutput out)` /// The returned object must be released after use, by calling the [release] method. @@ -2291,12 +2338,12 @@ class JsonFactory extends jni.JObject { /// /// Note: there are formats that use fixed encoding (like most binary data formats). ///@since 2.8 - jni.JObject createGenerator$5( - jni.JObject out, + _$jni.JObject createGenerator$5( + _$jni.JObject out, ) { return _createGenerator$5(reference.pointer, - _id_createGenerator$5 as jni.JMethodIDPtr, out.reference.pointer) - .object(const jni.JObjectType()); + _id_createGenerator$5 as _$jni.JMethodIDPtr, out.reference.pointer) + .object(const _$jni.JObjectType()); } static final _id_createJsonParser = _class.instanceMethodId( @@ -2304,16 +2351,16 @@ class JsonFactory extends jni.JObject { r'(Ljava/io/File;)Lcom/fasterxml/jackson/core/JsonParser;', ); - static final _createJsonParser = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _createJsonParser = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonParser createJsonParser(java.io.File f)` /// The returned object must be released after use, by calling the [release] method. @@ -2337,11 +2384,11 @@ class JsonFactory extends jni.JObject { ///@throws JsonParseException if parser initialization fails due to content decoding problem ///@deprecated Since 2.2, use \#createParser(File) instead. jsonparser_.JsonParser createJsonParser( - jni.JObject f, + _$jni.JObject f, ) { return _createJsonParser(reference.pointer, - _id_createJsonParser as jni.JMethodIDPtr, f.reference.pointer) - .object(const jsonparser_.$JsonParserType()); + _id_createJsonParser as _$jni.JMethodIDPtr, f.reference.pointer) + .object(const jsonparser_.$JsonParser$Type()); } static final _id_createJsonParser$1 = _class.instanceMethodId( @@ -2349,16 +2396,16 @@ class JsonFactory extends jni.JObject { r'(Ljava/net/URL;)Lcom/fasterxml/jackson/core/JsonParser;', ); - static final _createJsonParser$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _createJsonParser$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonParser createJsonParser(java.net.URL url)` /// The returned object must be released after use, by calling the [release] method. @@ -2381,11 +2428,11 @@ class JsonFactory extends jni.JObject { ///@throws JsonParseException if parser initialization fails due to content decoding problem ///@deprecated Since 2.2, use \#createParser(URL) instead. jsonparser_.JsonParser createJsonParser$1( - jni.JObject url, + _$jni.JObject url, ) { return _createJsonParser$1(reference.pointer, - _id_createJsonParser$1 as jni.JMethodIDPtr, url.reference.pointer) - .object(const jsonparser_.$JsonParserType()); + _id_createJsonParser$1 as _$jni.JMethodIDPtr, url.reference.pointer) + .object(const jsonparser_.$JsonParser$Type()); } static final _id_createJsonParser$2 = _class.instanceMethodId( @@ -2393,16 +2440,16 @@ class JsonFactory extends jni.JObject { r'(Ljava/io/InputStream;)Lcom/fasterxml/jackson/core/JsonParser;', ); - static final _createJsonParser$2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _createJsonParser$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonParser createJsonParser(java.io.InputStream in)` /// The returned object must be released after use, by calling the [release] method. @@ -2428,11 +2475,11 @@ class JsonFactory extends jni.JObject { ///@throws JsonParseException if parser initialization fails due to content decoding problem ///@deprecated Since 2.2, use \#createParser(InputStream) instead. jsonparser_.JsonParser createJsonParser$2( - jni.JObject in$, + _$jni.JObject in$, ) { return _createJsonParser$2(reference.pointer, - _id_createJsonParser$2 as jni.JMethodIDPtr, in$.reference.pointer) - .object(const jsonparser_.$JsonParserType()); + _id_createJsonParser$2 as _$jni.JMethodIDPtr, in$.reference.pointer) + .object(const jsonparser_.$JsonParser$Type()); } static final _id_createJsonParser$3 = _class.instanceMethodId( @@ -2440,16 +2487,16 @@ class JsonFactory extends jni.JObject { r'(Ljava/io/Reader;)Lcom/fasterxml/jackson/core/JsonParser;', ); - static final _createJsonParser$3 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _createJsonParser$3 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonParser createJsonParser(java.io.Reader r)` /// The returned object must be released after use, by calling the [release] method. @@ -2468,11 +2515,11 @@ class JsonFactory extends jni.JObject { ///@throws JsonParseException if parser initialization fails due to content decoding problem ///@deprecated Since 2.2, use \#createParser(Reader) instead. jsonparser_.JsonParser createJsonParser$3( - jni.JObject r, + _$jni.JObject r, ) { return _createJsonParser$3(reference.pointer, - _id_createJsonParser$3 as jni.JMethodIDPtr, r.reference.pointer) - .object(const jsonparser_.$JsonParserType()); + _id_createJsonParser$3 as _$jni.JMethodIDPtr, r.reference.pointer) + .object(const jsonparser_.$JsonParser$Type()); } static final _id_createJsonParser$4 = _class.instanceMethodId( @@ -2480,16 +2527,16 @@ class JsonFactory extends jni.JObject { r'([B)Lcom/fasterxml/jackson/core/JsonParser;', ); - static final _createJsonParser$4 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _createJsonParser$4 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonParser createJsonParser(byte[] data)` /// The returned object must be released after use, by calling the [release] method. @@ -2501,11 +2548,13 @@ class JsonFactory extends jni.JObject { ///@throws JsonParseException if parser initialization fails due to content decoding problem ///@deprecated Since 2.2, use \#createParser(byte[]) instead. jsonparser_.JsonParser createJsonParser$4( - jni.JArray data, + _$jni.JArray<_$jni.jbyte> data, ) { - return _createJsonParser$4(reference.pointer, - _id_createJsonParser$4 as jni.JMethodIDPtr, data.reference.pointer) - .object(const jsonparser_.$JsonParserType()); + return _createJsonParser$4( + reference.pointer, + _id_createJsonParser$4 as _$jni.JMethodIDPtr, + data.reference.pointer) + .object(const jsonparser_.$JsonParser$Type()); } static final _id_createJsonParser$5 = _class.instanceMethodId( @@ -2513,16 +2562,20 @@ class JsonFactory extends jni.JObject { r'([BII)Lcom/fasterxml/jackson/core/JsonParser;', ); - static final _createJsonParser$5 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer, $Int32, $Int32)>)>>( - 'globalEnv_CallObjectMethod') + static final _createJsonParser$5 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Int32, + _$jni.Int32 + )>)>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int, int)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int, int)>(); /// from: `public com.fasterxml.jackson.core.JsonParser createJsonParser(byte[] data, int offset, int len)` /// The returned object must be released after use, by calling the [release] method. @@ -2537,17 +2590,17 @@ class JsonFactory extends jni.JObject { ///@throws JsonParseException if parser initialization fails due to content decoding problem ///@deprecated Since 2.2, use \#createParser(byte[],int,int) instead. jsonparser_.JsonParser createJsonParser$5( - jni.JArray data, + _$jni.JArray<_$jni.jbyte> data, int offset, int len, ) { return _createJsonParser$5( reference.pointer, - _id_createJsonParser$5 as jni.JMethodIDPtr, + _id_createJsonParser$5 as _$jni.JMethodIDPtr, data.reference.pointer, offset, len) - .object(const jsonparser_.$JsonParserType()); + .object(const jsonparser_.$JsonParser$Type()); } static final _id_createJsonParser$6 = _class.instanceMethodId( @@ -2555,16 +2608,16 @@ class JsonFactory extends jni.JObject { r'(Ljava/lang/String;)Lcom/fasterxml/jackson/core/JsonParser;', ); - static final _createJsonParser$6 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _createJsonParser$6 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonParser createJsonParser(java.lang.String content)` /// The returned object must be released after use, by calling the [release] method. @@ -2577,13 +2630,13 @@ class JsonFactory extends jni.JObject { ///@throws JsonParseException if parser initialization fails due to content decoding problem ///@deprecated Since 2.2, use \#createParser(String) instead. jsonparser_.JsonParser createJsonParser$6( - jni.JString content, + _$jni.JString content, ) { return _createJsonParser$6( reference.pointer, - _id_createJsonParser$6 as jni.JMethodIDPtr, + _id_createJsonParser$6 as _$jni.JMethodIDPtr, content.reference.pointer) - .object(const jsonparser_.$JsonParserType()); + .object(const jsonparser_.$JsonParser$Type()); } static final _id_createJsonGenerator = _class.instanceMethodId( @@ -2591,19 +2644,22 @@ class JsonFactory extends jni.JObject { r'(Ljava/io/OutputStream;Lcom/fasterxml/jackson/core/JsonEncoding;)Lcom/fasterxml/jackson/core/JsonGenerator;', ); - static final _createJsonGenerator = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _createJsonGenerator = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonGenerator createJsonGenerator(java.io.OutputStream out, com.fasterxml.jackson.core.JsonEncoding enc)` /// The returned object must be released after use, by calling the [release] method. @@ -2628,16 +2684,16 @@ class JsonFactory extends jni.JObject { ///@return Generator constructed ///@throws IOException if parser initialization fails due to I/O (write) problem ///@deprecated Since 2.2, use \#createGenerator(OutputStream, JsonEncoding) instead. - jni.JObject createJsonGenerator( - jni.JObject out, - jni.JObject enc, + _$jni.JObject createJsonGenerator( + _$jni.JObject out, + _$jni.JObject enc, ) { return _createJsonGenerator( reference.pointer, - _id_createJsonGenerator as jni.JMethodIDPtr, + _id_createJsonGenerator as _$jni.JMethodIDPtr, out.reference.pointer, enc.reference.pointer) - .object(const jni.JObjectType()); + .object(const _$jni.JObjectType()); } static final _id_createJsonGenerator$1 = _class.instanceMethodId( @@ -2645,16 +2701,16 @@ class JsonFactory extends jni.JObject { r'(Ljava/io/Writer;)Lcom/fasterxml/jackson/core/JsonGenerator;', ); - static final _createJsonGenerator$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _createJsonGenerator$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonGenerator createJsonGenerator(java.io.Writer out)` /// The returned object must be released after use, by calling the [release] method. @@ -2672,14 +2728,14 @@ class JsonFactory extends jni.JObject { ///@return Generator constructed ///@throws IOException if parser initialization fails due to I/O (write) problem ///@deprecated Since 2.2, use \#createGenerator(Writer) instead. - jni.JObject createJsonGenerator$1( - jni.JObject out, + _$jni.JObject createJsonGenerator$1( + _$jni.JObject out, ) { return _createJsonGenerator$1( reference.pointer, - _id_createJsonGenerator$1 as jni.JMethodIDPtr, + _id_createJsonGenerator$1 as _$jni.JMethodIDPtr, out.reference.pointer) - .object(const jni.JObjectType()); + .object(const _$jni.JObjectType()); } static final _id_createJsonGenerator$2 = _class.instanceMethodId( @@ -2687,16 +2743,16 @@ class JsonFactory extends jni.JObject { r'(Ljava/io/OutputStream;)Lcom/fasterxml/jackson/core/JsonGenerator;', ); - static final _createJsonGenerator$2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _createJsonGenerator$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonGenerator createJsonGenerator(java.io.OutputStream out)` /// The returned object must be released after use, by calling the [release] method. @@ -2709,14 +2765,14 @@ class JsonFactory extends jni.JObject { ///@return Generator constructed ///@throws IOException if parser initialization fails due to I/O (write) problem ///@deprecated Since 2.2, use \#createGenerator(OutputStream) instead. - jni.JObject createJsonGenerator$2( - jni.JObject out, + _$jni.JObject createJsonGenerator$2( + _$jni.JObject out, ) { return _createJsonGenerator$2( reference.pointer, - _id_createJsonGenerator$2 as jni.JMethodIDPtr, + _id_createJsonGenerator$2 as _$jni.JMethodIDPtr, out.reference.pointer) - .object(const jni.JObjectType()); + .object(const _$jni.JObjectType()); } static final _id_$_getBufferRecycler = _class.instanceMethodId( @@ -2724,16 +2780,16 @@ class JsonFactory extends jni.JObject { r'()Lcom/fasterxml/jackson/core/util/BufferRecycler;', ); - static final _$_getBufferRecycler = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _$_getBufferRecycler = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public com.fasterxml.jackson.core.util.BufferRecycler _getBufferRecycler()` @@ -2744,34 +2800,40 @@ class JsonFactory extends jni.JObject { /// /// Note: only public to give access for {@code ObjectMapper} ///@return Buffer recycler instance to use - jni.JObject $_getBufferRecycler() { + _$jni.JObject $_getBufferRecycler() { return _$_getBufferRecycler( - reference.pointer, _id_$_getBufferRecycler as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + reference.pointer, _id_$_getBufferRecycler as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } } -final class $JsonFactoryType extends jni.JObjType { - const $JsonFactoryType(); +final class $JsonFactory$Type extends _$jni.JObjType { + @_$jni.internal + const $JsonFactory$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/fasterxml/jackson/core/JsonFactory;'; - @override - JsonFactory fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + JsonFactory fromReference(_$jni.JReference reference) => JsonFactory.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($JsonFactoryType).hashCode; + @_$core.override + int get hashCode => ($JsonFactory$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($JsonFactoryType) && other is $JsonFactoryType; + return other.runtimeType == ($JsonFactory$Type) && + other is $JsonFactory$Type; } } diff --git a/pkgs/jnigen/test/jackson_core_test/third_party/bindings/com/fasterxml/jackson/core/JsonParser.dart b/pkgs/jnigen/test/jackson_core_test/third_party/bindings/com/fasterxml/jackson/core/JsonParser.dart index 6ffc2b369..c7b36643c 100644 --- a/pkgs/jnigen/test/jackson_core_test/third_party/bindings/com/fasterxml/jackson/core/JsonParser.dart +++ b/pkgs/jnigen/test/jackson_core_test/third_party/bindings/com/fasterxml/jackson/core/JsonParser.dart @@ -26,7 +26,9 @@ // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter // ignore_for_file: invalid_use_of_internal_member +// ignore_for_file: library_prefixes // ignore_for_file: lines_longer_than_80_chars +// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_local_identifiers // ignore_for_file: non_constant_identifier_names // ignore_for_file: only_throw_errors @@ -42,52 +44,55 @@ // ignore_for_file: unused_shown_name // ignore_for_file: use_super_parameters -import 'dart:ffi' as ffi; -import 'dart:isolate' show RawReceivePort, ReceivePort; +import 'dart:core' show Object, String, bool, double, int; +import 'dart:core' as _$core; -import 'package:jni/_internal.dart'; -import 'package:jni/jni.dart' as jni; +import 'package:jni/_internal.dart' as _$jni; +import 'package:jni/jni.dart' as _$jni; import 'JsonToken.dart' as jsontoken_; /// from: `com.fasterxml.jackson.core.JsonParser$Feature` /// /// Enumeration that defines all on/off features for parsers. -class JsonParser_Feature extends jni.JObject { - @override - late final jni.JObjType $type = type; +class JsonParser_Feature extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal JsonParser_Feature.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); static final _class = - jni.JClass.forName(r'com/fasterxml/jackson/core/JsonParser$Feature'); + _$jni.JClass.forName(r'com/fasterxml/jackson/core/JsonParser$Feature'); /// The type which includes information such as the signature of this class. - static const type = $JsonParser_FeatureType(); + static const type = $JsonParser_Feature$Type(); static final _id_values = _class.staticMethodId( r'values', r'()[Lcom/fasterxml/jackson/core/JsonParser$Feature;', ); - static final _values = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _values = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public com.fasterxml.jackson.core.JsonParser.Feature[] values()` /// The returned object must be released after use, by calling the [release] method. - static jni.JArray values() { - return _values(_class.reference.pointer, _id_values as jni.JMethodIDPtr) - .object(const jni.JArrayType($JsonParser_FeatureType())); + static _$jni.JArray values() { + return _values(_class.reference.pointer, _id_values as _$jni.JMethodIDPtr) + .object(const _$jni.JArrayType($JsonParser_Feature$Type())); } static final _id_valueOf = _class.staticMethodId( @@ -95,25 +100,25 @@ class JsonParser_Feature extends jni.JObject { r'(Ljava/lang/String;)Lcom/fasterxml/jackson/core/JsonParser$Feature;', ); - static final _valueOf = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _valueOf = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `static public com.fasterxml.jackson.core.JsonParser.Feature valueOf(java.lang.String name)` /// The returned object must be released after use, by calling the [release] method. static JsonParser_Feature valueOf( - jni.JString name, + _$jni.JString name, ) { - return _valueOf(_class.reference.pointer, _id_valueOf as jni.JMethodIDPtr, + return _valueOf(_class.reference.pointer, _id_valueOf as _$jni.JMethodIDPtr, name.reference.pointer) - .object(const $JsonParser_FeatureType()); + .object(const $JsonParser_Feature$Type()); } static final _id_collectDefaults = _class.staticMethodId( @@ -121,16 +126,16 @@ class JsonParser_Feature extends jni.JObject { r'()I', ); - static final _collectDefaults = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _collectDefaults = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public int collectDefaults()` @@ -140,7 +145,7 @@ class JsonParser_Feature extends jni.JObject { ///@return Bit mask of all features that are enabled by default static int collectDefaults() { return _collectDefaults( - _class.reference.pointer, _id_collectDefaults as jni.JMethodIDPtr) + _class.reference.pointer, _id_collectDefaults as _$jni.JMethodIDPtr) .integer; } @@ -149,22 +154,22 @@ class JsonParser_Feature extends jni.JObject { r'()Z', ); - static final _enabledByDefault = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _enabledByDefault = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public boolean enabledByDefault()` bool enabledByDefault() { return _enabledByDefault( - reference.pointer, _id_enabledByDefault as jni.JMethodIDPtr) + reference.pointer, _id_enabledByDefault as _$jni.JMethodIDPtr) .boolean; } @@ -173,20 +178,23 @@ class JsonParser_Feature extends jni.JObject { r'(I)Z', ); - static final _enabledIn = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallBooleanMethod') + static final _enabledIn = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public boolean enabledIn(int flags)` bool enabledIn( int flags, ) { return _enabledIn( - reference.pointer, _id_enabledIn as jni.JMethodIDPtr, flags) + reference.pointer, _id_enabledIn as _$jni.JMethodIDPtr, flags) .boolean; } @@ -195,47 +203,54 @@ class JsonParser_Feature extends jni.JObject { r'()I', ); - static final _getMask = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getMask = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public int getMask()` int getMask() { - return _getMask(reference.pointer, _id_getMask as jni.JMethodIDPtr).integer; + return _getMask(reference.pointer, _id_getMask as _$jni.JMethodIDPtr) + .integer; } } -final class $JsonParser_FeatureType extends jni.JObjType { - const $JsonParser_FeatureType(); +final class $JsonParser_Feature$Type + extends _$jni.JObjType { + @_$jni.internal + const $JsonParser_Feature$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/fasterxml/jackson/core/JsonParser$Feature;'; - @override - JsonParser_Feature fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + JsonParser_Feature fromReference(_$jni.JReference reference) => JsonParser_Feature.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($JsonParser_FeatureType).hashCode; + @_$core.override + int get hashCode => ($JsonParser_Feature$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($JsonParser_FeatureType) && - other is $JsonParser_FeatureType; + return other.runtimeType == ($JsonParser_Feature$Type) && + other is $JsonParser_Feature$Type; } } @@ -243,41 +258,44 @@ final class $JsonParser_FeatureType extends jni.JObjType { /// /// Enumeration of possible "native" (optimal) types that can be /// used for numbers. -class JsonParser_NumberType extends jni.JObject { - @override - late final jni.JObjType $type = type; +class JsonParser_NumberType extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal JsonParser_NumberType.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); static final _class = - jni.JClass.forName(r'com/fasterxml/jackson/core/JsonParser$NumberType'); + _$jni.JClass.forName(r'com/fasterxml/jackson/core/JsonParser$NumberType'); /// The type which includes information such as the signature of this class. - static const type = $JsonParser_NumberTypeType(); + static const type = $JsonParser_NumberType$Type(); static final _id_values = _class.staticMethodId( r'values', r'()[Lcom/fasterxml/jackson/core/JsonParser$NumberType;', ); - static final _values = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _values = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public com.fasterxml.jackson.core.JsonParser.NumberType[] values()` /// The returned object must be released after use, by calling the [release] method. - static jni.JArray values() { - return _values(_class.reference.pointer, _id_values as jni.JMethodIDPtr) - .object(const jni.JArrayType($JsonParser_NumberTypeType())); + static _$jni.JArray values() { + return _values(_class.reference.pointer, _id_values as _$jni.JMethodIDPtr) + .object(const _$jni.JArrayType($JsonParser_NumberType$Type())); } static final _id_valueOf = _class.staticMethodId( @@ -285,52 +303,57 @@ class JsonParser_NumberType extends jni.JObject { r'(Ljava/lang/String;)Lcom/fasterxml/jackson/core/JsonParser$NumberType;', ); - static final _valueOf = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _valueOf = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `static public com.fasterxml.jackson.core.JsonParser.NumberType valueOf(java.lang.String name)` /// The returned object must be released after use, by calling the [release] method. static JsonParser_NumberType valueOf( - jni.JString name, + _$jni.JString name, ) { - return _valueOf(_class.reference.pointer, _id_valueOf as jni.JMethodIDPtr, + return _valueOf(_class.reference.pointer, _id_valueOf as _$jni.JMethodIDPtr, name.reference.pointer) - .object(const $JsonParser_NumberTypeType()); + .object(const $JsonParser_NumberType$Type()); } } -final class $JsonParser_NumberTypeType - extends jni.JObjType { - const $JsonParser_NumberTypeType(); +final class $JsonParser_NumberType$Type + extends _$jni.JObjType { + @_$jni.internal + const $JsonParser_NumberType$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/fasterxml/jackson/core/JsonParser$NumberType;'; - @override - JsonParser_NumberType fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + JsonParser_NumberType fromReference(_$jni.JReference reference) => JsonParser_NumberType.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($JsonParser_NumberTypeType).hashCode; + @_$core.override + int get hashCode => ($JsonParser_NumberType$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($JsonParser_NumberTypeType) && - other is $JsonParser_NumberTypeType; + return other.runtimeType == ($JsonParser_NumberType$Type) && + other is $JsonParser_NumberType$Type; } } @@ -340,34 +363,37 @@ final class $JsonParser_NumberTypeType /// Instances are created using factory methods of /// a JsonFactory instance. ///@author Tatu Saloranta -class JsonParser extends jni.JObject { - @override - late final jni.JObjType $type = type; +class JsonParser extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal JsonParser.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); static final _class = - jni.JClass.forName(r'com/fasterxml/jackson/core/JsonParser'); + _$jni.JClass.forName(r'com/fasterxml/jackson/core/JsonParser'); /// The type which includes information such as the signature of this class. - static const type = $JsonParserType(); + static const type = $JsonParser$Type(); static final _id_getCodec = _class.instanceMethodId( r'getCodec', r'()Lcom/fasterxml/jackson/core/ObjectCodec;', ); - static final _getCodec = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getCodec = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract com.fasterxml.jackson.core.ObjectCodec getCodec()` @@ -377,9 +403,9 @@ class JsonParser extends jni.JObject { /// parser, if any. Codec is used by \#readValueAs(Class) /// method (and its variants). ///@return Codec assigned to this parser, if any; {@code null} if none - jni.JObject getCodec() { - return _getCodec(reference.pointer, _id_getCodec as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + _$jni.JObject getCodec() { + return _getCodec(reference.pointer, _id_getCodec as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_setCodec = _class.instanceMethodId( @@ -387,16 +413,16 @@ class JsonParser extends jni.JObject { r'(Lcom/fasterxml/jackson/core/ObjectCodec;)V', ); - static final _setCodec = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setCodec = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public abstract void setCodec(com.fasterxml.jackson.core.ObjectCodec oc)` /// @@ -405,9 +431,9 @@ class JsonParser extends jni.JObject { /// method (and its variants). ///@param oc Codec to assign, if any; {@code null} if none void setCodec( - jni.JObject oc, + _$jni.JObject oc, ) { - _setCodec(reference.pointer, _id_setCodec as jni.JMethodIDPtr, + _setCodec(reference.pointer, _id_setCodec as _$jni.JMethodIDPtr, oc.reference.pointer) .check(); } @@ -417,16 +443,16 @@ class JsonParser extends jni.JObject { r'()Ljava/lang/Object;', ); - static final _getInputSource = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getInputSource = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.Object getInputSource()` @@ -446,10 +472,10 @@ class JsonParser extends jni.JObject { /// In general use of this accessor should be considered as /// "last effort", i.e. only used if no other mechanism is applicable. ///@return Input source this parser was configured with - jni.JObject getInputSource() { + _$jni.JObject getInputSource() { return _getInputSource( - reference.pointer, _id_getInputSource as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + reference.pointer, _id_getInputSource as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_setRequestPayloadOnError = _class.instanceMethodId( @@ -457,16 +483,16 @@ class JsonParser extends jni.JObject { r'(Lcom/fasterxml/jackson/core/util/RequestPayload;)V', ); - static final _setRequestPayloadOnError = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setRequestPayloadOnError = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setRequestPayloadOnError(com.fasterxml.jackson.core.util.RequestPayload payload)` /// @@ -474,11 +500,11 @@ class JsonParser extends jni.JObject { ///@param payload Payload to pass ///@since 2.8 void setRequestPayloadOnError( - jni.JObject payload, + _$jni.JObject payload, ) { _setRequestPayloadOnError( reference.pointer, - _id_setRequestPayloadOnError as jni.JMethodIDPtr, + _id_setRequestPayloadOnError as _$jni.JMethodIDPtr, payload.reference.pointer) .check(); } @@ -488,19 +514,23 @@ class JsonParser extends jni.JObject { r'([BLjava/lang/String;)V', ); - static final _setRequestPayloadOnError$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + static final _setRequestPayloadOnError$1 = + _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setRequestPayloadOnError(byte[] payload, java.lang.String charset)` /// @@ -509,12 +539,12 @@ class JsonParser extends jni.JObject { ///@param charset Character encoding for (lazily) decoding payload ///@since 2.8 void setRequestPayloadOnError$1( - jni.JArray payload, - jni.JString charset, + _$jni.JArray<_$jni.jbyte> payload, + _$jni.JString charset, ) { _setRequestPayloadOnError$1( reference.pointer, - _id_setRequestPayloadOnError$1 as jni.JMethodIDPtr, + _id_setRequestPayloadOnError$1 as _$jni.JMethodIDPtr, payload.reference.pointer, charset.reference.pointer) .check(); @@ -525,16 +555,17 @@ class JsonParser extends jni.JObject { r'(Ljava/lang/String;)V', ); - static final _setRequestPayloadOnError$2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + static final _setRequestPayloadOnError$2 = + _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setRequestPayloadOnError(java.lang.String payload)` /// @@ -542,11 +573,11 @@ class JsonParser extends jni.JObject { ///@param payload Payload to pass ///@since 2.8 void setRequestPayloadOnError$2( - jni.JString payload, + _$jni.JString payload, ) { _setRequestPayloadOnError$2( reference.pointer, - _id_setRequestPayloadOnError$2 as jni.JMethodIDPtr, + _id_setRequestPayloadOnError$2 as _$jni.JMethodIDPtr, payload.reference.pointer) .check(); } @@ -556,16 +587,16 @@ class JsonParser extends jni.JObject { r'(Lcom/fasterxml/jackson/core/FormatSchema;)V', ); - static final _setSchema = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setSchema = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setSchema(com.fasterxml.jackson.core.FormatSchema schema)` /// @@ -580,9 +611,9 @@ class JsonParser extends jni.JObject { ///@param schema Schema to use ///@throws UnsupportedOperationException if parser does not support schema void setSchema( - jni.JObject schema, + _$jni.JObject schema, ) { - _setSchema(reference.pointer, _id_setSchema as jni.JMethodIDPtr, + _setSchema(reference.pointer, _id_setSchema as _$jni.JMethodIDPtr, schema.reference.pointer) .check(); } @@ -592,16 +623,16 @@ class JsonParser extends jni.JObject { r'()Lcom/fasterxml/jackson/core/FormatSchema;', ); - static final _getSchema = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getSchema = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public com.fasterxml.jackson.core.FormatSchema getSchema()` @@ -611,9 +642,9 @@ class JsonParser extends jni.JObject { /// Default implementation returns null. ///@return Schema in use by this parser, if any; {@code null} if none ///@since 2.1 - jni.JObject getSchema() { - return _getSchema(reference.pointer, _id_getSchema as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + _$jni.JObject getSchema() { + return _getSchema(reference.pointer, _id_getSchema as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_canUseSchema = _class.instanceMethodId( @@ -621,16 +652,16 @@ class JsonParser extends jni.JObject { r'(Lcom/fasterxml/jackson/core/FormatSchema;)Z', ); - static final _canUseSchema = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _canUseSchema = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public boolean canUseSchema(com.fasterxml.jackson.core.FormatSchema schema)` /// @@ -639,10 +670,10 @@ class JsonParser extends jni.JObject { ///@param schema Schema to check ///@return True if this parser can use given schema; false if not bool canUseSchema( - jni.JObject schema, + _$jni.JObject schema, ) { return _canUseSchema(reference.pointer, - _id_canUseSchema as jni.JMethodIDPtr, schema.reference.pointer) + _id_canUseSchema as _$jni.JMethodIDPtr, schema.reference.pointer) .boolean; } @@ -651,16 +682,16 @@ class JsonParser extends jni.JObject { r'()Z', ); - static final _requiresCustomCodec = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _requiresCustomCodec = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public boolean requiresCustomCodec()` @@ -675,7 +706,7 @@ class JsonParser extends jni.JObject { ///@since 2.1 bool requiresCustomCodec() { return _requiresCustomCodec( - reference.pointer, _id_requiresCustomCodec as jni.JMethodIDPtr) + reference.pointer, _id_requiresCustomCodec as _$jni.JMethodIDPtr) .boolean; } @@ -684,16 +715,16 @@ class JsonParser extends jni.JObject { r'()Z', ); - static final _canParseAsync = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _canParseAsync = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public boolean canParseAsync()` @@ -711,7 +742,7 @@ class JsonParser extends jni.JObject { ///@since 2.9 bool canParseAsync() { return _canParseAsync( - reference.pointer, _id_canParseAsync as jni.JMethodIDPtr) + reference.pointer, _id_canParseAsync as _$jni.JMethodIDPtr) .boolean; } @@ -720,16 +751,16 @@ class JsonParser extends jni.JObject { r'()Lcom/fasterxml/jackson/core/async/NonBlockingInputFeeder;', ); - static final _getNonBlockingInputFeeder = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getNonBlockingInputFeeder = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public com.fasterxml.jackson.core.async.NonBlockingInputFeeder getNonBlockingInputFeeder()` @@ -740,10 +771,10 @@ class JsonParser extends jni.JObject { /// parsers that use blocking I/O. ///@return Input feeder to use with non-blocking (async) parsing ///@since 2.9 - jni.JObject getNonBlockingInputFeeder() { + _$jni.JObject getNonBlockingInputFeeder() { return _getNonBlockingInputFeeder(reference.pointer, - _id_getNonBlockingInputFeeder as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + _id_getNonBlockingInputFeeder as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_getReadCapabilities = _class.instanceMethodId( @@ -751,16 +782,16 @@ class JsonParser extends jni.JObject { r'()Lcom/fasterxml/jackson/core/util/JacksonFeatureSet;', ); - static final _getReadCapabilities = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getReadCapabilities = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public com.fasterxml.jackson.core.util.JacksonFeatureSet getReadCapabilities()` @@ -770,10 +801,10 @@ class JsonParser extends jni.JObject { /// underlying data format being read (directly or indirectly). ///@return Set of read capabilities for content to read via this parser ///@since 2.12 - jni.JObject getReadCapabilities() { + _$jni.JObject getReadCapabilities() { return _getReadCapabilities( - reference.pointer, _id_getReadCapabilities as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + reference.pointer, _id_getReadCapabilities as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_version = _class.instanceMethodId( @@ -781,16 +812,16 @@ class JsonParser extends jni.JObject { r'()Lcom/fasterxml/jackson/core/Version;', ); - static final _version = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _version = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract com.fasterxml.jackson.core.Version version()` @@ -800,9 +831,9 @@ class JsonParser extends jni.JObject { /// Left for sub-classes to implement. ///@return Version of this generator (derived from version declared for /// {@code jackson-core} jar that contains the class - jni.JObject version() { - return _version(reference.pointer, _id_version as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + _$jni.JObject version() { + return _version(reference.pointer, _id_version as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_close = _class.instanceMethodId( @@ -810,16 +841,16 @@ class JsonParser extends jni.JObject { r'()V', ); - static final _close = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _close = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract void close()` @@ -839,7 +870,7 @@ class JsonParser extends jni.JObject { /// stream or reader it does own them. ///@throws IOException if there is either an underlying I/O problem void close() { - _close(reference.pointer, _id_close as jni.JMethodIDPtr).check(); + _close(reference.pointer, _id_close as _$jni.JMethodIDPtr).check(); } static final _id_isClosed = _class.instanceMethodId( @@ -847,16 +878,16 @@ class JsonParser extends jni.JObject { r'()Z', ); - static final _isClosed = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _isClosed = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract boolean isClosed()` @@ -869,7 +900,7 @@ class JsonParser extends jni.JObject { /// end of input. ///@return {@code True} if this parser instance has been closed bool isClosed() { - return _isClosed(reference.pointer, _id_isClosed as jni.JMethodIDPtr) + return _isClosed(reference.pointer, _id_isClosed as _$jni.JMethodIDPtr) .boolean; } @@ -878,16 +909,16 @@ class JsonParser extends jni.JObject { r'()Lcom/fasterxml/jackson/core/JsonStreamContext;', ); - static final _getParsingContext = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getParsingContext = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract com.fasterxml.jackson.core.JsonStreamContext getParsingContext()` @@ -902,10 +933,10 @@ class JsonParser extends jni.JObject { /// Contexts can also be used for simple xpath-like matching of /// input, if so desired. ///@return Stream input context (JsonStreamContext) associated with this parser - jni.JObject getParsingContext() { + _$jni.JObject getParsingContext() { return _getParsingContext( - reference.pointer, _id_getParsingContext as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + reference.pointer, _id_getParsingContext as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_currentLocation = _class.instanceMethodId( @@ -913,16 +944,16 @@ class JsonParser extends jni.JObject { r'()Lcom/fasterxml/jackson/core/JsonLocation;', ); - static final _currentLocation = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _currentLocation = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public com.fasterxml.jackson.core.JsonLocation currentLocation()` @@ -940,10 +971,10 @@ class JsonParser extends jni.JObject { /// to other library) ///@return Location of the last processed input unit (byte or character) ///@since 2.13 - jni.JObject currentLocation() { + _$jni.JObject currentLocation() { return _currentLocation( - reference.pointer, _id_currentLocation as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + reference.pointer, _id_currentLocation as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_currentTokenLocation = _class.instanceMethodId( @@ -951,16 +982,16 @@ class JsonParser extends jni.JObject { r'()Lcom/fasterxml/jackson/core/JsonLocation;', ); - static final _currentTokenLocation = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _currentTokenLocation = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public com.fasterxml.jackson.core.JsonLocation currentTokenLocation()` @@ -978,10 +1009,10 @@ class JsonParser extends jni.JObject { /// to other library) ///@return Starting location of the token parser currently points to ///@since 2.13 (will eventually replace \#getTokenLocation) - jni.JObject currentTokenLocation() { + _$jni.JObject currentTokenLocation() { return _currentTokenLocation( - reference.pointer, _id_currentTokenLocation as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + reference.pointer, _id_currentTokenLocation as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_getCurrentLocation = _class.instanceMethodId( @@ -989,16 +1020,16 @@ class JsonParser extends jni.JObject { r'()Lcom/fasterxml/jackson/core/JsonLocation;', ); - static final _getCurrentLocation = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getCurrentLocation = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract com.fasterxml.jackson.core.JsonLocation getCurrentLocation()` @@ -1007,10 +1038,10 @@ class JsonParser extends jni.JObject { /// Alias for \#currentLocation(), to be deprecated in later /// Jackson 2.x versions (and removed from Jackson 3.0). ///@return Location of the last processed input unit (byte or character) - jni.JObject getCurrentLocation() { + _$jni.JObject getCurrentLocation() { return _getCurrentLocation( - reference.pointer, _id_getCurrentLocation as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + reference.pointer, _id_getCurrentLocation as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_getTokenLocation = _class.instanceMethodId( @@ -1018,16 +1049,16 @@ class JsonParser extends jni.JObject { r'()Lcom/fasterxml/jackson/core/JsonLocation;', ); - static final _getTokenLocation = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getTokenLocation = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract com.fasterxml.jackson.core.JsonLocation getTokenLocation()` @@ -1036,10 +1067,10 @@ class JsonParser extends jni.JObject { /// Alias for \#currentTokenLocation(), to be deprecated in later /// Jackson 2.x versions (and removed from Jackson 3.0). ///@return Starting location of the token parser currently points to - jni.JObject getTokenLocation() { + _$jni.JObject getTokenLocation() { return _getTokenLocation( - reference.pointer, _id_getTokenLocation as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + reference.pointer, _id_getTokenLocation as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_currentValue = _class.instanceMethodId( @@ -1047,16 +1078,16 @@ class JsonParser extends jni.JObject { r'()Ljava/lang/Object;', ); - static final _currentValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _currentValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.Object currentValue()` @@ -1073,10 +1104,10 @@ class JsonParser extends jni.JObject { /// and gets passed through data-binding. ///@return "Current value" associated with the current input context (state) of this parser ///@since 2.13 (added as replacement for older \#getCurrentValue() - jni.JObject currentValue() { + _$jni.JObject currentValue() { return _currentValue( - reference.pointer, _id_currentValue as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + reference.pointer, _id_currentValue as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_assignCurrentValue = _class.instanceMethodId( @@ -1084,16 +1115,16 @@ class JsonParser extends jni.JObject { r'(Ljava/lang/Object;)V', ); - static final _assignCurrentValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _assignCurrentValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void assignCurrentValue(java.lang.Object v)` /// @@ -1104,10 +1135,10 @@ class JsonParser extends jni.JObject { ///@param v Current value to assign for the current input context of this parser ///@since 2.13 (added as replacement for older \#setCurrentValue void assignCurrentValue( - jni.JObject v, + _$jni.JObject v, ) { _assignCurrentValue(reference.pointer, - _id_assignCurrentValue as jni.JMethodIDPtr, v.reference.pointer) + _id_assignCurrentValue as _$jni.JMethodIDPtr, v.reference.pointer) .check(); } @@ -1116,16 +1147,16 @@ class JsonParser extends jni.JObject { r'()Ljava/lang/Object;', ); - static final _getCurrentValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getCurrentValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.Object getCurrentValue()` @@ -1134,10 +1165,10 @@ class JsonParser extends jni.JObject { /// Alias for \#currentValue(), to be deprecated in later /// Jackson 2.x versions (and removed from Jackson 3.0). ///@return Location of the last processed input unit (byte or character) - jni.JObject getCurrentValue() { + _$jni.JObject getCurrentValue() { return _getCurrentValue( - reference.pointer, _id_getCurrentValue as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + reference.pointer, _id_getCurrentValue as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_setCurrentValue = _class.instanceMethodId( @@ -1145,16 +1176,16 @@ class JsonParser extends jni.JObject { r'(Ljava/lang/Object;)V', ); - static final _setCurrentValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setCurrentValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setCurrentValue(java.lang.Object v)` /// @@ -1162,10 +1193,10 @@ class JsonParser extends jni.JObject { /// Jackson 2.x versions (and removed from Jackson 3.0). ///@param v Current value to assign for the current input context of this parser void setCurrentValue( - jni.JObject v, + _$jni.JObject v, ) { - _setCurrentValue(reference.pointer, _id_setCurrentValue as jni.JMethodIDPtr, - v.reference.pointer) + _setCurrentValue(reference.pointer, + _id_setCurrentValue as _$jni.JMethodIDPtr, v.reference.pointer) .check(); } @@ -1174,16 +1205,16 @@ class JsonParser extends jni.JObject { r'(Ljava/io/OutputStream;)I', ); - static final _releaseBuffered = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _releaseBuffered = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public int releaseBuffered(java.io.OutputStream out)` /// @@ -1199,10 +1230,10 @@ class JsonParser extends jni.JObject { /// otherwise number of bytes released (0 if there was nothing to release) ///@throws IOException if write to stream threw exception int releaseBuffered( - jni.JObject out, + _$jni.JObject out, ) { return _releaseBuffered(reference.pointer, - _id_releaseBuffered as jni.JMethodIDPtr, out.reference.pointer) + _id_releaseBuffered as _$jni.JMethodIDPtr, out.reference.pointer) .integer; } @@ -1211,16 +1242,16 @@ class JsonParser extends jni.JObject { r'(Ljava/io/Writer;)I', ); - static final _releaseBuffered$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _releaseBuffered$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public int releaseBuffered(java.io.Writer w)` /// @@ -1237,10 +1268,10 @@ class JsonParser extends jni.JObject { /// otherwise number of chars released (0 if there was nothing to release) ///@throws IOException if write using Writer threw exception int releaseBuffered$1( - jni.JObject w, + _$jni.JObject w, ) { return _releaseBuffered$1(reference.pointer, - _id_releaseBuffered$1 as jni.JMethodIDPtr, w.reference.pointer) + _id_releaseBuffered$1 as _$jni.JMethodIDPtr, w.reference.pointer) .integer; } @@ -1249,16 +1280,16 @@ class JsonParser extends jni.JObject { r'(Lcom/fasterxml/jackson/core/JsonParser$Feature;)Lcom/fasterxml/jackson/core/JsonParser;', ); - static final _enable = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _enable = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonParser enable(com.fasterxml.jackson.core.JsonParser.Feature f)` /// The returned object must be released after use, by calling the [release] method. @@ -1270,9 +1301,9 @@ class JsonParser extends jni.JObject { JsonParser enable( JsonParser_Feature f, ) { - return _enable(reference.pointer, _id_enable as jni.JMethodIDPtr, + return _enable(reference.pointer, _id_enable as _$jni.JMethodIDPtr, f.reference.pointer) - .object(const $JsonParserType()); + .object(const $JsonParser$Type()); } static final _id_disable = _class.instanceMethodId( @@ -1280,16 +1311,16 @@ class JsonParser extends jni.JObject { r'(Lcom/fasterxml/jackson/core/JsonParser$Feature;)Lcom/fasterxml/jackson/core/JsonParser;', ); - static final _disable = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _disable = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.fasterxml.jackson.core.JsonParser disable(com.fasterxml.jackson.core.JsonParser.Feature f)` /// The returned object must be released after use, by calling the [release] method. @@ -1301,9 +1332,9 @@ class JsonParser extends jni.JObject { JsonParser disable( JsonParser_Feature f, ) { - return _disable(reference.pointer, _id_disable as jni.JMethodIDPtr, + return _disable(reference.pointer, _id_disable as _$jni.JMethodIDPtr, f.reference.pointer) - .object(const $JsonParserType()); + .object(const $JsonParser$Type()); } static final _id_configure = _class.instanceMethodId( @@ -1311,16 +1342,17 @@ class JsonParser extends jni.JObject { r'(Lcom/fasterxml/jackson/core/JsonParser$Feature;Z)Lcom/fasterxml/jackson/core/JsonParser;', ); - static final _configure = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer, $Int32)>)>>( + static final _configure = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Int32)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int)>(); /// from: `public com.fasterxml.jackson.core.JsonParser configure(com.fasterxml.jackson.core.JsonParser.Feature f, boolean state)` /// The returned object must be released after use, by calling the [release] method. @@ -1334,9 +1366,9 @@ class JsonParser extends jni.JObject { JsonParser_Feature f, bool state, ) { - return _configure(reference.pointer, _id_configure as jni.JMethodIDPtr, + return _configure(reference.pointer, _id_configure as _$jni.JMethodIDPtr, f.reference.pointer, state ? 1 : 0) - .object(const $JsonParserType()); + .object(const $JsonParser$Type()); } static final _id_isEnabled = _class.instanceMethodId( @@ -1344,16 +1376,16 @@ class JsonParser extends jni.JObject { r'(Lcom/fasterxml/jackson/core/JsonParser$Feature;)Z', ); - static final _isEnabled = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _isEnabled = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public boolean isEnabled(com.fasterxml.jackson.core.JsonParser.Feature f)` /// @@ -1363,7 +1395,7 @@ class JsonParser extends jni.JObject { bool isEnabled( JsonParser_Feature f, ) { - return _isEnabled(reference.pointer, _id_isEnabled as jni.JMethodIDPtr, + return _isEnabled(reference.pointer, _id_isEnabled as _$jni.JMethodIDPtr, f.reference.pointer) .boolean; } @@ -1373,16 +1405,16 @@ class JsonParser extends jni.JObject { r'(Lcom/fasterxml/jackson/core/StreamReadFeature;)Z', ); - static final _isEnabled$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _isEnabled$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public boolean isEnabled(com.fasterxml.jackson.core.StreamReadFeature f)` /// @@ -1391,10 +1423,10 @@ class JsonParser extends jni.JObject { ///@return {@code True} if feature is enabled; {@code false} otherwise ///@since 2.10 bool isEnabled$1( - jni.JObject f, + _$jni.JObject f, ) { - return _isEnabled$1(reference.pointer, _id_isEnabled$1 as jni.JMethodIDPtr, - f.reference.pointer) + return _isEnabled$1(reference.pointer, + _id_isEnabled$1 as _$jni.JMethodIDPtr, f.reference.pointer) .boolean; } @@ -1403,16 +1435,16 @@ class JsonParser extends jni.JObject { r'()I', ); - static final _getFeatureMask = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getFeatureMask = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public int getFeatureMask()` @@ -1422,7 +1454,7 @@ class JsonParser extends jni.JObject { ///@since 2.3 int getFeatureMask() { return _getFeatureMask( - reference.pointer, _id_getFeatureMask as jni.JMethodIDPtr) + reference.pointer, _id_getFeatureMask as _$jni.JMethodIDPtr) .integer; } @@ -1431,13 +1463,15 @@ class JsonParser extends jni.JObject { r'(I)Lcom/fasterxml/jackson/core/JsonParser;', ); - static final _setFeatureMask = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallObjectMethod') + static final _setFeatureMask = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public com.fasterxml.jackson.core.JsonParser setFeatureMask(int mask)` /// The returned object must be released after use, by calling the [release] method. @@ -1451,8 +1485,8 @@ class JsonParser extends jni.JObject { int mask, ) { return _setFeatureMask( - reference.pointer, _id_setFeatureMask as jni.JMethodIDPtr, mask) - .object(const $JsonParserType()); + reference.pointer, _id_setFeatureMask as _$jni.JMethodIDPtr, mask) + .object(const $JsonParser$Type()); } static final _id_overrideStdFeatures = _class.instanceMethodId( @@ -1460,13 +1494,16 @@ class JsonParser extends jni.JObject { r'(II)Lcom/fasterxml/jackson/core/JsonParser;', ); - static final _overrideStdFeatures = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32, $Int32)>)>>('globalEnv_CallObjectMethod') + static final _overrideStdFeatures = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32, _$jni.Int32)>)>>( + 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int, int)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int, int)>(); /// from: `public com.fasterxml.jackson.core.JsonParser overrideStdFeatures(int values, int mask)` /// The returned object must be released after use, by calling the [release] method. @@ -1488,8 +1525,8 @@ class JsonParser extends jni.JObject { int mask, ) { return _overrideStdFeatures(reference.pointer, - _id_overrideStdFeatures as jni.JMethodIDPtr, values, mask) - .object(const $JsonParserType()); + _id_overrideStdFeatures as _$jni.JMethodIDPtr, values, mask) + .object(const $JsonParser$Type()); } static final _id_getFormatFeatures = _class.instanceMethodId( @@ -1497,16 +1534,16 @@ class JsonParser extends jni.JObject { r'()I', ); - static final _getFormatFeatures = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getFormatFeatures = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public int getFormatFeatures()` @@ -1517,7 +1554,7 @@ class JsonParser extends jni.JObject { ///@since 2.6 int getFormatFeatures() { return _getFormatFeatures( - reference.pointer, _id_getFormatFeatures as jni.JMethodIDPtr) + reference.pointer, _id_getFormatFeatures as _$jni.JMethodIDPtr) .integer; } @@ -1526,13 +1563,16 @@ class JsonParser extends jni.JObject { r'(II)Lcom/fasterxml/jackson/core/JsonParser;', ); - static final _overrideFormatFeatures = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32, $Int32)>)>>('globalEnv_CallObjectMethod') + static final _overrideFormatFeatures = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32, _$jni.Int32)>)>>( + 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int, int)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int, int)>(); /// from: `public com.fasterxml.jackson.core.JsonParser overrideFormatFeatures(int values, int mask)` /// The returned object must be released after use, by calling the [release] method. @@ -1552,8 +1592,8 @@ class JsonParser extends jni.JObject { int mask, ) { return _overrideFormatFeatures(reference.pointer, - _id_overrideFormatFeatures as jni.JMethodIDPtr, values, mask) - .object(const $JsonParserType()); + _id_overrideFormatFeatures as _$jni.JMethodIDPtr, values, mask) + .object(const $JsonParser$Type()); } static final _id_nextToken = _class.instanceMethodId( @@ -1561,16 +1601,16 @@ class JsonParser extends jni.JObject { r'()Lcom/fasterxml/jackson/core/JsonToken;', ); - static final _nextToken = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _nextToken = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract com.fasterxml.jackson.core.JsonToken nextToken()` @@ -1585,8 +1625,8 @@ class JsonParser extends jni.JObject { ///@throws IOException for low-level read issues, or /// JsonParseException for decoding problems jsontoken_.JsonToken nextToken() { - return _nextToken(reference.pointer, _id_nextToken as jni.JMethodIDPtr) - .object(const jsontoken_.$JsonTokenType()); + return _nextToken(reference.pointer, _id_nextToken as _$jni.JMethodIDPtr) + .object(const jsontoken_.$JsonToken$Type()); } static final _id_nextValue = _class.instanceMethodId( @@ -1594,16 +1634,16 @@ class JsonParser extends jni.JObject { r'()Lcom/fasterxml/jackson/core/JsonToken;', ); - static final _nextValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _nextValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract com.fasterxml.jackson.core.JsonToken nextValue()` @@ -1626,8 +1666,8 @@ class JsonParser extends jni.JObject { ///@throws IOException for low-level read issues, or /// JsonParseException for decoding problems jsontoken_.JsonToken nextValue() { - return _nextValue(reference.pointer, _id_nextValue as jni.JMethodIDPtr) - .object(const jsontoken_.$JsonTokenType()); + return _nextValue(reference.pointer, _id_nextValue as _$jni.JMethodIDPtr) + .object(const jsontoken_.$JsonToken$Type()); } static final _id_nextFieldName = _class.instanceMethodId( @@ -1635,16 +1675,16 @@ class JsonParser extends jni.JObject { r'(Lcom/fasterxml/jackson/core/SerializableString;)Z', ); - static final _nextFieldName = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _nextFieldName = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public boolean nextFieldName(com.fasterxml.jackson.core.SerializableString str)` /// @@ -1664,10 +1704,10 @@ class JsonParser extends jni.JObject { ///@throws IOException for low-level read issues, or /// JsonParseException for decoding problems bool nextFieldName( - jni.JObject str, + _$jni.JObject str, ) { return _nextFieldName(reference.pointer, - _id_nextFieldName as jni.JMethodIDPtr, str.reference.pointer) + _id_nextFieldName as _$jni.JMethodIDPtr, str.reference.pointer) .boolean; } @@ -1676,16 +1716,16 @@ class JsonParser extends jni.JObject { r'()Ljava/lang/String;', ); - static final _nextFieldName$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _nextFieldName$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.String nextFieldName()` @@ -1699,10 +1739,10 @@ class JsonParser extends jni.JObject { ///@throws IOException for low-level read issues, or /// JsonParseException for decoding problems ///@since 2.5 - jni.JString nextFieldName$1() { + _$jni.JString nextFieldName$1() { return _nextFieldName$1( - reference.pointer, _id_nextFieldName$1 as jni.JMethodIDPtr) - .object(const jni.JStringType()); + reference.pointer, _id_nextFieldName$1 as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_nextTextValue = _class.instanceMethodId( @@ -1710,16 +1750,16 @@ class JsonParser extends jni.JObject { r'()Ljava/lang/String;', ); - static final _nextTextValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _nextTextValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.String nextTextValue()` @@ -1738,10 +1778,10 @@ class JsonParser extends jni.JObject { /// to; or {@code null} if next token is of some other type ///@throws IOException for low-level read issues, or /// JsonParseException for decoding problems - jni.JString nextTextValue() { + _$jni.JString nextTextValue() { return _nextTextValue( - reference.pointer, _id_nextTextValue as jni.JMethodIDPtr) - .object(const jni.JStringType()); + reference.pointer, _id_nextTextValue as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_nextIntValue = _class.instanceMethodId( @@ -1749,13 +1789,15 @@ class JsonParser extends jni.JObject { r'(I)I', ); - static final _nextIntValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallIntMethod') + static final _nextIntValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public int nextIntValue(int defaultValue)` /// @@ -1780,7 +1822,7 @@ class JsonParser extends jni.JObject { int defaultValue, ) { return _nextIntValue(reference.pointer, - _id_nextIntValue as jni.JMethodIDPtr, defaultValue) + _id_nextIntValue as _$jni.JMethodIDPtr, defaultValue) .integer; } @@ -1789,13 +1831,15 @@ class JsonParser extends jni.JObject { r'(J)J', ); - static final _nextLongValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Int64,)>)>>('globalEnv_CallLongMethod') + static final _nextLongValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int64,)>)>>('globalEnv_CallLongMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public long nextLongValue(long defaultValue)` /// @@ -1820,7 +1864,7 @@ class JsonParser extends jni.JObject { int defaultValue, ) { return _nextLongValue(reference.pointer, - _id_nextLongValue as jni.JMethodIDPtr, defaultValue) + _id_nextLongValue as _$jni.JMethodIDPtr, defaultValue) .long; } @@ -1829,16 +1873,16 @@ class JsonParser extends jni.JObject { r'()Ljava/lang/Boolean;', ); - static final _nextBooleanValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _nextBooleanValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.Boolean nextBooleanValue()` @@ -1860,10 +1904,10 @@ class JsonParser extends jni.JObject { /// token parser advanced to; or {@code null} if next token is of some other type ///@throws IOException for low-level read issues, or /// JsonParseException for decoding problems - jni.JBoolean nextBooleanValue() { + _$jni.JBoolean nextBooleanValue() { return _nextBooleanValue( - reference.pointer, _id_nextBooleanValue as jni.JMethodIDPtr) - .object(const jni.JBooleanType()); + reference.pointer, _id_nextBooleanValue as _$jni.JMethodIDPtr) + .object(const _$jni.JBooleanType()); } static final _id_skipChildren = _class.instanceMethodId( @@ -1871,16 +1915,16 @@ class JsonParser extends jni.JObject { r'()Lcom/fasterxml/jackson/core/JsonParser;', ); - static final _skipChildren = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _skipChildren = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract com.fasterxml.jackson.core.JsonParser skipChildren()` @@ -1903,8 +1947,8 @@ class JsonParser extends jni.JObject { /// JsonParseException for decoding problems JsonParser skipChildren() { return _skipChildren( - reference.pointer, _id_skipChildren as jni.JMethodIDPtr) - .object(const $JsonParserType()); + reference.pointer, _id_skipChildren as _$jni.JMethodIDPtr) + .object(const $JsonParser$Type()); } static final _id_finishToken = _class.instanceMethodId( @@ -1912,16 +1956,16 @@ class JsonParser extends jni.JObject { r'()V', ); - static final _finishToken = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _finishToken = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void finishToken()` @@ -1940,7 +1984,7 @@ class JsonParser extends jni.JObject { /// JsonParseException for decoding problems ///@since 2.8 void finishToken() { - _finishToken(reference.pointer, _id_finishToken as jni.JMethodIDPtr) + _finishToken(reference.pointer, _id_finishToken as _$jni.JMethodIDPtr) .check(); } @@ -1949,16 +1993,16 @@ class JsonParser extends jni.JObject { r'()Lcom/fasterxml/jackson/core/JsonToken;', ); - static final _currentToken = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _currentToken = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public com.fasterxml.jackson.core.JsonToken currentToken()` @@ -1975,8 +2019,8 @@ class JsonParser extends jni.JObject { ///@since 2.8 jsontoken_.JsonToken currentToken() { return _currentToken( - reference.pointer, _id_currentToken as jni.JMethodIDPtr) - .object(const jsontoken_.$JsonTokenType()); + reference.pointer, _id_currentToken as _$jni.JMethodIDPtr) + .object(const jsontoken_.$JsonToken$Type()); } static final _id_currentTokenId = _class.instanceMethodId( @@ -1984,16 +2028,16 @@ class JsonParser extends jni.JObject { r'()I', ); - static final _currentTokenId = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _currentTokenId = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public int currentTokenId()` @@ -2009,7 +2053,7 @@ class JsonParser extends jni.JObject { ///@return {@code int} matching one of constants from JsonTokenId. int currentTokenId() { return _currentTokenId( - reference.pointer, _id_currentTokenId as jni.JMethodIDPtr) + reference.pointer, _id_currentTokenId as _$jni.JMethodIDPtr) .integer; } @@ -2018,16 +2062,16 @@ class JsonParser extends jni.JObject { r'()Lcom/fasterxml/jackson/core/JsonToken;', ); - static final _getCurrentToken = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getCurrentToken = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract com.fasterxml.jackson.core.JsonToken getCurrentToken()` @@ -2039,8 +2083,8 @@ class JsonParser extends jni.JObject { /// if any: null before any tokens have been read, and jsontoken_.JsonToken getCurrentToken() { return _getCurrentToken( - reference.pointer, _id_getCurrentToken as jni.JMethodIDPtr) - .object(const jsontoken_.$JsonTokenType()); + reference.pointer, _id_getCurrentToken as _$jni.JMethodIDPtr) + .object(const jsontoken_.$JsonToken$Type()); } static final _id_getCurrentTokenId = _class.instanceMethodId( @@ -2048,16 +2092,16 @@ class JsonParser extends jni.JObject { r'()I', ); - static final _getCurrentTokenId = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getCurrentTokenId = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract int getCurrentTokenId()` @@ -2067,7 +2111,7 @@ class JsonParser extends jni.JObject { ///@deprecated Since 2.12 use \#currentTokenId instead int getCurrentTokenId() { return _getCurrentTokenId( - reference.pointer, _id_getCurrentTokenId as jni.JMethodIDPtr) + reference.pointer, _id_getCurrentTokenId as _$jni.JMethodIDPtr) .integer; } @@ -2076,16 +2120,16 @@ class JsonParser extends jni.JObject { r'()Z', ); - static final _hasCurrentToken = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _hasCurrentToken = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract boolean hasCurrentToken()` @@ -2100,7 +2144,7 @@ class JsonParser extends jni.JObject { /// has been consumed) bool hasCurrentToken() { return _hasCurrentToken( - reference.pointer, _id_hasCurrentToken as jni.JMethodIDPtr) + reference.pointer, _id_hasCurrentToken as _$jni.JMethodIDPtr) .boolean; } @@ -2109,13 +2153,16 @@ class JsonParser extends jni.JObject { r'(I)Z', ); - static final _hasTokenId = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallBooleanMethod') + static final _hasTokenId = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public abstract boolean hasTokenId(int id)` /// @@ -2135,7 +2182,7 @@ class JsonParser extends jni.JObject { int id, ) { return _hasTokenId( - reference.pointer, _id_hasTokenId as jni.JMethodIDPtr, id) + reference.pointer, _id_hasTokenId as _$jni.JMethodIDPtr, id) .boolean; } @@ -2144,16 +2191,16 @@ class JsonParser extends jni.JObject { r'(Lcom/fasterxml/jackson/core/JsonToken;)Z', ); - static final _hasToken = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _hasToken = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public abstract boolean hasToken(com.fasterxml.jackson.core.JsonToken t)` /// @@ -2172,7 +2219,7 @@ class JsonParser extends jni.JObject { bool hasToken( jsontoken_.JsonToken t, ) { - return _hasToken(reference.pointer, _id_hasToken as jni.JMethodIDPtr, + return _hasToken(reference.pointer, _id_hasToken as _$jni.JMethodIDPtr, t.reference.pointer) .boolean; } @@ -2182,16 +2229,16 @@ class JsonParser extends jni.JObject { r'()Z', ); - static final _isExpectedStartArrayToken = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _isExpectedStartArrayToken = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public boolean isExpectedStartArrayToken()` @@ -2214,7 +2261,7 @@ class JsonParser extends jni.JObject { /// {@code false} if not bool isExpectedStartArrayToken() { return _isExpectedStartArrayToken(reference.pointer, - _id_isExpectedStartArrayToken as jni.JMethodIDPtr) + _id_isExpectedStartArrayToken as _$jni.JMethodIDPtr) .boolean; } @@ -2223,17 +2270,18 @@ class JsonParser extends jni.JObject { r'()Z', ); - static final _isExpectedStartObjectToken = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + static final _isExpectedStartObjectToken = + _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); /// from: `public boolean isExpectedStartObjectToken()` /// @@ -2245,7 +2293,7 @@ class JsonParser extends jni.JObject { ///@since 2.5 bool isExpectedStartObjectToken() { return _isExpectedStartObjectToken(reference.pointer, - _id_isExpectedStartObjectToken as jni.JMethodIDPtr) + _id_isExpectedStartObjectToken as _$jni.JMethodIDPtr) .boolean; } @@ -2254,16 +2302,16 @@ class JsonParser extends jni.JObject { r'()Z', ); - static final _isExpectedNumberIntToken = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _isExpectedNumberIntToken = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public boolean isExpectedNumberIntToken()` @@ -2278,8 +2326,8 @@ class JsonParser extends jni.JObject { /// {@code false} if not ///@since 2.12 bool isExpectedNumberIntToken() { - return _isExpectedNumberIntToken( - reference.pointer, _id_isExpectedNumberIntToken as jni.JMethodIDPtr) + return _isExpectedNumberIntToken(reference.pointer, + _id_isExpectedNumberIntToken as _$jni.JMethodIDPtr) .boolean; } @@ -2288,16 +2336,16 @@ class JsonParser extends jni.JObject { r'()Z', ); - static final _isNaN = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _isNaN = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public boolean isNaN()` @@ -2315,7 +2363,7 @@ class JsonParser extends jni.JObject { /// JsonParseException for decoding problems ///@since 2.9 bool isNaN() { - return _isNaN(reference.pointer, _id_isNaN as jni.JMethodIDPtr).boolean; + return _isNaN(reference.pointer, _id_isNaN as _$jni.JMethodIDPtr).boolean; } static final _id_clearCurrentToken = _class.instanceMethodId( @@ -2323,16 +2371,16 @@ class JsonParser extends jni.JObject { r'()V', ); - static final _clearCurrentToken = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _clearCurrentToken = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract void clearCurrentToken()` @@ -2349,7 +2397,7 @@ class JsonParser extends jni.JObject { /// it will not be used again). void clearCurrentToken() { _clearCurrentToken( - reference.pointer, _id_clearCurrentToken as jni.JMethodIDPtr) + reference.pointer, _id_clearCurrentToken as _$jni.JMethodIDPtr) .check(); } @@ -2358,16 +2406,16 @@ class JsonParser extends jni.JObject { r'()Lcom/fasterxml/jackson/core/JsonToken;', ); - static final _getLastClearedToken = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getLastClearedToken = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract com.fasterxml.jackson.core.JsonToken getLastClearedToken()` @@ -2381,8 +2429,8 @@ class JsonParser extends jni.JObject { ///@return Last cleared token, if any; {@code null} otherwise jsontoken_.JsonToken getLastClearedToken() { return _getLastClearedToken( - reference.pointer, _id_getLastClearedToken as jni.JMethodIDPtr) - .object(const jsontoken_.$JsonTokenType()); + reference.pointer, _id_getLastClearedToken as _$jni.JMethodIDPtr) + .object(const jsontoken_.$JsonToken$Type()); } static final _id_overrideCurrentName = _class.instanceMethodId( @@ -2390,16 +2438,16 @@ class JsonParser extends jni.JObject { r'(Ljava/lang/String;)V', ); - static final _overrideCurrentName = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _overrideCurrentName = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public abstract void overrideCurrentName(java.lang.String name)` /// @@ -2412,10 +2460,12 @@ class JsonParser extends jni.JObject { /// resort, as it is a work-around for regular operation. ///@param name Name to use as the current name; may be null. void overrideCurrentName( - jni.JString name, + _$jni.JString name, ) { - _overrideCurrentName(reference.pointer, - _id_overrideCurrentName as jni.JMethodIDPtr, name.reference.pointer) + _overrideCurrentName( + reference.pointer, + _id_overrideCurrentName as _$jni.JMethodIDPtr, + name.reference.pointer) .check(); } @@ -2424,16 +2474,16 @@ class JsonParser extends jni.JObject { r'()Ljava/lang/String;', ); - static final _getCurrentName = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getCurrentName = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract java.lang.String getCurrentName()` @@ -2443,10 +2493,10 @@ class JsonParser extends jni.JObject { ///@return Name of the current field in the parsing context ///@throws IOException for low-level read issues, or /// JsonParseException for decoding problems - jni.JString getCurrentName() { + _$jni.JString getCurrentName() { return _getCurrentName( - reference.pointer, _id_getCurrentName as jni.JMethodIDPtr) - .object(const jni.JStringType()); + reference.pointer, _id_getCurrentName as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_currentName = _class.instanceMethodId( @@ -2454,16 +2504,16 @@ class JsonParser extends jni.JObject { r'()Ljava/lang/String;', ); - static final _currentName = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _currentName = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.String currentName()` @@ -2478,9 +2528,10 @@ class JsonParser extends jni.JObject { ///@throws IOException for low-level read issues, or /// JsonParseException for decoding problems ///@since 2.10 - jni.JString currentName() { - return _currentName(reference.pointer, _id_currentName as jni.JMethodIDPtr) - .object(const jni.JStringType()); + _$jni.JString currentName() { + return _currentName( + reference.pointer, _id_currentName as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_getText = _class.instanceMethodId( @@ -2488,16 +2539,16 @@ class JsonParser extends jni.JObject { r'()Ljava/lang/String;', ); - static final _getText = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getText = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract java.lang.String getText()` @@ -2511,9 +2562,9 @@ class JsonParser extends jni.JObject { /// by \#nextToken() or other iteration methods) ///@throws IOException for low-level read issues, or /// JsonParseException for decoding problems - jni.JString getText() { - return _getText(reference.pointer, _id_getText as jni.JMethodIDPtr) - .object(const jni.JStringType()); + _$jni.JString getText() { + return _getText(reference.pointer, _id_getText as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_getText$1 = _class.instanceMethodId( @@ -2521,16 +2572,16 @@ class JsonParser extends jni.JObject { r'(Ljava/io/Writer;)I', ); - static final _getText$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _getText$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public int getText(java.io.Writer writer)` /// @@ -2550,9 +2601,9 @@ class JsonParser extends jni.JObject { /// JsonParseException for decoding problems ///@since 2.8 int getText$1( - jni.JObject writer, + _$jni.JObject writer, ) { - return _getText$1(reference.pointer, _id_getText$1 as jni.JMethodIDPtr, + return _getText$1(reference.pointer, _id_getText$1 as _$jni.JMethodIDPtr, writer.reference.pointer) .integer; } @@ -2562,16 +2613,16 @@ class JsonParser extends jni.JObject { r'()[C', ); - static final _getTextCharacters = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getTextCharacters = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract char[] getTextCharacters()` @@ -2604,10 +2655,10 @@ class JsonParser extends jni.JObject { /// at offset 0, and not necessarily until the end of buffer) ///@throws IOException for low-level read issues, or /// JsonParseException for decoding problems - jni.JArray getTextCharacters() { + _$jni.JArray<_$jni.jchar> getTextCharacters() { return _getTextCharacters( - reference.pointer, _id_getTextCharacters as jni.JMethodIDPtr) - .object(const jni.JArrayType(jni.jcharType())); + reference.pointer, _id_getTextCharacters as _$jni.JMethodIDPtr) + .object(const _$jni.JArrayType(_$jni.jcharType())); } static final _id_getTextLength = _class.instanceMethodId( @@ -2615,16 +2666,16 @@ class JsonParser extends jni.JObject { r'()I', ); - static final _getTextLength = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getTextLength = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract int getTextLength()` @@ -2638,7 +2689,7 @@ class JsonParser extends jni.JObject { /// JsonParseException for decoding problems int getTextLength() { return _getTextLength( - reference.pointer, _id_getTextLength as jni.JMethodIDPtr) + reference.pointer, _id_getTextLength as _$jni.JMethodIDPtr) .integer; } @@ -2647,16 +2698,16 @@ class JsonParser extends jni.JObject { r'()I', ); - static final _getTextOffset = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getTextOffset = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract int getTextOffset()` @@ -2670,7 +2721,7 @@ class JsonParser extends jni.JObject { /// JsonParseException for decoding problems int getTextOffset() { return _getTextOffset( - reference.pointer, _id_getTextOffset as jni.JMethodIDPtr) + reference.pointer, _id_getTextOffset as _$jni.JMethodIDPtr) .integer; } @@ -2679,16 +2730,16 @@ class JsonParser extends jni.JObject { r'()Z', ); - static final _hasTextCharacters = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _hasTextCharacters = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract boolean hasTextCharacters()` @@ -2709,7 +2760,7 @@ class JsonParser extends jni.JObject { /// means that it may or may not exist bool hasTextCharacters() { return _hasTextCharacters( - reference.pointer, _id_hasTextCharacters as jni.JMethodIDPtr) + reference.pointer, _id_hasTextCharacters as _$jni.JMethodIDPtr) .boolean; } @@ -2718,16 +2769,16 @@ class JsonParser extends jni.JObject { r'()Ljava/lang/Number;', ); - static final _getNumberValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getNumberValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract java.lang.Number getNumberValue()` @@ -2743,10 +2794,10 @@ class JsonParser extends jni.JObject { /// the current token is not numeric, or if decoding of the value fails /// (invalid format for numbers); plain IOException if underlying /// content read fails (possible if values are extracted lazily) - jni.JNumber getNumberValue() { + _$jni.JNumber getNumberValue() { return _getNumberValue( - reference.pointer, _id_getNumberValue as jni.JMethodIDPtr) - .object(const jni.JNumberType()); + reference.pointer, _id_getNumberValue as _$jni.JMethodIDPtr) + .object(const _$jni.JNumberType()); } static final _id_getNumberValueExact = _class.instanceMethodId( @@ -2754,16 +2805,16 @@ class JsonParser extends jni.JObject { r'()Ljava/lang/Number;', ); - static final _getNumberValueExact = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getNumberValueExact = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.Number getNumberValueExact()` @@ -2783,10 +2834,10 @@ class JsonParser extends jni.JObject { /// (invalid format for numbers); plain IOException if underlying /// content read fails (possible if values are extracted lazily) ///@since 2.12 - jni.JNumber getNumberValueExact() { + _$jni.JNumber getNumberValueExact() { return _getNumberValueExact( - reference.pointer, _id_getNumberValueExact as jni.JMethodIDPtr) - .object(const jni.JNumberType()); + reference.pointer, _id_getNumberValueExact as _$jni.JMethodIDPtr) + .object(const _$jni.JNumberType()); } static final _id_getNumberType = _class.instanceMethodId( @@ -2794,16 +2845,16 @@ class JsonParser extends jni.JObject { r'()Lcom/fasterxml/jackson/core/JsonParser$NumberType;', ); - static final _getNumberType = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getNumberType = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract com.fasterxml.jackson.core.JsonParser.NumberType getNumberType()` @@ -2818,8 +2869,8 @@ class JsonParser extends jni.JObject { /// JsonParseException for decoding problems JsonParser_NumberType getNumberType() { return _getNumberType( - reference.pointer, _id_getNumberType as jni.JMethodIDPtr) - .object(const $JsonParser_NumberTypeType()); + reference.pointer, _id_getNumberType as _$jni.JMethodIDPtr) + .object(const $JsonParser_NumberType$Type()); } static final _id_getByteValue = _class.instanceMethodId( @@ -2827,16 +2878,16 @@ class JsonParser extends jni.JObject { r'()B', ); - static final _getByteValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getByteValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallByteMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public byte getByteValue()` @@ -2864,7 +2915,7 @@ class JsonParser extends jni.JObject { /// JsonParseException for decoding problems int getByteValue() { return _getByteValue( - reference.pointer, _id_getByteValue as jni.JMethodIDPtr) + reference.pointer, _id_getByteValue as _$jni.JMethodIDPtr) .byte; } @@ -2873,16 +2924,16 @@ class JsonParser extends jni.JObject { r'()S', ); - static final _getShortValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getShortValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallShortMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public short getShortValue()` @@ -2904,7 +2955,7 @@ class JsonParser extends jni.JObject { /// JsonParseException for decoding problems int getShortValue() { return _getShortValue( - reference.pointer, _id_getShortValue as jni.JMethodIDPtr) + reference.pointer, _id_getShortValue as _$jni.JMethodIDPtr) .short; } @@ -2913,16 +2964,16 @@ class JsonParser extends jni.JObject { r'()I', ); - static final _getIntValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getIntValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract int getIntValue()` @@ -2943,7 +2994,8 @@ class JsonParser extends jni.JObject { ///@throws IOException for low-level read issues, or /// JsonParseException for decoding problems int getIntValue() { - return _getIntValue(reference.pointer, _id_getIntValue as jni.JMethodIDPtr) + return _getIntValue( + reference.pointer, _id_getIntValue as _$jni.JMethodIDPtr) .integer; } @@ -2952,16 +3004,16 @@ class JsonParser extends jni.JObject { r'()J', ); - static final _getLongValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getLongValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallLongMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract long getLongValue()` @@ -2983,7 +3035,7 @@ class JsonParser extends jni.JObject { /// JsonParseException for decoding problems int getLongValue() { return _getLongValue( - reference.pointer, _id_getLongValue as jni.JMethodIDPtr) + reference.pointer, _id_getLongValue as _$jni.JMethodIDPtr) .long; } @@ -2992,16 +3044,16 @@ class JsonParser extends jni.JObject { r'()Ljava/math/BigInteger;', ); - static final _getBigIntegerValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getBigIntegerValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract java.math.BigInteger getBigIntegerValue()` @@ -3018,10 +3070,10 @@ class JsonParser extends jni.JObject { /// otherwise exception thrown ///@throws IOException for low-level read issues, or /// JsonParseException for decoding problems - jni.JObject getBigIntegerValue() { + _$jni.JObject getBigIntegerValue() { return _getBigIntegerValue( - reference.pointer, _id_getBigIntegerValue as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + reference.pointer, _id_getBigIntegerValue as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_getFloatValue = _class.instanceMethodId( @@ -3029,16 +3081,16 @@ class JsonParser extends jni.JObject { r'()F', ); - static final _getFloatValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getFloatValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallFloatMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract float getFloatValue()` @@ -3060,7 +3112,7 @@ class JsonParser extends jni.JObject { /// JsonParseException for decoding problems double getFloatValue() { return _getFloatValue( - reference.pointer, _id_getFloatValue as jni.JMethodIDPtr) + reference.pointer, _id_getFloatValue as _$jni.JMethodIDPtr) .float; } @@ -3069,16 +3121,16 @@ class JsonParser extends jni.JObject { r'()D', ); - static final _getDoubleValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getDoubleValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallDoubleMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract double getDoubleValue()` @@ -3100,7 +3152,7 @@ class JsonParser extends jni.JObject { /// JsonParseException for decoding problems double getDoubleValue() { return _getDoubleValue( - reference.pointer, _id_getDoubleValue as jni.JMethodIDPtr) + reference.pointer, _id_getDoubleValue as _$jni.JMethodIDPtr) .doubleFloat; } @@ -3109,16 +3161,16 @@ class JsonParser extends jni.JObject { r'()Ljava/math/BigDecimal;', ); - static final _getDecimalValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getDecimalValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract java.math.BigDecimal getDecimalValue()` @@ -3132,10 +3184,10 @@ class JsonParser extends jni.JObject { /// otherwise exception thrown ///@throws IOException for low-level read issues, or /// JsonParseException for decoding problems - jni.JObject getDecimalValue() { + _$jni.JObject getDecimalValue() { return _getDecimalValue( - reference.pointer, _id_getDecimalValue as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + reference.pointer, _id_getDecimalValue as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_getBooleanValue = _class.instanceMethodId( @@ -3143,16 +3195,16 @@ class JsonParser extends jni.JObject { r'()Z', ); - static final _getBooleanValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getBooleanValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public boolean getBooleanValue()` @@ -3170,7 +3222,7 @@ class JsonParser extends jni.JObject { /// JsonParseException for decoding problems bool getBooleanValue() { return _getBooleanValue( - reference.pointer, _id_getBooleanValue as jni.JMethodIDPtr) + reference.pointer, _id_getBooleanValue as _$jni.JMethodIDPtr) .boolean; } @@ -3179,16 +3231,16 @@ class JsonParser extends jni.JObject { r'()Ljava/lang/Object;', ); - static final _getEmbeddedObject = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getEmbeddedObject = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.Object getEmbeddedObject()` @@ -3208,10 +3260,10 @@ class JsonParser extends jni.JObject { /// for the current token, if any; {@code null otherwise} ///@throws IOException for low-level read issues, or /// JsonParseException for decoding problems - jni.JObject getEmbeddedObject() { + _$jni.JObject getEmbeddedObject() { return _getEmbeddedObject( - reference.pointer, _id_getEmbeddedObject as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + reference.pointer, _id_getEmbeddedObject as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_getBinaryValue = _class.instanceMethodId( @@ -3219,16 +3271,16 @@ class JsonParser extends jni.JObject { r'(Lcom/fasterxml/jackson/core/Base64Variant;)[B', ); - static final _getBinaryValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _getBinaryValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public abstract byte[] getBinaryValue(com.fasterxml.jackson.core.Base64Variant bv)` /// The returned object must be released after use, by calling the [release] method. @@ -3253,12 +3305,12 @@ class JsonParser extends jni.JObject { ///@return Decoded binary data ///@throws IOException for low-level read issues, or /// JsonParseException for decoding problems - jni.JArray getBinaryValue( - jni.JObject bv, + _$jni.JArray<_$jni.jbyte> getBinaryValue( + _$jni.JObject bv, ) { return _getBinaryValue(reference.pointer, - _id_getBinaryValue as jni.JMethodIDPtr, bv.reference.pointer) - .object(const jni.JArrayType(jni.jbyteType())); + _id_getBinaryValue as _$jni.JMethodIDPtr, bv.reference.pointer) + .object(const _$jni.JArrayType(_$jni.jbyteType())); } static final _id_getBinaryValue$1 = _class.instanceMethodId( @@ -3266,16 +3318,16 @@ class JsonParser extends jni.JObject { r'()[B', ); - static final _getBinaryValue$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getBinaryValue$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public byte[] getBinaryValue()` @@ -3287,10 +3339,10 @@ class JsonParser extends jni.JObject { ///@return Decoded binary data ///@throws IOException for low-level read issues, or /// JsonParseException for decoding problems - jni.JArray getBinaryValue$1() { + _$jni.JArray<_$jni.jbyte> getBinaryValue$1() { return _getBinaryValue$1( - reference.pointer, _id_getBinaryValue$1 as jni.JMethodIDPtr) - .object(const jni.JArrayType(jni.jbyteType())); + reference.pointer, _id_getBinaryValue$1 as _$jni.JMethodIDPtr) + .object(const _$jni.JArrayType(_$jni.jbyteType())); } static final _id_readBinaryValue = _class.instanceMethodId( @@ -3298,16 +3350,16 @@ class JsonParser extends jni.JObject { r'(Ljava/io/OutputStream;)I', ); - static final _readBinaryValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _readBinaryValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public int readBinaryValue(java.io.OutputStream out)` /// @@ -3323,10 +3375,10 @@ class JsonParser extends jni.JObject { /// JsonParseException for decoding problems ///@since 2.1 int readBinaryValue( - jni.JObject out, + _$jni.JObject out, ) { return _readBinaryValue(reference.pointer, - _id_readBinaryValue as jni.JMethodIDPtr, out.reference.pointer) + _id_readBinaryValue as _$jni.JMethodIDPtr, out.reference.pointer) .integer; } @@ -3335,19 +3387,22 @@ class JsonParser extends jni.JObject { r'(Lcom/fasterxml/jackson/core/Base64Variant;Ljava/io/OutputStream;)I', ); - static final _readBinaryValue$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _readBinaryValue$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public int readBinaryValue(com.fasterxml.jackson.core.Base64Variant bv, java.io.OutputStream out)` /// @@ -3360,12 +3415,12 @@ class JsonParser extends jni.JObject { /// JsonParseException for decoding problems ///@since 2.1 int readBinaryValue$1( - jni.JObject bv, - jni.JObject out, + _$jni.JObject bv, + _$jni.JObject out, ) { return _readBinaryValue$1( reference.pointer, - _id_readBinaryValue$1 as jni.JMethodIDPtr, + _id_readBinaryValue$1 as _$jni.JMethodIDPtr, bv.reference.pointer, out.reference.pointer) .integer; @@ -3376,16 +3431,16 @@ class JsonParser extends jni.JObject { r'()I', ); - static final _getValueAsInt = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getValueAsInt = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public int getValueAsInt()` @@ -3405,7 +3460,7 @@ class JsonParser extends jni.JObject { /// JsonParseException for decoding problems int getValueAsInt() { return _getValueAsInt( - reference.pointer, _id_getValueAsInt as jni.JMethodIDPtr) + reference.pointer, _id_getValueAsInt as _$jni.JMethodIDPtr) .integer; } @@ -3414,13 +3469,15 @@ class JsonParser extends jni.JObject { r'(I)I', ); - static final _getValueAsInt$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallIntMethod') + static final _getValueAsInt$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public int getValueAsInt(int def)` /// @@ -3441,7 +3498,7 @@ class JsonParser extends jni.JObject { int def, ) { return _getValueAsInt$1( - reference.pointer, _id_getValueAsInt$1 as jni.JMethodIDPtr, def) + reference.pointer, _id_getValueAsInt$1 as _$jni.JMethodIDPtr, def) .integer; } @@ -3450,16 +3507,16 @@ class JsonParser extends jni.JObject { r'()J', ); - static final _getValueAsLong = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getValueAsLong = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallLongMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public long getValueAsLong()` @@ -3479,7 +3536,7 @@ class JsonParser extends jni.JObject { /// JsonParseException for decoding problems int getValueAsLong() { return _getValueAsLong( - reference.pointer, _id_getValueAsLong as jni.JMethodIDPtr) + reference.pointer, _id_getValueAsLong as _$jni.JMethodIDPtr) .long; } @@ -3488,13 +3545,15 @@ class JsonParser extends jni.JObject { r'(J)J', ); - static final _getValueAsLong$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Int64,)>)>>('globalEnv_CallLongMethod') + static final _getValueAsLong$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int64,)>)>>('globalEnv_CallLongMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public long getValueAsLong(long def)` /// @@ -3515,7 +3574,7 @@ class JsonParser extends jni.JObject { int def, ) { return _getValueAsLong$1( - reference.pointer, _id_getValueAsLong$1 as jni.JMethodIDPtr, def) + reference.pointer, _id_getValueAsLong$1 as _$jni.JMethodIDPtr, def) .long; } @@ -3524,16 +3583,16 @@ class JsonParser extends jni.JObject { r'()D', ); - static final _getValueAsDouble = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getValueAsDouble = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallDoubleMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public double getValueAsDouble()` @@ -3553,7 +3612,7 @@ class JsonParser extends jni.JObject { /// JsonParseException for decoding problems double getValueAsDouble() { return _getValueAsDouble( - reference.pointer, _id_getValueAsDouble as jni.JMethodIDPtr) + reference.pointer, _id_getValueAsDouble as _$jni.JMethodIDPtr) .doubleFloat; } @@ -3562,13 +3621,16 @@ class JsonParser extends jni.JObject { r'(D)D', ); - static final _getValueAsDouble$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Double,)>)>>('globalEnv_CallDoubleMethod') + static final _getValueAsDouble$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Double,)>)>>('globalEnv_CallDoubleMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, double)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, double)>(); /// from: `public double getValueAsDouble(double def)` /// @@ -3588,8 +3650,8 @@ class JsonParser extends jni.JObject { double getValueAsDouble$1( double def, ) { - return _getValueAsDouble$1( - reference.pointer, _id_getValueAsDouble$1 as jni.JMethodIDPtr, def) + return _getValueAsDouble$1(reference.pointer, + _id_getValueAsDouble$1 as _$jni.JMethodIDPtr, def) .doubleFloat; } @@ -3598,16 +3660,16 @@ class JsonParser extends jni.JObject { r'()Z', ); - static final _getValueAsBoolean = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getValueAsBoolean = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public boolean getValueAsBoolean()` @@ -3627,7 +3689,7 @@ class JsonParser extends jni.JObject { /// JsonParseException for decoding problems bool getValueAsBoolean() { return _getValueAsBoolean( - reference.pointer, _id_getValueAsBoolean as jni.JMethodIDPtr) + reference.pointer, _id_getValueAsBoolean as _$jni.JMethodIDPtr) .boolean; } @@ -3636,13 +3698,16 @@ class JsonParser extends jni.JObject { r'(Z)Z', ); - static final _getValueAsBoolean$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallBooleanMethod') + static final _getValueAsBoolean$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public boolean getValueAsBoolean(boolean def)` /// @@ -3663,7 +3728,7 @@ class JsonParser extends jni.JObject { bool def, ) { return _getValueAsBoolean$1(reference.pointer, - _id_getValueAsBoolean$1 as jni.JMethodIDPtr, def ? 1 : 0) + _id_getValueAsBoolean$1 as _$jni.JMethodIDPtr, def ? 1 : 0) .boolean; } @@ -3672,16 +3737,16 @@ class JsonParser extends jni.JObject { r'()Ljava/lang/String;', ); - static final _getValueAsString = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getValueAsString = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.String getValueAsString()` @@ -3698,10 +3763,10 @@ class JsonParser extends jni.JObject { ///@throws IOException for low-level read issues, or /// JsonParseException for decoding problems ///@since 2.1 - jni.JString getValueAsString() { + _$jni.JString getValueAsString() { return _getValueAsString( - reference.pointer, _id_getValueAsString as jni.JMethodIDPtr) - .object(const jni.JStringType()); + reference.pointer, _id_getValueAsString as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_getValueAsString$1 = _class.instanceMethodId( @@ -3709,16 +3774,16 @@ class JsonParser extends jni.JObject { r'(Ljava/lang/String;)Ljava/lang/String;', ); - static final _getValueAsString$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _getValueAsString$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public abstract java.lang.String getValueAsString(java.lang.String def)` /// The returned object must be released after use, by calling the [release] method. @@ -3735,12 +3800,12 @@ class JsonParser extends jni.JObject { ///@throws IOException for low-level read issues, or /// JsonParseException for decoding problems ///@since 2.1 - jni.JString getValueAsString$1( - jni.JString def, + _$jni.JString getValueAsString$1( + _$jni.JString def, ) { return _getValueAsString$1(reference.pointer, - _id_getValueAsString$1 as jni.JMethodIDPtr, def.reference.pointer) - .object(const jni.JStringType()); + _id_getValueAsString$1 as _$jni.JMethodIDPtr, def.reference.pointer) + .object(const _$jni.JStringType()); } static final _id_canReadObjectId = _class.instanceMethodId( @@ -3748,16 +3813,16 @@ class JsonParser extends jni.JObject { r'()Z', ); - static final _canReadObjectId = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _canReadObjectId = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public boolean canReadObjectId()` @@ -3775,7 +3840,7 @@ class JsonParser extends jni.JObject { ///@since 2.3 bool canReadObjectId() { return _canReadObjectId( - reference.pointer, _id_canReadObjectId as jni.JMethodIDPtr) + reference.pointer, _id_canReadObjectId as _$jni.JMethodIDPtr) .boolean; } @@ -3784,16 +3849,16 @@ class JsonParser extends jni.JObject { r'()Z', ); - static final _canReadTypeId = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _canReadTypeId = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public boolean canReadTypeId()` @@ -3811,7 +3876,7 @@ class JsonParser extends jni.JObject { ///@since 2.3 bool canReadTypeId() { return _canReadTypeId( - reference.pointer, _id_canReadTypeId as jni.JMethodIDPtr) + reference.pointer, _id_canReadTypeId as _$jni.JMethodIDPtr) .boolean; } @@ -3820,16 +3885,16 @@ class JsonParser extends jni.JObject { r'()Ljava/lang/Object;', ); - static final _getObjectId = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getObjectId = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.Object getObjectId()` @@ -3848,9 +3913,10 @@ class JsonParser extends jni.JObject { ///@throws IOException for low-level read issues, or /// JsonParseException for decoding problems ///@since 2.3 - jni.JObject getObjectId() { - return _getObjectId(reference.pointer, _id_getObjectId as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + _$jni.JObject getObjectId() { + return _getObjectId( + reference.pointer, _id_getObjectId as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_getTypeId = _class.instanceMethodId( @@ -3858,16 +3924,16 @@ class JsonParser extends jni.JObject { r'()Ljava/lang/Object;', ); - static final _getTypeId = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getTypeId = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.Object getTypeId()` @@ -3886,9 +3952,9 @@ class JsonParser extends jni.JObject { ///@throws IOException for low-level read issues, or /// JsonParseException for decoding problems ///@since 2.3 - jni.JObject getTypeId() { - return _getTypeId(reference.pointer, _id_getTypeId as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + _$jni.JObject getTypeId() { + return _getTypeId(reference.pointer, _id_getTypeId as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_readValueAs = _class.instanceMethodId( @@ -3896,16 +3962,16 @@ class JsonParser extends jni.JObject { r'(Ljava/lang/Class;)Ljava/lang/Object;', ); - static final _readValueAs = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _readValueAs = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public T readValueAs(java.lang.Class valueType)` /// The returned object must be released after use, by calling the [release] method. @@ -3935,12 +4001,12 @@ class JsonParser extends jni.JObject { ///@return Java value read from content ///@throws IOException if there is either an underlying I/O problem or decoding /// issue at format layer - $T readValueAs<$T extends jni.JObject>( - jni.JObject valueType, { - required jni.JObjType<$T> T, + $T readValueAs<$T extends _$jni.JObject>( + _$jni.JObject valueType, { + required _$jni.JObjType<$T> T, }) { - return _readValueAs(reference.pointer, _id_readValueAs as jni.JMethodIDPtr, - valueType.reference.pointer) + return _readValueAs(reference.pointer, + _id_readValueAs as _$jni.JMethodIDPtr, valueType.reference.pointer) .object(T); } @@ -3949,16 +4015,16 @@ class JsonParser extends jni.JObject { r'(Lcom/fasterxml/jackson/core/type/TypeReference;)Ljava/lang/Object;', ); - static final _readValueAs$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _readValueAs$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public T readValueAs(com.fasterxml.jackson.core.type.TypeReference valueTypeRef)` /// The returned object must be released after use, by calling the [release] method. @@ -3985,13 +4051,13 @@ class JsonParser extends jni.JObject { ///@return Java value read from content ///@throws IOException if there is either an underlying I/O problem or decoding /// issue at format layer - $T readValueAs$1<$T extends jni.JObject>( - jni.JObject valueTypeRef, { - required jni.JObjType<$T> T, + $T readValueAs$1<$T extends _$jni.JObject>( + _$jni.JObject valueTypeRef, { + required _$jni.JObjType<$T> T, }) { return _readValueAs$1( reference.pointer, - _id_readValueAs$1 as jni.JMethodIDPtr, + _id_readValueAs$1 as _$jni.JMethodIDPtr, valueTypeRef.reference.pointer) .object(T); } @@ -4001,16 +4067,16 @@ class JsonParser extends jni.JObject { r'(Ljava/lang/Class;)Ljava/util/Iterator;', ); - static final _readValuesAs = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _readValuesAs = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public java.util.Iterator readValuesAs(java.lang.Class valueType)` /// The returned object must be released after use, by calling the [release] method. @@ -4023,13 +4089,13 @@ class JsonParser extends jni.JObject { ///@return Iterator for reading multiple Java values from content ///@throws IOException if there is either an underlying I/O problem or decoding /// issue at format layer - jni.JIterator<$T> readValuesAs<$T extends jni.JObject>( - jni.JObject valueType, { - required jni.JObjType<$T> T, + _$jni.JIterator<$T> readValuesAs<$T extends _$jni.JObject>( + _$jni.JObject valueType, { + required _$jni.JObjType<$T> T, }) { return _readValuesAs(reference.pointer, - _id_readValuesAs as jni.JMethodIDPtr, valueType.reference.pointer) - .object(jni.JIteratorType(T)); + _id_readValuesAs as _$jni.JMethodIDPtr, valueType.reference.pointer) + .object(_$jni.JIteratorType(T)); } static final _id_readValuesAs$1 = _class.instanceMethodId( @@ -4037,16 +4103,16 @@ class JsonParser extends jni.JObject { r'(Lcom/fasterxml/jackson/core/type/TypeReference;)Ljava/util/Iterator;', ); - static final _readValuesAs$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _readValuesAs$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public java.util.Iterator readValuesAs(com.fasterxml.jackson.core.type.TypeReference valueTypeRef)` /// The returned object must be released after use, by calling the [release] method. @@ -4059,15 +4125,15 @@ class JsonParser extends jni.JObject { ///@return Iterator for reading multiple Java values from content ///@throws IOException if there is either an underlying I/O problem or decoding /// issue at format layer - jni.JIterator<$T> readValuesAs$1<$T extends jni.JObject>( - jni.JObject valueTypeRef, { - required jni.JObjType<$T> T, + _$jni.JIterator<$T> readValuesAs$1<$T extends _$jni.JObject>( + _$jni.JObject valueTypeRef, { + required _$jni.JObjType<$T> T, }) { return _readValuesAs$1( reference.pointer, - _id_readValuesAs$1 as jni.JMethodIDPtr, + _id_readValuesAs$1 as _$jni.JMethodIDPtr, valueTypeRef.reference.pointer) - .object(jni.JIteratorType(T)); + .object(_$jni.JIteratorType(T)); } static final _id_readValueAsTree = _class.instanceMethodId( @@ -4075,16 +4141,16 @@ class JsonParser extends jni.JObject { r'()Lcom/fasterxml/jackson/core/TreeNode;', ); - static final _readValueAsTree = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _readValueAsTree = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public T readValueAsTree()` @@ -4099,36 +4165,41 @@ class JsonParser extends jni.JObject { ///@return root of the document, or null if empty or whitespace. ///@throws IOException if there is either an underlying I/O problem or decoding /// issue at format layer - $T readValueAsTree<$T extends jni.JObject>({ - required jni.JObjType<$T> T, + $T readValueAsTree<$T extends _$jni.JObject>({ + required _$jni.JObjType<$T> T, }) { return _readValueAsTree( - reference.pointer, _id_readValueAsTree as jni.JMethodIDPtr) + reference.pointer, _id_readValueAsTree as _$jni.JMethodIDPtr) .object(T); } } -final class $JsonParserType extends jni.JObjType { - const $JsonParserType(); +final class $JsonParser$Type extends _$jni.JObjType { + @_$jni.internal + const $JsonParser$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/fasterxml/jackson/core/JsonParser;'; - @override - JsonParser fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + JsonParser fromReference(_$jni.JReference reference) => JsonParser.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($JsonParserType).hashCode; + @_$core.override + int get hashCode => ($JsonParser$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($JsonParserType) && other is $JsonParserType; + return other.runtimeType == ($JsonParser$Type) && other is $JsonParser$Type; } } diff --git a/pkgs/jnigen/test/jackson_core_test/third_party/bindings/com/fasterxml/jackson/core/JsonToken.dart b/pkgs/jnigen/test/jackson_core_test/third_party/bindings/com/fasterxml/jackson/core/JsonToken.dart index 56551538c..6e075ac07 100644 --- a/pkgs/jnigen/test/jackson_core_test/third_party/bindings/com/fasterxml/jackson/core/JsonToken.dart +++ b/pkgs/jnigen/test/jackson_core_test/third_party/bindings/com/fasterxml/jackson/core/JsonToken.dart @@ -26,7 +26,9 @@ // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter // ignore_for_file: invalid_use_of_internal_member +// ignore_for_file: library_prefixes // ignore_for_file: lines_longer_than_80_chars +// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_local_identifiers // ignore_for_file: non_constant_identifier_names // ignore_for_file: only_throw_errors @@ -42,51 +44,54 @@ // ignore_for_file: unused_shown_name // ignore_for_file: use_super_parameters -import 'dart:ffi' as ffi; -import 'dart:isolate' show RawReceivePort, ReceivePort; +import 'dart:core' show Object, String, bool, double, int; +import 'dart:core' as _$core; -import 'package:jni/_internal.dart'; -import 'package:jni/jni.dart' as jni; +import 'package:jni/_internal.dart' as _$jni; +import 'package:jni/jni.dart' as _$jni; /// from: `com.fasterxml.jackson.core.JsonToken` /// /// Enumeration for basic token types used for returning results /// of parsing JSON content. -class JsonToken extends jni.JObject { - @override - late final jni.JObjType $type = type; +class JsonToken extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal JsonToken.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); static final _class = - jni.JClass.forName(r'com/fasterxml/jackson/core/JsonToken'); + _$jni.JClass.forName(r'com/fasterxml/jackson/core/JsonToken'); /// The type which includes information such as the signature of this class. - static const type = $JsonTokenType(); + static const type = $JsonToken$Type(); static final _id_values = _class.staticMethodId( r'values', r'()[Lcom/fasterxml/jackson/core/JsonToken;', ); - static final _values = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _values = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public com.fasterxml.jackson.core.JsonToken[] values()` /// The returned object must be released after use, by calling the [release] method. - static jni.JArray values() { - return _values(_class.reference.pointer, _id_values as jni.JMethodIDPtr) - .object(const jni.JArrayType($JsonTokenType())); + static _$jni.JArray values() { + return _values(_class.reference.pointer, _id_values as _$jni.JMethodIDPtr) + .object(const _$jni.JArrayType($JsonToken$Type())); } static final _id_valueOf = _class.staticMethodId( @@ -94,25 +99,25 @@ class JsonToken extends jni.JObject { r'(Ljava/lang/String;)Lcom/fasterxml/jackson/core/JsonToken;', ); - static final _valueOf = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _valueOf = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `static public com.fasterxml.jackson.core.JsonToken valueOf(java.lang.String name)` /// The returned object must be released after use, by calling the [release] method. static JsonToken valueOf( - jni.JString name, + _$jni.JString name, ) { - return _valueOf(_class.reference.pointer, _id_valueOf as jni.JMethodIDPtr, + return _valueOf(_class.reference.pointer, _id_valueOf as _$jni.JMethodIDPtr, name.reference.pointer) - .object(const $JsonTokenType()); + .object(const $JsonToken$Type()); } static final _id_id = _class.instanceMethodId( @@ -120,21 +125,21 @@ class JsonToken extends jni.JObject { r'()I', ); - static final _id = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _id = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public final int id()` int id() { - return _id(reference.pointer, _id_id as jni.JMethodIDPtr).integer; + return _id(reference.pointer, _id_id as _$jni.JMethodIDPtr).integer; } static final _id_asString = _class.instanceMethodId( @@ -142,23 +147,23 @@ class JsonToken extends jni.JObject { r'()Ljava/lang/String;', ); - static final _asString = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _asString = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public final java.lang.String asString()` /// The returned object must be released after use, by calling the [release] method. - jni.JString asString() { - return _asString(reference.pointer, _id_asString as jni.JMethodIDPtr) - .object(const jni.JStringType()); + _$jni.JString asString() { + return _asString(reference.pointer, _id_asString as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_asCharArray = _class.instanceMethodId( @@ -166,23 +171,24 @@ class JsonToken extends jni.JObject { r'()[C', ); - static final _asCharArray = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _asCharArray = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public final char[] asCharArray()` /// The returned object must be released after use, by calling the [release] method. - jni.JArray asCharArray() { - return _asCharArray(reference.pointer, _id_asCharArray as jni.JMethodIDPtr) - .object(const jni.JArrayType(jni.jcharType())); + _$jni.JArray<_$jni.jchar> asCharArray() { + return _asCharArray( + reference.pointer, _id_asCharArray as _$jni.JMethodIDPtr) + .object(const _$jni.JArrayType(_$jni.jcharType())); } static final _id_asByteArray = _class.instanceMethodId( @@ -190,23 +196,24 @@ class JsonToken extends jni.JObject { r'()[B', ); - static final _asByteArray = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _asByteArray = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public final byte[] asByteArray()` /// The returned object must be released after use, by calling the [release] method. - jni.JArray asByteArray() { - return _asByteArray(reference.pointer, _id_asByteArray as jni.JMethodIDPtr) - .object(const jni.JArrayType(jni.jbyteType())); + _$jni.JArray<_$jni.jbyte> asByteArray() { + return _asByteArray( + reference.pointer, _id_asByteArray as _$jni.JMethodIDPtr) + .object(const _$jni.JArrayType(_$jni.jbyteType())); } static final _id_isNumeric = _class.instanceMethodId( @@ -214,16 +221,16 @@ class JsonToken extends jni.JObject { r'()Z', ); - static final _isNumeric = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _isNumeric = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public final boolean isNumeric()` @@ -231,7 +238,7 @@ class JsonToken extends jni.JObject { /// @return {@code True} if this token is {@code VALUE_NUMBER_INT} or {@code VALUE_NUMBER_FLOAT}, /// {@code false} otherwise bool isNumeric() { - return _isNumeric(reference.pointer, _id_isNumeric as jni.JMethodIDPtr) + return _isNumeric(reference.pointer, _id_isNumeric as _$jni.JMethodIDPtr) .boolean; } @@ -240,16 +247,16 @@ class JsonToken extends jni.JObject { r'()Z', ); - static final _isStructStart = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _isStructStart = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public final boolean isStructStart()` @@ -263,7 +270,7 @@ class JsonToken extends jni.JObject { ///@since 2.3 bool isStructStart() { return _isStructStart( - reference.pointer, _id_isStructStart as jni.JMethodIDPtr) + reference.pointer, _id_isStructStart as _$jni.JMethodIDPtr) .boolean; } @@ -272,16 +279,16 @@ class JsonToken extends jni.JObject { r'()Z', ); - static final _isStructEnd = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _isStructEnd = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public final boolean isStructEnd()` @@ -294,7 +301,8 @@ class JsonToken extends jni.JObject { /// {@code false} otherwise ///@since 2.3 bool isStructEnd() { - return _isStructEnd(reference.pointer, _id_isStructEnd as jni.JMethodIDPtr) + return _isStructEnd( + reference.pointer, _id_isStructEnd as _$jni.JMethodIDPtr) .boolean; } @@ -303,16 +311,16 @@ class JsonToken extends jni.JObject { r'()Z', ); - static final _isScalarValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _isScalarValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public final boolean isScalarValue()` @@ -325,7 +333,7 @@ class JsonToken extends jni.JObject { /// {@code VALUE_xxx} tokens), {@code false} otherwise bool isScalarValue() { return _isScalarValue( - reference.pointer, _id_isScalarValue as jni.JMethodIDPtr) + reference.pointer, _id_isScalarValue as _$jni.JMethodIDPtr) .boolean; } @@ -334,16 +342,16 @@ class JsonToken extends jni.JObject { r'()Z', ); - static final _isBoolean = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _isBoolean = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public final boolean isBoolean()` @@ -351,32 +359,37 @@ class JsonToken extends jni.JObject { /// @return {@code True} if this token is {@code VALUE_TRUE} or {@code VALUE_FALSE}, /// {@code false} otherwise bool isBoolean() { - return _isBoolean(reference.pointer, _id_isBoolean as jni.JMethodIDPtr) + return _isBoolean(reference.pointer, _id_isBoolean as _$jni.JMethodIDPtr) .boolean; } } -final class $JsonTokenType extends jni.JObjType { - const $JsonTokenType(); +final class $JsonToken$Type extends _$jni.JObjType { + @_$jni.internal + const $JsonToken$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/fasterxml/jackson/core/JsonToken;'; - @override - JsonToken fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + JsonToken fromReference(_$jni.JReference reference) => JsonToken.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($JsonTokenType).hashCode; + @_$core.override + int get hashCode => ($JsonToken$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($JsonTokenType) && other is $JsonTokenType; + return other.runtimeType == ($JsonToken$Type) && other is $JsonToken$Type; } } diff --git a/pkgs/jnigen/test/kotlin_test/bindings/kotlin.dart b/pkgs/jnigen/test/kotlin_test/bindings/kotlin.dart index d4db3823f..7c9b4f5bc 100644 --- a/pkgs/jnigen/test/kotlin_test/bindings/kotlin.dart +++ b/pkgs/jnigen/test/kotlin_test/bindings/kotlin.dart @@ -13,7 +13,9 @@ // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter // ignore_for_file: invalid_use_of_internal_member +// ignore_for_file: library_prefixes // ignore_for_file: lines_longer_than_80_chars +// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_local_identifiers // ignore_for_file: non_constant_identifier_names // ignore_for_file: only_throw_errors @@ -29,32 +31,36 @@ // ignore_for_file: unused_shown_name // ignore_for_file: use_super_parameters -import 'dart:ffi' as ffi; -import 'dart:isolate' show RawReceivePort, ReceivePort; +import 'dart:core' show Object, String, bool, double, int; +import 'dart:core' as _$core; -import 'package:jni/_internal.dart'; -import 'package:jni/jni.dart' as jni; +import 'package:jni/_internal.dart' as _$jni; +import 'package:jni/jni.dart' as _$jni; /// from: `com.github.dart_lang.jnigen.Measure` -class Measure<$T extends jni.JObject> extends jni.JObject { - @override - late final jni.JObjType> $type = type(T); +class Measure<$T extends _$jni.JObject> extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType> $type; - final jni.JObjType<$T> T; + @_$jni.internal + final _$jni.JObjType<$T> T; + @_$jni.internal Measure.fromReference( this.T, - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type(T), + super.fromReference(reference); static final _class = - jni.JClass.forName(r'com/github/dart_lang/jnigen/Measure'); + _$jni.JClass.forName(r'com/github/dart_lang/jnigen/Measure'); /// The type which includes information such as the signature of this class. - static $MeasureType<$T> type<$T extends jni.JObject>( - jni.JObjType<$T> T, + static $Measure$Type<$T> type<$T extends _$jni.JObject>( + _$jni.JObjType<$T> T, ) { - return $MeasureType( + return $Measure$Type( T, ); } @@ -64,21 +70,22 @@ class Measure<$T extends jni.JObject> extends jni.JObject { r'()F', ); - static final _getValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallFloatMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public float getValue()` double getValue() { - return _getValue(reference.pointer, _id_getValue as jni.JMethodIDPtr).float; + return _getValue(reference.pointer, _id_getValue as _$jni.JMethodIDPtr) + .float; } static final _id_getUnit = _class.instanceMethodId( @@ -86,22 +93,22 @@ class Measure<$T extends jni.JObject> extends jni.JObject { r'()Lcom/github/dart_lang/jnigen/MeasureUnit;', ); - static final _getUnit = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getUnit = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public T getUnit()` /// The returned object must be released after use, by calling the [release] method. $T getUnit() { - return _getUnit(reference.pointer, _id_getUnit as jni.JMethodIDPtr) + return _getUnit(reference.pointer, _id_getUnit as _$jni.JMethodIDPtr) .object(T); } @@ -110,95 +117,106 @@ class Measure<$T extends jni.JObject> extends jni.JObject { r'(Lcom/github/dart_lang/jnigen/MeasureUnit;)F', ); - static final _convertValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _convertValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallFloatMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public final float convertValue(T measureUnit)` double convertValue( $T measureUnit, ) { - return _convertValue(reference.pointer, - _id_convertValue as jni.JMethodIDPtr, measureUnit.reference.pointer) + return _convertValue( + reference.pointer, + _id_convertValue as _$jni.JMethodIDPtr, + measureUnit.reference.pointer) .float; } } -final class $MeasureType<$T extends jni.JObject> - extends jni.JObjType> { - final jni.JObjType<$T> T; +final class $Measure$Type<$T extends _$jni.JObject> + extends _$jni.JObjType> { + @_$jni.internal + final _$jni.JObjType<$T> T; - const $MeasureType( + @_$jni.internal + const $Measure$Type( this.T, ); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/Measure;'; - @override - Measure<$T> fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + Measure<$T> fromReference(_$jni.JReference reference) => Measure.fromReference(T, reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => Object.hash($MeasureType, T); + @_$core.override + int get hashCode => Object.hash($Measure$Type, T); - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($MeasureType<$T>) && - other is $MeasureType<$T> && + return other.runtimeType == ($Measure$Type<$T>) && + other is $Measure$Type<$T> && T == other.T; } } /// from: `com.github.dart_lang.jnigen.MeasureUnit` -class MeasureUnit extends jni.JObject { - @override - late final jni.JObjType $type = type; +class MeasureUnit extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal MeasureUnit.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); static final _class = - jni.JClass.forName(r'com/github/dart_lang/jnigen/MeasureUnit'); + _$jni.JClass.forName(r'com/github/dart_lang/jnigen/MeasureUnit'); /// The type which includes information such as the signature of this class. - static const type = $MeasureUnitType(); + static const type = $MeasureUnit$Type(); static final _id_getSign = _class.instanceMethodId( r'getSign', r'()Ljava/lang/String;', ); - static final _getSign = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getSign = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract java.lang.String getSign()` /// The returned object must be released after use, by calling the [release] method. - jni.JString getSign() { - return _getSign(reference.pointer, _id_getSign as jni.JMethodIDPtr) - .object(const jni.JStringType()); + _$jni.JString getSign() { + return _getSign(reference.pointer, _id_getSign as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_getCoefficient = _class.instanceMethodId( @@ -206,79 +224,91 @@ class MeasureUnit extends jni.JObject { r'()F', ); - static final _getCoefficient = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getCoefficient = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallFloatMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract float getCoefficient()` double getCoefficient() { return _getCoefficient( - reference.pointer, _id_getCoefficient as jni.JMethodIDPtr) + reference.pointer, _id_getCoefficient as _$jni.JMethodIDPtr) .float; } } -final class $MeasureUnitType extends jni.JObjType { - const $MeasureUnitType(); +final class $MeasureUnit$Type extends _$jni.JObjType { + @_$jni.internal + const $MeasureUnit$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/MeasureUnit;'; - @override - MeasureUnit fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + MeasureUnit fromReference(_$jni.JReference reference) => MeasureUnit.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($MeasureUnitType).hashCode; + @_$core.override + int get hashCode => ($MeasureUnit$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($MeasureUnitType) && other is $MeasureUnitType; + return other.runtimeType == ($MeasureUnit$Type) && + other is $MeasureUnit$Type; } } /// from: `com.github.dart_lang.jnigen.Speed` class Speed extends Measure { - @override - late final jni.JObjType $type = type; + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal Speed.fromReference( - jni.JReference reference, - ) : super.fromReference(const $SpeedUnitType(), reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(const $SpeedUnit$Type(), reference); static final _class = - jni.JClass.forName(r'com/github/dart_lang/jnigen/Speed'); + _$jni.JClass.forName(r'com/github/dart_lang/jnigen/Speed'); /// The type which includes information such as the signature of this class. - static const type = $SpeedType(); + static const type = $Speed$Type(); static final _id_new$ = _class.constructorId( r'(FLcom/github/dart_lang/jnigen/SpeedUnit;)V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Double, ffi.Pointer)>)>>( - 'globalEnv_NewObject') + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Double, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - double, ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, double, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void (float f, com.github.dart_lang.jnigen.SpeedUnit speedUnit)` /// The returned object must be released after use, by calling the [release] method. @@ -287,7 +317,7 @@ class Speed extends Measure { SpeedUnit speedUnit, ) { return Speed.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni.JMethodIDPtr, f, speedUnit.reference.pointer) + _id_new$ as _$jni.JMethodIDPtr, f, speedUnit.reference.pointer) .reference); } @@ -296,21 +326,22 @@ class Speed extends Measure { r'()F', ); - static final _getValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallFloatMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public float getValue()` double getValue() { - return _getValue(reference.pointer, _id_getValue as jni.JMethodIDPtr).float; + return _getValue(reference.pointer, _id_getValue as _$jni.JMethodIDPtr) + .float; } static final _id_getUnit$1 = _class.instanceMethodId( @@ -318,23 +349,23 @@ class Speed extends Measure { r'()Lcom/github/dart_lang/jnigen/SpeedUnit;', ); - static final _getUnit$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getUnit$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public com.github.dart_lang.jnigen.SpeedUnit getUnit()` /// The returned object must be released after use, by calling the [release] method. SpeedUnit getUnit$1() { - return _getUnit$1(reference.pointer, _id_getUnit$1 as jni.JMethodIDPtr) - .object(const $SpeedUnitType()); + return _getUnit$1(reference.pointer, _id_getUnit$1 as _$jni.JMethodIDPtr) + .object(const $SpeedUnit$Type()); } static final _id_toString$1 = _class.instanceMethodId( @@ -342,23 +373,23 @@ class Speed extends Measure { r'()Ljava/lang/String;', ); - static final _toString$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _toString$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.String toString()` /// The returned object must be released after use, by calling the [release] method. - jni.JString toString$1() { - return _toString$1(reference.pointer, _id_toString$1 as jni.JMethodIDPtr) - .object(const jni.JStringType()); + _$jni.JString toString$1() { + return _toString$1(reference.pointer, _id_toString$1 as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_component1 = _class.instanceMethodId( @@ -366,21 +397,21 @@ class Speed extends Measure { r'()F', ); - static final _component1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _component1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallFloatMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public final float component1()` double component1() { - return _component1(reference.pointer, _id_component1 as jni.JMethodIDPtr) + return _component1(reference.pointer, _id_component1 as _$jni.JMethodIDPtr) .float; } @@ -389,23 +420,23 @@ class Speed extends Measure { r'()Lcom/github/dart_lang/jnigen/SpeedUnit;', ); - static final _component2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _component2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public final com.github.dart_lang.jnigen.SpeedUnit component2()` /// The returned object must be released after use, by calling the [release] method. SpeedUnit component2() { - return _component2(reference.pointer, _id_component2 as jni.JMethodIDPtr) - .object(const $SpeedUnitType()); + return _component2(reference.pointer, _id_component2 as _$jni.JMethodIDPtr) + .object(const $SpeedUnit$Type()); } static final _id_copy = _class.instanceMethodId( @@ -413,16 +444,19 @@ class Speed extends Measure { r'(FLcom/github/dart_lang/jnigen/SpeedUnit;)Lcom/github/dart_lang/jnigen/Speed;', ); - static final _copy = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Double, ffi.Pointer)>)>>( - 'globalEnv_CallObjectMethod') + static final _copy = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Double, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - double, ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, double, _$jni.Pointer<_$jni.Void>)>(); /// from: `public final com.github.dart_lang.jnigen.Speed copy(float f, com.github.dart_lang.jnigen.SpeedUnit speedUnit)` /// The returned object must be released after use, by calling the [release] method. @@ -430,9 +464,9 @@ class Speed extends Measure { double f, SpeedUnit speedUnit, ) { - return _copy(reference.pointer, _id_copy as jni.JMethodIDPtr, f, + return _copy(reference.pointer, _id_copy as _$jni.JMethodIDPtr, f, speedUnit.reference.pointer) - .object(const $SpeedType()); + .object(const $Speed$Type()); } static final _id_hashCode$1 = _class.instanceMethodId( @@ -440,21 +474,21 @@ class Speed extends Measure { r'()I', ); - static final _hashCode$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _hashCode$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public int hashCode()` int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni.JMethodIDPtr) + return _hashCode$1(reference.pointer, _id_hashCode$1 as _$jni.JMethodIDPtr) .integer; } @@ -463,66 +497,74 @@ class Speed extends Measure { r'(Ljava/lang/Object;)Z', ); - static final _equals = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _equals = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public boolean equals(java.lang.Object object)` bool equals( - jni.JObject object, + _$jni.JObject object, ) { - return _equals(reference.pointer, _id_equals as jni.JMethodIDPtr, + return _equals(reference.pointer, _id_equals as _$jni.JMethodIDPtr, object.reference.pointer) .boolean; } } -final class $SpeedType extends jni.JObjType { - const $SpeedType(); +final class $Speed$Type extends _$jni.JObjType { + @_$jni.internal + const $Speed$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/Speed;'; - @override - Speed fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + Speed fromReference(_$jni.JReference reference) => Speed.fromReference(reference); - @override - jni.JObjType get superType => const $MeasureType($SpeedUnitType()); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const $Measure$Type($SpeedUnit$Type()); - @override + @_$jni.internal + @_$core.override final superCount = 2; - @override - int get hashCode => ($SpeedType).hashCode; + @_$core.override + int get hashCode => ($Speed$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($SpeedType) && other is $SpeedType; + return other.runtimeType == ($Speed$Type) && other is $Speed$Type; } } /// from: `com.github.dart_lang.jnigen.SpeedUnit` -class SpeedUnit extends jni.JObject { - @override - late final jni.JObjType $type = type; +class SpeedUnit extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal SpeedUnit.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); static final _class = - jni.JClass.forName(r'com/github/dart_lang/jnigen/SpeedUnit'); + _$jni.JClass.forName(r'com/github/dart_lang/jnigen/SpeedUnit'); /// The type which includes information such as the signature of this class. - static const type = $SpeedUnitType(); + static const type = $SpeedUnit$Type(); static final _id_KmPerHour = _class.staticFieldId( r'KmPerHour', r'Lcom/github/dart_lang/jnigen/SpeedUnit;', @@ -531,7 +573,7 @@ class SpeedUnit extends jni.JObject { /// from: `static public final com.github.dart_lang.jnigen.SpeedUnit KmPerHour` /// The returned object must be released after use, by calling the [release] method. static SpeedUnit get KmPerHour => - _id_KmPerHour.get(_class, const $SpeedUnitType()); + _id_KmPerHour.get(_class, const $SpeedUnit$Type()); static final _id_MetrePerSec = _class.staticFieldId( r'MetrePerSec', @@ -541,30 +583,30 @@ class SpeedUnit extends jni.JObject { /// from: `static public final com.github.dart_lang.jnigen.SpeedUnit MetrePerSec` /// The returned object must be released after use, by calling the [release] method. static SpeedUnit get MetrePerSec => - _id_MetrePerSec.get(_class, const $SpeedUnitType()); + _id_MetrePerSec.get(_class, const $SpeedUnit$Type()); static final _id_getSign = _class.instanceMethodId( r'getSign', r'()Ljava/lang/String;', ); - static final _getSign = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getSign = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.String getSign()` /// The returned object must be released after use, by calling the [release] method. - jni.JString getSign() { - return _getSign(reference.pointer, _id_getSign as jni.JMethodIDPtr) - .object(const jni.JStringType()); + _$jni.JString getSign() { + return _getSign(reference.pointer, _id_getSign as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_getCoefficient = _class.instanceMethodId( @@ -572,22 +614,22 @@ class SpeedUnit extends jni.JObject { r'()F', ); - static final _getCoefficient = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getCoefficient = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallFloatMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public float getCoefficient()` double getCoefficient() { return _getCoefficient( - reference.pointer, _id_getCoefficient as jni.JMethodIDPtr) + reference.pointer, _id_getCoefficient as _$jni.JMethodIDPtr) .float; } @@ -596,23 +638,23 @@ class SpeedUnit extends jni.JObject { r'()[Lcom/github/dart_lang/jnigen/SpeedUnit;', ); - static final _values = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _values = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public com.github.dart_lang.jnigen.SpeedUnit[] values()` /// The returned object must be released after use, by calling the [release] method. - static jni.JArray values() { - return _values(_class.reference.pointer, _id_values as jni.JMethodIDPtr) - .object(const jni.JArrayType($SpeedUnitType())); + static _$jni.JArray values() { + return _values(_class.reference.pointer, _id_values as _$jni.JMethodIDPtr) + .object(const _$jni.JArrayType($SpeedUnit$Type())); } static final _id_valueOf = _class.staticMethodId( @@ -620,88 +662,96 @@ class SpeedUnit extends jni.JObject { r'(Ljava/lang/String;)Lcom/github/dart_lang/jnigen/SpeedUnit;', ); - static final _valueOf = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _valueOf = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `static public com.github.dart_lang.jnigen.SpeedUnit valueOf(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. static SpeedUnit valueOf( - jni.JString string, + _$jni.JString string, ) { - return _valueOf(_class.reference.pointer, _id_valueOf as jni.JMethodIDPtr, + return _valueOf(_class.reference.pointer, _id_valueOf as _$jni.JMethodIDPtr, string.reference.pointer) - .object(const $SpeedUnitType()); + .object(const $SpeedUnit$Type()); } } -final class $SpeedUnitType extends jni.JObjType { - const $SpeedUnitType(); +final class $SpeedUnit$Type extends _$jni.JObjType { + @_$jni.internal + const $SpeedUnit$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/SpeedUnit;'; - @override - SpeedUnit fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + SpeedUnit fromReference(_$jni.JReference reference) => SpeedUnit.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($SpeedUnitType).hashCode; + @_$core.override + int get hashCode => ($SpeedUnit$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($SpeedUnitType) && other is $SpeedUnitType; + return other.runtimeType == ($SpeedUnit$Type) && other is $SpeedUnit$Type; } } /// from: `com.github.dart_lang.jnigen.SuspendFun` -class SuspendFun extends jni.JObject { - @override - late final jni.JObjType $type = type; +class SuspendFun extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal SuspendFun.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); static final _class = - jni.JClass.forName(r'com/github/dart_lang/jnigen/SuspendFun'); + _$jni.JClass.forName(r'com/github/dart_lang/jnigen/SuspendFun'); /// The type which includes information such as the signature of this class. - static const type = $SuspendFunType(); + static const type = $SuspendFun$Type(); static final _id_new$ = _class.constructorId( r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory SuspendFun() { return SuspendFun.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } @@ -710,32 +760,33 @@ class SuspendFun extends jni.JObject { r'(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;', ); - static final _sayHello = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _sayHello = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public final java.lang.Object sayHello(kotlin.coroutines.Continuation continuation)` /// The returned object must be released after use, by calling the [release] method. - Future sayHello() async { - final $p = ReceivePort(); - final $c = jni.JObject.fromReference( - ProtectedJniExtensions.newPortContinuation($p)); - _sayHello(reference.pointer, _id_sayHello as jni.JMethodIDPtr, + _$core.Future<_$jni.JString> sayHello() async { + final $p = _$jni.ReceivePort(); + final $c = _$jni.JObject.fromReference( + _$jni.ProtectedJniExtensions.newPortContinuation($p)); + _sayHello(reference.pointer, _id_sayHello as _$jni.JMethodIDPtr, $c.reference.pointer) - .object(const jni.JObjectType()); - final $o = jni.JGlobalReference(jni.JObjectPtr.fromAddress(await $p.first)); - final $k = const jni.JStringType().jClass.reference.pointer; - if (!jni.Jni.env.IsInstanceOf($o.pointer, $k)) { + .object(const _$jni.JObjectType()); + final $o = + _$jni.JGlobalReference(_$jni.JObjectPtr.fromAddress(await $p.first)); + final $k = const _$jni.JStringType().jClass.reference.pointer; + if (!_$jni.Jni.env.IsInstanceOf($o.pointer, $k)) { throw 'Failed'; } - return const jni.JStringType().fromReference($o); + return const _$jni.JStringType().fromReference($o); } static final _id_sayHello$1 = _class.instanceMethodId( @@ -743,89 +794,98 @@ class SuspendFun extends jni.JObject { r'(Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;', ); - static final _sayHello$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _sayHello$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public final java.lang.Object sayHello(java.lang.String string, kotlin.coroutines.Continuation continuation)` /// The returned object must be released after use, by calling the [release] method. - Future sayHello$1( - jni.JString string, + _$core.Future<_$jni.JString> sayHello$1( + _$jni.JString string, ) async { - final $p = ReceivePort(); - final $c = jni.JObject.fromReference( - ProtectedJniExtensions.newPortContinuation($p)); - _sayHello$1(reference.pointer, _id_sayHello$1 as jni.JMethodIDPtr, + final $p = _$jni.ReceivePort(); + final $c = _$jni.JObject.fromReference( + _$jni.ProtectedJniExtensions.newPortContinuation($p)); + _sayHello$1(reference.pointer, _id_sayHello$1 as _$jni.JMethodIDPtr, string.reference.pointer, $c.reference.pointer) - .object(const jni.JObjectType()); - final $o = jni.JGlobalReference(jni.JObjectPtr.fromAddress(await $p.first)); - final $k = const jni.JStringType().jClass.reference.pointer; - if (!jni.Jni.env.IsInstanceOf($o.pointer, $k)) { + .object(const _$jni.JObjectType()); + final $o = + _$jni.JGlobalReference(_$jni.JObjectPtr.fromAddress(await $p.first)); + final $k = const _$jni.JStringType().jClass.reference.pointer; + if (!_$jni.Jni.env.IsInstanceOf($o.pointer, $k)) { throw 'Failed'; } - return const jni.JStringType().fromReference($o); + return const _$jni.JStringType().fromReference($o); } } -final class $SuspendFunType extends jni.JObjType { - const $SuspendFunType(); +final class $SuspendFun$Type extends _$jni.JObjType { + @_$jni.internal + const $SuspendFun$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/SuspendFun;'; - @override - SuspendFun fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + SuspendFun fromReference(_$jni.JReference reference) => SuspendFun.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($SuspendFunType).hashCode; + @_$core.override + int get hashCode => ($SuspendFun$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($SuspendFunType) && other is $SuspendFunType; + return other.runtimeType == ($SuspendFun$Type) && other is $SuspendFun$Type; } } final _TopLevelKtClass = - jni.JClass.forName(r'com/github/dart_lang/jnigen/TopLevelKt'); + _$jni.JClass.forName(r'com/github/dart_lang/jnigen/TopLevelKt'); final _id_getTopLevelField = _TopLevelKtClass.staticMethodId( r'getTopLevelField', r'()I', ); -final _getTopLevelField = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, +final _getTopLevelField = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public final int getTopLevelField()` int getTopLevelField() { return _getTopLevelField(_TopLevelKtClass.reference.pointer, - _id_getTopLevelField as jni.JMethodIDPtr) + _id_getTopLevelField as _$jni.JMethodIDPtr) .integer; } @@ -834,20 +894,21 @@ final _id_setTopLevelField = _TopLevelKtClass.staticMethodId( r'(I)V', ); -final _setTopLevelField = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallStaticVoidMethod') +final _setTopLevelField = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Int32,)>)>>( + 'globalEnv_CallStaticVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `static public final void setTopLevelField(int i)` void setTopLevelField( int i, ) { _setTopLevelField(_TopLevelKtClass.reference.pointer, - _id_setTopLevelField as jni.JMethodIDPtr, i) + _id_setTopLevelField as _$jni.JMethodIDPtr, i) .check(); } @@ -856,22 +917,22 @@ final _id_topLevel = _TopLevelKtClass.staticMethodId( r'()I', ); -final _topLevel = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, +final _topLevel = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public final int topLevel()` int topLevel() { - return _topLevel( - _TopLevelKtClass.reference.pointer, _id_topLevel as jni.JMethodIDPtr) + return _topLevel(_TopLevelKtClass.reference.pointer, + _id_topLevel as _$jni.JMethodIDPtr) .integer; } @@ -880,14 +941,16 @@ final _id_topLevelSum = _TopLevelKtClass.staticMethodId( r'(II)I', ); -final _topLevelSum = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32, $Int32)>)>>( +final _topLevelSum = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32, _$jni.Int32)>)>>( 'globalEnv_CallStaticIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int, int)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int, int)>(); /// from: `static public final int topLevelSum(int i, int i1)` int topLevelSum( @@ -895,6 +958,6 @@ int topLevelSum( int i1, ) { return _topLevelSum(_TopLevelKtClass.reference.pointer, - _id_topLevelSum as jni.JMethodIDPtr, i, i1) + _id_topLevelSum as _$jni.JMethodIDPtr, i, i1) .integer; } diff --git a/pkgs/jnigen/test/simple_package_test/bindings/simple_package.dart b/pkgs/jnigen/test/simple_package_test/bindings/simple_package.dart index 45e33cb00..08303ee91 100644 --- a/pkgs/jnigen/test/simple_package_test/bindings/simple_package.dart +++ b/pkgs/jnigen/test/simple_package_test/bindings/simple_package.dart @@ -13,7 +13,9 @@ // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter // ignore_for_file: invalid_use_of_internal_member +// ignore_for_file: library_prefixes // ignore_for_file: lines_longer_than_80_chars +// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_local_identifiers // ignore_for_file: non_constant_identifier_names // ignore_for_file: only_throw_errors @@ -29,48 +31,51 @@ // ignore_for_file: unused_shown_name // ignore_for_file: use_super_parameters -import 'dart:ffi' as ffi; -import 'dart:isolate' show RawReceivePort, ReceivePort; +import 'dart:core' show Object, String, bool, double, int; +import 'dart:core' as _$core; -import 'package:jni/_internal.dart'; -import 'package:jni/jni.dart' as jni; +import 'package:jni/_internal.dart' as _$jni; +import 'package:jni/jni.dart' as _$jni; /// from: `com.github.dart_lang.jnigen.simple_package.Color` -class Color extends jni.JObject { - @override - late final jni.JObjType $type = type; +class Color extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal Color.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); static final _class = - jni.JClass.forName(r'com/github/dart_lang/jnigen/simple_package/Color'); + _$jni.JClass.forName(r'com/github/dart_lang/jnigen/simple_package/Color'); /// The type which includes information such as the signature of this class. - static const type = $ColorType(); + static const type = $Color$Type(); static final _id_values = _class.staticMethodId( r'values', r'()[Lcom/github/dart_lang/jnigen/simple_package/Color;', ); - static final _values = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _values = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public com.github.dart_lang.jnigen.simple_package.Color[] values()` /// The returned object must be released after use, by calling the [release] method. - static jni.JArray values() { - return _values(_class.reference.pointer, _id_values as jni.JMethodIDPtr) - .object(const jni.JArrayType($ColorType())); + static _$jni.JArray values() { + return _values(_class.reference.pointer, _id_values as _$jni.JMethodIDPtr) + .object(const _$jni.JArrayType($Color$Type())); } static final _id_valueOf = _class.staticMethodId( @@ -78,157 +83,175 @@ class Color extends jni.JObject { r'(Ljava/lang/String;)Lcom/github/dart_lang/jnigen/simple_package/Color;', ); - static final _valueOf = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _valueOf = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `static public com.github.dart_lang.jnigen.simple_package.Color valueOf(java.lang.String name)` /// The returned object must be released after use, by calling the [release] method. static Color valueOf( - jni.JString name, + _$jni.JString name, ) { - return _valueOf(_class.reference.pointer, _id_valueOf as jni.JMethodIDPtr, + return _valueOf(_class.reference.pointer, _id_valueOf as _$jni.JMethodIDPtr, name.reference.pointer) - .object(const $ColorType()); + .object(const $Color$Type()); } } -final class $ColorType extends jni.JObjType { - const $ColorType(); +final class $Color$Type extends _$jni.JObjType { + @_$jni.internal + const $Color$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/simple_package/Color;'; - @override - Color fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + Color fromReference(_$jni.JReference reference) => Color.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($ColorType).hashCode; + @_$core.override + int get hashCode => ($Color$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($ColorType) && other is $ColorType; + return other.runtimeType == ($Color$Type) && other is $Color$Type; } } /// from: `com.github.dart_lang.jnigen.simple_package.Example$Nested$NestedTwice` -class Example_Nested_NestedTwice extends jni.JObject { - @override - late final jni.JObjType $type = type; +class Example_Nested_NestedTwice extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal Example_Nested_NestedTwice.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'com/github/dart_lang/jnigen/simple_package/Example$Nested$NestedTwice'); /// The type which includes information such as the signature of this class. - static const type = $Example_Nested_NestedTwiceType(); + static const type = $Example_Nested_NestedTwice$Type(); static final _id_ZERO = _class.staticFieldId( r'ZERO', r'I', ); /// from: `static public int ZERO` - static int get ZERO => _id_ZERO.get(_class, const jni.jintType()); + static int get ZERO => _id_ZERO.get(_class, const _$jni.jintType()); /// from: `static public int ZERO` static set ZERO(int value) => - _id_ZERO.set(_class, const jni.jintType(), value); + _id_ZERO.set(_class, const _$jni.jintType(), value); static final _id_new$ = _class.constructorId( r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory Example_Nested_NestedTwice() { return Example_Nested_NestedTwice.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } } -final class $Example_Nested_NestedTwiceType - extends jni.JObjType { - const $Example_Nested_NestedTwiceType(); +final class $Example_Nested_NestedTwice$Type + extends _$jni.JObjType { + @_$jni.internal + const $Example_Nested_NestedTwice$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/simple_package/Example$Nested$NestedTwice;'; - @override - Example_Nested_NestedTwice fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + Example_Nested_NestedTwice fromReference(_$jni.JReference reference) => Example_Nested_NestedTwice.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($Example_Nested_NestedTwiceType).hashCode; + @_$core.override + int get hashCode => ($Example_Nested_NestedTwice$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($Example_Nested_NestedTwiceType) && - other is $Example_Nested_NestedTwiceType; + return other.runtimeType == ($Example_Nested_NestedTwice$Type) && + other is $Example_Nested_NestedTwice$Type; } } /// from: `com.github.dart_lang.jnigen.simple_package.Example$Nested` -class Example_Nested extends jni.JObject { - @override - late final jni.JObjType $type = type; +class Example_Nested extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal Example_Nested.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'com/github/dart_lang/jnigen/simple_package/Example$Nested'); /// The type which includes information such as the signature of this class. - static const type = $Example_NestedType(); + static const type = $Example_Nested$Type(); static final _id_new$ = _class.constructorId( r'(Z)V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_NewObject') + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public void (boolean value)` /// The returned object must be released after use, by calling the [release] method. @@ -236,7 +259,7 @@ class Example_Nested extends jni.JObject { bool value, ) { return Example_Nested.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni.JMethodIDPtr, value ? 1 : 0) + _id_new$ as _$jni.JMethodIDPtr, value ? 1 : 0) .reference); } @@ -245,22 +268,22 @@ class Example_Nested extends jni.JObject { r'()V', ); - static final _usesAnonymousInnerClass = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _usesAnonymousInnerClass = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void usesAnonymousInnerClass()` void usesAnonymousInnerClass() { - _usesAnonymousInnerClass( - reference.pointer, _id_usesAnonymousInnerClass as jni.JMethodIDPtr) + _usesAnonymousInnerClass(reference.pointer, + _id_usesAnonymousInnerClass as _$jni.JMethodIDPtr) .check(); } @@ -269,21 +292,21 @@ class Example_Nested extends jni.JObject { r'()Z', ); - static final _getValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public boolean getValue()` bool getValue() { - return _getValue(reference.pointer, _id_getValue as jni.JMethodIDPtr) + return _getValue(reference.pointer, _id_getValue as _$jni.JMethodIDPtr) .boolean; } @@ -292,92 +315,100 @@ class Example_Nested extends jni.JObject { r'(Z)V', ); - static final _setValue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallVoidMethod') + static final _setValue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public void setValue(boolean value)` void setValue( bool value, ) { - _setValue( - reference.pointer, _id_setValue as jni.JMethodIDPtr, value ? 1 : 0) + _setValue(reference.pointer, _id_setValue as _$jni.JMethodIDPtr, + value ? 1 : 0) .check(); } } -final class $Example_NestedType extends jni.JObjType { - const $Example_NestedType(); +final class $Example_Nested$Type extends _$jni.JObjType { + @_$jni.internal + const $Example_Nested$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/simple_package/Example$Nested;'; - @override - Example_Nested fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + Example_Nested fromReference(_$jni.JReference reference) => Example_Nested.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($Example_NestedType).hashCode; + @_$core.override + int get hashCode => ($Example_Nested$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($Example_NestedType) && - other is $Example_NestedType; + return other.runtimeType == ($Example_Nested$Type) && + other is $Example_Nested$Type; } } /// from: `com.github.dart_lang.jnigen.simple_package.Example$NonStaticNested` -class Example_NonStaticNested extends jni.JObject { - @override - late final jni.JObjType $type = type; +class Example_NonStaticNested extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal Example_NonStaticNested.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'com/github/dart_lang/jnigen/simple_package/Example$NonStaticNested'); /// The type which includes information such as the signature of this class. - static const type = $Example_NonStaticNestedType(); + static const type = $Example_NonStaticNested$Type(); static final _id_ok = _class.instanceFieldId( r'ok', r'Z', ); /// from: `public boolean ok` - bool get ok => _id_ok.get(this, const jni.jbooleanType()); + bool get ok => _id_ok.get(this, const _$jni.jbooleanType()); /// from: `public boolean ok` - set ok(bool value) => _id_ok.set(this, const jni.jbooleanType(), value); + set ok(bool value) => _id_ok.set(this, const _$jni.jbooleanType(), value); static final _id_new$ = _class.constructorId( r'(Lcom/github/dart_lang/jnigen/simple_package/Example;)V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_NewObject') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void (com.github.dart_lang.jnigen.simple_package.Example $parent)` /// The returned object must be released after use, by calling the [release] method. @@ -385,53 +416,61 @@ class Example_NonStaticNested extends jni.JObject { Example $parent, ) { return Example_NonStaticNested.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni.JMethodIDPtr, $parent.reference.pointer) + _id_new$ as _$jni.JMethodIDPtr, $parent.reference.pointer) .reference); } } -final class $Example_NonStaticNestedType - extends jni.JObjType { - const $Example_NonStaticNestedType(); +final class $Example_NonStaticNested$Type + extends _$jni.JObjType { + @_$jni.internal + const $Example_NonStaticNested$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/simple_package/Example$NonStaticNested;'; - @override - Example_NonStaticNested fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + Example_NonStaticNested fromReference(_$jni.JReference reference) => Example_NonStaticNested.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($Example_NonStaticNestedType).hashCode; + @_$core.override + int get hashCode => ($Example_NonStaticNested$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($Example_NonStaticNestedType) && - other is $Example_NonStaticNestedType; + return other.runtimeType == ($Example_NonStaticNested$Type) && + other is $Example_NonStaticNested$Type; } } /// from: `com.github.dart_lang.jnigen.simple_package.Example` -class Example extends jni.JObject { - @override - late final jni.JObjType $type = type; +class Example extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal Example.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = - jni.JClass.forName(r'com/github/dart_lang/jnigen/simple_package/Example'); + static final _class = _$jni.JClass.forName( + r'com/github/dart_lang/jnigen/simple_package/Example'); /// The type which includes information such as the signature of this class. - static const type = $ExampleType(); + static const type = $Example$Type(); /// from: `static public final int ON` static const ON = 1; @@ -451,8 +490,8 @@ class Example extends jni.JObject { /// from: `static public final java.lang.String SEMICOLON_STRING` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get SEMICOLON_STRING => - _id_SEMICOLON_STRING.get(_class, const jni.JStringType()); + static _$jni.JString get SEMICOLON_STRING => + _id_SEMICOLON_STRING.get(_class, const _$jni.JStringType()); static final _id_unusedRandom = _class.staticFieldId( r'unusedRandom', @@ -461,30 +500,30 @@ class Example extends jni.JObject { /// from: `static public final java.util.Random unusedRandom` /// The returned object must be released after use, by calling the [release] method. - static jni.JObject get unusedRandom => - _id_unusedRandom.get(_class, const jni.JObjectType()); + static _$jni.JObject get unusedRandom => + _id_unusedRandom.get(_class, const _$jni.JObjectType()); static final _id_getAmount = _class.staticMethodId( r'getAmount', r'()I', ); - static final _getAmount = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getAmount = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public int getAmount()` static int getAmount() { return _getAmount( - _class.reference.pointer, _id_getAmount as jni.JMethodIDPtr) + _class.reference.pointer, _id_getAmount as _$jni.JMethodIDPtr) .integer; } @@ -493,21 +532,21 @@ class Example extends jni.JObject { r'()D', ); - static final _getPi = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getPi = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticDoubleMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public double getPi()` static double getPi() { - return _getPi(_class.reference.pointer, _id_getPi as jni.JMethodIDPtr) + return _getPi(_class.reference.pointer, _id_getPi as _$jni.JMethodIDPtr) .doubleFloat; } @@ -516,22 +555,22 @@ class Example extends jni.JObject { r'()C', ); - static final _getAsterisk = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getAsterisk = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticCharMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public char getAsterisk()` static int getAsterisk() { return _getAsterisk( - _class.reference.pointer, _id_getAsterisk as jni.JMethodIDPtr) + _class.reference.pointer, _id_getAsterisk as _$jni.JMethodIDPtr) .char; } @@ -540,23 +579,23 @@ class Example extends jni.JObject { r'()Ljava/lang/String;', ); - static final _getName = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getName = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public java.lang.String getName()` /// The returned object must be released after use, by calling the [release] method. - static jni.JString getName() { - return _getName(_class.reference.pointer, _id_getName as jni.JMethodIDPtr) - .object(const jni.JStringType()); + static _$jni.JString getName() { + return _getName(_class.reference.pointer, _id_getName as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_getNestedInstance = _class.staticMethodId( @@ -564,24 +603,24 @@ class Example extends jni.JObject { r'()Lcom/github/dart_lang/jnigen/simple_package/Example$Nested;', ); - static final _getNestedInstance = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getNestedInstance = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public com.github.dart_lang.jnigen.simple_package.Example.Nested getNestedInstance()` /// The returned object must be released after use, by calling the [release] method. static Example_Nested getNestedInstance() { - return _getNestedInstance( - _class.reference.pointer, _id_getNestedInstance as jni.JMethodIDPtr) - .object(const $Example_NestedType()); + return _getNestedInstance(_class.reference.pointer, + _id_getNestedInstance as _$jni.JMethodIDPtr) + .object(const $Example_Nested$Type()); } static final _id_setAmount = _class.staticMethodId( @@ -589,21 +628,20 @@ class Example extends jni.JObject { r'(I)V', ); - static final _setAmount = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallStaticVoidMethod') + static final _setAmount = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Int32,)>)>>( + 'globalEnv_CallStaticVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `static public void setAmount(int newAmount)` static void setAmount( int newAmount, ) { - _setAmount(_class.reference.pointer, _id_setAmount as jni.JMethodIDPtr, + _setAmount(_class.reference.pointer, _id_setAmount as _$jni.JMethodIDPtr, newAmount) .check(); } @@ -613,22 +651,22 @@ class Example extends jni.JObject { r'(Ljava/lang/String;)V', ); - static final _setName = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setName = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallStaticVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `static public void setName(java.lang.String newName)` static void setName( - jni.JString newName, + _$jni.JString newName, ) { - _setName(_class.reference.pointer, _id_setName as jni.JMethodIDPtr, + _setName(_class.reference.pointer, _id_setName as _$jni.JMethodIDPtr, newName.reference.pointer) .check(); } @@ -638,16 +676,16 @@ class Example extends jni.JObject { r'(Lcom/github/dart_lang/jnigen/simple_package/Example$Nested;)V', ); - static final _setNestedInstance = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setNestedInstance = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallStaticVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `static public void setNestedInstance(com.github.dart_lang.jnigen.simple_package.Example.Nested newNested)` static void setNestedInstance( @@ -655,7 +693,7 @@ class Example extends jni.JObject { ) { _setNestedInstance( _class.reference.pointer, - _id_setNestedInstance as jni.JMethodIDPtr, + _id_setNestedInstance as _$jni.JMethodIDPtr, newNested.reference.pointer) .check(); } @@ -665,16 +703,21 @@ class Example extends jni.JObject { r'(IIII)I', ); - static final _max4 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<($Int32, $Int32, $Int32, $Int32)>)>>( - 'globalEnv_CallStaticIntMethod') + static final _max4 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Int32, + _$jni.Int32, + _$jni.Int32, + _$jni.Int32 + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int, int, int, int)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, int, int, int, int)>(); /// from: `static public int max4(int a, int b, int c, int d)` static int max4( @@ -683,8 +726,8 @@ class Example extends jni.JObject { int c, int d, ) { - return _max4( - _class.reference.pointer, _id_max4 as jni.JMethodIDPtr, a, b, c, d) + return _max4(_class.reference.pointer, _id_max4 as _$jni.JMethodIDPtr, a, b, + c, d) .integer; } @@ -693,25 +736,25 @@ class Example extends jni.JObject { r'(IIIIIIII)I', ); - static final _max8 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _max8 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - $Int32, - $Int32, - $Int32, - $Int32, - $Int32, - $Int32, - $Int32, - $Int32 + _$jni.Int32, + _$jni.Int32, + _$jni.Int32, + _$jni.Int32, + _$jni.Int32, + _$jni.Int32, + _$jni.Int32, + _$jni.Int32 )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, int, - int, int, int, int, int, int, int)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, int, int, int, int, int, int, int, int)>(); /// from: `static public int max8(int a, int b, int c, int d, int e, int f, int g, int h)` static int max8( @@ -724,7 +767,7 @@ class Example extends jni.JObject { int g, int h, ) { - return _max8(_class.reference.pointer, _id_max8 as jni.JMethodIDPtr, a, b, + return _max8(_class.reference.pointer, _id_max8 as _$jni.JMethodIDPtr, a, b, c, d, e, f, g, h) .integer; } @@ -734,21 +777,21 @@ class Example extends jni.JObject { r'()I', ); - static final _getNumber = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getNumber = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public int getNumber()` int getNumber() { - return _getNumber(reference.pointer, _id_getNumber as jni.JMethodIDPtr) + return _getNumber(reference.pointer, _id_getNumber as _$jni.JMethodIDPtr) .integer; } @@ -757,21 +800,21 @@ class Example extends jni.JObject { r'(I)V', ); - static final _setNumber = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallVoidMethod') + static final _setNumber = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public void setNumber(int number)` void setNumber( int number, ) { - _setNumber(reference.pointer, _id_setNumber as jni.JMethodIDPtr, number) + _setNumber(reference.pointer, _id_setNumber as _$jni.JMethodIDPtr, number) .check(); } @@ -780,21 +823,22 @@ class Example extends jni.JObject { r'()Z', ); - static final _getIsUp = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getIsUp = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public boolean getIsUp()` bool getIsUp() { - return _getIsUp(reference.pointer, _id_getIsUp as jni.JMethodIDPtr).boolean; + return _getIsUp(reference.pointer, _id_getIsUp as _$jni.JMethodIDPtr) + .boolean; } static final _id_setUp = _class.instanceMethodId( @@ -802,21 +846,21 @@ class Example extends jni.JObject { r'(Z)V', ); - static final _setUp = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallVoidMethod') + static final _setUp = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public void setUp(boolean isUp)` void setUp( bool isUp, ) { - _setUp(reference.pointer, _id_setUp as jni.JMethodIDPtr, isUp ? 1 : 0) + _setUp(reference.pointer, _id_setUp as _$jni.JMethodIDPtr, isUp ? 1 : 0) .check(); } @@ -825,23 +869,24 @@ class Example extends jni.JObject { r'()Ljava/lang/String;', ); - static final _getCodename = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getCodename = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.String getCodename()` /// The returned object must be released after use, by calling the [release] method. - jni.JString getCodename() { - return _getCodename(reference.pointer, _id_getCodename as jni.JMethodIDPtr) - .object(const jni.JStringType()); + _$jni.JString getCodename() { + return _getCodename( + reference.pointer, _id_getCodename as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } static final _id_setCodename = _class.instanceMethodId( @@ -849,22 +894,22 @@ class Example extends jni.JObject { r'(Ljava/lang/String;)V', ); - static final _setCodename = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setCodename = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setCodename(java.lang.String codename)` void setCodename( - jni.JString codename, + _$jni.JString codename, ) { - _setCodename(reference.pointer, _id_setCodename as jni.JMethodIDPtr, + _setCodename(reference.pointer, _id_setCodename as _$jni.JMethodIDPtr, codename.reference.pointer) .check(); } @@ -874,23 +919,23 @@ class Example extends jni.JObject { r'()Ljava/util/Random;', ); - static final _getRandom = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getRandom = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.util.Random getRandom()` /// The returned object must be released after use, by calling the [release] method. - jni.JObject getRandom() { - return _getRandom(reference.pointer, _id_getRandom as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + _$jni.JObject getRandom() { + return _getRandom(reference.pointer, _id_getRandom as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_setRandom = _class.instanceMethodId( @@ -898,22 +943,22 @@ class Example extends jni.JObject { r'(Ljava/util/Random;)V', ); - static final _setRandom = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _setRandom = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void setRandom(java.util.Random random)` void setRandom( - jni.JObject random, + _$jni.JObject random, ) { - _setRandom(reference.pointer, _id_setRandom as jni.JMethodIDPtr, + _setRandom(reference.pointer, _id_setRandom as _$jni.JMethodIDPtr, random.reference.pointer) .check(); } @@ -923,22 +968,22 @@ class Example extends jni.JObject { r'()J', ); - static final _getRandomLong = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getRandomLong = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallLongMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public long getRandomLong()` int getRandomLong() { return _getRandomLong( - reference.pointer, _id_getRandomLong as jni.JMethodIDPtr) + reference.pointer, _id_getRandomLong as _$jni.JMethodIDPtr) .long; } @@ -947,21 +992,21 @@ class Example extends jni.JObject { r'(JJJJ)J', ); - static final _add4Longs = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _add4Longs = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Int64, - ffi.Int64, - ffi.Int64, - ffi.Int64 + _$jni.Int64, + _$jni.Int64, + _$jni.Int64, + _$jni.Int64 )>)>>('globalEnv_CallLongMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int, int, int, int)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, int, int, int, int)>(); /// from: `public long add4Longs(long a, long b, long c, long d)` int add4Longs( @@ -971,7 +1016,7 @@ class Example extends jni.JObject { int d, ) { return _add4Longs( - reference.pointer, _id_add4Longs as jni.JMethodIDPtr, a, b, c, d) + reference.pointer, _id_add4Longs as _$jni.JMethodIDPtr, a, b, c, d) .long; } @@ -980,25 +1025,25 @@ class Example extends jni.JObject { r'(JJJJJJJJ)J', ); - static final _add8Longs = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _add8Longs = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Int64, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ffi.Int64, - ffi.Int64 + _$jni.Int64, + _$jni.Int64, + _$jni.Int64, + _$jni.Int64, + _$jni.Int64, + _$jni.Int64, + _$jni.Int64, + _$jni.Int64 )>)>>('globalEnv_CallLongMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, int, - int, int, int, int, int, int, int)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, int, int, int, int, int, int, int, int)>(); /// from: `public long add8Longs(long a, long b, long c, long d, long e, long f, long g, long h)` int add8Longs( @@ -1011,7 +1056,7 @@ class Example extends jni.JObject { int g, int h, ) { - return _add8Longs(reference.pointer, _id_add8Longs as jni.JMethodIDPtr, a, + return _add8Longs(reference.pointer, _id_add8Longs as _$jni.JMethodIDPtr, a, b, c, d, e, f, g, h) .long; } @@ -1021,27 +1066,27 @@ class Example extends jni.JObject { r'(Ljava/util/Random;)Ljava/lang/String;', ); - static final _getRandomNumericString = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _getRandomNumericString = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public java.lang.String getRandomNumericString(java.util.Random random)` /// The returned object must be released after use, by calling the [release] method. - jni.JString getRandomNumericString( - jni.JObject random, + _$jni.JString getRandomNumericString( + _$jni.JObject random, ) { return _getRandomNumericString( reference.pointer, - _id_getRandomNumericString as jni.JMethodIDPtr, + _id_getRandomNumericString as _$jni.JMethodIDPtr, random.reference.pointer) - .object(const jni.JStringType()); + .object(const _$jni.JStringType()); } static final _id_finalMethod = _class.instanceMethodId( @@ -1049,21 +1094,21 @@ class Example extends jni.JObject { r'()V', ); - static final _finalMethod = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _finalMethod = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public final void finalMethod()` void finalMethod() { - _finalMethod(reference.pointer, _id_finalMethod as jni.JMethodIDPtr) + _finalMethod(reference.pointer, _id_finalMethod as _$jni.JMethodIDPtr) .check(); } @@ -1072,23 +1117,23 @@ class Example extends jni.JObject { r'()Ljava/util/List;', ); - static final _getList = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getList = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.util.List getList()` /// The returned object must be released after use, by calling the [release] method. - jni.JList getList() { - return _getList(reference.pointer, _id_getList as jni.JMethodIDPtr) - .object(const jni.JListType(jni.JStringType())); + _$jni.JList<_$jni.JString> getList() { + return _getList(reference.pointer, _id_getList as _$jni.JMethodIDPtr) + .object(const _$jni.JListType(_$jni.JStringType())); } static final _id_joinStrings = _class.instanceMethodId( @@ -1096,31 +1141,37 @@ class Example extends jni.JObject { r'(Ljava/util/List;Ljava/lang/String;)Ljava/lang/String;', ); - static final _joinStrings = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _joinStrings = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public java.lang.String joinStrings(java.util.List values, java.lang.String delim)` /// The returned object must be released after use, by calling the [release] method. /// /// Joins the strings in the list using the given delimiter. - jni.JString joinStrings( - jni.JList values, - jni.JString delim, + _$jni.JString joinStrings( + _$jni.JList<_$jni.JString> values, + _$jni.JString delim, ) { - return _joinStrings(reference.pointer, _id_joinStrings as jni.JMethodIDPtr, - values.reference.pointer, delim.reference.pointer) - .object(const jni.JStringType()); + return _joinStrings( + reference.pointer, + _id_joinStrings as _$jni.JMethodIDPtr, + values.reference.pointer, + delim.reference.pointer) + .object(const _$jni.JStringType()); } static final _id_methodWithSeveralParams = _class.instanceMethodId( @@ -1128,48 +1179,48 @@ class Example extends jni.JObject { r'(CLjava/lang/String;[ILjava/lang/CharSequence;Ljava/util/List;Ljava/util/Map;)V', ); - static final _methodWithSeveralParams = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _methodWithSeveralParams = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - $Int32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer + _$jni.Int32, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public void methodWithSeveralParams(char ch, java.lang.String s, int[] a, T t, java.util.List lt, java.util.Map wm)` - void methodWithSeveralParams<$T extends jni.JObject>( + void methodWithSeveralParams<$T extends _$jni.JObject>( int ch, - jni.JString s, - jni.JArray a, + _$jni.JString s, + _$jni.JArray<_$jni.jint> a, $T t, - jni.JList<$T> lt, - jni.JMap wm, { - jni.JObjType<$T>? T, + _$jni.JList<$T> lt, + _$jni.JMap<_$jni.JString, _$jni.JObject> wm, { + _$jni.JObjType<$T>? T, }) { - T ??= jni.lowestCommonSuperType([ - (lt.$type as jni.JListType).E, + T ??= _$jni.lowestCommonSuperType([ + (lt.$type as _$jni.JListType).E, t.$type, - ]) as jni.JObjType<$T>; + ]) as _$jni.JObjType<$T>; _methodWithSeveralParams( reference.pointer, - _id_methodWithSeveralParams as jni.JMethodIDPtr, + _id_methodWithSeveralParams as _$jni.JMethodIDPtr, ch, s.reference.pointer, a.reference.pointer, @@ -1183,23 +1234,23 @@ class Example extends jni.JObject { r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory Example() { return Example.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } @@ -1207,35 +1258,40 @@ class Example extends jni.JObject { r'(I)V', ); - static final _new$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_NewObject') + static final _new$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public void (int number)` /// The returned object must be released after use, by calling the [release] method. factory Example.new$1( int number, ) { - return Example.fromReference( - _new$1(_class.reference.pointer, _id_new$1 as jni.JMethodIDPtr, number) - .reference); + return Example.fromReference(_new$1( + _class.reference.pointer, _id_new$1 as _$jni.JMethodIDPtr, number) + .reference); } static final _id_new$2 = _class.constructorId( r'(IZ)V', ); - static final _new$2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32, $Int32)>)>>('globalEnv_NewObject') + static final _new$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32, _$jni.Int32)>)>>( + 'globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int, int)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int, int)>(); /// from: `public void (int number, boolean isUp)` /// The returned object must be released after use, by calling the [release] method. @@ -1244,7 +1300,7 @@ class Example extends jni.JObject { bool isUp, ) { return Example.fromReference(_new$2(_class.reference.pointer, - _id_new$2 as jni.JMethodIDPtr, number, isUp ? 1 : 0) + _id_new$2 as _$jni.JMethodIDPtr, number, isUp ? 1 : 0) .reference); } @@ -1252,27 +1308,31 @@ class Example extends jni.JObject { r'(IZLjava/lang/String;)V', ); - static final _new$3 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<($Int32, $Int32, ffi.Pointer)>)>>( - 'globalEnv_NewObject') + static final _new$3 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Int32, + _$jni.Int32, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, int, - int, ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, int, int, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void (int number, boolean isUp, java.lang.String codename)` /// The returned object must be released after use, by calling the [release] method. factory Example.new$3( int number, bool isUp, - jni.JString codename, + _$jni.JString codename, ) { return Example.fromReference(_new$3( _class.reference.pointer, - _id_new$3 as jni.JMethodIDPtr, + _id_new$3 as _$jni.JMethodIDPtr, number, isUp ? 1 : 0, codename.reference.pointer) @@ -1283,25 +1343,25 @@ class Example extends jni.JObject { r'(IIIIIIII)V', ); - static final _new$4 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _new$4 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - $Int32, - $Int32, - $Int32, - $Int32, - $Int32, - $Int32, - $Int32, - $Int32 + _$jni.Int32, + _$jni.Int32, + _$jni.Int32, + _$jni.Int32, + _$jni.Int32, + _$jni.Int32, + _$jni.Int32, + _$jni.Int32 )>)>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, int, - int, int, int, int, int, int, int)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, int, int, int, int, int, int, int, int)>(); /// from: `public void (int a, int b, int c, int d, int e, int f, int g, int h)` /// The returned object must be released after use, by calling the [release] method. @@ -1316,7 +1376,7 @@ class Example extends jni.JObject { int h, ) { return Example.fromReference(_new$4(_class.reference.pointer, - _id_new$4 as jni.JMethodIDPtr, a, b, c, d, e, f, g, h) + _id_new$4 as _$jni.JMethodIDPtr, a, b, c, d, e, f, g, h) .reference); } @@ -1325,22 +1385,22 @@ class Example extends jni.JObject { r'()I', ); - static final _whichExample = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _whichExample = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public int whichExample()` int whichExample() { return _whichExample( - reference.pointer, _id_whichExample as jni.JMethodIDPtr) + reference.pointer, _id_whichExample as _$jni.JMethodIDPtr) .integer; } @@ -1349,14 +1409,16 @@ class Example extends jni.JObject { r'(II)I', ); - static final _addInts = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, - jni.JMethodIDPtr, ffi.VarArgs<($Int32, $Int32)>)>>( + static final _addInts = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32, _$jni.Int32)>)>>( 'globalEnv_CallStaticIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int, int)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int, int)>(); /// from: `static public int addInts(int a, int b)` static int addInts( @@ -1364,7 +1426,7 @@ class Example extends jni.JObject { int b, ) { return _addInts( - _class.reference.pointer, _id_addInts as jni.JMethodIDPtr, a, b) + _class.reference.pointer, _id_addInts as _$jni.JMethodIDPtr, a, b) .integer; } @@ -1373,23 +1435,23 @@ class Example extends jni.JObject { r'()[I', ); - static final _getArr = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getArr = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public int[] getArr()` /// The returned object must be released after use, by calling the [release] method. - static jni.JArray getArr() { - return _getArr(_class.reference.pointer, _id_getArr as jni.JMethodIDPtr) - .object(const jni.JArrayType(jni.jintType())); + static _$jni.JArray<_$jni.jint> getArr() { + return _getArr(_class.reference.pointer, _id_getArr as _$jni.JMethodIDPtr) + .object(const _$jni.JArrayType(_$jni.jintType())); } static final _id_addAll = _class.staticMethodId( @@ -1397,22 +1459,22 @@ class Example extends jni.JObject { r'([I)I', ); - static final _addAll = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _addAll = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallStaticIntMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `static public int addAll(int[] arr)` static int addAll( - jni.JArray arr, + _$jni.JArray<_$jni.jint> arr, ) { - return _addAll(_class.reference.pointer, _id_addAll as jni.JMethodIDPtr, + return _addAll(_class.reference.pointer, _id_addAll as _$jni.JMethodIDPtr, arr.reference.pointer) .integer; } @@ -1422,23 +1484,23 @@ class Example extends jni.JObject { r'()Lcom/github/dart_lang/jnigen/simple_package/Example;', ); - static final _getSelf = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _getSelf = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public com.github.dart_lang.jnigen.simple_package.Example getSelf()` /// The returned object must be released after use, by calling the [release] method. Example getSelf() { - return _getSelf(reference.pointer, _id_getSelf as jni.JMethodIDPtr) - .object(const $ExampleType()); + return _getSelf(reference.pointer, _id_getSelf as _$jni.JMethodIDPtr) + .object(const $Example$Type()); } static final _id_throwException = _class.staticMethodId( @@ -1446,22 +1508,22 @@ class Example extends jni.JObject { r'()V', ); - static final _throwException = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _throwException = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public void throwException()` static void throwException() { _throwException( - _class.reference.pointer, _id_throwException as jni.JMethodIDPtr) + _class.reference.pointer, _id_throwException as _$jni.JMethodIDPtr) .check(); } @@ -1470,21 +1532,22 @@ class Example extends jni.JObject { r'()V', ); - static final _overloaded = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _overloaded = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void overloaded()` void overloaded() { - _overloaded(reference.pointer, _id_overloaded as jni.JMethodIDPtr).check(); + _overloaded(reference.pointer, _id_overloaded as _$jni.JMethodIDPtr) + .check(); } static final _id_overloaded$1 = _class.instanceMethodId( @@ -1492,23 +1555,24 @@ class Example extends jni.JObject { r'(ILjava/lang/String;)V', ); - static final _overloaded$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<($Int32, ffi.Pointer)>)>>( + static final _overloaded$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Int32, _$jni.Pointer<_$jni.Void>)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - int, ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, int, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void overloaded(int a, java.lang.String b)` void overloaded$1( int a, - jni.JString b, + _$jni.JString b, ) { - _overloaded$1(reference.pointer, _id_overloaded$1 as jni.JMethodIDPtr, a, + _overloaded$1(reference.pointer, _id_overloaded$1 as _$jni.JMethodIDPtr, a, b.reference.pointer) .check(); } @@ -1518,21 +1582,21 @@ class Example extends jni.JObject { r'(I)V', ); - static final _overloaded$2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallVoidMethod') + static final _overloaded$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); /// from: `public void overloaded(int a)` void overloaded$2( int a, ) { - _overloaded$2(reference.pointer, _id_overloaded$2 as jni.JMethodIDPtr, a) + _overloaded$2(reference.pointer, _id_overloaded$2 as _$jni.JMethodIDPtr, a) .check(); } @@ -1541,26 +1605,29 @@ class Example extends jni.JObject { r'(Ljava/util/List;Ljava/lang/String;)V', ); - static final _overloaded$3 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _overloaded$3 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public void overloaded(java.util.List a, java.lang.String b)` void overloaded$3( - jni.JList a, - jni.JString b, + _$jni.JList<_$jni.JInteger> a, + _$jni.JString b, ) { - _overloaded$3(reference.pointer, _id_overloaded$3 as jni.JMethodIDPtr, + _overloaded$3(reference.pointer, _id_overloaded$3 as _$jni.JMethodIDPtr, a.reference.pointer, b.reference.pointer) .check(); } @@ -1570,88 +1637,96 @@ class Example extends jni.JObject { r'(Ljava/util/List;)V', ); - static final _overloaded$4 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _overloaded$4 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void overloaded(java.util.List a)` void overloaded$4( - jni.JList a, + _$jni.JList<_$jni.JInteger> a, ) { - _overloaded$4(reference.pointer, _id_overloaded$4 as jni.JMethodIDPtr, + _overloaded$4(reference.pointer, _id_overloaded$4 as _$jni.JMethodIDPtr, a.reference.pointer) .check(); } } -final class $ExampleType extends jni.JObjType { - const $ExampleType(); +final class $Example$Type extends _$jni.JObjType { + @_$jni.internal + const $Example$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/simple_package/Example;'; - @override - Example fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + Example fromReference(_$jni.JReference reference) => Example.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($ExampleType).hashCode; + @_$core.override + int get hashCode => ($Example$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($ExampleType) && other is $ExampleType; + return other.runtimeType == ($Example$Type) && other is $Example$Type; } } /// from: `com.github.dart_lang.jnigen.simple_package.Exceptions` -class Exceptions extends jni.JObject { - @override - late final jni.JObjType $type = type; +class Exceptions extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal Exceptions.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'com/github/dart_lang/jnigen/simple_package/Exceptions'); /// The type which includes information such as the signature of this class. - static const type = $ExceptionsType(); + static const type = $Exceptions$Type(); static final _id_new$ = _class.constructorId( r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory Exceptions() { return Exceptions.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } @@ -1659,13 +1734,15 @@ class Exceptions extends jni.JObject { r'(F)V', ); - static final _new$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Double,)>)>>('globalEnv_NewObject') + static final _new$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Double,)>)>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, double)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, double)>(); /// from: `public void (float x)` /// The returned object must be released after use, by calling the [release] method. @@ -1673,7 +1750,7 @@ class Exceptions extends jni.JObject { double x, ) { return Exceptions.fromReference( - _new$1(_class.reference.pointer, _id_new$1 as jni.JMethodIDPtr, x) + _new$1(_class.reference.pointer, _id_new$1 as _$jni.JMethodIDPtr, x) .reference); } @@ -1681,23 +1758,23 @@ class Exceptions extends jni.JObject { r'(IIIIII)V', ); - static final _new$2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _new$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - $Int32, - $Int32, - $Int32, - $Int32, - $Int32, - $Int32 + _$jni.Int32, + _$jni.Int32, + _$jni.Int32, + _$jni.Int32, + _$jni.Int32, + _$jni.Int32 )>)>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, int, - int, int, int, int, int)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, int, int, int, int, int, int)>(); /// from: `public void (int a, int b, int c, int d, int e, int f)` /// The returned object must be released after use, by calling the [release] method. @@ -1710,7 +1787,7 @@ class Exceptions extends jni.JObject { int f, ) { return Exceptions.fromReference(_new$2(_class.reference.pointer, - _id_new$2 as jni.JMethodIDPtr, a, b, c, d, e, f) + _id_new$2 as _$jni.JMethodIDPtr, a, b, c, d, e, f) .reference); } @@ -1719,24 +1796,24 @@ class Exceptions extends jni.JObject { r'()Ljava/lang/Object;', ); - static final _staticObjectMethod = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _staticObjectMethod = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public java.lang.Object staticObjectMethod()` /// The returned object must be released after use, by calling the [release] method. - static jni.JObject staticObjectMethod() { + static _$jni.JObject staticObjectMethod() { return _staticObjectMethod(_class.reference.pointer, - _id_staticObjectMethod as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + _id_staticObjectMethod as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_staticIntMethod = _class.staticMethodId( @@ -1744,22 +1821,22 @@ class Exceptions extends jni.JObject { r'()I', ); - static final _staticIntMethod = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _staticIntMethod = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public int staticIntMethod()` static int staticIntMethod() { return _staticIntMethod( - _class.reference.pointer, _id_staticIntMethod as jni.JMethodIDPtr) + _class.reference.pointer, _id_staticIntMethod as _$jni.JMethodIDPtr) .integer; } @@ -1768,24 +1845,24 @@ class Exceptions extends jni.JObject { r'()[Ljava/lang/Object;', ); - static final _staticObjectArrayMethod = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _staticObjectArrayMethod = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public java.lang.Object[] staticObjectArrayMethod()` /// The returned object must be released after use, by calling the [release] method. - static jni.JArray staticObjectArrayMethod() { + static _$jni.JArray<_$jni.JObject> staticObjectArrayMethod() { return _staticObjectArrayMethod(_class.reference.pointer, - _id_staticObjectArrayMethod as jni.JMethodIDPtr) - .object(const jni.JArrayType(jni.JObjectType())); + _id_staticObjectArrayMethod as _$jni.JMethodIDPtr) + .object(const _$jni.JArrayType(_$jni.JObjectType())); } static final _id_staticIntArrayMethod = _class.staticMethodId( @@ -1793,24 +1870,24 @@ class Exceptions extends jni.JObject { r'()[I', ); - static final _staticIntArrayMethod = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _staticIntArrayMethod = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public int[] staticIntArrayMethod()` /// The returned object must be released after use, by calling the [release] method. - static jni.JArray staticIntArrayMethod() { + static _$jni.JArray<_$jni.jint> staticIntArrayMethod() { return _staticIntArrayMethod(_class.reference.pointer, - _id_staticIntArrayMethod as jni.JMethodIDPtr) - .object(const jni.JArrayType(jni.jintType())); + _id_staticIntArrayMethod as _$jni.JMethodIDPtr) + .object(const _$jni.JArrayType(_$jni.jintType())); } static final _id_objectMethod = _class.instanceMethodId( @@ -1818,24 +1895,24 @@ class Exceptions extends jni.JObject { r'()Ljava/lang/Object;', ); - static final _objectMethod = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _objectMethod = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.Object objectMethod()` /// The returned object must be released after use, by calling the [release] method. - jni.JObject objectMethod() { + _$jni.JObject objectMethod() { return _objectMethod( - reference.pointer, _id_objectMethod as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + reference.pointer, _id_objectMethod as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_intMethod = _class.instanceMethodId( @@ -1843,21 +1920,21 @@ class Exceptions extends jni.JObject { r'()I', ); - static final _intMethod = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _intMethod = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public int intMethod()` int intMethod() { - return _intMethod(reference.pointer, _id_intMethod as jni.JMethodIDPtr) + return _intMethod(reference.pointer, _id_intMethod as _$jni.JMethodIDPtr) .integer; } @@ -1866,24 +1943,24 @@ class Exceptions extends jni.JObject { r'()[Ljava/lang/Object;', ); - static final _objectArrayMethod = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _objectArrayMethod = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.lang.Object[] objectArrayMethod()` /// The returned object must be released after use, by calling the [release] method. - jni.JArray objectArrayMethod() { + _$jni.JArray<_$jni.JObject> objectArrayMethod() { return _objectArrayMethod( - reference.pointer, _id_objectArrayMethod as jni.JMethodIDPtr) - .object(const jni.JArrayType(jni.JObjectType())); + reference.pointer, _id_objectArrayMethod as _$jni.JMethodIDPtr) + .object(const _$jni.JArrayType(_$jni.JObjectType())); } static final _id_intArrayMethod = _class.instanceMethodId( @@ -1891,24 +1968,24 @@ class Exceptions extends jni.JObject { r'()[I', ); - static final _intArrayMethod = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _intArrayMethod = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public int[] intArrayMethod()` /// The returned object must be released after use, by calling the [release] method. - jni.JArray intArrayMethod() { + _$jni.JArray<_$jni.jint> intArrayMethod() { return _intArrayMethod( - reference.pointer, _id_intArrayMethod as jni.JMethodIDPtr) - .object(const jni.JArrayType(jni.jintType())); + reference.pointer, _id_intArrayMethod as _$jni.JMethodIDPtr) + .object(const _$jni.JArrayType(_$jni.jintType())); } static final _id_throwNullPointerException = _class.instanceMethodId( @@ -1916,22 +1993,22 @@ class Exceptions extends jni.JObject { r'()I', ); - static final _throwNullPointerException = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _throwNullPointerException = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public int throwNullPointerException()` int throwNullPointerException() { return _throwNullPointerException(reference.pointer, - _id_throwNullPointerException as jni.JMethodIDPtr) + _id_throwNullPointerException as _$jni.JMethodIDPtr) .integer; } @@ -1940,24 +2017,25 @@ class Exceptions extends jni.JObject { r'()Ljava/io/InputStream;', ); - static final _throwFileNotFoundException = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + static final _throwFileNotFoundException = + _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); /// from: `public java.io.InputStream throwFileNotFoundException()` /// The returned object must be released after use, by calling the [release] method. - jni.JObject throwFileNotFoundException() { + _$jni.JObject throwFileNotFoundException() { return _throwFileNotFoundException(reference.pointer, - _id_throwFileNotFoundException as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + _id_throwFileNotFoundException as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_throwClassCastException = _class.instanceMethodId( @@ -1965,24 +2043,24 @@ class Exceptions extends jni.JObject { r'()Ljava/io/FileInputStream;', ); - static final _throwClassCastException = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _throwClassCastException = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public java.io.FileInputStream throwClassCastException()` /// The returned object must be released after use, by calling the [release] method. - jni.JObject throwClassCastException() { - return _throwClassCastException( - reference.pointer, _id_throwClassCastException as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + _$jni.JObject throwClassCastException() { + return _throwClassCastException(reference.pointer, + _id_throwClassCastException as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } static final _id_throwArrayIndexException = _class.instanceMethodId( @@ -1990,22 +2068,22 @@ class Exceptions extends jni.JObject { r'()I', ); - static final _throwArrayIndexException = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _throwArrayIndexException = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public int throwArrayIndexException()` int throwArrayIndexException() { - return _throwArrayIndexException( - reference.pointer, _id_throwArrayIndexException as jni.JMethodIDPtr) + return _throwArrayIndexException(reference.pointer, + _id_throwArrayIndexException as _$jni.JMethodIDPtr) .integer; } @@ -2014,22 +2092,22 @@ class Exceptions extends jni.JObject { r'()I', ); - static final _throwArithmeticException = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _throwArithmeticException = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public int throwArithmeticException()` int throwArithmeticException() { - return _throwArithmeticException( - reference.pointer, _id_throwArithmeticException as jni.JMethodIDPtr) + return _throwArithmeticException(reference.pointer, + _id_throwArithmeticException as _$jni.JMethodIDPtr) .integer; } @@ -2038,76 +2116,85 @@ class Exceptions extends jni.JObject { r'()V', ); - static final _throwLoremIpsum = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _throwLoremIpsum = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public void throwLoremIpsum()` static void throwLoremIpsum() { _throwLoremIpsum( - _class.reference.pointer, _id_throwLoremIpsum as jni.JMethodIDPtr) + _class.reference.pointer, _id_throwLoremIpsum as _$jni.JMethodIDPtr) .check(); } } -final class $ExceptionsType extends jni.JObjType { - const $ExceptionsType(); +final class $Exceptions$Type extends _$jni.JObjType { + @_$jni.internal + const $Exceptions$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/simple_package/Exceptions;'; - @override - Exceptions fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + Exceptions fromReference(_$jni.JReference reference) => Exceptions.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($ExceptionsType).hashCode; + @_$core.override + int get hashCode => ($Exceptions$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($ExceptionsType) && other is $ExceptionsType; + return other.runtimeType == ($Exceptions$Type) && other is $Exceptions$Type; } } /// from: `com.github.dart_lang.jnigen.simple_package.Fields$Nested` -class Fields_Nested extends jni.JObject { - @override - late final jni.JObjType $type = type; +class Fields_Nested extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal Fields_Nested.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'com/github/dart_lang/jnigen/simple_package/Fields$Nested'); /// The type which includes information such as the signature of this class. - static const type = $Fields_NestedType(); + static const type = $Fields_Nested$Type(); static final _id_hundred = _class.instanceFieldId( r'hundred', r'J', ); /// from: `public long hundred` - int get hundred => _id_hundred.get(this, const jni.jlongType()); + int get hundred => _id_hundred.get(this, const _$jni.jlongType()); /// from: `public long hundred` - set hundred(int value) => _id_hundred.set(this, const jni.jlongType(), value); + set hundred(int value) => + _id_hundred.set(this, const _$jni.jlongType(), value); static final _id_BEST_GOD = _class.staticFieldId( r'BEST_GOD', @@ -2116,91 +2203,99 @@ class Fields_Nested extends jni.JObject { /// from: `static public java.lang.String BEST_GOD` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get BEST_GOD => - _id_BEST_GOD.get(_class, const jni.JStringType()); + static _$jni.JString get BEST_GOD => + _id_BEST_GOD.get(_class, const _$jni.JStringType()); /// from: `static public java.lang.String BEST_GOD` /// The returned object must be released after use, by calling the [release] method. - static set BEST_GOD(jni.JString value) => - _id_BEST_GOD.set(_class, const jni.JStringType(), value); + static set BEST_GOD(_$jni.JString value) => + _id_BEST_GOD.set(_class, const _$jni.JStringType(), value); static final _id_new$ = _class.constructorId( r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory Fields_Nested() { return Fields_Nested.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } } -final class $Fields_NestedType extends jni.JObjType { - const $Fields_NestedType(); +final class $Fields_Nested$Type extends _$jni.JObjType { + @_$jni.internal + const $Fields_Nested$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/simple_package/Fields$Nested;'; - @override - Fields_Nested fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + Fields_Nested fromReference(_$jni.JReference reference) => Fields_Nested.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($Fields_NestedType).hashCode; + @_$core.override + int get hashCode => ($Fields_Nested$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($Fields_NestedType) && - other is $Fields_NestedType; + return other.runtimeType == ($Fields_Nested$Type) && + other is $Fields_Nested$Type; } } /// from: `com.github.dart_lang.jnigen.simple_package.Fields` -class Fields extends jni.JObject { - @override - late final jni.JObjType $type = type; +class Fields extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal Fields.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = - jni.JClass.forName(r'com/github/dart_lang/jnigen/simple_package/Fields'); + static final _class = _$jni.JClass.forName( + r'com/github/dart_lang/jnigen/simple_package/Fields'); /// The type which includes information such as the signature of this class. - static const type = $FieldsType(); + static const type = $Fields$Type(); static final _id_amount = _class.staticFieldId( r'amount', r'I', ); /// from: `static public int amount` - static int get amount => _id_amount.get(_class, const jni.jintType()); + static int get amount => _id_amount.get(_class, const _$jni.jintType()); /// from: `static public int amount` static set amount(int value) => - _id_amount.set(_class, const jni.jintType(), value); + _id_amount.set(_class, const _$jni.jintType(), value); static final _id_pi = _class.staticFieldId( r'pi', @@ -2208,11 +2303,11 @@ class Fields extends jni.JObject { ); /// from: `static public double pi` - static double get pi => _id_pi.get(_class, const jni.jdoubleType()); + static double get pi => _id_pi.get(_class, const _$jni.jdoubleType()); /// from: `static public double pi` static set pi(double value) => - _id_pi.set(_class, const jni.jdoubleType(), value); + _id_pi.set(_class, const _$jni.jdoubleType(), value); static final _id_asterisk = _class.staticFieldId( r'asterisk', @@ -2220,11 +2315,11 @@ class Fields extends jni.JObject { ); /// from: `static public char asterisk` - static int get asterisk => _id_asterisk.get(_class, const jni.jcharType()); + static int get asterisk => _id_asterisk.get(_class, const _$jni.jcharType()); /// from: `static public char asterisk` static set asterisk(int value) => - _id_asterisk.set(_class, const jni.jcharType(), value); + _id_asterisk.set(_class, const _$jni.jcharType(), value); static final _id_name = _class.staticFieldId( r'name', @@ -2233,12 +2328,13 @@ class Fields extends jni.JObject { /// from: `static public java.lang.String name` /// The returned object must be released after use, by calling the [release] method. - static jni.JString get name => _id_name.get(_class, const jni.JStringType()); + static _$jni.JString get name => + _id_name.get(_class, const _$jni.JStringType()); /// from: `static public java.lang.String name` /// The returned object must be released after use, by calling the [release] method. - static set name(jni.JString value) => - _id_name.set(_class, const jni.JStringType(), value); + static set name(_$jni.JString value) => + _id_name.set(_class, const _$jni.JStringType(), value); static final _id_i = _class.instanceFieldId( r'i', @@ -2247,11 +2343,12 @@ class Fields extends jni.JObject { /// from: `public java.lang.Integer i` /// The returned object must be released after use, by calling the [release] method. - jni.JInteger get i => _id_i.get(this, const jni.JIntegerType()); + _$jni.JInteger get i => _id_i.get(this, const _$jni.JIntegerType()); /// from: `public java.lang.Integer i` /// The returned object must be released after use, by calling the [release] method. - set i(jni.JInteger value) => _id_i.set(this, const jni.JIntegerType(), value); + set i(_$jni.JInteger value) => + _id_i.set(this, const _$jni.JIntegerType(), value); static final _id_trillion = _class.instanceFieldId( r'trillion', @@ -2259,11 +2356,11 @@ class Fields extends jni.JObject { ); /// from: `public long trillion` - int get trillion => _id_trillion.get(this, const jni.jlongType()); + int get trillion => _id_trillion.get(this, const _$jni.jlongType()); /// from: `public long trillion` set trillion(int value) => - _id_trillion.set(this, const jni.jlongType(), value); + _id_trillion.set(this, const _$jni.jlongType(), value); static final _id_isAchillesDead = _class.instanceFieldId( r'isAchillesDead', @@ -2272,11 +2369,11 @@ class Fields extends jni.JObject { /// from: `public boolean isAchillesDead` bool get isAchillesDead => - _id_isAchillesDead.get(this, const jni.jbooleanType()); + _id_isAchillesDead.get(this, const _$jni.jbooleanType()); /// from: `public boolean isAchillesDead` set isAchillesDead(bool value) => - _id_isAchillesDead.set(this, const jni.jbooleanType(), value); + _id_isAchillesDead.set(this, const _$jni.jbooleanType(), value); static final _id_bestFighterInGreece = _class.instanceFieldId( r'bestFighterInGreece', @@ -2285,13 +2382,13 @@ class Fields extends jni.JObject { /// from: `public java.lang.String bestFighterInGreece` /// The returned object must be released after use, by calling the [release] method. - jni.JString get bestFighterInGreece => - _id_bestFighterInGreece.get(this, const jni.JStringType()); + _$jni.JString get bestFighterInGreece => + _id_bestFighterInGreece.get(this, const _$jni.JStringType()); /// from: `public java.lang.String bestFighterInGreece` /// The returned object must be released after use, by calling the [release] method. - set bestFighterInGreece(jni.JString value) => - _id_bestFighterInGreece.set(this, const jni.JStringType(), value); + set bestFighterInGreece(_$jni.JString value) => + _id_bestFighterInGreece.set(this, const _$jni.JStringType(), value); static final _id_random = _class.instanceFieldId( r'random', @@ -2300,12 +2397,12 @@ class Fields extends jni.JObject { /// from: `public java.util.Random random` /// The returned object must be released after use, by calling the [release] method. - jni.JObject get random => _id_random.get(this, const jni.JObjectType()); + _$jni.JObject get random => _id_random.get(this, const _$jni.JObjectType()); /// from: `public java.util.Random random` /// The returned object must be released after use, by calling the [release] method. - set random(jni.JObject value) => - _id_random.set(this, const jni.JObjectType(), value); + set random(_$jni.JObject value) => + _id_random.set(this, const _$jni.JObjectType(), value); static final _id_euroSymbol = _class.staticFieldId( r'euroSymbol', @@ -2314,173 +2411,189 @@ class Fields extends jni.JObject { /// from: `static public char euroSymbol` static int get euroSymbol => - _id_euroSymbol.get(_class, const jni.jcharType()); + _id_euroSymbol.get(_class, const _$jni.jcharType()); /// from: `static public char euroSymbol` static set euroSymbol(int value) => - _id_euroSymbol.set(_class, const jni.jcharType(), value); + _id_euroSymbol.set(_class, const _$jni.jcharType(), value); static final _id_new$ = _class.constructorId( r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory Fields() { return Fields.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } } -final class $FieldsType extends jni.JObjType { - const $FieldsType(); +final class $Fields$Type extends _$jni.JObjType { + @_$jni.internal + const $Fields$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/simple_package/Fields;'; - @override - Fields fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + Fields fromReference(_$jni.JReference reference) => Fields.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($FieldsType).hashCode; + @_$core.override + int get hashCode => ($Fields$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($FieldsType) && other is $FieldsType; + return other.runtimeType == ($Fields$Type) && other is $Fields$Type; } } /// from: `com.github.dart_lang.jnigen.pkg2.C2` -class C2 extends jni.JObject { - @override - late final jni.JObjType $type = type; +class C2 extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal C2.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); static final _class = - jni.JClass.forName(r'com/github/dart_lang/jnigen/pkg2/C2'); + _$jni.JClass.forName(r'com/github/dart_lang/jnigen/pkg2/C2'); /// The type which includes information such as the signature of this class. - static const type = $C2Type(); + static const type = $C2$Type(); static final _id_CONSTANT = _class.staticFieldId( r'CONSTANT', r'I', ); /// from: `static public int CONSTANT` - static int get CONSTANT => _id_CONSTANT.get(_class, const jni.jintType()); + static int get CONSTANT => _id_CONSTANT.get(_class, const _$jni.jintType()); /// from: `static public int CONSTANT` static set CONSTANT(int value) => - _id_CONSTANT.set(_class, const jni.jintType(), value); + _id_CONSTANT.set(_class, const _$jni.jintType(), value); static final _id_new$ = _class.constructorId( r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory C2() { return C2.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } } -final class $C2Type extends jni.JObjType { - const $C2Type(); +final class $C2$Type extends _$jni.JObjType { + @_$jni.internal + const $C2$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/pkg2/C2;'; - @override - C2 fromReference(jni.JReference reference) => C2.fromReference(reference); + @_$jni.internal + @_$core.override + C2 fromReference(_$jni.JReference reference) => C2.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($C2Type).hashCode; + @_$core.override + int get hashCode => ($C2$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($C2Type) && other is $C2Type; + return other.runtimeType == ($C2$Type) && other is $C2$Type; } } /// from: `com.github.dart_lang.jnigen.pkg2.Example` -class Example$1 extends jni.JObject { - @override - late final jni.JObjType $type = type; +class Example$1 extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal Example$1.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); static final _class = - jni.JClass.forName(r'com/github/dart_lang/jnigen/pkg2/Example'); + _$jni.JClass.forName(r'com/github/dart_lang/jnigen/pkg2/Example'); /// The type which includes information such as the signature of this class. - static const type = $Example$1Type(); + static const type = $Example$1$Type(); static final _id_new$ = _class.constructorId( r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory Example$1() { return Example$1.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } @@ -2489,76 +2602,87 @@ class Example$1 extends jni.JObject { r'()I', ); - static final _whichExample = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _whichExample = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public int whichExample()` int whichExample() { return _whichExample( - reference.pointer, _id_whichExample as jni.JMethodIDPtr) + reference.pointer, _id_whichExample as _$jni.JMethodIDPtr) .integer; } } -final class $Example$1Type extends jni.JObjType { - const $Example$1Type(); +final class $Example$1$Type extends _$jni.JObjType { + @_$jni.internal + const $Example$1$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/pkg2/Example;'; - @override - Example$1 fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + Example$1 fromReference(_$jni.JReference reference) => Example$1.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($Example$1Type).hashCode; + @_$core.override + int get hashCode => ($Example$1$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($Example$1Type) && other is $Example$1Type; + return other.runtimeType == ($Example$1$Type) && other is $Example$1$Type; } } /// from: `com.github.dart_lang.jnigen.generics.GenericTypeParams` -class GenericTypeParams<$S extends jni.JObject, $K extends jni.JObject> - extends jni.JObject { - @override - late final jni.JObjType> $type = type(S, K); +class GenericTypeParams<$S extends _$jni.JObject, $K extends _$jni.JObject> + extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType> $type; - final jni.JObjType<$S> S; - final jni.JObjType<$K> K; + @_$jni.internal + final _$jni.JObjType<$S> S; + @_$jni.internal + final _$jni.JObjType<$K> K; + + @_$jni.internal GenericTypeParams.fromReference( this.S, this.K, - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type(S, K), + super.fromReference(reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'com/github/dart_lang/jnigen/generics/GenericTypeParams'); /// The type which includes information such as the signature of this class. - static $GenericTypeParamsType<$S, $K> - type<$S extends jni.JObject, $K extends jni.JObject>( - jni.JObjType<$S> S, - jni.JObjType<$K> K, + static $GenericTypeParams$Type<$S, $K> + type<$S extends _$jni.JObject, $K extends _$jni.JObject>( + _$jni.JObjType<$S> S, + _$jni.JObjType<$K> K, ) { - return $GenericTypeParamsType( + return $GenericTypeParams$Type( S, K, ); @@ -2568,97 +2692,115 @@ class GenericTypeParams<$S extends jni.JObject, $K extends jni.JObject> r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory GenericTypeParams({ - required jni.JObjType<$S> S, - required jni.JObjType<$K> K, + required _$jni.JObjType<$S> S, + required _$jni.JObjType<$K> K, }) { return GenericTypeParams.fromReference( S, K, - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } } -final class $GenericTypeParamsType<$S extends jni.JObject, - $K extends jni.JObject> extends jni.JObjType> { - final jni.JObjType<$S> S; - final jni.JObjType<$K> K; +final class $GenericTypeParams$Type<$S extends _$jni.JObject, + $K extends _$jni.JObject> + extends _$jni.JObjType> { + @_$jni.internal + final _$jni.JObjType<$S> S; + + @_$jni.internal + final _$jni.JObjType<$K> K; - const $GenericTypeParamsType( + @_$jni.internal + const $GenericTypeParams$Type( this.S, this.K, ); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/generics/GenericTypeParams;'; - @override - GenericTypeParams<$S, $K> fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + GenericTypeParams<$S, $K> fromReference(_$jni.JReference reference) => GenericTypeParams.fromReference(S, K, reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => Object.hash($GenericTypeParamsType, S, K); + @_$core.override + int get hashCode => Object.hash($GenericTypeParams$Type, S, K); - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($GenericTypeParamsType<$S, $K>) && - other is $GenericTypeParamsType<$S, $K> && + return other.runtimeType == ($GenericTypeParams$Type<$S, $K>) && + other is $GenericTypeParams$Type<$S, $K> && S == other.S && K == other.K; } } /// from: `com.github.dart_lang.jnigen.generics.GrandParent$Parent$Child` -class GrandParent_Parent_Child<$T extends jni.JObject, $S extends jni.JObject, - $U extends jni.JObject> extends jni.JObject { - @override - late final jni.JObjType> $type = - type(T, S, U); +class GrandParent_Parent_Child<$T extends _$jni.JObject, + $S extends _$jni.JObject, $U extends _$jni.JObject> extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType> $type; - final jni.JObjType<$T> T; - final jni.JObjType<$S> S; - final jni.JObjType<$U> U; + @_$jni.internal + final _$jni.JObjType<$T> T; + @_$jni.internal + final _$jni.JObjType<$S> S; + + @_$jni.internal + final _$jni.JObjType<$U> U; + + @_$jni.internal GrandParent_Parent_Child.fromReference( this.T, this.S, this.U, - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type(T, S, U), + super.fromReference(reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'com/github/dart_lang/jnigen/generics/GrandParent$Parent$Child'); /// The type which includes information such as the signature of this class. - static $GrandParent_Parent_ChildType<$T, $S, $U> type<$T extends jni.JObject, - $S extends jni.JObject, $U extends jni.JObject>( - jni.JObjType<$T> T, - jni.JObjType<$S> S, - jni.JObjType<$U> U, + static $GrandParent_Parent_Child$Type<$T, $S, $U> type< + $T extends _$jni.JObject, + $S extends _$jni.JObject, + $U extends _$jni.JObject>( + _$jni.JObjType<$T> T, + _$jni.JObjType<$S> S, + _$jni.JObjType<$U> U, ) { - return $GrandParent_Parent_ChildType( + return $GrandParent_Parent_Child$Type( T, S, U, @@ -2708,83 +2850,96 @@ class GrandParent_Parent_Child<$T extends jni.JObject, $S extends jni.JObject, r'(Lcom/github/dart_lang/jnigen/generics/GrandParent$Parent;Ljava/lang/Object;)V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public void (com.github.dart_lang.jnigen.generics.GrandParent$Parent $parent, U newValue)` /// The returned object must be released after use, by calling the [release] method. factory GrandParent_Parent_Child( GrandParent_Parent<$T, $S> $parent, $U newValue, { - jni.JObjType<$T>? T, - jni.JObjType<$S>? S, - jni.JObjType<$U>? U, + _$jni.JObjType<$T>? T, + _$jni.JObjType<$S>? S, + _$jni.JObjType<$U>? U, }) { - T ??= jni.lowestCommonSuperType([ - ($parent.$type as $GrandParent_ParentType).T, - ]) as jni.JObjType<$T>; - S ??= jni.lowestCommonSuperType([ - ($parent.$type as $GrandParent_ParentType).S, - ]) as jni.JObjType<$S>; - U ??= jni.lowestCommonSuperType([ + T ??= _$jni.lowestCommonSuperType([ + ($parent.$type as $GrandParent_Parent$Type).T, + ]) as _$jni.JObjType<$T>; + S ??= _$jni.lowestCommonSuperType([ + ($parent.$type as $GrandParent_Parent$Type).S, + ]) as _$jni.JObjType<$S>; + U ??= _$jni.lowestCommonSuperType([ newValue.$type, - ]) as jni.JObjType<$U>; + ]) as _$jni.JObjType<$U>; return GrandParent_Parent_Child.fromReference( T, S, U, - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr, + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr, $parent.reference.pointer, newValue.reference.pointer) .reference); } } -final class $GrandParent_Parent_ChildType<$T extends jni.JObject, - $S extends jni.JObject, $U extends jni.JObject> - extends jni.JObjType> { - final jni.JObjType<$T> T; - final jni.JObjType<$S> S; - final jni.JObjType<$U> U; +final class $GrandParent_Parent_Child$Type<$T extends _$jni.JObject, + $S extends _$jni.JObject, $U extends _$jni.JObject> + extends _$jni.JObjType> { + @_$jni.internal + final _$jni.JObjType<$T> T; + + @_$jni.internal + final _$jni.JObjType<$S> S; - const $GrandParent_Parent_ChildType( + @_$jni.internal + final _$jni.JObjType<$U> U; + + @_$jni.internal + const $GrandParent_Parent_Child$Type( this.T, this.S, this.U, ); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/generics/GrandParent$Parent$Child;'; - @override + @_$jni.internal + @_$core.override GrandParent_Parent_Child<$T, $S, $U> fromReference( - jni.JReference reference) => + _$jni.JReference reference) => GrandParent_Parent_Child.fromReference(T, S, U, reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => Object.hash($GrandParent_Parent_ChildType, T, S, U); + @_$core.override + int get hashCode => Object.hash($GrandParent_Parent_Child$Type, T, S, U); - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($GrandParent_Parent_ChildType<$T, $S, $U>) && - other is $GrandParent_Parent_ChildType<$T, $S, $U> && + return other.runtimeType == ($GrandParent_Parent_Child$Type<$T, $S, $U>) && + other is $GrandParent_Parent_Child$Type<$T, $S, $U> && T == other.T && S == other.S && U == other.U; @@ -2792,30 +2947,36 @@ final class $GrandParent_Parent_ChildType<$T extends jni.JObject, } /// from: `com.github.dart_lang.jnigen.generics.GrandParent$Parent` -class GrandParent_Parent<$T extends jni.JObject, $S extends jni.JObject> - extends jni.JObject { - @override - late final jni.JObjType> $type = type(T, S); +class GrandParent_Parent<$T extends _$jni.JObject, $S extends _$jni.JObject> + extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType> $type; + + @_$jni.internal + final _$jni.JObjType<$T> T; - final jni.JObjType<$T> T; - final jni.JObjType<$S> S; + @_$jni.internal + final _$jni.JObjType<$S> S; + @_$jni.internal GrandParent_Parent.fromReference( this.T, this.S, - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type(T, S), + super.fromReference(reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'com/github/dart_lang/jnigen/generics/GrandParent$Parent'); /// The type which includes information such as the signature of this class. - static $GrandParent_ParentType<$T, $S> - type<$T extends jni.JObject, $S extends jni.JObject>( - jni.JObjType<$T> T, - jni.JObjType<$S> S, + static $GrandParent_Parent$Type<$T, $S> + type<$T extends _$jni.JObject, $S extends _$jni.JObject>( + _$jni.JObjType<$T> T, + _$jni.JObjType<$S> S, ) { - return $GrandParent_ParentType( + return $GrandParent_Parent$Type( T, S, ); @@ -2851,105 +3012,122 @@ class GrandParent_Parent<$T extends jni.JObject, $S extends jni.JObject> r'(Lcom/github/dart_lang/jnigen/generics/GrandParent;Ljava/lang/Object;)V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public void (com.github.dart_lang.jnigen.generics.GrandParent $parent, S newValue)` /// The returned object must be released after use, by calling the [release] method. factory GrandParent_Parent( GrandParent<$T> $parent, $S newValue, { - jni.JObjType<$T>? T, - jni.JObjType<$S>? S, + _$jni.JObjType<$T>? T, + _$jni.JObjType<$S>? S, }) { - T ??= jni.lowestCommonSuperType([ - ($parent.$type as $GrandParentType).T, - ]) as jni.JObjType<$T>; - S ??= jni.lowestCommonSuperType([ + T ??= _$jni.lowestCommonSuperType([ + ($parent.$type as $GrandParent$Type).T, + ]) as _$jni.JObjType<$T>; + S ??= _$jni.lowestCommonSuperType([ newValue.$type, - ]) as jni.JObjType<$S>; + ]) as _$jni.JObjType<$S>; return GrandParent_Parent.fromReference( T, S, - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr, + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr, $parent.reference.pointer, newValue.reference.pointer) .reference); } } -final class $GrandParent_ParentType<$T extends jni.JObject, - $S extends jni.JObject> extends jni.JObjType> { - final jni.JObjType<$T> T; - final jni.JObjType<$S> S; +final class $GrandParent_Parent$Type<$T extends _$jni.JObject, + $S extends _$jni.JObject> + extends _$jni.JObjType> { + @_$jni.internal + final _$jni.JObjType<$T> T; + + @_$jni.internal + final _$jni.JObjType<$S> S; - const $GrandParent_ParentType( + @_$jni.internal + const $GrandParent_Parent$Type( this.T, this.S, ); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/generics/GrandParent$Parent;'; - @override - GrandParent_Parent<$T, $S> fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + GrandParent_Parent<$T, $S> fromReference(_$jni.JReference reference) => GrandParent_Parent.fromReference(T, S, reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => Object.hash($GrandParent_ParentType, T, S); + @_$core.override + int get hashCode => Object.hash($GrandParent_Parent$Type, T, S); - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($GrandParent_ParentType<$T, $S>) && - other is $GrandParent_ParentType<$T, $S> && + return other.runtimeType == ($GrandParent_Parent$Type<$T, $S>) && + other is $GrandParent_Parent$Type<$T, $S> && T == other.T && S == other.S; } } /// from: `com.github.dart_lang.jnigen.generics.GrandParent$StaticParent$Child` -class GrandParent_StaticParent_Child<$S extends jni.JObject, - $U extends jni.JObject> extends jni.JObject { - @override - late final jni.JObjType> $type = - type(S, U); +class GrandParent_StaticParent_Child<$S extends _$jni.JObject, + $U extends _$jni.JObject> extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType> $type; - final jni.JObjType<$S> S; - final jni.JObjType<$U> U; + @_$jni.internal + final _$jni.JObjType<$S> S; + @_$jni.internal + final _$jni.JObjType<$U> U; + + @_$jni.internal GrandParent_StaticParent_Child.fromReference( this.S, this.U, - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type(S, U), + super.fromReference(reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'com/github/dart_lang/jnigen/generics/GrandParent$StaticParent$Child'); /// The type which includes information such as the signature of this class. - static $GrandParent_StaticParent_ChildType<$S, $U> - type<$S extends jni.JObject, $U extends jni.JObject>( - jni.JObjType<$S> S, - jni.JObjType<$U> U, + static $GrandParent_StaticParent_Child$Type<$S, $U> + type<$S extends _$jni.JObject, $U extends _$jni.JObject>( + _$jni.JObjType<$S> S, + _$jni.JObjType<$U> U, ) { - return $GrandParent_StaticParent_ChildType( + return $GrandParent_StaticParent_Child$Type( S, U, ); @@ -2985,24 +3163,24 @@ class GrandParent_StaticParent_Child<$S extends jni.JObject, r'(Lcom/github/dart_lang/jnigen/generics/GrandParent$StaticParent;Ljava/lang/Object;Ljava/lang/Object;)V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public void (com.github.dart_lang.jnigen.generics.GrandParent$StaticParent $parent, S parentValue, U value)` /// The returned object must be released after use, by calling the [release] method. @@ -3010,22 +3188,22 @@ class GrandParent_StaticParent_Child<$S extends jni.JObject, GrandParent_StaticParent<$S> $parent, $S parentValue, $U value, { - jni.JObjType<$S>? S, - jni.JObjType<$U>? U, + _$jni.JObjType<$S>? S, + _$jni.JObjType<$U>? U, }) { - S ??= jni.lowestCommonSuperType([ + S ??= _$jni.lowestCommonSuperType([ parentValue.$type, - ($parent.$type as $GrandParent_StaticParentType).S, - ]) as jni.JObjType<$S>; - U ??= jni.lowestCommonSuperType([ + ($parent.$type as $GrandParent_StaticParent$Type).S, + ]) as _$jni.JObjType<$S>; + U ??= _$jni.lowestCommonSuperType([ value.$type, - ]) as jni.JObjType<$U>; + ]) as _$jni.JObjType<$U>; return GrandParent_StaticParent_Child.fromReference( S, U, _new$( _class.reference.pointer, - _id_new$ as jni.JMethodIDPtr, + _id_new$ as _$jni.JMethodIDPtr, $parent.reference.pointer, parentValue.reference.pointer, value.reference.pointer) @@ -3033,64 +3211,77 @@ class GrandParent_StaticParent_Child<$S extends jni.JObject, } } -final class $GrandParent_StaticParent_ChildType<$S extends jni.JObject, - $U extends jni.JObject> - extends jni.JObjType> { - final jni.JObjType<$S> S; - final jni.JObjType<$U> U; +final class $GrandParent_StaticParent_Child$Type<$S extends _$jni.JObject, + $U extends _$jni.JObject> + extends _$jni.JObjType> { + @_$jni.internal + final _$jni.JObjType<$S> S; + + @_$jni.internal + final _$jni.JObjType<$U> U; - const $GrandParent_StaticParent_ChildType( + @_$jni.internal + const $GrandParent_StaticParent_Child$Type( this.S, this.U, ); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/generics/GrandParent$StaticParent$Child;'; - @override + @_$jni.internal + @_$core.override GrandParent_StaticParent_Child<$S, $U> fromReference( - jni.JReference reference) => + _$jni.JReference reference) => GrandParent_StaticParent_Child.fromReference(S, U, reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => Object.hash($GrandParent_StaticParent_ChildType, S, U); + @_$core.override + int get hashCode => Object.hash($GrandParent_StaticParent_Child$Type, S, U); - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($GrandParent_StaticParent_ChildType<$S, $U>) && - other is $GrandParent_StaticParent_ChildType<$S, $U> && + return other.runtimeType == + ($GrandParent_StaticParent_Child$Type<$S, $U>) && + other is $GrandParent_StaticParent_Child$Type<$S, $U> && S == other.S && U == other.U; } } /// from: `com.github.dart_lang.jnigen.generics.GrandParent$StaticParent` -class GrandParent_StaticParent<$S extends jni.JObject> extends jni.JObject { - @override - late final jni.JObjType> $type = type(S); +class GrandParent_StaticParent<$S extends _$jni.JObject> extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType> $type; - final jni.JObjType<$S> S; + @_$jni.internal + final _$jni.JObjType<$S> S; + @_$jni.internal GrandParent_StaticParent.fromReference( this.S, - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type(S), + super.fromReference(reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'com/github/dart_lang/jnigen/generics/GrandParent$StaticParent'); /// The type which includes information such as the signature of this class. - static $GrandParent_StaticParentType<$S> type<$S extends jni.JObject>( - jni.JObjType<$S> S, + static $GrandParent_StaticParent$Type<$S> type<$S extends _$jni.JObject>( + _$jni.JObjType<$S> S, ) { - return $GrandParent_StaticParentType( + return $GrandParent_StaticParent$Type( S, ); } @@ -3112,87 +3303,97 @@ class GrandParent_StaticParent<$S extends jni.JObject> extends jni.JObject { r'(Ljava/lang/Object;)V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_NewObject') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void (S value)` /// The returned object must be released after use, by calling the [release] method. factory GrandParent_StaticParent( $S value, { - jni.JObjType<$S>? S, + _$jni.JObjType<$S>? S, }) { - S ??= jni.lowestCommonSuperType([ + S ??= _$jni.lowestCommonSuperType([ value.$type, - ]) as jni.JObjType<$S>; + ]) as _$jni.JObjType<$S>; return GrandParent_StaticParent.fromReference( S, - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr, + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr, value.reference.pointer) .reference); } } -final class $GrandParent_StaticParentType<$S extends jni.JObject> - extends jni.JObjType> { - final jni.JObjType<$S> S; +final class $GrandParent_StaticParent$Type<$S extends _$jni.JObject> + extends _$jni.JObjType> { + @_$jni.internal + final _$jni.JObjType<$S> S; - const $GrandParent_StaticParentType( + @_$jni.internal + const $GrandParent_StaticParent$Type( this.S, ); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/generics/GrandParent$StaticParent;'; - @override - GrandParent_StaticParent<$S> fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + GrandParent_StaticParent<$S> fromReference(_$jni.JReference reference) => GrandParent_StaticParent.fromReference(S, reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => Object.hash($GrandParent_StaticParentType, S); + @_$core.override + int get hashCode => Object.hash($GrandParent_StaticParent$Type, S); - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($GrandParent_StaticParentType<$S>) && - other is $GrandParent_StaticParentType<$S> && + return other.runtimeType == ($GrandParent_StaticParent$Type<$S>) && + other is $GrandParent_StaticParent$Type<$S> && S == other.S; } } /// from: `com.github.dart_lang.jnigen.generics.GrandParent` -class GrandParent<$T extends jni.JObject> extends jni.JObject { - @override - late final jni.JObjType> $type = type(T); +class GrandParent<$T extends _$jni.JObject> extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType> $type; - final jni.JObjType<$T> T; + @_$jni.internal + final _$jni.JObjType<$T> T; + @_$jni.internal GrandParent.fromReference( this.T, - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type(T), + super.fromReference(reference); static final _class = - jni.JClass.forName(r'com/github/dart_lang/jnigen/generics/GrandParent'); + _$jni.JClass.forName(r'com/github/dart_lang/jnigen/generics/GrandParent'); /// The type which includes information such as the signature of this class. - static $GrandParentType<$T> type<$T extends jni.JObject>( - jni.JObjType<$T> T, + static $GrandParent$Type<$T> type<$T extends _$jni.JObject>( + _$jni.JObjType<$T> T, ) { - return $GrandParentType( + return $GrandParent$Type( T, ); } @@ -3214,29 +3415,29 @@ class GrandParent<$T extends jni.JObject> extends jni.JObject { r'(Ljava/lang/Object;)V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_NewObject') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void (T value)` /// The returned object must be released after use, by calling the [release] method. factory GrandParent( $T value, { - jni.JObjType<$T>? T, + _$jni.JObjType<$T>? T, }) { - T ??= jni.lowestCommonSuperType([ + T ??= _$jni.lowestCommonSuperType([ value.$type, - ]) as jni.JObjType<$T>; + ]) as _$jni.JObjType<$T>; return GrandParent.fromReference( T, - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr, + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr, value.reference.pointer) .reference); } @@ -3246,25 +3447,25 @@ class GrandParent<$T extends jni.JObject> extends jni.JObject { r'()Lcom/github/dart_lang/jnigen/generics/GrandParent$Parent;', ); - static final _stringParent = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _stringParent = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public com.github.dart_lang.jnigen.generics.GrandParent.Parent stringParent()` /// The returned object must be released after use, by calling the [release] method. - GrandParent_Parent stringParent() { + GrandParent_Parent<_$jni.JObject, _$jni.JString> stringParent() { return _stringParent( - reference.pointer, _id_stringParent as jni.JMethodIDPtr) - .object(const $GrandParent_ParentType( - jni.JObjectType(), jni.JStringType())); + reference.pointer, _id_stringParent as _$jni.JMethodIDPtr) + .object(const $GrandParent_Parent$Type( + _$jni.JObjectType(), _$jni.JStringType())); } static final _id_varParent = _class.instanceMethodId( @@ -3272,29 +3473,29 @@ class GrandParent<$T extends jni.JObject> extends jni.JObject { r'(Ljava/lang/Object;)Lcom/github/dart_lang/jnigen/generics/GrandParent$Parent;', ); - static final _varParent = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _varParent = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public com.github.dart_lang.jnigen.generics.GrandParent.Parent varParent(S nestedValue)` /// The returned object must be released after use, by calling the [release] method. - GrandParent_Parent varParent<$S extends jni.JObject>( + GrandParent_Parent<_$jni.JObject, $S> varParent<$S extends _$jni.JObject>( $S nestedValue, { - jni.JObjType<$S>? S, + _$jni.JObjType<$S>? S, }) { - S ??= jni.lowestCommonSuperType([ + S ??= _$jni.lowestCommonSuperType([ nestedValue.$type, - ]) as jni.JObjType<$S>; - return _varParent(reference.pointer, _id_varParent as jni.JMethodIDPtr, + ]) as _$jni.JObjType<$S>; + return _varParent(reference.pointer, _id_varParent as _$jni.JMethodIDPtr, nestedValue.reference.pointer) - .object($GrandParent_ParentType(const jni.JObjectType(), S)); + .object($GrandParent_Parent$Type(const _$jni.JObjectType(), S)); } static final _id_stringStaticParent = _class.staticMethodId( @@ -3302,24 +3503,24 @@ class GrandParent<$T extends jni.JObject> extends jni.JObject { r'()Lcom/github/dart_lang/jnigen/generics/GrandParent$StaticParent;', ); - static final _stringStaticParent = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _stringStaticParent = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public com.github.dart_lang.jnigen.generics.GrandParent.StaticParent stringStaticParent()` /// The returned object must be released after use, by calling the [release] method. - static GrandParent_StaticParent stringStaticParent() { + static GrandParent_StaticParent<_$jni.JString> stringStaticParent() { return _stringStaticParent(_class.reference.pointer, - _id_stringStaticParent as jni.JMethodIDPtr) - .object(const $GrandParent_StaticParentType(jni.JStringType())); + _id_stringStaticParent as _$jni.JMethodIDPtr) + .object(const $GrandParent_StaticParent$Type(_$jni.JStringType())); } static final _id_varStaticParent = _class.staticMethodId( @@ -3327,29 +3528,29 @@ class GrandParent<$T extends jni.JObject> extends jni.JObject { r'(Ljava/lang/Object;)Lcom/github/dart_lang/jnigen/generics/GrandParent$StaticParent;', ); - static final _varStaticParent = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _varStaticParent = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `static public com.github.dart_lang.jnigen.generics.GrandParent.StaticParent varStaticParent(S value)` /// The returned object must be released after use, by calling the [release] method. - static GrandParent_StaticParent<$S> varStaticParent<$S extends jni.JObject>( + static GrandParent_StaticParent<$S> varStaticParent<$S extends _$jni.JObject>( $S value, { - jni.JObjType<$S>? S, + _$jni.JObjType<$S>? S, }) { - S ??= jni.lowestCommonSuperType([ + S ??= _$jni.lowestCommonSuperType([ value.$type, - ]) as jni.JObjType<$S>; + ]) as _$jni.JObjType<$S>; return _varStaticParent(_class.reference.pointer, - _id_varStaticParent as jni.JMethodIDPtr, value.reference.pointer) - .object($GrandParent_StaticParentType(S)); + _id_varStaticParent as _$jni.JMethodIDPtr, value.reference.pointer) + .object($GrandParent_StaticParent$Type(S)); } static final _id_staticParentWithSameType = _class.instanceMethodId( @@ -3357,84 +3558,96 @@ class GrandParent<$T extends jni.JObject> extends jni.JObject { r'()Lcom/github/dart_lang/jnigen/generics/GrandParent$StaticParent;', ); - static final _staticParentWithSameType = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _staticParentWithSameType = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public com.github.dart_lang.jnigen.generics.GrandParent.StaticParent staticParentWithSameType()` /// The returned object must be released after use, by calling the [release] method. GrandParent_StaticParent<$T> staticParentWithSameType() { - return _staticParentWithSameType( - reference.pointer, _id_staticParentWithSameType as jni.JMethodIDPtr) - .object($GrandParent_StaticParentType(T)); + return _staticParentWithSameType(reference.pointer, + _id_staticParentWithSameType as _$jni.JMethodIDPtr) + .object($GrandParent_StaticParent$Type(T)); } } -final class $GrandParentType<$T extends jni.JObject> - extends jni.JObjType> { - final jni.JObjType<$T> T; +final class $GrandParent$Type<$T extends _$jni.JObject> + extends _$jni.JObjType> { + @_$jni.internal + final _$jni.JObjType<$T> T; - const $GrandParentType( + @_$jni.internal + const $GrandParent$Type( this.T, ); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/generics/GrandParent;'; - @override - GrandParent<$T> fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + GrandParent<$T> fromReference(_$jni.JReference reference) => GrandParent.fromReference(T, reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => Object.hash($GrandParentType, T); + @_$core.override + int get hashCode => Object.hash($GrandParent$Type, T); - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($GrandParentType<$T>) && - other is $GrandParentType<$T> && + return other.runtimeType == ($GrandParent$Type<$T>) && + other is $GrandParent$Type<$T> && T == other.T; } } /// from: `com.github.dart_lang.jnigen.generics.MyMap$MyEntry` -class MyMap_MyEntry<$K extends jni.JObject, $V extends jni.JObject> - extends jni.JObject { - @override - late final jni.JObjType> $type = type(K, V); +class MyMap_MyEntry<$K extends _$jni.JObject, $V extends _$jni.JObject> + extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType> $type; + + @_$jni.internal + final _$jni.JObjType<$K> K; - final jni.JObjType<$K> K; - final jni.JObjType<$V> V; + @_$jni.internal + final _$jni.JObjType<$V> V; + @_$jni.internal MyMap_MyEntry.fromReference( this.K, this.V, - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type(K, V), + super.fromReference(reference); - static final _class = - jni.JClass.forName(r'com/github/dart_lang/jnigen/generics/MyMap$MyEntry'); + static final _class = _$jni.JClass.forName( + r'com/github/dart_lang/jnigen/generics/MyMap$MyEntry'); /// The type which includes information such as the signature of this class. - static $MyMap_MyEntryType<$K, $V> - type<$K extends jni.JObject, $V extends jni.JObject>( - jni.JObjType<$K> K, - jni.JObjType<$V> V, + static $MyMap_MyEntry$Type<$K, $V> + type<$K extends _$jni.JObject, $V extends _$jni.JObject>( + _$jni.JObjType<$K> K, + _$jni.JObjType<$V> V, ) { - return $MyMap_MyEntryType( + return $MyMap_MyEntry$Type( K, V, ); @@ -3470,24 +3683,24 @@ class MyMap_MyEntry<$K extends jni.JObject, $V extends jni.JObject> r'(Lcom/github/dart_lang/jnigen/generics/MyMap;Ljava/lang/Object;Ljava/lang/Object;)V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public void (com.github.dart_lang.jnigen.generics.MyMap $parent, K key, V value)` /// The returned object must be released after use, by calling the [release] method. @@ -3495,23 +3708,23 @@ class MyMap_MyEntry<$K extends jni.JObject, $V extends jni.JObject> MyMap<$K, $V> $parent, $K key, $V value, { - jni.JObjType<$K>? K, - jni.JObjType<$V>? V, + _$jni.JObjType<$K>? K, + _$jni.JObjType<$V>? V, }) { - K ??= jni.lowestCommonSuperType([ + K ??= _$jni.lowestCommonSuperType([ key.$type, - ($parent.$type as $MyMapType).K, - ]) as jni.JObjType<$K>; - V ??= jni.lowestCommonSuperType([ + ($parent.$type as $MyMap$Type).K, + ]) as _$jni.JObjType<$K>; + V ??= _$jni.lowestCommonSuperType([ value.$type, - ($parent.$type as $MyMapType).V, - ]) as jni.JObjType<$V>; + ($parent.$type as $MyMap$Type).V, + ]) as _$jni.JObjType<$V>; return MyMap_MyEntry.fromReference( K, V, _new$( _class.reference.pointer, - _id_new$ as jni.JMethodIDPtr, + _id_new$ as _$jni.JMethodIDPtr, $parent.reference.pointer, key.reference.pointer, value.reference.pointer) @@ -3519,67 +3732,81 @@ class MyMap_MyEntry<$K extends jni.JObject, $V extends jni.JObject> } } -final class $MyMap_MyEntryType<$K extends jni.JObject, $V extends jni.JObject> - extends jni.JObjType> { - final jni.JObjType<$K> K; - final jni.JObjType<$V> V; +final class $MyMap_MyEntry$Type<$K extends _$jni.JObject, + $V extends _$jni.JObject> extends _$jni.JObjType> { + @_$jni.internal + final _$jni.JObjType<$K> K; + + @_$jni.internal + final _$jni.JObjType<$V> V; - const $MyMap_MyEntryType( + @_$jni.internal + const $MyMap_MyEntry$Type( this.K, this.V, ); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/generics/MyMap$MyEntry;'; - @override - MyMap_MyEntry<$K, $V> fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + MyMap_MyEntry<$K, $V> fromReference(_$jni.JReference reference) => MyMap_MyEntry.fromReference(K, V, reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => Object.hash($MyMap_MyEntryType, K, V); + @_$core.override + int get hashCode => Object.hash($MyMap_MyEntry$Type, K, V); - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($MyMap_MyEntryType<$K, $V>) && - other is $MyMap_MyEntryType<$K, $V> && + return other.runtimeType == ($MyMap_MyEntry$Type<$K, $V>) && + other is $MyMap_MyEntry$Type<$K, $V> && K == other.K && V == other.V; } } /// from: `com.github.dart_lang.jnigen.generics.MyMap` -class MyMap<$K extends jni.JObject, $V extends jni.JObject> - extends jni.JObject { - @override - late final jni.JObjType> $type = type(K, V); +class MyMap<$K extends _$jni.JObject, $V extends _$jni.JObject> + extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType> $type; - final jni.JObjType<$K> K; - final jni.JObjType<$V> V; + @_$jni.internal + final _$jni.JObjType<$K> K; + @_$jni.internal + final _$jni.JObjType<$V> V; + + @_$jni.internal MyMap.fromReference( this.K, this.V, - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type(K, V), + super.fromReference(reference); static final _class = - jni.JClass.forName(r'com/github/dart_lang/jnigen/generics/MyMap'); + _$jni.JClass.forName(r'com/github/dart_lang/jnigen/generics/MyMap'); /// The type which includes information such as the signature of this class. - static $MyMapType<$K, $V> - type<$K extends jni.JObject, $V extends jni.JObject>( - jni.JObjType<$K> K, - jni.JObjType<$V> V, + static $MyMap$Type<$K, $V> + type<$K extends _$jni.JObject, $V extends _$jni.JObject>( + _$jni.JObjType<$K> K, + _$jni.JObjType<$V> V, ) { - return $MyMapType( + return $MyMap$Type( K, V, ); @@ -3589,53 +3816,53 @@ class MyMap<$K extends jni.JObject, $V extends jni.JObject> r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory MyMap({ - required jni.JObjType<$K> K, - required jni.JObjType<$V> V, + required _$jni.JObjType<$K> K, + required _$jni.JObjType<$V> V, }) { return MyMap.fromReference( K, V, - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } - static final _id_get$ = _class.instanceMethodId( + static final _id_get = _class.instanceMethodId( r'get', r'(Ljava/lang/Object;)Ljava/lang/Object;', ); - static final _get$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _get = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public V get(K key)` /// The returned object must be released after use, by calling the [release] method. - $V get$( + $V get( $K key, ) { - return _get$(reference.pointer, _id_get$ as jni.JMethodIDPtr, + return _get(reference.pointer, _id_get as _$jni.JMethodIDPtr, key.reference.pointer) .object(V); } @@ -3645,19 +3872,22 @@ class MyMap<$K extends jni.JObject, $V extends jni.JObject> r'(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;', ); - static final _put = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _put = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `public V put(K key, V value)` /// The returned object must be released after use, by calling the [release] method. @@ -3665,7 +3895,7 @@ class MyMap<$K extends jni.JObject, $V extends jni.JObject> $K key, $V value, ) { - return _put(reference.pointer, _id_put as jni.JMethodIDPtr, + return _put(reference.pointer, _id_put as _$jni.JMethodIDPtr, key.reference.pointer, value.reference.pointer) .object(V); } @@ -3675,82 +3905,94 @@ class MyMap<$K extends jni.JObject, $V extends jni.JObject> r'()Lcom/github/dart_lang/jnigen/generics/MyStack;', ); - static final _entryStack = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _entryStack = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public com.github.dart_lang.jnigen.generics.MyStack.MyEntry> entryStack()` /// The returned object must be released after use, by calling the [release] method. - MyStack> entryStack() { - return _entryStack(reference.pointer, _id_entryStack as jni.JMethodIDPtr) - .object(const $MyStackType( - $MyMap_MyEntryType(jni.JObjectType(), jni.JObjectType()))); + MyStack> entryStack() { + return _entryStack(reference.pointer, _id_entryStack as _$jni.JMethodIDPtr) + .object(const $MyStack$Type( + $MyMap_MyEntry$Type(_$jni.JObjectType(), _$jni.JObjectType()))); } } -final class $MyMapType<$K extends jni.JObject, $V extends jni.JObject> - extends jni.JObjType> { - final jni.JObjType<$K> K; - final jni.JObjType<$V> V; +final class $MyMap$Type<$K extends _$jni.JObject, $V extends _$jni.JObject> + extends _$jni.JObjType> { + @_$jni.internal + final _$jni.JObjType<$K> K; + + @_$jni.internal + final _$jni.JObjType<$V> V; - const $MyMapType( + @_$jni.internal + const $MyMap$Type( this.K, this.V, ); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/generics/MyMap;'; - @override - MyMap<$K, $V> fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + MyMap<$K, $V> fromReference(_$jni.JReference reference) => MyMap.fromReference(K, V, reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => Object.hash($MyMapType, K, V); + @_$core.override + int get hashCode => Object.hash($MyMap$Type, K, V); - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($MyMapType<$K, $V>) && - other is $MyMapType<$K, $V> && + return other.runtimeType == ($MyMap$Type<$K, $V>) && + other is $MyMap$Type<$K, $V> && K == other.K && V == other.V; } } /// from: `com.github.dart_lang.jnigen.generics.MyStack` -class MyStack<$T extends jni.JObject> extends jni.JObject { - @override - late final jni.JObjType> $type = type(T); +class MyStack<$T extends _$jni.JObject> extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType> $type; - final jni.JObjType<$T> T; + @_$jni.internal + final _$jni.JObjType<$T> T; + @_$jni.internal MyStack.fromReference( this.T, - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type(T), + super.fromReference(reference); static final _class = - jni.JClass.forName(r'com/github/dart_lang/jnigen/generics/MyStack'); + _$jni.JClass.forName(r'com/github/dart_lang/jnigen/generics/MyStack'); /// The type which includes information such as the signature of this class. - static $MyStackType<$T> type<$T extends jni.JObject>( - jni.JObjType<$T> T, + static $MyStack$Type<$T> type<$T extends _$jni.JObject>( + _$jni.JObjType<$T> T, ) { - return $MyStackType( + return $MyStack$Type( T, ); } @@ -3759,26 +4001,26 @@ class MyStack<$T extends jni.JObject> extends jni.JObject { r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory MyStack({ - required jni.JObjType<$T> T, + required _$jni.JObjType<$T> T, }) { return MyStack.fromReference( T, - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } @@ -3787,29 +4029,29 @@ class MyStack<$T extends jni.JObject> extends jni.JObject { r'([Ljava/lang/Object;)Lcom/github/dart_lang/jnigen/generics/MyStack;', ); - static final _fromArray = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _fromArray = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `static public com.github.dart_lang.jnigen.generics.MyStack fromArray(T[] arr)` /// The returned object must be released after use, by calling the [release] method. - static MyStack<$T> fromArray<$T extends jni.JObject>( - jni.JArray<$T> arr, { - jni.JObjType<$T>? T, + static MyStack<$T> fromArray<$T extends _$jni.JObject>( + _$jni.JArray<$T> arr, { + _$jni.JObjType<$T>? T, }) { - T ??= jni.lowestCommonSuperType([ - ((arr.$type as jni.JArrayType).elementType as jni.JObjType), - ]) as jni.JObjType<$T>; + T ??= _$jni.lowestCommonSuperType([ + ((arr.$type as _$jni.JArrayType).elementType as _$jni.JObjType), + ]) as _$jni.JObjType<$T>; return _fromArray(_class.reference.pointer, - _id_fromArray as jni.JMethodIDPtr, arr.reference.pointer) - .object($MyStackType(T)); + _id_fromArray as _$jni.JMethodIDPtr, arr.reference.pointer) + .object($MyStack$Type(T)); } static final _id_fromArrayOfArrayOfGrandParents = _class.staticMethodId( @@ -3817,34 +4059,35 @@ class MyStack<$T extends jni.JObject> extends jni.JObject { r'([[Lcom/github/dart_lang/jnigen/generics/GrandParent;)Lcom/github/dart_lang/jnigen/generics/MyStack;', ); - static final _fromArrayOfArrayOfGrandParents = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + static final _fromArrayOfArrayOfGrandParents = + _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `static public com.github.dart_lang.jnigen.generics.MyStack fromArrayOfArrayOfGrandParents(com.github.dart_lang.jnigen.generics.GrandParent[][] arr)` /// The returned object must be released after use, by calling the [release] method. - static MyStack<$S> fromArrayOfArrayOfGrandParents<$S extends jni.JObject>( - jni.JArray>> arr, { - jni.JObjType<$S>? S, + static MyStack<$S> fromArrayOfArrayOfGrandParents<$S extends _$jni.JObject>( + _$jni.JArray<_$jni.JArray>> arr, { + _$jni.JObjType<$S>? S, }) { - S ??= jni.lowestCommonSuperType([ - (((((arr.$type as jni.JArrayType).elementType as jni.JObjType) - as jni.JArrayType) - .elementType as jni.JObjType) as $GrandParentType) + S ??= _$jni.lowestCommonSuperType([ + (((((arr.$type as _$jni.JArrayType).elementType as _$jni.JObjType) + as _$jni.JArrayType) + .elementType as _$jni.JObjType) as $GrandParent$Type) .T, - ]) as jni.JObjType<$S>; + ]) as _$jni.JObjType<$S>; return _fromArrayOfArrayOfGrandParents( _class.reference.pointer, - _id_fromArrayOfArrayOfGrandParents as jni.JMethodIDPtr, + _id_fromArrayOfArrayOfGrandParents as _$jni.JMethodIDPtr, arr.reference.pointer) - .object($MyStackType(S)); + .object($MyStack$Type(S)); } static final _id_of = _class.staticMethodId( @@ -3852,25 +4095,25 @@ class MyStack<$T extends jni.JObject> extends jni.JObject { r'()Lcom/github/dart_lang/jnigen/generics/MyStack;', ); - static final _of = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _of = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public com.github.dart_lang.jnigen.generics.MyStack of()` /// The returned object must be released after use, by calling the [release] method. - static MyStack<$T> of<$T extends jni.JObject>({ - required jni.JObjType<$T> T, + static MyStack<$T> of<$T extends _$jni.JObject>({ + required _$jni.JObjType<$T> T, }) { - return _of(_class.reference.pointer, _id_of as jni.JMethodIDPtr) - .object($MyStackType(T)); + return _of(_class.reference.pointer, _id_of as _$jni.JMethodIDPtr) + .object($MyStack$Type(T)); } static final _id_of$1 = _class.staticMethodId( @@ -3878,29 +4121,29 @@ class MyStack<$T extends jni.JObject> extends jni.JObject { r'(Ljava/lang/Object;)Lcom/github/dart_lang/jnigen/generics/MyStack;', ); - static final _of$1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _of$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `static public com.github.dart_lang.jnigen.generics.MyStack of(T obj)` /// The returned object must be released after use, by calling the [release] method. - static MyStack<$T> of$1<$T extends jni.JObject>( + static MyStack<$T> of$1<$T extends _$jni.JObject>( $T obj, { - jni.JObjType<$T>? T, + _$jni.JObjType<$T>? T, }) { - T ??= jni.lowestCommonSuperType([ + T ??= _$jni.lowestCommonSuperType([ obj.$type, - ]) as jni.JObjType<$T>; - return _of$1(_class.reference.pointer, _id_of$1 as jni.JMethodIDPtr, + ]) as _$jni.JObjType<$T>; + return _of$1(_class.reference.pointer, _id_of$1 as _$jni.JMethodIDPtr, obj.reference.pointer) - .object($MyStackType(T)); + .object($MyStack$Type(T)); } static final _id_of$2 = _class.staticMethodId( @@ -3908,34 +4151,37 @@ class MyStack<$T extends jni.JObject> extends jni.JObject { r'(Ljava/lang/Object;Ljava/lang/Object;)Lcom/github/dart_lang/jnigen/generics/MyStack;', ); - static final _of$2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _of$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `static public com.github.dart_lang.jnigen.generics.MyStack of(T obj, T obj2)` /// The returned object must be released after use, by calling the [release] method. - static MyStack<$T> of$2<$T extends jni.JObject>( + static MyStack<$T> of$2<$T extends _$jni.JObject>( $T obj, $T obj2, { - jni.JObjType<$T>? T, + _$jni.JObjType<$T>? T, }) { - T ??= jni.lowestCommonSuperType([ + T ??= _$jni.lowestCommonSuperType([ obj2.$type, obj.$type, - ]) as jni.JObjType<$T>; - return _of$2(_class.reference.pointer, _id_of$2 as jni.JMethodIDPtr, + ]) as _$jni.JObjType<$T>; + return _of$2(_class.reference.pointer, _id_of$2 as _$jni.JMethodIDPtr, obj.reference.pointer, obj2.reference.pointer) - .object($MyStackType(T)); + .object($MyStack$Type(T)); } static final _id_push = _class.instanceMethodId( @@ -3943,22 +4189,22 @@ class MyStack<$T extends jni.JObject> extends jni.JObject { r'(Ljava/lang/Object;)V', ); - static final _push = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _push = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void push(T item)` void push( $T item, ) { - _push(reference.pointer, _id_push as jni.JMethodIDPtr, + _push(reference.pointer, _id_push as _$jni.JMethodIDPtr, item.reference.pointer) .check(); } @@ -3968,22 +4214,22 @@ class MyStack<$T extends jni.JObject> extends jni.JObject { r'()Ljava/lang/Object;', ); - static final _pop = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _pop = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public T pop()` /// The returned object must be released after use, by calling the [release] method. $T pop() { - return _pop(reference.pointer, _id_pop as jni.JMethodIDPtr).object(T); + return _pop(reference.pointer, _id_pop as _$jni.JMethodIDPtr).object(T); } static final _id_size = _class.instanceMethodId( @@ -3991,76 +4237,87 @@ class MyStack<$T extends jni.JObject> extends jni.JObject { r'()I', ); - static final _size = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _size = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public int size()` int size() { - return _size(reference.pointer, _id_size as jni.JMethodIDPtr).integer; + return _size(reference.pointer, _id_size as _$jni.JMethodIDPtr).integer; } } -final class $MyStackType<$T extends jni.JObject> - extends jni.JObjType> { - final jni.JObjType<$T> T; +final class $MyStack$Type<$T extends _$jni.JObject> + extends _$jni.JObjType> { + @_$jni.internal + final _$jni.JObjType<$T> T; - const $MyStackType( + @_$jni.internal + const $MyStack$Type( this.T, ); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/generics/MyStack;'; - @override - MyStack<$T> fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + MyStack<$T> fromReference(_$jni.JReference reference) => MyStack.fromReference(T, reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => Object.hash($MyStackType, T); + @_$core.override + int get hashCode => Object.hash($MyStack$Type, T); - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($MyStackType<$T>) && - other is $MyStackType<$T> && + return other.runtimeType == ($MyStack$Type<$T>) && + other is $MyStack$Type<$T> && T == other.T; } } /// from: `com.github.dart_lang.jnigen.generics.StringKeyedMap` -class StringKeyedMap<$V extends jni.JObject> extends MyMap { - @override - late final jni.JObjType> $type = type(V); +class StringKeyedMap<$V extends _$jni.JObject> + extends MyMap<_$jni.JString, $V> { + @_$jni.internal + @_$core.override + final _$jni.JObjType> $type; - final jni.JObjType<$V> V; + @_$jni.internal + final _$jni.JObjType<$V> V; + @_$jni.internal StringKeyedMap.fromReference( this.V, - jni.JReference reference, - ) : super.fromReference(const jni.JStringType(), V, reference); + _$jni.JReference reference, + ) : $type = type(V), + super.fromReference(const _$jni.JStringType(), V, reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'com/github/dart_lang/jnigen/generics/StringKeyedMap'); /// The type which includes information such as the signature of this class. - static $StringKeyedMapType<$V> type<$V extends jni.JObject>( - jni.JObjType<$V> V, + static $StringKeyedMap$Type<$V> type<$V extends _$jni.JObject>( + _$jni.JObjType<$V> V, ) { - return $StringKeyedMapType( + return $StringKeyedMap$Type( V, ); } @@ -4069,211 +4326,240 @@ class StringKeyedMap<$V extends jni.JObject> extends MyMap { r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory StringKeyedMap({ - required jni.JObjType<$V> V, + required _$jni.JObjType<$V> V, }) { return StringKeyedMap.fromReference( V, - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } } -final class $StringKeyedMapType<$V extends jni.JObject> - extends jni.JObjType> { - final jni.JObjType<$V> V; +final class $StringKeyedMap$Type<$V extends _$jni.JObject> + extends _$jni.JObjType> { + @_$jni.internal + final _$jni.JObjType<$V> V; - const $StringKeyedMapType( + @_$jni.internal + const $StringKeyedMap$Type( this.V, ); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/generics/StringKeyedMap;'; - @override - StringKeyedMap<$V> fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + StringKeyedMap<$V> fromReference(_$jni.JReference reference) => StringKeyedMap.fromReference(V, reference); - @override - jni.JObjType get superType => $MyMapType(const jni.JStringType(), V); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => $MyMap$Type(const _$jni.JStringType(), V); - @override + @_$jni.internal + @_$core.override final superCount = 2; - @override - int get hashCode => Object.hash($StringKeyedMapType, V); + @_$core.override + int get hashCode => Object.hash($StringKeyedMap$Type, V); - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($StringKeyedMapType<$V>) && - other is $StringKeyedMapType<$V> && + return other.runtimeType == ($StringKeyedMap$Type<$V>) && + other is $StringKeyedMap$Type<$V> && V == other.V; } } /// from: `com.github.dart_lang.jnigen.generics.StringMap` -class StringMap extends StringKeyedMap { - @override - late final jni.JObjType $type = type; +class StringMap extends StringKeyedMap<_$jni.JString> { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal StringMap.fromReference( - jni.JReference reference, - ) : super.fromReference(const jni.JStringType(), reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(const _$jni.JStringType(), reference); static final _class = - jni.JClass.forName(r'com/github/dart_lang/jnigen/generics/StringMap'); + _$jni.JClass.forName(r'com/github/dart_lang/jnigen/generics/StringMap'); /// The type which includes information such as the signature of this class. - static const type = $StringMapType(); + static const type = $StringMap$Type(); static final _id_new$ = _class.constructorId( r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory StringMap() { return StringMap.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } } -final class $StringMapType extends jni.JObjType { - const $StringMapType(); +final class $StringMap$Type extends _$jni.JObjType { + @_$jni.internal + const $StringMap$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/generics/StringMap;'; - @override - StringMap fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + StringMap fromReference(_$jni.JReference reference) => StringMap.fromReference(reference); - @override - jni.JObjType get superType => const $StringKeyedMapType(jni.JStringType()); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => + const $StringKeyedMap$Type(_$jni.JStringType()); - @override + @_$jni.internal + @_$core.override final superCount = 3; - @override - int get hashCode => ($StringMapType).hashCode; + @_$core.override + int get hashCode => ($StringMap$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($StringMapType) && other is $StringMapType; + return other.runtimeType == ($StringMap$Type) && other is $StringMap$Type; } } /// from: `com.github.dart_lang.jnigen.generics.StringStack` -class StringStack extends MyStack { - @override - late final jni.JObjType $type = type; +class StringStack extends MyStack<_$jni.JString> { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal StringStack.fromReference( - jni.JReference reference, - ) : super.fromReference(const jni.JStringType(), reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(const _$jni.JStringType(), reference); static final _class = - jni.JClass.forName(r'com/github/dart_lang/jnigen/generics/StringStack'); + _$jni.JClass.forName(r'com/github/dart_lang/jnigen/generics/StringStack'); /// The type which includes information such as the signature of this class. - static const type = $StringStackType(); + static const type = $StringStack$Type(); static final _id_new$ = _class.constructorId( r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory StringStack() { return StringStack.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } } -final class $StringStackType extends jni.JObjType { - const $StringStackType(); +final class $StringStack$Type extends _$jni.JObjType { + @_$jni.internal + const $StringStack$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/generics/StringStack;'; - @override - StringStack fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + StringStack fromReference(_$jni.JReference reference) => StringStack.fromReference(reference); - @override - jni.JObjType get superType => const $MyStackType(jni.JStringType()); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const $MyStack$Type(_$jni.JStringType()); - @override + @_$jni.internal + @_$core.override final superCount = 2; - @override - int get hashCode => ($StringStackType).hashCode; + @_$core.override + int get hashCode => ($StringStack$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($StringStackType) && other is $StringStackType; + return other.runtimeType == ($StringStack$Type) && + other is $StringStack$Type; } } /// from: `com.github.dart_lang.jnigen.generics.StringValuedMap` -class StringValuedMap<$K extends jni.JObject> extends MyMap<$K, jni.JString> { - @override - late final jni.JObjType> $type = type(K); +class StringValuedMap<$K extends _$jni.JObject> + extends MyMap<$K, _$jni.JString> { + @_$jni.internal + @_$core.override + final _$jni.JObjType> $type; - final jni.JObjType<$K> K; + @_$jni.internal + final _$jni.JObjType<$K> K; + @_$jni.internal StringValuedMap.fromReference( this.K, - jni.JReference reference, - ) : super.fromReference(K, const jni.JStringType(), reference); + _$jni.JReference reference, + ) : $type = type(K), + super.fromReference(K, const _$jni.JStringType(), reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'com/github/dart_lang/jnigen/generics/StringValuedMap'); /// The type which includes information such as the signature of this class. - static $StringValuedMapType<$K> type<$K extends jni.JObject>( - jni.JObjType<$K> K, + static $StringValuedMap$Type<$K> type<$K extends _$jni.JObject>( + _$jni.JObjType<$K> K, ) { - return $StringValuedMapType( + return $StringValuedMap$Type( K, ); } @@ -4282,83 +4568,93 @@ class StringValuedMap<$K extends jni.JObject> extends MyMap<$K, jni.JString> { r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory StringValuedMap({ - required jni.JObjType<$K> K, + required _$jni.JObjType<$K> K, }) { return StringValuedMap.fromReference( K, - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } } -final class $StringValuedMapType<$K extends jni.JObject> - extends jni.JObjType> { - final jni.JObjType<$K> K; +final class $StringValuedMap$Type<$K extends _$jni.JObject> + extends _$jni.JObjType> { + @_$jni.internal + final _$jni.JObjType<$K> K; - const $StringValuedMapType( + @_$jni.internal + const $StringValuedMap$Type( this.K, ); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/generics/StringValuedMap;'; - @override - StringValuedMap<$K> fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + StringValuedMap<$K> fromReference(_$jni.JReference reference) => StringValuedMap.fromReference(K, reference); - @override - jni.JObjType get superType => $MyMapType(K, const jni.JStringType()); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => $MyMap$Type(K, const _$jni.JStringType()); - @override + @_$jni.internal + @_$core.override final superCount = 2; - @override - int get hashCode => Object.hash($StringValuedMapType, K); + @_$core.override + int get hashCode => Object.hash($StringValuedMap$Type, K); - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($StringValuedMapType<$K>) && - other is $StringValuedMapType<$K> && + return other.runtimeType == ($StringValuedMap$Type<$K>) && + other is $StringValuedMap$Type<$K> && K == other.K; } } /// from: `com.github.dart_lang.jnigen.interfaces.MyInterface` -class MyInterface<$T extends jni.JObject> extends jni.JObject { - @override - late final jni.JObjType> $type = type(T); +class MyInterface<$T extends _$jni.JObject> extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType> $type; - final jni.JObjType<$T> T; + @_$jni.internal + final _$jni.JObjType<$T> T; + @_$jni.internal MyInterface.fromReference( this.T, - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type(T), + super.fromReference(reference); - static final _class = - jni.JClass.forName(r'com/github/dart_lang/jnigen/interfaces/MyInterface'); + static final _class = _$jni.JClass.forName( + r'com/github/dart_lang/jnigen/interfaces/MyInterface'); /// The type which includes information such as the signature of this class. - static $MyInterfaceType<$T> type<$T extends jni.JObject>( - jni.JObjType<$T> T, + static $MyInterface$Type<$T> type<$T extends _$jni.JObject>( + _$jni.JObjType<$T> T, ) { - return $MyInterfaceType( + return $MyInterface$Type( T, ); } @@ -4368,22 +4664,22 @@ class MyInterface<$T extends jni.JObject> extends jni.JObject { r'(Ljava/lang/String;)V', ); - static final _voidCallback = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _voidCallback = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public abstract void voidCallback(java.lang.String s)` void voidCallback( - jni.JString s, + _$jni.JString s, ) { - _voidCallback(reference.pointer, _id_voidCallback as jni.JMethodIDPtr, + _voidCallback(reference.pointer, _id_voidCallback as _$jni.JMethodIDPtr, s.reference.pointer) .check(); } @@ -4393,25 +4689,25 @@ class MyInterface<$T extends jni.JObject> extends jni.JObject { r'(Ljava/lang/String;)Ljava/lang/String;', ); - static final _stringCallback = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _stringCallback = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public abstract java.lang.String stringCallback(java.lang.String s)` /// The returned object must be released after use, by calling the [release] method. - jni.JString stringCallback( - jni.JString s, + _$jni.JString stringCallback( + _$jni.JString s, ) { return _stringCallback(reference.pointer, - _id_stringCallback as jni.JMethodIDPtr, s.reference.pointer) - .object(const jni.JStringType()); + _id_stringCallback as _$jni.JMethodIDPtr, s.reference.pointer) + .object(const _$jni.JStringType()); } static final _id_varCallback = _class.instanceMethodId( @@ -4419,24 +4715,24 @@ class MyInterface<$T extends jni.JObject> extends jni.JObject { r'(Ljava/lang/Object;)Ljava/lang/Object;', ); - static final _varCallback = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _varCallback = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public abstract T varCallback(T t)` /// The returned object must be released after use, by calling the [release] method. $T varCallback( $T t, ) { - return _varCallback(reference.pointer, _id_varCallback as jni.JMethodIDPtr, - t.reference.pointer) + return _varCallback(reference.pointer, + _id_varCallback as _$jni.JMethodIDPtr, t.reference.pointer) .object(T); } @@ -4445,16 +4741,21 @@ class MyInterface<$T extends jni.JObject> extends jni.JObject { r'(IZCD)J', ); - static final _manyPrimitives = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<($Int32, $Int32, $Int32, ffi.Double)>)>>( - 'globalEnv_CallLongMethod') + static final _manyPrimitives = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Int32, + _$jni.Int32, + _$jni.Int32, + _$jni.Double + )>)>>('globalEnv_CallLongMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, int, - int, int, double)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, int, int, int, double)>(); /// from: `public abstract long manyPrimitives(int a, boolean b, char c, double d)` int manyPrimitives( @@ -4464,20 +4765,20 @@ class MyInterface<$T extends jni.JObject> extends jni.JObject { double d, ) { return _manyPrimitives(reference.pointer, - _id_manyPrimitives as jni.JMethodIDPtr, a, b ? 1 : 0, c, d) + _id_manyPrimitives as _$jni.JMethodIDPtr, a, b ? 1 : 0, c, d) .long; } /// Maps a specific port to the implemented interface. - static final Map _$impls = {}; - static jni.JObjectPtr _$invoke( + static final _$core.Map _$impls = {}; + static _$jni.JObjectPtr _$invoke( int port, - jni.JObjectPtr descriptor, - jni.JObjectPtr args, + _$jni.JObjectPtr descriptor, + _$jni.JObjectPtr args, ) { return _$invokeMethod( port, - $MethodInvocation.fromAddresses( + _$jni.MethodInvocation.fromAddresses( 0, descriptor.address, args.address, @@ -4485,80 +4786,80 @@ class MyInterface<$T extends jni.JObject> extends jni.JObject { ); } - static final ffi.Pointer< - ffi.NativeFunction< - jni.JObjectPtr Function( - ffi.Int64, jni.JObjectPtr, jni.JObjectPtr)>> _$invokePointer = - ffi.Pointer.fromFunction(_$invoke); + static final _$jni.Pointer< + _$jni.NativeFunction< + _$jni.JObjectPtr Function( + _$jni.Int64, _$jni.JObjectPtr, _$jni.JObjectPtr)>> + _$invokePointer = _$jni.Pointer.fromFunction(_$invoke); - static ffi.Pointer _$invokeMethod( + static _$jni.Pointer<_$jni.Void> _$invokeMethod( int $p, - $MethodInvocation $i, + _$jni.MethodInvocation $i, ) { try { final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); final $a = $i.args; if ($d == r'voidCallback(Ljava/lang/String;)V') { _$impls[$p]!.voidCallback( - $a[0].castTo(const jni.JStringType(), releaseOriginal: true), + $a[0].as(const _$jni.JStringType(), releaseOriginal: true), ); - return jni.nullptr; + return _$jni.nullptr; } if ($d == r'stringCallback(Ljava/lang/String;)Ljava/lang/String;') { final $r = _$impls[$p]!.stringCallback( - $a[0].castTo(const jni.JStringType(), releaseOriginal: true), + $a[0].as(const _$jni.JStringType(), releaseOriginal: true), ); - return ($r as jni.JObject) - .castTo(const jni.JObjectType()) + return ($r as _$jni.JObject) + .as(const _$jni.JObjectType()) .reference .toPointer(); } if ($d == r'varCallback(Ljava/lang/Object;)Ljava/lang/Object;') { final $r = _$impls[$p]!.varCallback( - $a[0].castTo(_$impls[$p]!.T, releaseOriginal: true), + $a[0].as(_$impls[$p]!.T, releaseOriginal: true), ); - return ($r as jni.JObject) - .castTo(const jni.JObjectType()) + return ($r as _$jni.JObject) + .as(const _$jni.JObjectType()) .reference .toPointer(); } if ($d == r'manyPrimitives(IZCD)J') { final $r = _$impls[$p]!.manyPrimitives( $a[0] - .castTo(const jni.JIntegerType(), releaseOriginal: true) + .as(const _$jni.JIntegerType(), releaseOriginal: true) .intValue(releaseOriginal: true), $a[1] - .castTo(const jni.JBooleanType(), releaseOriginal: true) + .as(const _$jni.JBooleanType(), releaseOriginal: true) .booleanValue(releaseOriginal: true), $a[2] - .castTo(const jni.JCharacterType(), releaseOriginal: true) + .as(const _$jni.JCharacterType(), releaseOriginal: true) .charValue(releaseOriginal: true), $a[3] - .castTo(const jni.JDoubleType(), releaseOriginal: true) + .as(const _$jni.JDoubleType(), releaseOriginal: true) .doubleValue(releaseOriginal: true), ); - return jni.JLong($r).reference.toPointer(); + return _$jni.JLong($r).reference.toPointer(); } } catch (e) { - return ProtectedJniExtensions.newDartException(e); + return _$jni.ProtectedJniExtensions.newDartException(e); } - return jni.nullptr; + return _$jni.nullptr; } - static void implementIn<$T extends jni.JObject>( - jni.JImplementer implementer, + static void implementIn<$T extends _$jni.JObject>( + _$jni.JImplementer implementer, $MyInterface<$T> $impl, ) { - late final RawReceivePort $p; - $p = RawReceivePort(($m) { + late final _$jni.RawReceivePort $p; + $p = _$jni.RawReceivePort(($m) { if ($m == null) { _$impls.remove($p.sendPort.nativePort); $p.close(); return; } - final $i = $MethodInvocation.fromMessage($m as List); + final $i = _$jni.MethodInvocation.fromMessage($m); final $r = _$invokeMethod($p.sendPort.nativePort, $i); - ProtectedJniExtensions.returnResult($i.result, $r); + _$jni.ProtectedJniExtensions.returnResult($i.result, $r); }); implementer.add( r'com.github.dart_lang.jnigen.interfaces.MyInterface', @@ -4572,38 +4873,38 @@ class MyInterface<$T extends jni.JObject> extends jni.JObject { factory MyInterface.implement( $MyInterface<$T> $impl, ) { - final $i = jni.JImplementer(); + final $i = _$jni.JImplementer(); implementIn($i, $impl); return MyInterface.fromReference( $impl.T, $i.implementReference(), ); } - static Map get $impls => _$impls; + static _$core.Map get $impls => _$impls; } -abstract interface class $MyInterface<$T extends jni.JObject> { +abstract interface class $MyInterface<$T extends _$jni.JObject> { factory $MyInterface({ - required jni.JObjType<$T> T, - required void Function(jni.JString s) voidCallback, - required jni.JString Function(jni.JString s) stringCallback, + required _$jni.JObjType<$T> T, + required void Function(_$jni.JString s) voidCallback, + required _$jni.JString Function(_$jni.JString s) stringCallback, required $T Function($T t) varCallback, required int Function(int a, bool b, int c, double d) manyPrimitives, }) = _$MyInterface; - jni.JObjType<$T> get T; + _$jni.JObjType<$T> get T; - void voidCallback(jni.JString s); - jni.JString stringCallback(jni.JString s); + void voidCallback(_$jni.JString s); + _$jni.JString stringCallback(_$jni.JString s); $T varCallback($T t); int manyPrimitives(int a, bool b, int c, double d); } -class _$MyInterface<$T extends jni.JObject> implements $MyInterface<$T> { +class _$MyInterface<$T extends _$jni.JObject> implements $MyInterface<$T> { _$MyInterface({ required this.T, - required void Function(jni.JString s) voidCallback, - required jni.JString Function(jni.JString s) stringCallback, + required void Function(_$jni.JString s) voidCallback, + required _$jni.JString Function(_$jni.JString s) stringCallback, required $T Function($T t) varCallback, required int Function(int a, bool b, int c, double d) manyPrimitives, }) : _voidCallback = voidCallback, @@ -4611,19 +4912,19 @@ class _$MyInterface<$T extends jni.JObject> implements $MyInterface<$T> { _varCallback = varCallback, _manyPrimitives = manyPrimitives; - @override - final jni.JObjType<$T> T; + @_$core.override + final _$jni.JObjType<$T> T; - final void Function(jni.JString s) _voidCallback; - final jni.JString Function(jni.JString s) _stringCallback; + final void Function(_$jni.JString s) _voidCallback; + final _$jni.JString Function(_$jni.JString s) _stringCallback; final $T Function($T t) _varCallback; final int Function(int a, bool b, int c, double d) _manyPrimitives; - void voidCallback(jni.JString s) { + void voidCallback(_$jni.JString s) { return _voidCallback(s); } - jni.JString stringCallback(jni.JString s) { + _$jni.JString stringCallback(_$jni.JString s) { return _stringCallback(s); } @@ -4636,74 +4937,83 @@ class _$MyInterface<$T extends jni.JObject> implements $MyInterface<$T> { } } -final class $MyInterfaceType<$T extends jni.JObject> - extends jni.JObjType> { - final jni.JObjType<$T> T; +final class $MyInterface$Type<$T extends _$jni.JObject> + extends _$jni.JObjType> { + @_$jni.internal + final _$jni.JObjType<$T> T; - const $MyInterfaceType( + @_$jni.internal + const $MyInterface$Type( this.T, ); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/interfaces/MyInterface;'; - @override - MyInterface<$T> fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + MyInterface<$T> fromReference(_$jni.JReference reference) => MyInterface.fromReference(T, reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => Object.hash($MyInterfaceType, T); + @_$core.override + int get hashCode => Object.hash($MyInterface$Type, T); - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($MyInterfaceType<$T>) && - other is $MyInterfaceType<$T> && + return other.runtimeType == ($MyInterface$Type<$T>) && + other is $MyInterface$Type<$T> && T == other.T; } } /// from: `com.github.dart_lang.jnigen.interfaces.MyInterfaceConsumer` -class MyInterfaceConsumer extends jni.JObject { - @override - late final jni.JObjType $type = type; +class MyInterfaceConsumer extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal MyInterfaceConsumer.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'com/github/dart_lang/jnigen/interfaces/MyInterfaceConsumer'); /// The type which includes information such as the signature of this class. - static const type = $MyInterfaceConsumerType(); + static const type = $MyInterfaceConsumer$Type(); static final _id_new$ = _class.constructorId( r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory MyInterfaceConsumer() { return MyInterfaceConsumer.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } @@ -4712,51 +5022,51 @@ class MyInterfaceConsumer extends jni.JObject { r'(Lcom/github/dart_lang/jnigen/interfaces/MyInterface;Ljava/lang/String;IZCDLjava/lang/Object;)V', ); - static final _consumeOnAnotherThread = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _consumeOnAnotherThread = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer, - $Int32, - $Int32, - $Int32, - ffi.Double, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Int32, + _$jni.Int32, + _$jni.Int32, + _$jni.Double, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.Pointer, - ffi.Pointer, + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, int, int, int, double, - ffi.Pointer)>(); + _$jni.Pointer<_$jni.Void>)>(); /// from: `static public void consumeOnAnotherThread(com.github.dart_lang.jnigen.interfaces.MyInterface myInterface, java.lang.String s, int a, boolean b, char c, double d, T t)` - static void consumeOnAnotherThread<$T extends jni.JObject>( + static void consumeOnAnotherThread<$T extends _$jni.JObject>( MyInterface<$T> myInterface, - jni.JString s, + _$jni.JString s, int a, bool b, int c, double d, $T t, { - jni.JObjType<$T>? T, + _$jni.JObjType<$T>? T, }) { - T ??= jni.lowestCommonSuperType([ + T ??= _$jni.lowestCommonSuperType([ t.$type, - (myInterface.$type as $MyInterfaceType).T, - ]) as jni.JObjType<$T>; + (myInterface.$type as $MyInterface$Type).T, + ]) as _$jni.JObjType<$T>; _consumeOnAnotherThread( _class.reference.pointer, - _id_consumeOnAnotherThread as jni.JMethodIDPtr, + _id_consumeOnAnotherThread as _$jni.JMethodIDPtr, myInterface.reference.pointer, s.reference.pointer, a, @@ -4772,51 +5082,51 @@ class MyInterfaceConsumer extends jni.JObject { r'(Lcom/github/dart_lang/jnigen/interfaces/MyInterface;Ljava/lang/String;IZCDLjava/lang/Object;)V', ); - static final _consumeOnSameThread = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _consumeOnSameThread = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer, - $Int32, - $Int32, - $Int32, - ffi.Double, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Int32, + _$jni.Int32, + _$jni.Int32, + _$jni.Double, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.Pointer, - ffi.Pointer, + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, int, int, int, double, - ffi.Pointer)>(); + _$jni.Pointer<_$jni.Void>)>(); /// from: `static public void consumeOnSameThread(com.github.dart_lang.jnigen.interfaces.MyInterface myInterface, java.lang.String s, int a, boolean b, char c, double d, T t)` - static void consumeOnSameThread<$T extends jni.JObject>( + static void consumeOnSameThread<$T extends _$jni.JObject>( MyInterface<$T> myInterface, - jni.JString s, + _$jni.JString s, int a, bool b, int c, double d, $T t, { - jni.JObjType<$T>? T, + _$jni.JObjType<$T>? T, }) { - T ??= jni.lowestCommonSuperType([ + T ??= _$jni.lowestCommonSuperType([ t.$type, - (myInterface.$type as $MyInterfaceType).T, - ]) as jni.JObjType<$T>; + (myInterface.$type as $MyInterface$Type).T, + ]) as _$jni.JObjType<$T>; _consumeOnSameThread( _class.reference.pointer, - _id_consumeOnSameThread as jni.JMethodIDPtr, + _id_consumeOnSameThread as _$jni.JMethodIDPtr, myInterface.reference.pointer, s.reference.pointer, a, @@ -4828,79 +5138,88 @@ class MyInterfaceConsumer extends jni.JObject { } } -final class $MyInterfaceConsumerType extends jni.JObjType { - const $MyInterfaceConsumerType(); +final class $MyInterfaceConsumer$Type + extends _$jni.JObjType { + @_$jni.internal + const $MyInterfaceConsumer$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/interfaces/MyInterfaceConsumer;'; - @override - MyInterfaceConsumer fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + MyInterfaceConsumer fromReference(_$jni.JReference reference) => MyInterfaceConsumer.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($MyInterfaceConsumerType).hashCode; + @_$core.override + int get hashCode => ($MyInterfaceConsumer$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($MyInterfaceConsumerType) && - other is $MyInterfaceConsumerType; + return other.runtimeType == ($MyInterfaceConsumer$Type) && + other is $MyInterfaceConsumer$Type; } } /// from: `com.github.dart_lang.jnigen.interfaces.MyRunnable` -class MyRunnable extends jni.JObject { - @override - late final jni.JObjType $type = type; +class MyRunnable extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal MyRunnable.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = - jni.JClass.forName(r'com/github/dart_lang/jnigen/interfaces/MyRunnable'); + static final _class = _$jni.JClass.forName( + r'com/github/dart_lang/jnigen/interfaces/MyRunnable'); /// The type which includes information such as the signature of this class. - static const type = $MyRunnableType(); + static const type = $MyRunnable$Type(); static final _id_run = _class.instanceMethodId( r'run', r'()V', ); - static final _run = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _run = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract void run()` void run() { - _run(reference.pointer, _id_run as jni.JMethodIDPtr).check(); + _run(reference.pointer, _id_run as _$jni.JMethodIDPtr).check(); } /// Maps a specific port to the implemented interface. - static final Map _$impls = {}; - static jni.JObjectPtr _$invoke( + static final _$core.Map _$impls = {}; + static _$jni.JObjectPtr _$invoke( int port, - jni.JObjectPtr descriptor, - jni.JObjectPtr args, + _$jni.JObjectPtr descriptor, + _$jni.JObjectPtr args, ) { return _$invokeMethod( port, - $MethodInvocation.fromAddresses( + _$jni.MethodInvocation.fromAddresses( 0, descriptor.address, args.address, @@ -4908,43 +5227,43 @@ class MyRunnable extends jni.JObject { ); } - static final ffi.Pointer< - ffi.NativeFunction< - jni.JObjectPtr Function( - ffi.Int64, jni.JObjectPtr, jni.JObjectPtr)>> _$invokePointer = - ffi.Pointer.fromFunction(_$invoke); + static final _$jni.Pointer< + _$jni.NativeFunction< + _$jni.JObjectPtr Function( + _$jni.Int64, _$jni.JObjectPtr, _$jni.JObjectPtr)>> + _$invokePointer = _$jni.Pointer.fromFunction(_$invoke); - static ffi.Pointer _$invokeMethod( + static _$jni.Pointer<_$jni.Void> _$invokeMethod( int $p, - $MethodInvocation $i, + _$jni.MethodInvocation $i, ) { try { final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); final $a = $i.args; if ($d == r'run()V') { _$impls[$p]!.run(); - return jni.nullptr; + return _$jni.nullptr; } } catch (e) { - return ProtectedJniExtensions.newDartException(e); + return _$jni.ProtectedJniExtensions.newDartException(e); } - return jni.nullptr; + return _$jni.nullptr; } static void implementIn( - jni.JImplementer implementer, + _$jni.JImplementer implementer, $MyRunnable $impl, ) { - late final RawReceivePort $p; - $p = RawReceivePort(($m) { + late final _$jni.RawReceivePort $p; + $p = _$jni.RawReceivePort(($m) { if ($m == null) { _$impls.remove($p.sendPort.nativePort); $p.close(); return; } - final $i = $MethodInvocation.fromMessage($m as List); + final $i = _$jni.MethodInvocation.fromMessage($m); final $r = _$invokeMethod($p.sendPort.nativePort, $i); - ProtectedJniExtensions.returnResult($i.result, $r); + _$jni.ProtectedJniExtensions.returnResult($i.result, $r); }); implementer.add( r'com.github.dart_lang.jnigen.interfaces.MyRunnable', @@ -4958,13 +5277,13 @@ class MyRunnable extends jni.JObject { factory MyRunnable.implement( $MyRunnable $impl, ) { - final $i = jni.JImplementer(); + final $i = _$jni.JImplementer(); implementIn($i, $impl); return MyRunnable.fromReference( $i.implementReference(), ); } - static Map get $impls => _$impls; + static _$core.Map get $impls => _$impls; } abstract interface class $MyRunnable { @@ -4987,46 +5306,54 @@ class _$MyRunnable implements $MyRunnable { } } -final class $MyRunnableType extends jni.JObjType { - const $MyRunnableType(); +final class $MyRunnable$Type extends _$jni.JObjType { + @_$jni.internal + const $MyRunnable$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/interfaces/MyRunnable;'; - @override - MyRunnable fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + MyRunnable fromReference(_$jni.JReference reference) => MyRunnable.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($MyRunnableType).hashCode; + @_$core.override + int get hashCode => ($MyRunnable$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($MyRunnableType) && other is $MyRunnableType; + return other.runtimeType == ($MyRunnable$Type) && other is $MyRunnable$Type; } } /// from: `com.github.dart_lang.jnigen.interfaces.MyRunnableRunner` -class MyRunnableRunner extends jni.JObject { - @override - late final jni.JObjType $type = type; +class MyRunnableRunner extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal MyRunnableRunner.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'com/github/dart_lang/jnigen/interfaces/MyRunnableRunner'); /// The type which includes information such as the signature of this class. - static const type = $MyRunnableRunnerType(); + static const type = $MyRunnableRunner$Type(); static final _id_error = _class.instanceFieldId( r'error', r'Ljava/lang/Throwable;', @@ -5034,27 +5361,27 @@ class MyRunnableRunner extends jni.JObject { /// from: `public java.lang.Throwable error` /// The returned object must be released after use, by calling the [release] method. - jni.JObject get error => _id_error.get(this, const jni.JObjectType()); + _$jni.JObject get error => _id_error.get(this, const _$jni.JObjectType()); /// from: `public java.lang.Throwable error` /// The returned object must be released after use, by calling the [release] method. - set error(jni.JObject value) => - _id_error.set(this, const jni.JObjectType(), value); + set error(_$jni.JObject value) => + _id_error.set(this, const _$jni.JObjectType(), value); static final _id_new$ = _class.constructorId( r'(Lcom/github/dart_lang/jnigen/interfaces/MyRunnable;)V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_NewObject') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void (com.github.dart_lang.jnigen.interfaces.MyRunnable runnable)` /// The returned object must be released after use, by calling the [release] method. @@ -5062,7 +5389,7 @@ class MyRunnableRunner extends jni.JObject { MyRunnable runnable, ) { return MyRunnableRunner.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni.JMethodIDPtr, runnable.reference.pointer) + _id_new$ as _$jni.JMethodIDPtr, runnable.reference.pointer) .reference); } @@ -5071,21 +5398,22 @@ class MyRunnableRunner extends jni.JObject { r'()V', ); - static final _runOnSameThread = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _runOnSameThread = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void runOnSameThread()` void runOnSameThread() { - _runOnSameThread(reference.pointer, _id_runOnSameThread as jni.JMethodIDPtr) + _runOnSameThread( + reference.pointer, _id_runOnSameThread as _$jni.JMethodIDPtr) .check(); } @@ -5094,172 +5422,188 @@ class MyRunnableRunner extends jni.JObject { r'()V', ); - static final _runOnAnotherThread = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _runOnAnotherThread = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallVoidMethod') .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void runOnAnotherThread()` void runOnAnotherThread() { _runOnAnotherThread( - reference.pointer, _id_runOnAnotherThread as jni.JMethodIDPtr) + reference.pointer, _id_runOnAnotherThread as _$jni.JMethodIDPtr) .check(); } } -final class $MyRunnableRunnerType extends jni.JObjType { - const $MyRunnableRunnerType(); +final class $MyRunnableRunner$Type extends _$jni.JObjType { + @_$jni.internal + const $MyRunnableRunner$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/interfaces/MyRunnableRunner;'; - @override - MyRunnableRunner fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + MyRunnableRunner fromReference(_$jni.JReference reference) => MyRunnableRunner.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($MyRunnableRunnerType).hashCode; + @_$core.override + int get hashCode => ($MyRunnableRunner$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($MyRunnableRunnerType) && - other is $MyRunnableRunnerType; + return other.runtimeType == ($MyRunnableRunner$Type) && + other is $MyRunnableRunner$Type; } } /// from: `com.github.dart_lang.jnigen.interfaces.StringConversionException` -class StringConversionException extends jni.JObject { - @override - late final jni.JObjType $type = type; +class StringConversionException extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal StringConversionException.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'com/github/dart_lang/jnigen/interfaces/StringConversionException'); /// The type which includes information such as the signature of this class. - static const type = $StringConversionExceptionType(); + static const type = $StringConversionException$Type(); static final _id_new$ = _class.constructorId( r'(Ljava/lang/String;)V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_NewObject') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public void (java.lang.String message)` /// The returned object must be released after use, by calling the [release] method. factory StringConversionException( - jni.JString message, + _$jni.JString message, ) { return StringConversionException.fromReference(_new$( _class.reference.pointer, - _id_new$ as jni.JMethodIDPtr, + _id_new$ as _$jni.JMethodIDPtr, message.reference.pointer) .reference); } } -final class $StringConversionExceptionType - extends jni.JObjType { - const $StringConversionExceptionType(); +final class $StringConversionException$Type + extends _$jni.JObjType { + @_$jni.internal + const $StringConversionException$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/interfaces/StringConversionException;'; - @override - StringConversionException fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + StringConversionException fromReference(_$jni.JReference reference) => StringConversionException.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($StringConversionExceptionType).hashCode; + @_$core.override + int get hashCode => ($StringConversionException$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($StringConversionExceptionType) && - other is $StringConversionExceptionType; + return other.runtimeType == ($StringConversionException$Type) && + other is $StringConversionException$Type; } } /// from: `com.github.dart_lang.jnigen.interfaces.StringConverter` -class StringConverter extends jni.JObject { - @override - late final jni.JObjType $type = type; +class StringConverter extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal StringConverter.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'com/github/dart_lang/jnigen/interfaces/StringConverter'); /// The type which includes information such as the signature of this class. - static const type = $StringConverterType(); + static const type = $StringConverter$Type(); static final _id_parseToInt = _class.instanceMethodId( r'parseToInt', r'(Ljava/lang/String;)I', ); - static final _parseToInt = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _parseToInt = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallIntMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `public abstract int parseToInt(java.lang.String s)` int parseToInt( - jni.JString s, + _$jni.JString s, ) { - return _parseToInt(reference.pointer, _id_parseToInt as jni.JMethodIDPtr, + return _parseToInt(reference.pointer, _id_parseToInt as _$jni.JMethodIDPtr, s.reference.pointer) .integer; } /// Maps a specific port to the implemented interface. - static final Map _$impls = {}; - static jni.JObjectPtr _$invoke( + static final _$core.Map _$impls = {}; + static _$jni.JObjectPtr _$invoke( int port, - jni.JObjectPtr descriptor, - jni.JObjectPtr args, + _$jni.JObjectPtr descriptor, + _$jni.JObjectPtr args, ) { return _$invokeMethod( port, - $MethodInvocation.fromAddresses( + _$jni.MethodInvocation.fromAddresses( 0, descriptor.address, args.address, @@ -5267,45 +5611,45 @@ class StringConverter extends jni.JObject { ); } - static final ffi.Pointer< - ffi.NativeFunction< - jni.JObjectPtr Function( - ffi.Int64, jni.JObjectPtr, jni.JObjectPtr)>> _$invokePointer = - ffi.Pointer.fromFunction(_$invoke); + static final _$jni.Pointer< + _$jni.NativeFunction< + _$jni.JObjectPtr Function( + _$jni.Int64, _$jni.JObjectPtr, _$jni.JObjectPtr)>> + _$invokePointer = _$jni.Pointer.fromFunction(_$invoke); - static ffi.Pointer _$invokeMethod( + static _$jni.Pointer<_$jni.Void> _$invokeMethod( int $p, - $MethodInvocation $i, + _$jni.MethodInvocation $i, ) { try { final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); final $a = $i.args; if ($d == r'parseToInt(Ljava/lang/String;)I') { final $r = _$impls[$p]!.parseToInt( - $a[0].castTo(const jni.JStringType(), releaseOriginal: true), + $a[0].as(const _$jni.JStringType(), releaseOriginal: true), ); - return jni.JInteger($r).reference.toPointer(); + return _$jni.JInteger($r).reference.toPointer(); } } catch (e) { - return ProtectedJniExtensions.newDartException(e); + return _$jni.ProtectedJniExtensions.newDartException(e); } - return jni.nullptr; + return _$jni.nullptr; } static void implementIn( - jni.JImplementer implementer, + _$jni.JImplementer implementer, $StringConverter $impl, ) { - late final RawReceivePort $p; - $p = RawReceivePort(($m) { + late final _$jni.RawReceivePort $p; + $p = _$jni.RawReceivePort(($m) { if ($m == null) { _$impls.remove($p.sendPort.nativePort); $p.close(); return; } - final $i = $MethodInvocation.fromMessage($m as List); + final $i = _$jni.MethodInvocation.fromMessage($m); final $r = _$invokeMethod($p.sendPort.nativePort, $i); - ProtectedJniExtensions.returnResult($i.result, $r); + _$jni.ProtectedJniExtensions.returnResult($i.result, $r); }); implementer.add( r'com.github.dart_lang.jnigen.interfaces.StringConverter', @@ -5319,7 +5663,7 @@ class StringConverter extends jni.JObject { factory StringConverter.implement( $StringConverter $impl, ) { - final $i = jni.JImplementer(); + final $i = _$jni.JImplementer(); implementIn($i, $impl); return StringConverter.fromReference( $i.implementReference(), @@ -5329,86 +5673,94 @@ class StringConverter extends jni.JObject { abstract interface class $StringConverter { factory $StringConverter({ - required int Function(jni.JString s) parseToInt, + required int Function(_$jni.JString s) parseToInt, }) = _$StringConverter; - int parseToInt(jni.JString s); + int parseToInt(_$jni.JString s); } class _$StringConverter implements $StringConverter { _$StringConverter({ - required int Function(jni.JString s) parseToInt, + required int Function(_$jni.JString s) parseToInt, }) : _parseToInt = parseToInt; - final int Function(jni.JString s) _parseToInt; + final int Function(_$jni.JString s) _parseToInt; - int parseToInt(jni.JString s) { + int parseToInt(_$jni.JString s) { return _parseToInt(s); } } -final class $StringConverterType extends jni.JObjType { - const $StringConverterType(); +final class $StringConverter$Type extends _$jni.JObjType { + @_$jni.internal + const $StringConverter$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/interfaces/StringConverter;'; - @override - StringConverter fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + StringConverter fromReference(_$jni.JReference reference) => StringConverter.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($StringConverterType).hashCode; + @_$core.override + int get hashCode => ($StringConverter$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($StringConverterType) && - other is $StringConverterType; + return other.runtimeType == ($StringConverter$Type) && + other is $StringConverter$Type; } } /// from: `com.github.dart_lang.jnigen.interfaces.StringConverterConsumer` -class StringConverterConsumer extends jni.JObject { - @override - late final jni.JObjType $type = type; +class StringConverterConsumer extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal StringConverterConsumer.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'com/github/dart_lang/jnigen/interfaces/StringConverterConsumer'); /// The type which includes information such as the signature of this class. - static const type = $StringConverterConsumerType(); + static const type = $StringConverterConsumer$Type(); static final _id_new$ = _class.constructorId( r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory StringConverterConsumer() { return StringConverterConsumer.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } @@ -5417,32 +5769,35 @@ class StringConverterConsumer extends jni.JObject { r'(Lcom/github/dart_lang/jnigen/interfaces/StringConverter;Ljava/lang/String;)Ljava/lang/Integer;', ); - static final _consumeOnSameThread = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _consumeOnSameThread = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `static public java.lang.Integer consumeOnSameThread(com.github.dart_lang.jnigen.interfaces.StringConverter stringConverter, java.lang.String s)` /// The returned object must be released after use, by calling the [release] method. - static jni.JInteger consumeOnSameThread( + static _$jni.JInteger consumeOnSameThread( StringConverter stringConverter, - jni.JString s, + _$jni.JString s, ) { return _consumeOnSameThread( _class.reference.pointer, - _id_consumeOnSameThread as jni.JMethodIDPtr, + _id_consumeOnSameThread as _$jni.JMethodIDPtr, stringConverter.reference.pointer, s.reference.pointer) - .object(const jni.JIntegerType()); + .object(const _$jni.JIntegerType()); } static final _id_consumeOnAnotherThread = _class.staticMethodId( @@ -5450,83 +5805,95 @@ class StringConverterConsumer extends jni.JObject { r'(Lcom/github/dart_lang/jnigen/interfaces/StringConverter;Ljava/lang/String;)Ljava/util/concurrent/Future;', ); - static final _consumeOnAnotherThread = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< + static final _consumeOnAnotherThread = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< ( - ffi.Pointer, - ffi.Pointer + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); /// from: `static public java.util.concurrent.Future consumeOnAnotherThread(com.github.dart_lang.jnigen.interfaces.StringConverter stringConverter, java.lang.String s)` /// The returned object must be released after use, by calling the [release] method. - static jni.JObject consumeOnAnotherThread( + static _$jni.JObject consumeOnAnotherThread( StringConverter stringConverter, - jni.JString s, + _$jni.JString s, ) { return _consumeOnAnotherThread( _class.reference.pointer, - _id_consumeOnAnotherThread as jni.JMethodIDPtr, + _id_consumeOnAnotherThread as _$jni.JMethodIDPtr, stringConverter.reference.pointer, s.reference.pointer) - .object(const jni.JObjectType()); + .object(const _$jni.JObjectType()); } } -final class $StringConverterConsumerType - extends jni.JObjType { - const $StringConverterConsumerType(); +final class $StringConverterConsumer$Type + extends _$jni.JObjType { + @_$jni.internal + const $StringConverterConsumer$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/interfaces/StringConverterConsumer;'; - @override - StringConverterConsumer fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + StringConverterConsumer fromReference(_$jni.JReference reference) => StringConverterConsumer.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($StringConverterConsumerType).hashCode; + @_$core.override + int get hashCode => ($StringConverterConsumer$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($StringConverterConsumerType) && - other is $StringConverterConsumerType; + return other.runtimeType == ($StringConverterConsumer$Type) && + other is $StringConverterConsumer$Type; } } /// from: `com.github.dart_lang.jnigen.inheritance.BaseClass` -class BaseClass<$T extends jni.JObject> extends jni.JObject { - @override - late final jni.JObjType> $type = type(T); +class BaseClass<$T extends _$jni.JObject> extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType> $type; - final jni.JObjType<$T> T; + @_$jni.internal + final _$jni.JObjType<$T> T; + @_$jni.internal BaseClass.fromReference( this.T, - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type(T), + super.fromReference(reference); - static final _class = - jni.JClass.forName(r'com/github/dart_lang/jnigen/inheritance/BaseClass'); + static final _class = _$jni.JClass.forName( + r'com/github/dart_lang/jnigen/inheritance/BaseClass'); /// The type which includes information such as the signature of this class. - static $BaseClassType<$T> type<$T extends jni.JObject>( - jni.JObjType<$T> T, + static $BaseClass$Type<$T> type<$T extends _$jni.JObject>( + _$jni.JObjType<$T> T, ) { - return $BaseClassType( + return $BaseClass$Type( T, ); } @@ -5535,83 +5902,93 @@ class BaseClass<$T extends jni.JObject> extends jni.JObject { r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory BaseClass({ - required jni.JObjType<$T> T, + required _$jni.JObjType<$T> T, }) { return BaseClass.fromReference( T, - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } } -final class $BaseClassType<$T extends jni.JObject> - extends jni.JObjType> { - final jni.JObjType<$T> T; +final class $BaseClass$Type<$T extends _$jni.JObject> + extends _$jni.JObjType> { + @_$jni.internal + final _$jni.JObjType<$T> T; - const $BaseClassType( + @_$jni.internal + const $BaseClass$Type( this.T, ); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/inheritance/BaseClass;'; - @override - BaseClass<$T> fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + BaseClass<$T> fromReference(_$jni.JReference reference) => BaseClass.fromReference(T, reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => Object.hash($BaseClassType, T); + @_$core.override + int get hashCode => Object.hash($BaseClass$Type, T); - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($BaseClassType<$T>) && - other is $BaseClassType<$T> && + return other.runtimeType == ($BaseClass$Type<$T>) && + other is $BaseClass$Type<$T> && T == other.T; } } /// from: `com.github.dart_lang.jnigen.inheritance.GenericDerivedClass` -class GenericDerivedClass<$T extends jni.JObject> extends BaseClass<$T> { - @override - late final jni.JObjType> $type = type(T); +class GenericDerivedClass<$T extends _$jni.JObject> extends BaseClass<$T> { + @_$jni.internal + @_$core.override + final _$jni.JObjType> $type; - final jni.JObjType<$T> T; + @_$jni.internal + final _$jni.JObjType<$T> T; + @_$jni.internal GenericDerivedClass.fromReference( this.T, - jni.JReference reference, - ) : super.fromReference(T, reference); + _$jni.JReference reference, + ) : $type = type(T), + super.fromReference(T, reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'com/github/dart_lang/jnigen/inheritance/GenericDerivedClass'); /// The type which includes information such as the signature of this class. - static $GenericDerivedClassType<$T> type<$T extends jni.JObject>( - jni.JObjType<$T> T, + static $GenericDerivedClass$Type<$T> type<$T extends _$jni.JObject>( + _$jni.JObjType<$T> T, ) { - return $GenericDerivedClassType( + return $GenericDerivedClass$Type( T, ); } @@ -5620,166 +5997,183 @@ class GenericDerivedClass<$T extends jni.JObject> extends BaseClass<$T> { r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory GenericDerivedClass({ - required jni.JObjType<$T> T, + required _$jni.JObjType<$T> T, }) { return GenericDerivedClass.fromReference( T, - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } } -final class $GenericDerivedClassType<$T extends jni.JObject> - extends jni.JObjType> { - final jni.JObjType<$T> T; +final class $GenericDerivedClass$Type<$T extends _$jni.JObject> + extends _$jni.JObjType> { + @_$jni.internal + final _$jni.JObjType<$T> T; - const $GenericDerivedClassType( + @_$jni.internal + const $GenericDerivedClass$Type( this.T, ); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/inheritance/GenericDerivedClass;'; - @override - GenericDerivedClass<$T> fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + GenericDerivedClass<$T> fromReference(_$jni.JReference reference) => GenericDerivedClass.fromReference(T, reference); - @override - jni.JObjType get superType => $BaseClassType(T); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => $BaseClass$Type(T); - @override + @_$jni.internal + @_$core.override final superCount = 2; - @override - int get hashCode => Object.hash($GenericDerivedClassType, T); + @_$core.override + int get hashCode => Object.hash($GenericDerivedClass$Type, T); - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($GenericDerivedClassType<$T>) && - other is $GenericDerivedClassType<$T> && + return other.runtimeType == ($GenericDerivedClass$Type<$T>) && + other is $GenericDerivedClass$Type<$T> && T == other.T; } } /// from: `com.github.dart_lang.jnigen.inheritance.SpecificDerivedClass` -class SpecificDerivedClass extends BaseClass { - @override - late final jni.JObjType $type = type; +class SpecificDerivedClass extends BaseClass<_$jni.JString> { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal SpecificDerivedClass.fromReference( - jni.JReference reference, - ) : super.fromReference(const jni.JStringType(), reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(const _$jni.JStringType(), reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'com/github/dart_lang/jnigen/inheritance/SpecificDerivedClass'); /// The type which includes information such as the signature of this class. - static const type = $SpecificDerivedClassType(); + static const type = $SpecificDerivedClass$Type(); static final _id_new$ = _class.constructorId( r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory SpecificDerivedClass() { return SpecificDerivedClass.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } } -final class $SpecificDerivedClassType - extends jni.JObjType { - const $SpecificDerivedClassType(); +final class $SpecificDerivedClass$Type + extends _$jni.JObjType { + @_$jni.internal + const $SpecificDerivedClass$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/inheritance/SpecificDerivedClass;'; - @override - SpecificDerivedClass fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + SpecificDerivedClass fromReference(_$jni.JReference reference) => SpecificDerivedClass.fromReference(reference); - @override - jni.JObjType get superType => const $BaseClassType(jni.JStringType()); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const $BaseClass$Type(_$jni.JStringType()); - @override + @_$jni.internal + @_$core.override final superCount = 2; - @override - int get hashCode => ($SpecificDerivedClassType).hashCode; + @_$core.override + int get hashCode => ($SpecificDerivedClass$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($SpecificDerivedClassType) && - other is $SpecificDerivedClassType; + return other.runtimeType == ($SpecificDerivedClass$Type) && + other is $SpecificDerivedClass$Type; } } /// from: `com.github.dart_lang.jnigen.annotations.JsonSerializable$Case` -class JsonSerializable_Case extends jni.JObject { - @override - late final jni.JObjType $type = type; +class JsonSerializable_Case extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal JsonSerializable_Case.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'com/github/dart_lang/jnigen/annotations/JsonSerializable$Case'); /// The type which includes information such as the signature of this class. - static const type = $JsonSerializable_CaseType(); + static const type = $JsonSerializable_Case$Type(); static final _id_values = _class.staticMethodId( r'values', r'()[Lcom/github/dart_lang/jnigen/annotations/JsonSerializable$Case;', ); - static final _values = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _values = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `static public com.github.dart_lang.jnigen.annotations.JsonSerializable.Case[] values()` /// The returned object must be released after use, by calling the [release] method. - static jni.JArray values() { - return _values(_class.reference.pointer, _id_values as jni.JMethodIDPtr) - .object(const jni.JArrayType($JsonSerializable_CaseType())); + static _$jni.JArray values() { + return _values(_class.reference.pointer, _id_values as _$jni.JMethodIDPtr) + .object(const _$jni.JArrayType($JsonSerializable_Case$Type())); } static final _id_valueOf = _class.staticMethodId( @@ -5787,104 +6181,112 @@ class JsonSerializable_Case extends jni.JObject { r'(Ljava/lang/String;)Lcom/github/dart_lang/jnigen/annotations/JsonSerializable$Case;', ); - static final _valueOf = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( + static final _valueOf = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( 'globalEnv_CallStaticObjectMethod') .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); /// from: `static public com.github.dart_lang.jnigen.annotations.JsonSerializable.Case valueOf(java.lang.String name)` /// The returned object must be released after use, by calling the [release] method. static JsonSerializable_Case valueOf( - jni.JString name, + _$jni.JString name, ) { - return _valueOf(_class.reference.pointer, _id_valueOf as jni.JMethodIDPtr, + return _valueOf(_class.reference.pointer, _id_valueOf as _$jni.JMethodIDPtr, name.reference.pointer) - .object(const $JsonSerializable_CaseType()); + .object(const $JsonSerializable_Case$Type()); } } -final class $JsonSerializable_CaseType - extends jni.JObjType { - const $JsonSerializable_CaseType(); +final class $JsonSerializable_Case$Type + extends _$jni.JObjType { + @_$jni.internal + const $JsonSerializable_Case$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/annotations/JsonSerializable$Case;'; - @override - JsonSerializable_Case fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + JsonSerializable_Case fromReference(_$jni.JReference reference) => JsonSerializable_Case.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($JsonSerializable_CaseType).hashCode; + @_$core.override + int get hashCode => ($JsonSerializable_Case$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($JsonSerializable_CaseType) && - other is $JsonSerializable_CaseType; + return other.runtimeType == ($JsonSerializable_Case$Type) && + other is $JsonSerializable_Case$Type; } } /// from: `com.github.dart_lang.jnigen.annotations.JsonSerializable` -class JsonSerializable extends jni.JObject { - @override - late final jni.JObjType $type = type; +class JsonSerializable extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal JsonSerializable.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'com/github/dart_lang/jnigen/annotations/JsonSerializable'); /// The type which includes information such as the signature of this class. - static const type = $JsonSerializableType(); + static const type = $JsonSerializable$Type(); static final _id_value = _class.instanceMethodId( r'value', r'()Lcom/github/dart_lang/jnigen/annotations/JsonSerializable$Case;', ); - static final _value = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _value = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public abstract com.github.dart_lang.jnigen.annotations.JsonSerializable$Case value()` /// The returned object must be released after use, by calling the [release] method. JsonSerializable_Case value() { - return _value(reference.pointer, _id_value as jni.JMethodIDPtr) - .object(const $JsonSerializable_CaseType()); + return _value(reference.pointer, _id_value as _$jni.JMethodIDPtr) + .object(const $JsonSerializable_Case$Type()); } /// Maps a specific port to the implemented interface. - static final Map _$impls = {}; - static jni.JObjectPtr _$invoke( + static final _$core.Map _$impls = {}; + static _$jni.JObjectPtr _$invoke( int port, - jni.JObjectPtr descriptor, - jni.JObjectPtr args, + _$jni.JObjectPtr descriptor, + _$jni.JObjectPtr args, ) { return _$invokeMethod( port, - $MethodInvocation.fromAddresses( + _$jni.MethodInvocation.fromAddresses( 0, descriptor.address, args.address, @@ -5892,15 +6294,15 @@ class JsonSerializable extends jni.JObject { ); } - static final ffi.Pointer< - ffi.NativeFunction< - jni.JObjectPtr Function( - ffi.Int64, jni.JObjectPtr, jni.JObjectPtr)>> _$invokePointer = - ffi.Pointer.fromFunction(_$invoke); + static final _$jni.Pointer< + _$jni.NativeFunction< + _$jni.JObjectPtr Function( + _$jni.Int64, _$jni.JObjectPtr, _$jni.JObjectPtr)>> + _$invokePointer = _$jni.Pointer.fromFunction(_$invoke); - static ffi.Pointer _$invokeMethod( + static _$jni.Pointer<_$jni.Void> _$invokeMethod( int $p, - $MethodInvocation $i, + _$jni.MethodInvocation $i, ) { try { final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); @@ -5908,31 +6310,31 @@ class JsonSerializable extends jni.JObject { if ($d == r'value()Lcom/github/dart_lang/jnigen/annotations/JsonSerializable$Case;') { final $r = _$impls[$p]!.value(); - return ($r as jni.JObject) - .castTo(const jni.JObjectType()) + return ($r as _$jni.JObject) + .as(const _$jni.JObjectType()) .reference .toPointer(); } } catch (e) { - return ProtectedJniExtensions.newDartException(e); + return _$jni.ProtectedJniExtensions.newDartException(e); } - return jni.nullptr; + return _$jni.nullptr; } static void implementIn( - jni.JImplementer implementer, + _$jni.JImplementer implementer, $JsonSerializable $impl, ) { - late final RawReceivePort $p; - $p = RawReceivePort(($m) { + late final _$jni.RawReceivePort $p; + $p = _$jni.RawReceivePort(($m) { if ($m == null) { _$impls.remove($p.sendPort.nativePort); $p.close(); return; } - final $i = $MethodInvocation.fromMessage($m as List); + final $i = _$jni.MethodInvocation.fromMessage($m); final $r = _$invokeMethod($p.sendPort.nativePort, $i); - ProtectedJniExtensions.returnResult($i.result, $r); + _$jni.ProtectedJniExtensions.returnResult($i.result, $r); }); implementer.add( r'com.github.dart_lang.jnigen.annotations.JsonSerializable', @@ -5946,7 +6348,7 @@ class JsonSerializable extends jni.JObject { factory JsonSerializable.implement( $JsonSerializable $impl, ) { - final $i = jni.JImplementer(); + final $i = _$jni.JImplementer(); implementIn($i, $impl); return JsonSerializable.fromReference( $i.implementReference(), @@ -5974,94 +6376,108 @@ class _$JsonSerializable implements $JsonSerializable { } } -final class $JsonSerializableType extends jni.JObjType { - const $JsonSerializableType(); +final class $JsonSerializable$Type extends _$jni.JObjType { + @_$jni.internal + const $JsonSerializable$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/annotations/JsonSerializable;'; - @override - JsonSerializable fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + JsonSerializable fromReference(_$jni.JReference reference) => JsonSerializable.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($JsonSerializableType).hashCode; + @_$core.override + int get hashCode => ($JsonSerializable$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($JsonSerializableType) && - other is $JsonSerializableType; + return other.runtimeType == ($JsonSerializable$Type) && + other is $JsonSerializable$Type; } } /// from: `com.github.dart_lang.jnigen.annotations.MyDataClass` -class MyDataClass extends jni.JObject { - @override - late final jni.JObjType $type = type; +class MyDataClass extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + @_$jni.internal MyDataClass.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); - static final _class = jni.JClass.forName( + static final _class = _$jni.JClass.forName( r'com/github/dart_lang/jnigen/annotations/MyDataClass'); /// The type which includes information such as the signature of this class. - static const type = $MyDataClassType(); + static const type = $MyDataClass$Type(); static final _id_new$ = _class.constructorId( r'()V', ); - static final _new$ = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>>('globalEnv_NewObject') .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, )>(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory MyDataClass() { return MyDataClass.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni.JMethodIDPtr) + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) .reference); } } -final class $MyDataClassType extends jni.JObjType { - const $MyDataClassType(); +final class $MyDataClass$Type extends _$jni.JObjType { + @_$jni.internal + const $MyDataClass$Type(); - @override + @_$jni.internal + @_$core.override String get signature => r'Lcom/github/dart_lang/jnigen/annotations/MyDataClass;'; - @override - MyDataClass fromReference(jni.JReference reference) => + @_$jni.internal + @_$core.override + MyDataClass fromReference(_$jni.JReference reference) => MyDataClass.fromReference(reference); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($MyDataClassType).hashCode; + @_$core.override + int get hashCode => ($MyDataClass$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($MyDataClassType) && other is $MyDataClassType; + return other.runtimeType == ($MyDataClass$Type) && + other is $MyDataClass$Type; } } diff --git a/pkgs/jnigen/test/simple_package_test/generate.dart b/pkgs/jnigen/test/simple_package_test/generate.dart index 587c2bec0..b91478059 100644 --- a/pkgs/jnigen/test/simple_package_test/generate.dart +++ b/pkgs/jnigen/test/simple_package_test/generate.dart @@ -79,10 +79,10 @@ Config getConfig() { logLevel: Level.INFO, customClassBody: { 'com.github.dart_lang.jnigen.interfaces.MyInterface': r''' - static Map get $impls => _$impls; + static _$core.Map get $impls => _$impls; ''', 'com.github.dart_lang.jnigen.interfaces.MyRunnable': r''' - static Map get $impls => _$impls; + static _$core.Map get $impls => _$impls; ''' }, outputConfig: OutputConfig( diff --git a/pkgs/jnigen/test/simple_package_test/runtime_test_registrant.dart b/pkgs/jnigen/test/simple_package_test/runtime_test_registrant.dart index 6e6d36b5d..642ba29a3 100644 --- a/pkgs/jnigen/test/simple_package_test/runtime_test_registrant.dart +++ b/pkgs/jnigen/test/simple_package_test/runtime_test_registrant.dart @@ -6,6 +6,7 @@ import 'dart:async'; import 'dart:io'; import 'dart:isolate'; +import 'package:jni/_internal.dart'; import 'package:jni/jni.dart'; import 'package:test/test.dart'; @@ -270,7 +271,7 @@ void registerTests(String groupName, TestRunnerCallback test) { GrandParent('Hello'.toJString()..releasedBy(arena)) ..releasedBy(arena); expect(grandParent, isA>()); - expect(grandParent.$type, isA<$GrandParentType>()); + expect(grandParent.$type, isA<$GrandParent$Type>()); expect( grandParent.value.toDartString(releaseOriginal: true), 'Hello'); }); @@ -312,21 +313,19 @@ void registerTests(String groupName, TestRunnerCallback test) { map.put('Hello'.toJString()..releasedBy(arena), helloExample); map.put('World'.toJString()..releasedBy(arena), worldExample); expect( - (map.get$('Hello'.toJString()..releasedBy(arena)) - ..releasedBy(arena)) + (map.get('Hello'.toJString()..releasedBy(arena))..releasedBy(arena)) .getNumber(), 1, ); expect( - (map.get$('World'.toJString()..releasedBy(arena)) - ..releasedBy(arena)) + (map.get('World'.toJString()..releasedBy(arena))..releasedBy(arena)) .getNumber(), 2, ); expect( ((map.entryStack()..releasedBy(arena)).pop()..releasedBy(arena)) .key - .castTo(JString.type, releaseOriginal: true) + .as(JString.type, releaseOriginal: true) .toDartString(releaseOriginal: true), anyOf('Hello', 'World'), ); @@ -347,7 +346,7 @@ void registerTests(String groupName, TestRunnerCallback test) { final example = Example()..releasedBy(arena); map.put('Hello'.toJString()..releasedBy(arena), example); expect( - (map.get$('Hello'.toJString()..releasedBy(arena)) + (map.get('Hello'.toJString()..releasedBy(arena)) ..releasedBy(arena)) .getNumber(), 0, @@ -360,7 +359,7 @@ void registerTests(String groupName, TestRunnerCallback test) { final example = Example()..releasedBy(arena); map.put(example, 'Hello'.toJString()..releasedBy(arena)); expect( - map.get$(example).toDartString(releaseOriginal: true), + map.get(example).toDartString(releaseOriginal: true), 'Hello', ); }); @@ -372,7 +371,7 @@ void registerTests(String groupName, TestRunnerCallback test) { 'world'.toJString()..releasedBy(arena)); expect( map - .get$('hello'.toJString()..releasedBy(arena)) + .get('hello'.toJString()..releasedBy(arena)) .toDartString(releaseOriginal: true), 'world', ); @@ -414,7 +413,7 @@ void registerTests(String groupName, TestRunnerCallback test) { final strParent = grandParent.stringParent()..releasedBy(arena); expect( strParent.parentValue - .castTo(JString.type, releaseOriginal: true) + .as(JString.type, releaseOriginal: true) .toDartString(releaseOriginal: true), '!', ); @@ -428,7 +427,7 @@ void registerTests(String groupName, TestRunnerCallback test) { ..releasedBy(arena); expect( exampleParent.parentValue - .castTo(JString.type, releaseOriginal: true) + .as(JString.type, releaseOriginal: true) .toDartString(releaseOriginal: true), '!', ); @@ -466,7 +465,7 @@ void registerTests(String groupName, TestRunnerCallback test) { 'Hello'.toJString()..releasedBy(arena), )..releasedBy(arena); expect(stack, isA>()); - expect(stack.$type, isA<$MyStackType>()); + expect(stack.$type, isA<$MyStack$Type>()); expect( stack.pop().toDartString(releaseOriginal: true), 'Hello', @@ -480,7 +479,7 @@ void registerTests(String groupName, TestRunnerCallback test) { 'World'.toJString()..releasedBy(arena), )..releasedBy(arena); expect(stack, isA>()); - expect(stack.$type, isA<$MyStackType>()); + expect(stack.$type, isA<$MyStack$Type>()); expect( stack.pop().toDartString(releaseOriginal: true), 'World', @@ -500,18 +499,18 @@ void registerTests(String groupName, TestRunnerCallback test) { array, )..releasedBy(arena); expect(stack, isA>()); - expect(stack.$type, isA<$MyStackType>()); + expect(stack.$type, isA<$MyStack$Type>()); expect( stack .pop() - .castTo(JArray.type(JString.type), releaseOriginal: true)[0] + .as(JArray.type(JString.type), releaseOriginal: true)[0] .toDartString(releaseOriginal: true), 'World', ); expect( stack .pop() - .castTo(JString.type, releaseOriginal: true) + .as(JString.type, releaseOriginal: true) .toDartString(releaseOriginal: true), 'Hello', ); @@ -523,7 +522,7 @@ void registerTests(String groupName, TestRunnerCallback test) { ..releasedBy(arena); final stack = MyStack.fromArray(array)..releasedBy(arena); expect(stack, isA>()); - expect(stack.$type, isA<$MyStackType>()); + expect(stack.$type, isA<$MyStack$Type>()); expect( stack.pop().toDartString(releaseOriginal: true), 'Hello', @@ -543,7 +542,7 @@ void registerTests(String groupName, TestRunnerCallback test) { MyStack.fromArrayOfArrayOfGrandParents(twoDimentionalArray) ..releasedBy(arena); expect(stack, isA>()); - expect(stack.$type, isA<$MyStackType>()); + expect(stack.$type, isA<$MyStack$Type>()); expect( stack.pop().toDartString(releaseOriginal: true), 'Hello', @@ -662,7 +661,7 @@ void registerTests(String groupName, TestRunnerCallback test) { final runnable = implementer.implement(MyRunnable.type); runnable.run(); expect(runnableRan, isTrue); - final myInterface = runnable.castTo( + final myInterface = runnable.as( MyInterface.type(JString.type), releaseOriginal: true, ); @@ -730,9 +729,11 @@ void registerTests(String groupName, TestRunnerCallback test) { } expect( Jni.env.IsInstanceOf( + // ignore: invalid_use_of_internal_member runner.error.reference.pointer, JClass.forName( 'java/lang/reflect/UndeclaredThrowableException') + // ignore: invalid_use_of_internal_member .reference .pointer, ), @@ -744,9 +745,11 @@ void registerTests(String groupName, TestRunnerCallback test) { .call(runner.error, JObject.type, []); expect( Jni.env.IsInstanceOf( + // ignore: invalid_use_of_internal_member cause.reference.pointer, JClass.forName( 'com/github/dart_lang/jni/PortProxyBuilder\$DartException') + // ignore: invalid_use_of_internal_member .reference .pointer, ), @@ -784,7 +787,10 @@ void registerTests(String groupName, TestRunnerCallback test) { // Gets the result of a Java Future. // TODO(#1213): remove this once we support Java futures. Future<$T> toDartFuture<$T extends JObject>( - JObject future, JObjType<$T> T) async { + JObject future, + // ignore: invalid_use_of_internal_member + JObjType<$T> T, + ) async { final receivePort = ReceivePort(); await Isolate.spawn((sendPort) { final futureClass = JClass.forName('java/util/concurrent/Future');