-
Notifications
You must be signed in to change notification settings - Fork 13
/
JavaClass.swift
1175 lines (811 loc) · 61.5 KB
/
JavaClass.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
/// class java.lang.Class ///
open class JavaClass: JavaObject, /* interface java.io.Serializable */ UnavailableProtocol {
public convenience init?( casting object: JavaObject, _ file: StaticString = #file, _ line: Int = #line ) {
self.init( javaObject: nil )
object.withJavaObject {
self.javaObject = $0
}
}
private static var JavaClassJNIClass: jclass?
/// private static final int java.lang.Class.ANNOTATION
/// private static final int java.lang.Class.ENUM
/// private static final int java.lang.Class.SYNTHETIC
/// private static java.security.ProtectionDomain java.lang.Class.allPermDomain
/// private static boolean java.lang.Class.initted
/// private static sun.reflect.ReflectionFactory java.lang.Class.reflectionFactory
/// private static final java.io.ObjectStreamField[] java.lang.Class.serialPersistentFields
/// private static final long java.lang.Class.serialVersionUID
/// private static boolean java.lang.Class.useCaches
/// private transient volatile java.lang.Class$AnnotationData java.lang.Class.annotationData
/// private transient volatile sun.reflect.annotation.AnnotationType java.lang.Class.annotationType
/// private transient volatile java.lang.reflect.Constructor java.lang.Class.cachedConstructor
/// private transient volatile int java.lang.Class.classRedefinedCount
/// transient java.lang.ClassValue$ClassValueMap java.lang.Class.classValueMap
// Skipping field: true false false false false false
/// private transient volatile java.util.Map java.lang.Class.enumConstantDirectory
/// private transient volatile java.lang.Object[] java.lang.Class.enumConstants
/// private transient volatile sun.reflect.generics.repository.ClassRepository java.lang.Class.genericInfo
/// private transient java.lang.String java.lang.Class.name
/// private transient volatile java.lang.Class java.lang.Class.newInstanceCallerCache
/// private transient volatile java.lang.ref.SoftReference java.lang.Class.reflectionData
/// private java.lang.Class(java.lang.ClassLoader)
/// static java.lang.reflect.Field[] java.lang.Class.access$100(java.lang.Class,boolean)
// Skipping method: true false false false false
/// static java.lang.reflect.Field java.lang.Class.access$200(java.lang.reflect.Field[],java.lang.String)
// Skipping method: true false false false false
/// static boolean java.lang.Class.access$300(java.lang.Object[],java.lang.Object[])
// Skipping method: true false false false false
/// static boolean java.lang.Class.access$402(boolean)
// Skipping method: true false false false false
/// static boolean java.lang.Class.access$502(boolean)
// Skipping method: true false false false false
/// private static void java.lang.Class.addAll(java.util.Collection,java.lang.reflect.Field[])
/// private static java.lang.String java.lang.Class.argumentTypesToString(java.lang.Class[])
/// private static boolean java.lang.Class.arrayContentsEq(java.lang.Object[],java.lang.Object[])
/// private static void java.lang.Class.checkInitted()
/// private static java.lang.reflect.Constructor[] java.lang.Class.copyConstructors(java.lang.reflect.Constructor[])
/// private static java.lang.reflect.Field[] java.lang.Class.copyFields(java.lang.reflect.Field[])
/// private static java.lang.reflect.Method[] java.lang.Class.copyMethods(java.lang.reflect.Method[])
/// private static native boolean java.lang.Class.desiredAssertionStatus0(java.lang.Class)
/// public static java.lang.Class java.lang.Class.forName(java.lang.String) throws java.lang.ClassNotFoundException
private static var forName_MethodID_1: jmethodID?
open class func forName( arg0: String? ) throws /* java.lang.ClassNotFoundException */ -> JavaClass! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
let __return = JNIMethod.CallStaticObjectMethod( className: "java/lang/Class", classCache: &JavaClassJNIClass, methodName: "forName", methodSig: "(Ljava/lang/String;)Ljava/lang/Class;", methodCache: &forName_MethodID_1, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw /* class java.lang.ClassNotFoundException */ UnavailableObject( javaObject: throwable )
}
return __return != nil ? JavaClass( javaObject: __return ) : nil
}
open class func forName( _ _arg0: String? ) throws /* java.lang.ClassNotFoundException */ -> JavaClass! {
return try forName( arg0: _arg0 )
}
/// public static java.lang.Class java.lang.Class.forName(java.lang.String,boolean,java.lang.ClassLoader) throws java.lang.ClassNotFoundException
private static var forName_MethodID_2: jmethodID?
open class func forName( arg0: String?, arg1: Bool, arg2: /* class java.lang.ClassLoader */ UnavailableObject? ) throws /* java.lang.ClassNotFoundException */ -> JavaClass! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 3 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
__args[1] = jvalue( z: jboolean(arg1 ? JNI_TRUE : JNI_FALSE) )
__args[2] = JNIType.toJava( value: arg2, locals: &__locals )
let __return = JNIMethod.CallStaticObjectMethod( className: "java/lang/Class", classCache: &JavaClassJNIClass, methodName: "forName", methodSig: "(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;", methodCache: &forName_MethodID_2, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw /* class java.lang.ClassNotFoundException */ UnavailableObject( javaObject: throwable )
}
return __return != nil ? JavaClass( javaObject: __return ) : nil
}
open class func forName( _ _arg0: String?, _ _arg1: Bool, _ _arg2: /* class java.lang.ClassLoader */ UnavailableObject? ) throws /* java.lang.ClassNotFoundException */ -> JavaClass! {
return try forName( arg0: _arg0, arg1: _arg1, arg2: _arg2 )
}
/// private static native java.lang.Class java.lang.Class.forName0(java.lang.String,boolean,java.lang.ClassLoader,java.lang.Class) throws java.lang.ClassNotFoundException
/// static byte[] java.lang.Class.getExecutableTypeAnnotationBytes(java.lang.reflect.Executable)
// Skipping method: true false false false false
/// static native java.lang.Class java.lang.Class.getPrimitiveClass(java.lang.String)
// Skipping method: true false false false false
/// private static sun.reflect.ReflectionFactory java.lang.Class.getReflectionFactory()
/// private static boolean java.lang.Class.isAsciiDigit(char)
/// private static native void java.lang.Class.registerNatives()
/// private static java.lang.reflect.Field java.lang.Class.searchFields(java.lang.reflect.Field[],java.lang.String)
/// private static java.lang.reflect.Method java.lang.Class.searchMethods(java.lang.reflect.Method[],java.lang.String,java.lang.Class[])
/// private static java.lang.Class java.lang.Class.toClass(java.lang.reflect.Type)
/// private java.lang.Class$AnnotationData java.lang.Class.annotationData()
/// public java.lang.Class java.lang.Class.asSubclass(java.lang.Class)
private static var asSubclass_MethodID_3: jmethodID?
open func asSubclass( arg0: JavaClass? ) -> JavaClass! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "asSubclass", methodSig: "(Ljava/lang/Class;)Ljava/lang/Class;", methodCache: &JavaClass.asSubclass_MethodID_3, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? JavaClass( javaObject: __return ) : nil
}
open func asSubclass( _ _arg0: JavaClass? ) -> JavaClass! {
return asSubclass( arg0: _arg0 )
}
/// private java.lang.String java.lang.Class.cannotCastMsg(java.lang.Object)
/// boolean java.lang.Class.casAnnotationType(sun.reflect.annotation.AnnotationType,sun.reflect.annotation.AnnotationType)
// Skipping method: true false false false false
/// public java.lang.Object java.lang.Class.cast(java.lang.Object)
private static var cast_MethodID_4: jmethodID?
open func cast( arg0: JavaObject? ) -> JavaObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "cast", methodSig: "(Ljava/lang/Object;)Ljava/lang/Object;", methodCache: &JavaClass.cast_MethodID_4, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? JavaObject( javaObject: __return ) : nil
}
open func cast( _ _arg0: JavaObject? ) -> JavaObject! {
return cast( arg0: _arg0 )
}
/// private void java.lang.Class.checkMemberAccess(int,java.lang.Class,boolean)
/// private void java.lang.Class.checkPackageAccess(java.lang.ClassLoader,boolean)
/// private java.lang.Class$AnnotationData java.lang.Class.createAnnotationData(int)
/// public boolean java.lang.Class.desiredAssertionStatus()
private static var desiredAssertionStatus_MethodID_5: jmethodID?
open func desiredAssertionStatus() -> Bool {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "desiredAssertionStatus", methodSig: "()Z", methodCache: &JavaClass.desiredAssertionStatus_MethodID_5, args: &__args, locals: &__locals )
return __return != jboolean(JNI_FALSE)
}
/// java.util.Map java.lang.Class.enumConstantDirectory()
// Skipping method: true false false false false
/// public java.lang.reflect.AnnotatedType[] java.lang.Class.getAnnotatedInterfaces()
private static var getAnnotatedInterfaces_MethodID_6: jmethodID?
open func getAnnotatedInterfaces() -> [/* interface java.lang.reflect.AnnotatedType */ UnavailableProtocol]! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getAnnotatedInterfaces", methodSig: "()[Ljava/lang/reflect/AnnotatedType;", methodCache: &JavaClass.getAnnotatedInterfaces_MethodID_6, args: &__args, locals: &__locals )
return JNIType.toSwift( type: [/* interface java.lang.reflect.AnnotatedType */ UnavailableProtocolForward].self, from: __return )
}
/// public java.lang.reflect.AnnotatedType java.lang.Class.getAnnotatedSuperclass()
private static var getAnnotatedSuperclass_MethodID_7: jmethodID?
open func getAnnotatedSuperclass() -> /* interface java.lang.reflect.AnnotatedType */ UnavailableProtocol! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getAnnotatedSuperclass", methodSig: "()Ljava/lang/reflect/AnnotatedType;", methodCache: &JavaClass.getAnnotatedSuperclass_MethodID_7, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? /* interface java.lang.reflect.AnnotatedType */ UnavailableProtocolForward( javaObject: __return ) : nil
}
/// public java.lang.annotation.Annotation java.lang.Class.getAnnotation(java.lang.Class)
private static var getAnnotation_MethodID_8: jmethodID?
open func getAnnotation( arg0: JavaClass? ) -> /* interface java.lang.annotation.Annotation */ UnavailableProtocol! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getAnnotation", methodSig: "(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;", methodCache: &JavaClass.getAnnotation_MethodID_8, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? /* interface java.lang.annotation.Annotation */ UnavailableProtocolForward( javaObject: __return ) : nil
}
open func getAnnotation( _ _arg0: JavaClass? ) -> /* interface java.lang.annotation.Annotation */ UnavailableProtocol! {
return getAnnotation( arg0: _arg0 )
}
/// sun.reflect.annotation.AnnotationType java.lang.Class.getAnnotationType()
// Skipping method: true false false false false
/// public java.lang.annotation.Annotation[] java.lang.Class.getAnnotations()
private static var getAnnotations_MethodID_9: jmethodID?
open func getAnnotations() -> [/* interface java.lang.annotation.Annotation */ UnavailableProtocol]! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getAnnotations", methodSig: "()[Ljava/lang/annotation/Annotation;", methodCache: &JavaClass.getAnnotations_MethodID_9, args: &__args, locals: &__locals )
return JNIType.toSwift( type: [/* interface java.lang.annotation.Annotation */ UnavailableProtocolForward].self, from: __return )
}
/// public java.lang.annotation.Annotation[] java.lang.Class.getAnnotationsByType(java.lang.Class)
private static var getAnnotationsByType_MethodID_10: jmethodID?
open func getAnnotationsByType( arg0: JavaClass? ) -> [/* interface java.lang.annotation.Annotation */ UnavailableProtocol]! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getAnnotationsByType", methodSig: "(Ljava/lang/Class;)[Ljava/lang/annotation/Annotation;", methodCache: &JavaClass.getAnnotationsByType_MethodID_10, args: &__args, locals: &__locals )
return JNIType.toSwift( type: [/* interface java.lang.annotation.Annotation */ UnavailableProtocolForward].self, from: __return )
}
open func getAnnotationsByType( _ _arg0: JavaClass? ) -> [/* interface java.lang.annotation.Annotation */ UnavailableProtocol]! {
return getAnnotationsByType( arg0: _arg0 )
}
/// public java.lang.String java.lang.Class.getCanonicalName()
private static var getCanonicalName_MethodID_11: jmethodID?
open func getCanonicalName() -> String! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getCanonicalName", methodSig: "()Ljava/lang/String;", methodCache: &JavaClass.getCanonicalName_MethodID_11, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? String( javaObject: __return ) : nil
}
/// public java.lang.ClassLoader java.lang.Class.getClassLoader()
private static var getClassLoader_MethodID_12: jmethodID?
open func getClassLoader() -> /* class java.lang.ClassLoader */ UnavailableObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getClassLoader", methodSig: "()Ljava/lang/ClassLoader;", methodCache: &JavaClass.getClassLoader_MethodID_12, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? /* class java.lang.ClassLoader */ UnavailableObject( javaObject: __return ) : nil
}
/// java.lang.ClassLoader java.lang.Class.getClassLoader0()
// Skipping method: true false false false false
/// public java.lang.Class[] java.lang.Class.getClasses()
private static var getClasses_MethodID_13: jmethodID?
open func getClasses() -> [JavaClass]! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getClasses", methodSig: "()[Ljava/lang/Class;", methodCache: &JavaClass.getClasses_MethodID_13, args: &__args, locals: &__locals )
return JNIType.toSwift( type: [JavaClass].self, from: __return )
}
/// public native java.lang.Class java.lang.Class.getComponentType()
private static var getComponentType_MethodID_14: jmethodID?
open func getComponentType() -> JavaClass! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getComponentType", methodSig: "()Ljava/lang/Class;", methodCache: &JavaClass.getComponentType_MethodID_14, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? JavaClass( javaObject: __return ) : nil
}
/// native sun.reflect.ConstantPool java.lang.Class.getConstantPool()
// Skipping method: true false false false false
/// public java.lang.reflect.Constructor java.lang.Class.getConstructor(java.lang.Class[]) throws java.lang.NoSuchMethodException,java.lang.SecurityException
private static var getConstructor_MethodID_15: jmethodID?
open func getConstructor( arg0: [JavaClass]? ) throws /* java.lang.NoSuchMethodException, java.lang.SecurityException */ -> /* class java.lang.reflect.Constructor */ UnavailableObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getConstructor", methodSig: "([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;", methodCache: &JavaClass.getConstructor_MethodID_15, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw /* class java.lang.NoSuchMethodException */ UnavailableObject( javaObject: throwable )
}
return __return != nil ? /* class java.lang.reflect.Constructor */ UnavailableObject( javaObject: __return ) : nil
}
open func getConstructor( _ _arg0: [JavaClass]? ) throws /* java.lang.NoSuchMethodException, java.lang.SecurityException */ -> /* class java.lang.reflect.Constructor */ UnavailableObject! {
return try getConstructor( arg0: _arg0 )
}
/// private java.lang.reflect.Constructor java.lang.Class.getConstructor0(java.lang.Class[],int) throws java.lang.NoSuchMethodException
/// public java.lang.reflect.Constructor[] java.lang.Class.getConstructors() throws java.lang.SecurityException
private static var getConstructors_MethodID_16: jmethodID?
open func getConstructors() throws /* java.lang.SecurityException */ -> [/* class java.lang.reflect.Constructor */ UnavailableObject]! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getConstructors", methodSig: "()[Ljava/lang/reflect/Constructor;", methodCache: &JavaClass.getConstructors_MethodID_16, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw /* class java.lang.SecurityException */ UnavailableObject( javaObject: throwable )
}
return JNIType.toSwift( type: [/* class java.lang.reflect.Constructor */ UnavailableObject].self, from: __return )
}
/// public java.lang.annotation.Annotation java.lang.Class.getDeclaredAnnotation(java.lang.Class)
private static var getDeclaredAnnotation_MethodID_17: jmethodID?
open func getDeclaredAnnotation( arg0: JavaClass? ) -> /* interface java.lang.annotation.Annotation */ UnavailableProtocol! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getDeclaredAnnotation", methodSig: "(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;", methodCache: &JavaClass.getDeclaredAnnotation_MethodID_17, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? /* interface java.lang.annotation.Annotation */ UnavailableProtocolForward( javaObject: __return ) : nil
}
open func getDeclaredAnnotation( _ _arg0: JavaClass? ) -> /* interface java.lang.annotation.Annotation */ UnavailableProtocol! {
return getDeclaredAnnotation( arg0: _arg0 )
}
/// java.util.Map java.lang.Class.getDeclaredAnnotationMap()
// Skipping method: true false false false false
/// public java.lang.annotation.Annotation[] java.lang.Class.getDeclaredAnnotations()
private static var getDeclaredAnnotations_MethodID_18: jmethodID?
open func getDeclaredAnnotations() -> [/* interface java.lang.annotation.Annotation */ UnavailableProtocol]! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getDeclaredAnnotations", methodSig: "()[Ljava/lang/annotation/Annotation;", methodCache: &JavaClass.getDeclaredAnnotations_MethodID_18, args: &__args, locals: &__locals )
return JNIType.toSwift( type: [/* interface java.lang.annotation.Annotation */ UnavailableProtocolForward].self, from: __return )
}
/// public java.lang.annotation.Annotation[] java.lang.Class.getDeclaredAnnotationsByType(java.lang.Class)
private static var getDeclaredAnnotationsByType_MethodID_19: jmethodID?
open func getDeclaredAnnotationsByType( arg0: JavaClass? ) -> [/* interface java.lang.annotation.Annotation */ UnavailableProtocol]! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getDeclaredAnnotationsByType", methodSig: "(Ljava/lang/Class;)[Ljava/lang/annotation/Annotation;", methodCache: &JavaClass.getDeclaredAnnotationsByType_MethodID_19, args: &__args, locals: &__locals )
return JNIType.toSwift( type: [/* interface java.lang.annotation.Annotation */ UnavailableProtocolForward].self, from: __return )
}
open func getDeclaredAnnotationsByType( _ _arg0: JavaClass? ) -> [/* interface java.lang.annotation.Annotation */ UnavailableProtocol]! {
return getDeclaredAnnotationsByType( arg0: _arg0 )
}
/// public java.lang.Class[] java.lang.Class.getDeclaredClasses() throws java.lang.SecurityException
private static var getDeclaredClasses_MethodID_20: jmethodID?
open func getDeclaredClasses() throws /* java.lang.SecurityException */ -> [JavaClass]! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getDeclaredClasses", methodSig: "()[Ljava/lang/Class;", methodCache: &JavaClass.getDeclaredClasses_MethodID_20, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw /* class java.lang.SecurityException */ UnavailableObject( javaObject: throwable )
}
return JNIType.toSwift( type: [JavaClass].self, from: __return )
}
/// private native java.lang.Class[] java.lang.Class.getDeclaredClasses0()
/// public java.lang.reflect.Constructor java.lang.Class.getDeclaredConstructor(java.lang.Class[]) throws java.lang.NoSuchMethodException,java.lang.SecurityException
private static var getDeclaredConstructor_MethodID_21: jmethodID?
open func getDeclaredConstructor( arg0: [JavaClass]? ) throws /* java.lang.NoSuchMethodException, java.lang.SecurityException */ -> /* class java.lang.reflect.Constructor */ UnavailableObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getDeclaredConstructor", methodSig: "([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;", methodCache: &JavaClass.getDeclaredConstructor_MethodID_21, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw /* class java.lang.NoSuchMethodException */ UnavailableObject( javaObject: throwable )
}
return __return != nil ? /* class java.lang.reflect.Constructor */ UnavailableObject( javaObject: __return ) : nil
}
open func getDeclaredConstructor( _ _arg0: [JavaClass]? ) throws /* java.lang.NoSuchMethodException, java.lang.SecurityException */ -> /* class java.lang.reflect.Constructor */ UnavailableObject! {
return try getDeclaredConstructor( arg0: _arg0 )
}
/// public java.lang.reflect.Constructor[] java.lang.Class.getDeclaredConstructors() throws java.lang.SecurityException
private static var getDeclaredConstructors_MethodID_22: jmethodID?
open func getDeclaredConstructors() throws /* java.lang.SecurityException */ -> [/* class java.lang.reflect.Constructor */ UnavailableObject]! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getDeclaredConstructors", methodSig: "()[Ljava/lang/reflect/Constructor;", methodCache: &JavaClass.getDeclaredConstructors_MethodID_22, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw /* class java.lang.SecurityException */ UnavailableObject( javaObject: throwable )
}
return JNIType.toSwift( type: [/* class java.lang.reflect.Constructor */ UnavailableObject].self, from: __return )
}
/// private native java.lang.reflect.Constructor[] java.lang.Class.getDeclaredConstructors0(boolean)
/// public java.lang.reflect.Field java.lang.Class.getDeclaredField(java.lang.String) throws java.lang.NoSuchFieldException,java.lang.SecurityException
private static var getDeclaredField_MethodID_23: jmethodID?
open func getDeclaredField( arg0: String? ) throws /* java.lang.NoSuchFieldException, java.lang.SecurityException */ -> /* class java.lang.reflect.Field */ UnavailableObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getDeclaredField", methodSig: "(Ljava/lang/String;)Ljava/lang/reflect/Field;", methodCache: &JavaClass.getDeclaredField_MethodID_23, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw /* class java.lang.NoSuchFieldException */ UnavailableObject( javaObject: throwable )
}
return __return != nil ? /* class java.lang.reflect.Field */ UnavailableObject( javaObject: __return ) : nil
}
open func getDeclaredField( _ _arg0: String? ) throws /* java.lang.NoSuchFieldException, java.lang.SecurityException */ -> /* class java.lang.reflect.Field */ UnavailableObject! {
return try getDeclaredField( arg0: _arg0 )
}
/// public java.lang.reflect.Field[] java.lang.Class.getDeclaredFields() throws java.lang.SecurityException
private static var getDeclaredFields_MethodID_24: jmethodID?
open func getDeclaredFields() throws /* java.lang.SecurityException */ -> [/* class java.lang.reflect.Field */ UnavailableObject]! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getDeclaredFields", methodSig: "()[Ljava/lang/reflect/Field;", methodCache: &JavaClass.getDeclaredFields_MethodID_24, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw /* class java.lang.SecurityException */ UnavailableObject( javaObject: throwable )
}
return JNIType.toSwift( type: [/* class java.lang.reflect.Field */ UnavailableObject].self, from: __return )
}
/// private native java.lang.reflect.Field[] java.lang.Class.getDeclaredFields0(boolean)
/// public java.lang.reflect.Method java.lang.Class.getDeclaredMethod(java.lang.String,java.lang.Class[]) throws java.lang.NoSuchMethodException,java.lang.SecurityException
private static var getDeclaredMethod_MethodID_25: jmethodID?
open func getDeclaredMethod( arg0: String?, arg1: [JavaClass]? ) throws /* java.lang.NoSuchMethodException, java.lang.SecurityException */ -> /* class java.lang.reflect.Method */ UnavailableObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 2 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
__args[1] = JNIType.toJava( value: arg1, locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getDeclaredMethod", methodSig: "(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;", methodCache: &JavaClass.getDeclaredMethod_MethodID_25, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw /* class java.lang.NoSuchMethodException */ UnavailableObject( javaObject: throwable )
}
return __return != nil ? /* class java.lang.reflect.Method */ UnavailableObject( javaObject: __return ) : nil
}
open func getDeclaredMethod( _ _arg0: String?, _ _arg1: [JavaClass]? ) throws /* java.lang.NoSuchMethodException, java.lang.SecurityException */ -> /* class java.lang.reflect.Method */ UnavailableObject! {
return try getDeclaredMethod( arg0: _arg0, arg1: _arg1 )
}
/// public java.lang.reflect.Method[] java.lang.Class.getDeclaredMethods() throws java.lang.SecurityException
private static var getDeclaredMethods_MethodID_26: jmethodID?
open func getDeclaredMethods() throws /* java.lang.SecurityException */ -> [/* class java.lang.reflect.Method */ UnavailableObject]! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getDeclaredMethods", methodSig: "()[Ljava/lang/reflect/Method;", methodCache: &JavaClass.getDeclaredMethods_MethodID_26, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw /* class java.lang.SecurityException */ UnavailableObject( javaObject: throwable )
}
return JNIType.toSwift( type: [/* class java.lang.reflect.Method */ UnavailableObject].self, from: __return )
}
/// private native java.lang.reflect.Method[] java.lang.Class.getDeclaredMethods0(boolean)
/// public java.lang.Class java.lang.Class.getDeclaringClass() throws java.lang.SecurityException
private static var getDeclaringClass_MethodID_27: jmethodID?
open func getDeclaringClass() throws /* java.lang.SecurityException */ -> JavaClass! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getDeclaringClass", methodSig: "()Ljava/lang/Class;", methodCache: &JavaClass.getDeclaringClass_MethodID_27, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw /* class java.lang.SecurityException */ UnavailableObject( javaObject: throwable )
}
return __return != nil ? JavaClass( javaObject: __return ) : nil
}
/// private native java.lang.Class java.lang.Class.getDeclaringClass0()
/// public java.lang.Class java.lang.Class.getEnclosingClass() throws java.lang.SecurityException
private static var getEnclosingClass_MethodID_28: jmethodID?
open func getEnclosingClass() throws /* java.lang.SecurityException */ -> JavaClass! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getEnclosingClass", methodSig: "()Ljava/lang/Class;", methodCache: &JavaClass.getEnclosingClass_MethodID_28, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw /* class java.lang.SecurityException */ UnavailableObject( javaObject: throwable )
}
return __return != nil ? JavaClass( javaObject: __return ) : nil
}
/// public java.lang.reflect.Constructor java.lang.Class.getEnclosingConstructor() throws java.lang.SecurityException
private static var getEnclosingConstructor_MethodID_29: jmethodID?
open func getEnclosingConstructor() throws /* java.lang.SecurityException */ -> /* class java.lang.reflect.Constructor */ UnavailableObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getEnclosingConstructor", methodSig: "()Ljava/lang/reflect/Constructor;", methodCache: &JavaClass.getEnclosingConstructor_MethodID_29, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw /* class java.lang.SecurityException */ UnavailableObject( javaObject: throwable )
}
return __return != nil ? /* class java.lang.reflect.Constructor */ UnavailableObject( javaObject: __return ) : nil
}
/// public java.lang.reflect.Method java.lang.Class.getEnclosingMethod() throws java.lang.SecurityException
private static var getEnclosingMethod_MethodID_30: jmethodID?
open func getEnclosingMethod() throws /* java.lang.SecurityException */ -> /* class java.lang.reflect.Method */ UnavailableObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getEnclosingMethod", methodSig: "()Ljava/lang/reflect/Method;", methodCache: &JavaClass.getEnclosingMethod_MethodID_30, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw /* class java.lang.SecurityException */ UnavailableObject( javaObject: throwable )
}
return __return != nil ? /* class java.lang.reflect.Method */ UnavailableObject( javaObject: __return ) : nil
}
/// private native java.lang.Object[] java.lang.Class.getEnclosingMethod0()
/// private java.lang.Class$EnclosingMethodInfo java.lang.Class.getEnclosingMethodInfo()
/// public java.lang.Object[] java.lang.Class.getEnumConstants()
private static var getEnumConstants_MethodID_31: jmethodID?
open func getEnumConstants() -> [JavaObject]! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getEnumConstants", methodSig: "()[Ljava/lang/Object;", methodCache: &JavaClass.getEnumConstants_MethodID_31, args: &__args, locals: &__locals )
return JNIType.toSwift( type: [JavaObject].self, from: __return )
}
/// java.lang.Object[] java.lang.Class.getEnumConstantsShared()
// Skipping method: true false false false false
/// private sun.reflect.generics.factory.GenericsFactory java.lang.Class.getFactory()
/// public java.lang.reflect.Field java.lang.Class.getField(java.lang.String) throws java.lang.NoSuchFieldException,java.lang.SecurityException
private static var getField_MethodID_32: jmethodID?
open func getField( arg0: String? ) throws /* java.lang.NoSuchFieldException, java.lang.SecurityException */ -> /* class java.lang.reflect.Field */ UnavailableObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getField", methodSig: "(Ljava/lang/String;)Ljava/lang/reflect/Field;", methodCache: &JavaClass.getField_MethodID_32, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw /* class java.lang.NoSuchFieldException */ UnavailableObject( javaObject: throwable )
}
return __return != nil ? /* class java.lang.reflect.Field */ UnavailableObject( javaObject: __return ) : nil
}
open func getField( _ _arg0: String? ) throws /* java.lang.NoSuchFieldException, java.lang.SecurityException */ -> /* class java.lang.reflect.Field */ UnavailableObject! {
return try getField( arg0: _arg0 )
}
/// private java.lang.reflect.Field java.lang.Class.getField0(java.lang.String) throws java.lang.NoSuchFieldException
/// public java.lang.reflect.Field[] java.lang.Class.getFields() throws java.lang.SecurityException
private static var getFields_MethodID_33: jmethodID?
open func getFields() throws /* java.lang.SecurityException */ -> [/* class java.lang.reflect.Field */ UnavailableObject]! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getFields", methodSig: "()[Ljava/lang/reflect/Field;", methodCache: &JavaClass.getFields_MethodID_33, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw /* class java.lang.SecurityException */ UnavailableObject( javaObject: throwable )
}
return JNIType.toSwift( type: [/* class java.lang.reflect.Field */ UnavailableObject].self, from: __return )
}
/// private sun.reflect.generics.repository.ClassRepository java.lang.Class.getGenericInfo()
/// public java.lang.reflect.Type[] java.lang.Class.getGenericInterfaces()
private static var getGenericInterfaces_MethodID_34: jmethodID?
open func getGenericInterfaces() -> [/* interface java.lang.reflect.Type */ UnavailableProtocol]! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getGenericInterfaces", methodSig: "()[Ljava/lang/reflect/Type;", methodCache: &JavaClass.getGenericInterfaces_MethodID_34, args: &__args, locals: &__locals )
return JNIType.toSwift( type: [/* interface java.lang.reflect.Type */ UnavailableProtocolForward].self, from: __return )
}
/// private native java.lang.String java.lang.Class.getGenericSignature0()
/// public java.lang.reflect.Type java.lang.Class.getGenericSuperclass()
private static var getGenericSuperclass_MethodID_35: jmethodID?
open func getGenericSuperclass() -> /* interface java.lang.reflect.Type */ UnavailableProtocol! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getGenericSuperclass", methodSig: "()Ljava/lang/reflect/Type;", methodCache: &JavaClass.getGenericSuperclass_MethodID_35, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? /* interface java.lang.reflect.Type */ UnavailableProtocolForward( javaObject: __return ) : nil
}
/// public java.lang.Class[] java.lang.Class.getInterfaces()
private static var getInterfaces_MethodID_36: jmethodID?
open func getInterfaces() -> [JavaClass]! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getInterfaces", methodSig: "()[Ljava/lang/Class;", methodCache: &JavaClass.getInterfaces_MethodID_36, args: &__args, locals: &__locals )
return JNIType.toSwift( type: [JavaClass].self, from: __return )
}
/// private native java.lang.Class[] java.lang.Class.getInterfaces0()
/// public java.lang.reflect.Method java.lang.Class.getMethod(java.lang.String,java.lang.Class[]) throws java.lang.NoSuchMethodException,java.lang.SecurityException
private static var getMethod_MethodID_37: jmethodID?
open func getMethod( arg0: String?, arg1: [JavaClass]? ) throws /* java.lang.NoSuchMethodException, java.lang.SecurityException */ -> /* class java.lang.reflect.Method */ UnavailableObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 2 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
__args[1] = JNIType.toJava( value: arg1, locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getMethod", methodSig: "(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;", methodCache: &JavaClass.getMethod_MethodID_37, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw /* class java.lang.NoSuchMethodException */ UnavailableObject( javaObject: throwable )
}
return __return != nil ? /* class java.lang.reflect.Method */ UnavailableObject( javaObject: __return ) : nil
}
open func getMethod( _ _arg0: String?, _ _arg1: [JavaClass]? ) throws /* java.lang.NoSuchMethodException, java.lang.SecurityException */ -> /* class java.lang.reflect.Method */ UnavailableObject! {
return try getMethod( arg0: _arg0, arg1: _arg1 )
}
/// private java.lang.reflect.Method java.lang.Class.getMethod0(java.lang.String,java.lang.Class[],boolean)
/// public java.lang.reflect.Method[] java.lang.Class.getMethods() throws java.lang.SecurityException
private static var getMethods_MethodID_38: jmethodID?
open func getMethods() throws /* java.lang.SecurityException */ -> [/* class java.lang.reflect.Method */ UnavailableObject]! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getMethods", methodSig: "()[Ljava/lang/reflect/Method;", methodCache: &JavaClass.getMethods_MethodID_38, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw /* class java.lang.SecurityException */ UnavailableObject( javaObject: throwable )
}
return JNIType.toSwift( type: [/* class java.lang.reflect.Method */ UnavailableObject].self, from: __return )
}
/// public native int java.lang.Class.getModifiers()
private static var getModifiers_MethodID_39: jmethodID?
open func getModifiers() -> Int {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "getModifiers", methodSig: "()I", methodCache: &JavaClass.getModifiers_MethodID_39, args: &__args, locals: &__locals )
return Int(__return)
}
/// public java.lang.String java.lang.Class.getName()
private static var getName_MethodID_40: jmethodID?
open func getName() -> String! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getName", methodSig: "()Ljava/lang/String;", methodCache: &JavaClass.getName_MethodID_40, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? String( javaObject: __return ) : nil
}
/// private native java.lang.String java.lang.Class.getName0()
/// public java.lang.Package java.lang.Class.getPackage()
private static var getPackage_MethodID_41: jmethodID?
open func getPackage() -> /* class java.lang.Package */ UnavailableObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getPackage", methodSig: "()Ljava/lang/Package;", methodCache: &JavaClass.getPackage_MethodID_41, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? /* class java.lang.Package */ UnavailableObject( javaObject: __return ) : nil
}
/// public java.security.ProtectionDomain java.lang.Class.getProtectionDomain()
private static var getProtectionDomain_MethodID_42: jmethodID?
open func getProtectionDomain() -> /* class java.security.ProtectionDomain */ UnavailableObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getProtectionDomain", methodSig: "()Ljava/security/ProtectionDomain;", methodCache: &JavaClass.getProtectionDomain_MethodID_42, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? /* class java.security.ProtectionDomain */ UnavailableObject( javaObject: __return ) : nil
}
/// private native java.security.ProtectionDomain java.lang.Class.getProtectionDomain0()
/// native byte[] java.lang.Class.getRawAnnotations()
// Skipping method: true false false false false
/// native byte[] java.lang.Class.getRawTypeAnnotations()
// Skipping method: true false false false false
/// public java.net.URL java.lang.Class.getResource(java.lang.String)
private static var getResource_MethodID_43: jmethodID?
open func getResource( arg0: String? ) -> /* class java.net.URL */ UnavailableObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getResource", methodSig: "(Ljava/lang/String;)Ljava/net/URL;", methodCache: &JavaClass.getResource_MethodID_43, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? /* class java.net.URL */ UnavailableObject( javaObject: __return ) : nil
}
open func getResource( _ _arg0: String? ) -> /* class java.net.URL */ UnavailableObject! {
return getResource( arg0: _arg0 )
}
/// public java.io.InputStream java.lang.Class.getResourceAsStream(java.lang.String)
private static var getResourceAsStream_MethodID_44: jmethodID?
open func getResourceAsStream( arg0: String? ) -> /* class java.io.InputStream */ UnavailableObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getResourceAsStream", methodSig: "(Ljava/lang/String;)Ljava/io/InputStream;", methodCache: &JavaClass.getResourceAsStream_MethodID_44, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? /* class java.io.InputStream */ UnavailableObject( javaObject: __return ) : nil
}
open func getResourceAsStream( _ _arg0: String? ) -> /* class java.io.InputStream */ UnavailableObject! {
return getResourceAsStream( arg0: _arg0 )
}
/// public native java.lang.Object[] java.lang.Class.getSigners()
private static var getSigners_MethodID_45: jmethodID?
open func getSigners() -> [JavaObject]! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getSigners", methodSig: "()[Ljava/lang/Object;", methodCache: &JavaClass.getSigners_MethodID_45, args: &__args, locals: &__locals )
return JNIType.toSwift( type: [JavaObject].self, from: __return )
}
/// private java.lang.String java.lang.Class.getSimpleBinaryName()
/// public java.lang.String java.lang.Class.getSimpleName()
private static var getSimpleName_MethodID_46: jmethodID?
open func getSimpleName() -> String! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getSimpleName", methodSig: "()Ljava/lang/String;", methodCache: &JavaClass.getSimpleName_MethodID_46, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? String( javaObject: __return ) : nil
}
/// public native java.lang.Class java.lang.Class.getSuperclass()
private static var getSuperclass_MethodID_47: jmethodID?
open func getSuperclass() -> JavaClass! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getSuperclass", methodSig: "()Ljava/lang/Class;", methodCache: &JavaClass.getSuperclass_MethodID_47, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? JavaClass( javaObject: __return ) : nil
}
/// public java.lang.String java.lang.Class.getTypeName()
private static var getTypeName_MethodID_48: jmethodID?
open func getTypeName() -> String! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getTypeName", methodSig: "()Ljava/lang/String;", methodCache: &JavaClass.getTypeName_MethodID_48, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? String( javaObject: __return ) : nil
}
/// public java.lang.reflect.TypeVariable[] java.lang.Class.getTypeParameters()
private static var getTypeParameters_MethodID_49: jmethodID?
open func getTypeParameters() -> [/* interface java.lang.reflect.TypeVariable */ UnavailableProtocol]! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getTypeParameters", methodSig: "()[Ljava/lang/reflect/TypeVariable;", methodCache: &JavaClass.getTypeParameters_MethodID_49, args: &__args, locals: &__locals )
return JNIType.toSwift( type: [/* interface java.lang.reflect.TypeVariable */ UnavailableProtocolForward].self, from: __return )
}
/// public boolean java.lang.Class.isAnnotation()
private static var isAnnotation_MethodID_50: jmethodID?
open func isAnnotation() -> Bool {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "isAnnotation", methodSig: "()Z", methodCache: &JavaClass.isAnnotation_MethodID_50, args: &__args, locals: &__locals )
return __return != jboolean(JNI_FALSE)
}
/// public boolean java.lang.Class.isAnnotationPresent(java.lang.Class)
private static var isAnnotationPresent_MethodID_51: jmethodID?
open func isAnnotationPresent( arg0: JavaClass? ) -> Bool {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "isAnnotationPresent", methodSig: "(Ljava/lang/Class;)Z", methodCache: &JavaClass.isAnnotationPresent_MethodID_51, args: &__args, locals: &__locals )
return __return != jboolean(JNI_FALSE)
}
open func isAnnotationPresent( _ _arg0: JavaClass? ) -> Bool {
return isAnnotationPresent( arg0: _arg0 )
}
/// public boolean java.lang.Class.isAnonymousClass()
private static var isAnonymousClass_MethodID_52: jmethodID?
open func isAnonymousClass() -> Bool {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "isAnonymousClass", methodSig: "()Z", methodCache: &JavaClass.isAnonymousClass_MethodID_52, args: &__args, locals: &__locals )
return __return != jboolean(JNI_FALSE)
}
/// public native boolean java.lang.Class.isArray()