forked from swiftlang/swift-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGenericDeclaration.swift
More file actions
78 lines (70 loc) · 2.83 KB
/
GenericDeclaration.swift
File metadata and controls
78 lines (70 loc) · 2.83 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
// Auto-generated by Java-to-Swift wrapper generator.
import SwiftJava
import SwiftJavaJNICore
@JavaInterface("java.lang.reflect.GenericDeclaration")
public struct GenericDeclaration {
/// Java method `getTypeParameters`.
///
/// ### Java method signature
/// ```java
/// public abstract java.lang.reflect.TypeVariable<?>[] java.lang.reflect.GenericDeclaration.getTypeParameters()
/// ```
@JavaMethod
public func getTypeParameters() -> [TypeVariable<JavaObject>?]
/// Java method `isAnnotationPresent`.
///
/// ### Java method signature
/// ```java
/// public default boolean java.lang.reflect.AnnotatedElement.isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation>)
/// ```
@JavaMethod
public func isAnnotationPresent(_ arg0: JavaClass<Annotation>?) -> Bool
/// Java method `getAnnotation`.
///
/// ### Java method signature
/// ```java
/// public abstract <T extends java.lang.annotation.Annotation> T java.lang.reflect.AnnotatedElement.getAnnotation(java.lang.Class<T>)
/// ```
@JavaMethod(typeErasedResult: "T!", typeErasedResultBound: Annotation?.self)
public func getAnnotation<T: AnyJavaObject>(_ arg0: JavaClass<T>?) -> T!
/// Java method `getAnnotationsByType`.
///
/// ### Java method signature
/// ```java
/// public default <T extends java.lang.annotation.Annotation> T[] java.lang.reflect.AnnotatedElement.getAnnotationsByType(java.lang.Class<T>)
/// ```
@JavaMethod
public func getAnnotationsByType<T: AnyJavaObject>(_ arg0: JavaClass<T>?) -> [T?]
/// Java method `getAnnotations`.
///
/// ### Java method signature
/// ```java
/// public abstract java.lang.annotation.Annotation[] java.lang.reflect.AnnotatedElement.getAnnotations()
/// ```
@JavaMethod
public func getAnnotations() -> [Annotation?]
/// Java method `getDeclaredAnnotation`.
///
/// ### Java method signature
/// ```java
/// public default <T extends java.lang.annotation.Annotation> T java.lang.reflect.AnnotatedElement.getDeclaredAnnotation(java.lang.Class<T>)
/// ```
@JavaMethod(typeErasedResult: "T!", typeErasedResultBound: Annotation?.self)
public func getDeclaredAnnotation<T: AnyJavaObject>(_ arg0: JavaClass<T>?) -> T!
/// Java method `getDeclaredAnnotationsByType`.
///
/// ### Java method signature
/// ```java
/// public default <T extends java.lang.annotation.Annotation> T[] java.lang.reflect.AnnotatedElement.getDeclaredAnnotationsByType(java.lang.Class<T>)
/// ```
@JavaMethod
public func getDeclaredAnnotationsByType<T: AnyJavaObject>(_ arg0: JavaClass<T>?) -> [T?]
/// Java method `getDeclaredAnnotations`.
///
/// ### Java method signature
/// ```java
/// public abstract java.lang.annotation.Annotation[] java.lang.reflect.AnnotatedElement.getDeclaredAnnotations()
/// ```
@JavaMethod
public func getDeclaredAnnotations() -> [Annotation?]
}