-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathAnnotatedArrayType.swift
More file actions
154 lines (106 loc) · 8.12 KB
/
AnnotatedArrayType.swift
File metadata and controls
154 lines (106 loc) · 8.12 KB
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
import java_swift
/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
/// interface java.lang.reflect.AnnotatedArrayType ///
public protocol AnnotatedArrayType: AnnotatedType {
/// public abstract java.lang.reflect.AnnotatedType java.lang.reflect.AnnotatedArrayType.getAnnotatedGenericComponentType()
func getAnnotatedGenericComponentType() -> AnnotatedType!
}
open class AnnotatedArrayTypeForward: AnnotatedTypeForward, AnnotatedArrayType {
private static var AnnotatedArrayTypeJNIClass: jclass?
/// public abstract java.lang.reflect.AnnotatedType java.lang.reflect.AnnotatedArrayType.getAnnotatedGenericComponentType()
private static var getAnnotatedGenericComponentType_MethodID_2: jmethodID?
open func getAnnotatedGenericComponentType() -> AnnotatedType! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getAnnotatedGenericComponentType", methodSig: "()Ljava/lang/reflect/AnnotatedType;", methodCache: &AnnotatedArrayTypeForward.getAnnotatedGenericComponentType_MethodID_2, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? AnnotatedTypeForward( javaObject: __return ) : nil
}
/// public abstract java.lang.annotation.Annotation java.lang.reflect.AnnotatedElement.getAnnotation(java.lang.Class)
private static var getAnnotation_MethodID_3: jmethodID?
override open func getAnnotation( arg0: java_swift.JavaClass? ) -> Annotation! {
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: &AnnotatedArrayTypeForward.getAnnotation_MethodID_3, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? AnnotationForward( javaObject: __return ) : nil
}
override open func getAnnotation( _ _arg0: java_swift.JavaClass? ) -> Annotation! {
return getAnnotation( arg0: _arg0 )
}
/// public abstract java.lang.annotation.Annotation[] java.lang.reflect.AnnotatedElement.getAnnotations()
private static var getAnnotations_MethodID_4: jmethodID?
override open func getAnnotations() -> [Annotation]! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getAnnotations", methodSig: "()[Ljava/lang/annotation/Annotation;", methodCache: &AnnotatedArrayTypeForward.getAnnotations_MethodID_4, args: &__args, locals: &__locals )
return JNIType.toSwift( type: [AnnotationForward].self, from: __return )
}
/// public default java.lang.annotation.Annotation[] java.lang.reflect.AnnotatedElement.getAnnotationsByType(java.lang.Class)
private static var getAnnotationsByType_MethodID_5: jmethodID?
override open func getAnnotationsByType( arg0: java_swift.JavaClass? ) -> [Annotation]! {
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: &AnnotatedArrayTypeForward.getAnnotationsByType_MethodID_5, args: &__args, locals: &__locals )
return JNIType.toSwift( type: [AnnotationForward].self, from: __return )
}
override open func getAnnotationsByType( _ _arg0: java_swift.JavaClass? ) -> [Annotation]! {
return getAnnotationsByType( arg0: _arg0 )
}
/// public default java.lang.annotation.Annotation java.lang.reflect.AnnotatedElement.getDeclaredAnnotation(java.lang.Class)
private static var getDeclaredAnnotation_MethodID_6: jmethodID?
override open func getDeclaredAnnotation( arg0: java_swift.JavaClass? ) -> Annotation! {
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: &AnnotatedArrayTypeForward.getDeclaredAnnotation_MethodID_6, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? AnnotationForward( javaObject: __return ) : nil
}
override open func getDeclaredAnnotation( _ _arg0: java_swift.JavaClass? ) -> Annotation! {
return getDeclaredAnnotation( arg0: _arg0 )
}
/// public abstract java.lang.annotation.Annotation[] java.lang.reflect.AnnotatedElement.getDeclaredAnnotations()
private static var getDeclaredAnnotations_MethodID_7: jmethodID?
override open func getDeclaredAnnotations() -> [Annotation]! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getDeclaredAnnotations", methodSig: "()[Ljava/lang/annotation/Annotation;", methodCache: &AnnotatedArrayTypeForward.getDeclaredAnnotations_MethodID_7, args: &__args, locals: &__locals )
return JNIType.toSwift( type: [AnnotationForward].self, from: __return )
}
/// public default java.lang.annotation.Annotation[] java.lang.reflect.AnnotatedElement.getDeclaredAnnotationsByType(java.lang.Class)
private static var getDeclaredAnnotationsByType_MethodID_8: jmethodID?
override open func getDeclaredAnnotationsByType( arg0: java_swift.JavaClass? ) -> [Annotation]! {
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: &AnnotatedArrayTypeForward.getDeclaredAnnotationsByType_MethodID_8, args: &__args, locals: &__locals )
return JNIType.toSwift( type: [AnnotationForward].self, from: __return )
}
override open func getDeclaredAnnotationsByType( _ _arg0: java_swift.JavaClass? ) -> [Annotation]! {
return getDeclaredAnnotationsByType( arg0: _arg0 )
}
/// public abstract java.lang.reflect.Type java.lang.reflect.AnnotatedType.getType()
private static var getType_MethodID_9: jmethodID?
override open func getType() -> Type! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getType", methodSig: "()Ljava/lang/reflect/Type;", methodCache: &AnnotatedArrayTypeForward.getType_MethodID_9, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? TypeForward( javaObject: __return ) : nil
}
/// public default boolean java.lang.reflect.AnnotatedElement.isAnnotationPresent(java.lang.Class)
private static var isAnnotationPresent_MethodID_10: jmethodID?
override open func isAnnotationPresent( arg0: java_swift.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: &AnnotatedArrayTypeForward.isAnnotationPresent_MethodID_10, args: &__args, locals: &__locals )
return __return != jboolean(JNI_FALSE)
}
override open func isAnnotationPresent( _ _arg0: java_swift.JavaClass? ) -> Bool {
return isAnnotationPresent( arg0: _arg0 )
}
}