-
Notifications
You must be signed in to change notification settings - Fork 13
/
Exception.swift
134 lines (92 loc) · 5.55 KB
/
Exception.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
/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
/// class java.lang.Exception ///
open class Exception: Throwable {
public convenience init?( casting object: JavaObject, _ file: StaticString = #file, _ line: Int = #line ) {
self.init( javaObject: nil )
object.withJavaObject {
self.javaObject = $0
}
}
private static var ExceptionJNIClass: jclass?
/// static final long java.lang.Exception.serialVersionUID
// Skipping field: true true false false false false
/// static final boolean java.lang.Throwable.$assertionsDisabled
// Skipping field: true false false false false false
/// private static final java.lang.String java.lang.Throwable.CAUSE_CAPTION
/// private static final java.lang.Throwable[] java.lang.Throwable.EMPTY_THROWABLE_ARRAY
/// private static final java.lang.String java.lang.Throwable.NULL_CAUSE_MESSAGE
/// private static final java.lang.String java.lang.Throwable.SELF_SUPPRESSION_MESSAGE
/// private static final java.lang.String java.lang.Throwable.SUPPRESSED_CAPTION
/// private static final java.util.List java.lang.Throwable.SUPPRESSED_SENTINEL
/// private static final java.lang.StackTraceElement[] java.lang.Throwable.UNASSIGNED_STACK
/// private static final long java.lang.Throwable.serialVersionUID
/// private java.lang.Throwable java.lang.Throwable.cause
/// private java.lang.String java.lang.Throwable.detailMessage
/// private java.lang.StackTraceElement[] java.lang.Throwable.stackTrace
/// private java.util.List java.lang.Throwable.suppressedExceptions
/// public java.lang.Exception()
private static var new_MethodID_1: jmethodID?
public convenience init() {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __object = JNIMethod.NewObject( className: "java/lang/Exception", classCache: &Exception.ExceptionJNIClass, methodSig: "()V", methodCache: &Exception.new_MethodID_1, args: &__args, locals: &__locals )
self.init( javaObject: __object )
JNI.DeleteLocalRef( __object )
}
/// public java.lang.Exception(java.lang.String)
private static var new_MethodID_2: jmethodID?
public convenience init( arg0: String? ) {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
let __object = JNIMethod.NewObject( className: "java/lang/Exception", classCache: &Exception.ExceptionJNIClass, methodSig: "(Ljava/lang/String;)V", methodCache: &Exception.new_MethodID_2, args: &__args, locals: &__locals )
self.init( javaObject: __object )
JNI.DeleteLocalRef( __object )
}
public convenience init( _ _arg0: String? ) {
self.init( arg0: _arg0 )
}
/// public java.lang.Exception(java.lang.String,java.lang.Throwable)
private static var new_MethodID_3: jmethodID?
public convenience init( arg0: String?, arg1: Throwable? ) {
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 __object = JNIMethod.NewObject( className: "java/lang/Exception", classCache: &Exception.ExceptionJNIClass, methodSig: "(Ljava/lang/String;Ljava/lang/Throwable;)V", methodCache: &Exception.new_MethodID_3, args: &__args, locals: &__locals )
self.init( javaObject: __object )
JNI.DeleteLocalRef( __object )
}
public convenience init( _ _arg0: String?, _ _arg1: Throwable? ) {
self.init( arg0: _arg0, arg1: _arg1 )
}
/// protected java.lang.Exception(java.lang.String,java.lang.Throwable,boolean,boolean)
private static var new_MethodID_4: jmethodID?
public convenience init( arg0: String?, arg1: Throwable?, arg2: Bool, arg3: Bool ) {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 4 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
__args[1] = JNIType.toJava( value: arg1, locals: &__locals )
__args[2] = jvalue( z: jboolean(arg2 ? JNI_TRUE : JNI_FALSE) )
__args[3] = jvalue( z: jboolean(arg3 ? JNI_TRUE : JNI_FALSE) )
let __object = JNIMethod.NewObject( className: "java/lang/Exception", classCache: &Exception.ExceptionJNIClass, methodSig: "(Ljava/lang/String;Ljava/lang/Throwable;ZZ)V", methodCache: &Exception.new_MethodID_4, args: &__args, locals: &__locals )
self.init( javaObject: __object )
JNI.DeleteLocalRef( __object )
}
public convenience init( _ _arg0: String?, _ _arg1: Throwable?, _ _arg2: Bool, _ _arg3: Bool ) {
self.init( arg0: _arg0, arg1: _arg1, arg2: _arg2, arg3: _arg3 )
}
/// public java.lang.Exception(java.lang.Throwable)
private static var new_MethodID_5: jmethodID?
public convenience init( arg0: Throwable? ) {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
let __object = JNIMethod.NewObject( className: "java/lang/Exception", classCache: &Exception.ExceptionJNIClass, methodSig: "(Ljava/lang/Throwable;)V", methodCache: &Exception.new_MethodID_5, args: &__args, locals: &__locals )
self.init( javaObject: __object )
JNI.DeleteLocalRef( __object )
}
public convenience init( _ _arg0: Throwable? ) {
self.init( arg0: _arg0 )
}
}