-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathGenericDeclaration.swift
More file actions
140 lines (96 loc) · 7.34 KB
/
GenericDeclaration.swift
File metadata and controls
140 lines (96 loc) · 7.34 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
import java_swift
/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
/// interface java.lang.reflect.GenericDeclaration ///
public protocol GenericDeclaration: AnnotatedElement {
/// public abstract java.lang.reflect.TypeVariable[] java.lang.reflect.GenericDeclaration.getTypeParameters()
func getTypeParameters() -> [TypeVariable]!
}
open class GenericDeclarationForward: AnnotatedElementForward, GenericDeclaration {
private static var GenericDeclarationJNIClass: jclass?
/// public abstract java.lang.annotation.Annotation java.lang.reflect.AnnotatedElement.getAnnotation(java.lang.Class)
private static var getAnnotation_MethodID_2: 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: &GenericDeclarationForward.getAnnotation_MethodID_2, 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_3: 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: &GenericDeclarationForward.getAnnotations_MethodID_3, 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_4: 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: &GenericDeclarationForward.getAnnotationsByType_MethodID_4, 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_5: 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: &GenericDeclarationForward.getDeclaredAnnotation_MethodID_5, 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_6: 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: &GenericDeclarationForward.getDeclaredAnnotations_MethodID_6, 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_7: 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: &GenericDeclarationForward.getDeclaredAnnotationsByType_MethodID_7, 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.TypeVariable[] java.lang.reflect.GenericDeclaration.getTypeParameters()
private static var getTypeParameters_MethodID_8: jmethodID?
open func getTypeParameters() -> [TypeVariable]! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getTypeParameters", methodSig: "()[Ljava/lang/reflect/TypeVariable;", methodCache: &GenericDeclarationForward.getTypeParameters_MethodID_8, args: &__args, locals: &__locals )
return JNIType.toSwift( type: [TypeVariableForward].self, from: __return )
}
/// public default boolean java.lang.reflect.AnnotatedElement.isAnnotationPresent(java.lang.Class)
private static var isAnnotationPresent_MethodID_9: 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: &GenericDeclarationForward.isAnnotationPresent_MethodID_9, args: &__args, locals: &__locals )
return __return != jboolean(JNI_FALSE)
}
override open func isAnnotationPresent( _ _arg0: java_swift.JavaClass? ) -> Bool {
return isAnnotationPresent( arg0: _arg0 )
}
}