@@ -23,36 +23,23 @@ open class AnnotatedArrayTypeForward: AnnotatedTypeForward, AnnotatedArrayType {
23
23
private static var getAnnotatedGenericComponentType_MethodID_2 : jmethodID ?
24
24
25
25
open func getAnnotatedGenericComponentType( ) -> AnnotatedType ! {
26
- var __args = [ jvalue] ( repeating: jvalue ( ) , count: 1 )
27
26
var __locals = [ jobject] ( )
27
+ var __args = [ jvalue] ( repeating: jvalue ( ) , count: 1 )
28
28
let __return = JNIMethod . CallObjectMethod ( object: javaObject, methodName: " getAnnotatedGenericComponentType " , methodSig: " ()Ljava/lang/reflect/AnnotatedType; " , methodCache: & AnnotatedArrayTypeForward. getAnnotatedGenericComponentType_MethodID_2, args: & __args, locals: & __locals )
29
29
defer { JNI . DeleteLocalRef ( __return ) }
30
30
return __return != nil ? AnnotatedTypeForward ( javaObject: __return ) : nil
31
31
}
32
32
33
33
34
- /// public abstract java.lang.reflect.Type java.lang.reflect.AnnotatedType.getType()
35
-
36
- private static var getType_MethodID_3 : jmethodID ?
37
-
38
- override open func getType( ) -> Type ! {
39
- var __args = [ jvalue] ( repeating: jvalue ( ) , count: 1 )
40
- var __locals = [ jobject] ( )
41
- let __return = JNIMethod . CallObjectMethod ( object: javaObject, methodName: " getType " , methodSig: " ()Ljava/lang/reflect/Type; " , methodCache: & AnnotatedArrayTypeForward. getType_MethodID_3, args: & __args, locals: & __locals )
42
- defer { JNI . DeleteLocalRef ( __return ) }
43
- return __return != nil ? TypeForward ( javaObject: __return ) : nil
44
- }
45
-
46
-
47
34
/// public abstract java.lang.annotation.Annotation java.lang.reflect.AnnotatedElement.getAnnotation(java.lang.Class)
48
35
49
- private static var getAnnotation_MethodID_4 : jmethodID ?
36
+ private static var getAnnotation_MethodID_3 : jmethodID ?
50
37
51
38
override open func getAnnotation( arg0: java_swift . JavaClass ? ) -> Annotation ! {
52
- var __args = [ jvalue] ( repeating: jvalue ( ) , count: 1 )
53
39
var __locals = [ jobject] ( )
40
+ var __args = [ jvalue] ( repeating: jvalue ( ) , count: 1 )
54
41
__args [ 0 ] = JNIType . toJava ( value: arg0, locals: & __locals )
55
- let __return = JNIMethod . CallObjectMethod ( object: javaObject, methodName: " getAnnotation " , methodSig: " (Ljava/lang/Class;)Ljava/lang/annotation/Annotation; " , methodCache: & AnnotatedArrayTypeForward. getAnnotation_MethodID_4 , args: & __args, locals: & __locals )
42
+ let __return = JNIMethod . CallObjectMethod ( object: javaObject, methodName: " getAnnotation " , methodSig: " (Ljava/lang/Class;)Ljava/lang/annotation/Annotation; " , methodCache: & AnnotatedArrayTypeForward. getAnnotation_MethodID_3 , args: & __args, locals: & __locals )
56
43
defer { JNI . DeleteLocalRef ( __return ) }
57
44
return __return != nil ? AnnotationForward ( javaObject: __return ) : nil
58
45
}
@@ -61,59 +48,43 @@ open class AnnotatedArrayTypeForward: AnnotatedTypeForward, AnnotatedArrayType {
61
48
return getAnnotation ( arg0: _arg0 )
62
49
}
63
50
64
- /// public default boolean java.lang.reflect.AnnotatedElement.isAnnotationPresent(java.lang.Class )
51
+ /// public abstract java.lang.annotation.Annotation[] java.lang.reflect.AnnotatedElement.getAnnotations( )
65
52
66
- private static var isAnnotationPresent_MethodID_5 : jmethodID ?
53
+ private static var getAnnotations_MethodID_4 : jmethodID ?
67
54
68
- override open func isAnnotationPresent( arg0: java_swift . JavaClass ? ) -> Bool {
69
- var __args = [ jvalue] ( repeating: jvalue ( ) , count: 1 )
55
+ override open func getAnnotations( ) -> [ Annotation ] ! {
70
56
var __locals = [ jobject] ( )
71
- __args [ 0 ] = JNIType . toJava ( value : arg0 , locals : & __locals )
72
- let __return = JNIMethod . CallBooleanMethod ( object: javaObject, methodName: " isAnnotationPresent " , methodSig: " (Ljava/lang/Class;)Z " , methodCache: & AnnotatedArrayTypeForward. isAnnotationPresent_MethodID_5 , args: & __args, locals: & __locals )
73
- return JNIType . toSwift ( type: Bool ( ) , from: __return )
57
+ var __args = [ jvalue ] ( repeating : jvalue ( ) , count : 1 )
58
+ let __return = JNIMethod . CallObjectMethod ( object: javaObject, methodName: " getAnnotations " , methodSig: " ()[ Ljava/lang/annotation/Annotation; " , methodCache: & AnnotatedArrayTypeForward. getAnnotations_MethodID_4 , args: & __args, locals: & __locals )
59
+ return JNIType . toSwift ( type: [ AnnotationForward ] . self , from: __return )
74
60
}
75
61
76
- override open func isAnnotationPresent( _ _arg0: java_swift . JavaClass ? ) -> Bool {
77
- return isAnnotationPresent ( arg0: _arg0 )
78
- }
79
62
80
63
/// public default java.lang.annotation.Annotation[] java.lang.reflect.AnnotatedElement.getAnnotationsByType(java.lang.Class)
81
64
82
- private static var getAnnotationsByType_MethodID_6 : jmethodID ?
65
+ private static var getAnnotationsByType_MethodID_5 : jmethodID ?
83
66
84
67
override open func getAnnotationsByType( arg0: java_swift . JavaClass ? ) -> [ Annotation ] ! {
85
- var __args = [ jvalue] ( repeating: jvalue ( ) , count: 1 )
86
68
var __locals = [ jobject] ( )
69
+ var __args = [ jvalue] ( repeating: jvalue ( ) , count: 1 )
87
70
__args [ 0 ] = JNIType . toJava ( value: arg0, locals: & __locals )
88
- let __return = JNIMethod . CallObjectMethod ( object: javaObject, methodName: " getAnnotationsByType " , methodSig: " (Ljava/lang/Class;)[Ljava/lang/annotation/Annotation; " , methodCache: & AnnotatedArrayTypeForward. getAnnotationsByType_MethodID_6 , args: & __args, locals: & __locals )
89
- return JNIType . toSwift ( type: [ AnnotationForward] ( ) , from: __return )
71
+ let __return = JNIMethod . CallObjectMethod ( object: javaObject, methodName: " getAnnotationsByType " , methodSig: " (Ljava/lang/Class;)[Ljava/lang/annotation/Annotation; " , methodCache: & AnnotatedArrayTypeForward. getAnnotationsByType_MethodID_5 , args: & __args, locals: & __locals )
72
+ return JNIType . toSwift ( type: [ AnnotationForward ] . self , from: __return )
90
73
}
91
74
92
75
override open func getAnnotationsByType( _ _arg0: java_swift . JavaClass ? ) -> [ Annotation ] ! {
93
76
return getAnnotationsByType ( arg0: _arg0 )
94
77
}
95
78
96
- /// public abstract java.lang.annotation.Annotation[] java.lang.reflect.AnnotatedElement.getAnnotations()
97
-
98
- private static var getAnnotations_MethodID_7 : jmethodID ?
99
-
100
- override open func getAnnotations( ) -> [ Annotation ] ! {
101
- var __args = [ jvalue] ( repeating: jvalue ( ) , count: 1 )
102
- var __locals = [ jobject] ( )
103
- let __return = JNIMethod . CallObjectMethod ( object: javaObject, methodName: " getAnnotations " , methodSig: " ()[Ljava/lang/annotation/Annotation; " , methodCache: & AnnotatedArrayTypeForward. getAnnotations_MethodID_7, args: & __args, locals: & __locals )
104
- return JNIType . toSwift ( type: [ AnnotationForward] ( ) , from: __return )
105
- }
106
-
107
-
108
79
/// public default java.lang.annotation.Annotation java.lang.reflect.AnnotatedElement.getDeclaredAnnotation(java.lang.Class)
109
80
110
- private static var getDeclaredAnnotation_MethodID_8 : jmethodID ?
81
+ private static var getDeclaredAnnotation_MethodID_6 : jmethodID ?
111
82
112
83
override open func getDeclaredAnnotation( arg0: java_swift . JavaClass ? ) -> Annotation ! {
113
- var __args = [ jvalue] ( repeating: jvalue ( ) , count: 1 )
114
84
var __locals = [ jobject] ( )
85
+ var __args = [ jvalue] ( repeating: jvalue ( ) , count: 1 )
115
86
__args [ 0 ] = JNIType . toJava ( value: arg0, locals: & __locals )
116
- let __return = JNIMethod . CallObjectMethod ( object: javaObject, methodName: " getDeclaredAnnotation " , methodSig: " (Ljava/lang/Class;)Ljava/lang/annotation/Annotation; " , methodCache: & AnnotatedArrayTypeForward. getDeclaredAnnotation_MethodID_8 , args: & __args, locals: & __locals )
87
+ let __return = JNIMethod . CallObjectMethod ( object: javaObject, methodName: " getDeclaredAnnotation " , methodSig: " (Ljava/lang/Class;)Ljava/lang/annotation/Annotation; " , methodCache: & AnnotatedArrayTypeForward. getDeclaredAnnotation_MethodID_6 , args: & __args, locals: & __locals )
117
88
defer { JNI . DeleteLocalRef ( __return ) }
118
89
return __return != nil ? AnnotationForward ( javaObject: __return ) : nil
119
90
}
@@ -122,34 +93,62 @@ open class AnnotatedArrayTypeForward: AnnotatedTypeForward, AnnotatedArrayType {
122
93
return getDeclaredAnnotation ( arg0: _arg0 )
123
94
}
124
95
96
+ /// public abstract java.lang.annotation.Annotation[] java.lang.reflect.AnnotatedElement.getDeclaredAnnotations()
97
+
98
+ private static var getDeclaredAnnotations_MethodID_7 : jmethodID ?
99
+
100
+ override open func getDeclaredAnnotations( ) -> [ Annotation ] ! {
101
+ var __locals = [ jobject] ( )
102
+ var __args = [ jvalue] ( repeating: jvalue ( ) , count: 1 )
103
+ let __return = JNIMethod . CallObjectMethod ( object: javaObject, methodName: " getDeclaredAnnotations " , methodSig: " ()[Ljava/lang/annotation/Annotation; " , methodCache: & AnnotatedArrayTypeForward. getDeclaredAnnotations_MethodID_7, args: & __args, locals: & __locals )
104
+ return JNIType . toSwift ( type: [ AnnotationForward ] . self, from: __return )
105
+ }
106
+
107
+
125
108
/// public default java.lang.annotation.Annotation[] java.lang.reflect.AnnotatedElement.getDeclaredAnnotationsByType(java.lang.Class)
126
109
127
- private static var getDeclaredAnnotationsByType_MethodID_9 : jmethodID ?
110
+ private static var getDeclaredAnnotationsByType_MethodID_8 : jmethodID ?
128
111
129
112
override open func getDeclaredAnnotationsByType( arg0: java_swift . JavaClass ? ) -> [ Annotation ] ! {
130
- var __args = [ jvalue] ( repeating: jvalue ( ) , count: 1 )
131
113
var __locals = [ jobject] ( )
114
+ var __args = [ jvalue] ( repeating: jvalue ( ) , count: 1 )
132
115
__args [ 0 ] = JNIType . toJava ( value: arg0, locals: & __locals )
133
- let __return = JNIMethod . CallObjectMethod ( object: javaObject, methodName: " getDeclaredAnnotationsByType " , methodSig: " (Ljava/lang/Class;)[Ljava/lang/annotation/Annotation; " , methodCache: & AnnotatedArrayTypeForward. getDeclaredAnnotationsByType_MethodID_9 , args: & __args, locals: & __locals )
134
- return JNIType . toSwift ( type: [ AnnotationForward] ( ) , from: __return )
116
+ let __return = JNIMethod . CallObjectMethod ( object: javaObject, methodName: " getDeclaredAnnotationsByType " , methodSig: " (Ljava/lang/Class;)[Ljava/lang/annotation/Annotation; " , methodCache: & AnnotatedArrayTypeForward. getDeclaredAnnotationsByType_MethodID_8 , args: & __args, locals: & __locals )
117
+ return JNIType . toSwift ( type: [ AnnotationForward ] . self , from: __return )
135
118
}
136
119
137
120
override open func getDeclaredAnnotationsByType( _ _arg0: java_swift . JavaClass ? ) -> [ Annotation ] ! {
138
121
return getDeclaredAnnotationsByType ( arg0: _arg0 )
139
122
}
140
123
141
- /// public abstract java.lang.annotation.Annotation[] java.lang.reflect.AnnotatedElement.getDeclaredAnnotations ()
124
+ /// public abstract java.lang.reflect.Type java.lang.reflect.AnnotatedType.getType ()
142
125
143
- private static var getDeclaredAnnotations_MethodID_10 : jmethodID ?
126
+ private static var getType_MethodID_9 : jmethodID ?
144
127
145
- override open func getDeclaredAnnotations( ) -> [ Annotation ] ! {
128
+ override open func getType( ) -> Type ! {
129
+ var __locals = [ jobject] ( )
146
130
var __args = [ jvalue] ( repeating: jvalue ( ) , count: 1 )
131
+ let __return = JNIMethod . CallObjectMethod ( object: javaObject, methodName: " getType " , methodSig: " ()Ljava/lang/reflect/Type; " , methodCache: & AnnotatedArrayTypeForward. getType_MethodID_9, args: & __args, locals: & __locals )
132
+ defer { JNI . DeleteLocalRef ( __return ) }
133
+ return __return != nil ? TypeForward ( javaObject: __return ) : nil
134
+ }
135
+
136
+
137
+ /// public default boolean java.lang.reflect.AnnotatedElement.isAnnotationPresent(java.lang.Class)
138
+
139
+ private static var isAnnotationPresent_MethodID_10 : jmethodID ?
140
+
141
+ override open func isAnnotationPresent( arg0: java_swift . JavaClass ? ) -> Bool {
147
142
var __locals = [ jobject] ( )
148
- let __return = JNIMethod . CallObjectMethod ( object: javaObject, methodName: " getDeclaredAnnotations " , methodSig: " ()[Ljava/lang/annotation/Annotation; " , methodCache: & AnnotatedArrayTypeForward. getDeclaredAnnotations_MethodID_10, args: & __args, locals: & __locals )
149
- return JNIType . toSwift ( type: [ AnnotationForward] ( ) , from: __return )
143
+ var __args = [ jvalue] ( repeating: jvalue ( ) , count: 1 )
144
+ __args [ 0 ] = JNIType . toJava ( value: arg0, locals: & __locals )
145
+ let __return = JNIMethod . CallBooleanMethod ( object: javaObject, methodName: " isAnnotationPresent " , methodSig: " (Ljava/lang/Class;)Z " , methodCache: & AnnotatedArrayTypeForward. isAnnotationPresent_MethodID_10, args: & __args, locals: & __locals )
146
+ return __return != jboolean ( JNI_FALSE)
150
147
}
151
148
149
+ override open func isAnnotationPresent( _ _arg0: java_swift . JavaClass ? ) -> Bool {
150
+ return isAnnotationPresent ( arg0: _arg0 )
151
+ }
152
152
153
153
}
154
154
155
-
0 commit comments