| // AUTO GENERATED BY JNIGEN 0.16.1. DO NOT EDIT! |
| |
| // ignore_for_file: annotate_overrides |
| // ignore_for_file: argument_type_not_assignable |
| // ignore_for_file: camel_case_extensions |
| // ignore_for_file: camel_case_types |
| // ignore_for_file: constant_identifier_names |
| // ignore_for_file: comment_references |
| // ignore_for_file: doc_directive_unknown |
| // ignore_for_file: file_names |
| // ignore_for_file: inference_failure_on_untyped_parameter |
| // ignore_for_file: invalid_internal_annotation |
| // 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 |
| // ignore_for_file: overridden_fields |
| // ignore_for_file: prefer_double_quotes |
| // ignore_for_file: unintended_html_in_doc_comment |
| // ignore_for_file: unnecessary_cast |
| // ignore_for_file: unnecessary_non_null_assertion |
| // ignore_for_file: unnecessary_parenthesis |
| // ignore_for_file: unused_element |
| // ignore_for_file: unused_field |
| // ignore_for_file: unused_import |
| // ignore_for_file: unused_local_variable |
| // ignore_for_file: unused_shown_name |
| // ignore_for_file: use_super_parameters |
| |
| import 'dart:core' as core$_; |
| import 'dart:core' show Object, String; |
| |
| import 'package:jni/_internal.dart' as jni$_; |
| import 'package:jni/jni.dart' as jni$_; |
| |
| const _$jniVersionCheck = jni$_.JniVersionCheck(1, 0); |
| |
| /// from: `com.example.BaseInterface` |
| extension type BaseInterface._(jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/BaseInterface'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<BaseInterface> type = $BaseInterface$Type$(); |
| |
| /// from: `static public final int BASE_FIELD` |
| static const BASE_FIELD = 0; |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $BaseInterface> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'baseMethod()V') { |
| _$impls[$p]!.baseMethod(); |
| return jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $BaseInterface $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.BaseInterface', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.baseMethod$async) r'baseMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory BaseInterface.implement( |
| $BaseInterface $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<BaseInterface>(); |
| } |
| } |
| |
| extension BaseInterface$$Methods on BaseInterface { |
| static final _id_baseMethod = BaseInterface._class.instanceMethodId( |
| r'baseMethod', |
| r'()V', |
| ); |
| |
| static final _baseMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public abstract void baseMethod()` |
| void baseMethod() { |
| final _$$selfRef = reference; |
| _baseMethod(_$$selfRef.pointer, _id_baseMethod.pointer).check(); |
| } |
| } |
| |
| abstract base mixin class $BaseInterface { |
| factory $BaseInterface({ |
| required void Function() baseMethod, |
| core$_.bool baseMethod$async, |
| }) = _$BaseInterface; |
| |
| void baseMethod(); |
| core$_.bool get baseMethod$async => false; |
| } |
| |
| final class _$BaseInterface with $BaseInterface { |
| _$BaseInterface({ |
| required void Function() baseMethod, |
| this.baseMethod$async = false, |
| }) : _baseMethod = baseMethod; |
| |
| final void Function() _baseMethod; |
| final core$_.bool baseMethod$async; |
| |
| void baseMethod() { |
| return _baseMethod(); |
| } |
| } |
| |
| final class $BaseInterface$Type$ extends jni$_.JType<BaseInterface> { |
| @jni$_.internal |
| const $BaseInterface$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/BaseInterface;'; |
| } |
| |
| /// from: `com.example.CustomEnum` |
| extension type CustomEnum._(jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/CustomEnum'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<CustomEnum> type = $CustomEnum$Type$(); |
| static final _id_V1 = _class.staticFieldId( |
| r'V1', |
| r'Lcom/example/CustomEnum;', |
| ); |
| |
| /// from: `static public final com.example.CustomEnum V1` |
| /// The returned object must be released after use, by calling the [release] method. |
| static CustomEnum get V1 => _id_V1.get(_class, CustomEnum.type) as CustomEnum; |
| |
| static final _id_V2 = _class.staticFieldId( |
| r'V2', |
| r'Lcom/example/CustomEnum;', |
| ); |
| |
| /// from: `static public final com.example.CustomEnum V2` |
| /// The returned object must be released after use, by calling the [release] method. |
| static CustomEnum get V2 => _id_V2.get(_class, CustomEnum.type) as CustomEnum; |
| |
| static final _id_values = _class.staticMethodId( |
| r'values', |
| r'()[Lcom/example/CustomEnum;', |
| ); |
| |
| static final _values = 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 com.example.CustomEnum[] values()` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JArray<CustomEnum?>? values() { |
| final _$$classRef = _class.reference; |
| return _values(_$$classRef.pointer, _id_values.pointer) |
| .object<jni$_.JArray<CustomEnum?>?>(); |
| } |
| |
| static final _id_valueOf = _class.staticMethodId( |
| r'valueOf', |
| r'(Ljava/lang/String;)Lcom/example/CustomEnum;', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `static public com.example.CustomEnum valueOf(java.lang.String name)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static CustomEnum? valueOf( |
| jni$_.JString? name, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$name = name?.reference ?? jni$_.jNullReference; |
| return _valueOf(_$$classRef.pointer, _id_valueOf.pointer, _$name.pointer) |
| .object<CustomEnum?>(); |
| } |
| } |
| |
| final class $CustomEnum$Type$ extends jni$_.JType<CustomEnum> { |
| @jni$_.internal |
| const $CustomEnum$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/CustomEnum;'; |
| } |
| |
| /// from: `com.example.CustomInterface` |
| extension type CustomInterface<$T extends jni$_.JObject?>._( |
| jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/CustomInterface'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<CustomInterface> type = $CustomInterface$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $CustomInterface> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'getValue()Ljava/lang/Object;') { |
| final $r = _$impls[$p]!.getValue(); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn<$T extends jni$_.JObject?>( |
| jni$_.JImplementer implementer, |
| $CustomInterface<$T> $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.CustomInterface', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory CustomInterface.implement( |
| $CustomInterface<$T> $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<CustomInterface<$T>>(); |
| } |
| } |
| |
| extension CustomInterface$$Methods<$T extends jni$_.JObject?> |
| on CustomInterface<$T> { |
| static final _id_getValue = CustomInterface._class.instanceMethodId( |
| r'getValue', |
| r'()Ljava/lang/Object;', |
| ); |
| |
| static final _getValue = 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 abstract T getValue()` |
| /// The returned object must be released after use, by calling the [release] method. |
| $T? getValue() { |
| final _$$selfRef = reference; |
| return _getValue(_$$selfRef.pointer, _id_getValue.pointer).object<$T?>(); |
| } |
| } |
| |
| abstract base mixin class $CustomInterface<$T extends jni$_.JObject?> { |
| factory $CustomInterface({ |
| required $T? Function() getValue, |
| }) = _$CustomInterface<$T>; |
| |
| $T? getValue(); |
| } |
| |
| final class _$CustomInterface<$T extends jni$_.JObject?> |
| with $CustomInterface<$T> { |
| _$CustomInterface({ |
| required $T? Function() getValue, |
| }) : _getValue = getValue; |
| |
| final $T? Function() _getValue; |
| |
| $T? getValue() { |
| return _getValue(); |
| } |
| } |
| |
| final class $CustomInterface$Type$ extends jni$_.JType<CustomInterface> { |
| @jni$_.internal |
| const $CustomInterface$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/CustomInterface;'; |
| } |
| |
| /// from: `com.example.CustomObject` |
| extension type CustomObject<$T extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/CustomObject'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<CustomObject> type = $CustomObject$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'(Ljava/lang/Object;)V', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void <init>(T value)` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory CustomObject( |
| $T? value, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$value = value?.reference ?? jni$_.jNullReference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer, _$value.pointer) |
| .object<CustomObject<$T>>(); |
| } |
| } |
| |
| extension CustomObject$$Methods<$T extends jni$_.JObject?> on CustomObject<$T> { |
| static final _id_value = CustomObject._class.instanceFieldId( |
| r'value', |
| r'Ljava/lang/Object;', |
| ); |
| |
| /// from: `public T value` |
| /// The returned object must be released after use, by calling the [release] method. |
| $T? get value => _id_value.getNullable(this, jni$_.JObject.type) as $T?; |
| |
| /// from: `public T value` |
| /// The returned object must be released after use, by calling the [release] method. |
| set value($T? value) => _id_value.set(this, jni$_.JObject.type, value); |
| } |
| |
| final class $CustomObject$Type$ extends jni$_.JType<CustomObject> { |
| @jni$_.internal |
| const $CustomObject$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/CustomObject;'; |
| } |
| |
| /// from: `com.example.DagA` |
| extension type DagA._(jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/DagA'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<DagA> type = $DagA$Type$(); |
| |
| /// from: `static public final int A_FIELD` |
| static const A_FIELD = 3; |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $DagA> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'aMethod()V') { |
| _$impls[$p]!.aMethod(); |
| return jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $DagA $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.DagA', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.aMethod$async) r'aMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory DagA.implement( |
| $DagA $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<DagA>(); |
| } |
| } |
| |
| extension DagA$$Methods on DagA { |
| static final _id_aMethod = DagA._class.instanceMethodId( |
| r'aMethod', |
| r'()V', |
| ); |
| |
| static final _aMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public abstract void aMethod()` |
| void aMethod() { |
| final _$$selfRef = reference; |
| _aMethod(_$$selfRef.pointer, _id_aMethod.pointer).check(); |
| } |
| } |
| |
| abstract base mixin class $DagA { |
| factory $DagA({ |
| required void Function() aMethod, |
| core$_.bool aMethod$async, |
| }) = _$DagA; |
| |
| void aMethod(); |
| core$_.bool get aMethod$async => false; |
| } |
| |
| final class _$DagA with $DagA { |
| _$DagA({ |
| required void Function() aMethod, |
| this.aMethod$async = false, |
| }) : _aMethod = aMethod; |
| |
| final void Function() _aMethod; |
| final core$_.bool aMethod$async; |
| |
| void aMethod() { |
| return _aMethod(); |
| } |
| } |
| |
| final class $DagA$Type$ extends jni$_.JType<DagA> { |
| @jni$_.internal |
| const $DagA$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/DagA;'; |
| } |
| |
| /// from: `com.example.DagB` |
| extension type DagB._(jni$_.JObject _$this) implements jni$_.JObject, DagA { |
| static final _class = jni$_.JClass.forName(r'com/example/DagB'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<DagB> type = $DagB$Type$(); |
| |
| /// from: `static public final int B_FIELD` |
| static const B_FIELD = 4; |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $DagB> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'bMethod()V') { |
| _$impls[$p]!.bMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'aMethod()V') { |
| _$impls[$p]!.aMethod(); |
| return jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $DagB $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.DagB', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.bMethod$async) r'bMethod()V', |
| if ($impl.aMethod$async) r'aMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory DagB.implement( |
| $DagB $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<DagB>(); |
| } |
| } |
| |
| extension DagB$$Methods on DagB { |
| static final _id_bMethod = DagB._class.instanceMethodId( |
| r'bMethod', |
| r'()V', |
| ); |
| |
| static final _bMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public abstract void bMethod()` |
| void bMethod() { |
| final _$$selfRef = reference; |
| _bMethod(_$$selfRef.pointer, _id_bMethod.pointer).check(); |
| } |
| |
| static final _id_aMethod = DagB._class.instanceMethodId( |
| r'aMethod', |
| r'()V', |
| ); |
| |
| static final _aMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public abstract void aMethod()` |
| void aMethod() { |
| final _$$selfRef = reference; |
| _aMethod(_$$selfRef.pointer, _id_aMethod.pointer).check(); |
| } |
| } |
| |
| abstract base mixin class $DagB { |
| factory $DagB({ |
| required void Function() bMethod, |
| core$_.bool bMethod$async, |
| required void Function() aMethod, |
| core$_.bool aMethod$async, |
| }) = _$DagB; |
| |
| void bMethod(); |
| core$_.bool get bMethod$async => false; |
| void aMethod(); |
| core$_.bool get aMethod$async => false; |
| } |
| |
| final class _$DagB with $DagB { |
| _$DagB({ |
| required void Function() bMethod, |
| this.bMethod$async = false, |
| required void Function() aMethod, |
| this.aMethod$async = false, |
| }) : _bMethod = bMethod, |
| _aMethod = aMethod; |
| |
| final void Function() _bMethod; |
| final core$_.bool bMethod$async; |
| final void Function() _aMethod; |
| final core$_.bool aMethod$async; |
| |
| void bMethod() { |
| return _bMethod(); |
| } |
| |
| void aMethod() { |
| return _aMethod(); |
| } |
| } |
| |
| final class $DagB$Type$ extends jni$_.JType<DagB> { |
| @jni$_.internal |
| const $DagB$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/DagB;'; |
| } |
| |
| /// from: `com.example.DagC` |
| extension type DagC._(jni$_.JObject _$this) |
| implements jni$_.JObject, DagA, DagB { |
| static final _class = jni$_.JClass.forName(r'com/example/DagC'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<DagC> type = $DagC$Type$(); |
| |
| /// from: `static public final int C_FIELD` |
| static const C_FIELD = 5; |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $DagC> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'cMethod()V') { |
| _$impls[$p]!.cMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'aMethod()V') { |
| _$impls[$p]!.aMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'bMethod()V') { |
| _$impls[$p]!.bMethod(); |
| return jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $DagC $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.DagC', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.cMethod$async) r'cMethod()V', |
| if ($impl.aMethod$async) r'aMethod()V', |
| if ($impl.bMethod$async) r'bMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory DagC.implement( |
| $DagC $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<DagC>(); |
| } |
| } |
| |
| extension DagC$$Methods on DagC { |
| static final _id_cMethod = DagC._class.instanceMethodId( |
| r'cMethod', |
| r'()V', |
| ); |
| |
| static final _cMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public abstract void cMethod()` |
| void cMethod() { |
| final _$$selfRef = reference; |
| _cMethod(_$$selfRef.pointer, _id_cMethod.pointer).check(); |
| } |
| |
| static final _id_aMethod = DagC._class.instanceMethodId( |
| r'aMethod', |
| r'()V', |
| ); |
| |
| static final _aMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public abstract void aMethod()` |
| void aMethod() { |
| final _$$selfRef = reference; |
| _aMethod(_$$selfRef.pointer, _id_aMethod.pointer).check(); |
| } |
| |
| static final _id_bMethod = DagC._class.instanceMethodId( |
| r'bMethod', |
| r'()V', |
| ); |
| |
| static final _bMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public abstract void bMethod()` |
| void bMethod() { |
| final _$$selfRef = reference; |
| _bMethod(_$$selfRef.pointer, _id_bMethod.pointer).check(); |
| } |
| } |
| |
| abstract base mixin class $DagC { |
| factory $DagC({ |
| required void Function() cMethod, |
| core$_.bool cMethod$async, |
| required void Function() aMethod, |
| core$_.bool aMethod$async, |
| required void Function() bMethod, |
| core$_.bool bMethod$async, |
| }) = _$DagC; |
| |
| void cMethod(); |
| core$_.bool get cMethod$async => false; |
| void aMethod(); |
| core$_.bool get aMethod$async => false; |
| void bMethod(); |
| core$_.bool get bMethod$async => false; |
| } |
| |
| final class _$DagC with $DagC { |
| _$DagC({ |
| required void Function() cMethod, |
| this.cMethod$async = false, |
| required void Function() aMethod, |
| this.aMethod$async = false, |
| required void Function() bMethod, |
| this.bMethod$async = false, |
| }) : _cMethod = cMethod, |
| _aMethod = aMethod, |
| _bMethod = bMethod; |
| |
| final void Function() _cMethod; |
| final core$_.bool cMethod$async; |
| final void Function() _aMethod; |
| final core$_.bool aMethod$async; |
| final void Function() _bMethod; |
| final core$_.bool bMethod$async; |
| |
| void cMethod() { |
| return _cMethod(); |
| } |
| |
| void aMethod() { |
| return _aMethod(); |
| } |
| |
| void bMethod() { |
| return _bMethod(); |
| } |
| } |
| |
| final class $DagC$Type$ extends jni$_.JType<DagC> { |
| @jni$_.internal |
| const $DagC$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/DagC;'; |
| } |
| |
| /// from: `com.example.DagD` |
| extension type DagD._(jni$_.JObject _$this) |
| implements jni$_.JObject, DagA, DagB, DagC { |
| static final _class = jni$_.JClass.forName(r'com/example/DagD'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<DagD> type = $DagD$Type$(); |
| |
| /// from: `static public final int D_FIELD` |
| static const D_FIELD = 6; |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $DagD> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'dMethod()V') { |
| _$impls[$p]!.dMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'aMethod()V') { |
| _$impls[$p]!.aMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'bMethod()V') { |
| _$impls[$p]!.bMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'cMethod()V') { |
| _$impls[$p]!.cMethod(); |
| return jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $DagD $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.DagD', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.dMethod$async) r'dMethod()V', |
| if ($impl.aMethod$async) r'aMethod()V', |
| if ($impl.bMethod$async) r'bMethod()V', |
| if ($impl.cMethod$async) r'cMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory DagD.implement( |
| $DagD $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<DagD>(); |
| } |
| } |
| |
| extension DagD$$Methods on DagD { |
| static final _id_dMethod = DagD._class.instanceMethodId( |
| r'dMethod', |
| r'()V', |
| ); |
| |
| static final _dMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public abstract void dMethod()` |
| void dMethod() { |
| final _$$selfRef = reference; |
| _dMethod(_$$selfRef.pointer, _id_dMethod.pointer).check(); |
| } |
| |
| static final _id_aMethod = DagD._class.instanceMethodId( |
| r'aMethod', |
| r'()V', |
| ); |
| |
| static final _aMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public abstract void aMethod()` |
| void aMethod() { |
| final _$$selfRef = reference; |
| _aMethod(_$$selfRef.pointer, _id_aMethod.pointer).check(); |
| } |
| |
| static final _id_bMethod = DagD._class.instanceMethodId( |
| r'bMethod', |
| r'()V', |
| ); |
| |
| static final _bMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public abstract void bMethod()` |
| void bMethod() { |
| final _$$selfRef = reference; |
| _bMethod(_$$selfRef.pointer, _id_bMethod.pointer).check(); |
| } |
| |
| static final _id_cMethod = DagD._class.instanceMethodId( |
| r'cMethod', |
| r'()V', |
| ); |
| |
| static final _cMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public abstract void cMethod()` |
| void cMethod() { |
| final _$$selfRef = reference; |
| _cMethod(_$$selfRef.pointer, _id_cMethod.pointer).check(); |
| } |
| } |
| |
| abstract base mixin class $DagD { |
| factory $DagD({ |
| required void Function() dMethod, |
| core$_.bool dMethod$async, |
| required void Function() aMethod, |
| core$_.bool aMethod$async, |
| required void Function() bMethod, |
| core$_.bool bMethod$async, |
| required void Function() cMethod, |
| core$_.bool cMethod$async, |
| }) = _$DagD; |
| |
| void dMethod(); |
| core$_.bool get dMethod$async => false; |
| void aMethod(); |
| core$_.bool get aMethod$async => false; |
| void bMethod(); |
| core$_.bool get bMethod$async => false; |
| void cMethod(); |
| core$_.bool get cMethod$async => false; |
| } |
| |
| final class _$DagD with $DagD { |
| _$DagD({ |
| required void Function() dMethod, |
| this.dMethod$async = false, |
| required void Function() aMethod, |
| this.aMethod$async = false, |
| required void Function() bMethod, |
| this.bMethod$async = false, |
| required void Function() cMethod, |
| this.cMethod$async = false, |
| }) : _dMethod = dMethod, |
| _aMethod = aMethod, |
| _bMethod = bMethod, |
| _cMethod = cMethod; |
| |
| final void Function() _dMethod; |
| final core$_.bool dMethod$async; |
| final void Function() _aMethod; |
| final core$_.bool aMethod$async; |
| final void Function() _bMethod; |
| final core$_.bool bMethod$async; |
| final void Function() _cMethod; |
| final core$_.bool cMethod$async; |
| |
| void dMethod() { |
| return _dMethod(); |
| } |
| |
| void aMethod() { |
| return _aMethod(); |
| } |
| |
| void bMethod() { |
| return _bMethod(); |
| } |
| |
| void cMethod() { |
| return _cMethod(); |
| } |
| } |
| |
| final class $DagD$Type$ extends jni$_.JType<DagD> { |
| @jni$_.internal |
| const $DagD$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/DagD;'; |
| } |
| |
| /// from: `com.example.DagE` |
| extension type DagE._(jni$_.JObject _$this) |
| implements jni$_.JObject, DagB, DagD { |
| static final _class = jni$_.JClass.forName(r'com/example/DagE'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<DagE> type = $DagE$Type$(); |
| |
| /// from: `static public final int E_FIELD` |
| static const E_FIELD = 7; |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $DagE> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'eMethod()V') { |
| _$impls[$p]!.eMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'bMethod()V') { |
| _$impls[$p]!.bMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'aMethod()V') { |
| _$impls[$p]!.aMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'dMethod()V') { |
| _$impls[$p]!.dMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'cMethod()V') { |
| _$impls[$p]!.cMethod(); |
| return jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $DagE $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.DagE', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.eMethod$async) r'eMethod()V', |
| if ($impl.bMethod$async) r'bMethod()V', |
| if ($impl.aMethod$async) r'aMethod()V', |
| if ($impl.dMethod$async) r'dMethod()V', |
| if ($impl.cMethod$async) r'cMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory DagE.implement( |
| $DagE $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<DagE>(); |
| } |
| } |
| |
| extension DagE$$Methods on DagE { |
| static final _id_eMethod = DagE._class.instanceMethodId( |
| r'eMethod', |
| r'()V', |
| ); |
| |
| static final _eMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public abstract void eMethod()` |
| void eMethod() { |
| final _$$selfRef = reference; |
| _eMethod(_$$selfRef.pointer, _id_eMethod.pointer).check(); |
| } |
| |
| static final _id_bMethod = DagE._class.instanceMethodId( |
| r'bMethod', |
| r'()V', |
| ); |
| |
| static final _bMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public abstract void bMethod()` |
| void bMethod() { |
| final _$$selfRef = reference; |
| _bMethod(_$$selfRef.pointer, _id_bMethod.pointer).check(); |
| } |
| |
| static final _id_aMethod = DagE._class.instanceMethodId( |
| r'aMethod', |
| r'()V', |
| ); |
| |
| static final _aMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public abstract void aMethod()` |
| void aMethod() { |
| final _$$selfRef = reference; |
| _aMethod(_$$selfRef.pointer, _id_aMethod.pointer).check(); |
| } |
| |
| static final _id_dMethod = DagE._class.instanceMethodId( |
| r'dMethod', |
| r'()V', |
| ); |
| |
| static final _dMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public abstract void dMethod()` |
| void dMethod() { |
| final _$$selfRef = reference; |
| _dMethod(_$$selfRef.pointer, _id_dMethod.pointer).check(); |
| } |
| |
| static final _id_cMethod = DagE._class.instanceMethodId( |
| r'cMethod', |
| r'()V', |
| ); |
| |
| static final _cMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public abstract void cMethod()` |
| void cMethod() { |
| final _$$selfRef = reference; |
| _cMethod(_$$selfRef.pointer, _id_cMethod.pointer).check(); |
| } |
| } |
| |
| abstract base mixin class $DagE { |
| factory $DagE({ |
| required void Function() eMethod, |
| core$_.bool eMethod$async, |
| required void Function() bMethod, |
| core$_.bool bMethod$async, |
| required void Function() aMethod, |
| core$_.bool aMethod$async, |
| required void Function() dMethod, |
| core$_.bool dMethod$async, |
| required void Function() cMethod, |
| core$_.bool cMethod$async, |
| }) = _$DagE; |
| |
| void eMethod(); |
| core$_.bool get eMethod$async => false; |
| void bMethod(); |
| core$_.bool get bMethod$async => false; |
| void aMethod(); |
| core$_.bool get aMethod$async => false; |
| void dMethod(); |
| core$_.bool get dMethod$async => false; |
| void cMethod(); |
| core$_.bool get cMethod$async => false; |
| } |
| |
| final class _$DagE with $DagE { |
| _$DagE({ |
| required void Function() eMethod, |
| this.eMethod$async = false, |
| required void Function() bMethod, |
| this.bMethod$async = false, |
| required void Function() aMethod, |
| this.aMethod$async = false, |
| required void Function() dMethod, |
| this.dMethod$async = false, |
| required void Function() cMethod, |
| this.cMethod$async = false, |
| }) : _eMethod = eMethod, |
| _bMethod = bMethod, |
| _aMethod = aMethod, |
| _dMethod = dMethod, |
| _cMethod = cMethod; |
| |
| final void Function() _eMethod; |
| final core$_.bool eMethod$async; |
| final void Function() _bMethod; |
| final core$_.bool bMethod$async; |
| final void Function() _aMethod; |
| final core$_.bool aMethod$async; |
| final void Function() _dMethod; |
| final core$_.bool dMethod$async; |
| final void Function() _cMethod; |
| final core$_.bool cMethod$async; |
| |
| void eMethod() { |
| return _eMethod(); |
| } |
| |
| void bMethod() { |
| return _bMethod(); |
| } |
| |
| void aMethod() { |
| return _aMethod(); |
| } |
| |
| void dMethod() { |
| return _dMethod(); |
| } |
| |
| void cMethod() { |
| return _cMethod(); |
| } |
| } |
| |
| final class $DagE$Type$ extends jni$_.JType<DagE> { |
| @jni$_.internal |
| const $DagE$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/DagE;'; |
| } |
| |
| /// from: `com.example.DiamondLeft` |
| extension type DiamondLeft._(jni$_.JObject _$this) |
| implements jni$_.JObject, BaseInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/DiamondLeft'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<DiamondLeft> type = $DiamondLeft$Type$(); |
| |
| /// from: `static public final int LEFT_FIELD` |
| static const LEFT_FIELD = 1; |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $DiamondLeft> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'leftMethod()V') { |
| _$impls[$p]!.leftMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'baseMethod()V') { |
| _$impls[$p]!.baseMethod(); |
| return jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $DiamondLeft $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.DiamondLeft', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.leftMethod$async) r'leftMethod()V', |
| if ($impl.baseMethod$async) r'baseMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory DiamondLeft.implement( |
| $DiamondLeft $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<DiamondLeft>(); |
| } |
| } |
| |
| extension DiamondLeft$$Methods on DiamondLeft { |
| static final _id_leftMethod = DiamondLeft._class.instanceMethodId( |
| r'leftMethod', |
| r'()V', |
| ); |
| |
| static final _leftMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public abstract void leftMethod()` |
| void leftMethod() { |
| final _$$selfRef = reference; |
| _leftMethod(_$$selfRef.pointer, _id_leftMethod.pointer).check(); |
| } |
| |
| static final _id_baseMethod = DiamondLeft._class.instanceMethodId( |
| r'baseMethod', |
| r'()V', |
| ); |
| |
| static final _baseMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void baseMethod()` |
| void baseMethod() { |
| final _$$selfRef = reference; |
| _baseMethod(_$$selfRef.pointer, _id_baseMethod.pointer).check(); |
| } |
| } |
| |
| abstract base mixin class $DiamondLeft { |
| factory $DiamondLeft({ |
| required void Function() leftMethod, |
| core$_.bool leftMethod$async, |
| required void Function() baseMethod, |
| core$_.bool baseMethod$async, |
| }) = _$DiamondLeft; |
| |
| void leftMethod(); |
| core$_.bool get leftMethod$async => false; |
| void baseMethod(); |
| core$_.bool get baseMethod$async => false; |
| } |
| |
| final class _$DiamondLeft with $DiamondLeft { |
| _$DiamondLeft({ |
| required void Function() leftMethod, |
| this.leftMethod$async = false, |
| required void Function() baseMethod, |
| this.baseMethod$async = false, |
| }) : _leftMethod = leftMethod, |
| _baseMethod = baseMethod; |
| |
| final void Function() _leftMethod; |
| final core$_.bool leftMethod$async; |
| final void Function() _baseMethod; |
| final core$_.bool baseMethod$async; |
| |
| void leftMethod() { |
| return _leftMethod(); |
| } |
| |
| void baseMethod() { |
| return _baseMethod(); |
| } |
| } |
| |
| final class $DiamondLeft$Type$ extends jni$_.JType<DiamondLeft> { |
| @jni$_.internal |
| const $DiamondLeft$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/DiamondLeft;'; |
| } |
| |
| /// from: `com.example.DiamondRight` |
| extension type DiamondRight._(jni$_.JObject _$this) |
| implements jni$_.JObject, BaseInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/DiamondRight'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<DiamondRight> type = $DiamondRight$Type$(); |
| |
| /// from: `static public final int RIGHT_FIELD` |
| static const RIGHT_FIELD = 2; |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $DiamondRight> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'rightMethod()V') { |
| _$impls[$p]!.rightMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'baseMethod()V') { |
| _$impls[$p]!.baseMethod(); |
| return jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $DiamondRight $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.DiamondRight', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.rightMethod$async) r'rightMethod()V', |
| if ($impl.baseMethod$async) r'baseMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory DiamondRight.implement( |
| $DiamondRight $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<DiamondRight>(); |
| } |
| } |
| |
| extension DiamondRight$$Methods on DiamondRight { |
| static final _id_rightMethod = DiamondRight._class.instanceMethodId( |
| r'rightMethod', |
| r'()V', |
| ); |
| |
| static final _rightMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public abstract void rightMethod()` |
| void rightMethod() { |
| final _$$selfRef = reference; |
| _rightMethod(_$$selfRef.pointer, _id_rightMethod.pointer).check(); |
| } |
| |
| static final _id_baseMethod = DiamondRight._class.instanceMethodId( |
| r'baseMethod', |
| r'()V', |
| ); |
| |
| static final _baseMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void baseMethod()` |
| void baseMethod() { |
| final _$$selfRef = reference; |
| _baseMethod(_$$selfRef.pointer, _id_baseMethod.pointer).check(); |
| } |
| } |
| |
| abstract base mixin class $DiamondRight { |
| factory $DiamondRight({ |
| required void Function() rightMethod, |
| core$_.bool rightMethod$async, |
| required void Function() baseMethod, |
| core$_.bool baseMethod$async, |
| }) = _$DiamondRight; |
| |
| void rightMethod(); |
| core$_.bool get rightMethod$async => false; |
| void baseMethod(); |
| core$_.bool get baseMethod$async => false; |
| } |
| |
| final class _$DiamondRight with $DiamondRight { |
| _$DiamondRight({ |
| required void Function() rightMethod, |
| this.rightMethod$async = false, |
| required void Function() baseMethod, |
| this.baseMethod$async = false, |
| }) : _rightMethod = rightMethod, |
| _baseMethod = baseMethod; |
| |
| final void Function() _rightMethod; |
| final core$_.bool rightMethod$async; |
| final void Function() _baseMethod; |
| final core$_.bool baseMethod$async; |
| |
| void rightMethod() { |
| return _rightMethod(); |
| } |
| |
| void baseMethod() { |
| return _baseMethod(); |
| } |
| } |
| |
| final class $DiamondRight$Type$ extends jni$_.JType<DiamondRight> { |
| @jni$_.internal |
| const $DiamondRight$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/DiamondRight;'; |
| } |
| |
| /// from: `com.example.GenericInterface` |
| extension type GenericInterface<$T extends jni$_.JObject?>._( |
| jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/GenericInterface'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<GenericInterface> type = $GenericInterface$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $GenericInterface> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == |
| r'genericInterfaceMethod(Ljava/lang/Object;)Ljava/lang/Object;') { |
| final $r = _$impls[$p]!.genericInterfaceMethod( |
| ($a![0] as jni$_.JObject?), |
| ); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn<$T extends jni$_.JObject?>( |
| jni$_.JImplementer implementer, |
| $GenericInterface<$T> $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.GenericInterface', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory GenericInterface.implement( |
| $GenericInterface<$T> $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<GenericInterface<$T>>(); |
| } |
| } |
| |
| extension GenericInterface$$Methods<$T extends jni$_.JObject?> |
| on GenericInterface<$T> { |
| static final _id_genericInterfaceMethod = |
| GenericInterface._class.instanceMethodId( |
| r'genericInterfaceMethod', |
| r'(Ljava/lang/Object;)Ljava/lang/Object;', |
| ); |
| |
| static final _genericInterfaceMethod = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public abstract T genericInterfaceMethod(T t)` |
| /// The returned object must be released after use, by calling the [release] method. |
| $T? genericInterfaceMethod( |
| $T? t, |
| ) { |
| final _$$selfRef = reference; |
| final _$t = t?.reference ?? jni$_.jNullReference; |
| return _genericInterfaceMethod( |
| _$$selfRef.pointer, _id_genericInterfaceMethod.pointer, _$t.pointer) |
| .object<$T?>(); |
| } |
| } |
| |
| abstract base mixin class $GenericInterface<$T extends jni$_.JObject?> { |
| factory $GenericInterface({ |
| required $T? Function($T? t) genericInterfaceMethod, |
| }) = _$GenericInterface<$T>; |
| |
| $T? genericInterfaceMethod($T? t); |
| } |
| |
| final class _$GenericInterface<$T extends jni$_.JObject?> |
| with $GenericInterface<$T> { |
| _$GenericInterface({ |
| required $T? Function($T? t) genericInterfaceMethod, |
| }) : _genericInterfaceMethod = genericInterfaceMethod; |
| |
| final $T? Function($T? t) _genericInterfaceMethod; |
| |
| $T? genericInterfaceMethod($T? t) { |
| return _genericInterfaceMethod(t); |
| } |
| } |
| |
| final class $GenericInterface$Type$ extends jni$_.JType<GenericInterface> { |
| @jni$_.internal |
| const $GenericInterface$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/GenericInterface;'; |
| } |
| |
| /// from: `com.example.GenericParent` |
| extension type GenericParent<$T extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/GenericParent'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<GenericParent> type = $GenericParent$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory GenericParent() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<GenericParent<$T>>(); |
| } |
| } |
| |
| extension GenericParent$$Methods<$T extends jni$_.JObject?> |
| on GenericParent<$T> { |
| static final _id_genericParentMethod = GenericParent._class.instanceMethodId( |
| r'genericParentMethod', |
| r'(Ljava/lang/Object;)V', |
| ); |
| |
| static final _genericParentMethod = 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 genericParentMethod(T t)` |
| void genericParentMethod( |
| $T? t, |
| ) { |
| final _$$selfRef = reference; |
| final _$t = t?.reference ?? jni$_.jNullReference; |
| _genericParentMethod( |
| _$$selfRef.pointer, _id_genericParentMethod.pointer, _$t.pointer) |
| .check(); |
| } |
| } |
| |
| final class $GenericParent$Type$ extends jni$_.JType<GenericParent> { |
| @jni$_.internal |
| const $GenericParent$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/GenericParent;'; |
| } |
| |
| /// from: `com.example.GrandParent` |
| extension type GrandParent._(jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/GrandParent'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<GrandParent> type = $GrandParent$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory GrandParent() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer).object<GrandParent>(); |
| } |
| } |
| |
| extension GrandParent$$Methods on GrandParent { |
| static final _id_grandParentMethod = GrandParent._class.instanceMethodId( |
| r'grandParentMethod', |
| r'()V', |
| ); |
| |
| static final _grandParentMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void grandParentMethod()` |
| void grandParentMethod() { |
| final _$$selfRef = reference; |
| _grandParentMethod(_$$selfRef.pointer, _id_grandParentMethod.pointer) |
| .check(); |
| } |
| } |
| |
| final class $GrandParent$Type$ extends jni$_.JType<GrandParent> { |
| @jni$_.internal |
| const $GrandParent$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/GrandParent;'; |
| } |
| |
| /// from: `com.example.NestedCustom` |
| extension type NestedCustom<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/NestedCustom'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<NestedCustom> type = $NestedCustom$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory NestedCustom() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<NestedCustom<$T, $U>>(); |
| } |
| } |
| |
| final class $NestedCustom$Type$ extends jni$_.JType<NestedCustom> { |
| @jni$_.internal |
| const $NestedCustom$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/NestedCustom;'; |
| } |
| |
| /// from: `com.example.NestedCustom$Nested` |
| extension type NestedCustom$Nested<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?, $V extends jni$_.JObject?>._( |
| jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/NestedCustom$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<NestedCustom$Nested> type = |
| $NestedCustom$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'(Lcom/example/NestedCustom;)V', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void <init>(com.example.NestedCustom<T, U> $outerClass)` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory NestedCustom$Nested( |
| NestedCustom<$T?, $U?> $outerClass, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$$outerClass = $outerClass.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer, _$$outerClass.pointer) |
| .object<NestedCustom$Nested<$T, $U, $V>>(); |
| } |
| } |
| |
| extension NestedCustom$Nested$$Methods< |
| $T extends jni$_.JObject?, |
| $U extends jni$_.JObject?, |
| $V extends jni$_.JObject?> on NestedCustom$Nested<$T, $U, $V> { |
| static final _id_t = NestedCustom$Nested._class.instanceFieldId( |
| r't', |
| r'Ljava/lang/Object;', |
| ); |
| |
| /// from: `public T t` |
| /// The returned object must be released after use, by calling the [release] method. |
| $T? get t => _id_t.getNullable(this, jni$_.JObject.type) as $T?; |
| |
| /// from: `public T t` |
| /// The returned object must be released after use, by calling the [release] method. |
| set t($T? value) => _id_t.set(this, jni$_.JObject.type, value); |
| |
| static final _id_u = NestedCustom$Nested._class.instanceFieldId( |
| r'u', |
| r'Ljava/lang/Object;', |
| ); |
| |
| /// from: `public U u` |
| /// The returned object must be released after use, by calling the [release] method. |
| $U? get u => _id_u.getNullable(this, jni$_.JObject.type) as $U?; |
| |
| /// from: `public U u` |
| /// The returned object must be released after use, by calling the [release] method. |
| set u($U? value) => _id_u.set(this, jni$_.JObject.type, value); |
| |
| static final _id_v = NestedCustom$Nested._class.instanceFieldId( |
| r'v', |
| r'Ljava/lang/Object;', |
| ); |
| |
| /// from: `public V v` |
| /// The returned object must be released after use, by calling the [release] method. |
| $V? get v => _id_v.getNullable(this, jni$_.JObject.type) as $V?; |
| |
| /// from: `public V v` |
| /// The returned object must be released after use, by calling the [release] method. |
| set v($V? value) => _id_v.set(this, jni$_.JObject.type, value); |
| } |
| |
| final class $NestedCustom$Nested$Type$ |
| extends jni$_.JType<NestedCustom$Nested> { |
| @jni$_.internal |
| const $NestedCustom$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/NestedCustom$Nested;'; |
| } |
| |
| /// from: `com.example.OtherInterface` |
| extension type OtherInterface._(jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/OtherInterface'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<OtherInterface> type = $OtherInterface$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $OtherInterface> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'otherInterfaceMethod()V') { |
| _$impls[$p]!.otherInterfaceMethod(); |
| return jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $OtherInterface $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.OtherInterface', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.otherInterfaceMethod$async) r'otherInterfaceMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory OtherInterface.implement( |
| $OtherInterface $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<OtherInterface>(); |
| } |
| } |
| |
| extension OtherInterface$$Methods on OtherInterface { |
| static final _id_otherInterfaceMethod = |
| OtherInterface._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public abstract void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| } |
| |
| abstract base mixin class $OtherInterface { |
| factory $OtherInterface({ |
| required void Function() otherInterfaceMethod, |
| core$_.bool otherInterfaceMethod$async, |
| }) = _$OtherInterface; |
| |
| void otherInterfaceMethod(); |
| core$_.bool get otherInterfaceMethod$async => false; |
| } |
| |
| final class _$OtherInterface with $OtherInterface { |
| _$OtherInterface({ |
| required void Function() otherInterfaceMethod, |
| this.otherInterfaceMethod$async = false, |
| }) : _otherInterfaceMethod = otherInterfaceMethod; |
| |
| final void Function() _otherInterfaceMethod; |
| final core$_.bool otherInterfaceMethod$async; |
| |
| void otherInterfaceMethod() { |
| return _otherInterfaceMethod(); |
| } |
| } |
| |
| final class $OtherInterface$Type$ extends jni$_.JType<OtherInterface> { |
| @jni$_.internal |
| const $OtherInterface$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/OtherInterface;'; |
| } |
| |
| /// from: `com.example.TestClass000` |
| extension type TestClass000<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass000'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass000> type = $TestClass000$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass000() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass000<$T, $U>>(); |
| } |
| } |
| |
| extension TestClass000$$Methods<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?> on TestClass000<$T, $U> { |
| static final _id_otherInterfaceMethod = TestClass000._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_setFoo = TestClass000._class.instanceMethodId( |
| r'setFoo', |
| r'([F)[F', |
| ); |
| |
| static final _setFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public float[] setFoo(float[] p1)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JFloatArray? setFoo<$S extends jni$_.JObject?>( |
| jni$_.JFloatArray? p1, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _setFoo(_$$selfRef.pointer, _id_setFoo.pointer, _$p1.pointer) |
| .object<jni$_.JFloatArray?>(); |
| } |
| } |
| |
| final class $TestClass000$Type$ extends jni$_.JType<TestClass000> { |
| @jni$_.internal |
| const $TestClass000$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass000;'; |
| } |
| |
| /// from: `com.example.TestClass000$Nested` |
| extension type TestClass000$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass000$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass000$Nested> type = |
| $TestClass000$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass000$Nested() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass000$Nested>(); |
| } |
| } |
| |
| final class $TestClass000$Nested$Type$ |
| extends jni$_.JType<TestClass000$Nested> { |
| @jni$_.internal |
| const $TestClass000$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass000$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass001` |
| extension type TestClass001<$T extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass001'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass001> type = $TestClass001$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass001> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'isFoo(Ljava/util/Set;I)Ljava/util/Set;') { |
| final $r = _$impls[$p]!.isFoo( |
| ($a![0] as jni$_.JSet<jni$_.JObject>?), |
| ($a![1] as jni$_.JInteger).toDartInt(releaseOriginal: true), |
| ); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn<$T extends jni$_.JObject>( |
| jni$_.JImplementer implementer, |
| $TestClass001<$T> $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass001', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass001.implement( |
| $TestClass001<$T> $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass001<$T>>(); |
| } |
| } |
| |
| extension TestClass001$$Methods<$T extends jni$_.JObject> on TestClass001<$T> { |
| static final _id_isFoo = TestClass001._class.instanceMethodId( |
| r'isFoo', |
| r'(Ljava/util/Set;I)Ljava/util/Set;', |
| ); |
| |
| static final _isFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `default public java.util.Set<T> isFoo(java.util.Set<T> p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JSet<$T>? isFoo( |
| jni$_.JSet<$T>? p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _isFoo(_$$selfRef.pointer, _id_isFoo.pointer, _$p1.pointer, p2) |
| .object<jni$_.JSet<$T>?>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass001<$T extends jni$_.JObject> { |
| factory $TestClass001({ |
| required jni$_.JSet<jni$_.JObject>? Function( |
| jni$_.JSet<jni$_.JObject>? p1, core$_.int p2) |
| isFoo, |
| }) = _$TestClass001<$T>; |
| |
| jni$_.JSet<jni$_.JObject>? isFoo( |
| jni$_.JSet<jni$_.JObject>? p1, core$_.int p2); |
| } |
| |
| final class _$TestClass001<$T extends jni$_.JObject> with $TestClass001<$T> { |
| _$TestClass001({ |
| required jni$_.JSet<jni$_.JObject>? Function( |
| jni$_.JSet<jni$_.JObject>? p1, core$_.int p2) |
| isFoo, |
| }) : _isFoo = isFoo; |
| |
| final jni$_.JSet<jni$_.JObject>? Function( |
| jni$_.JSet<jni$_.JObject>? p1, core$_.int p2) _isFoo; |
| |
| jni$_.JSet<jni$_.JObject>? isFoo( |
| jni$_.JSet<jni$_.JObject>? p1, core$_.int p2) { |
| return _isFoo(p1, p2); |
| } |
| } |
| |
| final class $TestClass001$Type$ extends jni$_.JType<TestClass001> { |
| @jni$_.internal |
| const $TestClass001$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass001;'; |
| } |
| |
| /// from: `com.example.TestClass001$Sub` |
| extension type TestClass001$Sub<$T extends jni$_.JObject>._( |
| jni$_.JObject _$this) implements jni$_.JObject, TestClass001<$T> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass001$Sub'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass001$Sub> type = $TestClass001$Sub$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass001$Sub() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass001$Sub<$T>>(); |
| } |
| } |
| |
| extension TestClass001$Sub$$Methods<$T extends jni$_.JObject> |
| on TestClass001$Sub<$T> { |
| static final _id_isFoo = TestClass001$Sub._class.instanceMethodId( |
| r'isFoo', |
| r'(Ljava/util/Set;I)Ljava/util/Set;', |
| ); |
| |
| static final _isFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `default public java.util.Set<T> isFoo(java.util.Set<T> p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JSet<$T>? isFoo( |
| jni$_.JSet<$T>? p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _isFoo(_$$selfRef.pointer, _id_isFoo.pointer, _$p1.pointer, p2) |
| .object<jni$_.JSet<$T>?>(); |
| } |
| } |
| |
| final class $TestClass001$Sub$Type$ extends jni$_.JType<TestClass001$Sub> { |
| @jni$_.internal |
| const $TestClass001$Sub$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass001$Sub;'; |
| } |
| |
| /// from: `com.example.TestClass001$Nested` |
| extension type TestClass001$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass001$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass001$Nested> type = |
| $TestClass001$Nested$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass001$Nested> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $TestClass001$Nested $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass001$Nested', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass001$Nested.implement( |
| $TestClass001$Nested $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass001$Nested>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass001$Nested { |
| factory $TestClass001$Nested() = _$TestClass001$Nested; |
| } |
| |
| final class _$TestClass001$Nested with $TestClass001$Nested { |
| _$TestClass001$Nested(); |
| } |
| |
| final class $TestClass001$Nested$Type$ |
| extends jni$_.JType<TestClass001$Nested> { |
| @jni$_.internal |
| const $TestClass001$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass001$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass002` |
| extension type TestClass002._(jni$_.JObject _$this) |
| implements jni$_.JObject, DiamondLeft, DiamondRight { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass002'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass002> type = $TestClass002$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass002> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'baseMethod()V') { |
| _$impls[$p]!.baseMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'leftMethod()V') { |
| _$impls[$p]!.leftMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'rightMethod()V') { |
| _$impls[$p]!.rightMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'myMethod()[Ljava/util/Map;') { |
| final $r = _$impls[$p]!.myMethod(); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $TestClass002 $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass002', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.baseMethod$async) r'baseMethod()V', |
| if ($impl.leftMethod$async) r'leftMethod()V', |
| if ($impl.rightMethod$async) r'rightMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass002.implement( |
| $TestClass002 $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass002>(); |
| } |
| } |
| |
| extension TestClass002$$Methods on TestClass002 { |
| static final _id_baseMethod = TestClass002._class.instanceMethodId( |
| r'baseMethod', |
| r'()V', |
| ); |
| |
| static final _baseMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void baseMethod()` |
| void baseMethod() { |
| final _$$selfRef = reference; |
| _baseMethod(_$$selfRef.pointer, _id_baseMethod.pointer).check(); |
| } |
| |
| static final _id_leftMethod = TestClass002._class.instanceMethodId( |
| r'leftMethod', |
| r'()V', |
| ); |
| |
| static final _leftMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void leftMethod()` |
| void leftMethod() { |
| final _$$selfRef = reference; |
| _leftMethod(_$$selfRef.pointer, _id_leftMethod.pointer).check(); |
| } |
| |
| static final _id_rightMethod = TestClass002._class.instanceMethodId( |
| r'rightMethod', |
| r'()V', |
| ); |
| |
| static final _rightMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void rightMethod()` |
| void rightMethod() { |
| final _$$selfRef = reference; |
| _rightMethod(_$$selfRef.pointer, _id_rightMethod.pointer).check(); |
| } |
| |
| static final _id_myMethod = TestClass002._class.instanceMethodId( |
| r'myMethod', |
| r'()[Ljava/util/Map;', |
| ); |
| |
| static final _myMethod = 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 abstract java.util.Map[] myMethod()` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JArray<jni$_.JMap<$S, $S>>? |
| myMethod<$S extends jni$_.JObject, $V extends jni$_.JObject>() { |
| final _$$selfRef = reference; |
| return _myMethod(_$$selfRef.pointer, _id_myMethod.pointer) |
| .object<jni$_.JArray<jni$_.JMap<$S, $S>>?>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass002 { |
| factory $TestClass002({ |
| required void Function() baseMethod, |
| core$_.bool baseMethod$async, |
| required void Function() leftMethod, |
| core$_.bool leftMethod$async, |
| required void Function() rightMethod, |
| core$_.bool rightMethod$async, |
| required jni$_.JArray<jni$_.JMap>? Function() myMethod, |
| }) = _$TestClass002; |
| |
| void baseMethod(); |
| core$_.bool get baseMethod$async => false; |
| void leftMethod(); |
| core$_.bool get leftMethod$async => false; |
| void rightMethod(); |
| core$_.bool get rightMethod$async => false; |
| jni$_.JArray<jni$_.JMap>? myMethod(); |
| } |
| |
| final class _$TestClass002 with $TestClass002 { |
| _$TestClass002({ |
| required void Function() baseMethod, |
| this.baseMethod$async = false, |
| required void Function() leftMethod, |
| this.leftMethod$async = false, |
| required void Function() rightMethod, |
| this.rightMethod$async = false, |
| required jni$_.JArray<jni$_.JMap>? Function() myMethod, |
| }) : _baseMethod = baseMethod, |
| _leftMethod = leftMethod, |
| _rightMethod = rightMethod, |
| _myMethod = myMethod; |
| |
| final void Function() _baseMethod; |
| final core$_.bool baseMethod$async; |
| final void Function() _leftMethod; |
| final core$_.bool leftMethod$async; |
| final void Function() _rightMethod; |
| final core$_.bool rightMethod$async; |
| final jni$_.JArray<jni$_.JMap>? Function() _myMethod; |
| |
| void baseMethod() { |
| return _baseMethod(); |
| } |
| |
| void leftMethod() { |
| return _leftMethod(); |
| } |
| |
| void rightMethod() { |
| return _rightMethod(); |
| } |
| |
| jni$_.JArray<jni$_.JMap>? myMethod() { |
| return _myMethod(); |
| } |
| } |
| |
| final class $TestClass002$Type$ extends jni$_.JType<TestClass002> { |
| @jni$_.internal |
| const $TestClass002$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass002;'; |
| } |
| |
| /// from: `com.example.TestClass003` |
| extension type TestClass003._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass003'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass003> type = $TestClass003$Type$(); |
| static final _id_VALUE1 = _class.staticFieldId( |
| r'VALUE1', |
| r'Lcom/example/TestClass003;', |
| ); |
| |
| /// from: `static public final com.example.TestClass003 VALUE1` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass003 get VALUE1 => |
| _id_VALUE1.get(_class, TestClass003.type) as TestClass003; |
| |
| static final _id_VALUE2 = _class.staticFieldId( |
| r'VALUE2', |
| r'Lcom/example/TestClass003;', |
| ); |
| |
| /// from: `static public final com.example.TestClass003 VALUE2` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass003 get VALUE2 => |
| _id_VALUE2.get(_class, TestClass003.type) as TestClass003; |
| |
| static final _id_values = _class.staticMethodId( |
| r'values', |
| r'()[Lcom/example/TestClass003;', |
| ); |
| |
| static final _values = 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 com.example.TestClass003[] values()` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JArray<TestClass003?>? values() { |
| final _$$classRef = _class.reference; |
| return _values(_$$classRef.pointer, _id_values.pointer) |
| .object<jni$_.JArray<TestClass003?>?>(); |
| } |
| |
| static final _id_valueOf = _class.staticMethodId( |
| r'valueOf', |
| r'(Ljava/lang/String;)Lcom/example/TestClass003;', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `static public com.example.TestClass003 valueOf(java.lang.String name)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass003? valueOf( |
| jni$_.JString? name, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$name = name?.reference ?? jni$_.jNullReference; |
| return _valueOf(_$$classRef.pointer, _id_valueOf.pointer, _$name.pointer) |
| .object<TestClass003?>(); |
| } |
| } |
| |
| extension TestClass003$$Methods on TestClass003 { |
| static final _id_otherInterfaceMethod = TestClass003._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_getFoo = TestClass003._class.instanceMethodId( |
| r'getFoo', |
| r'(Ljava/lang/Number;I)Ljava/lang/Number;', |
| ); |
| |
| static final _getFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public S getFoo(S p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| $S? getFoo<$S extends jni$_.JObject>( |
| $S? p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _getFoo(_$$selfRef.pointer, _id_getFoo.pointer, _$p1.pointer, p2) |
| .object<$S?>(); |
| } |
| } |
| |
| final class $TestClass003$Type$ extends jni$_.JType<TestClass003> { |
| @jni$_.internal |
| const $TestClass003$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass003;'; |
| } |
| |
| /// from: `com.example.TestClass003$Nested` |
| extension type TestClass003$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass003$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass003$Nested> type = |
| $TestClass003$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'(Lcom/example/TestClass003;)V', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void <init>(com.example.TestClass003 $outerClass)` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass003$Nested( |
| TestClass003 $outerClass, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$$outerClass = $outerClass.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer, _$$outerClass.pointer) |
| .object<TestClass003$Nested>(); |
| } |
| } |
| |
| final class $TestClass003$Nested$Type$ |
| extends jni$_.JType<TestClass003$Nested> { |
| @jni$_.internal |
| const $TestClass003$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass003$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass004` |
| extension type TestClass004<$T extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject, DagA, DagD, DagE { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass004'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass004> type = $TestClass004$Type$(); |
| static final _id_setFoo = _class.staticMethodId( |
| r'setFoo', |
| r'([II)[I', |
| ); |
| |
| static final _setFoo = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| jni$_ |
| .VarArgs<(jni$_.Pointer<jni$_.Void>, jni$_.Int32)>)>>( |
| 'globalEnv_CallStaticObjectMethod') |
| .asFunction< |
| jni$_.JniResult Function(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `static public int[] setFoo(int[] p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JIntArray setFoo( |
| jni$_.JIntArray p1, |
| core$_.int p2, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$p1 = p1.reference; |
| return _setFoo(_$$classRef.pointer, _id_setFoo.pointer, _$p1.pointer, p2) |
| .object<jni$_.JIntArray>(); |
| } |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass004> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'aMethod()V') { |
| _$impls[$p]!.aMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'bMethod()V') { |
| _$impls[$p]!.bMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'cMethod()V') { |
| _$impls[$p]!.cMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'dMethod()V') { |
| _$impls[$p]!.dMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'eMethod()V') { |
| _$impls[$p]!.eMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'setFoo([II)[I') { |
| final $r = _$impls[$p]!.setFoo( |
| ($a![0] as jni$_.JIntArray), |
| ($a![1] as jni$_.JInteger).toDartInt(releaseOriginal: true), |
| ); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn<$T extends jni$_.JObject?>( |
| jni$_.JImplementer implementer, |
| $TestClass004<$T> $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass004', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.aMethod$async) r'aMethod()V', |
| if ($impl.bMethod$async) r'bMethod()V', |
| if ($impl.cMethod$async) r'cMethod()V', |
| if ($impl.dMethod$async) r'dMethod()V', |
| if ($impl.eMethod$async) r'eMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass004.implement( |
| $TestClass004<$T> $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass004<$T>>(); |
| } |
| } |
| |
| extension TestClass004$$Methods<$T extends jni$_.JObject?> on TestClass004<$T> { |
| static final _id_aMethod = TestClass004._class.instanceMethodId( |
| r'aMethod', |
| r'()V', |
| ); |
| |
| static final _aMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void aMethod()` |
| void aMethod() { |
| final _$$selfRef = reference; |
| _aMethod(_$$selfRef.pointer, _id_aMethod.pointer).check(); |
| } |
| |
| static final _id_bMethod = TestClass004._class.instanceMethodId( |
| r'bMethod', |
| r'()V', |
| ); |
| |
| static final _bMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void bMethod()` |
| void bMethod() { |
| final _$$selfRef = reference; |
| _bMethod(_$$selfRef.pointer, _id_bMethod.pointer).check(); |
| } |
| |
| static final _id_cMethod = TestClass004._class.instanceMethodId( |
| r'cMethod', |
| r'()V', |
| ); |
| |
| static final _cMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void cMethod()` |
| void cMethod() { |
| final _$$selfRef = reference; |
| _cMethod(_$$selfRef.pointer, _id_cMethod.pointer).check(); |
| } |
| |
| static final _id_dMethod = TestClass004._class.instanceMethodId( |
| r'dMethod', |
| r'()V', |
| ); |
| |
| static final _dMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void dMethod()` |
| void dMethod() { |
| final _$$selfRef = reference; |
| _dMethod(_$$selfRef.pointer, _id_dMethod.pointer).check(); |
| } |
| |
| static final _id_eMethod = TestClass004._class.instanceMethodId( |
| r'eMethod', |
| r'()V', |
| ); |
| |
| static final _eMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void eMethod()` |
| void eMethod() { |
| final _$$selfRef = reference; |
| _eMethod(_$$selfRef.pointer, _id_eMethod.pointer).check(); |
| } |
| } |
| |
| abstract base mixin class $TestClass004<$T extends jni$_.JObject?> { |
| factory $TestClass004({ |
| required void Function() aMethod, |
| core$_.bool aMethod$async, |
| required void Function() bMethod, |
| core$_.bool bMethod$async, |
| required void Function() cMethod, |
| core$_.bool cMethod$async, |
| required void Function() dMethod, |
| core$_.bool dMethod$async, |
| required void Function() eMethod, |
| core$_.bool eMethod$async, |
| required jni$_.JIntArray Function(jni$_.JIntArray p1, core$_.int p2) setFoo, |
| }) = _$TestClass004<$T>; |
| |
| void aMethod(); |
| core$_.bool get aMethod$async => false; |
| void bMethod(); |
| core$_.bool get bMethod$async => false; |
| void cMethod(); |
| core$_.bool get cMethod$async => false; |
| void dMethod(); |
| core$_.bool get dMethod$async => false; |
| void eMethod(); |
| core$_.bool get eMethod$async => false; |
| jni$_.JIntArray setFoo(jni$_.JIntArray p1, core$_.int p2); |
| } |
| |
| final class _$TestClass004<$T extends jni$_.JObject?> with $TestClass004<$T> { |
| _$TestClass004({ |
| required void Function() aMethod, |
| this.aMethod$async = false, |
| required void Function() bMethod, |
| this.bMethod$async = false, |
| required void Function() cMethod, |
| this.cMethod$async = false, |
| required void Function() dMethod, |
| this.dMethod$async = false, |
| required void Function() eMethod, |
| this.eMethod$async = false, |
| required jni$_.JIntArray Function(jni$_.JIntArray p1, core$_.int p2) setFoo, |
| }) : _aMethod = aMethod, |
| _bMethod = bMethod, |
| _cMethod = cMethod, |
| _dMethod = dMethod, |
| _eMethod = eMethod, |
| _setFoo = setFoo; |
| |
| final void Function() _aMethod; |
| final core$_.bool aMethod$async; |
| final void Function() _bMethod; |
| final core$_.bool bMethod$async; |
| final void Function() _cMethod; |
| final core$_.bool cMethod$async; |
| final void Function() _dMethod; |
| final core$_.bool dMethod$async; |
| final void Function() _eMethod; |
| final core$_.bool eMethod$async; |
| final jni$_.JIntArray Function(jni$_.JIntArray p1, core$_.int p2) _setFoo; |
| |
| void aMethod() { |
| return _aMethod(); |
| } |
| |
| void bMethod() { |
| return _bMethod(); |
| } |
| |
| void cMethod() { |
| return _cMethod(); |
| } |
| |
| void dMethod() { |
| return _dMethod(); |
| } |
| |
| void eMethod() { |
| return _eMethod(); |
| } |
| |
| jni$_.JIntArray setFoo(jni$_.JIntArray p1, core$_.int p2) { |
| return _setFoo(p1, p2); |
| } |
| } |
| |
| final class $TestClass004$Type$ extends jni$_.JType<TestClass004> { |
| @jni$_.internal |
| const $TestClass004$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass004;'; |
| } |
| |
| /// from: `com.example.TestClass004$NestedEnum` |
| extension type TestClass004$NestedEnum._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass004$NestedEnum'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass004$NestedEnum> type = |
| $TestClass004$NestedEnum$Type$(); |
| static final _id_V1 = _class.staticFieldId( |
| r'V1', |
| r'Lcom/example/TestClass004$NestedEnum;', |
| ); |
| |
| /// from: `static public final com.example.TestClass004$NestedEnum V1` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass004$NestedEnum get V1 => |
| _id_V1.get(_class, TestClass004$NestedEnum.type) |
| as TestClass004$NestedEnum; |
| |
| static final _id_values = _class.staticMethodId( |
| r'values', |
| r'()[Lcom/example/TestClass004$NestedEnum;', |
| ); |
| |
| static final _values = 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 com.example.TestClass004$NestedEnum[] values()` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JArray<TestClass004$NestedEnum?>? values() { |
| final _$$classRef = _class.reference; |
| return _values(_$$classRef.pointer, _id_values.pointer) |
| .object<jni$_.JArray<TestClass004$NestedEnum?>?>(); |
| } |
| |
| static final _id_valueOf = _class.staticMethodId( |
| r'valueOf', |
| r'(Ljava/lang/String;)Lcom/example/TestClass004$NestedEnum;', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `static public com.example.TestClass004$NestedEnum valueOf(java.lang.String name)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass004$NestedEnum? valueOf( |
| jni$_.JString? name, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$name = name?.reference ?? jni$_.jNullReference; |
| return _valueOf(_$$classRef.pointer, _id_valueOf.pointer, _$name.pointer) |
| .object<TestClass004$NestedEnum?>(); |
| } |
| } |
| |
| final class $TestClass004$NestedEnum$Type$ |
| extends jni$_.JType<TestClass004$NestedEnum> { |
| @jni$_.internal |
| const $TestClass004$NestedEnum$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass004$NestedEnum;'; |
| } |
| |
| /// from: `com.example.TestClass005` |
| extension type TestClass005<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements GenericParent<jni$_.JString?> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass005'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass005> type = $TestClass005$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass005() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass005<$T, $U>>(); |
| } |
| } |
| |
| extension TestClass005$$Methods<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?> on TestClass005<$T, $U> { |
| static final _id_genericParentMethod$1 = TestClass005._class.instanceMethodId( |
| r'genericParentMethod', |
| r'(Ljava/lang/String;)V', |
| ); |
| |
| static final _genericParentMethod$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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void genericParentMethod(java.lang.String t)` |
| void genericParentMethod$1( |
| jni$_.JString? t, |
| ) { |
| final _$$selfRef = reference; |
| final _$t = t?.reference ?? jni$_.jNullReference; |
| _genericParentMethod$1( |
| _$$selfRef.pointer, _id_genericParentMethod$1.pointer, _$t.pointer) |
| .check(); |
| } |
| |
| static final _id_setFoo = TestClass005._class.instanceMethodId( |
| r'setFoo', |
| r'(Ljava/lang/String;)Ljava/lang/String;', |
| ); |
| |
| static final _setFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public final java.lang.String setFoo(java.lang.String p1)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JString setFoo<$S extends jni$_.JObject?>( |
| jni$_.JString p1, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1.reference; |
| return _setFoo(_$$selfRef.pointer, _id_setFoo.pointer, _$p1.pointer) |
| .object<jni$_.JString>(); |
| } |
| } |
| |
| final class $TestClass005$Type$ extends jni$_.JType<TestClass005> { |
| @jni$_.internal |
| const $TestClass005$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass005;'; |
| } |
| |
| /// from: `com.example.TestClass006` |
| extension type TestClass006._(jni$_.JObject _$this) implements GrandParent { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass006'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass006> type = $TestClass006$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass006() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer).object<TestClass006>(); |
| } |
| } |
| |
| extension TestClass006$$Methods on TestClass006 { |
| static final _id_grandParentMethod = TestClass006._class.instanceMethodId( |
| r'grandParentMethod', |
| r'()V', |
| ); |
| |
| static final _grandParentMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void grandParentMethod()` |
| void grandParentMethod() { |
| final _$$selfRef = reference; |
| _grandParentMethod(_$$selfRef.pointer, _id_grandParentMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_setFoo = TestClass006._class.instanceMethodId( |
| r'setFoo', |
| r'([Z)[Z', |
| ); |
| |
| static final _setFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `synchronized public boolean[] setFoo(boolean[] p1)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JBooleanArray? setFoo<$S extends jni$_.JObject?>( |
| jni$_.JBooleanArray? p1, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _setFoo(_$$selfRef.pointer, _id_setFoo.pointer, _$p1.pointer) |
| .object<jni$_.JBooleanArray?>(); |
| } |
| } |
| |
| final class $TestClass006$Type$ extends jni$_.JType<TestClass006> { |
| @jni$_.internal |
| const $TestClass006$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass006;'; |
| } |
| |
| /// from: `com.example.TestClass006$Nested` |
| extension type TestClass006$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass006$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass006$Nested> type = |
| $TestClass006$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'(Lcom/example/TestClass006;)V', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void <init>(com.example.TestClass006 $outerClass)` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass006$Nested( |
| TestClass006 $outerClass, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$$outerClass = $outerClass.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer, _$$outerClass.pointer) |
| .object<TestClass006$Nested>(); |
| } |
| } |
| |
| final class $TestClass006$Nested$Type$ |
| extends jni$_.JType<TestClass006$Nested> { |
| @jni$_.internal |
| const $TestClass006$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass006$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass007` |
| extension type TestClass007<$T extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface, BaseInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass007'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass007> type = $TestClass007$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass007() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass007<$T>>(); |
| } |
| } |
| |
| extension TestClass007$$Methods<$T extends jni$_.JObject?> on TestClass007<$T> { |
| static final _id_otherInterfaceMethod = TestClass007._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_baseMethod = TestClass007._class.instanceMethodId( |
| r'baseMethod', |
| r'()V', |
| ); |
| |
| static final _baseMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void baseMethod()` |
| void baseMethod() { |
| final _$$selfRef = reference; |
| _baseMethod(_$$selfRef.pointer, _id_baseMethod.pointer).check(); |
| } |
| |
| static final _id_getFoo = TestClass007._class.instanceMethodId( |
| r'getFoo', |
| r'(Ljava/lang/Object;I)Ljava/lang/Object;', |
| ); |
| |
| static final _getFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public native java.lang.Object getFoo(java.lang.Object p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JObject getFoo( |
| jni$_.JObject p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1.reference; |
| return _getFoo(_$$selfRef.pointer, _id_getFoo.pointer, _$p1.pointer, p2) |
| .object<jni$_.JObject>(); |
| } |
| } |
| |
| final class $TestClass007$Type$ extends jni$_.JType<TestClass007> { |
| @jni$_.internal |
| const $TestClass007$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass007;'; |
| } |
| |
| /// from: `com.example.TestClass007$Nested` |
| extension type TestClass007$Nested<$T extends jni$_.JObject?>._( |
| jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass007$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass007$Nested> type = |
| $TestClass007$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'(Lcom/example/TestClass007;)V', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void <init>(com.example.TestClass007<T> $outerClass)` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass007$Nested( |
| TestClass007<$T?> $outerClass, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$$outerClass = $outerClass.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer, _$$outerClass.pointer) |
| .object<TestClass007$Nested<$T>>(); |
| } |
| } |
| |
| final class $TestClass007$Nested$Type$ |
| extends jni$_.JType<TestClass007$Nested> { |
| @jni$_.internal |
| const $TestClass007$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass007$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass008` |
| extension type TestClass008<$T extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements GenericParent<jni$_.JObject?> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass008'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass008> type = $TestClass008$Type$(); |
| } |
| |
| extension TestClass008$$Methods<$T extends jni$_.JObject> on TestClass008<$T> { |
| static final _id_genericParentMethod = TestClass008._class.instanceMethodId( |
| r'genericParentMethod', |
| r'(Ljava/lang/Object;)V', |
| ); |
| |
| static final _genericParentMethod = 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 genericParentMethod(java.lang.Object t)` |
| void genericParentMethod( |
| jni$_.JObject? t, |
| ) { |
| final _$$selfRef = reference; |
| final _$t = t?.reference ?? jni$_.jNullReference; |
| _genericParentMethod( |
| _$$selfRef.pointer, _id_genericParentMethod.pointer, _$t.pointer) |
| .check(); |
| } |
| |
| static final _id_myMethod = TestClass008._class.instanceMethodId( |
| r'myMethod', |
| r'()V', |
| ); |
| |
| static final _myMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public abstract void myMethod()` |
| void myMethod() { |
| final _$$selfRef = reference; |
| _myMethod(_$$selfRef.pointer, _id_myMethod.pointer).check(); |
| } |
| } |
| |
| final class $TestClass008$Type$ extends jni$_.JType<TestClass008> { |
| @jni$_.internal |
| const $TestClass008$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass008;'; |
| } |
| |
| /// from: `com.example.TestClass008$Nested` |
| extension type TestClass008$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass008$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass008$Nested> type = |
| $TestClass008$Nested$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass008$Nested> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $TestClass008$Nested $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass008$Nested', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass008$Nested.implement( |
| $TestClass008$Nested $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass008$Nested>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass008$Nested { |
| factory $TestClass008$Nested() = _$TestClass008$Nested; |
| } |
| |
| final class _$TestClass008$Nested with $TestClass008$Nested { |
| _$TestClass008$Nested(); |
| } |
| |
| final class $TestClass008$Nested$Type$ |
| extends jni$_.JType<TestClass008$Nested> { |
| @jni$_.internal |
| const $TestClass008$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass008$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass009` |
| extension type TestClass009<$T extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements GenericParent<jni$_.JString> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass009'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass009> type = $TestClass009$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass009() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass009<$T>>(); |
| } |
| } |
| |
| extension TestClass009$$Methods<$T extends jni$_.JObject> on TestClass009<$T> { |
| static final _id_genericParentMethod$1 = TestClass009._class.instanceMethodId( |
| r'genericParentMethod', |
| r'(Ljava/lang/String;)V', |
| ); |
| |
| static final _genericParentMethod$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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void genericParentMethod(java.lang.String t)` |
| void genericParentMethod$1( |
| jni$_.JString? t, |
| ) { |
| final _$$selfRef = reference; |
| final _$t = t?.reference ?? jni$_.jNullReference; |
| _genericParentMethod$1( |
| _$$selfRef.pointer, _id_genericParentMethod$1.pointer, _$t.pointer) |
| .check(); |
| } |
| |
| static final _id_getFoo = TestClass009._class.instanceMethodId( |
| r'getFoo', |
| r'(CI)C', |
| ); |
| |
| static final _getFoo = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| jni$_.VarArgs<(jni$_.Int32, jni$_.Int32)>)>>( |
| 'globalEnv_CallCharMethod') |
| .asFunction< |
| jni$_.JniResult Function(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, core$_.int, core$_.int)>(); |
| |
| /// from: `public char getFoo(char p1, int p2)` |
| core$_.int getFoo<$S extends jni$_.JObject, $V extends jni$_.JObject>( |
| core$_.int p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| return _getFoo(_$$selfRef.pointer, _id_getFoo.pointer, p1, p2).char; |
| } |
| } |
| |
| final class $TestClass009$Type$ extends jni$_.JType<TestClass009> { |
| @jni$_.internal |
| const $TestClass009$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass009;'; |
| } |
| |
| /// from: `com.example.TestClass011` |
| extension type TestClass011<$T extends jni$_.JObject, |
| $U extends jni$_.JObject>._(jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass011'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass011> type = $TestClass011$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass011() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass011<$T, $U>>(); |
| } |
| } |
| |
| extension TestClass011$$Methods<$T extends jni$_.JObject, |
| $U extends jni$_.JObject> on TestClass011<$T, $U> { |
| static final _id_myField = TestClass011._class.instanceFieldId( |
| r'myField', |
| r'[S', |
| ); |
| |
| /// from: `public transient short[] myField` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JShortArray? get myField => |
| _id_myField.getNullable(this, jni$_.JShortArray.type) |
| as jni$_.JShortArray?; |
| |
| /// from: `public transient short[] myField` |
| /// The returned object must be released after use, by calling the [release] method. |
| set myField(jni$_.JShortArray? value) => |
| _id_myField.set(this, jni$_.JShortArray.type, value); |
| } |
| |
| final class $TestClass011$Type$ extends jni$_.JType<TestClass011> { |
| @jni$_.internal |
| const $TestClass011$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass011;'; |
| } |
| |
| /// from: `com.example.TestClass011$Nested` |
| extension type TestClass011$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass011$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass011$Nested> type = |
| $TestClass011$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass011$Nested() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass011$Nested>(); |
| } |
| } |
| |
| final class $TestClass011$Nested$Type$ |
| extends jni$_.JType<TestClass011$Nested> { |
| @jni$_.internal |
| const $TestClass011$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass011$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass012` |
| extension type TestClass012<$T extends jni$_.JObject, |
| $U extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface, BaseInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass012'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass012> type = $TestClass012$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass012> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'otherInterfaceMethod()V') { |
| _$impls[$p]!.otherInterfaceMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'baseMethod()V') { |
| _$impls[$p]!.baseMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'isFoo([Lcom/example/CustomEnum;I)[Lcom/example/CustomEnum;') { |
| final $r = _$impls[$p]!.isFoo( |
| ($a![0] as jni$_.JArray<CustomEnum?>?), |
| ($a![1] as jni$_.JInteger).toDartInt(releaseOriginal: true), |
| ); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn<$T extends jni$_.JObject, $U extends jni$_.JObject>( |
| jni$_.JImplementer implementer, |
| $TestClass012<$T, $U> $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass012', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.otherInterfaceMethod$async) r'otherInterfaceMethod()V', |
| if ($impl.baseMethod$async) r'baseMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass012.implement( |
| $TestClass012<$T, $U> $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass012<$T, $U>>(); |
| } |
| } |
| |
| extension TestClass012$$Methods<$T extends jni$_.JObject, |
| $U extends jni$_.JObject> on TestClass012<$T, $U> { |
| static final _id_otherInterfaceMethod = TestClass012._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_baseMethod = TestClass012._class.instanceMethodId( |
| r'baseMethod', |
| r'()V', |
| ); |
| |
| static final _baseMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void baseMethod()` |
| void baseMethod() { |
| final _$$selfRef = reference; |
| _baseMethod(_$$selfRef.pointer, _id_baseMethod.pointer).check(); |
| } |
| |
| static final _id_isFoo = TestClass012._class.instanceMethodId( |
| r'isFoo', |
| r'([Lcom/example/CustomEnum;I)[Lcom/example/CustomEnum;', |
| ); |
| |
| static final _isFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public abstract com.example.CustomEnum[] isFoo(com.example.CustomEnum[] p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JArray<CustomEnum?>? isFoo<$S extends jni$_.JObject>( |
| jni$_.JArray<CustomEnum?>? p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _isFoo(_$$selfRef.pointer, _id_isFoo.pointer, _$p1.pointer, p2) |
| .object<jni$_.JArray<CustomEnum?>?>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass012<$T extends jni$_.JObject, |
| $U extends jni$_.JObject> { |
| factory $TestClass012({ |
| required void Function() otherInterfaceMethod, |
| core$_.bool otherInterfaceMethod$async, |
| required void Function() baseMethod, |
| core$_.bool baseMethod$async, |
| required jni$_.JArray<CustomEnum?>? Function( |
| jni$_.JArray<CustomEnum?>? p1, core$_.int p2) |
| isFoo, |
| }) = _$TestClass012<$T, $U>; |
| |
| void otherInterfaceMethod(); |
| core$_.bool get otherInterfaceMethod$async => false; |
| void baseMethod(); |
| core$_.bool get baseMethod$async => false; |
| jni$_.JArray<CustomEnum?>? isFoo( |
| jni$_.JArray<CustomEnum?>? p1, core$_.int p2); |
| } |
| |
| final class _$TestClass012<$T extends jni$_.JObject, $U extends jni$_.JObject> |
| with $TestClass012<$T, $U> { |
| _$TestClass012({ |
| required void Function() otherInterfaceMethod, |
| this.otherInterfaceMethod$async = false, |
| required void Function() baseMethod, |
| this.baseMethod$async = false, |
| required jni$_.JArray<CustomEnum?>? Function( |
| jni$_.JArray<CustomEnum?>? p1, core$_.int p2) |
| isFoo, |
| }) : _otherInterfaceMethod = otherInterfaceMethod, |
| _baseMethod = baseMethod, |
| _isFoo = isFoo; |
| |
| final void Function() _otherInterfaceMethod; |
| final core$_.bool otherInterfaceMethod$async; |
| final void Function() _baseMethod; |
| final core$_.bool baseMethod$async; |
| final jni$_.JArray<CustomEnum?>? Function( |
| jni$_.JArray<CustomEnum?>? p1, core$_.int p2) _isFoo; |
| |
| void otherInterfaceMethod() { |
| return _otherInterfaceMethod(); |
| } |
| |
| void baseMethod() { |
| return _baseMethod(); |
| } |
| |
| jni$_.JArray<CustomEnum?>? isFoo( |
| jni$_.JArray<CustomEnum?>? p1, core$_.int p2) { |
| return _isFoo(p1, p2); |
| } |
| } |
| |
| final class $TestClass012$Type$ extends jni$_.JType<TestClass012> { |
| @jni$_.internal |
| const $TestClass012$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass012;'; |
| } |
| |
| /// from: `com.example.TestClass012$Nested` |
| extension type TestClass012$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass012$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass012$Nested> type = |
| $TestClass012$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass012$Nested() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass012$Nested>(); |
| } |
| } |
| |
| final class $TestClass012$Nested$Type$ |
| extends jni$_.JType<TestClass012$Nested> { |
| @jni$_.internal |
| const $TestClass012$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass012$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass013` |
| extension type TestClass013<$T extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements GrandParent { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass013'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass013> type = $TestClass013$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass013() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass013<$T>>(); |
| } |
| } |
| |
| extension TestClass013$$Methods<$T extends jni$_.JObject> on TestClass013<$T> { |
| static final _id_grandParentMethod = TestClass013._class.instanceMethodId( |
| r'grandParentMethod', |
| r'()V', |
| ); |
| |
| static final _grandParentMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void grandParentMethod()` |
| void grandParentMethod() { |
| final _$$selfRef = reference; |
| _grandParentMethod(_$$selfRef.pointer, _id_grandParentMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_setFoo = TestClass013._class.instanceMethodId( |
| r'setFoo', |
| r'([DI)[D', |
| ); |
| |
| static final _setFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public native double[] setFoo(double[] p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JDoubleArray? setFoo<$S extends jni$_.JObject>( |
| jni$_.JDoubleArray? p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _setFoo(_$$selfRef.pointer, _id_setFoo.pointer, _$p1.pointer, p2) |
| .object<jni$_.JDoubleArray?>(); |
| } |
| } |
| |
| final class $TestClass013$Type$ extends jni$_.JType<TestClass013> { |
| @jni$_.internal |
| const $TestClass013$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass013;'; |
| } |
| |
| /// from: `com.example.TestClass014` |
| extension type TestClass014<$T extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass014'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass014> type = $TestClass014$Type$(); |
| } |
| |
| extension TestClass014$$Methods<$T extends jni$_.JObject> on TestClass014<$T> { |
| static final _id_otherInterfaceMethod = TestClass014._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_getFoo = TestClass014._class.instanceMethodId( |
| r'getFoo', |
| r'([B)[B', |
| ); |
| |
| static final _getFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public abstract byte[] getFoo(byte[] p1)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JByteArray? getFoo<$S extends jni$_.JObject, $V extends jni$_.JObject>( |
| jni$_.JByteArray? p1, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _getFoo(_$$selfRef.pointer, _id_getFoo.pointer, _$p1.pointer) |
| .object<jni$_.JByteArray?>(); |
| } |
| } |
| |
| final class $TestClass014$Type$ extends jni$_.JType<TestClass014> { |
| @jni$_.internal |
| const $TestClass014$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass014;'; |
| } |
| |
| /// from: `com.example.TestClass014$NestedEnum` |
| extension type TestClass014$NestedEnum._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass014$NestedEnum'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass014$NestedEnum> type = |
| $TestClass014$NestedEnum$Type$(); |
| static final _id_V1 = _class.staticFieldId( |
| r'V1', |
| r'Lcom/example/TestClass014$NestedEnum;', |
| ); |
| |
| /// from: `static public final com.example.TestClass014$NestedEnum V1` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass014$NestedEnum get V1 => |
| _id_V1.get(_class, TestClass014$NestedEnum.type) |
| as TestClass014$NestedEnum; |
| |
| static final _id_values = _class.staticMethodId( |
| r'values', |
| r'()[Lcom/example/TestClass014$NestedEnum;', |
| ); |
| |
| static final _values = 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 com.example.TestClass014$NestedEnum[] values()` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JArray<TestClass014$NestedEnum?>? values() { |
| final _$$classRef = _class.reference; |
| return _values(_$$classRef.pointer, _id_values.pointer) |
| .object<jni$_.JArray<TestClass014$NestedEnum?>?>(); |
| } |
| |
| static final _id_valueOf = _class.staticMethodId( |
| r'valueOf', |
| r'(Ljava/lang/String;)Lcom/example/TestClass014$NestedEnum;', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `static public com.example.TestClass014$NestedEnum valueOf(java.lang.String name)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass014$NestedEnum? valueOf( |
| jni$_.JString? name, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$name = name?.reference ?? jni$_.jNullReference; |
| return _valueOf(_$$classRef.pointer, _id_valueOf.pointer, _$name.pointer) |
| .object<TestClass014$NestedEnum?>(); |
| } |
| } |
| |
| final class $TestClass014$NestedEnum$Type$ |
| extends jni$_.JType<TestClass014$NestedEnum> { |
| @jni$_.internal |
| const $TestClass014$NestedEnum$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass014$NestedEnum;'; |
| } |
| |
| /// from: `com.example.TestClass015` |
| extension type TestClass015._(jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass015'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass015> type = $TestClass015$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass015() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer).object<TestClass015>(); |
| } |
| } |
| |
| extension TestClass015$$Methods on TestClass015 { |
| static final _id_getFoo = TestClass015._class.instanceMethodId( |
| r'getFoo', |
| r'(Ljava/util/List;I)Ljava/util/List;', |
| ); |
| |
| static final _getFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public final java.util.List<java.lang.String> getFoo(java.util.List<java.lang.String> p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JList<jni$_.JString?>? getFoo( |
| jni$_.JList<jni$_.JString?>? p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _getFoo(_$$selfRef.pointer, _id_getFoo.pointer, _$p1.pointer, p2) |
| .object<jni$_.JList<jni$_.JString?>?>(); |
| } |
| } |
| |
| final class $TestClass015$Type$ extends jni$_.JType<TestClass015> { |
| @jni$_.internal |
| const $TestClass015$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass015;'; |
| } |
| |
| /// from: `com.example.TestClass015$Sub` |
| extension type TestClass015$Sub._(jni$_.JObject _$this) |
| implements TestClass015 { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass015$Sub'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass015$Sub> type = $TestClass015$Sub$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass015$Sub() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass015$Sub>(); |
| } |
| } |
| |
| final class $TestClass015$Sub$Type$ extends jni$_.JType<TestClass015$Sub> { |
| @jni$_.internal |
| const $TestClass015$Sub$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass015$Sub;'; |
| } |
| |
| /// from: `com.example.TestClass015$Nested` |
| extension type TestClass015$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass015$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass015$Nested> type = |
| $TestClass015$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'(Lcom/example/TestClass015;)V', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void <init>(com.example.TestClass015 $outerClass)` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass015$Nested( |
| TestClass015 $outerClass, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$$outerClass = $outerClass.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer, _$$outerClass.pointer) |
| .object<TestClass015$Nested>(); |
| } |
| } |
| |
| final class $TestClass015$Nested$Type$ |
| extends jni$_.JType<TestClass015$Nested> { |
| @jni$_.internal |
| const $TestClass015$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass015$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass016` |
| extension type TestClass016<$T extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass016'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass016> type = $TestClass016$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass016() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass016<$T>>(); |
| } |
| } |
| |
| extension TestClass016$$Methods<$T extends jni$_.JObject?> on TestClass016<$T> { |
| static final _id_getFoo = TestClass016._class.instanceMethodId( |
| r'getFoo', |
| r'()[Ljava/lang/Object;', |
| ); |
| |
| static final _getFoo = 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: `synchronized public T[] getFoo()` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JArray<$T?>? getFoo<$S extends jni$_.JObject?>() { |
| final _$$selfRef = reference; |
| return _getFoo(_$$selfRef.pointer, _id_getFoo.pointer) |
| .object<jni$_.JArray<$T?>?>(); |
| } |
| } |
| |
| final class $TestClass016$Type$ extends jni$_.JType<TestClass016> { |
| @jni$_.internal |
| const $TestClass016$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass016;'; |
| } |
| |
| /// from: `com.example.TestClass016$Nested` |
| extension type TestClass016$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass016$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass016$Nested> type = |
| $TestClass016$Nested$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass016$Nested> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $TestClass016$Nested $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass016$Nested', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass016$Nested.implement( |
| $TestClass016$Nested $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass016$Nested>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass016$Nested { |
| factory $TestClass016$Nested() = _$TestClass016$Nested; |
| } |
| |
| final class _$TestClass016$Nested with $TestClass016$Nested { |
| _$TestClass016$Nested(); |
| } |
| |
| final class $TestClass016$Nested$Type$ |
| extends jni$_.JType<TestClass016$Nested> { |
| @jni$_.internal |
| const $TestClass016$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass016$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass017` |
| extension type TestClass017<$T extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements jni$_.JObject, GenericInterface<jni$_.JObject?> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass017'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass017> type = $TestClass017$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass017> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == |
| r'genericInterfaceMethod(Ljava/lang/Object;)Ljava/lang/Object;') { |
| final $r = _$impls[$p]!.genericInterfaceMethod( |
| ($a![0] as jni$_.JObject?), |
| ); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| if ($d == |
| r'setFoo(Lcom/example/CustomObject;I)Lcom/example/CustomObject;') { |
| final $r = _$impls[$p]!.setFoo( |
| ($a![0] as CustomObject<jni$_.JObject>), |
| ($a![1] as jni$_.JInteger).toDartInt(releaseOriginal: true), |
| ); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn<$T extends jni$_.JObject>( |
| jni$_.JImplementer implementer, |
| $TestClass017<$T> $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass017', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass017.implement( |
| $TestClass017<$T> $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass017<$T>>(); |
| } |
| } |
| |
| extension TestClass017$$Methods<$T extends jni$_.JObject> on TestClass017<$T> { |
| static final _id_genericInterfaceMethod = |
| TestClass017._class.instanceMethodId( |
| r'genericInterfaceMethod', |
| r'(Ljava/lang/Object;)Ljava/lang/Object;', |
| ); |
| |
| static final _genericInterfaceMethod = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `default public java.lang.Object genericInterfaceMethod(java.lang.Object t)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JObject? genericInterfaceMethod( |
| jni$_.JObject? t, |
| ) { |
| final _$$selfRef = reference; |
| final _$t = t?.reference ?? jni$_.jNullReference; |
| return _genericInterfaceMethod( |
| _$$selfRef.pointer, _id_genericInterfaceMethod.pointer, _$t.pointer) |
| .object<jni$_.JObject?>(); |
| } |
| |
| static final _id_setFoo = TestClass017._class.instanceMethodId( |
| r'setFoo', |
| r'(Lcom/example/CustomObject;I)Lcom/example/CustomObject;', |
| ); |
| |
| static final _setFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public abstract com.example.CustomObject<S> setFoo(com.example.CustomObject<S> p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| CustomObject<$S> setFoo<$S extends jni$_.JObject, $V extends jni$_.JObject>( |
| CustomObject<$S> p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1.reference; |
| return _setFoo(_$$selfRef.pointer, _id_setFoo.pointer, _$p1.pointer, p2) |
| .object<CustomObject<$S>>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass017<$T extends jni$_.JObject> { |
| factory $TestClass017({ |
| required jni$_.JObject? Function(jni$_.JObject? t) genericInterfaceMethod, |
| required CustomObject<jni$_.JObject> Function( |
| CustomObject<jni$_.JObject> p1, core$_.int p2) |
| setFoo, |
| }) = _$TestClass017<$T>; |
| |
| jni$_.JObject? genericInterfaceMethod(jni$_.JObject? t); |
| CustomObject<jni$_.JObject> setFoo( |
| CustomObject<jni$_.JObject> p1, core$_.int p2); |
| } |
| |
| final class _$TestClass017<$T extends jni$_.JObject> with $TestClass017<$T> { |
| _$TestClass017({ |
| required jni$_.JObject? Function(jni$_.JObject? t) genericInterfaceMethod, |
| required CustomObject<jni$_.JObject> Function( |
| CustomObject<jni$_.JObject> p1, core$_.int p2) |
| setFoo, |
| }) : _genericInterfaceMethod = genericInterfaceMethod, |
| _setFoo = setFoo; |
| |
| final jni$_.JObject? Function(jni$_.JObject? t) _genericInterfaceMethod; |
| final CustomObject<jni$_.JObject> Function( |
| CustomObject<jni$_.JObject> p1, core$_.int p2) _setFoo; |
| |
| jni$_.JObject? genericInterfaceMethod(jni$_.JObject? t) { |
| return _genericInterfaceMethod(t); |
| } |
| |
| CustomObject<jni$_.JObject> setFoo( |
| CustomObject<jni$_.JObject> p1, core$_.int p2) { |
| return _setFoo(p1, p2); |
| } |
| } |
| |
| final class $TestClass017$Type$ extends jni$_.JType<TestClass017> { |
| @jni$_.internal |
| const $TestClass017$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass017;'; |
| } |
| |
| /// from: `com.example.TestClass017$Nested` |
| extension type TestClass017$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass017$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass017$Nested> type = |
| $TestClass017$Nested$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass017$Nested> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $TestClass017$Nested $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass017$Nested', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass017$Nested.implement( |
| $TestClass017$Nested $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass017$Nested>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass017$Nested { |
| factory $TestClass017$Nested() = _$TestClass017$Nested; |
| } |
| |
| final class _$TestClass017$Nested with $TestClass017$Nested { |
| _$TestClass017$Nested(); |
| } |
| |
| final class $TestClass017$Nested$Type$ |
| extends jni$_.JType<TestClass017$Nested> { |
| @jni$_.internal |
| const $TestClass017$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass017$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass018` |
| extension type TestClass018<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements GenericParent<jni$_.JObject?> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass018'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass018> type = $TestClass018$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass018() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass018<$T, $U>>(); |
| } |
| } |
| |
| extension TestClass018$$Methods<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?> on TestClass018<$T, $U> { |
| static final _id_genericParentMethod = TestClass018._class.instanceMethodId( |
| r'genericParentMethod', |
| r'(Ljava/lang/Object;)V', |
| ); |
| |
| static final _genericParentMethod = 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 genericParentMethod(java.lang.Object t)` |
| void genericParentMethod( |
| jni$_.JObject? t, |
| ) { |
| final _$$selfRef = reference; |
| final _$t = t?.reference ?? jni$_.jNullReference; |
| _genericParentMethod( |
| _$$selfRef.pointer, _id_genericParentMethod.pointer, _$t.pointer) |
| .check(); |
| } |
| |
| static final _id_setFoo = TestClass018._class.instanceMethodId( |
| r'setFoo', |
| r'([Lcom/example/CustomInterface;I)[Lcom/example/CustomInterface;', |
| ); |
| |
| static final _setFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public com.example.CustomInterface[] setFoo(com.example.CustomInterface[] p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JArray<CustomInterface<$S?>>? |
| setFoo<$S extends jni$_.JObject?, $V extends jni$_.JObject?>( |
| jni$_.JArray<CustomInterface<$S?>>? p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _setFoo(_$$selfRef.pointer, _id_setFoo.pointer, _$p1.pointer, p2) |
| .object<jni$_.JArray<CustomInterface<$S?>>?>(); |
| } |
| } |
| |
| final class $TestClass018$Type$ extends jni$_.JType<TestClass018> { |
| @jni$_.internal |
| const $TestClass018$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass018;'; |
| } |
| |
| /// from: `com.example.TestClass018$NestedEnum` |
| extension type TestClass018$NestedEnum._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass018$NestedEnum'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass018$NestedEnum> type = |
| $TestClass018$NestedEnum$Type$(); |
| static final _id_V1 = _class.staticFieldId( |
| r'V1', |
| r'Lcom/example/TestClass018$NestedEnum;', |
| ); |
| |
| /// from: `static public final com.example.TestClass018$NestedEnum V1` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass018$NestedEnum get V1 => |
| _id_V1.get(_class, TestClass018$NestedEnum.type) |
| as TestClass018$NestedEnum; |
| |
| static final _id_values = _class.staticMethodId( |
| r'values', |
| r'()[Lcom/example/TestClass018$NestedEnum;', |
| ); |
| |
| static final _values = 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 com.example.TestClass018$NestedEnum[] values()` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JArray<TestClass018$NestedEnum?>? values() { |
| final _$$classRef = _class.reference; |
| return _values(_$$classRef.pointer, _id_values.pointer) |
| .object<jni$_.JArray<TestClass018$NestedEnum?>?>(); |
| } |
| |
| static final _id_valueOf = _class.staticMethodId( |
| r'valueOf', |
| r'(Ljava/lang/String;)Lcom/example/TestClass018$NestedEnum;', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `static public com.example.TestClass018$NestedEnum valueOf(java.lang.String name)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass018$NestedEnum? valueOf( |
| jni$_.JString? name, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$name = name?.reference ?? jni$_.jNullReference; |
| return _valueOf(_$$classRef.pointer, _id_valueOf.pointer, _$name.pointer) |
| .object<TestClass018$NestedEnum?>(); |
| } |
| } |
| |
| final class $TestClass018$NestedEnum$Type$ |
| extends jni$_.JType<TestClass018$NestedEnum> { |
| @jni$_.internal |
| const $TestClass018$NestedEnum$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass018$NestedEnum;'; |
| } |
| |
| /// from: `com.example.TestClass019` |
| extension type TestClass019<$T extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass019'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass019> type = $TestClass019$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass019() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass019<$T>>(); |
| } |
| } |
| |
| extension TestClass019$$Methods<$T extends jni$_.JObject?> on TestClass019<$T> { |
| static final _id_getFoo = TestClass019._class.instanceMethodId( |
| r'getFoo', |
| r'([Lcom/example/CustomRecord;I)[Lcom/example/CustomRecord;', |
| ); |
| |
| static final _getFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public com.example.CustomRecord[] getFoo(com.example.CustomRecord[] p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JArray<jni$_.JObject?>? getFoo<$S extends jni$_.JObject?>( |
| jni$_.JArray<jni$_.JObject?>? p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _getFoo(_$$selfRef.pointer, _id_getFoo.pointer, _$p1.pointer, p2) |
| .object<jni$_.JArray<jni$_.JObject?>?>(); |
| } |
| } |
| |
| final class $TestClass019$Type$ extends jni$_.JType<TestClass019> { |
| @jni$_.internal |
| const $TestClass019$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass019;'; |
| } |
| |
| /// from: `com.example.TestClass020` |
| extension type TestClass020<$T extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass020'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass020> type = $TestClass020$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass020> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'isFoo()Lcom/example/NestedCustom$Nested;') { |
| final $r = _$impls[$p]!.isFoo(); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn<$T extends jni$_.JObject>( |
| jni$_.JImplementer implementer, |
| $TestClass020<$T> $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass020', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass020.implement( |
| $TestClass020<$T> $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass020<$T>>(); |
| } |
| } |
| |
| extension TestClass020$$Methods<$T extends jni$_.JObject> on TestClass020<$T> { |
| static final _id_isFoo = TestClass020._class.instanceMethodId( |
| r'isFoo', |
| r'()Lcom/example/NestedCustom$Nested;', |
| ); |
| |
| static final _isFoo = 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 abstract com.example.NestedCustom$Nested<S, S, S> isFoo()` |
| /// The returned object must be released after use, by calling the [release] method. |
| NestedCustom$Nested<$S, $S, $S>? isFoo<$S extends jni$_.JObject>() { |
| final _$$selfRef = reference; |
| return _isFoo(_$$selfRef.pointer, _id_isFoo.pointer) |
| .object<NestedCustom$Nested<$S, $S, $S>?>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass020<$T extends jni$_.JObject> { |
| factory $TestClass020({ |
| required NestedCustom$Nested<jni$_.JObject, jni$_.JObject, jni$_.JObject>? |
| Function() |
| isFoo, |
| }) = _$TestClass020<$T>; |
| |
| NestedCustom$Nested<jni$_.JObject, jni$_.JObject, jni$_.JObject>? isFoo(); |
| } |
| |
| final class _$TestClass020<$T extends jni$_.JObject> with $TestClass020<$T> { |
| _$TestClass020({ |
| required NestedCustom$Nested<jni$_.JObject, jni$_.JObject, jni$_.JObject>? |
| Function() |
| isFoo, |
| }) : _isFoo = isFoo; |
| |
| final NestedCustom$Nested<jni$_.JObject, jni$_.JObject, jni$_.JObject>? |
| Function() _isFoo; |
| |
| NestedCustom$Nested<jni$_.JObject, jni$_.JObject, jni$_.JObject>? isFoo() { |
| return _isFoo(); |
| } |
| } |
| |
| final class $TestClass020$Type$ extends jni$_.JType<TestClass020> { |
| @jni$_.internal |
| const $TestClass020$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass020;'; |
| } |
| |
| /// from: `com.example.TestClass020$Nested` |
| extension type TestClass020$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass020$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass020$Nested> type = |
| $TestClass020$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass020$Nested() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass020$Nested>(); |
| } |
| } |
| |
| final class $TestClass020$Nested$Type$ |
| extends jni$_.JType<TestClass020$Nested> { |
| @jni$_.internal |
| const $TestClass020$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass020$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass021` |
| extension type TestClass021._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass021'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass021> type = $TestClass021$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass021() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer).object<TestClass021>(); |
| } |
| } |
| |
| extension TestClass021$$Methods on TestClass021 { |
| static final _id_otherInterfaceMethod = TestClass021._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_setFoo = TestClass021._class.instanceMethodId( |
| r'setFoo', |
| r'(Ljava/util/Map;)Ljava/util/Map;', |
| ); |
| |
| static final _setFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public native java.util.Map<S, S> setFoo(java.util.Map<S, S> p1)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JMap<$S?, $S?>? setFoo<$S extends jni$_.JObject?>( |
| jni$_.JMap<$S?, $S?>? p1, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _setFoo(_$$selfRef.pointer, _id_setFoo.pointer, _$p1.pointer) |
| .object<jni$_.JMap<$S?, $S?>?>(); |
| } |
| } |
| |
| final class $TestClass021$Type$ extends jni$_.JType<TestClass021> { |
| @jni$_.internal |
| const $TestClass021$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass021;'; |
| } |
| |
| /// from: `com.example.TestClass022` |
| extension type TestClass022<$T extends jni$_.JObject, |
| $U extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements jni$_.JObject, DagA, DagD, DagE { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass022'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass022> type = $TestClass022$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass022() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass022<$T, $U>>(); |
| } |
| } |
| |
| extension TestClass022$$Methods<$T extends jni$_.JObject, |
| $U extends jni$_.JObject> on TestClass022<$T, $U> { |
| static final _id_aMethod = TestClass022._class.instanceMethodId( |
| r'aMethod', |
| r'()V', |
| ); |
| |
| static final _aMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void aMethod()` |
| void aMethod() { |
| final _$$selfRef = reference; |
| _aMethod(_$$selfRef.pointer, _id_aMethod.pointer).check(); |
| } |
| |
| static final _id_bMethod = TestClass022._class.instanceMethodId( |
| r'bMethod', |
| r'()V', |
| ); |
| |
| static final _bMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void bMethod()` |
| void bMethod() { |
| final _$$selfRef = reference; |
| _bMethod(_$$selfRef.pointer, _id_bMethod.pointer).check(); |
| } |
| |
| static final _id_cMethod = TestClass022._class.instanceMethodId( |
| r'cMethod', |
| r'()V', |
| ); |
| |
| static final _cMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void cMethod()` |
| void cMethod() { |
| final _$$selfRef = reference; |
| _cMethod(_$$selfRef.pointer, _id_cMethod.pointer).check(); |
| } |
| |
| static final _id_dMethod = TestClass022._class.instanceMethodId( |
| r'dMethod', |
| r'()V', |
| ); |
| |
| static final _dMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void dMethod()` |
| void dMethod() { |
| final _$$selfRef = reference; |
| _dMethod(_$$selfRef.pointer, _id_dMethod.pointer).check(); |
| } |
| |
| static final _id_eMethod = TestClass022._class.instanceMethodId( |
| r'eMethod', |
| r'()V', |
| ); |
| |
| static final _eMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void eMethod()` |
| void eMethod() { |
| final _$$selfRef = reference; |
| _eMethod(_$$selfRef.pointer, _id_eMethod.pointer).check(); |
| } |
| |
| static final _id_isFoo = TestClass022._class.instanceMethodId( |
| r'isFoo', |
| r'(SI)S', |
| ); |
| |
| static final _isFoo = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| jni$_.VarArgs<(jni$_.Int32, jni$_.Int32)>)>>( |
| 'globalEnv_CallShortMethod') |
| .asFunction< |
| jni$_.JniResult Function(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, core$_.int, core$_.int)>(); |
| |
| /// from: `public short isFoo(short p1, int p2)` |
| core$_.int isFoo( |
| core$_.int p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| return _isFoo(_$$selfRef.pointer, _id_isFoo.pointer, p1, p2).short; |
| } |
| } |
| |
| final class $TestClass022$Type$ extends jni$_.JType<TestClass022> { |
| @jni$_.internal |
| const $TestClass022$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass022;'; |
| } |
| |
| /// from: `com.example.TestClass023` |
| extension type TestClass023<$T extends jni$_.JObject, |
| $U extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements jni$_.JObject, DiamondLeft, DiamondRight { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass023'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass023> type = $TestClass023$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass023> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'baseMethod()V') { |
| _$impls[$p]!.baseMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'leftMethod()V') { |
| _$impls[$p]!.leftMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'rightMethod()V') { |
| _$impls[$p]!.rightMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == |
| r'getFoo([Lcom/example/CustomObject;I)[Lcom/example/CustomObject;') { |
| final $r = _$impls[$p]!.getFoo( |
| ($a![0] as jni$_.JArray<CustomObject>?), |
| ($a![1] as jni$_.JInteger).toDartInt(releaseOriginal: true), |
| ); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn<$T extends jni$_.JObject, $U extends jni$_.JObject>( |
| jni$_.JImplementer implementer, |
| $TestClass023<$T, $U> $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass023', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.baseMethod$async) r'baseMethod()V', |
| if ($impl.leftMethod$async) r'leftMethod()V', |
| if ($impl.rightMethod$async) r'rightMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass023.implement( |
| $TestClass023<$T, $U> $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass023<$T, $U>>(); |
| } |
| } |
| |
| extension TestClass023$$Methods<$T extends jni$_.JObject, |
| $U extends jni$_.JObject> on TestClass023<$T, $U> { |
| static final _id_baseMethod = TestClass023._class.instanceMethodId( |
| r'baseMethod', |
| r'()V', |
| ); |
| |
| static final _baseMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void baseMethod()` |
| void baseMethod() { |
| final _$$selfRef = reference; |
| _baseMethod(_$$selfRef.pointer, _id_baseMethod.pointer).check(); |
| } |
| |
| static final _id_leftMethod = TestClass023._class.instanceMethodId( |
| r'leftMethod', |
| r'()V', |
| ); |
| |
| static final _leftMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void leftMethod()` |
| void leftMethod() { |
| final _$$selfRef = reference; |
| _leftMethod(_$$selfRef.pointer, _id_leftMethod.pointer).check(); |
| } |
| |
| static final _id_rightMethod = TestClass023._class.instanceMethodId( |
| r'rightMethod', |
| r'()V', |
| ); |
| |
| static final _rightMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void rightMethod()` |
| void rightMethod() { |
| final _$$selfRef = reference; |
| _rightMethod(_$$selfRef.pointer, _id_rightMethod.pointer).check(); |
| } |
| |
| static final _id_getFoo = TestClass023._class.instanceMethodId( |
| r'getFoo', |
| r'([Lcom/example/CustomObject;I)[Lcom/example/CustomObject;', |
| ); |
| |
| static final _getFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public abstract com.example.CustomObject[] getFoo(com.example.CustomObject[] p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JArray<CustomObject<$S>>? getFoo<$S extends jni$_.JObject>( |
| jni$_.JArray<CustomObject<$S>>? p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _getFoo(_$$selfRef.pointer, _id_getFoo.pointer, _$p1.pointer, p2) |
| .object<jni$_.JArray<CustomObject<$S>>?>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass023<$T extends jni$_.JObject, |
| $U extends jni$_.JObject> { |
| factory $TestClass023({ |
| required void Function() baseMethod, |
| core$_.bool baseMethod$async, |
| required void Function() leftMethod, |
| core$_.bool leftMethod$async, |
| required void Function() rightMethod, |
| core$_.bool rightMethod$async, |
| required jni$_.JArray<CustomObject>? Function( |
| jni$_.JArray<CustomObject>? p1, core$_.int p2) |
| getFoo, |
| }) = _$TestClass023<$T, $U>; |
| |
| void baseMethod(); |
| core$_.bool get baseMethod$async => false; |
| void leftMethod(); |
| core$_.bool get leftMethod$async => false; |
| void rightMethod(); |
| core$_.bool get rightMethod$async => false; |
| jni$_.JArray<CustomObject>? getFoo( |
| jni$_.JArray<CustomObject>? p1, core$_.int p2); |
| } |
| |
| final class _$TestClass023<$T extends jni$_.JObject, $U extends jni$_.JObject> |
| with $TestClass023<$T, $U> { |
| _$TestClass023({ |
| required void Function() baseMethod, |
| this.baseMethod$async = false, |
| required void Function() leftMethod, |
| this.leftMethod$async = false, |
| required void Function() rightMethod, |
| this.rightMethod$async = false, |
| required jni$_.JArray<CustomObject>? Function( |
| jni$_.JArray<CustomObject>? p1, core$_.int p2) |
| getFoo, |
| }) : _baseMethod = baseMethod, |
| _leftMethod = leftMethod, |
| _rightMethod = rightMethod, |
| _getFoo = getFoo; |
| |
| final void Function() _baseMethod; |
| final core$_.bool baseMethod$async; |
| final void Function() _leftMethod; |
| final core$_.bool leftMethod$async; |
| final void Function() _rightMethod; |
| final core$_.bool rightMethod$async; |
| final jni$_.JArray<CustomObject>? Function( |
| jni$_.JArray<CustomObject>? p1, core$_.int p2) _getFoo; |
| |
| void baseMethod() { |
| return _baseMethod(); |
| } |
| |
| void leftMethod() { |
| return _leftMethod(); |
| } |
| |
| void rightMethod() { |
| return _rightMethod(); |
| } |
| |
| jni$_.JArray<CustomObject>? getFoo( |
| jni$_.JArray<CustomObject>? p1, core$_.int p2) { |
| return _getFoo(p1, p2); |
| } |
| } |
| |
| final class $TestClass023$Type$ extends jni$_.JType<TestClass023> { |
| @jni$_.internal |
| const $TestClass023$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass023;'; |
| } |
| |
| /// from: `com.example.TestClass024` |
| extension type TestClass024._(jni$_.JObject _$this) |
| implements jni$_.JObject, DagA, DagD, DagE { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass024'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass024> type = $TestClass024$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass024() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer).object<TestClass024>(); |
| } |
| |
| static final _id_myMethod = _class.staticMethodId( |
| r'myMethod', |
| r'()[S', |
| ); |
| |
| static final _myMethod = 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 short[] myMethod()` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JShortArray? |
| myMethod<$S extends jni$_.JObject, $V extends jni$_.JObject>() { |
| final _$$classRef = _class.reference; |
| return _myMethod(_$$classRef.pointer, _id_myMethod.pointer) |
| .object<jni$_.JShortArray?>(); |
| } |
| } |
| |
| extension TestClass024$$Methods on TestClass024 { |
| static final _id_aMethod = TestClass024._class.instanceMethodId( |
| r'aMethod', |
| r'()V', |
| ); |
| |
| static final _aMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void aMethod()` |
| void aMethod() { |
| final _$$selfRef = reference; |
| _aMethod(_$$selfRef.pointer, _id_aMethod.pointer).check(); |
| } |
| |
| static final _id_bMethod = TestClass024._class.instanceMethodId( |
| r'bMethod', |
| r'()V', |
| ); |
| |
| static final _bMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void bMethod()` |
| void bMethod() { |
| final _$$selfRef = reference; |
| _bMethod(_$$selfRef.pointer, _id_bMethod.pointer).check(); |
| } |
| |
| static final _id_cMethod = TestClass024._class.instanceMethodId( |
| r'cMethod', |
| r'()V', |
| ); |
| |
| static final _cMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void cMethod()` |
| void cMethod() { |
| final _$$selfRef = reference; |
| _cMethod(_$$selfRef.pointer, _id_cMethod.pointer).check(); |
| } |
| |
| static final _id_dMethod = TestClass024._class.instanceMethodId( |
| r'dMethod', |
| r'()V', |
| ); |
| |
| static final _dMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void dMethod()` |
| void dMethod() { |
| final _$$selfRef = reference; |
| _dMethod(_$$selfRef.pointer, _id_dMethod.pointer).check(); |
| } |
| |
| static final _id_eMethod = TestClass024._class.instanceMethodId( |
| r'eMethod', |
| r'()V', |
| ); |
| |
| static final _eMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void eMethod()` |
| void eMethod() { |
| final _$$selfRef = reference; |
| _eMethod(_$$selfRef.pointer, _id_eMethod.pointer).check(); |
| } |
| } |
| |
| final class $TestClass024$Type$ extends jni$_.JType<TestClass024> { |
| @jni$_.internal |
| const $TestClass024$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass024;'; |
| } |
| |
| /// from: `com.example.TestClass024$NestedEnum` |
| extension type TestClass024$NestedEnum._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass024$NestedEnum'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass024$NestedEnum> type = |
| $TestClass024$NestedEnum$Type$(); |
| static final _id_V1 = _class.staticFieldId( |
| r'V1', |
| r'Lcom/example/TestClass024$NestedEnum;', |
| ); |
| |
| /// from: `static public final com.example.TestClass024$NestedEnum V1` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass024$NestedEnum get V1 => |
| _id_V1.get(_class, TestClass024$NestedEnum.type) |
| as TestClass024$NestedEnum; |
| |
| static final _id_values = _class.staticMethodId( |
| r'values', |
| r'()[Lcom/example/TestClass024$NestedEnum;', |
| ); |
| |
| static final _values = 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 com.example.TestClass024$NestedEnum[] values()` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JArray<TestClass024$NestedEnum?>? values() { |
| final _$$classRef = _class.reference; |
| return _values(_$$classRef.pointer, _id_values.pointer) |
| .object<jni$_.JArray<TestClass024$NestedEnum?>?>(); |
| } |
| |
| static final _id_valueOf = _class.staticMethodId( |
| r'valueOf', |
| r'(Ljava/lang/String;)Lcom/example/TestClass024$NestedEnum;', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `static public com.example.TestClass024$NestedEnum valueOf(java.lang.String name)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass024$NestedEnum? valueOf( |
| jni$_.JString? name, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$name = name?.reference ?? jni$_.jNullReference; |
| return _valueOf(_$$classRef.pointer, _id_valueOf.pointer, _$name.pointer) |
| .object<TestClass024$NestedEnum?>(); |
| } |
| } |
| |
| final class $TestClass024$NestedEnum$Type$ |
| extends jni$_.JType<TestClass024$NestedEnum> { |
| @jni$_.internal |
| const $TestClass024$NestedEnum$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass024$NestedEnum;'; |
| } |
| |
| /// from: `com.example.TestClass025` |
| extension type TestClass025<$T extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass025'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass025> type = $TestClass025$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass025> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'otherInterfaceMethod()V') { |
| _$impls[$p]!.otherInterfaceMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'setFoo()Ljava/util/Set;') { |
| final $r = _$impls[$p]!.setFoo(); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn<$T extends jni$_.JObject?>( |
| jni$_.JImplementer implementer, |
| $TestClass025<$T> $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass025', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.otherInterfaceMethod$async) r'otherInterfaceMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass025.implement( |
| $TestClass025<$T> $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass025<$T>>(); |
| } |
| } |
| |
| extension TestClass025$$Methods<$T extends jni$_.JObject?> on TestClass025<$T> { |
| static final _id_otherInterfaceMethod = TestClass025._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_setFoo = TestClass025._class.instanceMethodId( |
| r'setFoo', |
| r'()Ljava/util/Set;', |
| ); |
| |
| static final _setFoo = 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 abstract java.util.Set<S> setFoo()` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JSet<$S?> setFoo<$S extends jni$_.JObject?>() { |
| final _$$selfRef = reference; |
| return _setFoo(_$$selfRef.pointer, _id_setFoo.pointer) |
| .object<jni$_.JSet<$S?>>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass025<$T extends jni$_.JObject?> { |
| factory $TestClass025({ |
| required void Function() otherInterfaceMethod, |
| core$_.bool otherInterfaceMethod$async, |
| required jni$_.JSet<jni$_.JObject?> Function() setFoo, |
| }) = _$TestClass025<$T>; |
| |
| void otherInterfaceMethod(); |
| core$_.bool get otherInterfaceMethod$async => false; |
| jni$_.JSet<jni$_.JObject?> setFoo(); |
| } |
| |
| final class _$TestClass025<$T extends jni$_.JObject?> with $TestClass025<$T> { |
| _$TestClass025({ |
| required void Function() otherInterfaceMethod, |
| this.otherInterfaceMethod$async = false, |
| required jni$_.JSet<jni$_.JObject?> Function() setFoo, |
| }) : _otherInterfaceMethod = otherInterfaceMethod, |
| _setFoo = setFoo; |
| |
| final void Function() _otherInterfaceMethod; |
| final core$_.bool otherInterfaceMethod$async; |
| final jni$_.JSet<jni$_.JObject?> Function() _setFoo; |
| |
| void otherInterfaceMethod() { |
| return _otherInterfaceMethod(); |
| } |
| |
| jni$_.JSet<jni$_.JObject?> setFoo() { |
| return _setFoo(); |
| } |
| } |
| |
| final class $TestClass025$Type$ extends jni$_.JType<TestClass025> { |
| @jni$_.internal |
| const $TestClass025$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass025;'; |
| } |
| |
| /// from: `com.example.TestClass025$NestedEnum` |
| extension type TestClass025$NestedEnum._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass025$NestedEnum'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass025$NestedEnum> type = |
| $TestClass025$NestedEnum$Type$(); |
| static final _id_V1 = _class.staticFieldId( |
| r'V1', |
| r'Lcom/example/TestClass025$NestedEnum;', |
| ); |
| |
| /// from: `static public final com.example.TestClass025$NestedEnum V1` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass025$NestedEnum get V1 => |
| _id_V1.get(_class, TestClass025$NestedEnum.type) |
| as TestClass025$NestedEnum; |
| |
| static final _id_values = _class.staticMethodId( |
| r'values', |
| r'()[Lcom/example/TestClass025$NestedEnum;', |
| ); |
| |
| static final _values = 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 com.example.TestClass025$NestedEnum[] values()` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JArray<TestClass025$NestedEnum?>? values() { |
| final _$$classRef = _class.reference; |
| return _values(_$$classRef.pointer, _id_values.pointer) |
| .object<jni$_.JArray<TestClass025$NestedEnum?>?>(); |
| } |
| |
| static final _id_valueOf = _class.staticMethodId( |
| r'valueOf', |
| r'(Ljava/lang/String;)Lcom/example/TestClass025$NestedEnum;', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `static public com.example.TestClass025$NestedEnum valueOf(java.lang.String name)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass025$NestedEnum? valueOf( |
| jni$_.JString? name, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$name = name?.reference ?? jni$_.jNullReference; |
| return _valueOf(_$$classRef.pointer, _id_valueOf.pointer, _$name.pointer) |
| .object<TestClass025$NestedEnum?>(); |
| } |
| } |
| |
| final class $TestClass025$NestedEnum$Type$ |
| extends jni$_.JType<TestClass025$NestedEnum> { |
| @jni$_.internal |
| const $TestClass025$NestedEnum$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass025$NestedEnum;'; |
| } |
| |
| /// from: `com.example.TestClass026` |
| extension type TestClass026._(jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass026'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass026> type = $TestClass026$Type$(); |
| static final _id_create = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _create = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass026 |
| create<$S extends jni$_.JObject?, $V extends jni$_.JObject?>() { |
| final _$$classRef = _class.reference; |
| return _create(_$$classRef.pointer, _id_create.pointer) |
| .object<TestClass026>(); |
| } |
| } |
| |
| final class $TestClass026$Type$ extends jni$_.JType<TestClass026> { |
| @jni$_.internal |
| const $TestClass026$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass026;'; |
| } |
| |
| /// from: `com.example.TestClass026$Nested` |
| extension type TestClass026$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass026$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass026$Nested> type = |
| $TestClass026$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass026$Nested() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass026$Nested>(); |
| } |
| } |
| |
| final class $TestClass026$Nested$Type$ |
| extends jni$_.JType<TestClass026$Nested> { |
| @jni$_.internal |
| const $TestClass026$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass026$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass027` |
| extension type TestClass027<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?>._(jni$_.JObject _$this) implements GrandParent { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass027'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass027> type = $TestClass027$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass027() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass027<$T, $U>>(); |
| } |
| } |
| |
| extension TestClass027$$Methods<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?> on TestClass027<$T, $U> { |
| static final _id_grandParentMethod = TestClass027._class.instanceMethodId( |
| r'grandParentMethod', |
| r'()V', |
| ); |
| |
| static final _grandParentMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void grandParentMethod()` |
| void grandParentMethod() { |
| final _$$selfRef = reference; |
| _grandParentMethod(_$$selfRef.pointer, _id_grandParentMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_getFoo = TestClass027._class.instanceMethodId( |
| r'getFoo', |
| r'(Lcom/example/CustomRecord;)Lcom/example/CustomRecord;', |
| ); |
| |
| static final _getFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public com.example.CustomRecord<S> getFoo(com.example.CustomRecord<S> p1)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JObject? getFoo<$S extends jni$_.JObject?>( |
| jni$_.JObject? p1, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _getFoo(_$$selfRef.pointer, _id_getFoo.pointer, _$p1.pointer) |
| .object<jni$_.JObject?>(); |
| } |
| } |
| |
| final class $TestClass027$Type$ extends jni$_.JType<TestClass027> { |
| @jni$_.internal |
| const $TestClass027$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass027;'; |
| } |
| |
| /// from: `com.example.TestClass027$Nested` |
| extension type TestClass027$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass027$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass027$Nested> type = |
| $TestClass027$Nested$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass027$Nested> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $TestClass027$Nested $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass027$Nested', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass027$Nested.implement( |
| $TestClass027$Nested $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass027$Nested>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass027$Nested { |
| factory $TestClass027$Nested() = _$TestClass027$Nested; |
| } |
| |
| final class _$TestClass027$Nested with $TestClass027$Nested { |
| _$TestClass027$Nested(); |
| } |
| |
| final class $TestClass027$Nested$Type$ |
| extends jni$_.JType<TestClass027$Nested> { |
| @jni$_.internal |
| const $TestClass027$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass027$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass028` |
| extension type TestClass028<$T extends jni$_.JObject, |
| $U extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass028'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass028> type = $TestClass028$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass028() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass028<$T, $U>>(); |
| } |
| } |
| |
| extension TestClass028$$Methods<$T extends jni$_.JObject, |
| $U extends jni$_.JObject> on TestClass028<$T, $U> { |
| static final _id_otherInterfaceMethod = TestClass028._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_myMethod = TestClass028._class.instanceMethodId( |
| r'myMethod', |
| r'()[I', |
| ); |
| |
| static final _myMethod = 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 final int[] myMethod()` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JIntArray? myMethod<$S extends jni$_.JObject>() { |
| final _$$selfRef = reference; |
| return _myMethod(_$$selfRef.pointer, _id_myMethod.pointer) |
| .object<jni$_.JIntArray?>(); |
| } |
| } |
| |
| final class $TestClass028$Type$ extends jni$_.JType<TestClass028> { |
| @jni$_.internal |
| const $TestClass028$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass028;'; |
| } |
| |
| /// from: `com.example.TestClass029` |
| extension type TestClass029._(jni$_.JObject _$this) |
| implements jni$_.JObject, GenericInterface<jni$_.JString?> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass029'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass029> type = $TestClass029$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass029> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == |
| r'genericInterfaceMethod(Ljava/lang/String;)Ljava/lang/String;') { |
| final $r = _$impls[$p]!.genericInterfaceMethod( |
| ($a![0] as jni$_.JString?), |
| ); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| if ($d == r'isFoo(BI)B') { |
| final $r = _$impls[$p]!.isFoo( |
| ($a![0] as jni$_.JByte).toDartInt(releaseOriginal: true), |
| ($a![1] as jni$_.JInteger).toDartInt(releaseOriginal: true), |
| ); |
| return $r.toJByte().reference.toPointer(); |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $TestClass029 $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass029', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass029.implement( |
| $TestClass029 $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass029>(); |
| } |
| } |
| |
| extension TestClass029$$Methods on TestClass029 { |
| static final _id_genericInterfaceMethod = |
| TestClass029._class.instanceMethodId( |
| r'genericInterfaceMethod', |
| r'(Ljava/lang/String;)Ljava/lang/String;', |
| ); |
| |
| static final _genericInterfaceMethod = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `default public java.lang.String genericInterfaceMethod(java.lang.String t)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JString? genericInterfaceMethod( |
| jni$_.JString? t, |
| ) { |
| final _$$selfRef = reference; |
| final _$t = t?.reference ?? jni$_.jNullReference; |
| return _genericInterfaceMethod( |
| _$$selfRef.pointer, _id_genericInterfaceMethod.pointer, _$t.pointer) |
| .object<jni$_.JString?>(); |
| } |
| |
| static final _id_isFoo = TestClass029._class.instanceMethodId( |
| r'isFoo', |
| r'(BI)B', |
| ); |
| |
| static final _isFoo = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| jni$_.VarArgs<(jni$_.Int32, jni$_.Int32)>)>>( |
| 'globalEnv_CallByteMethod') |
| .asFunction< |
| jni$_.JniResult Function(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, core$_.int, core$_.int)>(); |
| |
| /// from: `public abstract byte isFoo(byte p1, int p2)` |
| core$_.int isFoo( |
| core$_.int p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| return _isFoo(_$$selfRef.pointer, _id_isFoo.pointer, p1, p2).byte; |
| } |
| } |
| |
| abstract base mixin class $TestClass029 { |
| factory $TestClass029({ |
| required jni$_.JString? Function(jni$_.JString? t) genericInterfaceMethod, |
| required core$_.int Function(core$_.int p1, core$_.int p2) isFoo, |
| }) = _$TestClass029; |
| |
| jni$_.JString? genericInterfaceMethod(jni$_.JString? t); |
| core$_.int isFoo(core$_.int p1, core$_.int p2); |
| } |
| |
| final class _$TestClass029 with $TestClass029 { |
| _$TestClass029({ |
| required jni$_.JString? Function(jni$_.JString? t) genericInterfaceMethod, |
| required core$_.int Function(core$_.int p1, core$_.int p2) isFoo, |
| }) : _genericInterfaceMethod = genericInterfaceMethod, |
| _isFoo = isFoo; |
| |
| final jni$_.JString? Function(jni$_.JString? t) _genericInterfaceMethod; |
| final core$_.int Function(core$_.int p1, core$_.int p2) _isFoo; |
| |
| jni$_.JString? genericInterfaceMethod(jni$_.JString? t) { |
| return _genericInterfaceMethod(t); |
| } |
| |
| core$_.int isFoo(core$_.int p1, core$_.int p2) { |
| return _isFoo(p1, p2); |
| } |
| } |
| |
| final class $TestClass029$Type$ extends jni$_.JType<TestClass029> { |
| @jni$_.internal |
| const $TestClass029$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass029;'; |
| } |
| |
| /// from: `com.example.TestClass029$Nested` |
| extension type TestClass029$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass029$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass029$Nested> type = |
| $TestClass029$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass029$Nested() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass029$Nested>(); |
| } |
| } |
| |
| final class $TestClass029$Nested$Type$ |
| extends jni$_.JType<TestClass029$Nested> { |
| @jni$_.internal |
| const $TestClass029$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass029$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass030` |
| extension type TestClass030<$T extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass030'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass030> type = $TestClass030$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass030() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass030<$T>>(); |
| } |
| } |
| |
| extension TestClass030$$Methods<$T extends jni$_.JObject?> on TestClass030<$T> { |
| static final _id_myMethod = TestClass030._class.instanceMethodId( |
| r'myMethod', |
| r'()[Z', |
| ); |
| |
| static final _myMethod = 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 boolean[] myMethod()` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JBooleanArray myMethod<$S extends jni$_.JObject?>() { |
| final _$$selfRef = reference; |
| return _myMethod(_$$selfRef.pointer, _id_myMethod.pointer) |
| .object<jni$_.JBooleanArray>(); |
| } |
| } |
| |
| final class $TestClass030$Type$ extends jni$_.JType<TestClass030> { |
| @jni$_.internal |
| const $TestClass030$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass030;'; |
| } |
| |
| /// from: `com.example.TestClass030$Nested` |
| extension type TestClass030$Nested<$T extends jni$_.JObject?>._( |
| jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass030$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass030$Nested> type = |
| $TestClass030$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'(Lcom/example/TestClass030;)V', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void <init>(com.example.TestClass030<T> $outerClass)` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass030$Nested( |
| TestClass030<$T?> $outerClass, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$$outerClass = $outerClass.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer, _$$outerClass.pointer) |
| .object<TestClass030$Nested<$T>>(); |
| } |
| } |
| |
| final class $TestClass030$Nested$Type$ |
| extends jni$_.JType<TestClass030$Nested> { |
| @jni$_.internal |
| const $TestClass030$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass030$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass031` |
| extension type TestClass031._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass031'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass031> type = $TestClass031$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass031> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'otherInterfaceMethod()V') { |
| _$impls[$p]!.otherInterfaceMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == |
| r'myMethod([Lcom/example/CustomInterface;I)[Lcom/example/CustomInterface;') { |
| final $r = _$impls[$p]!.myMethod( |
| ($a![0] as jni$_.JArray<CustomInterface?>?), |
| ($a![1] as jni$_.JInteger).toDartInt(releaseOriginal: true), |
| ); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $TestClass031 $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass031', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.otherInterfaceMethod$async) r'otherInterfaceMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass031.implement( |
| $TestClass031 $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass031>(); |
| } |
| } |
| |
| extension TestClass031$$Methods on TestClass031 { |
| static final _id_otherInterfaceMethod = TestClass031._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_myMethod = TestClass031._class.instanceMethodId( |
| r'myMethod', |
| r'([Lcom/example/CustomInterface;I)[Lcom/example/CustomInterface;', |
| ); |
| |
| static final _myMethod = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public abstract com.example.CustomInterface[] myMethod(com.example.CustomInterface[] p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JArray<CustomInterface<$S>?>? myMethod<$S extends jni$_.JObject>( |
| jni$_.JArray<CustomInterface<$S>?>? p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _myMethod(_$$selfRef.pointer, _id_myMethod.pointer, _$p1.pointer, p2) |
| .object<jni$_.JArray<CustomInterface<$S>?>?>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass031 { |
| factory $TestClass031({ |
| required void Function() otherInterfaceMethod, |
| core$_.bool otherInterfaceMethod$async, |
| required jni$_.JArray<CustomInterface?>? Function( |
| jni$_.JArray<CustomInterface?>? p1, core$_.int p2) |
| myMethod, |
| }) = _$TestClass031; |
| |
| void otherInterfaceMethod(); |
| core$_.bool get otherInterfaceMethod$async => false; |
| jni$_.JArray<CustomInterface?>? myMethod( |
| jni$_.JArray<CustomInterface?>? p1, core$_.int p2); |
| } |
| |
| final class _$TestClass031 with $TestClass031 { |
| _$TestClass031({ |
| required void Function() otherInterfaceMethod, |
| this.otherInterfaceMethod$async = false, |
| required jni$_.JArray<CustomInterface?>? Function( |
| jni$_.JArray<CustomInterface?>? p1, core$_.int p2) |
| myMethod, |
| }) : _otherInterfaceMethod = otherInterfaceMethod, |
| _myMethod = myMethod; |
| |
| final void Function() _otherInterfaceMethod; |
| final core$_.bool otherInterfaceMethod$async; |
| final jni$_.JArray<CustomInterface?>? Function( |
| jni$_.JArray<CustomInterface?>? p1, core$_.int p2) _myMethod; |
| |
| void otherInterfaceMethod() { |
| return _otherInterfaceMethod(); |
| } |
| |
| jni$_.JArray<CustomInterface?>? myMethod( |
| jni$_.JArray<CustomInterface?>? p1, core$_.int p2) { |
| return _myMethod(p1, p2); |
| } |
| } |
| |
| final class $TestClass031$Type$ extends jni$_.JType<TestClass031> { |
| @jni$_.internal |
| const $TestClass031$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass031;'; |
| } |
| |
| /// from: `com.example.TestClass031$Nested` |
| extension type TestClass031$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass031$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass031$Nested> type = |
| $TestClass031$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass031$Nested() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass031$Nested>(); |
| } |
| } |
| |
| final class $TestClass031$Nested$Type$ |
| extends jni$_.JType<TestClass031$Nested> { |
| @jni$_.internal |
| const $TestClass031$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass031$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass032` |
| extension type TestClass032<$T extends jni$_.JObject, |
| $U extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements jni$_.JObject, DiamondLeft, DiamondRight { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass032'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass032> type = $TestClass032$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass032> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'baseMethod()V') { |
| _$impls[$p]!.baseMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'leftMethod()V') { |
| _$impls[$p]!.leftMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'rightMethod()V') { |
| _$impls[$p]!.rightMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'isFoo()Z') { |
| final $r = _$impls[$p]!.isFoo(); |
| return $r.toJBoolean().reference.toPointer(); |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn<$T extends jni$_.JObject, $U extends jni$_.JObject>( |
| jni$_.JImplementer implementer, |
| $TestClass032<$T, $U> $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass032', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.baseMethod$async) r'baseMethod()V', |
| if ($impl.leftMethod$async) r'leftMethod()V', |
| if ($impl.rightMethod$async) r'rightMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass032.implement( |
| $TestClass032<$T, $U> $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass032<$T, $U>>(); |
| } |
| } |
| |
| extension TestClass032$$Methods<$T extends jni$_.JObject, |
| $U extends jni$_.JObject> on TestClass032<$T, $U> { |
| static final _id_baseMethod = TestClass032._class.instanceMethodId( |
| r'baseMethod', |
| r'()V', |
| ); |
| |
| static final _baseMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void baseMethod()` |
| void baseMethod() { |
| final _$$selfRef = reference; |
| _baseMethod(_$$selfRef.pointer, _id_baseMethod.pointer).check(); |
| } |
| |
| static final _id_leftMethod = TestClass032._class.instanceMethodId( |
| r'leftMethod', |
| r'()V', |
| ); |
| |
| static final _leftMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void leftMethod()` |
| void leftMethod() { |
| final _$$selfRef = reference; |
| _leftMethod(_$$selfRef.pointer, _id_leftMethod.pointer).check(); |
| } |
| |
| static final _id_rightMethod = TestClass032._class.instanceMethodId( |
| r'rightMethod', |
| r'()V', |
| ); |
| |
| static final _rightMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void rightMethod()` |
| void rightMethod() { |
| final _$$selfRef = reference; |
| _rightMethod(_$$selfRef.pointer, _id_rightMethod.pointer).check(); |
| } |
| |
| static final _id_isFoo = TestClass032._class.instanceMethodId( |
| r'isFoo', |
| r'()Z', |
| ); |
| |
| static final _isFoo = 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 abstract boolean isFoo()` |
| core$_.bool isFoo<$S extends jni$_.JObject, $V extends jni$_.JObject>() { |
| final _$$selfRef = reference; |
| return _isFoo(_$$selfRef.pointer, _id_isFoo.pointer).boolean; |
| } |
| } |
| |
| abstract base mixin class $TestClass032<$T extends jni$_.JObject, |
| $U extends jni$_.JObject> { |
| factory $TestClass032({ |
| required void Function() baseMethod, |
| core$_.bool baseMethod$async, |
| required void Function() leftMethod, |
| core$_.bool leftMethod$async, |
| required void Function() rightMethod, |
| core$_.bool rightMethod$async, |
| required core$_.bool Function() isFoo, |
| }) = _$TestClass032<$T, $U>; |
| |
| void baseMethod(); |
| core$_.bool get baseMethod$async => false; |
| void leftMethod(); |
| core$_.bool get leftMethod$async => false; |
| void rightMethod(); |
| core$_.bool get rightMethod$async => false; |
| core$_.bool isFoo(); |
| } |
| |
| final class _$TestClass032<$T extends jni$_.JObject, $U extends jni$_.JObject> |
| with $TestClass032<$T, $U> { |
| _$TestClass032({ |
| required void Function() baseMethod, |
| this.baseMethod$async = false, |
| required void Function() leftMethod, |
| this.leftMethod$async = false, |
| required void Function() rightMethod, |
| this.rightMethod$async = false, |
| required core$_.bool Function() isFoo, |
| }) : _baseMethod = baseMethod, |
| _leftMethod = leftMethod, |
| _rightMethod = rightMethod, |
| _isFoo = isFoo; |
| |
| final void Function() _baseMethod; |
| final core$_.bool baseMethod$async; |
| final void Function() _leftMethod; |
| final core$_.bool leftMethod$async; |
| final void Function() _rightMethod; |
| final core$_.bool rightMethod$async; |
| final core$_.bool Function() _isFoo; |
| |
| void baseMethod() { |
| return _baseMethod(); |
| } |
| |
| void leftMethod() { |
| return _leftMethod(); |
| } |
| |
| void rightMethod() { |
| return _rightMethod(); |
| } |
| |
| core$_.bool isFoo() { |
| return _isFoo(); |
| } |
| } |
| |
| final class $TestClass032$Type$ extends jni$_.JType<TestClass032> { |
| @jni$_.internal |
| const $TestClass032$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass032;'; |
| } |
| |
| /// from: `com.example.TestClass033` |
| extension type TestClass033<$T extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass033'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass033> type = $TestClass033$Type$(); |
| static final _id_isFoo = _class.staticMethodId( |
| r'isFoo', |
| r'(J)J', |
| ); |
| |
| static final _isFoo = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Int64,)>)>>( |
| 'globalEnv_CallStaticLongMethod') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, jni$_.JMethodIDPtr, core$_.int)>(); |
| |
| /// from: `static public long isFoo(long p1)` |
| static core$_.int isFoo<$S extends jni$_.JObject?>( |
| core$_.int p1, |
| ) { |
| final _$$classRef = _class.reference; |
| return _isFoo(_$$classRef.pointer, _id_isFoo.pointer, p1).long; |
| } |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass033> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'otherInterfaceMethod()V') { |
| _$impls[$p]!.otherInterfaceMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'isFoo(J)J') { |
| final $r = _$impls[$p]!.isFoo( |
| ($a![0] as jni$_.JLong).toDartInt(releaseOriginal: true), |
| ); |
| return $r.toJLong().reference.toPointer(); |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn<$T extends jni$_.JObject?>( |
| jni$_.JImplementer implementer, |
| $TestClass033<$T> $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass033', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.otherInterfaceMethod$async) r'otherInterfaceMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass033.implement( |
| $TestClass033<$T> $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass033<$T>>(); |
| } |
| } |
| |
| extension TestClass033$$Methods<$T extends jni$_.JObject?> on TestClass033<$T> { |
| static final _id_otherInterfaceMethod = TestClass033._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| } |
| |
| abstract base mixin class $TestClass033<$T extends jni$_.JObject?> { |
| factory $TestClass033({ |
| required void Function() otherInterfaceMethod, |
| core$_.bool otherInterfaceMethod$async, |
| required core$_.int Function(core$_.int p1) isFoo, |
| }) = _$TestClass033<$T>; |
| |
| void otherInterfaceMethod(); |
| core$_.bool get otherInterfaceMethod$async => false; |
| core$_.int isFoo(core$_.int p1); |
| } |
| |
| final class _$TestClass033<$T extends jni$_.JObject?> with $TestClass033<$T> { |
| _$TestClass033({ |
| required void Function() otherInterfaceMethod, |
| this.otherInterfaceMethod$async = false, |
| required core$_.int Function(core$_.int p1) isFoo, |
| }) : _otherInterfaceMethod = otherInterfaceMethod, |
| _isFoo = isFoo; |
| |
| final void Function() _otherInterfaceMethod; |
| final core$_.bool otherInterfaceMethod$async; |
| final core$_.int Function(core$_.int p1) _isFoo; |
| |
| void otherInterfaceMethod() { |
| return _otherInterfaceMethod(); |
| } |
| |
| core$_.int isFoo(core$_.int p1) { |
| return _isFoo(p1); |
| } |
| } |
| |
| final class $TestClass033$Type$ extends jni$_.JType<TestClass033> { |
| @jni$_.internal |
| const $TestClass033$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass033;'; |
| } |
| |
| /// from: `com.example.TestClass034` |
| extension type TestClass034<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject, GenericInterface<jni$_.JString?> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass034'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass034> type = $TestClass034$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass034> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == |
| r'genericInterfaceMethod(Ljava/lang/String;)Ljava/lang/String;') { |
| final $r = _$impls[$p]!.genericInterfaceMethod( |
| ($a![0] as jni$_.JString?), |
| ); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| if ($d == |
| r'isFoo(Lcom/example/CustomObject;I)Lcom/example/CustomObject;') { |
| final $r = _$impls[$p]!.isFoo( |
| ($a![0] as CustomObject<jni$_.JObject?>?), |
| ($a![1] as jni$_.JInteger).toDartInt(releaseOriginal: true), |
| ); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn<$T extends jni$_.JObject?, $U extends jni$_.JObject?>( |
| jni$_.JImplementer implementer, |
| $TestClass034<$T, $U> $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass034', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass034.implement( |
| $TestClass034<$T, $U> $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass034<$T, $U>>(); |
| } |
| } |
| |
| extension TestClass034$$Methods<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?> on TestClass034<$T, $U> { |
| static final _id_genericInterfaceMethod = |
| TestClass034._class.instanceMethodId( |
| r'genericInterfaceMethod', |
| r'(Ljava/lang/String;)Ljava/lang/String;', |
| ); |
| |
| static final _genericInterfaceMethod = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `default public java.lang.String genericInterfaceMethod(java.lang.String t)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JString? genericInterfaceMethod( |
| jni$_.JString? t, |
| ) { |
| final _$$selfRef = reference; |
| final _$t = t?.reference ?? jni$_.jNullReference; |
| return _genericInterfaceMethod( |
| _$$selfRef.pointer, _id_genericInterfaceMethod.pointer, _$t.pointer) |
| .object<jni$_.JString?>(); |
| } |
| |
| static final _id_isFoo = TestClass034._class.instanceMethodId( |
| r'isFoo', |
| r'(Lcom/example/CustomObject;I)Lcom/example/CustomObject;', |
| ); |
| |
| static final _isFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public abstract com.example.CustomObject<S> isFoo(com.example.CustomObject<S> p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| CustomObject<$S?>? isFoo<$S extends jni$_.JObject?>( |
| CustomObject<$S?>? p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _isFoo(_$$selfRef.pointer, _id_isFoo.pointer, _$p1.pointer, p2) |
| .object<CustomObject<$S?>?>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass034<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?> { |
| factory $TestClass034({ |
| required jni$_.JString? Function(jni$_.JString? t) genericInterfaceMethod, |
| required CustomObject<jni$_.JObject?>? Function( |
| CustomObject<jni$_.JObject?>? p1, core$_.int p2) |
| isFoo, |
| }) = _$TestClass034<$T, $U>; |
| |
| jni$_.JString? genericInterfaceMethod(jni$_.JString? t); |
| CustomObject<jni$_.JObject?>? isFoo( |
| CustomObject<jni$_.JObject?>? p1, core$_.int p2); |
| } |
| |
| final class _$TestClass034<$T extends jni$_.JObject?, $U extends jni$_.JObject?> |
| with $TestClass034<$T, $U> { |
| _$TestClass034({ |
| required jni$_.JString? Function(jni$_.JString? t) genericInterfaceMethod, |
| required CustomObject<jni$_.JObject?>? Function( |
| CustomObject<jni$_.JObject?>? p1, core$_.int p2) |
| isFoo, |
| }) : _genericInterfaceMethod = genericInterfaceMethod, |
| _isFoo = isFoo; |
| |
| final jni$_.JString? Function(jni$_.JString? t) _genericInterfaceMethod; |
| final CustomObject<jni$_.JObject?>? Function( |
| CustomObject<jni$_.JObject?>? p1, core$_.int p2) _isFoo; |
| |
| jni$_.JString? genericInterfaceMethod(jni$_.JString? t) { |
| return _genericInterfaceMethod(t); |
| } |
| |
| CustomObject<jni$_.JObject?>? isFoo( |
| CustomObject<jni$_.JObject?>? p1, core$_.int p2) { |
| return _isFoo(p1, p2); |
| } |
| } |
| |
| final class $TestClass034$Type$ extends jni$_.JType<TestClass034> { |
| @jni$_.internal |
| const $TestClass034$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass034;'; |
| } |
| |
| /// from: `com.example.TestClass034$NestedEnum` |
| extension type TestClass034$NestedEnum._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass034$NestedEnum'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass034$NestedEnum> type = |
| $TestClass034$NestedEnum$Type$(); |
| static final _id_V1 = _class.staticFieldId( |
| r'V1', |
| r'Lcom/example/TestClass034$NestedEnum;', |
| ); |
| |
| /// from: `static public final com.example.TestClass034$NestedEnum V1` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass034$NestedEnum get V1 => |
| _id_V1.get(_class, TestClass034$NestedEnum.type) |
| as TestClass034$NestedEnum; |
| |
| static final _id_values = _class.staticMethodId( |
| r'values', |
| r'()[Lcom/example/TestClass034$NestedEnum;', |
| ); |
| |
| static final _values = 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 com.example.TestClass034$NestedEnum[] values()` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JArray<TestClass034$NestedEnum?>? values() { |
| final _$$classRef = _class.reference; |
| return _values(_$$classRef.pointer, _id_values.pointer) |
| .object<jni$_.JArray<TestClass034$NestedEnum?>?>(); |
| } |
| |
| static final _id_valueOf = _class.staticMethodId( |
| r'valueOf', |
| r'(Ljava/lang/String;)Lcom/example/TestClass034$NestedEnum;', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `static public com.example.TestClass034$NestedEnum valueOf(java.lang.String name)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass034$NestedEnum? valueOf( |
| jni$_.JString? name, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$name = name?.reference ?? jni$_.jNullReference; |
| return _valueOf(_$$classRef.pointer, _id_valueOf.pointer, _$name.pointer) |
| .object<TestClass034$NestedEnum?>(); |
| } |
| } |
| |
| final class $TestClass034$NestedEnum$Type$ |
| extends jni$_.JType<TestClass034$NestedEnum> { |
| @jni$_.internal |
| const $TestClass034$NestedEnum$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass034$NestedEnum;'; |
| } |
| |
| /// from: `com.example.TestClass035` |
| extension type TestClass035<$T extends jni$_.JObject, |
| $U extends jni$_.JObject>._(jni$_.JObject _$this) implements GrandParent { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass035'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass035> type = $TestClass035$Type$(); |
| } |
| |
| extension TestClass035$$Methods<$T extends jni$_.JObject, |
| $U extends jni$_.JObject> on TestClass035<$T, $U> { |
| static final _id_grandParentMethod = TestClass035._class.instanceMethodId( |
| r'grandParentMethod', |
| r'()V', |
| ); |
| |
| static final _grandParentMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void grandParentMethod()` |
| void grandParentMethod() { |
| final _$$selfRef = reference; |
| _grandParentMethod(_$$selfRef.pointer, _id_grandParentMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_myMethod = TestClass035._class.instanceMethodId( |
| r'myMethod', |
| r'(Ljava/util/List;I)Ljava/util/List;', |
| ); |
| |
| static final _myMethod = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public abstract java.util.List<S> myMethod(java.util.List<S> p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JList<$S> myMethod<$S extends jni$_.JObject>( |
| jni$_.JList<$S> p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1.reference; |
| return _myMethod(_$$selfRef.pointer, _id_myMethod.pointer, _$p1.pointer, p2) |
| .object<jni$_.JList<$S>>(); |
| } |
| } |
| |
| final class $TestClass035$Type$ extends jni$_.JType<TestClass035> { |
| @jni$_.internal |
| const $TestClass035$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass035;'; |
| } |
| |
| /// from: `com.example.TestClass035$Nested` |
| extension type TestClass035$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass035$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass035$Nested> type = |
| $TestClass035$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass035$Nested() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass035$Nested>(); |
| } |
| } |
| |
| final class $TestClass035$Nested$Type$ |
| extends jni$_.JType<TestClass035$Nested> { |
| @jni$_.internal |
| const $TestClass035$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass035$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass037` |
| extension type TestClass037<$T extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject, DiamondLeft, DiamondRight { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass037'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass037> type = $TestClass037$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass037() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass037<$T>>(); |
| } |
| } |
| |
| extension TestClass037$$Methods<$T extends jni$_.JObject?> on TestClass037<$T> { |
| static final _id_baseMethod = TestClass037._class.instanceMethodId( |
| r'baseMethod', |
| r'()V', |
| ); |
| |
| static final _baseMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void baseMethod()` |
| void baseMethod() { |
| final _$$selfRef = reference; |
| _baseMethod(_$$selfRef.pointer, _id_baseMethod.pointer).check(); |
| } |
| |
| static final _id_leftMethod = TestClass037._class.instanceMethodId( |
| r'leftMethod', |
| r'()V', |
| ); |
| |
| static final _leftMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void leftMethod()` |
| void leftMethod() { |
| final _$$selfRef = reference; |
| _leftMethod(_$$selfRef.pointer, _id_leftMethod.pointer).check(); |
| } |
| |
| static final _id_rightMethod = TestClass037._class.instanceMethodId( |
| r'rightMethod', |
| r'()V', |
| ); |
| |
| static final _rightMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void rightMethod()` |
| void rightMethod() { |
| final _$$selfRef = reference; |
| _rightMethod(_$$selfRef.pointer, _id_rightMethod.pointer).check(); |
| } |
| |
| static final _id_get$foo = TestClass037._class.instanceMethodId( |
| r'getFoo', |
| r'()[C', |
| ); |
| |
| static final _get$foo = 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 char[] getFoo()` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JCharArray get foo { |
| final _$$selfRef = reference; |
| return _get$foo(_$$selfRef.pointer, _id_get$foo.pointer) |
| .object<jni$_.JCharArray>(); |
| } |
| } |
| |
| final class $TestClass037$Type$ extends jni$_.JType<TestClass037> { |
| @jni$_.internal |
| const $TestClass037$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass037;'; |
| } |
| |
| /// from: `com.example.TestClass037$Nested` |
| extension type TestClass037$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass037$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass037$Nested> type = |
| $TestClass037$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass037$Nested() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass037$Nested>(); |
| } |
| } |
| |
| final class $TestClass037$Nested$Type$ |
| extends jni$_.JType<TestClass037$Nested> { |
| @jni$_.internal |
| const $TestClass037$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass037$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass038` |
| extension type TestClass038<$T extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements GrandParent { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass038'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass038> type = $TestClass038$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass038() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass038<$T>>(); |
| } |
| |
| static final _id_isFoo = _class.staticMethodId( |
| r'isFoo', |
| r'()[Ljava/lang/String;', |
| ); |
| |
| static final _isFoo = 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.lang.String[] isFoo()` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JArray<jni$_.JString>? |
| isFoo<$S extends jni$_.JObject?, $V extends jni$_.JObject?>() { |
| final _$$classRef = _class.reference; |
| return _isFoo(_$$classRef.pointer, _id_isFoo.pointer) |
| .object<jni$_.JArray<jni$_.JString>?>(); |
| } |
| } |
| |
| extension TestClass038$$Methods<$T extends jni$_.JObject?> on TestClass038<$T> { |
| static final _id_grandParentMethod = TestClass038._class.instanceMethodId( |
| r'grandParentMethod', |
| r'()V', |
| ); |
| |
| static final _grandParentMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void grandParentMethod()` |
| void grandParentMethod() { |
| final _$$selfRef = reference; |
| _grandParentMethod(_$$selfRef.pointer, _id_grandParentMethod.pointer) |
| .check(); |
| } |
| } |
| |
| final class $TestClass038$Type$ extends jni$_.JType<TestClass038> { |
| @jni$_.internal |
| const $TestClass038$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass038;'; |
| } |
| |
| /// from: `com.example.TestClass039` |
| extension type TestClass039<$T extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface, BaseInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass039'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass039> type = $TestClass039$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass039> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'otherInterfaceMethod()V') { |
| _$impls[$p]!.otherInterfaceMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'baseMethod()V') { |
| _$impls[$p]!.baseMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'getFoo()I') { |
| final $r = _$impls[$p]!.getFoo(); |
| return $r.toJInteger().reference.toPointer(); |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn<$T extends jni$_.JObject?>( |
| jni$_.JImplementer implementer, |
| $TestClass039<$T> $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass039', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.otherInterfaceMethod$async) r'otherInterfaceMethod()V', |
| if ($impl.baseMethod$async) r'baseMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass039.implement( |
| $TestClass039<$T> $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass039<$T>>(); |
| } |
| } |
| |
| extension TestClass039$$Methods<$T extends jni$_.JObject?> on TestClass039<$T> { |
| static final _id_otherInterfaceMethod = TestClass039._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_baseMethod = TestClass039._class.instanceMethodId( |
| r'baseMethod', |
| r'()V', |
| ); |
| |
| static final _baseMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void baseMethod()` |
| void baseMethod() { |
| final _$$selfRef = reference; |
| _baseMethod(_$$selfRef.pointer, _id_baseMethod.pointer).check(); |
| } |
| |
| static final _id_getFoo = TestClass039._class.instanceMethodId( |
| r'getFoo', |
| r'()I', |
| ); |
| |
| static final _getFoo = 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 abstract int getFoo()` |
| core$_.int getFoo<$S extends jni$_.JObject?, $V extends jni$_.JObject?>() { |
| final _$$selfRef = reference; |
| return _getFoo(_$$selfRef.pointer, _id_getFoo.pointer).integer; |
| } |
| } |
| |
| abstract base mixin class $TestClass039<$T extends jni$_.JObject?> { |
| factory $TestClass039({ |
| required void Function() otherInterfaceMethod, |
| core$_.bool otherInterfaceMethod$async, |
| required void Function() baseMethod, |
| core$_.bool baseMethod$async, |
| required core$_.int Function() getFoo, |
| }) = _$TestClass039<$T>; |
| |
| void otherInterfaceMethod(); |
| core$_.bool get otherInterfaceMethod$async => false; |
| void baseMethod(); |
| core$_.bool get baseMethod$async => false; |
| core$_.int getFoo(); |
| } |
| |
| final class _$TestClass039<$T extends jni$_.JObject?> with $TestClass039<$T> { |
| _$TestClass039({ |
| required void Function() otherInterfaceMethod, |
| this.otherInterfaceMethod$async = false, |
| required void Function() baseMethod, |
| this.baseMethod$async = false, |
| required core$_.int Function() getFoo, |
| }) : _otherInterfaceMethod = otherInterfaceMethod, |
| _baseMethod = baseMethod, |
| _getFoo = getFoo; |
| |
| final void Function() _otherInterfaceMethod; |
| final core$_.bool otherInterfaceMethod$async; |
| final void Function() _baseMethod; |
| final core$_.bool baseMethod$async; |
| final core$_.int Function() _getFoo; |
| |
| void otherInterfaceMethod() { |
| return _otherInterfaceMethod(); |
| } |
| |
| void baseMethod() { |
| return _baseMethod(); |
| } |
| |
| core$_.int getFoo() { |
| return _getFoo(); |
| } |
| } |
| |
| final class $TestClass039$Type$ extends jni$_.JType<TestClass039> { |
| @jni$_.internal |
| const $TestClass039$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass039;'; |
| } |
| |
| /// from: `com.example.TestClass039$Nested` |
| extension type TestClass039$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass039$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass039$Nested> type = |
| $TestClass039$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass039$Nested() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass039$Nested>(); |
| } |
| } |
| |
| final class $TestClass039$Nested$Type$ |
| extends jni$_.JType<TestClass039$Nested> { |
| @jni$_.internal |
| const $TestClass039$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass039$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass040` |
| extension type TestClass040._(jni$_.JObject _$this) implements GrandParent { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass040'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass040> type = $TestClass040$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass040() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer).object<TestClass040>(); |
| } |
| } |
| |
| extension TestClass040$$Methods on TestClass040 { |
| static final _id_grandParentMethod = TestClass040._class.instanceMethodId( |
| r'grandParentMethod', |
| r'()V', |
| ); |
| |
| static final _grandParentMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void grandParentMethod()` |
| void grandParentMethod() { |
| final _$$selfRef = reference; |
| _grandParentMethod(_$$selfRef.pointer, _id_grandParentMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_myMethod = TestClass040._class.instanceMethodId( |
| r'myMethod', |
| r'()[Lcom/example/CustomInterface;', |
| ); |
| |
| static final _myMethod = 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 com.example.CustomInterface[] myMethod()` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JArray<CustomInterface<$S?>?>? myMethod<$S extends jni$_.JObject?>() { |
| final _$$selfRef = reference; |
| return _myMethod(_$$selfRef.pointer, _id_myMethod.pointer) |
| .object<jni$_.JArray<CustomInterface<$S?>?>?>(); |
| } |
| } |
| |
| final class $TestClass040$Type$ extends jni$_.JType<TestClass040> { |
| @jni$_.internal |
| const $TestClass040$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass040;'; |
| } |
| |
| /// from: `com.example.TestClass040$Nested` |
| extension type TestClass040$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass040$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass040$Nested> type = |
| $TestClass040$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'(Lcom/example/TestClass040;)V', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void <init>(com.example.TestClass040 $outerClass)` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass040$Nested( |
| TestClass040 $outerClass, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$$outerClass = $outerClass.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer, _$$outerClass.pointer) |
| .object<TestClass040$Nested>(); |
| } |
| } |
| |
| final class $TestClass040$Nested$Type$ |
| extends jni$_.JType<TestClass040$Nested> { |
| @jni$_.internal |
| const $TestClass040$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass040$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass041` |
| extension type TestClass041<$T extends jni$_.JObject, |
| $U extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface, BaseInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass041'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass041> type = $TestClass041$Type$(); |
| static final _id_myField = _class.staticFieldId( |
| r'myField', |
| r'Ljava/lang/String;', |
| ); |
| |
| /// from: `static public final java.lang.String myField` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JString? get myField => |
| _id_myField.getNullable(_class, jni$_.JString.type) as jni$_.JString?; |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass041> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'otherInterfaceMethod()V') { |
| _$impls[$p]!.otherInterfaceMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'baseMethod()V') { |
| _$impls[$p]!.baseMethod(); |
| return jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn<$T extends jni$_.JObject, $U extends jni$_.JObject>( |
| jni$_.JImplementer implementer, |
| $TestClass041<$T, $U> $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass041', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.otherInterfaceMethod$async) r'otherInterfaceMethod()V', |
| if ($impl.baseMethod$async) r'baseMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass041.implement( |
| $TestClass041<$T, $U> $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass041<$T, $U>>(); |
| } |
| } |
| |
| extension TestClass041$$Methods<$T extends jni$_.JObject, |
| $U extends jni$_.JObject> on TestClass041<$T, $U> { |
| static final _id_otherInterfaceMethod = TestClass041._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_baseMethod = TestClass041._class.instanceMethodId( |
| r'baseMethod', |
| r'()V', |
| ); |
| |
| static final _baseMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void baseMethod()` |
| void baseMethod() { |
| final _$$selfRef = reference; |
| _baseMethod(_$$selfRef.pointer, _id_baseMethod.pointer).check(); |
| } |
| } |
| |
| abstract base mixin class $TestClass041<$T extends jni$_.JObject, |
| $U extends jni$_.JObject> { |
| factory $TestClass041({ |
| required void Function() otherInterfaceMethod, |
| core$_.bool otherInterfaceMethod$async, |
| required void Function() baseMethod, |
| core$_.bool baseMethod$async, |
| }) = _$TestClass041<$T, $U>; |
| |
| void otherInterfaceMethod(); |
| core$_.bool get otherInterfaceMethod$async => false; |
| void baseMethod(); |
| core$_.bool get baseMethod$async => false; |
| } |
| |
| final class _$TestClass041<$T extends jni$_.JObject, $U extends jni$_.JObject> |
| with $TestClass041<$T, $U> { |
| _$TestClass041({ |
| required void Function() otherInterfaceMethod, |
| this.otherInterfaceMethod$async = false, |
| required void Function() baseMethod, |
| this.baseMethod$async = false, |
| }) : _otherInterfaceMethod = otherInterfaceMethod, |
| _baseMethod = baseMethod; |
| |
| final void Function() _otherInterfaceMethod; |
| final core$_.bool otherInterfaceMethod$async; |
| final void Function() _baseMethod; |
| final core$_.bool baseMethod$async; |
| |
| void otherInterfaceMethod() { |
| return _otherInterfaceMethod(); |
| } |
| |
| void baseMethod() { |
| return _baseMethod(); |
| } |
| } |
| |
| final class $TestClass041$Type$ extends jni$_.JType<TestClass041> { |
| @jni$_.internal |
| const $TestClass041$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass041;'; |
| } |
| |
| /// from: `com.example.TestClass042` |
| extension type TestClass042<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?>._(jni$_.JObject _$this) implements GrandParent { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass042'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass042> type = $TestClass042$Type$(); |
| static final _id_create = _class.constructorId( |
| r'(Lcom/example/CustomInterface;)V', |
| ); |
| |
| static final _create = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void <init>(com.example.CustomInterface<S> p1)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass042<$T, $U> create<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?, $S extends jni$_.JObject?>( |
| CustomInterface<$S?>? p1, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _create(_$$classRef.pointer, _id_create.pointer, _$p1.pointer) |
| .object<TestClass042<$T, $U>>(); |
| } |
| } |
| |
| extension TestClass042$$Methods<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?> on TestClass042<$T, $U> { |
| static final _id_grandParentMethod = TestClass042._class.instanceMethodId( |
| r'grandParentMethod', |
| r'()V', |
| ); |
| |
| static final _grandParentMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void grandParentMethod()` |
| void grandParentMethod() { |
| final _$$selfRef = reference; |
| _grandParentMethod(_$$selfRef.pointer, _id_grandParentMethod.pointer) |
| .check(); |
| } |
| } |
| |
| final class $TestClass042$Type$ extends jni$_.JType<TestClass042> { |
| @jni$_.internal |
| const $TestClass042$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass042;'; |
| } |
| |
| /// from: `com.example.TestClass042$Nested` |
| extension type TestClass042$Nested<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass042$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass042$Nested> type = |
| $TestClass042$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'(Lcom/example/TestClass042;)V', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void <init>(com.example.TestClass042<T, U> $outerClass)` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass042$Nested( |
| TestClass042<$T?, $U?> $outerClass, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$$outerClass = $outerClass.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer, _$$outerClass.pointer) |
| .object<TestClass042$Nested<$T, $U>>(); |
| } |
| } |
| |
| final class $TestClass042$Nested$Type$ |
| extends jni$_.JType<TestClass042$Nested> { |
| @jni$_.internal |
| const $TestClass042$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass042$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass043` |
| extension type TestClass043<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements GenericParent<jni$_.JObject?> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass043'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass043> type = $TestClass043$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass043() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass043<$T, $U>>(); |
| } |
| } |
| |
| extension TestClass043$$Methods<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?> on TestClass043<$T, $U> { |
| static final _id_myField = TestClass043._class.instanceFieldId( |
| r'myField', |
| r'[Ljava/util/List;', |
| ); |
| |
| /// from: `public final java.util.List[] myField` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JArray<jni$_.JList<$T?>>? get myField => _id_myField.getNullable( |
| this, jni$_.JArray.type<jni$_.JList<$T?>>(jni$_.JList.type)) |
| as jni$_.JArray<jni$_.JList<$T?>>?; |
| |
| static final _id_genericParentMethod = TestClass043._class.instanceMethodId( |
| r'genericParentMethod', |
| r'(Ljava/lang/Object;)V', |
| ); |
| |
| static final _genericParentMethod = 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 genericParentMethod(java.lang.Object t)` |
| void genericParentMethod( |
| jni$_.JObject? t, |
| ) { |
| final _$$selfRef = reference; |
| final _$t = t?.reference ?? jni$_.jNullReference; |
| _genericParentMethod( |
| _$$selfRef.pointer, _id_genericParentMethod.pointer, _$t.pointer) |
| .check(); |
| } |
| } |
| |
| final class $TestClass043$Type$ extends jni$_.JType<TestClass043> { |
| @jni$_.internal |
| const $TestClass043$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass043;'; |
| } |
| |
| /// from: `com.example.TestClass044` |
| extension type TestClass044<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass044'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass044> type = $TestClass044$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass044() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass044<$T, $U>>(); |
| } |
| } |
| |
| extension TestClass044$$Methods<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?> on TestClass044<$T, $U> { |
| static final _id_otherInterfaceMethod = TestClass044._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_isFoo = TestClass044._class.instanceMethodId( |
| r'isFoo', |
| r'(F)F', |
| ); |
| |
| static final _isFoo = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| jni$_.VarArgs<(jni$_.Double,)>)>>('globalEnv_CallFloatMethod') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, jni$_.JMethodIDPtr, core$_.double)>(); |
| |
| /// from: `public native float isFoo(float p1)` |
| core$_.double isFoo<$S extends jni$_.JObject?>( |
| core$_.double p1, |
| ) { |
| final _$$selfRef = reference; |
| return _isFoo(_$$selfRef.pointer, _id_isFoo.pointer, p1).float; |
| } |
| } |
| |
| final class $TestClass044$Type$ extends jni$_.JType<TestClass044> { |
| @jni$_.internal |
| const $TestClass044$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass044;'; |
| } |
| |
| /// from: `com.example.TestClass045` |
| extension type TestClass045<$T extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass045'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass045> type = $TestClass045$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass045> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'otherInterfaceMethod()V') { |
| _$impls[$p]!.otherInterfaceMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'isFoo([Ljava/util/Map;)[Ljava/util/Map;') { |
| final $r = _$impls[$p]!.isFoo( |
| ($a![0] as jni$_.JArray<jni$_.JMap?>?), |
| ); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn<$T extends jni$_.JObject?>( |
| jni$_.JImplementer implementer, |
| $TestClass045<$T> $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass045', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.otherInterfaceMethod$async) r'otherInterfaceMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass045.implement( |
| $TestClass045<$T> $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass045<$T>>(); |
| } |
| } |
| |
| extension TestClass045$$Methods<$T extends jni$_.JObject?> on TestClass045<$T> { |
| static final _id_otherInterfaceMethod = TestClass045._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_isFoo = TestClass045._class.instanceMethodId( |
| r'isFoo', |
| r'([Ljava/util/Map;)[Ljava/util/Map;', |
| ); |
| |
| static final _isFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public abstract java.util.Map[] isFoo(java.util.Map[] p1)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JArray<jni$_.JMap<$T?, $T?>?>? isFoo( |
| jni$_.JArray<jni$_.JMap<$T?, $T?>?>? p1, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _isFoo(_$$selfRef.pointer, _id_isFoo.pointer, _$p1.pointer) |
| .object<jni$_.JArray<jni$_.JMap<$T?, $T?>?>?>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass045<$T extends jni$_.JObject?> { |
| factory $TestClass045({ |
| required void Function() otherInterfaceMethod, |
| core$_.bool otherInterfaceMethod$async, |
| required jni$_.JArray<jni$_.JMap?>? Function(jni$_.JArray<jni$_.JMap?>? p1) |
| isFoo, |
| }) = _$TestClass045<$T>; |
| |
| void otherInterfaceMethod(); |
| core$_.bool get otherInterfaceMethod$async => false; |
| jni$_.JArray<jni$_.JMap?>? isFoo(jni$_.JArray<jni$_.JMap?>? p1); |
| } |
| |
| final class _$TestClass045<$T extends jni$_.JObject?> with $TestClass045<$T> { |
| _$TestClass045({ |
| required void Function() otherInterfaceMethod, |
| this.otherInterfaceMethod$async = false, |
| required jni$_.JArray<jni$_.JMap?>? Function(jni$_.JArray<jni$_.JMap?>? p1) |
| isFoo, |
| }) : _otherInterfaceMethod = otherInterfaceMethod, |
| _isFoo = isFoo; |
| |
| final void Function() _otherInterfaceMethod; |
| final core$_.bool otherInterfaceMethod$async; |
| final jni$_.JArray<jni$_.JMap?>? Function(jni$_.JArray<jni$_.JMap?>? p1) |
| _isFoo; |
| |
| void otherInterfaceMethod() { |
| return _otherInterfaceMethod(); |
| } |
| |
| jni$_.JArray<jni$_.JMap?>? isFoo(jni$_.JArray<jni$_.JMap?>? p1) { |
| return _isFoo(p1); |
| } |
| } |
| |
| final class $TestClass045$Type$ extends jni$_.JType<TestClass045> { |
| @jni$_.internal |
| const $TestClass045$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass045;'; |
| } |
| |
| /// from: `com.example.TestClass045$Nested` |
| extension type TestClass045$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass045$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass045$Nested> type = |
| $TestClass045$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass045$Nested() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass045$Nested>(); |
| } |
| } |
| |
| final class $TestClass045$Nested$Type$ |
| extends jni$_.JType<TestClass045$Nested> { |
| @jni$_.internal |
| const $TestClass045$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass045$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass046` |
| extension type TestClass046<$T extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject, GenericInterface<jni$_.JString?> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass046'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass046> type = $TestClass046$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass046> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == |
| r'genericInterfaceMethod(Ljava/lang/String;)Ljava/lang/String;') { |
| final $r = _$impls[$p]!.genericInterfaceMethod( |
| ($a![0] as jni$_.JString?), |
| ); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| if ($d == |
| r'getFoo([Lcom/example/NestedCustom$Nested;I)[Lcom/example/NestedCustom$Nested;') { |
| final $r = _$impls[$p]!.getFoo( |
| ($a![0] as jni$_.JArray<NestedCustom$Nested?>?), |
| ($a![1] as jni$_.JInteger).toDartInt(releaseOriginal: true), |
| ); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn<$T extends jni$_.JObject?>( |
| jni$_.JImplementer implementer, |
| $TestClass046<$T> $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass046', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass046.implement( |
| $TestClass046<$T> $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass046<$T>>(); |
| } |
| } |
| |
| extension TestClass046$$Methods<$T extends jni$_.JObject?> on TestClass046<$T> { |
| static final _id_genericInterfaceMethod = |
| TestClass046._class.instanceMethodId( |
| r'genericInterfaceMethod', |
| r'(Ljava/lang/String;)Ljava/lang/String;', |
| ); |
| |
| static final _genericInterfaceMethod = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `default public java.lang.String genericInterfaceMethod(java.lang.String t)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JString? genericInterfaceMethod( |
| jni$_.JString? t, |
| ) { |
| final _$$selfRef = reference; |
| final _$t = t?.reference ?? jni$_.jNullReference; |
| return _genericInterfaceMethod( |
| _$$selfRef.pointer, _id_genericInterfaceMethod.pointer, _$t.pointer) |
| .object<jni$_.JString?>(); |
| } |
| |
| static final _id_getFoo = TestClass046._class.instanceMethodId( |
| r'getFoo', |
| r'([Lcom/example/NestedCustom$Nested;I)[Lcom/example/NestedCustom$Nested;', |
| ); |
| |
| static final _getFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `default public com.example.NestedCustom$Nested[] getFoo(com.example.NestedCustom$Nested[] p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JArray<NestedCustom$Nested<$T?, $T?, $T?>?>? getFoo( |
| jni$_.JArray<NestedCustom$Nested<$T?, $T?, $T?>?>? p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _getFoo(_$$selfRef.pointer, _id_getFoo.pointer, _$p1.pointer, p2) |
| .object<jni$_.JArray<NestedCustom$Nested<$T?, $T?, $T?>?>?>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass046<$T extends jni$_.JObject?> { |
| factory $TestClass046({ |
| required jni$_.JString? Function(jni$_.JString? t) genericInterfaceMethod, |
| required jni$_.JArray<NestedCustom$Nested?>? Function( |
| jni$_.JArray<NestedCustom$Nested?>? p1, core$_.int p2) |
| getFoo, |
| }) = _$TestClass046<$T>; |
| |
| jni$_.JString? genericInterfaceMethod(jni$_.JString? t); |
| jni$_.JArray<NestedCustom$Nested?>? getFoo( |
| jni$_.JArray<NestedCustom$Nested?>? p1, core$_.int p2); |
| } |
| |
| final class _$TestClass046<$T extends jni$_.JObject?> with $TestClass046<$T> { |
| _$TestClass046({ |
| required jni$_.JString? Function(jni$_.JString? t) genericInterfaceMethod, |
| required jni$_.JArray<NestedCustom$Nested?>? Function( |
| jni$_.JArray<NestedCustom$Nested?>? p1, core$_.int p2) |
| getFoo, |
| }) : _genericInterfaceMethod = genericInterfaceMethod, |
| _getFoo = getFoo; |
| |
| final jni$_.JString? Function(jni$_.JString? t) _genericInterfaceMethod; |
| final jni$_.JArray<NestedCustom$Nested?>? Function( |
| jni$_.JArray<NestedCustom$Nested?>? p1, core$_.int p2) _getFoo; |
| |
| jni$_.JString? genericInterfaceMethod(jni$_.JString? t) { |
| return _genericInterfaceMethod(t); |
| } |
| |
| jni$_.JArray<NestedCustom$Nested?>? getFoo( |
| jni$_.JArray<NestedCustom$Nested?>? p1, core$_.int p2) { |
| return _getFoo(p1, p2); |
| } |
| } |
| |
| final class $TestClass046$Type$ extends jni$_.JType<TestClass046> { |
| @jni$_.internal |
| const $TestClass046$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass046;'; |
| } |
| |
| /// from: `com.example.TestClass046$NestedEnum` |
| extension type TestClass046$NestedEnum._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass046$NestedEnum'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass046$NestedEnum> type = |
| $TestClass046$NestedEnum$Type$(); |
| static final _id_V1 = _class.staticFieldId( |
| r'V1', |
| r'Lcom/example/TestClass046$NestedEnum;', |
| ); |
| |
| /// from: `static public final com.example.TestClass046$NestedEnum V1` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass046$NestedEnum get V1 => |
| _id_V1.get(_class, TestClass046$NestedEnum.type) |
| as TestClass046$NestedEnum; |
| |
| static final _id_values = _class.staticMethodId( |
| r'values', |
| r'()[Lcom/example/TestClass046$NestedEnum;', |
| ); |
| |
| static final _values = 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 com.example.TestClass046$NestedEnum[] values()` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JArray<TestClass046$NestedEnum?>? values() { |
| final _$$classRef = _class.reference; |
| return _values(_$$classRef.pointer, _id_values.pointer) |
| .object<jni$_.JArray<TestClass046$NestedEnum?>?>(); |
| } |
| |
| static final _id_valueOf = _class.staticMethodId( |
| r'valueOf', |
| r'(Ljava/lang/String;)Lcom/example/TestClass046$NestedEnum;', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `static public com.example.TestClass046$NestedEnum valueOf(java.lang.String name)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass046$NestedEnum? valueOf( |
| jni$_.JString? name, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$name = name?.reference ?? jni$_.jNullReference; |
| return _valueOf(_$$classRef.pointer, _id_valueOf.pointer, _$name.pointer) |
| .object<TestClass046$NestedEnum?>(); |
| } |
| } |
| |
| final class $TestClass046$NestedEnum$Type$ |
| extends jni$_.JType<TestClass046$NestedEnum> { |
| @jni$_.internal |
| const $TestClass046$NestedEnum$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass046$NestedEnum;'; |
| } |
| |
| /// from: `com.example.TestClass047` |
| extension type TestClass047<$T extends jni$_.JObject, |
| $U extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements GenericParent<jni$_.JObject?> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass047'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass047> type = $TestClass047$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass047() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass047<$T, $U>>(); |
| } |
| } |
| |
| extension TestClass047$$Methods<$T extends jni$_.JObject, |
| $U extends jni$_.JObject> on TestClass047<$T, $U> { |
| static final _id_genericParentMethod = TestClass047._class.instanceMethodId( |
| r'genericParentMethod', |
| r'(Ljava/lang/Object;)V', |
| ); |
| |
| static final _genericParentMethod = 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 genericParentMethod(java.lang.Object t)` |
| void genericParentMethod( |
| jni$_.JObject? t, |
| ) { |
| final _$$selfRef = reference; |
| final _$t = t?.reference ?? jni$_.jNullReference; |
| _genericParentMethod( |
| _$$selfRef.pointer, _id_genericParentMethod.pointer, _$t.pointer) |
| .check(); |
| } |
| |
| static final _id_setFoo = TestClass047._class.instanceMethodId( |
| r'setFoo', |
| r'(Lcom/example/CustomRecord;I)Lcom/example/CustomRecord;', |
| ); |
| |
| static final _setFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public com.example.CustomRecord<T> setFoo(com.example.CustomRecord<T> p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JObject setFoo( |
| jni$_.JObject p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1.reference; |
| return _setFoo(_$$selfRef.pointer, _id_setFoo.pointer, _$p1.pointer, p2) |
| .object<jni$_.JObject>(); |
| } |
| } |
| |
| final class $TestClass047$Type$ extends jni$_.JType<TestClass047> { |
| @jni$_.internal |
| const $TestClass047$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass047;'; |
| } |
| |
| /// from: `com.example.TestClass048` |
| extension type TestClass048<$T extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements jni$_.JObject, DiamondLeft, DiamondRight { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass048'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass048> type = $TestClass048$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass048() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass048<$T>>(); |
| } |
| } |
| |
| extension TestClass048$$Methods<$T extends jni$_.JObject> on TestClass048<$T> { |
| static final _id_baseMethod = TestClass048._class.instanceMethodId( |
| r'baseMethod', |
| r'()V', |
| ); |
| |
| static final _baseMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void baseMethod()` |
| void baseMethod() { |
| final _$$selfRef = reference; |
| _baseMethod(_$$selfRef.pointer, _id_baseMethod.pointer).check(); |
| } |
| |
| static final _id_leftMethod = TestClass048._class.instanceMethodId( |
| r'leftMethod', |
| r'()V', |
| ); |
| |
| static final _leftMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void leftMethod()` |
| void leftMethod() { |
| final _$$selfRef = reference; |
| _leftMethod(_$$selfRef.pointer, _id_leftMethod.pointer).check(); |
| } |
| |
| static final _id_rightMethod = TestClass048._class.instanceMethodId( |
| r'rightMethod', |
| r'()V', |
| ); |
| |
| static final _rightMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void rightMethod()` |
| void rightMethod() { |
| final _$$selfRef = reference; |
| _rightMethod(_$$selfRef.pointer, _id_rightMethod.pointer).check(); |
| } |
| |
| static final _id_myMethod = TestClass048._class.instanceMethodId( |
| r'myMethod', |
| r'()Lcom/example/CustomEnum;', |
| ); |
| |
| static final _myMethod = 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 native com.example.CustomEnum myMethod()` |
| /// The returned object must be released after use, by calling the [release] method. |
| CustomEnum? myMethod() { |
| final _$$selfRef = reference; |
| return _myMethod(_$$selfRef.pointer, _id_myMethod.pointer) |
| .object<CustomEnum?>(); |
| } |
| } |
| |
| final class $TestClass048$Type$ extends jni$_.JType<TestClass048> { |
| @jni$_.internal |
| const $TestClass048$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass048;'; |
| } |
| |
| /// from: `com.example.TestClass048$Nested` |
| extension type TestClass048$Nested<$T extends jni$_.JObject>._( |
| jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass048$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass048$Nested> type = |
| $TestClass048$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'(Lcom/example/TestClass048;)V', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void <init>(com.example.TestClass048<T> $outerClass)` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass048$Nested( |
| TestClass048<$T> $outerClass, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$$outerClass = $outerClass.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer, _$$outerClass.pointer) |
| .object<TestClass048$Nested<$T>>(); |
| } |
| } |
| |
| final class $TestClass048$Nested$Type$ |
| extends jni$_.JType<TestClass048$Nested> { |
| @jni$_.internal |
| const $TestClass048$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass048$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass049` |
| extension type TestClass049<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements GenericParent<jni$_.JObject?> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass049'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass049> type = $TestClass049$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass049() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass049<$T, $U>>(); |
| } |
| } |
| |
| extension TestClass049$$Methods<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?> on TestClass049<$T, $U> { |
| static final _id_genericParentMethod = TestClass049._class.instanceMethodId( |
| r'genericParentMethod', |
| r'(Ljava/lang/Object;)V', |
| ); |
| |
| static final _genericParentMethod = 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 genericParentMethod(java.lang.Object t)` |
| void genericParentMethod( |
| jni$_.JObject? t, |
| ) { |
| final _$$selfRef = reference; |
| final _$t = t?.reference ?? jni$_.jNullReference; |
| _genericParentMethod( |
| _$$selfRef.pointer, _id_genericParentMethod.pointer, _$t.pointer) |
| .check(); |
| } |
| |
| static final _id_myMethod = TestClass049._class.instanceMethodId( |
| r'myMethod', |
| r'(Lcom/example/CustomEnum;I)Lcom/example/CustomEnum;', |
| ); |
| |
| static final _myMethod = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public native com.example.CustomEnum myMethod(com.example.CustomEnum p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| CustomEnum? myMethod<$S extends jni$_.JObject?, $V extends jni$_.JObject?>( |
| CustomEnum? p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _myMethod(_$$selfRef.pointer, _id_myMethod.pointer, _$p1.pointer, p2) |
| .object<CustomEnum?>(); |
| } |
| } |
| |
| final class $TestClass049$Type$ extends jni$_.JType<TestClass049> { |
| @jni$_.internal |
| const $TestClass049$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass049;'; |
| } |
| |
| /// from: `com.example.TestClass050` |
| extension type TestClass050._(jni$_.JObject _$this) implements GrandParent { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass050'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass050> type = $TestClass050$Type$(); |
| static final _id_create = _class.constructorId( |
| r'(DI)V', |
| ); |
| |
| static final _create = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| jni$_.VarArgs<(jni$_.Double, jni$_.Int32)>)>>( |
| 'globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, core$_.double, core$_.int)>(); |
| |
| /// from: `public void <init>(double p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass050 create<$S extends jni$_.JObject>( |
| core$_.double p1, |
| core$_.int p2, |
| ) { |
| final _$$classRef = _class.reference; |
| return _create(_$$classRef.pointer, _id_create.pointer, p1, p2) |
| .object<TestClass050>(); |
| } |
| } |
| |
| extension TestClass050$$Methods on TestClass050 { |
| static final _id_grandParentMethod = TestClass050._class.instanceMethodId( |
| r'grandParentMethod', |
| r'()V', |
| ); |
| |
| static final _grandParentMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void grandParentMethod()` |
| void grandParentMethod() { |
| final _$$selfRef = reference; |
| _grandParentMethod(_$$selfRef.pointer, _id_grandParentMethod.pointer) |
| .check(); |
| } |
| } |
| |
| final class $TestClass050$Type$ extends jni$_.JType<TestClass050> { |
| @jni$_.internal |
| const $TestClass050$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass050;'; |
| } |
| |
| /// from: `com.example.TestClass051` |
| extension type TestClass051._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass051'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass051> type = $TestClass051$Type$(); |
| static final _id_myMethod = _class.staticMethodId( |
| r'myMethod', |
| r'()[C', |
| ); |
| |
| static final _myMethod = 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 char[] myMethod()` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JCharArray? myMethod<$S extends jni$_.JObject?>() { |
| final _$$classRef = _class.reference; |
| return _myMethod(_$$classRef.pointer, _id_myMethod.pointer) |
| .object<jni$_.JCharArray?>(); |
| } |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass051> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'otherInterfaceMethod()V') { |
| _$impls[$p]!.otherInterfaceMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'myMethod()[C') { |
| final $r = _$impls[$p]!.myMethod(); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $TestClass051 $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass051', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.otherInterfaceMethod$async) r'otherInterfaceMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass051.implement( |
| $TestClass051 $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass051>(); |
| } |
| } |
| |
| extension TestClass051$$Methods on TestClass051 { |
| static final _id_otherInterfaceMethod = TestClass051._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| } |
| |
| abstract base mixin class $TestClass051 { |
| factory $TestClass051({ |
| required void Function() otherInterfaceMethod, |
| core$_.bool otherInterfaceMethod$async, |
| required jni$_.JCharArray? Function() myMethod, |
| }) = _$TestClass051; |
| |
| void otherInterfaceMethod(); |
| core$_.bool get otherInterfaceMethod$async => false; |
| jni$_.JCharArray? myMethod(); |
| } |
| |
| final class _$TestClass051 with $TestClass051 { |
| _$TestClass051({ |
| required void Function() otherInterfaceMethod, |
| this.otherInterfaceMethod$async = false, |
| required jni$_.JCharArray? Function() myMethod, |
| }) : _otherInterfaceMethod = otherInterfaceMethod, |
| _myMethod = myMethod; |
| |
| final void Function() _otherInterfaceMethod; |
| final core$_.bool otherInterfaceMethod$async; |
| final jni$_.JCharArray? Function() _myMethod; |
| |
| void otherInterfaceMethod() { |
| return _otherInterfaceMethod(); |
| } |
| |
| jni$_.JCharArray? myMethod() { |
| return _myMethod(); |
| } |
| } |
| |
| final class $TestClass051$Type$ extends jni$_.JType<TestClass051> { |
| @jni$_.internal |
| const $TestClass051$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass051;'; |
| } |
| |
| /// from: `com.example.TestClass051$Nested` |
| extension type TestClass051$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass051$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass051$Nested> type = |
| $TestClass051$Nested$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass051$Nested> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $TestClass051$Nested $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass051$Nested', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass051$Nested.implement( |
| $TestClass051$Nested $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass051$Nested>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass051$Nested { |
| factory $TestClass051$Nested() = _$TestClass051$Nested; |
| } |
| |
| final class _$TestClass051$Nested with $TestClass051$Nested { |
| _$TestClass051$Nested(); |
| } |
| |
| final class $TestClass051$Nested$Type$ |
| extends jni$_.JType<TestClass051$Nested> { |
| @jni$_.internal |
| const $TestClass051$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass051$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass052` |
| extension type TestClass052<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject, DagA, DagD, DagE { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass052'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass052> type = $TestClass052$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass052() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass052<$T, $U>>(); |
| } |
| |
| static final _id_isFoo = _class.staticMethodId( |
| r'isFoo', |
| r'()[Z', |
| ); |
| |
| static final _isFoo = 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 boolean[] isFoo()` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JBooleanArray? isFoo() { |
| final _$$classRef = _class.reference; |
| return _isFoo(_$$classRef.pointer, _id_isFoo.pointer) |
| .object<jni$_.JBooleanArray?>(); |
| } |
| } |
| |
| extension TestClass052$$Methods<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?> on TestClass052<$T, $U> { |
| static final _id_aMethod = TestClass052._class.instanceMethodId( |
| r'aMethod', |
| r'()V', |
| ); |
| |
| static final _aMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void aMethod()` |
| void aMethod() { |
| final _$$selfRef = reference; |
| _aMethod(_$$selfRef.pointer, _id_aMethod.pointer).check(); |
| } |
| |
| static final _id_bMethod = TestClass052._class.instanceMethodId( |
| r'bMethod', |
| r'()V', |
| ); |
| |
| static final _bMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void bMethod()` |
| void bMethod() { |
| final _$$selfRef = reference; |
| _bMethod(_$$selfRef.pointer, _id_bMethod.pointer).check(); |
| } |
| |
| static final _id_cMethod = TestClass052._class.instanceMethodId( |
| r'cMethod', |
| r'()V', |
| ); |
| |
| static final _cMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void cMethod()` |
| void cMethod() { |
| final _$$selfRef = reference; |
| _cMethod(_$$selfRef.pointer, _id_cMethod.pointer).check(); |
| } |
| |
| static final _id_dMethod = TestClass052._class.instanceMethodId( |
| r'dMethod', |
| r'()V', |
| ); |
| |
| static final _dMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void dMethod()` |
| void dMethod() { |
| final _$$selfRef = reference; |
| _dMethod(_$$selfRef.pointer, _id_dMethod.pointer).check(); |
| } |
| |
| static final _id_eMethod = TestClass052._class.instanceMethodId( |
| r'eMethod', |
| r'()V', |
| ); |
| |
| static final _eMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void eMethod()` |
| void eMethod() { |
| final _$$selfRef = reference; |
| _eMethod(_$$selfRef.pointer, _id_eMethod.pointer).check(); |
| } |
| } |
| |
| final class $TestClass052$Type$ extends jni$_.JType<TestClass052> { |
| @jni$_.internal |
| const $TestClass052$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass052;'; |
| } |
| |
| /// from: `com.example.TestClass054` |
| extension type TestClass054<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface, BaseInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass054'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass054> type = $TestClass054$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass054() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass054<$T, $U>>(); |
| } |
| } |
| |
| extension TestClass054$$Methods<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?> on TestClass054<$T, $U> { |
| static final _id_otherInterfaceMethod = TestClass054._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_baseMethod = TestClass054._class.instanceMethodId( |
| r'baseMethod', |
| r'()V', |
| ); |
| |
| static final _baseMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void baseMethod()` |
| void baseMethod() { |
| final _$$selfRef = reference; |
| _baseMethod(_$$selfRef.pointer, _id_baseMethod.pointer).check(); |
| } |
| |
| static final _id_myMethod = TestClass054._class.instanceMethodId( |
| r'myMethod', |
| r'()[D', |
| ); |
| |
| static final _myMethod = 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: `synchronized public double[] myMethod()` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JDoubleArray? |
| myMethod<$S extends jni$_.JObject?, $V extends jni$_.JObject?>() { |
| final _$$selfRef = reference; |
| return _myMethod(_$$selfRef.pointer, _id_myMethod.pointer) |
| .object<jni$_.JDoubleArray?>(); |
| } |
| } |
| |
| final class $TestClass054$Type$ extends jni$_.JType<TestClass054> { |
| @jni$_.internal |
| const $TestClass054$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass054;'; |
| } |
| |
| /// from: `com.example.TestClass054$NestedEnum` |
| extension type TestClass054$NestedEnum._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass054$NestedEnum'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass054$NestedEnum> type = |
| $TestClass054$NestedEnum$Type$(); |
| static final _id_V1 = _class.staticFieldId( |
| r'V1', |
| r'Lcom/example/TestClass054$NestedEnum;', |
| ); |
| |
| /// from: `static public final com.example.TestClass054$NestedEnum V1` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass054$NestedEnum get V1 => |
| _id_V1.get(_class, TestClass054$NestedEnum.type) |
| as TestClass054$NestedEnum; |
| |
| static final _id_values = _class.staticMethodId( |
| r'values', |
| r'()[Lcom/example/TestClass054$NestedEnum;', |
| ); |
| |
| static final _values = 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 com.example.TestClass054$NestedEnum[] values()` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JArray<TestClass054$NestedEnum?>? values() { |
| final _$$classRef = _class.reference; |
| return _values(_$$classRef.pointer, _id_values.pointer) |
| .object<jni$_.JArray<TestClass054$NestedEnum?>?>(); |
| } |
| |
| static final _id_valueOf = _class.staticMethodId( |
| r'valueOf', |
| r'(Ljava/lang/String;)Lcom/example/TestClass054$NestedEnum;', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `static public com.example.TestClass054$NestedEnum valueOf(java.lang.String name)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass054$NestedEnum? valueOf( |
| jni$_.JString? name, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$name = name?.reference ?? jni$_.jNullReference; |
| return _valueOf(_$$classRef.pointer, _id_valueOf.pointer, _$name.pointer) |
| .object<TestClass054$NestedEnum?>(); |
| } |
| } |
| |
| final class $TestClass054$NestedEnum$Type$ |
| extends jni$_.JType<TestClass054$NestedEnum> { |
| @jni$_.internal |
| const $TestClass054$NestedEnum$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass054$NestedEnum;'; |
| } |
| |
| /// from: `com.example.TestClass055` |
| extension type TestClass055<$T extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements GenericParent<jni$_.JString> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass055'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass055> type = $TestClass055$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass055() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass055<$T>>(); |
| } |
| } |
| |
| extension TestClass055$$Methods<$T extends jni$_.JObject> on TestClass055<$T> { |
| static final _id_genericParentMethod$1 = TestClass055._class.instanceMethodId( |
| r'genericParentMethod', |
| r'(Ljava/lang/String;)V', |
| ); |
| |
| static final _genericParentMethod$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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void genericParentMethod(java.lang.String t)` |
| void genericParentMethod$1( |
| jni$_.JString? t, |
| ) { |
| final _$$selfRef = reference; |
| final _$t = t?.reference ?? jni$_.jNullReference; |
| _genericParentMethod$1( |
| _$$selfRef.pointer, _id_genericParentMethod$1.pointer, _$t.pointer) |
| .check(); |
| } |
| |
| static final _id_isFoo = TestClass055._class.instanceMethodId( |
| r'isFoo', |
| r'(Lcom/example/CustomRecord;I)Lcom/example/CustomRecord;', |
| ); |
| |
| static final _isFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public final com.example.CustomRecord<S> isFoo(com.example.CustomRecord<S> p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JObject? isFoo<$S extends jni$_.JObject, $V extends jni$_.JObject>( |
| jni$_.JObject? p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _isFoo(_$$selfRef.pointer, _id_isFoo.pointer, _$p1.pointer, p2) |
| .object<jni$_.JObject?>(); |
| } |
| } |
| |
| final class $TestClass055$Type$ extends jni$_.JType<TestClass055> { |
| @jni$_.internal |
| const $TestClass055$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass055;'; |
| } |
| |
| /// from: `com.example.TestClass055$Nested` |
| extension type TestClass055$Nested<$T extends jni$_.JObject>._( |
| jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass055$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass055$Nested> type = |
| $TestClass055$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'(Lcom/example/TestClass055;)V', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void <init>(com.example.TestClass055<T> $outerClass)` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass055$Nested( |
| TestClass055<$T> $outerClass, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$$outerClass = $outerClass.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer, _$$outerClass.pointer) |
| .object<TestClass055$Nested<$T>>(); |
| } |
| } |
| |
| final class $TestClass055$Nested$Type$ |
| extends jni$_.JType<TestClass055$Nested> { |
| @jni$_.internal |
| const $TestClass055$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass055$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass056` |
| extension type TestClass056<$T extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject, DagA, DagD, DagE { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass056'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass056> type = $TestClass056$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass056() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass056<$T>>(); |
| } |
| } |
| |
| extension TestClass056$$Methods<$T extends jni$_.JObject?> on TestClass056<$T> { |
| static final _id_aMethod = TestClass056._class.instanceMethodId( |
| r'aMethod', |
| r'()V', |
| ); |
| |
| static final _aMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void aMethod()` |
| void aMethod() { |
| final _$$selfRef = reference; |
| _aMethod(_$$selfRef.pointer, _id_aMethod.pointer).check(); |
| } |
| |
| static final _id_bMethod = TestClass056._class.instanceMethodId( |
| r'bMethod', |
| r'()V', |
| ); |
| |
| static final _bMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void bMethod()` |
| void bMethod() { |
| final _$$selfRef = reference; |
| _bMethod(_$$selfRef.pointer, _id_bMethod.pointer).check(); |
| } |
| |
| static final _id_cMethod = TestClass056._class.instanceMethodId( |
| r'cMethod', |
| r'()V', |
| ); |
| |
| static final _cMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void cMethod()` |
| void cMethod() { |
| final _$$selfRef = reference; |
| _cMethod(_$$selfRef.pointer, _id_cMethod.pointer).check(); |
| } |
| |
| static final _id_dMethod = TestClass056._class.instanceMethodId( |
| r'dMethod', |
| r'()V', |
| ); |
| |
| static final _dMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void dMethod()` |
| void dMethod() { |
| final _$$selfRef = reference; |
| _dMethod(_$$selfRef.pointer, _id_dMethod.pointer).check(); |
| } |
| |
| static final _id_eMethod = TestClass056._class.instanceMethodId( |
| r'eMethod', |
| r'()V', |
| ); |
| |
| static final _eMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void eMethod()` |
| void eMethod() { |
| final _$$selfRef = reference; |
| _eMethod(_$$selfRef.pointer, _id_eMethod.pointer).check(); |
| } |
| |
| static final _id_myMethod = TestClass056._class.instanceMethodId( |
| r'myMethod', |
| r'(Ljava/lang/Number;I)Ljava/lang/Number;', |
| ); |
| |
| static final _myMethod = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public final T myMethod(T p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| $T? myMethod<$S extends jni$_.JObject?, $V extends jni$_.JObject?>( |
| $T? p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _myMethod(_$$selfRef.pointer, _id_myMethod.pointer, _$p1.pointer, p2) |
| .object<$T?>(); |
| } |
| } |
| |
| final class $TestClass056$Type$ extends jni$_.JType<TestClass056> { |
| @jni$_.internal |
| const $TestClass056$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass056;'; |
| } |
| |
| /// from: `com.example.TestClass058` |
| extension type TestClass058<$T extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass058'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass058> type = $TestClass058$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass058> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'otherInterfaceMethod()V') { |
| _$impls[$p]!.otherInterfaceMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'isFoo([Ljava/lang/Number;I)[Ljava/lang/Number;') { |
| final $r = _$impls[$p]!.isFoo( |
| ($a![0] as jni$_.JArray<jni$_.JObject?>?), |
| ($a![1] as jni$_.JInteger).toDartInt(releaseOriginal: true), |
| ); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn<$T extends jni$_.JObject>( |
| jni$_.JImplementer implementer, |
| $TestClass058<$T> $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass058', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.otherInterfaceMethod$async) r'otherInterfaceMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass058.implement( |
| $TestClass058<$T> $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass058<$T>>(); |
| } |
| } |
| |
| extension TestClass058$$Methods<$T extends jni$_.JObject> on TestClass058<$T> { |
| static final _id_otherInterfaceMethod = TestClass058._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_isFoo = TestClass058._class.instanceMethodId( |
| r'isFoo', |
| r'([Ljava/lang/Number;I)[Ljava/lang/Number;', |
| ); |
| |
| static final _isFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public abstract T[] isFoo(T[] p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JArray<$T?>? isFoo( |
| jni$_.JArray<$T?>? p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _isFoo(_$$selfRef.pointer, _id_isFoo.pointer, _$p1.pointer, p2) |
| .object<jni$_.JArray<$T?>?>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass058<$T extends jni$_.JObject> { |
| factory $TestClass058({ |
| required void Function() otherInterfaceMethod, |
| core$_.bool otherInterfaceMethod$async, |
| required jni$_.JArray<jni$_.JObject?>? Function( |
| jni$_.JArray<jni$_.JObject?>? p1, core$_.int p2) |
| isFoo, |
| }) = _$TestClass058<$T>; |
| |
| void otherInterfaceMethod(); |
| core$_.bool get otherInterfaceMethod$async => false; |
| jni$_.JArray<jni$_.JObject?>? isFoo( |
| jni$_.JArray<jni$_.JObject?>? p1, core$_.int p2); |
| } |
| |
| final class _$TestClass058<$T extends jni$_.JObject> with $TestClass058<$T> { |
| _$TestClass058({ |
| required void Function() otherInterfaceMethod, |
| this.otherInterfaceMethod$async = false, |
| required jni$_.JArray<jni$_.JObject?>? Function( |
| jni$_.JArray<jni$_.JObject?>? p1, core$_.int p2) |
| isFoo, |
| }) : _otherInterfaceMethod = otherInterfaceMethod, |
| _isFoo = isFoo; |
| |
| final void Function() _otherInterfaceMethod; |
| final core$_.bool otherInterfaceMethod$async; |
| final jni$_.JArray<jni$_.JObject?>? Function( |
| jni$_.JArray<jni$_.JObject?>? p1, core$_.int p2) _isFoo; |
| |
| void otherInterfaceMethod() { |
| return _otherInterfaceMethod(); |
| } |
| |
| jni$_.JArray<jni$_.JObject?>? isFoo( |
| jni$_.JArray<jni$_.JObject?>? p1, core$_.int p2) { |
| return _isFoo(p1, p2); |
| } |
| } |
| |
| final class $TestClass058$Type$ extends jni$_.JType<TestClass058> { |
| @jni$_.internal |
| const $TestClass058$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass058;'; |
| } |
| |
| /// from: `com.example.TestClass058$Nested` |
| extension type TestClass058$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass058$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass058$Nested> type = |
| $TestClass058$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass058$Nested() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass058$Nested>(); |
| } |
| } |
| |
| final class $TestClass058$Nested$Type$ |
| extends jni$_.JType<TestClass058$Nested> { |
| @jni$_.internal |
| const $TestClass058$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass058$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass059` |
| extension type TestClass059<$T extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass059'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass059> type = $TestClass059$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass059() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass059<$T>>(); |
| } |
| } |
| |
| extension TestClass059$$Methods<$T extends jni$_.JObject> on TestClass059<$T> { |
| static final _id_myMethod = TestClass059._class.instanceMethodId( |
| r'myMethod', |
| r'([Ljava/lang/String;)[Ljava/lang/String;', |
| ); |
| |
| static final _myMethod = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public native java.lang.String[] myMethod(java.lang.String[] p1)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JArray<jni$_.JString?>? myMethod<$S extends jni$_.JObject>( |
| jni$_.JArray<jni$_.JString?>? p1, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _myMethod(_$$selfRef.pointer, _id_myMethod.pointer, _$p1.pointer) |
| .object<jni$_.JArray<jni$_.JString?>?>(); |
| } |
| } |
| |
| final class $TestClass059$Type$ extends jni$_.JType<TestClass059> { |
| @jni$_.internal |
| const $TestClass059$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass059;'; |
| } |
| |
| /// from: `com.example.TestClass060` |
| extension type TestClass060<$T extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements jni$_.JObject, DiamondLeft, DiamondRight { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass060'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass060> type = $TestClass060$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass060> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'baseMethod()V') { |
| _$impls[$p]!.baseMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'leftMethod()V') { |
| _$impls[$p]!.leftMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'rightMethod()V') { |
| _$impls[$p]!.rightMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == |
| r'getFoo(Lcom/example/NestedCustom$Nested;)Lcom/example/NestedCustom$Nested;') { |
| final $r = _$impls[$p]!.getFoo( |
| ($a![0] as NestedCustom$Nested<jni$_.JObject, jni$_.JObject, |
| jni$_.JObject>?), |
| ); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn<$T extends jni$_.JObject>( |
| jni$_.JImplementer implementer, |
| $TestClass060<$T> $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass060', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.baseMethod$async) r'baseMethod()V', |
| if ($impl.leftMethod$async) r'leftMethod()V', |
| if ($impl.rightMethod$async) r'rightMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass060.implement( |
| $TestClass060<$T> $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass060<$T>>(); |
| } |
| } |
| |
| extension TestClass060$$Methods<$T extends jni$_.JObject> on TestClass060<$T> { |
| static final _id_baseMethod = TestClass060._class.instanceMethodId( |
| r'baseMethod', |
| r'()V', |
| ); |
| |
| static final _baseMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void baseMethod()` |
| void baseMethod() { |
| final _$$selfRef = reference; |
| _baseMethod(_$$selfRef.pointer, _id_baseMethod.pointer).check(); |
| } |
| |
| static final _id_leftMethod = TestClass060._class.instanceMethodId( |
| r'leftMethod', |
| r'()V', |
| ); |
| |
| static final _leftMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void leftMethod()` |
| void leftMethod() { |
| final _$$selfRef = reference; |
| _leftMethod(_$$selfRef.pointer, _id_leftMethod.pointer).check(); |
| } |
| |
| static final _id_rightMethod = TestClass060._class.instanceMethodId( |
| r'rightMethod', |
| r'()V', |
| ); |
| |
| static final _rightMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void rightMethod()` |
| void rightMethod() { |
| final _$$selfRef = reference; |
| _rightMethod(_$$selfRef.pointer, _id_rightMethod.pointer).check(); |
| } |
| |
| static final _id_getFoo = TestClass060._class.instanceMethodId( |
| r'getFoo', |
| r'(Lcom/example/NestedCustom$Nested;)Lcom/example/NestedCustom$Nested;', |
| ); |
| |
| static final _getFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public abstract com.example.NestedCustom$Nested<S, S, S> getFoo(com.example.NestedCustom$Nested<S, S, S> p1)` |
| /// The returned object must be released after use, by calling the [release] method. |
| NestedCustom$Nested<$S, $S, $S>? getFoo<$S extends jni$_.JObject>( |
| NestedCustom$Nested<$S, $S, $S>? p1, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _getFoo(_$$selfRef.pointer, _id_getFoo.pointer, _$p1.pointer) |
| .object<NestedCustom$Nested<$S, $S, $S>?>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass060<$T extends jni$_.JObject> { |
| factory $TestClass060({ |
| required void Function() baseMethod, |
| core$_.bool baseMethod$async, |
| required void Function() leftMethod, |
| core$_.bool leftMethod$async, |
| required void Function() rightMethod, |
| core$_.bool rightMethod$async, |
| required NestedCustom$Nested<jni$_.JObject, jni$_.JObject, jni$_.JObject>? Function( |
| NestedCustom$Nested<jni$_.JObject, jni$_.JObject, jni$_.JObject>? |
| p1) |
| getFoo, |
| }) = _$TestClass060<$T>; |
| |
| void baseMethod(); |
| core$_.bool get baseMethod$async => false; |
| void leftMethod(); |
| core$_.bool get leftMethod$async => false; |
| void rightMethod(); |
| core$_.bool get rightMethod$async => false; |
| NestedCustom$Nested<jni$_.JObject, jni$_.JObject, jni$_.JObject>? getFoo( |
| NestedCustom$Nested<jni$_.JObject, jni$_.JObject, jni$_.JObject>? p1); |
| } |
| |
| final class _$TestClass060<$T extends jni$_.JObject> with $TestClass060<$T> { |
| _$TestClass060({ |
| required void Function() baseMethod, |
| this.baseMethod$async = false, |
| required void Function() leftMethod, |
| this.leftMethod$async = false, |
| required void Function() rightMethod, |
| this.rightMethod$async = false, |
| required NestedCustom$Nested<jni$_.JObject, jni$_.JObject, jni$_.JObject>? Function( |
| NestedCustom$Nested<jni$_.JObject, jni$_.JObject, jni$_.JObject>? |
| p1) |
| getFoo, |
| }) : _baseMethod = baseMethod, |
| _leftMethod = leftMethod, |
| _rightMethod = rightMethod, |
| _getFoo = getFoo; |
| |
| final void Function() _baseMethod; |
| final core$_.bool baseMethod$async; |
| final void Function() _leftMethod; |
| final core$_.bool leftMethod$async; |
| final void Function() _rightMethod; |
| final core$_.bool rightMethod$async; |
| final NestedCustom$Nested<jni$_.JObject, jni$_.JObject, jni$_.JObject>? Function( |
| NestedCustom$Nested<jni$_.JObject, jni$_.JObject, jni$_.JObject>? p1) |
| _getFoo; |
| |
| void baseMethod() { |
| return _baseMethod(); |
| } |
| |
| void leftMethod() { |
| return _leftMethod(); |
| } |
| |
| void rightMethod() { |
| return _rightMethod(); |
| } |
| |
| NestedCustom$Nested<jni$_.JObject, jni$_.JObject, jni$_.JObject>? getFoo( |
| NestedCustom$Nested<jni$_.JObject, jni$_.JObject, jni$_.JObject>? p1) { |
| return _getFoo(p1); |
| } |
| } |
| |
| final class $TestClass060$Type$ extends jni$_.JType<TestClass060> { |
| @jni$_.internal |
| const $TestClass060$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass060;'; |
| } |
| |
| /// from: `com.example.TestClass061` |
| extension type TestClass061<$T extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements jni$_.JObject, DagA, DagD, DagE { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass061'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass061> type = $TestClass061$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass061() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass061<$T>>(); |
| } |
| } |
| |
| extension TestClass061$$Methods<$T extends jni$_.JObject> on TestClass061<$T> { |
| static final _id_aMethod = TestClass061._class.instanceMethodId( |
| r'aMethod', |
| r'()V', |
| ); |
| |
| static final _aMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void aMethod()` |
| void aMethod() { |
| final _$$selfRef = reference; |
| _aMethod(_$$selfRef.pointer, _id_aMethod.pointer).check(); |
| } |
| |
| static final _id_bMethod = TestClass061._class.instanceMethodId( |
| r'bMethod', |
| r'()V', |
| ); |
| |
| static final _bMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void bMethod()` |
| void bMethod() { |
| final _$$selfRef = reference; |
| _bMethod(_$$selfRef.pointer, _id_bMethod.pointer).check(); |
| } |
| |
| static final _id_cMethod = TestClass061._class.instanceMethodId( |
| r'cMethod', |
| r'()V', |
| ); |
| |
| static final _cMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void cMethod()` |
| void cMethod() { |
| final _$$selfRef = reference; |
| _cMethod(_$$selfRef.pointer, _id_cMethod.pointer).check(); |
| } |
| |
| static final _id_dMethod = TestClass061._class.instanceMethodId( |
| r'dMethod', |
| r'()V', |
| ); |
| |
| static final _dMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void dMethod()` |
| void dMethod() { |
| final _$$selfRef = reference; |
| _dMethod(_$$selfRef.pointer, _id_dMethod.pointer).check(); |
| } |
| |
| static final _id_eMethod = TestClass061._class.instanceMethodId( |
| r'eMethod', |
| r'()V', |
| ); |
| |
| static final _eMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void eMethod()` |
| void eMethod() { |
| final _$$selfRef = reference; |
| _eMethod(_$$selfRef.pointer, _id_eMethod.pointer).check(); |
| } |
| |
| static final _id_isFoo = TestClass061._class.instanceMethodId( |
| r'isFoo', |
| r'([Lcom/example/NestedCustom$Nested;)[Lcom/example/NestedCustom$Nested;', |
| ); |
| |
| static final _isFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public native com.example.NestedCustom$Nested[] isFoo(com.example.NestedCustom$Nested[] p1)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JArray<NestedCustom$Nested<$S, $S, $S>>? |
| isFoo<$S extends jni$_.JObject, $V extends jni$_.JObject>( |
| jni$_.JArray<NestedCustom$Nested<$S, $S, $S>>? p1, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _isFoo(_$$selfRef.pointer, _id_isFoo.pointer, _$p1.pointer) |
| .object<jni$_.JArray<NestedCustom$Nested<$S, $S, $S>>?>(); |
| } |
| } |
| |
| final class $TestClass061$Type$ extends jni$_.JType<TestClass061> { |
| @jni$_.internal |
| const $TestClass061$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass061;'; |
| } |
| |
| /// from: `com.example.TestClass061$Nested` |
| extension type TestClass061$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass061$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass061$Nested> type = |
| $TestClass061$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass061$Nested() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass061$Nested>(); |
| } |
| } |
| |
| final class $TestClass061$Nested$Type$ |
| extends jni$_.JType<TestClass061$Nested> { |
| @jni$_.internal |
| const $TestClass061$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass061$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass062` |
| extension type TestClass062<$T extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements GenericParent<jni$_.JString> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass062'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass062> type = $TestClass062$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass062() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass062<$T>>(); |
| } |
| |
| static final _id_setFoo = _class.staticMethodId( |
| r'setFoo', |
| r'()Lcom/example/CustomEnum;', |
| ); |
| |
| static final _setFoo = 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 com.example.CustomEnum setFoo()` |
| /// The returned object must be released after use, by calling the [release] method. |
| static CustomEnum? setFoo<$S extends jni$_.JObject>() { |
| final _$$classRef = _class.reference; |
| return _setFoo(_$$classRef.pointer, _id_setFoo.pointer) |
| .object<CustomEnum?>(); |
| } |
| } |
| |
| extension TestClass062$$Methods<$T extends jni$_.JObject> on TestClass062<$T> { |
| static final _id_genericParentMethod$1 = TestClass062._class.instanceMethodId( |
| r'genericParentMethod', |
| r'(Ljava/lang/String;)V', |
| ); |
| |
| static final _genericParentMethod$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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void genericParentMethod(java.lang.String t)` |
| void genericParentMethod$1( |
| jni$_.JString? t, |
| ) { |
| final _$$selfRef = reference; |
| final _$t = t?.reference ?? jni$_.jNullReference; |
| _genericParentMethod$1( |
| _$$selfRef.pointer, _id_genericParentMethod$1.pointer, _$t.pointer) |
| .check(); |
| } |
| } |
| |
| final class $TestClass062$Type$ extends jni$_.JType<TestClass062> { |
| @jni$_.internal |
| const $TestClass062$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass062;'; |
| } |
| |
| /// from: `com.example.TestClass063` |
| extension type TestClass063._(jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass063'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass063> type = $TestClass063$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass063() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer).object<TestClass063>(); |
| } |
| |
| static final _id_setFoo = _class.staticMethodId( |
| r'setFoo', |
| r'()V', |
| ); |
| |
| static final _setFoo = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallStaticVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `static public void setFoo()` |
| static void setFoo<$S extends jni$_.JObject?, $V extends jni$_.JObject?>() { |
| final _$$classRef = _class.reference; |
| _setFoo(_$$classRef.pointer, _id_setFoo.pointer).check(); |
| } |
| } |
| |
| final class $TestClass063$Type$ extends jni$_.JType<TestClass063> { |
| @jni$_.internal |
| const $TestClass063$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass063;'; |
| } |
| |
| /// from: `com.example.TestClass063$Nested` |
| extension type TestClass063$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass063$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass063$Nested> type = |
| $TestClass063$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'(Lcom/example/TestClass063;)V', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void <init>(com.example.TestClass063 $outerClass)` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass063$Nested( |
| TestClass063 $outerClass, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$$outerClass = $outerClass.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer, _$$outerClass.pointer) |
| .object<TestClass063$Nested>(); |
| } |
| } |
| |
| final class $TestClass063$Nested$Type$ |
| extends jni$_.JType<TestClass063$Nested> { |
| @jni$_.internal |
| const $TestClass063$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass063$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass064` |
| extension type TestClass064<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?>._(jni$_.JObject _$this) implements GrandParent { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass064'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass064> type = $TestClass064$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass064() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass064<$T, $U>>(); |
| } |
| } |
| |
| extension TestClass064$$Methods<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?> on TestClass064<$T, $U> { |
| static final _id_grandParentMethod = TestClass064._class.instanceMethodId( |
| r'grandParentMethod', |
| r'()V', |
| ); |
| |
| static final _grandParentMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void grandParentMethod()` |
| void grandParentMethod() { |
| final _$$selfRef = reference; |
| _grandParentMethod(_$$selfRef.pointer, _id_grandParentMethod.pointer) |
| .check(); |
| } |
| } |
| |
| final class $TestClass064$Type$ extends jni$_.JType<TestClass064> { |
| @jni$_.internal |
| const $TestClass064$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass064;'; |
| } |
| |
| /// from: `com.example.TestClass065` |
| extension type TestClass065<$T extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject, GenericInterface<jni$_.JString?> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass065'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass065> type = $TestClass065$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass065> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == |
| r'genericInterfaceMethod(Ljava/lang/String;)Ljava/lang/String;') { |
| final $r = _$impls[$p]!.genericInterfaceMethod( |
| ($a![0] as jni$_.JString?), |
| ); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| if ($d == r'setFoo()B') { |
| final $r = _$impls[$p]!.setFoo(); |
| return $r.toJByte().reference.toPointer(); |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn<$T extends jni$_.JObject?>( |
| jni$_.JImplementer implementer, |
| $TestClass065<$T> $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass065', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass065.implement( |
| $TestClass065<$T> $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass065<$T>>(); |
| } |
| } |
| |
| extension TestClass065$$Methods<$T extends jni$_.JObject?> on TestClass065<$T> { |
| static final _id_genericInterfaceMethod = |
| TestClass065._class.instanceMethodId( |
| r'genericInterfaceMethod', |
| r'(Ljava/lang/String;)Ljava/lang/String;', |
| ); |
| |
| static final _genericInterfaceMethod = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `default public java.lang.String genericInterfaceMethod(java.lang.String t)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JString? genericInterfaceMethod( |
| jni$_.JString? t, |
| ) { |
| final _$$selfRef = reference; |
| final _$t = t?.reference ?? jni$_.jNullReference; |
| return _genericInterfaceMethod( |
| _$$selfRef.pointer, _id_genericInterfaceMethod.pointer, _$t.pointer) |
| .object<jni$_.JString?>(); |
| } |
| |
| static final _id_setFoo = TestClass065._class.instanceMethodId( |
| r'setFoo', |
| r'()B', |
| ); |
| |
| static final _setFoo = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallByteMethod') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public abstract byte setFoo()` |
| core$_.int setFoo<$S extends jni$_.JObject?>() { |
| final _$$selfRef = reference; |
| return _setFoo(_$$selfRef.pointer, _id_setFoo.pointer).byte; |
| } |
| } |
| |
| abstract base mixin class $TestClass065<$T extends jni$_.JObject?> { |
| factory $TestClass065({ |
| required jni$_.JString? Function(jni$_.JString? t) genericInterfaceMethod, |
| required core$_.int Function() setFoo, |
| }) = _$TestClass065<$T>; |
| |
| jni$_.JString? genericInterfaceMethod(jni$_.JString? t); |
| core$_.int setFoo(); |
| } |
| |
| final class _$TestClass065<$T extends jni$_.JObject?> with $TestClass065<$T> { |
| _$TestClass065({ |
| required jni$_.JString? Function(jni$_.JString? t) genericInterfaceMethod, |
| required core$_.int Function() setFoo, |
| }) : _genericInterfaceMethod = genericInterfaceMethod, |
| _setFoo = setFoo; |
| |
| final jni$_.JString? Function(jni$_.JString? t) _genericInterfaceMethod; |
| final core$_.int Function() _setFoo; |
| |
| jni$_.JString? genericInterfaceMethod(jni$_.JString? t) { |
| return _genericInterfaceMethod(t); |
| } |
| |
| core$_.int setFoo() { |
| return _setFoo(); |
| } |
| } |
| |
| final class $TestClass065$Type$ extends jni$_.JType<TestClass065> { |
| @jni$_.internal |
| const $TestClass065$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass065;'; |
| } |
| |
| /// from: `com.example.TestClass066` |
| extension type TestClass066<$T extends jni$_.JObject, |
| $U extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements GenericParent<jni$_.JString> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass066'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass066> type = $TestClass066$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass066() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass066<$T, $U>>(); |
| } |
| } |
| |
| extension TestClass066$$Methods<$T extends jni$_.JObject, |
| $U extends jni$_.JObject> on TestClass066<$T, $U> { |
| static final _id_genericParentMethod$1 = TestClass066._class.instanceMethodId( |
| r'genericParentMethod', |
| r'(Ljava/lang/String;)V', |
| ); |
| |
| static final _genericParentMethod$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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void genericParentMethod(java.lang.String t)` |
| void genericParentMethod$1( |
| jni$_.JString? t, |
| ) { |
| final _$$selfRef = reference; |
| final _$t = t?.reference ?? jni$_.jNullReference; |
| _genericParentMethod$1( |
| _$$selfRef.pointer, _id_genericParentMethod$1.pointer, _$t.pointer) |
| .check(); |
| } |
| |
| static final _id_isFoo = TestClass066._class.instanceMethodId( |
| r'isFoo', |
| r'()D', |
| ); |
| |
| static final _isFoo = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallDoubleMethod') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public native double isFoo()` |
| core$_.double isFoo() { |
| final _$$selfRef = reference; |
| return _isFoo(_$$selfRef.pointer, _id_isFoo.pointer).doubleFloat; |
| } |
| } |
| |
| final class $TestClass066$Type$ extends jni$_.JType<TestClass066> { |
| @jni$_.internal |
| const $TestClass066$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass066;'; |
| } |
| |
| /// from: `com.example.TestClass067` |
| extension type TestClass067._(jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass067'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass067> type = $TestClass067$Type$(); |
| static final _id_VALUE1 = _class.staticFieldId( |
| r'VALUE1', |
| r'Lcom/example/TestClass067;', |
| ); |
| |
| /// from: `static public final com.example.TestClass067 VALUE1` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass067 get VALUE1 => |
| _id_VALUE1.get(_class, TestClass067.type) as TestClass067; |
| |
| static final _id_VALUE2 = _class.staticFieldId( |
| r'VALUE2', |
| r'Lcom/example/TestClass067;', |
| ); |
| |
| /// from: `static public final com.example.TestClass067 VALUE2` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass067 get VALUE2 => |
| _id_VALUE2.get(_class, TestClass067.type) as TestClass067; |
| |
| static final _id_values = _class.staticMethodId( |
| r'values', |
| r'()[Lcom/example/TestClass067;', |
| ); |
| |
| static final _values = 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 com.example.TestClass067[] values()` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JArray<TestClass067?>? values() { |
| final _$$classRef = _class.reference; |
| return _values(_$$classRef.pointer, _id_values.pointer) |
| .object<jni$_.JArray<TestClass067?>?>(); |
| } |
| |
| static final _id_valueOf = _class.staticMethodId( |
| r'valueOf', |
| r'(Ljava/lang/String;)Lcom/example/TestClass067;', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `static public com.example.TestClass067 valueOf(java.lang.String name)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass067? valueOf( |
| jni$_.JString? name, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$name = name?.reference ?? jni$_.jNullReference; |
| return _valueOf(_$$classRef.pointer, _id_valueOf.pointer, _$name.pointer) |
| .object<TestClass067?>(); |
| } |
| } |
| |
| extension TestClass067$$Methods on TestClass067 { |
| static final _id_isFoo = TestClass067._class.instanceMethodId( |
| r'isFoo', |
| r'()[C', |
| ); |
| |
| static final _isFoo = 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 char[] isFoo()` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JCharArray? isFoo<$S extends jni$_.JObject?>() { |
| final _$$selfRef = reference; |
| return _isFoo(_$$selfRef.pointer, _id_isFoo.pointer) |
| .object<jni$_.JCharArray?>(); |
| } |
| } |
| |
| final class $TestClass067$Type$ extends jni$_.JType<TestClass067> { |
| @jni$_.internal |
| const $TestClass067$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass067;'; |
| } |
| |
| /// from: `com.example.TestClass067$Nested` |
| extension type TestClass067$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass067$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass067$Nested> type = |
| $TestClass067$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass067$Nested() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass067$Nested>(); |
| } |
| } |
| |
| final class $TestClass067$Nested$Type$ |
| extends jni$_.JType<TestClass067$Nested> { |
| @jni$_.internal |
| const $TestClass067$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass067$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass068` |
| extension type TestClass068._(jni$_.JObject _$this) |
| implements jni$_.JObject, DiamondLeft, DiamondRight { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass068'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass068> type = $TestClass068$Type$(); |
| static final _id_isFoo = _class.staticMethodId( |
| r'isFoo', |
| r'([J)[J', |
| ); |
| |
| static final _isFoo = 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 long[] isFoo(long[] p1)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JLongArray? isFoo<$S extends jni$_.JObject?>( |
| jni$_.JLongArray? p1, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _isFoo(_$$classRef.pointer, _id_isFoo.pointer, _$p1.pointer) |
| .object<jni$_.JLongArray?>(); |
| } |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass068> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'baseMethod()V') { |
| _$impls[$p]!.baseMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'leftMethod()V') { |
| _$impls[$p]!.leftMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'rightMethod()V') { |
| _$impls[$p]!.rightMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'isFoo([J)[J') { |
| final $r = _$impls[$p]!.isFoo( |
| ($a![0] as jni$_.JLongArray?), |
| ); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $TestClass068 $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass068', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.baseMethod$async) r'baseMethod()V', |
| if ($impl.leftMethod$async) r'leftMethod()V', |
| if ($impl.rightMethod$async) r'rightMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass068.implement( |
| $TestClass068 $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass068>(); |
| } |
| } |
| |
| extension TestClass068$$Methods on TestClass068 { |
| static final _id_baseMethod = TestClass068._class.instanceMethodId( |
| r'baseMethod', |
| r'()V', |
| ); |
| |
| static final _baseMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void baseMethod()` |
| void baseMethod() { |
| final _$$selfRef = reference; |
| _baseMethod(_$$selfRef.pointer, _id_baseMethod.pointer).check(); |
| } |
| |
| static final _id_leftMethod = TestClass068._class.instanceMethodId( |
| r'leftMethod', |
| r'()V', |
| ); |
| |
| static final _leftMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void leftMethod()` |
| void leftMethod() { |
| final _$$selfRef = reference; |
| _leftMethod(_$$selfRef.pointer, _id_leftMethod.pointer).check(); |
| } |
| |
| static final _id_rightMethod = TestClass068._class.instanceMethodId( |
| r'rightMethod', |
| r'()V', |
| ); |
| |
| static final _rightMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void rightMethod()` |
| void rightMethod() { |
| final _$$selfRef = reference; |
| _rightMethod(_$$selfRef.pointer, _id_rightMethod.pointer).check(); |
| } |
| } |
| |
| abstract base mixin class $TestClass068 { |
| factory $TestClass068({ |
| required void Function() baseMethod, |
| core$_.bool baseMethod$async, |
| required void Function() leftMethod, |
| core$_.bool leftMethod$async, |
| required void Function() rightMethod, |
| core$_.bool rightMethod$async, |
| required jni$_.JLongArray? Function(jni$_.JLongArray? p1) isFoo, |
| }) = _$TestClass068; |
| |
| void baseMethod(); |
| core$_.bool get baseMethod$async => false; |
| void leftMethod(); |
| core$_.bool get leftMethod$async => false; |
| void rightMethod(); |
| core$_.bool get rightMethod$async => false; |
| jni$_.JLongArray? isFoo(jni$_.JLongArray? p1); |
| } |
| |
| final class _$TestClass068 with $TestClass068 { |
| _$TestClass068({ |
| required void Function() baseMethod, |
| this.baseMethod$async = false, |
| required void Function() leftMethod, |
| this.leftMethod$async = false, |
| required void Function() rightMethod, |
| this.rightMethod$async = false, |
| required jni$_.JLongArray? Function(jni$_.JLongArray? p1) isFoo, |
| }) : _baseMethod = baseMethod, |
| _leftMethod = leftMethod, |
| _rightMethod = rightMethod, |
| _isFoo = isFoo; |
| |
| final void Function() _baseMethod; |
| final core$_.bool baseMethod$async; |
| final void Function() _leftMethod; |
| final core$_.bool leftMethod$async; |
| final void Function() _rightMethod; |
| final core$_.bool rightMethod$async; |
| final jni$_.JLongArray? Function(jni$_.JLongArray? p1) _isFoo; |
| |
| void baseMethod() { |
| return _baseMethod(); |
| } |
| |
| void leftMethod() { |
| return _leftMethod(); |
| } |
| |
| void rightMethod() { |
| return _rightMethod(); |
| } |
| |
| jni$_.JLongArray? isFoo(jni$_.JLongArray? p1) { |
| return _isFoo(p1); |
| } |
| } |
| |
| final class $TestClass068$Type$ extends jni$_.JType<TestClass068> { |
| @jni$_.internal |
| const $TestClass068$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass068;'; |
| } |
| |
| /// from: `com.example.TestClass068$NestedEnum` |
| extension type TestClass068$NestedEnum._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass068$NestedEnum'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass068$NestedEnum> type = |
| $TestClass068$NestedEnum$Type$(); |
| static final _id_V1 = _class.staticFieldId( |
| r'V1', |
| r'Lcom/example/TestClass068$NestedEnum;', |
| ); |
| |
| /// from: `static public final com.example.TestClass068$NestedEnum V1` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass068$NestedEnum get V1 => |
| _id_V1.get(_class, TestClass068$NestedEnum.type) |
| as TestClass068$NestedEnum; |
| |
| static final _id_values = _class.staticMethodId( |
| r'values', |
| r'()[Lcom/example/TestClass068$NestedEnum;', |
| ); |
| |
| static final _values = 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 com.example.TestClass068$NestedEnum[] values()` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JArray<TestClass068$NestedEnum?>? values() { |
| final _$$classRef = _class.reference; |
| return _values(_$$classRef.pointer, _id_values.pointer) |
| .object<jni$_.JArray<TestClass068$NestedEnum?>?>(); |
| } |
| |
| static final _id_valueOf = _class.staticMethodId( |
| r'valueOf', |
| r'(Ljava/lang/String;)Lcom/example/TestClass068$NestedEnum;', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `static public com.example.TestClass068$NestedEnum valueOf(java.lang.String name)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass068$NestedEnum? valueOf( |
| jni$_.JString? name, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$name = name?.reference ?? jni$_.jNullReference; |
| return _valueOf(_$$classRef.pointer, _id_valueOf.pointer, _$name.pointer) |
| .object<TestClass068$NestedEnum?>(); |
| } |
| } |
| |
| final class $TestClass068$NestedEnum$Type$ |
| extends jni$_.JType<TestClass068$NestedEnum> { |
| @jni$_.internal |
| const $TestClass068$NestedEnum$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass068$NestedEnum;'; |
| } |
| |
| /// from: `com.example.TestClass069` |
| extension type TestClass069<$T extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject, GenericInterface<jni$_.JString?> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass069'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass069> type = $TestClass069$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass069> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == |
| r'genericInterfaceMethod(Ljava/lang/String;)Ljava/lang/String;') { |
| final $r = _$impls[$p]!.genericInterfaceMethod( |
| ($a![0] as jni$_.JString?), |
| ); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| if ($d == r'myMethod(SI)S') { |
| final $r = _$impls[$p]!.myMethod( |
| ($a![0] as jni$_.JShort).toDartInt(releaseOriginal: true), |
| ($a![1] as jni$_.JInteger).toDartInt(releaseOriginal: true), |
| ); |
| return $r.toJShort().reference.toPointer(); |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn<$T extends jni$_.JObject?>( |
| jni$_.JImplementer implementer, |
| $TestClass069<$T> $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass069', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass069.implement( |
| $TestClass069<$T> $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass069<$T>>(); |
| } |
| } |
| |
| extension TestClass069$$Methods<$T extends jni$_.JObject?> on TestClass069<$T> { |
| static final _id_genericInterfaceMethod = |
| TestClass069._class.instanceMethodId( |
| r'genericInterfaceMethod', |
| r'(Ljava/lang/String;)Ljava/lang/String;', |
| ); |
| |
| static final _genericInterfaceMethod = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `default public java.lang.String genericInterfaceMethod(java.lang.String t)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JString? genericInterfaceMethod( |
| jni$_.JString? t, |
| ) { |
| final _$$selfRef = reference; |
| final _$t = t?.reference ?? jni$_.jNullReference; |
| return _genericInterfaceMethod( |
| _$$selfRef.pointer, _id_genericInterfaceMethod.pointer, _$t.pointer) |
| .object<jni$_.JString?>(); |
| } |
| |
| static final _id_myMethod = TestClass069._class.instanceMethodId( |
| r'myMethod', |
| r'(SI)S', |
| ); |
| |
| static final _myMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| jni$_.VarArgs<(jni$_.Int32, jni$_.Int32)>)>>( |
| 'globalEnv_CallShortMethod') |
| .asFunction< |
| jni$_.JniResult Function(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, core$_.int, core$_.int)>(); |
| |
| /// from: `default public short myMethod(short p1, int p2)` |
| core$_.int myMethod<$S extends jni$_.JObject?>( |
| core$_.int p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| return _myMethod(_$$selfRef.pointer, _id_myMethod.pointer, p1, p2).short; |
| } |
| } |
| |
| abstract base mixin class $TestClass069<$T extends jni$_.JObject?> { |
| factory $TestClass069({ |
| required jni$_.JString? Function(jni$_.JString? t) genericInterfaceMethod, |
| required core$_.int Function(core$_.int p1, core$_.int p2) myMethod, |
| }) = _$TestClass069<$T>; |
| |
| jni$_.JString? genericInterfaceMethod(jni$_.JString? t); |
| core$_.int myMethod(core$_.int p1, core$_.int p2); |
| } |
| |
| final class _$TestClass069<$T extends jni$_.JObject?> with $TestClass069<$T> { |
| _$TestClass069({ |
| required jni$_.JString? Function(jni$_.JString? t) genericInterfaceMethod, |
| required core$_.int Function(core$_.int p1, core$_.int p2) myMethod, |
| }) : _genericInterfaceMethod = genericInterfaceMethod, |
| _myMethod = myMethod; |
| |
| final jni$_.JString? Function(jni$_.JString? t) _genericInterfaceMethod; |
| final core$_.int Function(core$_.int p1, core$_.int p2) _myMethod; |
| |
| jni$_.JString? genericInterfaceMethod(jni$_.JString? t) { |
| return _genericInterfaceMethod(t); |
| } |
| |
| core$_.int myMethod(core$_.int p1, core$_.int p2) { |
| return _myMethod(p1, p2); |
| } |
| } |
| |
| final class $TestClass069$Type$ extends jni$_.JType<TestClass069> { |
| @jni$_.internal |
| const $TestClass069$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass069;'; |
| } |
| |
| /// from: `com.example.TestClass069$Nested` |
| extension type TestClass069$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass069$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass069$Nested> type = |
| $TestClass069$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass069$Nested() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass069$Nested>(); |
| } |
| } |
| |
| final class $TestClass069$Nested$Type$ |
| extends jni$_.JType<TestClass069$Nested> { |
| @jni$_.internal |
| const $TestClass069$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass069$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass070` |
| extension type TestClass070<$T extends jni$_.JObject, |
| $U extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface, BaseInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass070'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass070> type = $TestClass070$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass070() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass070<$T, $U>>(); |
| } |
| |
| static final _id_getFoo = _class.staticMethodId( |
| r'getFoo', |
| r'([II)[I', |
| ); |
| |
| static final _getFoo = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| jni$_ |
| .VarArgs<(jni$_.Pointer<jni$_.Void>, jni$_.Int32)>)>>( |
| 'globalEnv_CallStaticObjectMethod') |
| .asFunction< |
| jni$_.JniResult Function(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `static public int[] getFoo(int[] p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JIntArray? getFoo<$S extends jni$_.JObject>( |
| jni$_.JIntArray? p1, |
| core$_.int p2, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _getFoo(_$$classRef.pointer, _id_getFoo.pointer, _$p1.pointer, p2) |
| .object<jni$_.JIntArray?>(); |
| } |
| } |
| |
| extension TestClass070$$Methods<$T extends jni$_.JObject, |
| $U extends jni$_.JObject> on TestClass070<$T, $U> { |
| static final _id_otherInterfaceMethod = TestClass070._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_baseMethod = TestClass070._class.instanceMethodId( |
| r'baseMethod', |
| r'()V', |
| ); |
| |
| static final _baseMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void baseMethod()` |
| void baseMethod() { |
| final _$$selfRef = reference; |
| _baseMethod(_$$selfRef.pointer, _id_baseMethod.pointer).check(); |
| } |
| } |
| |
| final class $TestClass070$Type$ extends jni$_.JType<TestClass070> { |
| @jni$_.internal |
| const $TestClass070$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass070;'; |
| } |
| |
| /// from: `com.example.TestClass071` |
| extension type TestClass071<$T extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass071'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass071> type = $TestClass071$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass071> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'otherInterfaceMethod()V') { |
| _$impls[$p]!.otherInterfaceMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == |
| r'myMethod([Lcom/example/CustomInterface;)[Lcom/example/CustomInterface;') { |
| final $r = _$impls[$p]!.myMethod( |
| ($a![0] as jni$_.JArray<CustomInterface?>?), |
| ); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn<$T extends jni$_.JObject?>( |
| jni$_.JImplementer implementer, |
| $TestClass071<$T> $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass071', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.otherInterfaceMethod$async) r'otherInterfaceMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass071.implement( |
| $TestClass071<$T> $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass071<$T>>(); |
| } |
| } |
| |
| extension TestClass071$$Methods<$T extends jni$_.JObject?> on TestClass071<$T> { |
| static final _id_otherInterfaceMethod = TestClass071._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_myMethod = TestClass071._class.instanceMethodId( |
| r'myMethod', |
| r'([Lcom/example/CustomInterface;)[Lcom/example/CustomInterface;', |
| ); |
| |
| static final _myMethod = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public abstract com.example.CustomInterface[] myMethod(com.example.CustomInterface[] p1)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JArray<CustomInterface<$T?>?>? myMethod( |
| jni$_.JArray<CustomInterface<$T?>?>? p1, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _myMethod(_$$selfRef.pointer, _id_myMethod.pointer, _$p1.pointer) |
| .object<jni$_.JArray<CustomInterface<$T?>?>?>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass071<$T extends jni$_.JObject?> { |
| factory $TestClass071({ |
| required void Function() otherInterfaceMethod, |
| core$_.bool otherInterfaceMethod$async, |
| required jni$_.JArray<CustomInterface?>? Function( |
| jni$_.JArray<CustomInterface?>? p1) |
| myMethod, |
| }) = _$TestClass071<$T>; |
| |
| void otherInterfaceMethod(); |
| core$_.bool get otherInterfaceMethod$async => false; |
| jni$_.JArray<CustomInterface?>? myMethod(jni$_.JArray<CustomInterface?>? p1); |
| } |
| |
| final class _$TestClass071<$T extends jni$_.JObject?> with $TestClass071<$T> { |
| _$TestClass071({ |
| required void Function() otherInterfaceMethod, |
| this.otherInterfaceMethod$async = false, |
| required jni$_.JArray<CustomInterface?>? Function( |
| jni$_.JArray<CustomInterface?>? p1) |
| myMethod, |
| }) : _otherInterfaceMethod = otherInterfaceMethod, |
| _myMethod = myMethod; |
| |
| final void Function() _otherInterfaceMethod; |
| final core$_.bool otherInterfaceMethod$async; |
| final jni$_.JArray<CustomInterface?>? Function( |
| jni$_.JArray<CustomInterface?>? p1) _myMethod; |
| |
| void otherInterfaceMethod() { |
| return _otherInterfaceMethod(); |
| } |
| |
| jni$_.JArray<CustomInterface?>? myMethod(jni$_.JArray<CustomInterface?>? p1) { |
| return _myMethod(p1); |
| } |
| } |
| |
| final class $TestClass071$Type$ extends jni$_.JType<TestClass071> { |
| @jni$_.internal |
| const $TestClass071$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass071;'; |
| } |
| |
| /// from: `com.example.TestClass072` |
| extension type TestClass072._(jni$_.JObject _$this) |
| implements jni$_.JObject, GenericInterface<jni$_.JString?> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass072'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass072> type = $TestClass072$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass072> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == |
| r'genericInterfaceMethod(Ljava/lang/String;)Ljava/lang/String;') { |
| final $r = _$impls[$p]!.genericInterfaceMethod( |
| ($a![0] as jni$_.JString?), |
| ); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| if ($d == r'getFoo()Ljava/lang/Object;') { |
| final $r = _$impls[$p]!.getFoo(); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $TestClass072 $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass072', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass072.implement( |
| $TestClass072 $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass072>(); |
| } |
| } |
| |
| extension TestClass072$$Methods on TestClass072 { |
| static final _id_genericInterfaceMethod = |
| TestClass072._class.instanceMethodId( |
| r'genericInterfaceMethod', |
| r'(Ljava/lang/String;)Ljava/lang/String;', |
| ); |
| |
| static final _genericInterfaceMethod = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `default public java.lang.String genericInterfaceMethod(java.lang.String t)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JString? genericInterfaceMethod( |
| jni$_.JString? t, |
| ) { |
| final _$$selfRef = reference; |
| final _$t = t?.reference ?? jni$_.jNullReference; |
| return _genericInterfaceMethod( |
| _$$selfRef.pointer, _id_genericInterfaceMethod.pointer, _$t.pointer) |
| .object<jni$_.JString?>(); |
| } |
| |
| static final _id_getFoo = TestClass072._class.instanceMethodId( |
| r'getFoo', |
| r'()Ljava/lang/Object;', |
| ); |
| |
| static final _getFoo = 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 abstract S getFoo()` |
| /// The returned object must be released after use, by calling the [release] method. |
| $S? getFoo<$S extends jni$_.JObject?, $V extends jni$_.JObject?>() { |
| final _$$selfRef = reference; |
| return _getFoo(_$$selfRef.pointer, _id_getFoo.pointer).object<$S?>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass072 { |
| factory $TestClass072({ |
| required jni$_.JString? Function(jni$_.JString? t) genericInterfaceMethod, |
| required jni$_.JObject? Function() getFoo, |
| }) = _$TestClass072; |
| |
| jni$_.JString? genericInterfaceMethod(jni$_.JString? t); |
| jni$_.JObject? getFoo(); |
| } |
| |
| final class _$TestClass072 with $TestClass072 { |
| _$TestClass072({ |
| required jni$_.JString? Function(jni$_.JString? t) genericInterfaceMethod, |
| required jni$_.JObject? Function() getFoo, |
| }) : _genericInterfaceMethod = genericInterfaceMethod, |
| _getFoo = getFoo; |
| |
| final jni$_.JString? Function(jni$_.JString? t) _genericInterfaceMethod; |
| final jni$_.JObject? Function() _getFoo; |
| |
| jni$_.JString? genericInterfaceMethod(jni$_.JString? t) { |
| return _genericInterfaceMethod(t); |
| } |
| |
| jni$_.JObject? getFoo() { |
| return _getFoo(); |
| } |
| } |
| |
| final class $TestClass072$Type$ extends jni$_.JType<TestClass072> { |
| @jni$_.internal |
| const $TestClass072$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass072;'; |
| } |
| |
| /// from: `com.example.TestClass072$Nested` |
| extension type TestClass072$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass072$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass072$Nested> type = |
| $TestClass072$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass072$Nested() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass072$Nested>(); |
| } |
| } |
| |
| final class $TestClass072$Nested$Type$ |
| extends jni$_.JType<TestClass072$Nested> { |
| @jni$_.internal |
| const $TestClass072$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass072$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass073` |
| extension type TestClass073._(jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass073'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass073> type = $TestClass073$Type$(); |
| static final _id_VALUE1 = _class.staticFieldId( |
| r'VALUE1', |
| r'Lcom/example/TestClass073;', |
| ); |
| |
| /// from: `static public final com.example.TestClass073 VALUE1` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass073 get VALUE1 => |
| _id_VALUE1.get(_class, TestClass073.type) as TestClass073; |
| |
| static final _id_VALUE2 = _class.staticFieldId( |
| r'VALUE2', |
| r'Lcom/example/TestClass073;', |
| ); |
| |
| /// from: `static public final com.example.TestClass073 VALUE2` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass073 get VALUE2 => |
| _id_VALUE2.get(_class, TestClass073.type) as TestClass073; |
| |
| static final _id_values = _class.staticMethodId( |
| r'values', |
| r'()[Lcom/example/TestClass073;', |
| ); |
| |
| static final _values = 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 com.example.TestClass073[] values()` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JArray<TestClass073?>? values() { |
| final _$$classRef = _class.reference; |
| return _values(_$$classRef.pointer, _id_values.pointer) |
| .object<jni$_.JArray<TestClass073?>?>(); |
| } |
| |
| static final _id_valueOf = _class.staticMethodId( |
| r'valueOf', |
| r'(Ljava/lang/String;)Lcom/example/TestClass073;', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `static public com.example.TestClass073 valueOf(java.lang.String name)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass073? valueOf( |
| jni$_.JString? name, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$name = name?.reference ?? jni$_.jNullReference; |
| return _valueOf(_$$classRef.pointer, _id_valueOf.pointer, _$name.pointer) |
| .object<TestClass073?>(); |
| } |
| } |
| |
| final class $TestClass073$Type$ extends jni$_.JType<TestClass073> { |
| @jni$_.internal |
| const $TestClass073$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass073;'; |
| } |
| |
| /// from: `com.example.TestClass074` |
| extension type TestClass074<$T extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject, DagA, DagD, DagE { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass074'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass074> type = $TestClass074$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass074() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass074<$T>>(); |
| } |
| } |
| |
| extension TestClass074$$Methods<$T extends jni$_.JObject?> on TestClass074<$T> { |
| static final _id_aMethod = TestClass074._class.instanceMethodId( |
| r'aMethod', |
| r'()V', |
| ); |
| |
| static final _aMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void aMethod()` |
| void aMethod() { |
| final _$$selfRef = reference; |
| _aMethod(_$$selfRef.pointer, _id_aMethod.pointer).check(); |
| } |
| |
| static final _id_bMethod = TestClass074._class.instanceMethodId( |
| r'bMethod', |
| r'()V', |
| ); |
| |
| static final _bMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void bMethod()` |
| void bMethod() { |
| final _$$selfRef = reference; |
| _bMethod(_$$selfRef.pointer, _id_bMethod.pointer).check(); |
| } |
| |
| static final _id_cMethod = TestClass074._class.instanceMethodId( |
| r'cMethod', |
| r'()V', |
| ); |
| |
| static final _cMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void cMethod()` |
| void cMethod() { |
| final _$$selfRef = reference; |
| _cMethod(_$$selfRef.pointer, _id_cMethod.pointer).check(); |
| } |
| |
| static final _id_dMethod = TestClass074._class.instanceMethodId( |
| r'dMethod', |
| r'()V', |
| ); |
| |
| static final _dMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void dMethod()` |
| void dMethod() { |
| final _$$selfRef = reference; |
| _dMethod(_$$selfRef.pointer, _id_dMethod.pointer).check(); |
| } |
| |
| static final _id_eMethod = TestClass074._class.instanceMethodId( |
| r'eMethod', |
| r'()V', |
| ); |
| |
| static final _eMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void eMethod()` |
| void eMethod() { |
| final _$$selfRef = reference; |
| _eMethod(_$$selfRef.pointer, _id_eMethod.pointer).check(); |
| } |
| |
| static final _id_getFoo = TestClass074._class.instanceMethodId( |
| r'getFoo', |
| r'([Ljava/util/Set;I)[Ljava/util/Set;', |
| ); |
| |
| static final _getFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public final java.util.Set[] getFoo(java.util.Set[] p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JArray<jni$_.JSet<$S?>?>? |
| getFoo<$S extends jni$_.JObject?, $V extends jni$_.JObject?>( |
| jni$_.JArray<jni$_.JSet<$S?>?>? p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _getFoo(_$$selfRef.pointer, _id_getFoo.pointer, _$p1.pointer, p2) |
| .object<jni$_.JArray<jni$_.JSet<$S?>?>?>(); |
| } |
| } |
| |
| final class $TestClass074$Type$ extends jni$_.JType<TestClass074> { |
| @jni$_.internal |
| const $TestClass074$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass074;'; |
| } |
| |
| /// from: `com.example.TestClass074$Nested` |
| extension type TestClass074$Nested<$T extends jni$_.JObject?>._( |
| jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass074$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass074$Nested> type = |
| $TestClass074$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'(Lcom/example/TestClass074;)V', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void <init>(com.example.TestClass074<T> $outerClass)` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass074$Nested( |
| TestClass074<$T?> $outerClass, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$$outerClass = $outerClass.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer, _$$outerClass.pointer) |
| .object<TestClass074$Nested<$T>>(); |
| } |
| } |
| |
| final class $TestClass074$Nested$Type$ |
| extends jni$_.JType<TestClass074$Nested> { |
| @jni$_.internal |
| const $TestClass074$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass074$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass075` |
| extension type TestClass075._(jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass075'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass075> type = $TestClass075$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass075> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'isFoo()[Ljava/util/Set;') { |
| final $r = _$impls[$p]!.isFoo(); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $TestClass075 $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass075', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass075.implement( |
| $TestClass075 $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass075>(); |
| } |
| } |
| |
| extension TestClass075$$Methods on TestClass075 { |
| static final _id_isFoo = TestClass075._class.instanceMethodId( |
| r'isFoo', |
| r'()[Ljava/util/Set;', |
| ); |
| |
| static final _isFoo = 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: `default public java.util.Set[] isFoo()` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JArray<jni$_.JSet<$S?>?>? isFoo<$S extends jni$_.JObject?>() { |
| final _$$selfRef = reference; |
| return _isFoo(_$$selfRef.pointer, _id_isFoo.pointer) |
| .object<jni$_.JArray<jni$_.JSet<$S?>?>?>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass075 { |
| factory $TestClass075({ |
| required jni$_.JArray<jni$_.JSet?>? Function() isFoo, |
| }) = _$TestClass075; |
| |
| jni$_.JArray<jni$_.JSet?>? isFoo(); |
| } |
| |
| final class _$TestClass075 with $TestClass075 { |
| _$TestClass075({ |
| required jni$_.JArray<jni$_.JSet?>? Function() isFoo, |
| }) : _isFoo = isFoo; |
| |
| final jni$_.JArray<jni$_.JSet?>? Function() _isFoo; |
| |
| jni$_.JArray<jni$_.JSet?>? isFoo() { |
| return _isFoo(); |
| } |
| } |
| |
| final class $TestClass075$Type$ extends jni$_.JType<TestClass075> { |
| @jni$_.internal |
| const $TestClass075$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass075;'; |
| } |
| |
| /// from: `com.example.TestClass076` |
| extension type TestClass076<$T extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements GenericParent<jni$_.JObject?> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass076'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass076> type = $TestClass076$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass076() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass076<$T>>(); |
| } |
| } |
| |
| extension TestClass076$$Methods<$T extends jni$_.JObject?> on TestClass076<$T> { |
| static final _id_genericParentMethod = TestClass076._class.instanceMethodId( |
| r'genericParentMethod', |
| r'(Ljava/lang/Object;)V', |
| ); |
| |
| static final _genericParentMethod = 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 genericParentMethod(java.lang.Object t)` |
| void genericParentMethod( |
| jni$_.JObject? t, |
| ) { |
| final _$$selfRef = reference; |
| final _$t = t?.reference ?? jni$_.jNullReference; |
| _genericParentMethod( |
| _$$selfRef.pointer, _id_genericParentMethod.pointer, _$t.pointer) |
| .check(); |
| } |
| |
| static final _id_myMethod = TestClass076._class.instanceMethodId( |
| r'myMethod', |
| r'([Ljava/lang/String;)[Ljava/lang/String;', |
| ); |
| |
| static final _myMethod = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public final java.lang.String[] myMethod(java.lang.String[] p1)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JArray<jni$_.JString?>? myMethod( |
| jni$_.JArray<jni$_.JString?>? p1, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _myMethod(_$$selfRef.pointer, _id_myMethod.pointer, _$p1.pointer) |
| .object<jni$_.JArray<jni$_.JString?>?>(); |
| } |
| } |
| |
| final class $TestClass076$Type$ extends jni$_.JType<TestClass076> { |
| @jni$_.internal |
| const $TestClass076$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass076;'; |
| } |
| |
| /// from: `com.example.TestClass077` |
| extension type TestClass077<$T extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject, GenericInterface<jni$_.JObject?> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass077'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass077> type = $TestClass077$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass077> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == |
| r'genericInterfaceMethod(Ljava/lang/Object;)Ljava/lang/Object;') { |
| final $r = _$impls[$p]!.genericInterfaceMethod( |
| ($a![0] as jni$_.JObject?), |
| ); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| if ($d == r'myMethod([SI)[S') { |
| final $r = _$impls[$p]!.myMethod( |
| ($a![0] as jni$_.JShortArray), |
| ($a![1] as jni$_.JInteger).toDartInt(releaseOriginal: true), |
| ); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn<$T extends jni$_.JObject?>( |
| jni$_.JImplementer implementer, |
| $TestClass077<$T> $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass077', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass077.implement( |
| $TestClass077<$T> $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass077<$T>>(); |
| } |
| } |
| |
| extension TestClass077$$Methods<$T extends jni$_.JObject?> on TestClass077<$T> { |
| static final _id_genericInterfaceMethod = |
| TestClass077._class.instanceMethodId( |
| r'genericInterfaceMethod', |
| r'(Ljava/lang/Object;)Ljava/lang/Object;', |
| ); |
| |
| static final _genericInterfaceMethod = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `default public java.lang.Object genericInterfaceMethod(java.lang.Object t)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JObject? genericInterfaceMethod( |
| jni$_.JObject? t, |
| ) { |
| final _$$selfRef = reference; |
| final _$t = t?.reference ?? jni$_.jNullReference; |
| return _genericInterfaceMethod( |
| _$$selfRef.pointer, _id_genericInterfaceMethod.pointer, _$t.pointer) |
| .object<jni$_.JObject?>(); |
| } |
| |
| static final _id_myMethod = TestClass077._class.instanceMethodId( |
| r'myMethod', |
| r'([SI)[S', |
| ); |
| |
| static final _myMethod = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public abstract short[] myMethod(short[] p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JShortArray myMethod<$S extends jni$_.JObject?>( |
| jni$_.JShortArray p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1.reference; |
| return _myMethod(_$$selfRef.pointer, _id_myMethod.pointer, _$p1.pointer, p2) |
| .object<jni$_.JShortArray>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass077<$T extends jni$_.JObject?> { |
| factory $TestClass077({ |
| required jni$_.JObject? Function(jni$_.JObject? t) genericInterfaceMethod, |
| required jni$_.JShortArray Function(jni$_.JShortArray p1, core$_.int p2) |
| myMethod, |
| }) = _$TestClass077<$T>; |
| |
| jni$_.JObject? genericInterfaceMethod(jni$_.JObject? t); |
| jni$_.JShortArray myMethod(jni$_.JShortArray p1, core$_.int p2); |
| } |
| |
| final class _$TestClass077<$T extends jni$_.JObject?> with $TestClass077<$T> { |
| _$TestClass077({ |
| required jni$_.JObject? Function(jni$_.JObject? t) genericInterfaceMethod, |
| required jni$_.JShortArray Function(jni$_.JShortArray p1, core$_.int p2) |
| myMethod, |
| }) : _genericInterfaceMethod = genericInterfaceMethod, |
| _myMethod = myMethod; |
| |
| final jni$_.JObject? Function(jni$_.JObject? t) _genericInterfaceMethod; |
| final jni$_.JShortArray Function(jni$_.JShortArray p1, core$_.int p2) |
| _myMethod; |
| |
| jni$_.JObject? genericInterfaceMethod(jni$_.JObject? t) { |
| return _genericInterfaceMethod(t); |
| } |
| |
| jni$_.JShortArray myMethod(jni$_.JShortArray p1, core$_.int p2) { |
| return _myMethod(p1, p2); |
| } |
| } |
| |
| final class $TestClass077$Type$ extends jni$_.JType<TestClass077> { |
| @jni$_.internal |
| const $TestClass077$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass077;'; |
| } |
| |
| /// from: `com.example.TestClass077$Nested` |
| extension type TestClass077$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass077$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass077$Nested> type = |
| $TestClass077$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass077$Nested() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass077$Nested>(); |
| } |
| } |
| |
| final class $TestClass077$Nested$Type$ |
| extends jni$_.JType<TestClass077$Nested> { |
| @jni$_.internal |
| const $TestClass077$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass077$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass078` |
| extension type TestClass078<$T extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements GenericParent<jni$_.JObject?> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass078'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass078> type = $TestClass078$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass078() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass078<$T>>(); |
| } |
| } |
| |
| extension TestClass078$$Methods<$T extends jni$_.JObject> on TestClass078<$T> { |
| static final _id_genericParentMethod = TestClass078._class.instanceMethodId( |
| r'genericParentMethod', |
| r'(Ljava/lang/Object;)V', |
| ); |
| |
| static final _genericParentMethod = 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 genericParentMethod(java.lang.Object t)` |
| void genericParentMethod( |
| jni$_.JObject? t, |
| ) { |
| final _$$selfRef = reference; |
| final _$t = t?.reference ?? jni$_.jNullReference; |
| _genericParentMethod( |
| _$$selfRef.pointer, _id_genericParentMethod.pointer, _$t.pointer) |
| .check(); |
| } |
| |
| static final _id_getFoo = TestClass078._class.instanceMethodId( |
| r'getFoo', |
| r'([Ljava/util/List;)[Ljava/util/List;', |
| ); |
| |
| static final _getFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public java.util.List[] getFoo(java.util.List[] p1)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JArray<jni$_.JList<$S>>? |
| getFoo<$S extends jni$_.JObject, $V extends jni$_.JObject>( |
| jni$_.JArray<jni$_.JList<$S>>? p1, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _getFoo(_$$selfRef.pointer, _id_getFoo.pointer, _$p1.pointer) |
| .object<jni$_.JArray<jni$_.JList<$S>>?>(); |
| } |
| } |
| |
| final class $TestClass078$Type$ extends jni$_.JType<TestClass078> { |
| @jni$_.internal |
| const $TestClass078$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass078;'; |
| } |
| |
| /// from: `com.example.TestClass079` |
| extension type TestClass079<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass079'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass079> type = $TestClass079$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass079() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass079<$T, $U>>(); |
| } |
| } |
| |
| extension TestClass079$$Methods<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?> on TestClass079<$T, $U> { |
| static final _id_otherInterfaceMethod = TestClass079._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_setFoo = TestClass079._class.instanceMethodId( |
| r'setFoo', |
| r'()[Lcom/example/CustomObject;', |
| ); |
| |
| static final _setFoo = 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 native com.example.CustomObject[] setFoo()` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JArray<CustomObject<$T?>?>? setFoo() { |
| final _$$selfRef = reference; |
| return _setFoo(_$$selfRef.pointer, _id_setFoo.pointer) |
| .object<jni$_.JArray<CustomObject<$T?>?>?>(); |
| } |
| } |
| |
| final class $TestClass079$Type$ extends jni$_.JType<TestClass079> { |
| @jni$_.internal |
| const $TestClass079$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass079;'; |
| } |
| |
| /// from: `com.example.TestClass079$Nested` |
| extension type TestClass079$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass079$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass079$Nested> type = |
| $TestClass079$Nested$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass079$Nested> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $TestClass079$Nested $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass079$Nested', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass079$Nested.implement( |
| $TestClass079$Nested $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass079$Nested>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass079$Nested { |
| factory $TestClass079$Nested() = _$TestClass079$Nested; |
| } |
| |
| final class _$TestClass079$Nested with $TestClass079$Nested { |
| _$TestClass079$Nested(); |
| } |
| |
| final class $TestClass079$Nested$Type$ |
| extends jni$_.JType<TestClass079$Nested> { |
| @jni$_.internal |
| const $TestClass079$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass079$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass080` |
| extension type TestClass080<$T extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass080'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass080> type = $TestClass080$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass080() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass080<$T>>(); |
| } |
| } |
| |
| extension TestClass080$$Methods<$T extends jni$_.JObject?> on TestClass080<$T> { |
| static final _id_setFoo = TestClass080._class.instanceMethodId( |
| r'setFoo', |
| r'([Lcom/example/CustomInterface;I)[Lcom/example/CustomInterface;', |
| ); |
| |
| static final _setFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `synchronized public com.example.CustomInterface[] setFoo(com.example.CustomInterface[] p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JArray<CustomInterface<$T?>?>? setFoo( |
| jni$_.JArray<CustomInterface<$T?>?>? p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _setFoo(_$$selfRef.pointer, _id_setFoo.pointer, _$p1.pointer, p2) |
| .object<jni$_.JArray<CustomInterface<$T?>?>?>(); |
| } |
| } |
| |
| final class $TestClass080$Type$ extends jni$_.JType<TestClass080> { |
| @jni$_.internal |
| const $TestClass080$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass080;'; |
| } |
| |
| /// from: `com.example.TestClass080$Sub` |
| extension type TestClass080$Sub<$T extends jni$_.JObject?>._( |
| jni$_.JObject _$this) implements TestClass080<$T?> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass080$Sub'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass080$Sub> type = $TestClass080$Sub$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass080$Sub() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass080$Sub<$T>>(); |
| } |
| } |
| |
| final class $TestClass080$Sub$Type$ extends jni$_.JType<TestClass080$Sub> { |
| @jni$_.internal |
| const $TestClass080$Sub$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass080$Sub;'; |
| } |
| |
| /// from: `com.example.TestClass080$Nested` |
| extension type TestClass080$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass080$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass080$Nested> type = |
| $TestClass080$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass080$Nested() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass080$Nested>(); |
| } |
| } |
| |
| final class $TestClass080$Nested$Type$ |
| extends jni$_.JType<TestClass080$Nested> { |
| @jni$_.internal |
| const $TestClass080$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass080$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass081` |
| extension type TestClass081._(jni$_.JObject _$this) |
| implements jni$_.JObject, DagA, DagD, DagE { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass081'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass081> type = $TestClass081$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass081> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'aMethod()V') { |
| _$impls[$p]!.aMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'bMethod()V') { |
| _$impls[$p]!.bMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'cMethod()V') { |
| _$impls[$p]!.cMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'dMethod()V') { |
| _$impls[$p]!.dMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'eMethod()V') { |
| _$impls[$p]!.eMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'getFoo(DI)D') { |
| final $r = _$impls[$p]!.getFoo( |
| ($a![0] as jni$_.JDouble).toDartDouble(releaseOriginal: true), |
| ($a![1] as jni$_.JInteger).toDartInt(releaseOriginal: true), |
| ); |
| return $r.toJDouble().reference.toPointer(); |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $TestClass081 $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass081', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.aMethod$async) r'aMethod()V', |
| if ($impl.bMethod$async) r'bMethod()V', |
| if ($impl.cMethod$async) r'cMethod()V', |
| if ($impl.dMethod$async) r'dMethod()V', |
| if ($impl.eMethod$async) r'eMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass081.implement( |
| $TestClass081 $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass081>(); |
| } |
| } |
| |
| extension TestClass081$$Methods on TestClass081 { |
| static final _id_aMethod = TestClass081._class.instanceMethodId( |
| r'aMethod', |
| r'()V', |
| ); |
| |
| static final _aMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void aMethod()` |
| void aMethod() { |
| final _$$selfRef = reference; |
| _aMethod(_$$selfRef.pointer, _id_aMethod.pointer).check(); |
| } |
| |
| static final _id_bMethod = TestClass081._class.instanceMethodId( |
| r'bMethod', |
| r'()V', |
| ); |
| |
| static final _bMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void bMethod()` |
| void bMethod() { |
| final _$$selfRef = reference; |
| _bMethod(_$$selfRef.pointer, _id_bMethod.pointer).check(); |
| } |
| |
| static final _id_cMethod = TestClass081._class.instanceMethodId( |
| r'cMethod', |
| r'()V', |
| ); |
| |
| static final _cMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void cMethod()` |
| void cMethod() { |
| final _$$selfRef = reference; |
| _cMethod(_$$selfRef.pointer, _id_cMethod.pointer).check(); |
| } |
| |
| static final _id_dMethod = TestClass081._class.instanceMethodId( |
| r'dMethod', |
| r'()V', |
| ); |
| |
| static final _dMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void dMethod()` |
| void dMethod() { |
| final _$$selfRef = reference; |
| _dMethod(_$$selfRef.pointer, _id_dMethod.pointer).check(); |
| } |
| |
| static final _id_eMethod = TestClass081._class.instanceMethodId( |
| r'eMethod', |
| r'()V', |
| ); |
| |
| static final _eMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void eMethod()` |
| void eMethod() { |
| final _$$selfRef = reference; |
| _eMethod(_$$selfRef.pointer, _id_eMethod.pointer).check(); |
| } |
| |
| static final _id_getFoo = TestClass081._class.instanceMethodId( |
| r'getFoo', |
| r'(DI)D', |
| ); |
| |
| static final _getFoo = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| jni$_.VarArgs<(jni$_.Double, jni$_.Int32)>)>>( |
| 'globalEnv_CallDoubleMethod') |
| .asFunction< |
| jni$_.JniResult Function(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, core$_.double, core$_.int)>(); |
| |
| /// from: `default public double getFoo(double p1, int p2)` |
| core$_.double getFoo<$S extends jni$_.JObject?>( |
| core$_.double p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| return _getFoo(_$$selfRef.pointer, _id_getFoo.pointer, p1, p2).doubleFloat; |
| } |
| } |
| |
| abstract base mixin class $TestClass081 { |
| factory $TestClass081({ |
| required void Function() aMethod, |
| core$_.bool aMethod$async, |
| required void Function() bMethod, |
| core$_.bool bMethod$async, |
| required void Function() cMethod, |
| core$_.bool cMethod$async, |
| required void Function() dMethod, |
| core$_.bool dMethod$async, |
| required void Function() eMethod, |
| core$_.bool eMethod$async, |
| required core$_.double Function(core$_.double p1, core$_.int p2) getFoo, |
| }) = _$TestClass081; |
| |
| void aMethod(); |
| core$_.bool get aMethod$async => false; |
| void bMethod(); |
| core$_.bool get bMethod$async => false; |
| void cMethod(); |
| core$_.bool get cMethod$async => false; |
| void dMethod(); |
| core$_.bool get dMethod$async => false; |
| void eMethod(); |
| core$_.bool get eMethod$async => false; |
| core$_.double getFoo(core$_.double p1, core$_.int p2); |
| } |
| |
| final class _$TestClass081 with $TestClass081 { |
| _$TestClass081({ |
| required void Function() aMethod, |
| this.aMethod$async = false, |
| required void Function() bMethod, |
| this.bMethod$async = false, |
| required void Function() cMethod, |
| this.cMethod$async = false, |
| required void Function() dMethod, |
| this.dMethod$async = false, |
| required void Function() eMethod, |
| this.eMethod$async = false, |
| required core$_.double Function(core$_.double p1, core$_.int p2) getFoo, |
| }) : _aMethod = aMethod, |
| _bMethod = bMethod, |
| _cMethod = cMethod, |
| _dMethod = dMethod, |
| _eMethod = eMethod, |
| _getFoo = getFoo; |
| |
| final void Function() _aMethod; |
| final core$_.bool aMethod$async; |
| final void Function() _bMethod; |
| final core$_.bool bMethod$async; |
| final void Function() _cMethod; |
| final core$_.bool cMethod$async; |
| final void Function() _dMethod; |
| final core$_.bool dMethod$async; |
| final void Function() _eMethod; |
| final core$_.bool eMethod$async; |
| final core$_.double Function(core$_.double p1, core$_.int p2) _getFoo; |
| |
| void aMethod() { |
| return _aMethod(); |
| } |
| |
| void bMethod() { |
| return _bMethod(); |
| } |
| |
| void cMethod() { |
| return _cMethod(); |
| } |
| |
| void dMethod() { |
| return _dMethod(); |
| } |
| |
| void eMethod() { |
| return _eMethod(); |
| } |
| |
| core$_.double getFoo(core$_.double p1, core$_.int p2) { |
| return _getFoo(p1, p2); |
| } |
| } |
| |
| final class $TestClass081$Type$ extends jni$_.JType<TestClass081> { |
| @jni$_.internal |
| const $TestClass081$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass081;'; |
| } |
| |
| /// from: `com.example.TestClass082` |
| extension type TestClass082<$T extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass082'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass082> type = $TestClass082$Type$(); |
| } |
| |
| extension TestClass082$$Methods<$T extends jni$_.JObject> on TestClass082<$T> { |
| static final _id_getFoo = TestClass082._class.instanceMethodId( |
| r'getFoo', |
| r'([Ljava/lang/Object;I)[Ljava/lang/Object;', |
| ); |
| |
| static final _getFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public abstract java.lang.Object[] getFoo(java.lang.Object[] p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JArray<jni$_.JObject>? getFoo<$S extends jni$_.JObject>( |
| jni$_.JArray<jni$_.JObject>? p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _getFoo(_$$selfRef.pointer, _id_getFoo.pointer, _$p1.pointer, p2) |
| .object<jni$_.JArray<jni$_.JObject>?>(); |
| } |
| } |
| |
| final class $TestClass082$Type$ extends jni$_.JType<TestClass082> { |
| @jni$_.internal |
| const $TestClass082$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass082;'; |
| } |
| |
| /// from: `com.example.TestClass082$Nested` |
| extension type TestClass082$Nested<$T extends jni$_.JObject>._( |
| jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass082$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass082$Nested> type = |
| $TestClass082$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'(Lcom/example/TestClass082;)V', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void <init>(com.example.TestClass082<T> $outerClass)` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass082$Nested( |
| TestClass082<$T> $outerClass, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$$outerClass = $outerClass.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer, _$$outerClass.pointer) |
| .object<TestClass082$Nested<$T>>(); |
| } |
| } |
| |
| final class $TestClass082$Nested$Type$ |
| extends jni$_.JType<TestClass082$Nested> { |
| @jni$_.internal |
| const $TestClass082$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass082$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass083` |
| extension type TestClass083._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass083'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass083> type = $TestClass083$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass083> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'otherInterfaceMethod()V') { |
| _$impls[$p]!.otherInterfaceMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'isFoo([Ljava/util/Map;I)[Ljava/util/Map;') { |
| final $r = _$impls[$p]!.isFoo( |
| ($a![0] as jni$_.JArray<jni$_.JMap?>?), |
| ($a![1] as jni$_.JInteger).toDartInt(releaseOriginal: true), |
| ); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $TestClass083 $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass083', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.otherInterfaceMethod$async) r'otherInterfaceMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass083.implement( |
| $TestClass083 $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass083>(); |
| } |
| } |
| |
| extension TestClass083$$Methods on TestClass083 { |
| static final _id_otherInterfaceMethod = TestClass083._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_isFoo = TestClass083._class.instanceMethodId( |
| r'isFoo', |
| r'([Ljava/util/Map;I)[Ljava/util/Map;', |
| ); |
| |
| static final _isFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public abstract java.util.Map[] isFoo(java.util.Map[] p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JArray<jni$_.JMap<$S?, $S?>?>? isFoo<$S extends jni$_.JObject?>( |
| jni$_.JArray<jni$_.JMap<$S?, $S?>?>? p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _isFoo(_$$selfRef.pointer, _id_isFoo.pointer, _$p1.pointer, p2) |
| .object<jni$_.JArray<jni$_.JMap<$S?, $S?>?>?>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass083 { |
| factory $TestClass083({ |
| required void Function() otherInterfaceMethod, |
| core$_.bool otherInterfaceMethod$async, |
| required jni$_.JArray<jni$_.JMap?>? Function( |
| jni$_.JArray<jni$_.JMap?>? p1, core$_.int p2) |
| isFoo, |
| }) = _$TestClass083; |
| |
| void otherInterfaceMethod(); |
| core$_.bool get otherInterfaceMethod$async => false; |
| jni$_.JArray<jni$_.JMap?>? isFoo( |
| jni$_.JArray<jni$_.JMap?>? p1, core$_.int p2); |
| } |
| |
| final class _$TestClass083 with $TestClass083 { |
| _$TestClass083({ |
| required void Function() otherInterfaceMethod, |
| this.otherInterfaceMethod$async = false, |
| required jni$_.JArray<jni$_.JMap?>? Function( |
| jni$_.JArray<jni$_.JMap?>? p1, core$_.int p2) |
| isFoo, |
| }) : _otherInterfaceMethod = otherInterfaceMethod, |
| _isFoo = isFoo; |
| |
| final void Function() _otherInterfaceMethod; |
| final core$_.bool otherInterfaceMethod$async; |
| final jni$_.JArray<jni$_.JMap?>? Function( |
| jni$_.JArray<jni$_.JMap?>? p1, core$_.int p2) _isFoo; |
| |
| void otherInterfaceMethod() { |
| return _otherInterfaceMethod(); |
| } |
| |
| jni$_.JArray<jni$_.JMap?>? isFoo( |
| jni$_.JArray<jni$_.JMap?>? p1, core$_.int p2) { |
| return _isFoo(p1, p2); |
| } |
| } |
| |
| final class $TestClass083$Type$ extends jni$_.JType<TestClass083> { |
| @jni$_.internal |
| const $TestClass083$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass083;'; |
| } |
| |
| /// from: `com.example.TestClass084` |
| extension type TestClass084<$T extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements jni$_.JObject, GenericInterface<jni$_.JObject?> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass084'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass084> type = $TestClass084$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass084> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == |
| r'genericInterfaceMethod(Ljava/lang/Object;)Ljava/lang/Object;') { |
| final $r = _$impls[$p]!.genericInterfaceMethod( |
| ($a![0] as jni$_.JObject?), |
| ); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| if ($d == r'setFoo()Ljava/lang/Object;') { |
| final $r = _$impls[$p]!.setFoo(); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn<$T extends jni$_.JObject>( |
| jni$_.JImplementer implementer, |
| $TestClass084<$T> $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass084', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass084.implement( |
| $TestClass084<$T> $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass084<$T>>(); |
| } |
| } |
| |
| extension TestClass084$$Methods<$T extends jni$_.JObject> on TestClass084<$T> { |
| static final _id_genericInterfaceMethod = |
| TestClass084._class.instanceMethodId( |
| r'genericInterfaceMethod', |
| r'(Ljava/lang/Object;)Ljava/lang/Object;', |
| ); |
| |
| static final _genericInterfaceMethod = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `default public java.lang.Object genericInterfaceMethod(java.lang.Object t)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JObject? genericInterfaceMethod( |
| jni$_.JObject? t, |
| ) { |
| final _$$selfRef = reference; |
| final _$t = t?.reference ?? jni$_.jNullReference; |
| return _genericInterfaceMethod( |
| _$$selfRef.pointer, _id_genericInterfaceMethod.pointer, _$t.pointer) |
| .object<jni$_.JObject?>(); |
| } |
| |
| static final _id_setFoo = TestClass084._class.instanceMethodId( |
| r'setFoo', |
| r'()Ljava/lang/Object;', |
| ); |
| |
| static final _setFoo = 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 abstract S setFoo()` |
| /// The returned object must be released after use, by calling the [release] method. |
| $S? setFoo<$S extends jni$_.JObject>() { |
| final _$$selfRef = reference; |
| return _setFoo(_$$selfRef.pointer, _id_setFoo.pointer).object<$S?>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass084<$T extends jni$_.JObject> { |
| factory $TestClass084({ |
| required jni$_.JObject? Function(jni$_.JObject? t) genericInterfaceMethod, |
| required jni$_.JObject? Function() setFoo, |
| }) = _$TestClass084<$T>; |
| |
| jni$_.JObject? genericInterfaceMethod(jni$_.JObject? t); |
| jni$_.JObject? setFoo(); |
| } |
| |
| final class _$TestClass084<$T extends jni$_.JObject> with $TestClass084<$T> { |
| _$TestClass084({ |
| required jni$_.JObject? Function(jni$_.JObject? t) genericInterfaceMethod, |
| required jni$_.JObject? Function() setFoo, |
| }) : _genericInterfaceMethod = genericInterfaceMethod, |
| _setFoo = setFoo; |
| |
| final jni$_.JObject? Function(jni$_.JObject? t) _genericInterfaceMethod; |
| final jni$_.JObject? Function() _setFoo; |
| |
| jni$_.JObject? genericInterfaceMethod(jni$_.JObject? t) { |
| return _genericInterfaceMethod(t); |
| } |
| |
| jni$_.JObject? setFoo() { |
| return _setFoo(); |
| } |
| } |
| |
| final class $TestClass084$Type$ extends jni$_.JType<TestClass084> { |
| @jni$_.internal |
| const $TestClass084$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass084;'; |
| } |
| |
| /// from: `com.example.TestClass084$Nested` |
| extension type TestClass084$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass084$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass084$Nested> type = |
| $TestClass084$Nested$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass084$Nested> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $TestClass084$Nested $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass084$Nested', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass084$Nested.implement( |
| $TestClass084$Nested $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass084$Nested>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass084$Nested { |
| factory $TestClass084$Nested() = _$TestClass084$Nested; |
| } |
| |
| final class _$TestClass084$Nested with $TestClass084$Nested { |
| _$TestClass084$Nested(); |
| } |
| |
| final class $TestClass084$Nested$Type$ |
| extends jni$_.JType<TestClass084$Nested> { |
| @jni$_.internal |
| const $TestClass084$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass084$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass085` |
| extension type TestClass085<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface, BaseInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass085'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass085> type = $TestClass085$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass085() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass085<$T, $U>>(); |
| } |
| } |
| |
| extension TestClass085$$Methods<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?> on TestClass085<$T, $U> { |
| static final _id_otherInterfaceMethod = TestClass085._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_baseMethod = TestClass085._class.instanceMethodId( |
| r'baseMethod', |
| r'()V', |
| ); |
| |
| static final _baseMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void baseMethod()` |
| void baseMethod() { |
| final _$$selfRef = reference; |
| _baseMethod(_$$selfRef.pointer, _id_baseMethod.pointer).check(); |
| } |
| } |
| |
| final class $TestClass085$Type$ extends jni$_.JType<TestClass085> { |
| @jni$_.internal |
| const $TestClass085$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass085;'; |
| } |
| |
| /// from: `com.example.TestClass085$Nested` |
| extension type TestClass085$Nested<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass085$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass085$Nested> type = |
| $TestClass085$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'(Lcom/example/TestClass085;)V', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void <init>(com.example.TestClass085<T, U> $outerClass)` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass085$Nested( |
| TestClass085<$T?, $U?> $outerClass, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$$outerClass = $outerClass.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer, _$$outerClass.pointer) |
| .object<TestClass085$Nested<$T, $U>>(); |
| } |
| } |
| |
| final class $TestClass085$Nested$Type$ |
| extends jni$_.JType<TestClass085$Nested> { |
| @jni$_.internal |
| const $TestClass085$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass085$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass086` |
| extension type TestClass086<$T extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass086'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass086> type = $TestClass086$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass086() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass086<$T>>(); |
| } |
| } |
| |
| extension TestClass086$$Methods<$T extends jni$_.JObject> on TestClass086<$T> { |
| static final _id_setFoo = TestClass086._class.instanceMethodId( |
| r'setFoo', |
| r'(Ljava/util/List;)Ljava/util/List;', |
| ); |
| |
| static final _setFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public final java.util.List<T> setFoo(java.util.List<T> p1)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JList<$T>? setFoo( |
| jni$_.JList<$T>? p1, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _setFoo(_$$selfRef.pointer, _id_setFoo.pointer, _$p1.pointer) |
| .object<jni$_.JList<$T>?>(); |
| } |
| } |
| |
| final class $TestClass086$Type$ extends jni$_.JType<TestClass086> { |
| @jni$_.internal |
| const $TestClass086$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass086;'; |
| } |
| |
| /// from: `com.example.TestClass086$Sub` |
| extension type TestClass086$Sub<$T extends jni$_.JObject>._( |
| jni$_.JObject _$this) implements TestClass086<$T> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass086$Sub'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass086$Sub> type = $TestClass086$Sub$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass086$Sub() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass086$Sub<$T>>(); |
| } |
| } |
| |
| final class $TestClass086$Sub$Type$ extends jni$_.JType<TestClass086$Sub> { |
| @jni$_.internal |
| const $TestClass086$Sub$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass086$Sub;'; |
| } |
| |
| /// from: `com.example.TestClass087` |
| extension type TestClass087<$T extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject, DagA, DagD, DagE { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass087'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass087> type = $TestClass087$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass087> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'aMethod()V') { |
| _$impls[$p]!.aMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'bMethod()V') { |
| _$impls[$p]!.bMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'cMethod()V') { |
| _$impls[$p]!.cMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'dMethod()V') { |
| _$impls[$p]!.dMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'eMethod()V') { |
| _$impls[$p]!.eMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'isFoo([BI)[B') { |
| final $r = _$impls[$p]!.isFoo( |
| ($a![0] as jni$_.JByteArray), |
| ($a![1] as jni$_.JInteger).toDartInt(releaseOriginal: true), |
| ); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn<$T extends jni$_.JObject?>( |
| jni$_.JImplementer implementer, |
| $TestClass087<$T> $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass087', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.aMethod$async) r'aMethod()V', |
| if ($impl.bMethod$async) r'bMethod()V', |
| if ($impl.cMethod$async) r'cMethod()V', |
| if ($impl.dMethod$async) r'dMethod()V', |
| if ($impl.eMethod$async) r'eMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass087.implement( |
| $TestClass087<$T> $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass087<$T>>(); |
| } |
| } |
| |
| extension TestClass087$$Methods<$T extends jni$_.JObject?> on TestClass087<$T> { |
| static final _id_aMethod = TestClass087._class.instanceMethodId( |
| r'aMethod', |
| r'()V', |
| ); |
| |
| static final _aMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void aMethod()` |
| void aMethod() { |
| final _$$selfRef = reference; |
| _aMethod(_$$selfRef.pointer, _id_aMethod.pointer).check(); |
| } |
| |
| static final _id_bMethod = TestClass087._class.instanceMethodId( |
| r'bMethod', |
| r'()V', |
| ); |
| |
| static final _bMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void bMethod()` |
| void bMethod() { |
| final _$$selfRef = reference; |
| _bMethod(_$$selfRef.pointer, _id_bMethod.pointer).check(); |
| } |
| |
| static final _id_cMethod = TestClass087._class.instanceMethodId( |
| r'cMethod', |
| r'()V', |
| ); |
| |
| static final _cMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void cMethod()` |
| void cMethod() { |
| final _$$selfRef = reference; |
| _cMethod(_$$selfRef.pointer, _id_cMethod.pointer).check(); |
| } |
| |
| static final _id_dMethod = TestClass087._class.instanceMethodId( |
| r'dMethod', |
| r'()V', |
| ); |
| |
| static final _dMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void dMethod()` |
| void dMethod() { |
| final _$$selfRef = reference; |
| _dMethod(_$$selfRef.pointer, _id_dMethod.pointer).check(); |
| } |
| |
| static final _id_eMethod = TestClass087._class.instanceMethodId( |
| r'eMethod', |
| r'()V', |
| ); |
| |
| static final _eMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void eMethod()` |
| void eMethod() { |
| final _$$selfRef = reference; |
| _eMethod(_$$selfRef.pointer, _id_eMethod.pointer).check(); |
| } |
| |
| static final _id_isFoo = TestClass087._class.instanceMethodId( |
| r'isFoo', |
| r'([BI)[B', |
| ); |
| |
| static final _isFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public abstract byte[] isFoo(byte[] p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JByteArray isFoo<$S extends jni$_.JObject?>( |
| jni$_.JByteArray p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1.reference; |
| return _isFoo(_$$selfRef.pointer, _id_isFoo.pointer, _$p1.pointer, p2) |
| .object<jni$_.JByteArray>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass087<$T extends jni$_.JObject?> { |
| factory $TestClass087({ |
| required void Function() aMethod, |
| core$_.bool aMethod$async, |
| required void Function() bMethod, |
| core$_.bool bMethod$async, |
| required void Function() cMethod, |
| core$_.bool cMethod$async, |
| required void Function() dMethod, |
| core$_.bool dMethod$async, |
| required void Function() eMethod, |
| core$_.bool eMethod$async, |
| required jni$_.JByteArray Function(jni$_.JByteArray p1, core$_.int p2) |
| isFoo, |
| }) = _$TestClass087<$T>; |
| |
| void aMethod(); |
| core$_.bool get aMethod$async => false; |
| void bMethod(); |
| core$_.bool get bMethod$async => false; |
| void cMethod(); |
| core$_.bool get cMethod$async => false; |
| void dMethod(); |
| core$_.bool get dMethod$async => false; |
| void eMethod(); |
| core$_.bool get eMethod$async => false; |
| jni$_.JByteArray isFoo(jni$_.JByteArray p1, core$_.int p2); |
| } |
| |
| final class _$TestClass087<$T extends jni$_.JObject?> with $TestClass087<$T> { |
| _$TestClass087({ |
| required void Function() aMethod, |
| this.aMethod$async = false, |
| required void Function() bMethod, |
| this.bMethod$async = false, |
| required void Function() cMethod, |
| this.cMethod$async = false, |
| required void Function() dMethod, |
| this.dMethod$async = false, |
| required void Function() eMethod, |
| this.eMethod$async = false, |
| required jni$_.JByteArray Function(jni$_.JByteArray p1, core$_.int p2) |
| isFoo, |
| }) : _aMethod = aMethod, |
| _bMethod = bMethod, |
| _cMethod = cMethod, |
| _dMethod = dMethod, |
| _eMethod = eMethod, |
| _isFoo = isFoo; |
| |
| final void Function() _aMethod; |
| final core$_.bool aMethod$async; |
| final void Function() _bMethod; |
| final core$_.bool bMethod$async; |
| final void Function() _cMethod; |
| final core$_.bool cMethod$async; |
| final void Function() _dMethod; |
| final core$_.bool dMethod$async; |
| final void Function() _eMethod; |
| final core$_.bool eMethod$async; |
| final jni$_.JByteArray Function(jni$_.JByteArray p1, core$_.int p2) _isFoo; |
| |
| void aMethod() { |
| return _aMethod(); |
| } |
| |
| void bMethod() { |
| return _bMethod(); |
| } |
| |
| void cMethod() { |
| return _cMethod(); |
| } |
| |
| void dMethod() { |
| return _dMethod(); |
| } |
| |
| void eMethod() { |
| return _eMethod(); |
| } |
| |
| jni$_.JByteArray isFoo(jni$_.JByteArray p1, core$_.int p2) { |
| return _isFoo(p1, p2); |
| } |
| } |
| |
| final class $TestClass087$Type$ extends jni$_.JType<TestClass087> { |
| @jni$_.internal |
| const $TestClass087$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass087;'; |
| } |
| |
| /// from: `com.example.TestClass087$Nested` |
| extension type TestClass087$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass087$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass087$Nested> type = |
| $TestClass087$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass087$Nested() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass087$Nested>(); |
| } |
| } |
| |
| final class $TestClass087$Nested$Type$ |
| extends jni$_.JType<TestClass087$Nested> { |
| @jni$_.internal |
| const $TestClass087$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass087$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass088` |
| extension type TestClass088<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface, BaseInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass088'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass088> type = $TestClass088$Type$(); |
| static final _id_create = _class.constructorId( |
| r'([FI)V', |
| ); |
| |
| static final _create = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| jni$_ |
| .VarArgs<(jni$_.Pointer<jni$_.Void>, jni$_.Int32)>)>>( |
| 'globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public void <init>(float[] p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass088<$T, $U> create<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?, $S extends jni$_.JObject?>( |
| jni$_.JFloatArray? p1, |
| core$_.int p2, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _create(_$$classRef.pointer, _id_create.pointer, _$p1.pointer, p2) |
| .object<TestClass088<$T, $U>>(); |
| } |
| } |
| |
| extension TestClass088$$Methods<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?> on TestClass088<$T, $U> { |
| static final _id_otherInterfaceMethod = TestClass088._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_baseMethod = TestClass088._class.instanceMethodId( |
| r'baseMethod', |
| r'()V', |
| ); |
| |
| static final _baseMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void baseMethod()` |
| void baseMethod() { |
| final _$$selfRef = reference; |
| _baseMethod(_$$selfRef.pointer, _id_baseMethod.pointer).check(); |
| } |
| } |
| |
| final class $TestClass088$Type$ extends jni$_.JType<TestClass088> { |
| @jni$_.internal |
| const $TestClass088$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass088;'; |
| } |
| |
| /// from: `com.example.TestClass088$Nested` |
| extension type TestClass088$Nested<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass088$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass088$Nested> type = |
| $TestClass088$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'(Lcom/example/TestClass088;)V', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void <init>(com.example.TestClass088<T, U> $outerClass)` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass088$Nested( |
| TestClass088<$T?, $U?> $outerClass, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$$outerClass = $outerClass.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer, _$$outerClass.pointer) |
| .object<TestClass088$Nested<$T, $U>>(); |
| } |
| } |
| |
| final class $TestClass088$Nested$Type$ |
| extends jni$_.JType<TestClass088$Nested> { |
| @jni$_.internal |
| const $TestClass088$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass088$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass089` |
| extension type TestClass089._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface, BaseInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass089'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass089> type = $TestClass089$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass089() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer).object<TestClass089>(); |
| } |
| } |
| |
| extension TestClass089$$Methods on TestClass089 { |
| static final _id_otherInterfaceMethod = TestClass089._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_baseMethod = TestClass089._class.instanceMethodId( |
| r'baseMethod', |
| r'()V', |
| ); |
| |
| static final _baseMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void baseMethod()` |
| void baseMethod() { |
| final _$$selfRef = reference; |
| _baseMethod(_$$selfRef.pointer, _id_baseMethod.pointer).check(); |
| } |
| |
| static final _id_isFoo = TestClass089._class.instanceMethodId( |
| r'isFoo', |
| r'()Ljava/lang/Object;', |
| ); |
| |
| static final _isFoo = 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: `synchronized public java.lang.Object isFoo()` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JObject? isFoo<$S extends jni$_.JObject?, $V extends jni$_.JObject?>() { |
| final _$$selfRef = reference; |
| return _isFoo(_$$selfRef.pointer, _id_isFoo.pointer) |
| .object<jni$_.JObject?>(); |
| } |
| } |
| |
| final class $TestClass089$Type$ extends jni$_.JType<TestClass089> { |
| @jni$_.internal |
| const $TestClass089$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass089;'; |
| } |
| |
| /// from: `com.example.TestClass090` |
| extension type TestClass090<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject, DiamondLeft, DiamondRight { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass090'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass090> type = $TestClass090$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass090> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'baseMethod()V') { |
| _$impls[$p]!.baseMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'leftMethod()V') { |
| _$impls[$p]!.leftMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'rightMethod()V') { |
| _$impls[$p]!.rightMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'setFoo(Ljava/lang/Object;I)Ljava/lang/Object;') { |
| final $r = _$impls[$p]!.setFoo( |
| ($a![0] as jni$_.JObject?), |
| ($a![1] as jni$_.JInteger).toDartInt(releaseOriginal: true), |
| ); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn<$T extends jni$_.JObject?, $U extends jni$_.JObject?>( |
| jni$_.JImplementer implementer, |
| $TestClass090<$T, $U> $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass090', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.baseMethod$async) r'baseMethod()V', |
| if ($impl.leftMethod$async) r'leftMethod()V', |
| if ($impl.rightMethod$async) r'rightMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass090.implement( |
| $TestClass090<$T, $U> $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass090<$T, $U>>(); |
| } |
| } |
| |
| extension TestClass090$$Methods<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?> on TestClass090<$T, $U> { |
| static final _id_baseMethod = TestClass090._class.instanceMethodId( |
| r'baseMethod', |
| r'()V', |
| ); |
| |
| static final _baseMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void baseMethod()` |
| void baseMethod() { |
| final _$$selfRef = reference; |
| _baseMethod(_$$selfRef.pointer, _id_baseMethod.pointer).check(); |
| } |
| |
| static final _id_leftMethod = TestClass090._class.instanceMethodId( |
| r'leftMethod', |
| r'()V', |
| ); |
| |
| static final _leftMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void leftMethod()` |
| void leftMethod() { |
| final _$$selfRef = reference; |
| _leftMethod(_$$selfRef.pointer, _id_leftMethod.pointer).check(); |
| } |
| |
| static final _id_rightMethod = TestClass090._class.instanceMethodId( |
| r'rightMethod', |
| r'()V', |
| ); |
| |
| static final _rightMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void rightMethod()` |
| void rightMethod() { |
| final _$$selfRef = reference; |
| _rightMethod(_$$selfRef.pointer, _id_rightMethod.pointer).check(); |
| } |
| |
| static final _id_setFoo = TestClass090._class.instanceMethodId( |
| r'setFoo', |
| r'(Ljava/lang/Object;I)Ljava/lang/Object;', |
| ); |
| |
| static final _setFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public abstract java.lang.Object setFoo(java.lang.Object p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JObject? setFoo<$S extends jni$_.JObject?>( |
| jni$_.JObject? p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _setFoo(_$$selfRef.pointer, _id_setFoo.pointer, _$p1.pointer, p2) |
| .object<jni$_.JObject?>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass090<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?> { |
| factory $TestClass090({ |
| required void Function() baseMethod, |
| core$_.bool baseMethod$async, |
| required void Function() leftMethod, |
| core$_.bool leftMethod$async, |
| required void Function() rightMethod, |
| core$_.bool rightMethod$async, |
| required jni$_.JObject? Function(jni$_.JObject? p1, core$_.int p2) setFoo, |
| }) = _$TestClass090<$T, $U>; |
| |
| void baseMethod(); |
| core$_.bool get baseMethod$async => false; |
| void leftMethod(); |
| core$_.bool get leftMethod$async => false; |
| void rightMethod(); |
| core$_.bool get rightMethod$async => false; |
| jni$_.JObject? setFoo(jni$_.JObject? p1, core$_.int p2); |
| } |
| |
| final class _$TestClass090<$T extends jni$_.JObject?, $U extends jni$_.JObject?> |
| with $TestClass090<$T, $U> { |
| _$TestClass090({ |
| required void Function() baseMethod, |
| this.baseMethod$async = false, |
| required void Function() leftMethod, |
| this.leftMethod$async = false, |
| required void Function() rightMethod, |
| this.rightMethod$async = false, |
| required jni$_.JObject? Function(jni$_.JObject? p1, core$_.int p2) setFoo, |
| }) : _baseMethod = baseMethod, |
| _leftMethod = leftMethod, |
| _rightMethod = rightMethod, |
| _setFoo = setFoo; |
| |
| final void Function() _baseMethod; |
| final core$_.bool baseMethod$async; |
| final void Function() _leftMethod; |
| final core$_.bool leftMethod$async; |
| final void Function() _rightMethod; |
| final core$_.bool rightMethod$async; |
| final jni$_.JObject? Function(jni$_.JObject? p1, core$_.int p2) _setFoo; |
| |
| void baseMethod() { |
| return _baseMethod(); |
| } |
| |
| void leftMethod() { |
| return _leftMethod(); |
| } |
| |
| void rightMethod() { |
| return _rightMethod(); |
| } |
| |
| jni$_.JObject? setFoo(jni$_.JObject? p1, core$_.int p2) { |
| return _setFoo(p1, p2); |
| } |
| } |
| |
| final class $TestClass090$Type$ extends jni$_.JType<TestClass090> { |
| @jni$_.internal |
| const $TestClass090$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass090;'; |
| } |
| |
| /// from: `com.example.TestClass090$Nested` |
| extension type TestClass090$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass090$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass090$Nested> type = |
| $TestClass090$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass090$Nested() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass090$Nested>(); |
| } |
| } |
| |
| final class $TestClass090$Nested$Type$ |
| extends jni$_.JType<TestClass090$Nested> { |
| @jni$_.internal |
| const $TestClass090$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass090$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass091` |
| extension type TestClass091<$T extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface, BaseInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass091'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass091> type = $TestClass091$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass091() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass091<$T>>(); |
| } |
| } |
| |
| extension TestClass091$$Methods<$T extends jni$_.JObject> on TestClass091<$T> { |
| static final _id_otherInterfaceMethod = TestClass091._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_baseMethod = TestClass091._class.instanceMethodId( |
| r'baseMethod', |
| r'()V', |
| ); |
| |
| static final _baseMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void baseMethod()` |
| void baseMethod() { |
| final _$$selfRef = reference; |
| _baseMethod(_$$selfRef.pointer, _id_baseMethod.pointer).check(); |
| } |
| |
| static final _id_myMethod = TestClass091._class.instanceMethodId( |
| r'myMethod', |
| r'(Ljava/lang/Number;)Ljava/lang/Number;', |
| ); |
| |
| static final _myMethod = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public native T myMethod(T p1)` |
| /// The returned object must be released after use, by calling the [release] method. |
| $T myMethod<$S extends jni$_.JObject>( |
| $T p1, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1.reference; |
| return _myMethod(_$$selfRef.pointer, _id_myMethod.pointer, _$p1.pointer) |
| .object<$T>(); |
| } |
| } |
| |
| final class $TestClass091$Type$ extends jni$_.JType<TestClass091> { |
| @jni$_.internal |
| const $TestClass091$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass091;'; |
| } |
| |
| /// from: `com.example.TestClass091$Nested` |
| extension type TestClass091$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass091$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass091$Nested> type = |
| $TestClass091$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass091$Nested() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass091$Nested>(); |
| } |
| } |
| |
| final class $TestClass091$Nested$Type$ |
| extends jni$_.JType<TestClass091$Nested> { |
| @jni$_.internal |
| const $TestClass091$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass091$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass092` |
| extension type TestClass092._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass092'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass092> type = $TestClass092$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass092> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'otherInterfaceMethod()V') { |
| _$impls[$p]!.otherInterfaceMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'isFoo([J)[J') { |
| final $r = _$impls[$p]!.isFoo( |
| ($a![0] as jni$_.JLongArray?), |
| ); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $TestClass092 $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass092', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.otherInterfaceMethod$async) r'otherInterfaceMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass092.implement( |
| $TestClass092 $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass092>(); |
| } |
| } |
| |
| extension TestClass092$$Methods on TestClass092 { |
| static final _id_otherInterfaceMethod = TestClass092._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_isFoo = TestClass092._class.instanceMethodId( |
| r'isFoo', |
| r'([J)[J', |
| ); |
| |
| static final _isFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `default public long[] isFoo(long[] p1)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JLongArray? isFoo<$S extends jni$_.JObject?, $V extends jni$_.JObject?>( |
| jni$_.JLongArray? p1, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _isFoo(_$$selfRef.pointer, _id_isFoo.pointer, _$p1.pointer) |
| .object<jni$_.JLongArray?>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass092 { |
| factory $TestClass092({ |
| required void Function() otherInterfaceMethod, |
| core$_.bool otherInterfaceMethod$async, |
| required jni$_.JLongArray? Function(jni$_.JLongArray? p1) isFoo, |
| }) = _$TestClass092; |
| |
| void otherInterfaceMethod(); |
| core$_.bool get otherInterfaceMethod$async => false; |
| jni$_.JLongArray? isFoo(jni$_.JLongArray? p1); |
| } |
| |
| final class _$TestClass092 with $TestClass092 { |
| _$TestClass092({ |
| required void Function() otherInterfaceMethod, |
| this.otherInterfaceMethod$async = false, |
| required jni$_.JLongArray? Function(jni$_.JLongArray? p1) isFoo, |
| }) : _otherInterfaceMethod = otherInterfaceMethod, |
| _isFoo = isFoo; |
| |
| final void Function() _otherInterfaceMethod; |
| final core$_.bool otherInterfaceMethod$async; |
| final jni$_.JLongArray? Function(jni$_.JLongArray? p1) _isFoo; |
| |
| void otherInterfaceMethod() { |
| return _otherInterfaceMethod(); |
| } |
| |
| jni$_.JLongArray? isFoo(jni$_.JLongArray? p1) { |
| return _isFoo(p1); |
| } |
| } |
| |
| final class $TestClass092$Type$ extends jni$_.JType<TestClass092> { |
| @jni$_.internal |
| const $TestClass092$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass092;'; |
| } |
| |
| /// from: `com.example.TestClass092$Nested` |
| extension type TestClass092$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass092$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass092$Nested> type = |
| $TestClass092$Nested$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass092$Nested> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $TestClass092$Nested $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass092$Nested', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass092$Nested.implement( |
| $TestClass092$Nested $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass092$Nested>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass092$Nested { |
| factory $TestClass092$Nested() = _$TestClass092$Nested; |
| } |
| |
| final class _$TestClass092$Nested with $TestClass092$Nested { |
| _$TestClass092$Nested(); |
| } |
| |
| final class $TestClass092$Nested$Type$ |
| extends jni$_.JType<TestClass092$Nested> { |
| @jni$_.internal |
| const $TestClass092$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass092$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass093` |
| extension type TestClass093<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?>._(jni$_.JObject _$this) implements GrandParent { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass093'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass093> type = $TestClass093$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass093() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass093<$T, $U>>(); |
| } |
| } |
| |
| extension TestClass093$$Methods<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?> on TestClass093<$T, $U> { |
| static final _id_grandParentMethod = TestClass093._class.instanceMethodId( |
| r'grandParentMethod', |
| r'()V', |
| ); |
| |
| static final _grandParentMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void grandParentMethod()` |
| void grandParentMethod() { |
| final _$$selfRef = reference; |
| _grandParentMethod(_$$selfRef.pointer, _id_grandParentMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_isFoo = TestClass093._class.instanceMethodId( |
| r'isFoo', |
| r'(Lcom/example/CustomObject;I)Lcom/example/CustomObject;', |
| ); |
| |
| static final _isFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public com.example.CustomObject<S> isFoo(com.example.CustomObject<S> p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| CustomObject<$S?>? isFoo<$S extends jni$_.JObject?>( |
| CustomObject<$S?>? p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _isFoo(_$$selfRef.pointer, _id_isFoo.pointer, _$p1.pointer, p2) |
| .object<CustomObject<$S?>?>(); |
| } |
| } |
| |
| final class $TestClass093$Type$ extends jni$_.JType<TestClass093> { |
| @jni$_.internal |
| const $TestClass093$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass093;'; |
| } |
| |
| /// from: `com.example.TestClass094` |
| extension type TestClass094<$T extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject, DiamondLeft, DiamondRight { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass094'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass094> type = $TestClass094$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass094() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass094<$T>>(); |
| } |
| } |
| |
| extension TestClass094$$Methods<$T extends jni$_.JObject?> on TestClass094<$T> { |
| static final _id_baseMethod = TestClass094._class.instanceMethodId( |
| r'baseMethod', |
| r'()V', |
| ); |
| |
| static final _baseMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void baseMethod()` |
| void baseMethod() { |
| final _$$selfRef = reference; |
| _baseMethod(_$$selfRef.pointer, _id_baseMethod.pointer).check(); |
| } |
| |
| static final _id_leftMethod = TestClass094._class.instanceMethodId( |
| r'leftMethod', |
| r'()V', |
| ); |
| |
| static final _leftMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void leftMethod()` |
| void leftMethod() { |
| final _$$selfRef = reference; |
| _leftMethod(_$$selfRef.pointer, _id_leftMethod.pointer).check(); |
| } |
| |
| static final _id_rightMethod = TestClass094._class.instanceMethodId( |
| r'rightMethod', |
| r'()V', |
| ); |
| |
| static final _rightMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void rightMethod()` |
| void rightMethod() { |
| final _$$selfRef = reference; |
| _rightMethod(_$$selfRef.pointer, _id_rightMethod.pointer).check(); |
| } |
| |
| static final _id_setFoo = TestClass094._class.instanceMethodId( |
| r'setFoo', |
| r'()[F', |
| ); |
| |
| static final _setFoo = 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 final float[] setFoo()` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JFloatArray? |
| setFoo<$S extends jni$_.JObject?, $V extends jni$_.JObject?>() { |
| final _$$selfRef = reference; |
| return _setFoo(_$$selfRef.pointer, _id_setFoo.pointer) |
| .object<jni$_.JFloatArray?>(); |
| } |
| } |
| |
| final class $TestClass094$Type$ extends jni$_.JType<TestClass094> { |
| @jni$_.internal |
| const $TestClass094$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass094;'; |
| } |
| |
| /// from: `com.example.TestClass094$Nested` |
| extension type TestClass094$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass094$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass094$Nested> type = |
| $TestClass094$Nested$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass094$Nested> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $TestClass094$Nested $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass094$Nested', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass094$Nested.implement( |
| $TestClass094$Nested $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass094$Nested>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass094$Nested { |
| factory $TestClass094$Nested() = _$TestClass094$Nested; |
| } |
| |
| final class _$TestClass094$Nested with $TestClass094$Nested { |
| _$TestClass094$Nested(); |
| } |
| |
| final class $TestClass094$Nested$Type$ |
| extends jni$_.JType<TestClass094$Nested> { |
| @jni$_.internal |
| const $TestClass094$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass094$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass095` |
| extension type TestClass095<$T extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass095'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass095> type = $TestClass095$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass095() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass095<$T>>(); |
| } |
| } |
| |
| extension TestClass095$$Methods<$T extends jni$_.JObject> on TestClass095<$T> { |
| static final _id_isFoo = TestClass095._class.instanceMethodId( |
| r'isFoo', |
| r'()[Ljava/util/List;', |
| ); |
| |
| static final _isFoo = 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 final java.util.List[] isFoo()` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JArray<jni$_.JList<$S>>? isFoo<$S extends jni$_.JObject>() { |
| final _$$selfRef = reference; |
| return _isFoo(_$$selfRef.pointer, _id_isFoo.pointer) |
| .object<jni$_.JArray<jni$_.JList<$S>>?>(); |
| } |
| } |
| |
| final class $TestClass095$Type$ extends jni$_.JType<TestClass095> { |
| @jni$_.internal |
| const $TestClass095$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass095;'; |
| } |
| |
| /// from: `com.example.TestClass096` |
| extension type TestClass096._(jni$_.JObject _$this) |
| implements jni$_.JObject, DiamondLeft, DiamondRight { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass096'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass096> type = $TestClass096$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass096() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer).object<TestClass096>(); |
| } |
| } |
| |
| extension TestClass096$$Methods on TestClass096 { |
| static final _id_baseMethod = TestClass096._class.instanceMethodId( |
| r'baseMethod', |
| r'()V', |
| ); |
| |
| static final _baseMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void baseMethod()` |
| void baseMethod() { |
| final _$$selfRef = reference; |
| _baseMethod(_$$selfRef.pointer, _id_baseMethod.pointer).check(); |
| } |
| |
| static final _id_leftMethod = TestClass096._class.instanceMethodId( |
| r'leftMethod', |
| r'()V', |
| ); |
| |
| static final _leftMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void leftMethod()` |
| void leftMethod() { |
| final _$$selfRef = reference; |
| _leftMethod(_$$selfRef.pointer, _id_leftMethod.pointer).check(); |
| } |
| |
| static final _id_rightMethod = TestClass096._class.instanceMethodId( |
| r'rightMethod', |
| r'()V', |
| ); |
| |
| static final _rightMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void rightMethod()` |
| void rightMethod() { |
| final _$$selfRef = reference; |
| _rightMethod(_$$selfRef.pointer, _id_rightMethod.pointer).check(); |
| } |
| } |
| |
| final class $TestClass096$Type$ extends jni$_.JType<TestClass096> { |
| @jni$_.internal |
| const $TestClass096$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass096;'; |
| } |
| |
| /// from: `com.example.TestClass096$Nested` |
| extension type TestClass096$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass096$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass096$Nested> type = |
| $TestClass096$Nested$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass096$Nested> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $TestClass096$Nested $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass096$Nested', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass096$Nested.implement( |
| $TestClass096$Nested $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass096$Nested>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass096$Nested { |
| factory $TestClass096$Nested() = _$TestClass096$Nested; |
| } |
| |
| final class _$TestClass096$Nested with $TestClass096$Nested { |
| _$TestClass096$Nested(); |
| } |
| |
| final class $TestClass096$Nested$Type$ |
| extends jni$_.JType<TestClass096$Nested> { |
| @jni$_.internal |
| const $TestClass096$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass096$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass097` |
| extension type TestClass097<$T extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements GenericParent<jni$_.JObject?> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass097'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass097> type = $TestClass097$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass097() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass097<$T>>(); |
| } |
| } |
| |
| extension TestClass097$$Methods<$T extends jni$_.JObject> on TestClass097<$T> { |
| static final _id_genericParentMethod = TestClass097._class.instanceMethodId( |
| r'genericParentMethod', |
| r'(Ljava/lang/Object;)V', |
| ); |
| |
| static final _genericParentMethod = 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 genericParentMethod(java.lang.Object t)` |
| void genericParentMethod( |
| jni$_.JObject? t, |
| ) { |
| final _$$selfRef = reference; |
| final _$t = t?.reference ?? jni$_.jNullReference; |
| _genericParentMethod( |
| _$$selfRef.pointer, _id_genericParentMethod.pointer, _$t.pointer) |
| .check(); |
| } |
| |
| static final _id_getFoo = TestClass097._class.instanceMethodId( |
| r'getFoo', |
| r'(Ljava/lang/Object;I)Ljava/lang/Object;', |
| ); |
| |
| static final _getFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public native java.lang.Object getFoo(java.lang.Object p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JObject? getFoo<$S extends jni$_.JObject>( |
| jni$_.JObject? p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _getFoo(_$$selfRef.pointer, _id_getFoo.pointer, _$p1.pointer, p2) |
| .object<jni$_.JObject?>(); |
| } |
| } |
| |
| final class $TestClass097$Type$ extends jni$_.JType<TestClass097> { |
| @jni$_.internal |
| const $TestClass097$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass097;'; |
| } |
| |
| /// from: `com.example.TestClass097$Nested` |
| extension type TestClass097$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass097$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass097$Nested> type = |
| $TestClass097$Nested$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass097$Nested> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $TestClass097$Nested $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass097$Nested', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass097$Nested.implement( |
| $TestClass097$Nested $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass097$Nested>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass097$Nested { |
| factory $TestClass097$Nested() = _$TestClass097$Nested; |
| } |
| |
| final class _$TestClass097$Nested with $TestClass097$Nested { |
| _$TestClass097$Nested(); |
| } |
| |
| final class $TestClass097$Nested$Type$ |
| extends jni$_.JType<TestClass097$Nested> { |
| @jni$_.internal |
| const $TestClass097$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass097$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass098` |
| extension type TestClass098._(jni$_.JObject _$this) |
| implements GenericParent<jni$_.JObject?> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass098'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass098> type = $TestClass098$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass098() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer).object<TestClass098>(); |
| } |
| } |
| |
| extension TestClass098$$Methods on TestClass098 { |
| static final _id_genericParentMethod = TestClass098._class.instanceMethodId( |
| r'genericParentMethod', |
| r'(Ljava/lang/Object;)V', |
| ); |
| |
| static final _genericParentMethod = 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 genericParentMethod(java.lang.Object t)` |
| void genericParentMethod( |
| jni$_.JObject? t, |
| ) { |
| final _$$selfRef = reference; |
| final _$t = t?.reference ?? jni$_.jNullReference; |
| _genericParentMethod( |
| _$$selfRef.pointer, _id_genericParentMethod.pointer, _$t.pointer) |
| .check(); |
| } |
| |
| static final _id_getFoo = TestClass098._class.instanceMethodId( |
| r'getFoo', |
| r'()V', |
| ); |
| |
| static final _getFoo = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public final void getFoo()` |
| void getFoo<$S extends jni$_.JObject?>() { |
| final _$$selfRef = reference; |
| _getFoo(_$$selfRef.pointer, _id_getFoo.pointer).check(); |
| } |
| } |
| |
| final class $TestClass098$Type$ extends jni$_.JType<TestClass098> { |
| @jni$_.internal |
| const $TestClass098$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass098;'; |
| } |
| |
| /// from: `com.example.TestClass098$NestedEnum` |
| extension type TestClass098$NestedEnum._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass098$NestedEnum'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass098$NestedEnum> type = |
| $TestClass098$NestedEnum$Type$(); |
| static final _id_V1 = _class.staticFieldId( |
| r'V1', |
| r'Lcom/example/TestClass098$NestedEnum;', |
| ); |
| |
| /// from: `static public final com.example.TestClass098$NestedEnum V1` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass098$NestedEnum get V1 => |
| _id_V1.get(_class, TestClass098$NestedEnum.type) |
| as TestClass098$NestedEnum; |
| |
| static final _id_values = _class.staticMethodId( |
| r'values', |
| r'()[Lcom/example/TestClass098$NestedEnum;', |
| ); |
| |
| static final _values = 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 com.example.TestClass098$NestedEnum[] values()` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JArray<TestClass098$NestedEnum?>? values() { |
| final _$$classRef = _class.reference; |
| return _values(_$$classRef.pointer, _id_values.pointer) |
| .object<jni$_.JArray<TestClass098$NestedEnum?>?>(); |
| } |
| |
| static final _id_valueOf = _class.staticMethodId( |
| r'valueOf', |
| r'(Ljava/lang/String;)Lcom/example/TestClass098$NestedEnum;', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `static public com.example.TestClass098$NestedEnum valueOf(java.lang.String name)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass098$NestedEnum? valueOf( |
| jni$_.JString? name, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$name = name?.reference ?? jni$_.jNullReference; |
| return _valueOf(_$$classRef.pointer, _id_valueOf.pointer, _$name.pointer) |
| .object<TestClass098$NestedEnum?>(); |
| } |
| } |
| |
| final class $TestClass098$NestedEnum$Type$ |
| extends jni$_.JType<TestClass098$NestedEnum> { |
| @jni$_.internal |
| const $TestClass098$NestedEnum$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass098$NestedEnum;'; |
| } |
| |
| /// from: `com.example.TestClass099` |
| extension type TestClass099<$T extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass099'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass099> type = $TestClass099$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass099() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass099<$T>>(); |
| } |
| } |
| |
| extension TestClass099$$Methods<$T extends jni$_.JObject?> on TestClass099<$T> { |
| static final _id_isFoo = TestClass099._class.instanceMethodId( |
| r'isFoo', |
| r'(Ljava/util/Set;)Ljava/util/Set;', |
| ); |
| |
| static final _isFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public final java.util.Set<S> isFoo(java.util.Set<S> p1)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JSet<$S?>? isFoo<$S extends jni$_.JObject?>( |
| jni$_.JSet<$S?>? p1, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _isFoo(_$$selfRef.pointer, _id_isFoo.pointer, _$p1.pointer) |
| .object<jni$_.JSet<$S?>?>(); |
| } |
| } |
| |
| final class $TestClass099$Type$ extends jni$_.JType<TestClass099> { |
| @jni$_.internal |
| const $TestClass099$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass099;'; |
| } |
| |
| /// from: `com.example.TestClass099$Nested` |
| extension type TestClass099$Nested<$T extends jni$_.JObject?>._( |
| jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass099$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass099$Nested> type = |
| $TestClass099$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'(Lcom/example/TestClass099;)V', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void <init>(com.example.TestClass099<T> $outerClass)` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass099$Nested( |
| TestClass099<$T?> $outerClass, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$$outerClass = $outerClass.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer, _$$outerClass.pointer) |
| .object<TestClass099$Nested<$T>>(); |
| } |
| } |
| |
| final class $TestClass099$Nested$Type$ |
| extends jni$_.JType<TestClass099$Nested> { |
| @jni$_.internal |
| const $TestClass099$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass099$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass100` |
| extension type TestClass100<$T extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements GenericParent<jni$_.JString> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass100'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass100> type = $TestClass100$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass100() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass100<$T>>(); |
| } |
| } |
| |
| extension TestClass100$$Methods<$T extends jni$_.JObject> on TestClass100<$T> { |
| static final _id_myField = TestClass100._class.instanceFieldId( |
| r'myField', |
| r'Ljava/util/Set;', |
| ); |
| |
| /// from: `public final java.util.Set<T> myField` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JSet<$T>? get myField => |
| _id_myField.getNullable(this, jni$_.JSet.type) as jni$_.JSet<$T>?; |
| |
| static final _id_genericParentMethod$1 = TestClass100._class.instanceMethodId( |
| r'genericParentMethod', |
| r'(Ljava/lang/String;)V', |
| ); |
| |
| static final _genericParentMethod$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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void genericParentMethod(java.lang.String t)` |
| void genericParentMethod$1( |
| jni$_.JString? t, |
| ) { |
| final _$$selfRef = reference; |
| final _$t = t?.reference ?? jni$_.jNullReference; |
| _genericParentMethod$1( |
| _$$selfRef.pointer, _id_genericParentMethod$1.pointer, _$t.pointer) |
| .check(); |
| } |
| } |
| |
| final class $TestClass100$Type$ extends jni$_.JType<TestClass100> { |
| @jni$_.internal |
| const $TestClass100$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass100;'; |
| } |
| |
| /// from: `com.example.TestClass100$Nested` |
| extension type TestClass100$Nested<$T extends jni$_.JObject>._( |
| jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass100$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass100$Nested> type = |
| $TestClass100$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'(Lcom/example/TestClass100;)V', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void <init>(com.example.TestClass100<T> $outerClass)` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass100$Nested( |
| TestClass100<$T> $outerClass, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$$outerClass = $outerClass.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer, _$$outerClass.pointer) |
| .object<TestClass100$Nested<$T>>(); |
| } |
| } |
| |
| final class $TestClass100$Nested$Type$ |
| extends jni$_.JType<TestClass100$Nested> { |
| @jni$_.internal |
| const $TestClass100$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass100$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass101` |
| extension type TestClass101._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface, BaseInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass101'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass101> type = $TestClass101$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass101() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer).object<TestClass101>(); |
| } |
| } |
| |
| extension TestClass101$$Methods on TestClass101 { |
| static final _id_otherInterfaceMethod = TestClass101._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_baseMethod = TestClass101._class.instanceMethodId( |
| r'baseMethod', |
| r'()V', |
| ); |
| |
| static final _baseMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void baseMethod()` |
| void baseMethod() { |
| final _$$selfRef = reference; |
| _baseMethod(_$$selfRef.pointer, _id_baseMethod.pointer).check(); |
| } |
| |
| static final _id_setFoo = TestClass101._class.instanceMethodId( |
| r'setFoo', |
| r'(Lcom/example/CustomRecord;I)Lcom/example/CustomRecord;', |
| ); |
| |
| static final _setFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `synchronized public com.example.CustomRecord<S> setFoo(com.example.CustomRecord<S> p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JObject? setFoo<$S extends jni$_.JObject, $V extends jni$_.JObject>( |
| jni$_.JObject? p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _setFoo(_$$selfRef.pointer, _id_setFoo.pointer, _$p1.pointer, p2) |
| .object<jni$_.JObject?>(); |
| } |
| } |
| |
| final class $TestClass101$Type$ extends jni$_.JType<TestClass101> { |
| @jni$_.internal |
| const $TestClass101$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass101;'; |
| } |
| |
| /// from: `com.example.TestClass102` |
| extension type TestClass102<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface, BaseInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass102'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass102> type = $TestClass102$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass102() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass102<$T, $U>>(); |
| } |
| } |
| |
| extension TestClass102$$Methods<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?> on TestClass102<$T, $U> { |
| static final _id_otherInterfaceMethod = TestClass102._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_baseMethod = TestClass102._class.instanceMethodId( |
| r'baseMethod', |
| r'()V', |
| ); |
| |
| static final _baseMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void baseMethod()` |
| void baseMethod() { |
| final _$$selfRef = reference; |
| _baseMethod(_$$selfRef.pointer, _id_baseMethod.pointer).check(); |
| } |
| |
| static final _id_getFoo = TestClass102._class.instanceMethodId( |
| r'getFoo', |
| r'(Ljava/lang/String;I)Ljava/lang/String;', |
| ); |
| |
| static final _getFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public java.lang.String getFoo(java.lang.String p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JString? getFoo( |
| jni$_.JString? p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _getFoo(_$$selfRef.pointer, _id_getFoo.pointer, _$p1.pointer, p2) |
| .object<jni$_.JString?>(); |
| } |
| } |
| |
| final class $TestClass102$Type$ extends jni$_.JType<TestClass102> { |
| @jni$_.internal |
| const $TestClass102$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass102;'; |
| } |
| |
| /// from: `com.example.TestClass102$Nested` |
| extension type TestClass102$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass102$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass102$Nested> type = |
| $TestClass102$Nested$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass102$Nested> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $TestClass102$Nested $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass102$Nested', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass102$Nested.implement( |
| $TestClass102$Nested $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass102$Nested>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass102$Nested { |
| factory $TestClass102$Nested() = _$TestClass102$Nested; |
| } |
| |
| final class _$TestClass102$Nested with $TestClass102$Nested { |
| _$TestClass102$Nested(); |
| } |
| |
| final class $TestClass102$Nested$Type$ |
| extends jni$_.JType<TestClass102$Nested> { |
| @jni$_.internal |
| const $TestClass102$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass102$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass103` |
| extension type TestClass103._(jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass103'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass103> type = $TestClass103$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass103> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'setFoo([Lcom/example/CustomEnum;)[Lcom/example/CustomEnum;') { |
| final $r = _$impls[$p]!.setFoo( |
| ($a![0] as jni$_.JArray<CustomEnum?>?), |
| ); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $TestClass103 $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass103', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass103.implement( |
| $TestClass103 $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass103>(); |
| } |
| } |
| |
| extension TestClass103$$Methods on TestClass103 { |
| static final _id_setFoo = TestClass103._class.instanceMethodId( |
| r'setFoo', |
| r'([Lcom/example/CustomEnum;)[Lcom/example/CustomEnum;', |
| ); |
| |
| static final _setFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `default public com.example.CustomEnum[] setFoo(com.example.CustomEnum[] p1)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JArray<CustomEnum?>? setFoo<$S extends jni$_.JObject?>( |
| jni$_.JArray<CustomEnum?>? p1, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _setFoo(_$$selfRef.pointer, _id_setFoo.pointer, _$p1.pointer) |
| .object<jni$_.JArray<CustomEnum?>?>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass103 { |
| factory $TestClass103({ |
| required jni$_.JArray<CustomEnum?>? Function(jni$_.JArray<CustomEnum?>? p1) |
| setFoo, |
| }) = _$TestClass103; |
| |
| jni$_.JArray<CustomEnum?>? setFoo(jni$_.JArray<CustomEnum?>? p1); |
| } |
| |
| final class _$TestClass103 with $TestClass103 { |
| _$TestClass103({ |
| required jni$_.JArray<CustomEnum?>? Function(jni$_.JArray<CustomEnum?>? p1) |
| setFoo, |
| }) : _setFoo = setFoo; |
| |
| final jni$_.JArray<CustomEnum?>? Function(jni$_.JArray<CustomEnum?>? p1) |
| _setFoo; |
| |
| jni$_.JArray<CustomEnum?>? setFoo(jni$_.JArray<CustomEnum?>? p1) { |
| return _setFoo(p1); |
| } |
| } |
| |
| final class $TestClass103$Type$ extends jni$_.JType<TestClass103> { |
| @jni$_.internal |
| const $TestClass103$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass103;'; |
| } |
| |
| /// from: `com.example.TestClass104` |
| extension type TestClass104<$T extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements jni$_.JObject, DagA, DagD, DagE { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass104'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass104> type = $TestClass104$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass104() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass104<$T>>(); |
| } |
| } |
| |
| extension TestClass104$$Methods<$T extends jni$_.JObject> on TestClass104<$T> { |
| static final _id_aMethod = TestClass104._class.instanceMethodId( |
| r'aMethod', |
| r'()V', |
| ); |
| |
| static final _aMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void aMethod()` |
| void aMethod() { |
| final _$$selfRef = reference; |
| _aMethod(_$$selfRef.pointer, _id_aMethod.pointer).check(); |
| } |
| |
| static final _id_bMethod = TestClass104._class.instanceMethodId( |
| r'bMethod', |
| r'()V', |
| ); |
| |
| static final _bMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void bMethod()` |
| void bMethod() { |
| final _$$selfRef = reference; |
| _bMethod(_$$selfRef.pointer, _id_bMethod.pointer).check(); |
| } |
| |
| static final _id_cMethod = TestClass104._class.instanceMethodId( |
| r'cMethod', |
| r'()V', |
| ); |
| |
| static final _cMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void cMethod()` |
| void cMethod() { |
| final _$$selfRef = reference; |
| _cMethod(_$$selfRef.pointer, _id_cMethod.pointer).check(); |
| } |
| |
| static final _id_dMethod = TestClass104._class.instanceMethodId( |
| r'dMethod', |
| r'()V', |
| ); |
| |
| static final _dMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void dMethod()` |
| void dMethod() { |
| final _$$selfRef = reference; |
| _dMethod(_$$selfRef.pointer, _id_dMethod.pointer).check(); |
| } |
| |
| static final _id_eMethod = TestClass104._class.instanceMethodId( |
| r'eMethod', |
| r'()V', |
| ); |
| |
| static final _eMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void eMethod()` |
| void eMethod() { |
| final _$$selfRef = reference; |
| _eMethod(_$$selfRef.pointer, _id_eMethod.pointer).check(); |
| } |
| |
| static final _id_isFoo = TestClass104._class.instanceMethodId( |
| r'isFoo', |
| r'()Lcom/example/CustomInterface;', |
| ); |
| |
| static final _isFoo = 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: `synchronized public com.example.CustomInterface<S> isFoo()` |
| /// The returned object must be released after use, by calling the [release] method. |
| CustomInterface<$S>? isFoo<$S extends jni$_.JObject>() { |
| final _$$selfRef = reference; |
| return _isFoo(_$$selfRef.pointer, _id_isFoo.pointer) |
| .object<CustomInterface<$S>?>(); |
| } |
| } |
| |
| final class $TestClass104$Type$ extends jni$_.JType<TestClass104> { |
| @jni$_.internal |
| const $TestClass104$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass104;'; |
| } |
| |
| /// from: `com.example.TestClass104$Nested` |
| extension type TestClass104$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass104$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass104$Nested> type = |
| $TestClass104$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass104$Nested() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass104$Nested>(); |
| } |
| } |
| |
| final class $TestClass104$Nested$Type$ |
| extends jni$_.JType<TestClass104$Nested> { |
| @jni$_.internal |
| const $TestClass104$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass104$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass105` |
| extension type TestClass105<$T extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface, BaseInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass105'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass105> type = $TestClass105$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'([Lcom/example/CustomInterface;)V', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void <init>(com.example.CustomInterface[] p1)` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass105( |
| jni$_.JArray<CustomInterface<$T>>? p1, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer, _$p1.pointer) |
| .object<TestClass105<$T>>(); |
| } |
| } |
| |
| extension TestClass105$$Methods<$T extends jni$_.JObject> on TestClass105<$T> { |
| static final _id_otherInterfaceMethod = TestClass105._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_baseMethod = TestClass105._class.instanceMethodId( |
| r'baseMethod', |
| r'()V', |
| ); |
| |
| static final _baseMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void baseMethod()` |
| void baseMethod() { |
| final _$$selfRef = reference; |
| _baseMethod(_$$selfRef.pointer, _id_baseMethod.pointer).check(); |
| } |
| } |
| |
| final class $TestClass105$Type$ extends jni$_.JType<TestClass105> { |
| @jni$_.internal |
| const $TestClass105$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass105;'; |
| } |
| |
| /// from: `com.example.TestClass105$NestedEnum` |
| extension type TestClass105$NestedEnum._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass105$NestedEnum'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass105$NestedEnum> type = |
| $TestClass105$NestedEnum$Type$(); |
| static final _id_V1 = _class.staticFieldId( |
| r'V1', |
| r'Lcom/example/TestClass105$NestedEnum;', |
| ); |
| |
| /// from: `static public final com.example.TestClass105$NestedEnum V1` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass105$NestedEnum get V1 => |
| _id_V1.get(_class, TestClass105$NestedEnum.type) |
| as TestClass105$NestedEnum; |
| |
| static final _id_values = _class.staticMethodId( |
| r'values', |
| r'()[Lcom/example/TestClass105$NestedEnum;', |
| ); |
| |
| static final _values = 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 com.example.TestClass105$NestedEnum[] values()` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JArray<TestClass105$NestedEnum?>? values() { |
| final _$$classRef = _class.reference; |
| return _values(_$$classRef.pointer, _id_values.pointer) |
| .object<jni$_.JArray<TestClass105$NestedEnum?>?>(); |
| } |
| |
| static final _id_valueOf = _class.staticMethodId( |
| r'valueOf', |
| r'(Ljava/lang/String;)Lcom/example/TestClass105$NestedEnum;', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `static public com.example.TestClass105$NestedEnum valueOf(java.lang.String name)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass105$NestedEnum? valueOf( |
| jni$_.JString? name, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$name = name?.reference ?? jni$_.jNullReference; |
| return _valueOf(_$$classRef.pointer, _id_valueOf.pointer, _$name.pointer) |
| .object<TestClass105$NestedEnum?>(); |
| } |
| } |
| |
| final class $TestClass105$NestedEnum$Type$ |
| extends jni$_.JType<TestClass105$NestedEnum> { |
| @jni$_.internal |
| const $TestClass105$NestedEnum$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass105$NestedEnum;'; |
| } |
| |
| /// from: `com.example.TestClass106` |
| extension type TestClass106<$T extends jni$_.JObject, |
| $U extends jni$_.JObject>._(jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass106'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass106> type = $TestClass106$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass106() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass106<$T, $U>>(); |
| } |
| } |
| |
| final class $TestClass106$Type$ extends jni$_.JType<TestClass106> { |
| @jni$_.internal |
| const $TestClass106$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass106;'; |
| } |
| |
| /// from: `com.example.TestClass106$Sub` |
| extension type TestClass106$Sub<$T extends jni$_.JObject, |
| $U extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements TestClass106<$T, $U> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass106$Sub'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass106$Sub> type = $TestClass106$Sub$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass106$Sub() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass106$Sub<$T, $U>>(); |
| } |
| } |
| |
| final class $TestClass106$Sub$Type$ extends jni$_.JType<TestClass106$Sub> { |
| @jni$_.internal |
| const $TestClass106$Sub$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass106$Sub;'; |
| } |
| |
| /// from: `com.example.TestClass106$Nested` |
| extension type TestClass106$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass106$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass106$Nested> type = |
| $TestClass106$Nested$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass106$Nested> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $TestClass106$Nested $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass106$Nested', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass106$Nested.implement( |
| $TestClass106$Nested $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass106$Nested>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass106$Nested { |
| factory $TestClass106$Nested() = _$TestClass106$Nested; |
| } |
| |
| final class _$TestClass106$Nested with $TestClass106$Nested { |
| _$TestClass106$Nested(); |
| } |
| |
| final class $TestClass106$Nested$Type$ |
| extends jni$_.JType<TestClass106$Nested> { |
| @jni$_.internal |
| const $TestClass106$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass106$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass107` |
| extension type TestClass107._(jni$_.JObject _$this) implements GrandParent { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass107'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass107> type = $TestClass107$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass107() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer).object<TestClass107>(); |
| } |
| |
| static final _id_getFoo = _class.staticMethodId( |
| r'getFoo', |
| r'([F)[F', |
| ); |
| |
| static final _getFoo = 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 float[] getFoo(float[] p1)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JFloatArray? |
| getFoo<$S extends jni$_.JObject?, $V extends jni$_.JObject?>( |
| jni$_.JFloatArray? p1, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _getFoo(_$$classRef.pointer, _id_getFoo.pointer, _$p1.pointer) |
| .object<jni$_.JFloatArray?>(); |
| } |
| } |
| |
| extension TestClass107$$Methods on TestClass107 { |
| static final _id_grandParentMethod = TestClass107._class.instanceMethodId( |
| r'grandParentMethod', |
| r'()V', |
| ); |
| |
| static final _grandParentMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void grandParentMethod()` |
| void grandParentMethod() { |
| final _$$selfRef = reference; |
| _grandParentMethod(_$$selfRef.pointer, _id_grandParentMethod.pointer) |
| .check(); |
| } |
| } |
| |
| final class $TestClass107$Type$ extends jni$_.JType<TestClass107> { |
| @jni$_.internal |
| const $TestClass107$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass107;'; |
| } |
| |
| /// from: `com.example.TestClass107$Nested` |
| extension type TestClass107$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass107$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass107$Nested> type = |
| $TestClass107$Nested$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass107$Nested> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $TestClass107$Nested $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass107$Nested', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass107$Nested.implement( |
| $TestClass107$Nested $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass107$Nested>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass107$Nested { |
| factory $TestClass107$Nested() = _$TestClass107$Nested; |
| } |
| |
| final class _$TestClass107$Nested with $TestClass107$Nested { |
| _$TestClass107$Nested(); |
| } |
| |
| final class $TestClass107$Nested$Type$ |
| extends jni$_.JType<TestClass107$Nested> { |
| @jni$_.internal |
| const $TestClass107$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass107$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass108` |
| extension type TestClass108<$T extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass108'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass108> type = $TestClass108$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass108> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'otherInterfaceMethod()V') { |
| _$impls[$p]!.otherInterfaceMethod(); |
| return jni$_.nullptr; |
| } |
| if ($d == r'setFoo()Ljava/lang/Number;') { |
| final $r = _$impls[$p]!.setFoo(); |
| return ($r as jni$_.JObject?) |
| ?.as(const jni$_.$JObject$Type$()) |
| .reference |
| .toPointer() ?? |
| jni$_.nullptr; |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn<$T extends jni$_.JObject>( |
| jni$_.JImplementer implementer, |
| $TestClass108<$T> $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass108', |
| $p, |
| _$invokePointer, |
| [ |
| if ($impl.otherInterfaceMethod$async) r'otherInterfaceMethod()V', |
| ], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass108.implement( |
| $TestClass108<$T> $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass108<$T>>(); |
| } |
| } |
| |
| extension TestClass108$$Methods<$T extends jni$_.JObject> on TestClass108<$T> { |
| static final _id_otherInterfaceMethod = TestClass108._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `default public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| |
| static final _id_setFoo = TestClass108._class.instanceMethodId( |
| r'setFoo', |
| r'()Ljava/lang/Number;', |
| ); |
| |
| static final _setFoo = 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: `default public T setFoo()` |
| /// The returned object must be released after use, by calling the [release] method. |
| $T setFoo<$S extends jni$_.JObject, $V extends jni$_.JObject>() { |
| final _$$selfRef = reference; |
| return _setFoo(_$$selfRef.pointer, _id_setFoo.pointer).object<$T>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass108<$T extends jni$_.JObject> { |
| factory $TestClass108({ |
| required void Function() otherInterfaceMethod, |
| core$_.bool otherInterfaceMethod$async, |
| required $T Function() setFoo, |
| }) = _$TestClass108<$T>; |
| |
| void otherInterfaceMethod(); |
| core$_.bool get otherInterfaceMethod$async => false; |
| $T setFoo(); |
| } |
| |
| final class _$TestClass108<$T extends jni$_.JObject> with $TestClass108<$T> { |
| _$TestClass108({ |
| required void Function() otherInterfaceMethod, |
| this.otherInterfaceMethod$async = false, |
| required $T Function() setFoo, |
| }) : _otherInterfaceMethod = otherInterfaceMethod, |
| _setFoo = setFoo; |
| |
| final void Function() _otherInterfaceMethod; |
| final core$_.bool otherInterfaceMethod$async; |
| final $T Function() _setFoo; |
| |
| void otherInterfaceMethod() { |
| return _otherInterfaceMethod(); |
| } |
| |
| $T setFoo() { |
| return _setFoo(); |
| } |
| } |
| |
| final class $TestClass108$Type$ extends jni$_.JType<TestClass108> { |
| @jni$_.internal |
| const $TestClass108$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass108;'; |
| } |
| |
| /// from: `com.example.TestClass109` |
| extension type TestClass109<$T extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements GenericParent<jni$_.JObject?> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass109'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass109> type = $TestClass109$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass109() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass109<$T>>(); |
| } |
| } |
| |
| extension TestClass109$$Methods<$T extends jni$_.JObject> on TestClass109<$T> { |
| static final _id_genericParentMethod = TestClass109._class.instanceMethodId( |
| r'genericParentMethod', |
| r'(Ljava/lang/Object;)V', |
| ); |
| |
| static final _genericParentMethod = 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 genericParentMethod(java.lang.Object t)` |
| void genericParentMethod( |
| jni$_.JObject? t, |
| ) { |
| final _$$selfRef = reference; |
| final _$t = t?.reference ?? jni$_.jNullReference; |
| _genericParentMethod( |
| _$$selfRef.pointer, _id_genericParentMethod.pointer, _$t.pointer) |
| .check(); |
| } |
| |
| static final _id_getFoo = TestClass109._class.instanceMethodId( |
| r'getFoo', |
| r'()Lcom/example/CustomEnum;', |
| ); |
| |
| static final _getFoo = 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 final com.example.CustomEnum getFoo()` |
| /// The returned object must be released after use, by calling the [release] method. |
| CustomEnum? getFoo<$S extends jni$_.JObject>() { |
| final _$$selfRef = reference; |
| return _getFoo(_$$selfRef.pointer, _id_getFoo.pointer) |
| .object<CustomEnum?>(); |
| } |
| } |
| |
| final class $TestClass109$Type$ extends jni$_.JType<TestClass109> { |
| @jni$_.internal |
| const $TestClass109$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass109;'; |
| } |
| |
| /// from: `com.example.TestClass109$Nested` |
| extension type TestClass109$Nested<$T extends jni$_.JObject>._( |
| jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass109$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass109$Nested> type = |
| $TestClass109$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'(Lcom/example/TestClass109;)V', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void <init>(com.example.TestClass109<T> $outerClass)` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass109$Nested( |
| TestClass109<$T> $outerClass, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$$outerClass = $outerClass.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer, _$$outerClass.pointer) |
| .object<TestClass109$Nested<$T>>(); |
| } |
| } |
| |
| final class $TestClass109$Nested$Type$ |
| extends jni$_.JType<TestClass109$Nested> { |
| @jni$_.internal |
| const $TestClass109$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass109$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass110` |
| extension type TestClass110<$T extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass110'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass110> type = $TestClass110$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass110() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass110<$T>>(); |
| } |
| } |
| |
| extension TestClass110$$Methods<$T extends jni$_.JObject> on TestClass110<$T> { |
| static final _id_myField = TestClass110._class.instanceFieldId( |
| r'myField', |
| r'[Ljava/lang/Object;', |
| ); |
| |
| /// from: `public transient java.lang.Object[] myField` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JArray<jni$_.JObject>? get myField => _id_myField.getNullable( |
| this, jni$_.JArray.type<jni$_.JObject>(const jni$_.$JObject$Type$())) |
| as jni$_.JArray<jni$_.JObject>?; |
| |
| /// from: `public transient java.lang.Object[] myField` |
| /// The returned object must be released after use, by calling the [release] method. |
| set myField(jni$_.JArray<jni$_.JObject>? value) => _id_myField.set(this, |
| jni$_.JArray.type<jni$_.JObject>(const jni$_.$JObject$Type$()), value); |
| } |
| |
| final class $TestClass110$Type$ extends jni$_.JType<TestClass110> { |
| @jni$_.internal |
| const $TestClass110$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass110;'; |
| } |
| |
| /// from: `com.example.TestClass111` |
| extension type TestClass111<$T extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements GenericParent<jni$_.JObject?> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass111'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass111> type = $TestClass111$Type$(); |
| static final _id_create = _class.constructorId( |
| r'([Ljava/lang/Object;I)V', |
| ); |
| |
| static final _create = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| jni$_ |
| .VarArgs<(jni$_.Pointer<jni$_.Void>, jni$_.Int32)>)>>( |
| 'globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public void <init>(java.lang.Object[] p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass111<$T> create<$T extends jni$_.JObject, |
| $S extends jni$_.JObject, $V extends jni$_.JObject>( |
| jni$_.JArray<jni$_.JObject?>? p1, |
| core$_.int p2, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _create(_$$classRef.pointer, _id_create.pointer, _$p1.pointer, p2) |
| .object<TestClass111<$T>>(); |
| } |
| } |
| |
| extension TestClass111$$Methods<$T extends jni$_.JObject> on TestClass111<$T> { |
| static final _id_genericParentMethod = TestClass111._class.instanceMethodId( |
| r'genericParentMethod', |
| r'(Ljava/lang/Object;)V', |
| ); |
| |
| static final _genericParentMethod = 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 genericParentMethod(java.lang.Object t)` |
| void genericParentMethod( |
| jni$_.JObject? t, |
| ) { |
| final _$$selfRef = reference; |
| final _$t = t?.reference ?? jni$_.jNullReference; |
| _genericParentMethod( |
| _$$selfRef.pointer, _id_genericParentMethod.pointer, _$t.pointer) |
| .check(); |
| } |
| } |
| |
| final class $TestClass111$Type$ extends jni$_.JType<TestClass111> { |
| @jni$_.internal |
| const $TestClass111$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass111;'; |
| } |
| |
| /// from: `com.example.TestClass111$NestedEnum` |
| extension type TestClass111$NestedEnum._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass111$NestedEnum'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass111$NestedEnum> type = |
| $TestClass111$NestedEnum$Type$(); |
| static final _id_V1 = _class.staticFieldId( |
| r'V1', |
| r'Lcom/example/TestClass111$NestedEnum;', |
| ); |
| |
| /// from: `static public final com.example.TestClass111$NestedEnum V1` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass111$NestedEnum get V1 => |
| _id_V1.get(_class, TestClass111$NestedEnum.type) |
| as TestClass111$NestedEnum; |
| |
| static final _id_values = _class.staticMethodId( |
| r'values', |
| r'()[Lcom/example/TestClass111$NestedEnum;', |
| ); |
| |
| static final _values = 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 com.example.TestClass111$NestedEnum[] values()` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JArray<TestClass111$NestedEnum?>? values() { |
| final _$$classRef = _class.reference; |
| return _values(_$$classRef.pointer, _id_values.pointer) |
| .object<jni$_.JArray<TestClass111$NestedEnum?>?>(); |
| } |
| |
| static final _id_valueOf = _class.staticMethodId( |
| r'valueOf', |
| r'(Ljava/lang/String;)Lcom/example/TestClass111$NestedEnum;', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `static public com.example.TestClass111$NestedEnum valueOf(java.lang.String name)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass111$NestedEnum? valueOf( |
| jni$_.JString? name, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$name = name?.reference ?? jni$_.jNullReference; |
| return _valueOf(_$$classRef.pointer, _id_valueOf.pointer, _$name.pointer) |
| .object<TestClass111$NestedEnum?>(); |
| } |
| } |
| |
| final class $TestClass111$NestedEnum$Type$ |
| extends jni$_.JType<TestClass111$NestedEnum> { |
| @jni$_.internal |
| const $TestClass111$NestedEnum$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass111$NestedEnum;'; |
| } |
| |
| /// from: `com.example.TestClass113` |
| extension type TestClass113._(jni$_.JObject _$this) |
| implements jni$_.JObject, DagA, DagD, DagE { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass113'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass113> type = $TestClass113$Type$(); |
| static final _id_create = _class.constructorId( |
| r'([S)V', |
| ); |
| |
| static final _create = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void <init>(short[] p1)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass113 |
| create<$S extends jni$_.JObject?, $V extends jni$_.JObject?>( |
| jni$_.JShortArray? p1, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _create(_$$classRef.pointer, _id_create.pointer, _$p1.pointer) |
| .object<TestClass113>(); |
| } |
| } |
| |
| extension TestClass113$$Methods on TestClass113 { |
| static final _id_aMethod = TestClass113._class.instanceMethodId( |
| r'aMethod', |
| r'()V', |
| ); |
| |
| static final _aMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void aMethod()` |
| void aMethod() { |
| final _$$selfRef = reference; |
| _aMethod(_$$selfRef.pointer, _id_aMethod.pointer).check(); |
| } |
| |
| static final _id_bMethod = TestClass113._class.instanceMethodId( |
| r'bMethod', |
| r'()V', |
| ); |
| |
| static final _bMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void bMethod()` |
| void bMethod() { |
| final _$$selfRef = reference; |
| _bMethod(_$$selfRef.pointer, _id_bMethod.pointer).check(); |
| } |
| |
| static final _id_cMethod = TestClass113._class.instanceMethodId( |
| r'cMethod', |
| r'()V', |
| ); |
| |
| static final _cMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void cMethod()` |
| void cMethod() { |
| final _$$selfRef = reference; |
| _cMethod(_$$selfRef.pointer, _id_cMethod.pointer).check(); |
| } |
| |
| static final _id_dMethod = TestClass113._class.instanceMethodId( |
| r'dMethod', |
| r'()V', |
| ); |
| |
| static final _dMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void dMethod()` |
| void dMethod() { |
| final _$$selfRef = reference; |
| _dMethod(_$$selfRef.pointer, _id_dMethod.pointer).check(); |
| } |
| |
| static final _id_eMethod = TestClass113._class.instanceMethodId( |
| r'eMethod', |
| r'()V', |
| ); |
| |
| static final _eMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void eMethod()` |
| void eMethod() { |
| final _$$selfRef = reference; |
| _eMethod(_$$selfRef.pointer, _id_eMethod.pointer).check(); |
| } |
| } |
| |
| final class $TestClass113$Type$ extends jni$_.JType<TestClass113> { |
| @jni$_.internal |
| const $TestClass113$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass113;'; |
| } |
| |
| /// from: `com.example.TestClass113$Nested` |
| extension type TestClass113$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass113$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass113$Nested> type = |
| $TestClass113$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass113$Nested() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass113$Nested>(); |
| } |
| } |
| |
| final class $TestClass113$Nested$Type$ |
| extends jni$_.JType<TestClass113$Nested> { |
| @jni$_.internal |
| const $TestClass113$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass113$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass115` |
| extension type TestClass115._(jni$_.JObject _$this) |
| implements jni$_.JObject, DagA, DagD, DagE { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass115'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass115> type = $TestClass115$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass115() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer).object<TestClass115>(); |
| } |
| } |
| |
| extension TestClass115$$Methods on TestClass115 { |
| static final _id_aMethod = TestClass115._class.instanceMethodId( |
| r'aMethod', |
| r'()V', |
| ); |
| |
| static final _aMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void aMethod()` |
| void aMethod() { |
| final _$$selfRef = reference; |
| _aMethod(_$$selfRef.pointer, _id_aMethod.pointer).check(); |
| } |
| |
| static final _id_bMethod = TestClass115._class.instanceMethodId( |
| r'bMethod', |
| r'()V', |
| ); |
| |
| static final _bMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void bMethod()` |
| void bMethod() { |
| final _$$selfRef = reference; |
| _bMethod(_$$selfRef.pointer, _id_bMethod.pointer).check(); |
| } |
| |
| static final _id_cMethod = TestClass115._class.instanceMethodId( |
| r'cMethod', |
| r'()V', |
| ); |
| |
| static final _cMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void cMethod()` |
| void cMethod() { |
| final _$$selfRef = reference; |
| _cMethod(_$$selfRef.pointer, _id_cMethod.pointer).check(); |
| } |
| |
| static final _id_dMethod = TestClass115._class.instanceMethodId( |
| r'dMethod', |
| r'()V', |
| ); |
| |
| static final _dMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void dMethod()` |
| void dMethod() { |
| final _$$selfRef = reference; |
| _dMethod(_$$selfRef.pointer, _id_dMethod.pointer).check(); |
| } |
| |
| static final _id_eMethod = TestClass115._class.instanceMethodId( |
| r'eMethod', |
| r'()V', |
| ); |
| |
| static final _eMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void eMethod()` |
| void eMethod() { |
| final _$$selfRef = reference; |
| _eMethod(_$$selfRef.pointer, _id_eMethod.pointer).check(); |
| } |
| |
| static final _id_myMethod = TestClass115._class.instanceMethodId( |
| r'myMethod', |
| r'()V', |
| ); |
| |
| static final _myMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `synchronized public void myMethod()` |
| void myMethod<$S extends jni$_.JObject>() { |
| final _$$selfRef = reference; |
| _myMethod(_$$selfRef.pointer, _id_myMethod.pointer).check(); |
| } |
| } |
| |
| final class $TestClass115$Type$ extends jni$_.JType<TestClass115> { |
| @jni$_.internal |
| const $TestClass115$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass115;'; |
| } |
| |
| /// from: `com.example.TestClass115$Nested` |
| extension type TestClass115$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass115$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass115$Nested> type = |
| $TestClass115$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'(Lcom/example/TestClass115;)V', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void <init>(com.example.TestClass115 $outerClass)` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass115$Nested( |
| TestClass115 $outerClass, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$$outerClass = $outerClass.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer, _$$outerClass.pointer) |
| .object<TestClass115$Nested>(); |
| } |
| } |
| |
| final class $TestClass115$Nested$Type$ |
| extends jni$_.JType<TestClass115$Nested> { |
| @jni$_.internal |
| const $TestClass115$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass115$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass116` |
| extension type TestClass116<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject, OtherInterface { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass116'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass116> type = $TestClass116$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass116() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass116<$T, $U>>(); |
| } |
| } |
| |
| extension TestClass116$$Methods<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?> on TestClass116<$T, $U> { |
| static final _id_myField = TestClass116._class.instanceFieldId( |
| r'myField', |
| r'Ljava/lang/Object;', |
| ); |
| |
| /// from: `public volatile T myField` |
| /// The returned object must be released after use, by calling the [release] method. |
| $T? get myField => _id_myField.getNullable(this, jni$_.JObject.type) as $T?; |
| |
| /// from: `public volatile T myField` |
| /// The returned object must be released after use, by calling the [release] method. |
| set myField($T? value) => _id_myField.set(this, jni$_.JObject.type, value); |
| |
| static final _id_otherInterfaceMethod = TestClass116._class.instanceMethodId( |
| r'otherInterfaceMethod', |
| r'()V', |
| ); |
| |
| static final _otherInterfaceMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void otherInterfaceMethod()` |
| void otherInterfaceMethod() { |
| final _$$selfRef = reference; |
| _otherInterfaceMethod(_$$selfRef.pointer, _id_otherInterfaceMethod.pointer) |
| .check(); |
| } |
| } |
| |
| final class $TestClass116$Type$ extends jni$_.JType<TestClass116> { |
| @jni$_.internal |
| const $TestClass116$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass116;'; |
| } |
| |
| /// from: `com.example.TestClass116$Nested` |
| extension type TestClass116$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass116$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass116$Nested> type = |
| $TestClass116$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass116$Nested() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass116$Nested>(); |
| } |
| } |
| |
| final class $TestClass116$Nested$Type$ |
| extends jni$_.JType<TestClass116$Nested> { |
| @jni$_.internal |
| const $TestClass116$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass116$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass117` |
| extension type TestClass117._(jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass117'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass117> type = $TestClass117$Type$(); |
| static final _id_VALUE1 = _class.staticFieldId( |
| r'VALUE1', |
| r'Lcom/example/TestClass117;', |
| ); |
| |
| /// from: `static public final com.example.TestClass117 VALUE1` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass117 get VALUE1 => |
| _id_VALUE1.get(_class, TestClass117.type) as TestClass117; |
| |
| static final _id_VALUE2 = _class.staticFieldId( |
| r'VALUE2', |
| r'Lcom/example/TestClass117;', |
| ); |
| |
| /// from: `static public final com.example.TestClass117 VALUE2` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass117 get VALUE2 => |
| _id_VALUE2.get(_class, TestClass117.type) as TestClass117; |
| |
| static final _id_values = _class.staticMethodId( |
| r'values', |
| r'()[Lcom/example/TestClass117;', |
| ); |
| |
| static final _values = 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 com.example.TestClass117[] values()` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JArray<TestClass117?>? values() { |
| final _$$classRef = _class.reference; |
| return _values(_$$classRef.pointer, _id_values.pointer) |
| .object<jni$_.JArray<TestClass117?>?>(); |
| } |
| |
| static final _id_valueOf = _class.staticMethodId( |
| r'valueOf', |
| r'(Ljava/lang/String;)Lcom/example/TestClass117;', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `static public com.example.TestClass117 valueOf(java.lang.String name)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass117? valueOf( |
| jni$_.JString? name, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$name = name?.reference ?? jni$_.jNullReference; |
| return _valueOf(_$$classRef.pointer, _id_valueOf.pointer, _$name.pointer) |
| .object<TestClass117?>(); |
| } |
| } |
| |
| extension TestClass117$$Methods on TestClass117 { |
| static final _id_myMethod = TestClass117._class.instanceMethodId( |
| r'myMethod', |
| r'(Lcom/example/CustomRecord;I)Lcom/example/CustomRecord;', |
| ); |
| |
| static final _myMethod = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public com.example.CustomRecord<S> myMethod(com.example.CustomRecord<S> p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JObject myMethod<$S extends jni$_.JObject?>( |
| jni$_.JObject p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1.reference; |
| return _myMethod(_$$selfRef.pointer, _id_myMethod.pointer, _$p1.pointer, p2) |
| .object<jni$_.JObject>(); |
| } |
| } |
| |
| final class $TestClass117$Type$ extends jni$_.JType<TestClass117> { |
| @jni$_.internal |
| const $TestClass117$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass117;'; |
| } |
| |
| /// from: `com.example.TestClass117$Nested` |
| extension type TestClass117$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass117$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass117$Nested> type = |
| $TestClass117$Nested$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass117$Nested> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $TestClass117$Nested $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass117$Nested', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass117$Nested.implement( |
| $TestClass117$Nested $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass117$Nested>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass117$Nested { |
| factory $TestClass117$Nested() = _$TestClass117$Nested; |
| } |
| |
| final class _$TestClass117$Nested with $TestClass117$Nested { |
| _$TestClass117$Nested(); |
| } |
| |
| final class $TestClass117$Nested$Type$ |
| extends jni$_.JType<TestClass117$Nested> { |
| @jni$_.internal |
| const $TestClass117$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass117$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass118` |
| extension type TestClass118._(jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass118'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass118> type = $TestClass118$Type$(); |
| static final _id_VALUE1 = _class.staticFieldId( |
| r'VALUE1', |
| r'Lcom/example/TestClass118;', |
| ); |
| |
| /// from: `static public final com.example.TestClass118 VALUE1` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass118 get VALUE1 => |
| _id_VALUE1.get(_class, TestClass118.type) as TestClass118; |
| |
| static final _id_VALUE2 = _class.staticFieldId( |
| r'VALUE2', |
| r'Lcom/example/TestClass118;', |
| ); |
| |
| /// from: `static public final com.example.TestClass118 VALUE2` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass118 get VALUE2 => |
| _id_VALUE2.get(_class, TestClass118.type) as TestClass118; |
| |
| static final _id_values = _class.staticMethodId( |
| r'values', |
| r'()[Lcom/example/TestClass118;', |
| ); |
| |
| static final _values = 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 com.example.TestClass118[] values()` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JArray<TestClass118?>? values() { |
| final _$$classRef = _class.reference; |
| return _values(_$$classRef.pointer, _id_values.pointer) |
| .object<jni$_.JArray<TestClass118?>?>(); |
| } |
| |
| static final _id_valueOf = _class.staticMethodId( |
| r'valueOf', |
| r'(Ljava/lang/String;)Lcom/example/TestClass118;', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `static public com.example.TestClass118 valueOf(java.lang.String name)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass118? valueOf( |
| jni$_.JString? name, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$name = name?.reference ?? jni$_.jNullReference; |
| return _valueOf(_$$classRef.pointer, _id_valueOf.pointer, _$name.pointer) |
| .object<TestClass118?>(); |
| } |
| } |
| |
| extension TestClass118$$Methods on TestClass118 { |
| static final _id_isFoo = TestClass118._class.instanceMethodId( |
| r'isFoo', |
| r'([Ljava/util/Map;)[Ljava/util/Map;', |
| ); |
| |
| static final _isFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public java.util.Map[] isFoo(java.util.Map[] p1)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JArray<jni$_.JMap<$S?, $S?>?>? isFoo<$S extends jni$_.JObject?>( |
| jni$_.JArray<jni$_.JMap<$S?, $S?>?>? p1, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _isFoo(_$$selfRef.pointer, _id_isFoo.pointer, _$p1.pointer) |
| .object<jni$_.JArray<jni$_.JMap<$S?, $S?>?>?>(); |
| } |
| } |
| |
| final class $TestClass118$Type$ extends jni$_.JType<TestClass118> { |
| @jni$_.internal |
| const $TestClass118$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass118;'; |
| } |
| |
| /// from: `com.example.TestClass119` |
| extension type TestClass119._(jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass119'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass119> type = $TestClass119$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass119() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer).object<TestClass119>(); |
| } |
| } |
| |
| extension TestClass119$$Methods on TestClass119 { |
| static final _id_setFoo = TestClass119._class.instanceMethodId( |
| r'setFoo', |
| r'([ZI)[Z', |
| ); |
| |
| static final _setFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>, core$_.int)>(); |
| |
| /// from: `public boolean[] setFoo(boolean[] p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JBooleanArray? setFoo( |
| jni$_.JBooleanArray? p1, |
| core$_.int p2, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _setFoo(_$$selfRef.pointer, _id_setFoo.pointer, _$p1.pointer, p2) |
| .object<jni$_.JBooleanArray?>(); |
| } |
| } |
| |
| final class $TestClass119$Type$ extends jni$_.JType<TestClass119> { |
| @jni$_.internal |
| const $TestClass119$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass119;'; |
| } |
| |
| /// from: `com.example.TestClass119$Sub` |
| extension type TestClass119$Sub._(jni$_.JObject _$this) |
| implements TestClass119 { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass119$Sub'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass119$Sub> type = $TestClass119$Sub$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass119$Sub() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass119$Sub>(); |
| } |
| } |
| |
| final class $TestClass119$Sub$Type$ extends jni$_.JType<TestClass119$Sub> { |
| @jni$_.internal |
| const $TestClass119$Sub$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass119$Sub;'; |
| } |
| |
| /// from: `com.example.TestClass120` |
| extension type TestClass120<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?>._(jni$_.JObject _$this) implements GrandParent { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass120'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass120> type = $TestClass120$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass120() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass120<$T, $U>>(); |
| } |
| } |
| |
| extension TestClass120$$Methods<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?> on TestClass120<$T, $U> { |
| static final _id_myField = TestClass120._class.instanceFieldId( |
| r'myField', |
| r'[J', |
| ); |
| |
| /// from: `public final long[] myField` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JLongArray? get myField => |
| _id_myField.getNullable(this, jni$_.JLongArray.type) as jni$_.JLongArray?; |
| |
| static final _id_grandParentMethod = TestClass120._class.instanceMethodId( |
| r'grandParentMethod', |
| r'()V', |
| ); |
| |
| static final _grandParentMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void grandParentMethod()` |
| void grandParentMethod() { |
| final _$$selfRef = reference; |
| _grandParentMethod(_$$selfRef.pointer, _id_grandParentMethod.pointer) |
| .check(); |
| } |
| } |
| |
| final class $TestClass120$Type$ extends jni$_.JType<TestClass120> { |
| @jni$_.internal |
| const $TestClass120$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass120;'; |
| } |
| |
| /// from: `com.example.TestClass120$Nested` |
| extension type TestClass120$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass120$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass120$Nested> type = |
| $TestClass120$Nested$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass120$Nested> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $TestClass120$Nested $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass120$Nested', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass120$Nested.implement( |
| $TestClass120$Nested $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass120$Nested>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass120$Nested { |
| factory $TestClass120$Nested() = _$TestClass120$Nested; |
| } |
| |
| final class _$TestClass120$Nested with $TestClass120$Nested { |
| _$TestClass120$Nested(); |
| } |
| |
| final class $TestClass120$Nested$Type$ |
| extends jni$_.JType<TestClass120$Nested> { |
| @jni$_.internal |
| const $TestClass120$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass120$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass121` |
| extension type TestClass121<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?>._(jni$_.JObject _$this) implements GrandParent { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass121'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass121> type = $TestClass121$Type$(); |
| static final _id_create = _class.constructorId( |
| r'(Lcom/example/CustomObject;)V', |
| ); |
| |
| static final _create = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `public void <init>(com.example.CustomObject<S> p1)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass121<$T, $U> create<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?, $S extends jni$_.JObject?>( |
| CustomObject<$S?>? p1, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _create(_$$classRef.pointer, _id_create.pointer, _$p1.pointer) |
| .object<TestClass121<$T, $U>>(); |
| } |
| } |
| |
| extension TestClass121$$Methods<$T extends jni$_.JObject?, |
| $U extends jni$_.JObject?> on TestClass121<$T, $U> { |
| static final _id_grandParentMethod = TestClass121._class.instanceMethodId( |
| r'grandParentMethod', |
| r'()V', |
| ); |
| |
| static final _grandParentMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void grandParentMethod()` |
| void grandParentMethod() { |
| final _$$selfRef = reference; |
| _grandParentMethod(_$$selfRef.pointer, _id_grandParentMethod.pointer) |
| .check(); |
| } |
| } |
| |
| final class $TestClass121$Type$ extends jni$_.JType<TestClass121> { |
| @jni$_.internal |
| const $TestClass121$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass121;'; |
| } |
| |
| /// from: `com.example.TestClass121$NestedEnum` |
| extension type TestClass121$NestedEnum._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass121$NestedEnum'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass121$NestedEnum> type = |
| $TestClass121$NestedEnum$Type$(); |
| static final _id_V1 = _class.staticFieldId( |
| r'V1', |
| r'Lcom/example/TestClass121$NestedEnum;', |
| ); |
| |
| /// from: `static public final com.example.TestClass121$NestedEnum V1` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass121$NestedEnum get V1 => |
| _id_V1.get(_class, TestClass121$NestedEnum.type) |
| as TestClass121$NestedEnum; |
| |
| static final _id_values = _class.staticMethodId( |
| r'values', |
| r'()[Lcom/example/TestClass121$NestedEnum;', |
| ); |
| |
| static final _values = 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 com.example.TestClass121$NestedEnum[] values()` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JArray<TestClass121$NestedEnum?>? values() { |
| final _$$classRef = _class.reference; |
| return _values(_$$classRef.pointer, _id_values.pointer) |
| .object<jni$_.JArray<TestClass121$NestedEnum?>?>(); |
| } |
| |
| static final _id_valueOf = _class.staticMethodId( |
| r'valueOf', |
| r'(Ljava/lang/String;)Lcom/example/TestClass121$NestedEnum;', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `static public com.example.TestClass121$NestedEnum valueOf(java.lang.String name)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass121$NestedEnum? valueOf( |
| jni$_.JString? name, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$name = name?.reference ?? jni$_.jNullReference; |
| return _valueOf(_$$classRef.pointer, _id_valueOf.pointer, _$name.pointer) |
| .object<TestClass121$NestedEnum?>(); |
| } |
| } |
| |
| final class $TestClass121$NestedEnum$Type$ |
| extends jni$_.JType<TestClass121$NestedEnum> { |
| @jni$_.internal |
| const $TestClass121$NestedEnum$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass121$NestedEnum;'; |
| } |
| |
| /// from: `com.example.TestClass122` |
| extension type TestClass122._(jni$_.JObject _$this) |
| implements jni$_.JObject, DiamondLeft, DiamondRight { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass122'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass122> type = $TestClass122$Type$(); |
| static final _id_create = _class.constructorId( |
| r'(JI)V', |
| ); |
| |
| static final _create = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| jni$_.VarArgs<(jni$_.Int64, jni$_.Int32)>)>>( |
| 'globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, core$_.int, core$_.int)>(); |
| |
| /// from: `public void <init>(long p1, int p2)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass122 create<$S extends jni$_.JObject?>( |
| core$_.int p1, |
| core$_.int p2, |
| ) { |
| final _$$classRef = _class.reference; |
| return _create(_$$classRef.pointer, _id_create.pointer, p1, p2) |
| .object<TestClass122>(); |
| } |
| } |
| |
| extension TestClass122$$Methods on TestClass122 { |
| static final _id_baseMethod = TestClass122._class.instanceMethodId( |
| r'baseMethod', |
| r'()V', |
| ); |
| |
| static final _baseMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void baseMethod()` |
| void baseMethod() { |
| final _$$selfRef = reference; |
| _baseMethod(_$$selfRef.pointer, _id_baseMethod.pointer).check(); |
| } |
| |
| static final _id_leftMethod = TestClass122._class.instanceMethodId( |
| r'leftMethod', |
| r'()V', |
| ); |
| |
| static final _leftMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void leftMethod()` |
| void leftMethod() { |
| final _$$selfRef = reference; |
| _leftMethod(_$$selfRef.pointer, _id_leftMethod.pointer).check(); |
| } |
| |
| static final _id_rightMethod = TestClass122._class.instanceMethodId( |
| r'rightMethod', |
| r'()V', |
| ); |
| |
| static final _rightMethod = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_CallVoidMethod') |
| .asFunction< |
| jni$_.JThrowablePtr Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void rightMethod()` |
| void rightMethod() { |
| final _$$selfRef = reference; |
| _rightMethod(_$$selfRef.pointer, _id_rightMethod.pointer).check(); |
| } |
| } |
| |
| final class $TestClass122$Type$ extends jni$_.JType<TestClass122> { |
| @jni$_.internal |
| const $TestClass122$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass122;'; |
| } |
| |
| /// from: `com.example.TestClass122$Nested` |
| extension type TestClass122$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass122$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass122$Nested> type = |
| $TestClass122$Nested$Type$(); |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass122$Nested> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn( |
| jni$_.JImplementer implementer, |
| $TestClass122$Nested $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass122$Nested', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass122$Nested.implement( |
| $TestClass122$Nested $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass122$Nested>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass122$Nested { |
| factory $TestClass122$Nested() = _$TestClass122$Nested; |
| } |
| |
| final class _$TestClass122$Nested with $TestClass122$Nested { |
| _$TestClass122$Nested(); |
| } |
| |
| final class $TestClass122$Nested$Type$ |
| extends jni$_.JType<TestClass122$Nested> { |
| @jni$_.internal |
| const $TestClass122$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass122$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass123` |
| extension type TestClass123<$T extends jni$_.JObject, |
| $U extends jni$_.JObject>._(jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass123'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass123> type = $TestClass123$Type$(); |
| static final _id_setFoo = _class.staticMethodId( |
| r'setFoo', |
| r'(II)I', |
| ); |
| |
| static final _setFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, core$_.int, core$_.int)>(); |
| |
| /// from: `static public int setFoo(int p1, int p2)` |
| static core$_.int setFoo( |
| core$_.int p1, |
| core$_.int p2, |
| ) { |
| final _$$classRef = _class.reference; |
| return _setFoo(_$$classRef.pointer, _id_setFoo.pointer, p1, p2).integer; |
| } |
| |
| /// Maps a specific port to the implemented interface. |
| static final core$_.Map<core$_.int, $TestClass123> _$impls = {}; |
| static jni$_.JObjectPtr _$invoke( |
| core$_.int port, |
| jni$_.JObjectPtr descriptor, |
| jni$_.JObjectPtr args, |
| ) { |
| return _$invokeMethod( |
| port, |
| jni$_.MethodInvocation.fromAddresses( |
| 0, |
| descriptor.address, |
| args.address, |
| ), |
| ); |
| } |
| |
| static final jni$_.Pointer< |
| jni$_.NativeFunction< |
| jni$_.JObjectPtr Function( |
| jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> |
| _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); |
| |
| static jni$_.Pointer<jni$_.Void> _$invokeMethod( |
| core$_.int $p, |
| jni$_.MethodInvocation $i, |
| ) { |
| try { |
| final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); |
| final $a = $i.args; |
| if ($d == r'setFoo(II)I') { |
| final $r = _$impls[$p]!.setFoo( |
| ($a![0] as jni$_.JInteger).toDartInt(releaseOriginal: true), |
| ($a![1] as jni$_.JInteger).toDartInt(releaseOriginal: true), |
| ); |
| return $r.toJInteger().reference.toPointer(); |
| } |
| } catch (e) { |
| return jni$_.ProtectedJniExtensions.newDartException(e); |
| } |
| return jni$_.nullptr; |
| } |
| |
| static void implementIn<$T extends jni$_.JObject, $U extends jni$_.JObject>( |
| jni$_.JImplementer implementer, |
| $TestClass123<$T, $U> $impl, |
| ) { |
| late final jni$_.RawReceivePort $p; |
| $p = jni$_.RawReceivePort(($m) { |
| if ($m == null) { |
| _$impls.remove($p.sendPort.nativePort); |
| $p.close(); |
| return; |
| } |
| final $i = jni$_.MethodInvocation.fromMessage($m); |
| final $r = _$invokeMethod($p.sendPort.nativePort, $i); |
| jni$_.ProtectedJniExtensions.returnResult($i.result, $r); |
| }); |
| implementer.add( |
| r'com.example.TestClass123', |
| $p, |
| _$invokePointer, |
| [], |
| ); |
| final $a = $p.sendPort.nativePort; |
| _$impls[$a] = $impl; |
| } |
| |
| factory TestClass123.implement( |
| $TestClass123<$T, $U> $impl, |
| ) { |
| final $i = jni$_.JImplementer(); |
| implementIn($i, $impl); |
| return $i.implement<TestClass123<$T, $U>>(); |
| } |
| } |
| |
| abstract base mixin class $TestClass123<$T extends jni$_.JObject, |
| $U extends jni$_.JObject> { |
| factory $TestClass123({ |
| required core$_.int Function(core$_.int p1, core$_.int p2) setFoo, |
| }) = _$TestClass123<$T, $U>; |
| |
| core$_.int setFoo(core$_.int p1, core$_.int p2); |
| } |
| |
| final class _$TestClass123<$T extends jni$_.JObject, $U extends jni$_.JObject> |
| with $TestClass123<$T, $U> { |
| _$TestClass123({ |
| required core$_.int Function(core$_.int p1, core$_.int p2) setFoo, |
| }) : _setFoo = setFoo; |
| |
| final core$_.int Function(core$_.int p1, core$_.int p2) _setFoo; |
| |
| core$_.int setFoo(core$_.int p1, core$_.int p2) { |
| return _setFoo(p1, p2); |
| } |
| } |
| |
| final class $TestClass123$Type$ extends jni$_.JType<TestClass123> { |
| @jni$_.internal |
| const $TestClass123$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass123;'; |
| } |
| |
| /// from: `com.example.TestClass123$Sub` |
| extension type TestClass123$Sub<$T extends jni$_.JObject, |
| $U extends jni$_.JObject>._(jni$_.JObject _$this) |
| implements jni$_.JObject, TestClass123<$T, $U> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass123$Sub'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass123$Sub> type = $TestClass123$Sub$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass123$Sub() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass123$Sub<$T, $U>>(); |
| } |
| |
| static final _id_setFoo = _class.staticMethodId( |
| r'setFoo', |
| r'(II)I', |
| ); |
| |
| static final _setFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, core$_.int, core$_.int)>(); |
| |
| /// from: `static public int setFoo(int p1, int p2)` |
| static core$_.int setFoo( |
| core$_.int p1, |
| core$_.int p2, |
| ) { |
| final _$$classRef = _class.reference; |
| return _setFoo(_$$classRef.pointer, _id_setFoo.pointer, p1, p2).integer; |
| } |
| } |
| |
| final class $TestClass123$Sub$Type$ extends jni$_.JType<TestClass123$Sub> { |
| @jni$_.internal |
| const $TestClass123$Sub$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass123$Sub;'; |
| } |
| |
| /// from: `com.example.TestClass123$Nested` |
| extension type TestClass123$Nested._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass123$Nested'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass123$Nested> type = |
| $TestClass123$Nested$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass123$Nested() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass123$Nested>(); |
| } |
| } |
| |
| final class $TestClass123$Nested$Type$ |
| extends jni$_.JType<TestClass123$Nested> { |
| @jni$_.internal |
| const $TestClass123$Nested$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass123$Nested;'; |
| } |
| |
| /// from: `com.example.TestClass124` |
| extension type TestClass124._(jni$_.JObject _$this) implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass124'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass124> type = $TestClass124$Type$(); |
| static final _id_VALUE1 = _class.staticFieldId( |
| r'VALUE1', |
| r'Lcom/example/TestClass124;', |
| ); |
| |
| /// from: `static public final com.example.TestClass124 VALUE1` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass124 get VALUE1 => |
| _id_VALUE1.get(_class, TestClass124.type) as TestClass124; |
| |
| static final _id_VALUE2 = _class.staticFieldId( |
| r'VALUE2', |
| r'Lcom/example/TestClass124;', |
| ); |
| |
| /// from: `static public final com.example.TestClass124 VALUE2` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass124 get VALUE2 => |
| _id_VALUE2.get(_class, TestClass124.type) as TestClass124; |
| |
| static final _id_values = _class.staticMethodId( |
| r'values', |
| r'()[Lcom/example/TestClass124;', |
| ); |
| |
| static final _values = 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 com.example.TestClass124[] values()` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JArray<TestClass124?>? values() { |
| final _$$classRef = _class.reference; |
| return _values(_$$classRef.pointer, _id_values.pointer) |
| .object<jni$_.JArray<TestClass124?>?>(); |
| } |
| |
| static final _id_valueOf = _class.staticMethodId( |
| r'valueOf', |
| r'(Ljava/lang/String;)Lcom/example/TestClass124;', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `static public com.example.TestClass124 valueOf(java.lang.String name)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass124? valueOf( |
| jni$_.JString? name, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$name = name?.reference ?? jni$_.jNullReference; |
| return _valueOf(_$$classRef.pointer, _id_valueOf.pointer, _$name.pointer) |
| .object<TestClass124?>(); |
| } |
| } |
| |
| extension TestClass124$$Methods on TestClass124 { |
| static final _id_isFoo = TestClass124._class.instanceMethodId( |
| r'isFoo', |
| r'(Ljava/lang/String;)Ljava/lang/String;', |
| ); |
| |
| static final _isFoo = 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `synchronized public java.lang.String isFoo(java.lang.String p1)` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JString? isFoo<$S extends jni$_.JObject?>( |
| jni$_.JString? p1, |
| ) { |
| final _$$selfRef = reference; |
| final _$p1 = p1?.reference ?? jni$_.jNullReference; |
| return _isFoo(_$$selfRef.pointer, _id_isFoo.pointer, _$p1.pointer) |
| .object<jni$_.JString?>(); |
| } |
| } |
| |
| final class $TestClass124$Type$ extends jni$_.JType<TestClass124> { |
| @jni$_.internal |
| const $TestClass124$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass124;'; |
| } |
| |
| /// from: `com.example.TestClass124$NestedEnum` |
| extension type TestClass124$NestedEnum._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass124$NestedEnum'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass124$NestedEnum> type = |
| $TestClass124$NestedEnum$Type$(); |
| static final _id_V1 = _class.staticFieldId( |
| r'V1', |
| r'Lcom/example/TestClass124$NestedEnum;', |
| ); |
| |
| /// from: `static public final com.example.TestClass124$NestedEnum V1` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass124$NestedEnum get V1 => |
| _id_V1.get(_class, TestClass124$NestedEnum.type) |
| as TestClass124$NestedEnum; |
| |
| static final _id_values = _class.staticMethodId( |
| r'values', |
| r'()[Lcom/example/TestClass124$NestedEnum;', |
| ); |
| |
| static final _values = 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 com.example.TestClass124$NestedEnum[] values()` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JArray<TestClass124$NestedEnum?>? values() { |
| final _$$classRef = _class.reference; |
| return _values(_$$classRef.pointer, _id_values.pointer) |
| .object<jni$_.JArray<TestClass124$NestedEnum?>?>(); |
| } |
| |
| static final _id_valueOf = _class.staticMethodId( |
| r'valueOf', |
| r'(Ljava/lang/String;)Lcom/example/TestClass124$NestedEnum;', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `static public com.example.TestClass124$NestedEnum valueOf(java.lang.String name)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass124$NestedEnum? valueOf( |
| jni$_.JString? name, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$name = name?.reference ?? jni$_.jNullReference; |
| return _valueOf(_$$classRef.pointer, _id_valueOf.pointer, _$name.pointer) |
| .object<TestClass124$NestedEnum?>(); |
| } |
| } |
| |
| final class $TestClass124$NestedEnum$Type$ |
| extends jni$_.JType<TestClass124$NestedEnum> { |
| @jni$_.internal |
| const $TestClass124$NestedEnum$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass124$NestedEnum;'; |
| } |
| |
| /// from: `com.example.TestClass125` |
| extension type TestClass125<$T extends jni$_.JObject?>._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass125'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass125> type = $TestClass125$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass125() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass125<$T>>(); |
| } |
| } |
| |
| extension TestClass125$$Methods<$T extends jni$_.JObject?> on TestClass125<$T> { |
| static final _id_myMethod = TestClass125._class.instanceMethodId( |
| r'myMethod', |
| r'()[S', |
| ); |
| |
| static final _myMethod = 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 short[] myMethod()` |
| /// The returned object must be released after use, by calling the [release] method. |
| jni$_.JShortArray? myMethod() { |
| final _$$selfRef = reference; |
| return _myMethod(_$$selfRef.pointer, _id_myMethod.pointer) |
| .object<jni$_.JShortArray?>(); |
| } |
| } |
| |
| final class $TestClass125$Type$ extends jni$_.JType<TestClass125> { |
| @jni$_.internal |
| const $TestClass125$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass125;'; |
| } |
| |
| /// from: `com.example.TestClass125$Sub` |
| extension type TestClass125$Sub<$T extends jni$_.JObject?>._( |
| jni$_.JObject _$this) implements TestClass125<$T?> { |
| static final _class = jni$_.JClass.forName(r'com/example/TestClass125$Sub'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass125$Sub> type = $TestClass125$Sub$Type$(); |
| static final _id_new$ = _class.constructorId( |
| r'()V', |
| ); |
| |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< |
| jni$_.NativeFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>>('globalEnv_NewObject') |
| .asFunction< |
| jni$_.JniResult Function( |
| jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, |
| )>(); |
| |
| /// from: `public void <init>()` |
| /// The returned object must be released after use, by calling the [release] method. |
| factory TestClass125$Sub() { |
| final _$$classRef = _class.reference; |
| return _new$(_$$classRef.pointer, _id_new$.pointer) |
| .object<TestClass125$Sub<$T>>(); |
| } |
| } |
| |
| final class $TestClass125$Sub$Type$ extends jni$_.JType<TestClass125$Sub> { |
| @jni$_.internal |
| const $TestClass125$Sub$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass125$Sub;'; |
| } |
| |
| /// from: `com.example.TestClass125$NestedEnum` |
| extension type TestClass125$NestedEnum._(jni$_.JObject _$this) |
| implements jni$_.JObject { |
| static final _class = |
| jni$_.JClass.forName(r'com/example/TestClass125$NestedEnum'); |
| |
| /// The type which includes information such as the signature of this class. |
| static const jni$_.JType<TestClass125$NestedEnum> type = |
| $TestClass125$NestedEnum$Type$(); |
| static final _id_V1 = _class.staticFieldId( |
| r'V1', |
| r'Lcom/example/TestClass125$NestedEnum;', |
| ); |
| |
| /// from: `static public final com.example.TestClass125$NestedEnum V1` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass125$NestedEnum get V1 => |
| _id_V1.get(_class, TestClass125$NestedEnum.type) |
| as TestClass125$NestedEnum; |
| |
| static final _id_values = _class.staticMethodId( |
| r'values', |
| r'()[Lcom/example/TestClass125$NestedEnum;', |
| ); |
| |
| static final _values = 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 com.example.TestClass125$NestedEnum[] values()` |
| /// The returned object must be released after use, by calling the [release] method. |
| static jni$_.JArray<TestClass125$NestedEnum?>? values() { |
| final _$$classRef = _class.reference; |
| return _values(_$$classRef.pointer, _id_values.pointer) |
| .object<jni$_.JArray<TestClass125$NestedEnum?>?>(); |
| } |
| |
| static final _id_valueOf = _class.staticMethodId( |
| r'valueOf', |
| r'(Ljava/lang/String;)Lcom/example/TestClass125$NestedEnum;', |
| ); |
| |
| 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(jni$_.Pointer<jni$_.Void>, |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); |
| |
| /// from: `static public com.example.TestClass125$NestedEnum valueOf(java.lang.String name)` |
| /// The returned object must be released after use, by calling the [release] method. |
| static TestClass125$NestedEnum? valueOf( |
| jni$_.JString? name, |
| ) { |
| final _$$classRef = _class.reference; |
| final _$name = name?.reference ?? jni$_.jNullReference; |
| return _valueOf(_$$classRef.pointer, _id_valueOf.pointer, _$name.pointer) |
| .object<TestClass125$NestedEnum?>(); |
| } |
| } |
| |
| final class $TestClass125$NestedEnum$Type$ |
| extends jni$_.JType<TestClass125$NestedEnum> { |
| @jni$_.internal |
| const $TestClass125$NestedEnum$Type$(); |
| |
| @jni$_.internal |
| @core$_.override |
| String get signature => r'Lcom/example/TestClass125$NestedEnum;'; |
| } |