diff --git a/.classpath b/.classpath
index b15ccea..40e38df 100644
--- a/.classpath
+++ b/.classpath
@@ -1,6 +1,6 @@
-
+
diff --git a/.gitignore b/.gitignore
index d7bf9a9..5f59324 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,5 @@
*.class
build/
-android*
xcuserdata
parameters/com
parameters/org
@@ -8,3 +7,4 @@ parameters/java
parameters/javax
parameters/classes
parameters/launcher
+/bin/
diff --git a/.gitmodules b/.gitmodules
index 2826992..3c18f58 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -31,3 +31,24 @@
[submodule "com_apple"]
path = com_apple
url = https://github.com/SwiftJava/com_apple.git
+[submodule "swift-android-kotlin"]
+ path = swift-android-kotlin
+ url = https://github.com/SwiftJava/swift-android-kotlin
+[submodule "android_toolchain"]
+ path = android_toolchain
+ url = https://github.com/SwiftJava/android_toolchain
+[submodule "swift-android-injection"]
+ path = swift-android-injection
+ url = https://github.com/SwiftJava/swift-android-injection.git
+[submodule "Injection4Android"]
+ path = Injection4Android
+ url = https://github.com/SwiftJava/Injection4Android.git
+[submodule "swift-android-Clibadder"]
+ path = swift-android-Clibadder
+ url = https://github.com/SwiftJava/swift-android-Clibadder
+[submodule "swift-android-opengl"]
+ path = swift-android-opengl
+ url = https://github.com/SwiftJava/swift-android-opengl
+[submodule "swift-android-zlib"]
+ path = swift-android-zlib
+ url = https://github.com/SwiftJava/swift-android-zlib
diff --git a/CJavaVM b/CJavaVM
index c2b3a49..654df50 160000
--- a/CJavaVM
+++ b/CJavaVM
@@ -1 +1 @@
-Subproject commit c2b3a497e5ebe4cfdf979f70cb2de1c2653e3495
+Subproject commit 654df50b44ba88e7382f6f5cc8eb2aa5179f544d
diff --git a/Injection4Android b/Injection4Android
new file mode 160000
index 0000000..1f8e8d3
--- /dev/null
+++ b/Injection4Android
@@ -0,0 +1 @@
+Subproject commit 1f8e8d3fe85dbf1ccc1e3ada8dd58197ed242d48
diff --git a/JDBC/AppDelegate.swift b/JDBC/AppDelegate.swift
index f1666c3..17d44f3 100644
--- a/JDBC/AppDelegate.swift
+++ b/JDBC/AppDelegate.swift
@@ -62,10 +62,10 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSTableViewDataSource, NSTab
}
// Use Thread class to run in background to get the correct class loader & classpath
- Thread( {
+ JavaThread( {
do {
- if try Class.forName( self.driverClass.stringValue ) == nil {
+ if try JavaClass.forName( self.driverClass.stringValue ) == nil {
return self.alert( "Could not load driver class" );
}
@@ -77,7 +77,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSTableViewDataSource, NSTab
else { return self.alert( "Unable to connect using information supplied, consult console" ) }
let statement = try connection.createStatement()!
- if !(try statement.execute( self.SQL.stringValue )) {
+ if !(try statement.execute( sql: self.SQL.stringValue )) {
return self.alert( "Could not execute SQL: \(self.SQL.stringValue)" );
}
@@ -88,13 +88,13 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSTableViewDataSource, NSTab
if let result = try statement.getResultSet(), let md = try result.getMetaData() {
let ncols = try md.getColumnCount()
for i in 1...ncols {
- model.columnNames.append( try md.getColumnName(i) ?? "Column \(i)" )
+ model.columnNames.append( try md.getColumnName(column: i) ?? "Column \(i)" )
}
while try result.next() {
var row = [String]()
for i in 1...ncols {
- row.append( try result.getString( i ) ?? "null" )
+ row.append( try result.getString( columnIndex: i ) ?? "null" )
}
model.data.append( row )
}
@@ -114,7 +114,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSTableViewDataSource, NSTab
for i in 0.. [Int8]!
- func byteArrayMethod( _ _arg: [Int8]? ) -> [Int8]!
-
- /// public abstract byte[][] com.jh.SwiftHelloTest$TestListener.byte2dArrayMethod(byte[][])
-
- func byte2dArrayMethod( arg: [[Int8]]? ) -> [[Int8]]!
- func byte2dArrayMethod( _ _arg: [[Int8]]? ) -> [[Int8]]!
-
- /// public abstract boolean com.jh.SwiftHelloTest$TestListener.booleanMethod(boolean)
-
- func booleanMethod( arg: Bool ) -> Bool
- func booleanMethod( _ _arg: Bool ) -> Bool
-
- /// public abstract boolean[] com.jh.SwiftHelloTest$TestListener.booleanArrayMethod(boolean[])
-
- func booleanArrayMethod( arg: [Bool]? ) -> [Bool]!
- func booleanArrayMethod( _ _arg: [Bool]? ) -> [Bool]!
-
- /// public abstract boolean[][] com.jh.SwiftHelloTest$TestListener.boolean2dArrayMethod(boolean[][])
-
- func boolean2dArrayMethod( arg: [[Bool]]? ) -> [[Bool]]!
- func boolean2dArrayMethod( _ _arg: [[Bool]]? ) -> [[Bool]]!
-
- /// public abstract byte com.jh.SwiftHelloTest$TestListener.byteMethod(byte)
-
- func byteMethod( arg: Int8 ) -> Int8
- func byteMethod( _ _arg: Int8 ) -> Int8
-
- /// public abstract char com.jh.SwiftHelloTest$TestListener.charMethod(char)
-
- func charMethod( arg: UInt16 ) -> UInt16
- func charMethod( _ _arg: UInt16 ) -> UInt16
-
- /// public abstract char[] com.jh.SwiftHelloTest$TestListener.charArrayMethod(char[])
-
- func charArrayMethod( arg: [UInt16]? ) -> [UInt16]!
- func charArrayMethod( _ _arg: [UInt16]? ) -> [UInt16]!
-
- /// public abstract char[][] com.jh.SwiftHelloTest$TestListener.char2dArrayMethod(char[][])
-
- func char2dArrayMethod( arg: [[UInt16]]? ) -> [[UInt16]]!
- func char2dArrayMethod( _ _arg: [[UInt16]]? ) -> [[UInt16]]!
-
- /// public abstract short com.jh.SwiftHelloTest$TestListener.shortMethod(short)
-
- func shortMethod( arg: Int16 ) -> Int16
- func shortMethod( _ _arg: Int16 ) -> Int16
-
- /// public abstract short[] com.jh.SwiftHelloTest$TestListener.shortArrayMethod(short[])
-
- func shortArrayMethod( arg: [Int16]? ) -> [Int16]!
- func shortArrayMethod( _ _arg: [Int16]? ) -> [Int16]!
-
- /// public abstract short[][] com.jh.SwiftHelloTest$TestListener.short2dArrayMethod(short[][])
-
- func short2dArrayMethod( arg: [[Int16]]? ) -> [[Int16]]!
- func short2dArrayMethod( _ _arg: [[Int16]]? ) -> [[Int16]]!
-
- /// public abstract int com.jh.SwiftHelloTest$TestListener.intMethod(int)
-
- func intMethod( arg: Int ) -> Int
- func intMethod( _ _arg: Int ) -> Int
-
- /// public abstract int[] com.jh.SwiftHelloTest$TestListener.intArrayMethod(int[])
-
- func intArrayMethod( arg: [Int32]? ) -> [Int32]!
- func intArrayMethod( _ _arg: [Int32]? ) -> [Int32]!
-
- /// public abstract int[][] com.jh.SwiftHelloTest$TestListener.int2dArrayMethod(int[][])
-
- func int2dArrayMethod( arg: [[Int32]]? ) -> [[Int32]]!
- func int2dArrayMethod( _ _arg: [[Int32]]? ) -> [[Int32]]!
-
- /// public abstract long com.jh.SwiftHelloTest$TestListener.longMethod(long)
-
- func longMethod( arg: Int64 ) -> Int64
- func longMethod( _ _arg: Int64 ) -> Int64
-
- /// public abstract long[] com.jh.SwiftHelloTest$TestListener.longArrayMethod(long[])
-
- func longArrayMethod( arg: [Int64]? ) -> [Int64]!
- func longArrayMethod( _ _arg: [Int64]? ) -> [Int64]!
-
- /// public abstract long[][] com.jh.SwiftHelloTest$TestListener.long2dArrayMethod(long[][])
-
- func long2dArrayMethod( arg: [[Int64]]? ) -> [[Int64]]!
- func long2dArrayMethod( _ _arg: [[Int64]]? ) -> [[Int64]]!
-
- /// public abstract float com.jh.SwiftHelloTest$TestListener.floatMethod(float)
-
- func floatMethod( arg: Float ) -> Float
- func floatMethod( _ _arg: Float ) -> Float
-
- /// public abstract float[] com.jh.SwiftHelloTest$TestListener.floatArrayMethod(float[])
-
- func floatArrayMethod( arg: [Float]? ) -> [Float]!
- func floatArrayMethod( _ _arg: [Float]? ) -> [Float]!
-
- /// public abstract float[][] com.jh.SwiftHelloTest$TestListener.float2dArrayMethod(float[][])
-
- func float2dArrayMethod( arg: [[Float]]? ) -> [[Float]]!
- func float2dArrayMethod( _ _arg: [[Float]]? ) -> [[Float]]!
-
- /// public abstract double com.jh.SwiftHelloTest$TestListener.doubleMethod(double)
-
- func doubleMethod( arg: Double ) -> Double
- func doubleMethod( _ _arg: Double ) -> Double
-
- /// public abstract double[] com.jh.SwiftHelloTest$TestListener.doubleArrayMethod(double[])
-
- func doubleArrayMethod( arg: [Double]? ) -> [Double]!
- func doubleArrayMethod( _ _arg: [Double]? ) -> [Double]!
-
- /// public abstract double[][] com.jh.SwiftHelloTest$TestListener.double2dArrayMethod(double[][])
-
- func double2dArrayMethod( arg: [[Double]]? ) -> [[Double]]!
- func double2dArrayMethod( _ _arg: [[Double]]? ) -> [[Double]]!
-
- /// public abstract java.lang.String com.jh.SwiftHelloTest$TestListener.StringMethod(java.lang.String)
-
- func StringMethod( arg: String? ) -> String!
- func StringMethod( _ _arg: String? ) -> String!
-
- /// public abstract java.lang.String[] com.jh.SwiftHelloTest$TestListener.StringArrayMethod(java.lang.String[])
-
- func StringArrayMethod( arg: [String]? ) -> [String]!
- func StringArrayMethod( _ _arg: [String]? ) -> [String]!
-
- /// public abstract java.lang.String[][] com.jh.SwiftHelloTest$TestListener.String2dArrayMethod(java.lang.String[][])
-
- func String2dArrayMethod( arg: [[String]]? ) -> [[String]]!
- func String2dArrayMethod( _ _arg: [[String]]? ) -> [[String]]!
-
-}
-
-open class SwiftHelloTest_TestListenerForward: JNIObjectForward, SwiftHelloTest_TestListener {
-
- private static var SwiftHelloTest_TestListenerJNIClass: jclass?
-
- /// public abstract byte[] com.jh.SwiftHelloTest$TestListener.byteArrayMethod(byte[])
-
- private static var byteArrayMethod_MethodID_28: jmethodID?
-
- open func byteArrayMethod( arg: [Int8]? ) -> [Int8]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "byteArrayMethod", methodSig: "([B)[B", methodCache: &SwiftHelloTest_TestListenerForward.byteArrayMethod_MethodID_28, args: &__args, locals: &__locals )
- return JNIType.decode( type: [Int8](), from: __return )
- }
-
- open func byteArrayMethod( _ _arg: [Int8]? ) -> [Int8]! {
- return byteArrayMethod( arg: _arg )
- }
-
- /// public abstract byte[][] com.jh.SwiftHelloTest$TestListener.byte2dArrayMethod(byte[][])
-
- private static var byte2dArrayMethod_MethodID_29: jmethodID?
-
- open func byte2dArrayMethod( arg: [[Int8]]? ) -> [[Int8]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "byte2dArrayMethod", methodSig: "([[B)[[B", methodCache: &SwiftHelloTest_TestListenerForward.byte2dArrayMethod_MethodID_29, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[Int8]](), from: __return )
- }
-
- open func byte2dArrayMethod( _ _arg: [[Int8]]? ) -> [[Int8]]! {
- return byte2dArrayMethod( arg: _arg )
- }
-
- /// public abstract boolean com.jh.SwiftHelloTest$TestListener.booleanMethod(boolean)
-
- private static var booleanMethod_MethodID_30: jmethodID?
-
- open func booleanMethod( arg: Bool ) -> Bool {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "booleanMethod", methodSig: "(Z)Z", methodCache: &SwiftHelloTest_TestListenerForward.booleanMethod_MethodID_30, args: &__args, locals: &__locals )
- return JNIType.decode( type: Bool(), from: __return )
- }
-
- open func booleanMethod( _ _arg: Bool ) -> Bool {
- return booleanMethod( arg: _arg )
- }
-
- /// public abstract boolean[] com.jh.SwiftHelloTest$TestListener.booleanArrayMethod(boolean[])
-
- private static var booleanArrayMethod_MethodID_31: jmethodID?
-
- open func booleanArrayMethod( arg: [Bool]? ) -> [Bool]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "booleanArrayMethod", methodSig: "([Z)[Z", methodCache: &SwiftHelloTest_TestListenerForward.booleanArrayMethod_MethodID_31, args: &__args, locals: &__locals )
- return JNIType.decode( type: [Bool](), from: __return )
- }
-
- open func booleanArrayMethod( _ _arg: [Bool]? ) -> [Bool]! {
- return booleanArrayMethod( arg: _arg )
- }
-
- /// public abstract boolean[][] com.jh.SwiftHelloTest$TestListener.boolean2dArrayMethod(boolean[][])
-
- private static var boolean2dArrayMethod_MethodID_32: jmethodID?
-
- open func boolean2dArrayMethod( arg: [[Bool]]? ) -> [[Bool]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "boolean2dArrayMethod", methodSig: "([[Z)[[Z", methodCache: &SwiftHelloTest_TestListenerForward.boolean2dArrayMethod_MethodID_32, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[Bool]](), from: __return )
- }
-
- open func boolean2dArrayMethod( _ _arg: [[Bool]]? ) -> [[Bool]]! {
- return boolean2dArrayMethod( arg: _arg )
- }
-
- /// public abstract byte com.jh.SwiftHelloTest$TestListener.byteMethod(byte)
-
- private static var byteMethod_MethodID_33: jmethodID?
-
- open func byteMethod( arg: Int8 ) -> Int8 {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallByteMethod( object: javaObject, methodName: "byteMethod", methodSig: "(B)B", methodCache: &SwiftHelloTest_TestListenerForward.byteMethod_MethodID_33, args: &__args, locals: &__locals )
- return JNIType.decode( type: Int8(), from: __return )
- }
-
- open func byteMethod( _ _arg: Int8 ) -> Int8 {
- return byteMethod( arg: _arg )
- }
-
- /// public abstract char com.jh.SwiftHelloTest$TestListener.charMethod(char)
-
- private static var charMethod_MethodID_34: jmethodID?
-
- open func charMethod( arg: UInt16 ) -> UInt16 {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallCharMethod( object: javaObject, methodName: "charMethod", methodSig: "(C)C", methodCache: &SwiftHelloTest_TestListenerForward.charMethod_MethodID_34, args: &__args, locals: &__locals )
- return JNIType.decode( type: UInt16(), from: __return )
- }
-
- open func charMethod( _ _arg: UInt16 ) -> UInt16 {
- return charMethod( arg: _arg )
- }
-
- /// public abstract char[] com.jh.SwiftHelloTest$TestListener.charArrayMethod(char[])
-
- private static var charArrayMethod_MethodID_35: jmethodID?
-
- open func charArrayMethod( arg: [UInt16]? ) -> [UInt16]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "charArrayMethod", methodSig: "([C)[C", methodCache: &SwiftHelloTest_TestListenerForward.charArrayMethod_MethodID_35, args: &__args, locals: &__locals )
- return JNIType.decode( type: [UInt16](), from: __return )
- }
-
- open func charArrayMethod( _ _arg: [UInt16]? ) -> [UInt16]! {
- return charArrayMethod( arg: _arg )
- }
-
- /// public abstract char[][] com.jh.SwiftHelloTest$TestListener.char2dArrayMethod(char[][])
-
- private static var char2dArrayMethod_MethodID_36: jmethodID?
-
- open func char2dArrayMethod( arg: [[UInt16]]? ) -> [[UInt16]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "char2dArrayMethod", methodSig: "([[C)[[C", methodCache: &SwiftHelloTest_TestListenerForward.char2dArrayMethod_MethodID_36, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[UInt16]](), from: __return )
- }
-
- open func char2dArrayMethod( _ _arg: [[UInt16]]? ) -> [[UInt16]]! {
- return char2dArrayMethod( arg: _arg )
- }
-
- /// public abstract short com.jh.SwiftHelloTest$TestListener.shortMethod(short)
-
- private static var shortMethod_MethodID_37: jmethodID?
-
- open func shortMethod( arg: Int16 ) -> Int16 {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallShortMethod( object: javaObject, methodName: "shortMethod", methodSig: "(S)S", methodCache: &SwiftHelloTest_TestListenerForward.shortMethod_MethodID_37, args: &__args, locals: &__locals )
- return JNIType.decode( type: Int16(), from: __return )
- }
-
- open func shortMethod( _ _arg: Int16 ) -> Int16 {
- return shortMethod( arg: _arg )
- }
-
- /// public abstract short[] com.jh.SwiftHelloTest$TestListener.shortArrayMethod(short[])
-
- private static var shortArrayMethod_MethodID_38: jmethodID?
-
- open func shortArrayMethod( arg: [Int16]? ) -> [Int16]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "shortArrayMethod", methodSig: "([S)[S", methodCache: &SwiftHelloTest_TestListenerForward.shortArrayMethod_MethodID_38, args: &__args, locals: &__locals )
- return JNIType.decode( type: [Int16](), from: __return )
- }
-
- open func shortArrayMethod( _ _arg: [Int16]? ) -> [Int16]! {
- return shortArrayMethod( arg: _arg )
- }
-
- /// public abstract short[][] com.jh.SwiftHelloTest$TestListener.short2dArrayMethod(short[][])
-
- private static var short2dArrayMethod_MethodID_39: jmethodID?
-
- open func short2dArrayMethod( arg: [[Int16]]? ) -> [[Int16]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "short2dArrayMethod", methodSig: "([[S)[[S", methodCache: &SwiftHelloTest_TestListenerForward.short2dArrayMethod_MethodID_39, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[Int16]](), from: __return )
- }
-
- open func short2dArrayMethod( _ _arg: [[Int16]]? ) -> [[Int16]]! {
- return short2dArrayMethod( arg: _arg )
- }
-
- /// public abstract int com.jh.SwiftHelloTest$TestListener.intMethod(int)
-
- private static var intMethod_MethodID_40: jmethodID?
-
- open func intMethod( arg: Int ) -> Int {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "intMethod", methodSig: "(I)I", methodCache: &SwiftHelloTest_TestListenerForward.intMethod_MethodID_40, args: &__args, locals: &__locals )
- return JNIType.decode( type: Int(), from: __return )
- }
-
- open func intMethod( _ _arg: Int ) -> Int {
- return intMethod( arg: _arg )
- }
-
- /// public abstract int[] com.jh.SwiftHelloTest$TestListener.intArrayMethod(int[])
-
- private static var intArrayMethod_MethodID_41: jmethodID?
-
- open func intArrayMethod( arg: [Int32]? ) -> [Int32]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "intArrayMethod", methodSig: "([I)[I", methodCache: &SwiftHelloTest_TestListenerForward.intArrayMethod_MethodID_41, args: &__args, locals: &__locals )
- return JNIType.decode( type: [Int32](), from: __return )
- }
-
- open func intArrayMethod( _ _arg: [Int32]? ) -> [Int32]! {
- return intArrayMethod( arg: _arg )
- }
-
- /// public abstract int[][] com.jh.SwiftHelloTest$TestListener.int2dArrayMethod(int[][])
-
- private static var int2dArrayMethod_MethodID_42: jmethodID?
-
- open func int2dArrayMethod( arg: [[Int32]]? ) -> [[Int32]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "int2dArrayMethod", methodSig: "([[I)[[I", methodCache: &SwiftHelloTest_TestListenerForward.int2dArrayMethod_MethodID_42, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[Int32]](), from: __return )
- }
-
- open func int2dArrayMethod( _ _arg: [[Int32]]? ) -> [[Int32]]! {
- return int2dArrayMethod( arg: _arg )
- }
-
- /// public abstract long com.jh.SwiftHelloTest$TestListener.longMethod(long)
-
- private static var longMethod_MethodID_43: jmethodID?
-
- open func longMethod( arg: Int64 ) -> Int64 {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallLongMethod( object: javaObject, methodName: "longMethod", methodSig: "(J)J", methodCache: &SwiftHelloTest_TestListenerForward.longMethod_MethodID_43, args: &__args, locals: &__locals )
- return JNIType.decode( type: Int64(), from: __return )
- }
-
- open func longMethod( _ _arg: Int64 ) -> Int64 {
- return longMethod( arg: _arg )
- }
-
- /// public abstract long[] com.jh.SwiftHelloTest$TestListener.longArrayMethod(long[])
-
- private static var longArrayMethod_MethodID_44: jmethodID?
-
- open func longArrayMethod( arg: [Int64]? ) -> [Int64]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "longArrayMethod", methodSig: "([J)[J", methodCache: &SwiftHelloTest_TestListenerForward.longArrayMethod_MethodID_44, args: &__args, locals: &__locals )
- return JNIType.decode( type: [Int64](), from: __return )
- }
-
- open func longArrayMethod( _ _arg: [Int64]? ) -> [Int64]! {
- return longArrayMethod( arg: _arg )
- }
-
- /// public abstract long[][] com.jh.SwiftHelloTest$TestListener.long2dArrayMethod(long[][])
-
- private static var long2dArrayMethod_MethodID_45: jmethodID?
-
- open func long2dArrayMethod( arg: [[Int64]]? ) -> [[Int64]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "long2dArrayMethod", methodSig: "([[J)[[J", methodCache: &SwiftHelloTest_TestListenerForward.long2dArrayMethod_MethodID_45, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[Int64]](), from: __return )
- }
-
- open func long2dArrayMethod( _ _arg: [[Int64]]? ) -> [[Int64]]! {
- return long2dArrayMethod( arg: _arg )
- }
-
- /// public abstract float com.jh.SwiftHelloTest$TestListener.floatMethod(float)
-
- private static var floatMethod_MethodID_46: jmethodID?
-
- open func floatMethod( arg: Float ) -> Float {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallFloatMethod( object: javaObject, methodName: "floatMethod", methodSig: "(F)F", methodCache: &SwiftHelloTest_TestListenerForward.floatMethod_MethodID_46, args: &__args, locals: &__locals )
- return JNIType.decode( type: Float(), from: __return )
- }
-
- open func floatMethod( _ _arg: Float ) -> Float {
- return floatMethod( arg: _arg )
- }
-
- /// public abstract float[] com.jh.SwiftHelloTest$TestListener.floatArrayMethod(float[])
-
- private static var floatArrayMethod_MethodID_47: jmethodID?
-
- open func floatArrayMethod( arg: [Float]? ) -> [Float]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "floatArrayMethod", methodSig: "([F)[F", methodCache: &SwiftHelloTest_TestListenerForward.floatArrayMethod_MethodID_47, args: &__args, locals: &__locals )
- return JNIType.decode( type: [Float](), from: __return )
- }
-
- open func floatArrayMethod( _ _arg: [Float]? ) -> [Float]! {
- return floatArrayMethod( arg: _arg )
- }
-
- /// public abstract float[][] com.jh.SwiftHelloTest$TestListener.float2dArrayMethod(float[][])
-
- private static var float2dArrayMethod_MethodID_48: jmethodID?
-
- open func float2dArrayMethod( arg: [[Float]]? ) -> [[Float]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "float2dArrayMethod", methodSig: "([[F)[[F", methodCache: &SwiftHelloTest_TestListenerForward.float2dArrayMethod_MethodID_48, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[Float]](), from: __return )
- }
-
- open func float2dArrayMethod( _ _arg: [[Float]]? ) -> [[Float]]! {
- return float2dArrayMethod( arg: _arg )
- }
-
- /// public abstract double com.jh.SwiftHelloTest$TestListener.doubleMethod(double)
-
- private static var doubleMethod_MethodID_49: jmethodID?
-
- open func doubleMethod( arg: Double ) -> Double {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallDoubleMethod( object: javaObject, methodName: "doubleMethod", methodSig: "(D)D", methodCache: &SwiftHelloTest_TestListenerForward.doubleMethod_MethodID_49, args: &__args, locals: &__locals )
- return JNIType.decode( type: Double(), from: __return )
- }
-
- open func doubleMethod( _ _arg: Double ) -> Double {
- return doubleMethod( arg: _arg )
- }
-
- /// public abstract double[] com.jh.SwiftHelloTest$TestListener.doubleArrayMethod(double[])
-
- private static var doubleArrayMethod_MethodID_50: jmethodID?
-
- open func doubleArrayMethod( arg: [Double]? ) -> [Double]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "doubleArrayMethod", methodSig: "([D)[D", methodCache: &SwiftHelloTest_TestListenerForward.doubleArrayMethod_MethodID_50, args: &__args, locals: &__locals )
- return JNIType.decode( type: [Double](), from: __return )
- }
-
- open func doubleArrayMethod( _ _arg: [Double]? ) -> [Double]! {
- return doubleArrayMethod( arg: _arg )
- }
-
- /// public abstract double[][] com.jh.SwiftHelloTest$TestListener.double2dArrayMethod(double[][])
-
- private static var double2dArrayMethod_MethodID_51: jmethodID?
-
- open func double2dArrayMethod( arg: [[Double]]? ) -> [[Double]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "double2dArrayMethod", methodSig: "([[D)[[D", methodCache: &SwiftHelloTest_TestListenerForward.double2dArrayMethod_MethodID_51, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[Double]](), from: __return )
- }
-
- open func double2dArrayMethod( _ _arg: [[Double]]? ) -> [[Double]]! {
- return double2dArrayMethod( arg: _arg )
- }
-
- /// public abstract java.lang.String com.jh.SwiftHelloTest$TestListener.StringMethod(java.lang.String)
-
- private static var StringMethod_MethodID_52: jmethodID?
-
- open func StringMethod( arg: String? ) -> String! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "StringMethod", methodSig: "(Ljava/lang/String;)Ljava/lang/String;", methodCache: &SwiftHelloTest_TestListenerForward.StringMethod_MethodID_52, args: &__args, locals: &__locals )
- return JNIType.decode( type: String(), from: __return )
- }
-
- open func StringMethod( _ _arg: String? ) -> String! {
- return StringMethod( arg: _arg )
- }
-
- /// public abstract java.lang.String[] com.jh.SwiftHelloTest$TestListener.StringArrayMethod(java.lang.String[])
-
- private static var StringArrayMethod_MethodID_53: jmethodID?
-
- open func StringArrayMethod( arg: [String]? ) -> [String]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "StringArrayMethod", methodSig: "([Ljava/lang/String;)[Ljava/lang/String;", methodCache: &SwiftHelloTest_TestListenerForward.StringArrayMethod_MethodID_53, args: &__args, locals: &__locals )
- return JNIType.decode( type: [String](), from: __return )
- }
-
- open func StringArrayMethod( _ _arg: [String]? ) -> [String]! {
- return StringArrayMethod( arg: _arg )
- }
-
- /// public abstract java.lang.String[][] com.jh.SwiftHelloTest$TestListener.String2dArrayMethod(java.lang.String[][])
-
- private static var String2dArrayMethod_MethodID_54: jmethodID?
-
- open func String2dArrayMethod( arg: [[String]]? ) -> [[String]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "String2dArrayMethod", methodSig: "([[Ljava/lang/String;)[[Ljava/lang/String;", methodCache: &SwiftHelloTest_TestListenerForward.String2dArrayMethod_MethodID_54, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[String]](), from: __return )
- }
-
- open func String2dArrayMethod( _ _arg: [[String]]? ) -> [[String]]! {
- return String2dArrayMethod( arg: _arg )
- }
-
-}
-
-
-private typealias SwiftHelloTest_TestListener_byteArrayMethod_0_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jobject? ) -> jobject?
-
-private func SwiftHelloTest_TestListener_byteArrayMethod_0( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ arg: jobject? ) -> jobject? {
- let __return = SwiftHelloTest_TestListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).byteArrayMethod( JNIType.decode( type: [Int8](), from: arg ) )
- return JNIType.encode( value: __return, locals: nil ).l
-}
-
-private typealias SwiftHelloTest_TestListener_byte2dArrayMethod_1_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jobject? ) -> jobject?
-
-private func SwiftHelloTest_TestListener_byte2dArrayMethod_1( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ arg: jobject? ) -> jobject? {
- let __return = SwiftHelloTest_TestListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).byte2dArrayMethod( JNIType.decode( type: [[Int8]](), from: arg ) )
- return JNIType.encode( value: __return, locals: nil ).l
-}
-
-private typealias SwiftHelloTest_TestListener_booleanMethod_2_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jboolean ) -> jboolean
-
-private func SwiftHelloTest_TestListener_booleanMethod_2( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ arg: jboolean ) -> jboolean {
- let __return = SwiftHelloTest_TestListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).booleanMethod( JNIType.decode( type: Bool(), from: arg ) )
- return JNIType.encode( value: __return, locals: nil ).z
-}
-
-private typealias SwiftHelloTest_TestListener_booleanArrayMethod_3_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jobject? ) -> jobject?
-
-private func SwiftHelloTest_TestListener_booleanArrayMethod_3( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ arg: jobject? ) -> jobject? {
- let __return = SwiftHelloTest_TestListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).booleanArrayMethod( JNIType.decode( type: [Bool](), from: arg ) )
- return JNIType.encode( value: __return, locals: nil ).l
-}
-
-private typealias SwiftHelloTest_TestListener_boolean2dArrayMethod_4_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jobject? ) -> jobject?
-
-private func SwiftHelloTest_TestListener_boolean2dArrayMethod_4( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ arg: jobject? ) -> jobject? {
- let __return = SwiftHelloTest_TestListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).boolean2dArrayMethod( JNIType.decode( type: [[Bool]](), from: arg ) )
- return JNIType.encode( value: __return, locals: nil ).l
-}
-
-private typealias SwiftHelloTest_TestListener_byteMethod_5_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jbyte ) -> jbyte
-
-private func SwiftHelloTest_TestListener_byteMethod_5( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ arg: jbyte ) -> jbyte {
- let __return = SwiftHelloTest_TestListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).byteMethod( JNIType.decode( type: Int8(), from: arg ) )
- return JNIType.encode( value: __return, locals: nil ).b
-}
-
-private typealias SwiftHelloTest_TestListener_charMethod_6_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jchar ) -> jchar
-
-private func SwiftHelloTest_TestListener_charMethod_6( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ arg: jchar ) -> jchar {
- let __return = SwiftHelloTest_TestListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).charMethod( JNIType.decode( type: UInt16(), from: arg ) )
- return JNIType.encode( value: __return, locals: nil ).c
-}
-
-private typealias SwiftHelloTest_TestListener_charArrayMethod_7_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jobject? ) -> jobject?
-
-private func SwiftHelloTest_TestListener_charArrayMethod_7( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ arg: jobject? ) -> jobject? {
- let __return = SwiftHelloTest_TestListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).charArrayMethod( JNIType.decode( type: [UInt16](), from: arg ) )
- return JNIType.encode( value: __return, locals: nil ).l
-}
-
-private typealias SwiftHelloTest_TestListener_char2dArrayMethod_8_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jobject? ) -> jobject?
-
-private func SwiftHelloTest_TestListener_char2dArrayMethod_8( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ arg: jobject? ) -> jobject? {
- let __return = SwiftHelloTest_TestListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).char2dArrayMethod( JNIType.decode( type: [[UInt16]](), from: arg ) )
- return JNIType.encode( value: __return, locals: nil ).l
-}
-
-private typealias SwiftHelloTest_TestListener_shortMethod_9_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jshort ) -> jshort
-
-private func SwiftHelloTest_TestListener_shortMethod_9( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ arg: jshort ) -> jshort {
- let __return = SwiftHelloTest_TestListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).shortMethod( JNIType.decode( type: Int16(), from: arg ) )
- return JNIType.encode( value: __return, locals: nil ).s
-}
-
-private typealias SwiftHelloTest_TestListener_shortArrayMethod_10_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jobject? ) -> jobject?
-
-private func SwiftHelloTest_TestListener_shortArrayMethod_10( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ arg: jobject? ) -> jobject? {
- let __return = SwiftHelloTest_TestListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).shortArrayMethod( JNIType.decode( type: [Int16](), from: arg ) )
- return JNIType.encode( value: __return, locals: nil ).l
-}
-
-private typealias SwiftHelloTest_TestListener_short2dArrayMethod_11_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jobject? ) -> jobject?
-
-private func SwiftHelloTest_TestListener_short2dArrayMethod_11( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ arg: jobject? ) -> jobject? {
- let __return = SwiftHelloTest_TestListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).short2dArrayMethod( JNIType.decode( type: [[Int16]](), from: arg ) )
- return JNIType.encode( value: __return, locals: nil ).l
-}
-
-private typealias SwiftHelloTest_TestListener_intMethod_12_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jint ) -> jint
-
-private func SwiftHelloTest_TestListener_intMethod_12( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ arg: jint ) -> jint {
- let __return = SwiftHelloTest_TestListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).intMethod( JNIType.decode( type: Int(), from: arg ) )
- return JNIType.encode( value: __return, locals: nil ).i
-}
-
-private typealias SwiftHelloTest_TestListener_intArrayMethod_13_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jobject? ) -> jobject?
-
-private func SwiftHelloTest_TestListener_intArrayMethod_13( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ arg: jobject? ) -> jobject? {
- let __return = SwiftHelloTest_TestListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).intArrayMethod( JNIType.decode( type: [Int32](), from: arg ) )
- return JNIType.encode( value: __return, locals: nil ).l
-}
-
-private typealias SwiftHelloTest_TestListener_int2dArrayMethod_14_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jobject? ) -> jobject?
-
-private func SwiftHelloTest_TestListener_int2dArrayMethod_14( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ arg: jobject? ) -> jobject? {
- let __return = SwiftHelloTest_TestListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).int2dArrayMethod( JNIType.decode( type: [[Int32]](), from: arg ) )
- return JNIType.encode( value: __return, locals: nil ).l
-}
-
-private typealias SwiftHelloTest_TestListener_longMethod_15_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong ) -> jlong
-
-private func SwiftHelloTest_TestListener_longMethod_15( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ arg: jlong ) -> jlong {
- let __return = SwiftHelloTest_TestListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).longMethod( JNIType.decode( type: Int64(), from: arg ) )
- return JNIType.encode( value: __return, locals: nil ).j
-}
-
-private typealias SwiftHelloTest_TestListener_longArrayMethod_16_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jobject? ) -> jobject?
-
-private func SwiftHelloTest_TestListener_longArrayMethod_16( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ arg: jobject? ) -> jobject? {
- let __return = SwiftHelloTest_TestListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).longArrayMethod( JNIType.decode( type: [Int64](), from: arg ) )
- return JNIType.encode( value: __return, locals: nil ).l
-}
-
-private typealias SwiftHelloTest_TestListener_long2dArrayMethod_17_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jobject? ) -> jobject?
-
-private func SwiftHelloTest_TestListener_long2dArrayMethod_17( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ arg: jobject? ) -> jobject? {
- let __return = SwiftHelloTest_TestListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).long2dArrayMethod( JNIType.decode( type: [[Int64]](), from: arg ) )
- return JNIType.encode( value: __return, locals: nil ).l
-}
-
-private typealias SwiftHelloTest_TestListener_floatMethod_18_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jfloat ) -> jfloat
-
-private func SwiftHelloTest_TestListener_floatMethod_18( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ arg: jfloat ) -> jfloat {
- let __return = SwiftHelloTest_TestListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).floatMethod( JNIType.decode( type: Float(), from: arg ) )
- return JNIType.encode( value: __return, locals: nil ).f
-}
-
-private typealias SwiftHelloTest_TestListener_floatArrayMethod_19_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jobject? ) -> jobject?
-
-private func SwiftHelloTest_TestListener_floatArrayMethod_19( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ arg: jobject? ) -> jobject? {
- let __return = SwiftHelloTest_TestListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).floatArrayMethod( JNIType.decode( type: [Float](), from: arg ) )
- return JNIType.encode( value: __return, locals: nil ).l
-}
-
-private typealias SwiftHelloTest_TestListener_float2dArrayMethod_20_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jobject? ) -> jobject?
-
-private func SwiftHelloTest_TestListener_float2dArrayMethod_20( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ arg: jobject? ) -> jobject? {
- let __return = SwiftHelloTest_TestListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).float2dArrayMethod( JNIType.decode( type: [[Float]](), from: arg ) )
- return JNIType.encode( value: __return, locals: nil ).l
-}
-
-private typealias SwiftHelloTest_TestListener_doubleMethod_21_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jdouble ) -> jdouble
-
-private func SwiftHelloTest_TestListener_doubleMethod_21( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ arg: jdouble ) -> jdouble {
- let __return = SwiftHelloTest_TestListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).doubleMethod( JNIType.decode( type: Double(), from: arg ) )
- return JNIType.encode( value: __return, locals: nil ).d
-}
-
-private typealias SwiftHelloTest_TestListener_doubleArrayMethod_22_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jobject? ) -> jobject?
-
-private func SwiftHelloTest_TestListener_doubleArrayMethod_22( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ arg: jobject? ) -> jobject? {
- let __return = SwiftHelloTest_TestListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).doubleArrayMethod( JNIType.decode( type: [Double](), from: arg ) )
- return JNIType.encode( value: __return, locals: nil ).l
-}
-
-private typealias SwiftHelloTest_TestListener_double2dArrayMethod_23_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jobject? ) -> jobject?
-
-private func SwiftHelloTest_TestListener_double2dArrayMethod_23( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ arg: jobject? ) -> jobject? {
- let __return = SwiftHelloTest_TestListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).double2dArrayMethod( JNIType.decode( type: [[Double]](), from: arg ) )
- return JNIType.encode( value: __return, locals: nil ).l
-}
-
-private typealias SwiftHelloTest_TestListener_StringMethod_24_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jobject? ) -> jobject?
-
-private func SwiftHelloTest_TestListener_StringMethod_24( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ arg: jobject? ) -> jobject? {
- let __return = SwiftHelloTest_TestListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).StringMethod( JNIType.decode( type: String(), from: arg ) )
- return JNIType.encode( value: __return, locals: nil ).l
-}
-
-private typealias SwiftHelloTest_TestListener_StringArrayMethod_25_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jobject? ) -> jobject?
-
-private func SwiftHelloTest_TestListener_StringArrayMethod_25( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ arg: jobject? ) -> jobject? {
- let __return = SwiftHelloTest_TestListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).StringArrayMethod( JNIType.decode( type: [String](), from: arg ) )
- return JNIType.encode( value: __return, locals: nil ).l
-}
-
-private typealias SwiftHelloTest_TestListener_String2dArrayMethod_26_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jobject? ) -> jobject?
-
-private func SwiftHelloTest_TestListener_String2dArrayMethod_26( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ arg: jobject? ) -> jobject? {
- let __return = SwiftHelloTest_TestListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).String2dArrayMethod( JNIType.decode( type: [[String]](), from: arg ) )
- return JNIType.encode( value: __return, locals: nil ).l
-}
-
-open class SwiftHelloTest_TestListenerBase: JNIObjectProxy, SwiftHelloTest_TestListener {
-
- private static var nativesRegistered = false
-
- private static func registerNatives() {
- if ( !nativesRegistered ) {
- var natives = [JNINativeMethod]()
-
- let SwiftHelloTest_TestListener_byteArrayMethod_0_thunk: SwiftHelloTest_TestListener_byteArrayMethod_0_type = SwiftHelloTest_TestListener_byteArrayMethod_0
- natives.append( JNINativeMethod( name: strdup("__byteArrayMethod"), signature: strdup("([B)[B"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_byteArrayMethod_0_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- let SwiftHelloTest_TestListener_byte2dArrayMethod_1_thunk: SwiftHelloTest_TestListener_byte2dArrayMethod_1_type = SwiftHelloTest_TestListener_byte2dArrayMethod_1
- natives.append( JNINativeMethod( name: strdup("__byte2dArrayMethod"), signature: strdup("([[B)[[B"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_byte2dArrayMethod_1_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- let SwiftHelloTest_TestListener_booleanMethod_2_thunk: SwiftHelloTest_TestListener_booleanMethod_2_type = SwiftHelloTest_TestListener_booleanMethod_2
- natives.append( JNINativeMethod( name: strdup("__booleanMethod"), signature: strdup("(Z)Z"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_booleanMethod_2_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- let SwiftHelloTest_TestListener_booleanArrayMethod_3_thunk: SwiftHelloTest_TestListener_booleanArrayMethod_3_type = SwiftHelloTest_TestListener_booleanArrayMethod_3
- natives.append( JNINativeMethod( name: strdup("__booleanArrayMethod"), signature: strdup("([Z)[Z"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_booleanArrayMethod_3_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- let SwiftHelloTest_TestListener_boolean2dArrayMethod_4_thunk: SwiftHelloTest_TestListener_boolean2dArrayMethod_4_type = SwiftHelloTest_TestListener_boolean2dArrayMethod_4
- natives.append( JNINativeMethod( name: strdup("__boolean2dArrayMethod"), signature: strdup("([[Z)[[Z"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_boolean2dArrayMethod_4_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- let SwiftHelloTest_TestListener_byteMethod_5_thunk: SwiftHelloTest_TestListener_byteMethod_5_type = SwiftHelloTest_TestListener_byteMethod_5
- natives.append( JNINativeMethod( name: strdup("__byteMethod"), signature: strdup("(B)B"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_byteMethod_5_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- let SwiftHelloTest_TestListener_charMethod_6_thunk: SwiftHelloTest_TestListener_charMethod_6_type = SwiftHelloTest_TestListener_charMethod_6
- natives.append( JNINativeMethod( name: strdup("__charMethod"), signature: strdup("(C)C"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_charMethod_6_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- let SwiftHelloTest_TestListener_charArrayMethod_7_thunk: SwiftHelloTest_TestListener_charArrayMethod_7_type = SwiftHelloTest_TestListener_charArrayMethod_7
- natives.append( JNINativeMethod( name: strdup("__charArrayMethod"), signature: strdup("([C)[C"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_charArrayMethod_7_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- let SwiftHelloTest_TestListener_char2dArrayMethod_8_thunk: SwiftHelloTest_TestListener_char2dArrayMethod_8_type = SwiftHelloTest_TestListener_char2dArrayMethod_8
- natives.append( JNINativeMethod( name: strdup("__char2dArrayMethod"), signature: strdup("([[C)[[C"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_char2dArrayMethod_8_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- let SwiftHelloTest_TestListener_shortMethod_9_thunk: SwiftHelloTest_TestListener_shortMethod_9_type = SwiftHelloTest_TestListener_shortMethod_9
- natives.append( JNINativeMethod( name: strdup("__shortMethod"), signature: strdup("(S)S"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_shortMethod_9_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- let SwiftHelloTest_TestListener_shortArrayMethod_10_thunk: SwiftHelloTest_TestListener_shortArrayMethod_10_type = SwiftHelloTest_TestListener_shortArrayMethod_10
- natives.append( JNINativeMethod( name: strdup("__shortArrayMethod"), signature: strdup("([S)[S"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_shortArrayMethod_10_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- let SwiftHelloTest_TestListener_short2dArrayMethod_11_thunk: SwiftHelloTest_TestListener_short2dArrayMethod_11_type = SwiftHelloTest_TestListener_short2dArrayMethod_11
- natives.append( JNINativeMethod( name: strdup("__short2dArrayMethod"), signature: strdup("([[S)[[S"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_short2dArrayMethod_11_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- let SwiftHelloTest_TestListener_intMethod_12_thunk: SwiftHelloTest_TestListener_intMethod_12_type = SwiftHelloTest_TestListener_intMethod_12
- natives.append( JNINativeMethod( name: strdup("__intMethod"), signature: strdup("(I)I"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_intMethod_12_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- let SwiftHelloTest_TestListener_intArrayMethod_13_thunk: SwiftHelloTest_TestListener_intArrayMethod_13_type = SwiftHelloTest_TestListener_intArrayMethod_13
- natives.append( JNINativeMethod( name: strdup("__intArrayMethod"), signature: strdup("([I)[I"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_intArrayMethod_13_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- let SwiftHelloTest_TestListener_int2dArrayMethod_14_thunk: SwiftHelloTest_TestListener_int2dArrayMethod_14_type = SwiftHelloTest_TestListener_int2dArrayMethod_14
- natives.append( JNINativeMethod( name: strdup("__int2dArrayMethod"), signature: strdup("([[I)[[I"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_int2dArrayMethod_14_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- let SwiftHelloTest_TestListener_longMethod_15_thunk: SwiftHelloTest_TestListener_longMethod_15_type = SwiftHelloTest_TestListener_longMethod_15
- natives.append( JNINativeMethod( name: strdup("__longMethod"), signature: strdup("(J)J"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_longMethod_15_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- let SwiftHelloTest_TestListener_longArrayMethod_16_thunk: SwiftHelloTest_TestListener_longArrayMethod_16_type = SwiftHelloTest_TestListener_longArrayMethod_16
- natives.append( JNINativeMethod( name: strdup("__longArrayMethod"), signature: strdup("([J)[J"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_longArrayMethod_16_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- let SwiftHelloTest_TestListener_long2dArrayMethod_17_thunk: SwiftHelloTest_TestListener_long2dArrayMethod_17_type = SwiftHelloTest_TestListener_long2dArrayMethod_17
- natives.append( JNINativeMethod( name: strdup("__long2dArrayMethod"), signature: strdup("([[J)[[J"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_long2dArrayMethod_17_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- let SwiftHelloTest_TestListener_floatMethod_18_thunk: SwiftHelloTest_TestListener_floatMethod_18_type = SwiftHelloTest_TestListener_floatMethod_18
- natives.append( JNINativeMethod( name: strdup("__floatMethod"), signature: strdup("(F)F"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_floatMethod_18_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- let SwiftHelloTest_TestListener_floatArrayMethod_19_thunk: SwiftHelloTest_TestListener_floatArrayMethod_19_type = SwiftHelloTest_TestListener_floatArrayMethod_19
- natives.append( JNINativeMethod( name: strdup("__floatArrayMethod"), signature: strdup("([F)[F"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_floatArrayMethod_19_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- let SwiftHelloTest_TestListener_float2dArrayMethod_20_thunk: SwiftHelloTest_TestListener_float2dArrayMethod_20_type = SwiftHelloTest_TestListener_float2dArrayMethod_20
- natives.append( JNINativeMethod( name: strdup("__float2dArrayMethod"), signature: strdup("([[F)[[F"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_float2dArrayMethod_20_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- let SwiftHelloTest_TestListener_doubleMethod_21_thunk: SwiftHelloTest_TestListener_doubleMethod_21_type = SwiftHelloTest_TestListener_doubleMethod_21
- natives.append( JNINativeMethod( name: strdup("__doubleMethod"), signature: strdup("(D)D"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_doubleMethod_21_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- let SwiftHelloTest_TestListener_doubleArrayMethod_22_thunk: SwiftHelloTest_TestListener_doubleArrayMethod_22_type = SwiftHelloTest_TestListener_doubleArrayMethod_22
- natives.append( JNINativeMethod( name: strdup("__doubleArrayMethod"), signature: strdup("([D)[D"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_doubleArrayMethod_22_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- let SwiftHelloTest_TestListener_double2dArrayMethod_23_thunk: SwiftHelloTest_TestListener_double2dArrayMethod_23_type = SwiftHelloTest_TestListener_double2dArrayMethod_23
- natives.append( JNINativeMethod( name: strdup("__double2dArrayMethod"), signature: strdup("([[D)[[D"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_double2dArrayMethod_23_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- let SwiftHelloTest_TestListener_StringMethod_24_thunk: SwiftHelloTest_TestListener_StringMethod_24_type = SwiftHelloTest_TestListener_StringMethod_24
- natives.append( JNINativeMethod( name: strdup("__StringMethod"), signature: strdup("(Ljava/lang/String;)Ljava/lang/String;"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_StringMethod_24_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- let SwiftHelloTest_TestListener_StringArrayMethod_25_thunk: SwiftHelloTest_TestListener_StringArrayMethod_25_type = SwiftHelloTest_TestListener_StringArrayMethod_25
- natives.append( JNINativeMethod( name: strdup("__StringArrayMethod"), signature: strdup("([Ljava/lang/String;)[Ljava/lang/String;"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_StringArrayMethod_25_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- let SwiftHelloTest_TestListener_String2dArrayMethod_26_thunk: SwiftHelloTest_TestListener_String2dArrayMethod_26_type = SwiftHelloTest_TestListener_String2dArrayMethod_26
- natives.append( JNINativeMethod( name: strdup("__String2dArrayMethod"), signature: strdup("([[Ljava/lang/String;)[[Ljava/lang/String;"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_String2dArrayMethod_26_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- withUnsafePointer(to: &natives[0]) {
- nativesPtr in
- let clazz = JNI.FindClass( "org/genie/com_jh/SwiftHelloTest_TestListenerProxy" )
- if JNI.api.RegisterNatives( JNI.env, clazz, nativesPtr, jint(natives.count) ) != jint(JNI_OK) {
- JNI.report( "Unable to register java natives" )
- }
- }
-
- nativesRegistered = true
- }
- }
-
- public convenience init() {
- self.init( javaObject: nil )
- }
-
- public required init( javaObject: jobject? ) {
- super.init( javaObject: javaObject )
- SwiftHelloTest_TestListenerBase.registerNatives()
- createProxy( javaClassName: "org/genie/com_jh/SwiftHelloTest_TestListenerProxy" )
- }
-
- static func swiftObject( jniEnv: UnsafeMutablePointer?, javaObject: jobject? ) -> SwiftHelloTest_TestListenerBase {
- return unsafeBitCast( swiftPointer( jniEnv: jniEnv, object: javaObject ), to: SwiftHelloTest_TestListenerBase.self )
- }
-
- /// public abstract byte[] com.jh.SwiftHelloTest$TestListener.byteArrayMethod(byte[])
-
- open func byteArrayMethod( arg: [Int8]? ) -> [Int8]! /**/ {
- return nil
- }
-
- open func byteArrayMethod( _ _arg: [Int8]? ) -> [Int8]! /**/ {
- return byteArrayMethod( arg: _arg )
- }
-
- /// public abstract byte[][] com.jh.SwiftHelloTest$TestListener.byte2dArrayMethod(byte[][])
-
- open func byte2dArrayMethod( arg: [[Int8]]? ) -> [[Int8]]! /**/ {
- return nil
- }
-
- open func byte2dArrayMethod( _ _arg: [[Int8]]? ) -> [[Int8]]! /**/ {
- return byte2dArrayMethod( arg: _arg )
- }
-
- /// public abstract boolean com.jh.SwiftHelloTest$TestListener.booleanMethod(boolean)
-
- open func booleanMethod( arg: Bool ) -> Bool /**/ {
- return false
- }
-
- open func booleanMethod( _ _arg: Bool ) -> Bool /**/ {
- return booleanMethod( arg: _arg )
- }
-
- /// public abstract boolean[] com.jh.SwiftHelloTest$TestListener.booleanArrayMethod(boolean[])
-
- open func booleanArrayMethod( arg: [Bool]? ) -> [Bool]! /**/ {
- return nil
- }
-
- open func booleanArrayMethod( _ _arg: [Bool]? ) -> [Bool]! /**/ {
- return booleanArrayMethod( arg: _arg )
- }
-
- /// public abstract boolean[][] com.jh.SwiftHelloTest$TestListener.boolean2dArrayMethod(boolean[][])
-
- open func boolean2dArrayMethod( arg: [[Bool]]? ) -> [[Bool]]! /**/ {
- return nil
- }
-
- open func boolean2dArrayMethod( _ _arg: [[Bool]]? ) -> [[Bool]]! /**/ {
- return boolean2dArrayMethod( arg: _arg )
- }
-
- /// public abstract byte com.jh.SwiftHelloTest$TestListener.byteMethod(byte)
-
- open func byteMethod( arg: Int8 ) -> Int8 /**/ {
- return 0
- }
-
- open func byteMethod( _ _arg: Int8 ) -> Int8 /**/ {
- return byteMethod( arg: _arg )
- }
-
- /// public abstract char com.jh.SwiftHelloTest$TestListener.charMethod(char)
-
- open func charMethod( arg: UInt16 ) -> UInt16 /**/ {
- return 0
- }
-
- open func charMethod( _ _arg: UInt16 ) -> UInt16 /**/ {
- return charMethod( arg: _arg )
- }
-
- /// public abstract char[] com.jh.SwiftHelloTest$TestListener.charArrayMethod(char[])
-
- open func charArrayMethod( arg: [UInt16]? ) -> [UInt16]! /**/ {
- return nil
- }
-
- open func charArrayMethod( _ _arg: [UInt16]? ) -> [UInt16]! /**/ {
- return charArrayMethod( arg: _arg )
- }
-
- /// public abstract char[][] com.jh.SwiftHelloTest$TestListener.char2dArrayMethod(char[][])
-
- open func char2dArrayMethod( arg: [[UInt16]]? ) -> [[UInt16]]! /**/ {
- return nil
- }
-
- open func char2dArrayMethod( _ _arg: [[UInt16]]? ) -> [[UInt16]]! /**/ {
- return char2dArrayMethod( arg: _arg )
- }
-
- /// public abstract short com.jh.SwiftHelloTest$TestListener.shortMethod(short)
-
- open func shortMethod( arg: Int16 ) -> Int16 /**/ {
- return 0
- }
-
- open func shortMethod( _ _arg: Int16 ) -> Int16 /**/ {
- return shortMethod( arg: _arg )
- }
-
- /// public abstract short[] com.jh.SwiftHelloTest$TestListener.shortArrayMethod(short[])
-
- open func shortArrayMethod( arg: [Int16]? ) -> [Int16]! /**/ {
- return nil
- }
-
- open func shortArrayMethod( _ _arg: [Int16]? ) -> [Int16]! /**/ {
- return shortArrayMethod( arg: _arg )
- }
-
- /// public abstract short[][] com.jh.SwiftHelloTest$TestListener.short2dArrayMethod(short[][])
-
- open func short2dArrayMethod( arg: [[Int16]]? ) -> [[Int16]]! /**/ {
- return nil
- }
-
- open func short2dArrayMethod( _ _arg: [[Int16]]? ) -> [[Int16]]! /**/ {
- return short2dArrayMethod( arg: _arg )
- }
-
- /// public abstract int com.jh.SwiftHelloTest$TestListener.intMethod(int)
-
- open func intMethod( arg: Int ) -> Int /**/ {
- return 0
- }
-
- open func intMethod( _ _arg: Int ) -> Int /**/ {
- return intMethod( arg: _arg )
- }
-
- /// public abstract int[] com.jh.SwiftHelloTest$TestListener.intArrayMethod(int[])
-
- open func intArrayMethod( arg: [Int32]? ) -> [Int32]! /**/ {
- return nil
- }
-
- open func intArrayMethod( _ _arg: [Int32]? ) -> [Int32]! /**/ {
- return intArrayMethod( arg: _arg )
- }
-
- /// public abstract int[][] com.jh.SwiftHelloTest$TestListener.int2dArrayMethod(int[][])
-
- open func int2dArrayMethod( arg: [[Int32]]? ) -> [[Int32]]! /**/ {
- return nil
- }
-
- open func int2dArrayMethod( _ _arg: [[Int32]]? ) -> [[Int32]]! /**/ {
- return int2dArrayMethod( arg: _arg )
- }
-
- /// public abstract long com.jh.SwiftHelloTest$TestListener.longMethod(long)
-
- open func longMethod( arg: Int64 ) -> Int64 /**/ {
- return 0
- }
-
- open func longMethod( _ _arg: Int64 ) -> Int64 /**/ {
- return longMethod( arg: _arg )
- }
-
- /// public abstract long[] com.jh.SwiftHelloTest$TestListener.longArrayMethod(long[])
-
- open func longArrayMethod( arg: [Int64]? ) -> [Int64]! /**/ {
- return nil
- }
-
- open func longArrayMethod( _ _arg: [Int64]? ) -> [Int64]! /**/ {
- return longArrayMethod( arg: _arg )
- }
-
- /// public abstract long[][] com.jh.SwiftHelloTest$TestListener.long2dArrayMethod(long[][])
-
- open func long2dArrayMethod( arg: [[Int64]]? ) -> [[Int64]]! /**/ {
- return nil
- }
-
- open func long2dArrayMethod( _ _arg: [[Int64]]? ) -> [[Int64]]! /**/ {
- return long2dArrayMethod( arg: _arg )
- }
-
- /// public abstract float com.jh.SwiftHelloTest$TestListener.floatMethod(float)
-
- open func floatMethod( arg: Float ) -> Float /**/ {
- return 0
- }
-
- open func floatMethod( _ _arg: Float ) -> Float /**/ {
- return floatMethod( arg: _arg )
- }
-
- /// public abstract float[] com.jh.SwiftHelloTest$TestListener.floatArrayMethod(float[])
-
- open func floatArrayMethod( arg: [Float]? ) -> [Float]! /**/ {
- return nil
- }
-
- open func floatArrayMethod( _ _arg: [Float]? ) -> [Float]! /**/ {
- return floatArrayMethod( arg: _arg )
- }
-
- /// public abstract float[][] com.jh.SwiftHelloTest$TestListener.float2dArrayMethod(float[][])
-
- open func float2dArrayMethod( arg: [[Float]]? ) -> [[Float]]! /**/ {
- return nil
- }
-
- open func float2dArrayMethod( _ _arg: [[Float]]? ) -> [[Float]]! /**/ {
- return float2dArrayMethod( arg: _arg )
- }
-
- /// public abstract double com.jh.SwiftHelloTest$TestListener.doubleMethod(double)
-
- open func doubleMethod( arg: Double ) -> Double /**/ {
- return 0
- }
-
- open func doubleMethod( _ _arg: Double ) -> Double /**/ {
- return doubleMethod( arg: _arg )
- }
-
- /// public abstract double[] com.jh.SwiftHelloTest$TestListener.doubleArrayMethod(double[])
-
- open func doubleArrayMethod( arg: [Double]? ) -> [Double]! /**/ {
- return nil
- }
-
- open func doubleArrayMethod( _ _arg: [Double]? ) -> [Double]! /**/ {
- return doubleArrayMethod( arg: _arg )
- }
-
- /// public abstract double[][] com.jh.SwiftHelloTest$TestListener.double2dArrayMethod(double[][])
-
- open func double2dArrayMethod( arg: [[Double]]? ) -> [[Double]]! /**/ {
- return nil
- }
-
- open func double2dArrayMethod( _ _arg: [[Double]]? ) -> [[Double]]! /**/ {
- return double2dArrayMethod( arg: _arg )
- }
-
- /// public abstract java.lang.String com.jh.SwiftHelloTest$TestListener.StringMethod(java.lang.String)
-
- open func StringMethod( arg: String? ) -> String! /**/ {
- return nil
- }
-
- open func StringMethod( _ _arg: String? ) -> String! /**/ {
- return StringMethod( arg: _arg )
- }
-
- /// public abstract java.lang.String[] com.jh.SwiftHelloTest$TestListener.StringArrayMethod(java.lang.String[])
-
- open func StringArrayMethod( arg: [String]? ) -> [String]! /**/ {
- return nil
- }
-
- open func StringArrayMethod( _ _arg: [String]? ) -> [String]! /**/ {
- return StringArrayMethod( arg: _arg )
- }
-
- /// public abstract java.lang.String[][] com.jh.SwiftHelloTest$TestListener.String2dArrayMethod(java.lang.String[][])
-
- open func String2dArrayMethod( arg: [[String]]? ) -> [[String]]! /**/ {
- return nil
- }
-
- open func String2dArrayMethod( _ _arg: [[String]]? ) -> [[String]]! /**/ {
- return String2dArrayMethod( arg: _arg )
- }
-
-}
diff --git a/com_jh/Sources/SwiftHelloTest_TestResponderImpl.swift b/com_jh/Sources/SwiftHelloTest_TestResponderImpl.swift
deleted file mode 100644
index 306ccc3..0000000
--- a/com_jh/Sources/SwiftHelloTest_TestResponderImpl.swift
+++ /dev/null
@@ -1,470 +0,0 @@
-
-import java_swift
-import java_lang
-
-/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
-
-/// JAVA_HOME: /Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home ///
-/// Tue Dec 20 14:14:24 GMT 2016 ///
-
-/// class com.jh.SwiftHelloTest$TestResponderImpl ///
-
-open class SwiftHelloTest_TestResponderImpl: java_lang.JavaObject, SwiftHelloTest_TestListener {
-
- public convenience init?( casting object: java_lang.JavaObject, _ file: StaticString = #file, _ line: Int = #line ) {
- self.init( javaObject: nil )
- if !object.validDownCast( toJavaClass: "com.jh.SwiftHelloTest$TestResponderImpl", file, line ) {
- return nil
- }
- object.withJavaObject {
- self.javaObject = $0
- }
- }
-
- private static var SwiftHelloTest_TestResponderImplJNIClass: jclass?
-
- /// public com.jh.SwiftHelloTest$TestResponderImpl()
-
- private static var new_MethodID_1: jmethodID?
-
- public convenience init() {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- let __object = JNIMethod.NewObject( className: "com/jh/SwiftHelloTest$TestResponderImpl", classCache: &SwiftHelloTest_TestResponderImpl.SwiftHelloTest_TestResponderImplJNIClass, methodSig: "()V", methodCache: &SwiftHelloTest_TestResponderImpl.new_MethodID_1, args: &__args, locals: &__locals )
- self.init( javaObject: __object )
- JNI.DeleteLocalRef( __object )
- }
-
- /// public byte[] com.jh.SwiftHelloTest$TestResponderImpl.byteArrayMethod(byte[])
-
- private static var byteArrayMethod_MethodID_2: jmethodID?
-
- open func byteArrayMethod( arg: [Int8]? ) -> [Int8]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "byteArrayMethod", methodSig: "([B)[B", methodCache: &SwiftHelloTest_TestResponderImpl.byteArrayMethod_MethodID_2, args: &__args, locals: &__locals )
- return JNIType.decode( type: [Int8](), from: __return )
- }
-
- open func byteArrayMethod( _ _arg: [Int8]? ) -> [Int8]! {
- return byteArrayMethod( arg: _arg )
- }
-
- /// public byte[][] com.jh.SwiftHelloTest$TestResponderImpl.byte2dArrayMethod(byte[][])
-
- private static var byte2dArrayMethod_MethodID_3: jmethodID?
-
- open func byte2dArrayMethod( arg: [[Int8]]? ) -> [[Int8]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "byte2dArrayMethod", methodSig: "([[B)[[B", methodCache: &SwiftHelloTest_TestResponderImpl.byte2dArrayMethod_MethodID_3, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[Int8]](), from: __return )
- }
-
- open func byte2dArrayMethod( _ _arg: [[Int8]]? ) -> [[Int8]]! {
- return byte2dArrayMethod( arg: _arg )
- }
-
- /// public boolean com.jh.SwiftHelloTest$TestResponderImpl.booleanMethod(boolean)
-
- private static var booleanMethod_MethodID_4: jmethodID?
-
- open func booleanMethod( arg: Bool ) -> Bool {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "booleanMethod", methodSig: "(Z)Z", methodCache: &SwiftHelloTest_TestResponderImpl.booleanMethod_MethodID_4, args: &__args, locals: &__locals )
- return JNIType.decode( type: Bool(), from: __return )
- }
-
- open func booleanMethod( _ _arg: Bool ) -> Bool {
- return booleanMethod( arg: _arg )
- }
-
- /// public boolean[] com.jh.SwiftHelloTest$TestResponderImpl.booleanArrayMethod(boolean[])
-
- private static var booleanArrayMethod_MethodID_5: jmethodID?
-
- open func booleanArrayMethod( arg: [Bool]? ) -> [Bool]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "booleanArrayMethod", methodSig: "([Z)[Z", methodCache: &SwiftHelloTest_TestResponderImpl.booleanArrayMethod_MethodID_5, args: &__args, locals: &__locals )
- return JNIType.decode( type: [Bool](), from: __return )
- }
-
- open func booleanArrayMethod( _ _arg: [Bool]? ) -> [Bool]! {
- return booleanArrayMethod( arg: _arg )
- }
-
- /// public boolean[][] com.jh.SwiftHelloTest$TestResponderImpl.boolean2dArrayMethod(boolean[][])
-
- private static var boolean2dArrayMethod_MethodID_6: jmethodID?
-
- open func boolean2dArrayMethod( arg: [[Bool]]? ) -> [[Bool]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "boolean2dArrayMethod", methodSig: "([[Z)[[Z", methodCache: &SwiftHelloTest_TestResponderImpl.boolean2dArrayMethod_MethodID_6, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[Bool]](), from: __return )
- }
-
- open func boolean2dArrayMethod( _ _arg: [[Bool]]? ) -> [[Bool]]! {
- return boolean2dArrayMethod( arg: _arg )
- }
-
- /// public byte com.jh.SwiftHelloTest$TestResponderImpl.byteMethod(byte)
-
- private static var byteMethod_MethodID_7: jmethodID?
-
- open func byteMethod( arg: Int8 ) -> Int8 {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallByteMethod( object: javaObject, methodName: "byteMethod", methodSig: "(B)B", methodCache: &SwiftHelloTest_TestResponderImpl.byteMethod_MethodID_7, args: &__args, locals: &__locals )
- return JNIType.decode( type: Int8(), from: __return )
- }
-
- open func byteMethod( _ _arg: Int8 ) -> Int8 {
- return byteMethod( arg: _arg )
- }
-
- /// public char com.jh.SwiftHelloTest$TestResponderImpl.charMethod(char)
-
- private static var charMethod_MethodID_8: jmethodID?
-
- open func charMethod( arg: UInt16 ) -> UInt16 {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallCharMethod( object: javaObject, methodName: "charMethod", methodSig: "(C)C", methodCache: &SwiftHelloTest_TestResponderImpl.charMethod_MethodID_8, args: &__args, locals: &__locals )
- return JNIType.decode( type: UInt16(), from: __return )
- }
-
- open func charMethod( _ _arg: UInt16 ) -> UInt16 {
- return charMethod( arg: _arg )
- }
-
- /// public char[] com.jh.SwiftHelloTest$TestResponderImpl.charArrayMethod(char[])
-
- private static var charArrayMethod_MethodID_9: jmethodID?
-
- open func charArrayMethod( arg: [UInt16]? ) -> [UInt16]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "charArrayMethod", methodSig: "([C)[C", methodCache: &SwiftHelloTest_TestResponderImpl.charArrayMethod_MethodID_9, args: &__args, locals: &__locals )
- return JNIType.decode( type: [UInt16](), from: __return )
- }
-
- open func charArrayMethod( _ _arg: [UInt16]? ) -> [UInt16]! {
- return charArrayMethod( arg: _arg )
- }
-
- /// public char[][] com.jh.SwiftHelloTest$TestResponderImpl.char2dArrayMethod(char[][])
-
- private static var char2dArrayMethod_MethodID_10: jmethodID?
-
- open func char2dArrayMethod( arg: [[UInt16]]? ) -> [[UInt16]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "char2dArrayMethod", methodSig: "([[C)[[C", methodCache: &SwiftHelloTest_TestResponderImpl.char2dArrayMethod_MethodID_10, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[UInt16]](), from: __return )
- }
-
- open func char2dArrayMethod( _ _arg: [[UInt16]]? ) -> [[UInt16]]! {
- return char2dArrayMethod( arg: _arg )
- }
-
- /// public short com.jh.SwiftHelloTest$TestResponderImpl.shortMethod(short)
-
- private static var shortMethod_MethodID_11: jmethodID?
-
- open func shortMethod( arg: Int16 ) -> Int16 {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallShortMethod( object: javaObject, methodName: "shortMethod", methodSig: "(S)S", methodCache: &SwiftHelloTest_TestResponderImpl.shortMethod_MethodID_11, args: &__args, locals: &__locals )
- return JNIType.decode( type: Int16(), from: __return )
- }
-
- open func shortMethod( _ _arg: Int16 ) -> Int16 {
- return shortMethod( arg: _arg )
- }
-
- /// public short[] com.jh.SwiftHelloTest$TestResponderImpl.shortArrayMethod(short[])
-
- private static var shortArrayMethod_MethodID_12: jmethodID?
-
- open func shortArrayMethod( arg: [Int16]? ) -> [Int16]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "shortArrayMethod", methodSig: "([S)[S", methodCache: &SwiftHelloTest_TestResponderImpl.shortArrayMethod_MethodID_12, args: &__args, locals: &__locals )
- return JNIType.decode( type: [Int16](), from: __return )
- }
-
- open func shortArrayMethod( _ _arg: [Int16]? ) -> [Int16]! {
- return shortArrayMethod( arg: _arg )
- }
-
- /// public short[][] com.jh.SwiftHelloTest$TestResponderImpl.short2dArrayMethod(short[][])
-
- private static var short2dArrayMethod_MethodID_13: jmethodID?
-
- open func short2dArrayMethod( arg: [[Int16]]? ) -> [[Int16]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "short2dArrayMethod", methodSig: "([[S)[[S", methodCache: &SwiftHelloTest_TestResponderImpl.short2dArrayMethod_MethodID_13, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[Int16]](), from: __return )
- }
-
- open func short2dArrayMethod( _ _arg: [[Int16]]? ) -> [[Int16]]! {
- return short2dArrayMethod( arg: _arg )
- }
-
- /// public int com.jh.SwiftHelloTest$TestResponderImpl.intMethod(int)
-
- private static var intMethod_MethodID_14: jmethodID?
-
- open func intMethod( arg: Int ) -> Int {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "intMethod", methodSig: "(I)I", methodCache: &SwiftHelloTest_TestResponderImpl.intMethod_MethodID_14, args: &__args, locals: &__locals )
- return JNIType.decode( type: Int(), from: __return )
- }
-
- open func intMethod( _ _arg: Int ) -> Int {
- return intMethod( arg: _arg )
- }
-
- /// public int[] com.jh.SwiftHelloTest$TestResponderImpl.intArrayMethod(int[])
-
- private static var intArrayMethod_MethodID_15: jmethodID?
-
- open func intArrayMethod( arg: [Int32]? ) -> [Int32]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "intArrayMethod", methodSig: "([I)[I", methodCache: &SwiftHelloTest_TestResponderImpl.intArrayMethod_MethodID_15, args: &__args, locals: &__locals )
- return JNIType.decode( type: [Int32](), from: __return )
- }
-
- open func intArrayMethod( _ _arg: [Int32]? ) -> [Int32]! {
- return intArrayMethod( arg: _arg )
- }
-
- /// public int[][] com.jh.SwiftHelloTest$TestResponderImpl.int2dArrayMethod(int[][])
-
- private static var int2dArrayMethod_MethodID_16: jmethodID?
-
- open func int2dArrayMethod( arg: [[Int32]]? ) -> [[Int32]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "int2dArrayMethod", methodSig: "([[I)[[I", methodCache: &SwiftHelloTest_TestResponderImpl.int2dArrayMethod_MethodID_16, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[Int32]](), from: __return )
- }
-
- open func int2dArrayMethod( _ _arg: [[Int32]]? ) -> [[Int32]]! {
- return int2dArrayMethod( arg: _arg )
- }
-
- /// public long com.jh.SwiftHelloTest$TestResponderImpl.longMethod(long)
-
- private static var longMethod_MethodID_17: jmethodID?
-
- open func longMethod( arg: Int64 ) -> Int64 {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallLongMethod( object: javaObject, methodName: "longMethod", methodSig: "(J)J", methodCache: &SwiftHelloTest_TestResponderImpl.longMethod_MethodID_17, args: &__args, locals: &__locals )
- return JNIType.decode( type: Int64(), from: __return )
- }
-
- open func longMethod( _ _arg: Int64 ) -> Int64 {
- return longMethod( arg: _arg )
- }
-
- /// public long[] com.jh.SwiftHelloTest$TestResponderImpl.longArrayMethod(long[])
-
- private static var longArrayMethod_MethodID_18: jmethodID?
-
- open func longArrayMethod( arg: [Int64]? ) -> [Int64]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "longArrayMethod", methodSig: "([J)[J", methodCache: &SwiftHelloTest_TestResponderImpl.longArrayMethod_MethodID_18, args: &__args, locals: &__locals )
- return JNIType.decode( type: [Int64](), from: __return )
- }
-
- open func longArrayMethod( _ _arg: [Int64]? ) -> [Int64]! {
- return longArrayMethod( arg: _arg )
- }
-
- /// public long[][] com.jh.SwiftHelloTest$TestResponderImpl.long2dArrayMethod(long[][])
-
- private static var long2dArrayMethod_MethodID_19: jmethodID?
-
- open func long2dArrayMethod( arg: [[Int64]]? ) -> [[Int64]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "long2dArrayMethod", methodSig: "([[J)[[J", methodCache: &SwiftHelloTest_TestResponderImpl.long2dArrayMethod_MethodID_19, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[Int64]](), from: __return )
- }
-
- open func long2dArrayMethod( _ _arg: [[Int64]]? ) -> [[Int64]]! {
- return long2dArrayMethod( arg: _arg )
- }
-
- /// public float com.jh.SwiftHelloTest$TestResponderImpl.floatMethod(float)
-
- private static var floatMethod_MethodID_20: jmethodID?
-
- open func floatMethod( arg: Float ) -> Float {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallFloatMethod( object: javaObject, methodName: "floatMethod", methodSig: "(F)F", methodCache: &SwiftHelloTest_TestResponderImpl.floatMethod_MethodID_20, args: &__args, locals: &__locals )
- return JNIType.decode( type: Float(), from: __return )
- }
-
- open func floatMethod( _ _arg: Float ) -> Float {
- return floatMethod( arg: _arg )
- }
-
- /// public float[] com.jh.SwiftHelloTest$TestResponderImpl.floatArrayMethod(float[])
-
- private static var floatArrayMethod_MethodID_21: jmethodID?
-
- open func floatArrayMethod( arg: [Float]? ) -> [Float]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "floatArrayMethod", methodSig: "([F)[F", methodCache: &SwiftHelloTest_TestResponderImpl.floatArrayMethod_MethodID_21, args: &__args, locals: &__locals )
- return JNIType.decode( type: [Float](), from: __return )
- }
-
- open func floatArrayMethod( _ _arg: [Float]? ) -> [Float]! {
- return floatArrayMethod( arg: _arg )
- }
-
- /// public float[][] com.jh.SwiftHelloTest$TestResponderImpl.float2dArrayMethod(float[][])
-
- private static var float2dArrayMethod_MethodID_22: jmethodID?
-
- open func float2dArrayMethod( arg: [[Float]]? ) -> [[Float]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "float2dArrayMethod", methodSig: "([[F)[[F", methodCache: &SwiftHelloTest_TestResponderImpl.float2dArrayMethod_MethodID_22, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[Float]](), from: __return )
- }
-
- open func float2dArrayMethod( _ _arg: [[Float]]? ) -> [[Float]]! {
- return float2dArrayMethod( arg: _arg )
- }
-
- /// public double com.jh.SwiftHelloTest$TestResponderImpl.doubleMethod(double)
-
- private static var doubleMethod_MethodID_23: jmethodID?
-
- open func doubleMethod( arg: Double ) -> Double {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallDoubleMethod( object: javaObject, methodName: "doubleMethod", methodSig: "(D)D", methodCache: &SwiftHelloTest_TestResponderImpl.doubleMethod_MethodID_23, args: &__args, locals: &__locals )
- return JNIType.decode( type: Double(), from: __return )
- }
-
- open func doubleMethod( _ _arg: Double ) -> Double {
- return doubleMethod( arg: _arg )
- }
-
- /// public double[] com.jh.SwiftHelloTest$TestResponderImpl.doubleArrayMethod(double[])
-
- private static var doubleArrayMethod_MethodID_24: jmethodID?
-
- open func doubleArrayMethod( arg: [Double]? ) -> [Double]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "doubleArrayMethod", methodSig: "([D)[D", methodCache: &SwiftHelloTest_TestResponderImpl.doubleArrayMethod_MethodID_24, args: &__args, locals: &__locals )
- return JNIType.decode( type: [Double](), from: __return )
- }
-
- open func doubleArrayMethod( _ _arg: [Double]? ) -> [Double]! {
- return doubleArrayMethod( arg: _arg )
- }
-
- /// public double[][] com.jh.SwiftHelloTest$TestResponderImpl.double2dArrayMethod(double[][])
-
- private static var double2dArrayMethod_MethodID_25: jmethodID?
-
- open func double2dArrayMethod( arg: [[Double]]? ) -> [[Double]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "double2dArrayMethod", methodSig: "([[D)[[D", methodCache: &SwiftHelloTest_TestResponderImpl.double2dArrayMethod_MethodID_25, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[Double]](), from: __return )
- }
-
- open func double2dArrayMethod( _ _arg: [[Double]]? ) -> [[Double]]! {
- return double2dArrayMethod( arg: _arg )
- }
-
- /// public java.lang.String com.jh.SwiftHelloTest$TestResponderImpl.StringMethod(java.lang.String)
-
- private static var StringMethod_MethodID_26: jmethodID?
-
- open func StringMethod( arg: String? ) -> String! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "StringMethod", methodSig: "(Ljava/lang/String;)Ljava/lang/String;", methodCache: &SwiftHelloTest_TestResponderImpl.StringMethod_MethodID_26, args: &__args, locals: &__locals )
- return JNIType.decode( type: String(), from: __return )
- }
-
- open func StringMethod( _ _arg: String? ) -> String! {
- return StringMethod( arg: _arg )
- }
-
- /// public java.lang.String[] com.jh.SwiftHelloTest$TestResponderImpl.StringArrayMethod(java.lang.String[])
-
- private static var StringArrayMethod_MethodID_27: jmethodID?
-
- open func StringArrayMethod( arg: [String]? ) -> [String]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "StringArrayMethod", methodSig: "([Ljava/lang/String;)[Ljava/lang/String;", methodCache: &SwiftHelloTest_TestResponderImpl.StringArrayMethod_MethodID_27, args: &__args, locals: &__locals )
- return JNIType.decode( type: [String](), from: __return )
- }
-
- open func StringArrayMethod( _ _arg: [String]? ) -> [String]! {
- return StringArrayMethod( arg: _arg )
- }
-
- /// public java.lang.String[][] com.jh.SwiftHelloTest$TestResponderImpl.String2dArrayMethod(java.lang.String[][])
-
- private static var String2dArrayMethod_MethodID_28: jmethodID?
-
- open func String2dArrayMethod( arg: [[String]]? ) -> [[String]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "String2dArrayMethod", methodSig: "([[Ljava/lang/String;)[[Ljava/lang/String;", methodCache: &SwiftHelloTest_TestResponderImpl.String2dArrayMethod_MethodID_28, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[String]](), from: __return )
- }
-
- open func String2dArrayMethod( _ _arg: [[String]]? ) -> [[String]]! {
- return String2dArrayMethod( arg: _arg )
- }
-
-}
diff --git a/com_jh/Sources/SwiftHello_Listener.swift b/com_jh/Sources/SwiftHello_Listener.swift
deleted file mode 100644
index 0ffd082..0000000
--- a/com_jh/Sources/SwiftHello_Listener.swift
+++ /dev/null
@@ -1,132 +0,0 @@
-
-import java_swift
-
-/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
-
-/// JAVA_HOME: /Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home ///
-/// Tue Dec 20 14:14:24 GMT 2016 ///
-
-/// interface com.jh.SwiftHello$Listener ///
-
-public protocol SwiftHello_Listener: JavaProtocol {
-
- /// public abstract void com.jh.SwiftHello$Listener.processText(java.lang.String)
-
- func processText( text: String? )
- func processText( _ _text: String? )
-
- /// public abstract void com.jh.SwiftHello$Listener.processNumber(double)
-
- func processNumber( number: Double )
- func processNumber( _ _number: Double )
-
-}
-
-open class SwiftHello_ListenerForward: JNIObjectForward, SwiftHello_Listener {
-
- private static var SwiftHello_ListenerJNIClass: jclass?
-
- /// public abstract void com.jh.SwiftHello$Listener.processText(java.lang.String)
-
- private static var processText_MethodID_3: jmethodID?
-
- open func processText( text: String? ) {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: text, locals: &__locals )
- JNIMethod.CallVoidMethod( object: javaObject, methodName: "processText", methodSig: "(Ljava/lang/String;)V", methodCache: &SwiftHello_ListenerForward.processText_MethodID_3, args: &__args, locals: &__locals )
- }
-
- open func processText( _ _text: String? ) {
- processText( text: _text )
- }
-
- /// public abstract void com.jh.SwiftHello$Listener.processNumber(double)
-
- private static var processNumber_MethodID_4: jmethodID?
-
- open func processNumber( number: Double ) {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: number, locals: &__locals )
- JNIMethod.CallVoidMethod( object: javaObject, methodName: "processNumber", methodSig: "(D)V", methodCache: &SwiftHello_ListenerForward.processNumber_MethodID_4, args: &__args, locals: &__locals )
- }
-
- open func processNumber( _ _number: Double ) {
- processNumber( number: _number )
- }
-
-}
-
-
-private typealias SwiftHello_Listener_processText_0_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jobject? ) -> ()
-
-private func SwiftHello_Listener_processText_0( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ text: jobject? ) -> () {
- SwiftHello_ListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).processText( JNIType.decode( type: String(), from: text ) )
-}
-
-private typealias SwiftHello_Listener_processNumber_1_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jdouble ) -> ()
-
-private func SwiftHello_Listener_processNumber_1( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ number: jdouble ) -> () {
- SwiftHello_ListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).processNumber( JNIType.decode( type: Double(), from: number ) )
-}
-
-open class SwiftHello_ListenerBase: JNIObjectProxy, SwiftHello_Listener {
-
- private static var nativesRegistered = false
-
- private static func registerNatives() {
- if ( !nativesRegistered ) {
- var natives = [JNINativeMethod]()
-
- let SwiftHello_Listener_processText_0_thunk: SwiftHello_Listener_processText_0_type = SwiftHello_Listener_processText_0
- natives.append( JNINativeMethod( name: strdup("__processText"), signature: strdup("(Ljava/lang/String;)V"), fnPtr: unsafeBitCast( SwiftHello_Listener_processText_0_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- let SwiftHello_Listener_processNumber_1_thunk: SwiftHello_Listener_processNumber_1_type = SwiftHello_Listener_processNumber_1
- natives.append( JNINativeMethod( name: strdup("__processNumber"), signature: strdup("(D)V"), fnPtr: unsafeBitCast( SwiftHello_Listener_processNumber_1_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- withUnsafePointer(to: &natives[0]) {
- nativesPtr in
- let clazz = JNI.FindClass( "org/genie/com_jh/SwiftHello_ListenerProxy" )
- if JNI.api.RegisterNatives( JNI.env, clazz, nativesPtr, jint(natives.count) ) != jint(JNI_OK) {
- JNI.report( "Unable to register java natives" )
- }
- }
-
- nativesRegistered = true
- }
- }
-
- public convenience init() {
- self.init( javaObject: nil )
- }
-
- public required init( javaObject: jobject? ) {
- super.init( javaObject: javaObject )
- SwiftHello_ListenerBase.registerNatives()
- createProxy( javaClassName: "org/genie/com_jh/SwiftHello_ListenerProxy" )
- }
-
- static func swiftObject( jniEnv: UnsafeMutablePointer?, javaObject: jobject? ) -> SwiftHello_ListenerBase {
- return unsafeBitCast( swiftPointer( jniEnv: jniEnv, object: javaObject ), to: SwiftHello_ListenerBase.self )
- }
-
- /// public abstract void com.jh.SwiftHello$Listener.processText(java.lang.String)
-
- open func processText( text: String? ) /**/ {
- }
-
- open func processText( _ _text: String? ) /**/ {
- processText( text: _text )
- }
-
- /// public abstract void com.jh.SwiftHello$Listener.processNumber(double)
-
- open func processNumber( number: Double ) /**/ {
- }
-
- open func processNumber( _ _number: Double ) /**/ {
- processNumber( number: _number )
- }
-
-}
diff --git a/com_jh/Sources/SwiftHello_Responder.swift b/com_jh/Sources/SwiftHello_Responder.swift
deleted file mode 100644
index 1b7a158..0000000
--- a/com_jh/Sources/SwiftHello_Responder.swift
+++ /dev/null
@@ -1,99 +0,0 @@
-
-import java_swift
-
-/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
-
-/// JAVA_HOME: /Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home ///
-/// Tue Dec 20 14:14:24 GMT 2016 ///
-
-/// interface com.jh.SwiftHello$Responder ///
-
-public protocol SwiftHello_Responder: JavaProtocol {
-
- /// public abstract java.lang.String[] com.jh.SwiftHello$Responder.debug(java.lang.String)
-
- func debug( msg: String? ) -> [String]!
- func debug( _ _msg: String? ) -> [String]!
-
- /// public abstract void com.jh.SwiftHello$Responder.processedNumber(double)
-
- func processedNumber( number: Double )
- func processedNumber( _ _number: Double )
-
- /// public abstract void com.jh.SwiftHello$Responder.processedText(java.lang.String)
-
- func processedText( text: String? )
- func processedText( _ _text: String? )
-
- /// public abstract com.jh.SwiftHelloTest$TestListener com.jh.SwiftHello$Responder.testResponder()
-
- func testResponder() -> SwiftHelloTest_TestListener!
-
-}
-
-open class SwiftHello_ResponderForward: JNIObjectForward, SwiftHello_Responder {
-
- private static var SwiftHello_ResponderJNIClass: jclass?
-
- /// public abstract java.lang.String[] com.jh.SwiftHello$Responder.debug(java.lang.String)
-
- private static var debug_MethodID_5: jmethodID?
-
- open func debug( msg: String? ) -> [String]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: msg, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "debug", methodSig: "(Ljava/lang/String;)[Ljava/lang/String;", methodCache: &SwiftHello_ResponderForward.debug_MethodID_5, args: &__args, locals: &__locals )
- return JNIType.decode( type: [String](), from: __return )
- }
-
- open func debug( _ _msg: String? ) -> [String]! {
- return debug( msg: _msg )
- }
-
- /// public abstract void com.jh.SwiftHello$Responder.processedNumber(double)
-
- private static var processedNumber_MethodID_6: jmethodID?
-
- open func processedNumber( number: Double ) {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: number, locals: &__locals )
- JNIMethod.CallVoidMethod( object: javaObject, methodName: "processedNumber", methodSig: "(D)V", methodCache: &SwiftHello_ResponderForward.processedNumber_MethodID_6, args: &__args, locals: &__locals )
- }
-
- open func processedNumber( _ _number: Double ) {
- processedNumber( number: _number )
- }
-
- /// public abstract void com.jh.SwiftHello$Responder.processedText(java.lang.String)
-
- private static var processedText_MethodID_7: jmethodID?
-
- open func processedText( text: String? ) {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: text, locals: &__locals )
- JNIMethod.CallVoidMethod( object: javaObject, methodName: "processedText", methodSig: "(Ljava/lang/String;)V", methodCache: &SwiftHello_ResponderForward.processedText_MethodID_7, args: &__args, locals: &__locals )
- }
-
- open func processedText( _ _text: String? ) {
- processedText( text: _text )
- }
-
- /// public abstract com.jh.SwiftHelloTest$TestListener com.jh.SwiftHello$Responder.testResponder()
-
- private static var testResponder_MethodID_8: jmethodID?
-
- open func testResponder() -> SwiftHelloTest_TestListener! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "testResponder", methodSig: "()Lcom/jh/SwiftHelloTest$TestListener;", methodCache: &SwiftHello_ResponderForward.testResponder_MethodID_8, args: &__args, locals: &__locals )
- defer { JNI.DeleteLocalRef( __return ) }
- return __return != nil ? SwiftHelloTest_TestListenerForward( javaObject: __return ) : nil
- }
-
-
-}
-
-
diff --git a/com_johnholdsworth/Sources/SwiftHelloBinding.swift b/com_johnholdsworth/Sources/SwiftHelloBinding.swift
new file mode 100644
index 0000000..efcf81d
--- /dev/null
+++ b/com_johnholdsworth/Sources/SwiftHelloBinding.swift
@@ -0,0 +1,18 @@
+
+import java_swift
+
+/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
+
+/// interface com.johnholdsworth.swiftbindings.SwiftHelloBinding ///
+
+public protocol SwiftHelloBinding: JavaProtocol {
+
+}
+
+
+open class SwiftHelloBindingForward: JNIObjectForward, SwiftHelloBinding {
+
+ private static var SwiftHelloBindingJNIClass: jclass?
+
+}
+
diff --git a/com_johnholdsworth/Sources/SwiftHelloBinding_Listener.swift b/com_johnholdsworth/Sources/SwiftHelloBinding_Listener.swift
new file mode 100644
index 0000000..4f6b4ec
--- /dev/null
+++ b/com_johnholdsworth/Sources/SwiftHelloBinding_Listener.swift
@@ -0,0 +1,380 @@
+
+import java_swift
+
+/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
+
+/// interface com.johnholdsworth.swiftbindings.SwiftHelloBinding$Listener ///
+
+public protocol SwiftHelloBinding_Listener: JavaProtocol {
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Listener.processNumber(double)
+
+ func processNumber( number: Double )
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Listener.processStringMap(com.johnholdsworth.swiftbindings.SwiftHelloTypes$StringMap)
+
+ func processStringMap( map: [String:String]? )
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Listener.processStringMapList(com.johnholdsworth.swiftbindings.SwiftHelloTypes$StringMapList)
+
+ func processStringMapList( map: [String:[String]]? )
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Listener.processText(java.lang.String)
+
+ func processText( text: String? )
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Listener.processedMap(com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMap)
+
+ func processedMap( map: [String:SwiftHelloTypes_TextListener]? )
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Listener.processedMapList(com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMapList)
+
+ func processedMapList( map: [String:[SwiftHelloTypes_TextListener]]? )
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Listener.setCacheDir(java.lang.String)
+
+ func setCacheDir( cacheDir: String? )
+
+ /// public abstract com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener com.johnholdsworth.swiftbindings.SwiftHelloBinding$Listener.testResponder(int)
+
+ func testResponder( loopback: Int ) -> SwiftHelloTest_TestListener!
+
+ /// public abstract double com.johnholdsworth.swiftbindings.SwiftHelloBinding$Listener.throwException() throws java.lang.Exception
+
+ func throwException() throws /* java.lang.Exception */ -> Double
+
+}
+
+
+open class SwiftHelloBinding_ListenerForward: JNIObjectForward, SwiftHelloBinding_Listener {
+
+ private static var SwiftHelloBinding_ListenerJNIClass: jclass?
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Listener.processNumber(double)
+
+ private static var processNumber_MethodID_10: jmethodID?
+
+ open func processNumber( number: Double ) {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( d: number )
+ JNIMethod.CallVoidMethod( object: javaObject, methodName: "processNumber", methodSig: "(D)V", methodCache: &SwiftHelloBinding_ListenerForward.processNumber_MethodID_10, args: &__args, locals: &__locals )
+ }
+
+ open func processNumber( _ _number: Double ) {
+ processNumber( number: _number )
+ }
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Listener.processStringMap(com.johnholdsworth.swiftbindings.SwiftHelloTypes$StringMap)
+
+ private static var processStringMap_MethodID_11: jmethodID?
+
+ open func processStringMap( map: [String:String]? ) {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: map, mapClass: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$StringMap", locals: &__locals )
+ JNIMethod.CallVoidMethod( object: javaObject, methodName: "processStringMap", methodSig: "(Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$StringMap;)V", methodCache: &SwiftHelloBinding_ListenerForward.processStringMap_MethodID_11, args: &__args, locals: &__locals )
+ }
+
+ open func processStringMap( _ _map: [String:String]? ) {
+ processStringMap( map: _map )
+ }
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Listener.processStringMapList(com.johnholdsworth.swiftbindings.SwiftHelloTypes$StringMapList)
+
+ private static var processStringMapList_MethodID_12: jmethodID?
+
+ open func processStringMapList( map: [String:[String]]? ) {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: map, mapClass: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$StringMapList", locals: &__locals )
+ JNIMethod.CallVoidMethod( object: javaObject, methodName: "processStringMapList", methodSig: "(Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$StringMapList;)V", methodCache: &SwiftHelloBinding_ListenerForward.processStringMapList_MethodID_12, args: &__args, locals: &__locals )
+ }
+
+ open func processStringMapList( _ _map: [String:[String]]? ) {
+ processStringMapList( map: _map )
+ }
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Listener.processText(java.lang.String)
+
+ private static var processText_MethodID_13: jmethodID?
+
+ open func processText( text: String? ) {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: text, locals: &__locals )
+ JNIMethod.CallVoidMethod( object: javaObject, methodName: "processText", methodSig: "(Ljava/lang/String;)V", methodCache: &SwiftHelloBinding_ListenerForward.processText_MethodID_13, args: &__args, locals: &__locals )
+ }
+
+ open func processText( _ _text: String? ) {
+ processText( text: _text )
+ }
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Listener.processedMap(com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMap)
+
+ private static var processedMap_MethodID_14: jmethodID?
+
+ open func processedMap( map: [String:SwiftHelloTypes_TextListener]? ) {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: map, mapClass: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMap", locals: &__locals )
+ JNIMethod.CallVoidMethod( object: javaObject, methodName: "processedMap", methodSig: "(Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMap;)V", methodCache: &SwiftHelloBinding_ListenerForward.processedMap_MethodID_14, args: &__args, locals: &__locals )
+ }
+
+ open func processedMap( _ _map: [String:SwiftHelloTypes_TextListener]? ) {
+ processedMap( map: _map )
+ }
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Listener.processedMapList(com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMapList)
+
+ private static var processedMapList_MethodID_15: jmethodID?
+
+ open func processedMapList( map: [String:[SwiftHelloTypes_TextListener]]? ) {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: map, mapClass: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMapList", locals: &__locals )
+ JNIMethod.CallVoidMethod( object: javaObject, methodName: "processedMapList", methodSig: "(Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMapList;)V", methodCache: &SwiftHelloBinding_ListenerForward.processedMapList_MethodID_15, args: &__args, locals: &__locals )
+ }
+
+ open func processedMapList( _ _map: [String:[SwiftHelloTypes_TextListener]]? ) {
+ processedMapList( map: _map )
+ }
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Listener.setCacheDir(java.lang.String)
+
+ private static var setCacheDir_MethodID_16: jmethodID?
+
+ open func setCacheDir( cacheDir: String? ) {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: cacheDir, locals: &__locals )
+ JNIMethod.CallVoidMethod( object: javaObject, methodName: "setCacheDir", methodSig: "(Ljava/lang/String;)V", methodCache: &SwiftHelloBinding_ListenerForward.setCacheDir_MethodID_16, args: &__args, locals: &__locals )
+ }
+
+ open func setCacheDir( _ _cacheDir: String? ) {
+ setCacheDir( cacheDir: _cacheDir )
+ }
+
+ /// public abstract com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener com.johnholdsworth.swiftbindings.SwiftHelloBinding$Listener.testResponder(int)
+
+ private static var testResponder_MethodID_17: jmethodID?
+
+ open func testResponder( loopback: Int ) -> SwiftHelloTest_TestListener! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( i: jint(loopback) )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "testResponder", methodSig: "(I)Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", methodCache: &SwiftHelloBinding_ListenerForward.testResponder_MethodID_17, args: &__args, locals: &__locals )
+ defer { JNI.DeleteLocalRef( __return ) }
+ return __return != nil ? SwiftHelloTest_TestListenerForward( javaObject: __return ) : nil
+ }
+
+ open func testResponder( _ _loopback: Int ) -> SwiftHelloTest_TestListener! {
+ return testResponder( loopback: _loopback )
+ }
+
+ /// public abstract double com.johnholdsworth.swiftbindings.SwiftHelloBinding$Listener.throwException() throws java.lang.Exception
+
+ private static var throwException_MethodID_18: jmethodID?
+
+ open func throwException() throws /* java.lang.Exception */ -> Double {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ let __return = JNIMethod.CallDoubleMethod( object: javaObject, methodName: "throwException", methodSig: "()D", methodCache: &SwiftHelloBinding_ListenerForward.throwException_MethodID_18, args: &__args, locals: &__locals )
+ if let throwable = JNI.ExceptionCheck() {
+ defer { JNI.DeleteLocalRef( throwable ) }
+ throw java_swift.Exception( javaObject: throwable )
+ }
+ return __return
+ }
+
+
+}
+
+private typealias SwiftHelloBinding_Listener_processNumber_0_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jdouble ) -> ()
+
+private func SwiftHelloBinding_Listener_processNumber_0( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ number: jdouble ) -> () {
+ SwiftHelloBinding_ListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).processNumber( number: number )
+}
+
+private typealias SwiftHelloBinding_Listener_processStringMap_1_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> ()
+
+private func SwiftHelloBinding_Listener_processStringMap_1( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ map: jobject? ) -> () {
+ SwiftHelloBinding_ListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).processStringMap( map: JNIType.toSwift( type: [String:String].self, from: map, consume: false ) )
+}
+
+private typealias SwiftHelloBinding_Listener_processStringMapList_2_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> ()
+
+private func SwiftHelloBinding_Listener_processStringMapList_2( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ map: jobject? ) -> () {
+ SwiftHelloBinding_ListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).processStringMapList( map: JNIType.toSwift( type: [String:[String]].self, from: map, consume: false ) )
+}
+
+private typealias SwiftHelloBinding_Listener_processText_3_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> ()
+
+private func SwiftHelloBinding_Listener_processText_3( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ text: jobject? ) -> () {
+ SwiftHelloBinding_ListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).processText( text: text != nil ? String( javaObject: text ) : nil )
+}
+
+private typealias SwiftHelloBinding_Listener_processedMap_4_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> ()
+
+private func SwiftHelloBinding_Listener_processedMap_4( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ map: jobject? ) -> () {
+ SwiftHelloBinding_ListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).processedMap( map: JNIType.toSwift( type: [String:SwiftHelloTypes_TextListenerForward].self, from: map, consume: false ) )
+}
+
+private typealias SwiftHelloBinding_Listener_processedMapList_5_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> ()
+
+private func SwiftHelloBinding_Listener_processedMapList_5( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ map: jobject? ) -> () {
+ SwiftHelloBinding_ListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).processedMapList( map: JNIType.toSwift( type: [String:[SwiftHelloTypes_TextListenerForward]].self, from: map, consume: false ) )
+}
+
+private typealias SwiftHelloBinding_Listener_setCacheDir_6_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> ()
+
+private func SwiftHelloBinding_Listener_setCacheDir_6( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ cacheDir: jobject? ) -> () {
+ SwiftHelloBinding_ListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).setCacheDir( cacheDir: cacheDir != nil ? String( javaObject: cacheDir ) : nil )
+}
+
+private typealias SwiftHelloBinding_Listener_testResponder_7_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jint ) -> jobject?
+
+private func SwiftHelloBinding_Listener_testResponder_7( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ loopback: jint ) -> jobject? {
+ let __return = SwiftHelloBinding_ListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).testResponder( loopback: Int(loopback) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloBinding_Listener_throwException_8_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong ) -> jdouble
+
+private func SwiftHelloBinding_Listener_throwException_8( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong ) -> jdouble {
+ do {
+ let __return = try SwiftHelloBinding_ListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).throwException( )
+ var __locals = [jobject]()
+ return JNI.check( jvalue( d: __return ).d, &__locals, removeLast: true )
+ }
+ catch let exception as Throwable {
+ _ = exception.withJavaObject { JNI.api.Throw( JNI.env, $0 ) }
+ return 0
+ }
+ catch {
+ _ = Exception("Unknown exception").withJavaObject { JNI.api.Throw( JNI.env, $0 ) }
+ return 0
+ }
+}
+
+fileprivate class SwiftHelloBinding_ListenerLocal_: JNILocalProxy {
+
+ fileprivate static let _proxyClass: jclass = {
+ var natives = [JNINativeMethod]()
+
+ let SwiftHelloBinding_Listener_processNumber_0_thunk: SwiftHelloBinding_Listener_processNumber_0_type = SwiftHelloBinding_Listener_processNumber_0
+ natives.append( JNINativeMethod( name: strdup("__processNumber"), signature: strdup("(JD)V"), fnPtr: unsafeBitCast( SwiftHelloBinding_Listener_processNumber_0_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloBinding_Listener_processStringMap_1_thunk: SwiftHelloBinding_Listener_processStringMap_1_type = SwiftHelloBinding_Listener_processStringMap_1
+ natives.append( JNINativeMethod( name: strdup("__processStringMap"), signature: strdup("(JLcom/johnholdsworth/swiftbindings/SwiftHelloTypes$StringMap;)V"), fnPtr: unsafeBitCast( SwiftHelloBinding_Listener_processStringMap_1_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloBinding_Listener_processStringMapList_2_thunk: SwiftHelloBinding_Listener_processStringMapList_2_type = SwiftHelloBinding_Listener_processStringMapList_2
+ natives.append( JNINativeMethod( name: strdup("__processStringMapList"), signature: strdup("(JLcom/johnholdsworth/swiftbindings/SwiftHelloTypes$StringMapList;)V"), fnPtr: unsafeBitCast( SwiftHelloBinding_Listener_processStringMapList_2_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloBinding_Listener_processText_3_thunk: SwiftHelloBinding_Listener_processText_3_type = SwiftHelloBinding_Listener_processText_3
+ natives.append( JNINativeMethod( name: strdup("__processText"), signature: strdup("(JLjava/lang/String;)V"), fnPtr: unsafeBitCast( SwiftHelloBinding_Listener_processText_3_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloBinding_Listener_processedMap_4_thunk: SwiftHelloBinding_Listener_processedMap_4_type = SwiftHelloBinding_Listener_processedMap_4
+ natives.append( JNINativeMethod( name: strdup("__processedMap"), signature: strdup("(JLcom/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMap;)V"), fnPtr: unsafeBitCast( SwiftHelloBinding_Listener_processedMap_4_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloBinding_Listener_processedMapList_5_thunk: SwiftHelloBinding_Listener_processedMapList_5_type = SwiftHelloBinding_Listener_processedMapList_5
+ natives.append( JNINativeMethod( name: strdup("__processedMapList"), signature: strdup("(JLcom/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMapList;)V"), fnPtr: unsafeBitCast( SwiftHelloBinding_Listener_processedMapList_5_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloBinding_Listener_setCacheDir_6_thunk: SwiftHelloBinding_Listener_setCacheDir_6_type = SwiftHelloBinding_Listener_setCacheDir_6
+ natives.append( JNINativeMethod( name: strdup("__setCacheDir"), signature: strdup("(JLjava/lang/String;)V"), fnPtr: unsafeBitCast( SwiftHelloBinding_Listener_setCacheDir_6_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloBinding_Listener_testResponder_7_thunk: SwiftHelloBinding_Listener_testResponder_7_type = SwiftHelloBinding_Listener_testResponder_7
+ natives.append( JNINativeMethod( name: strdup("__testResponder"), signature: strdup("(JI)Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;"), fnPtr: unsafeBitCast( SwiftHelloBinding_Listener_testResponder_7_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloBinding_Listener_throwException_8_thunk: SwiftHelloBinding_Listener_throwException_8_type = SwiftHelloBinding_Listener_throwException_8
+ natives.append( JNINativeMethod( name: strdup("__throwException"), signature: strdup("(J)D"), fnPtr: unsafeBitCast( SwiftHelloBinding_Listener_throwException_8_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ natives.append( JNINativeMethod( name: strdup("__finalize"), signature: strdup("(J)V"), fnPtr: unsafeBitCast( JNIReleasableProxy__finalize_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let clazz = JNI.FindClass( proxyClassName() )
+ withUnsafePointer(to: &natives[0]) {
+ nativesPtr in
+ if JNI.api.RegisterNatives( JNI.env, clazz, nativesPtr, jint(natives.count) ) != jint(JNI_OK) {
+ JNI.report( "Unable to register java natives" )
+ }
+ }
+
+ defer { JNI.DeleteLocalRef( clazz ) }
+ return JNI.api.NewGlobalRef( JNI.env, clazz )!
+ }()
+
+ override open class func proxyClassName() -> String { return "org/swiftjava/com_johnholdsworth/SwiftHelloBinding_ListenerProxy" }
+ override open class func proxyClass() -> jclass? { return _proxyClass }
+
+}
+
+extension SwiftHelloBinding_Listener {
+
+ public func localJavaObject( _ locals: UnsafeMutablePointer<[jobject]> ) -> jobject? {
+ return SwiftHelloBinding_ListenerLocal_( owned: self, proto: self ).localJavaObject( locals )
+ }
+
+}
+
+open class SwiftHelloBinding_ListenerBase: SwiftHelloBinding_Listener {
+
+ public init() {}
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Listener.processNumber(double)
+
+ open func processNumber( number: Double ) /**/ {
+ }
+
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Listener.processStringMap(com.johnholdsworth.swiftbindings.SwiftHelloTypes$StringMap)
+
+ open func processStringMap( map: [String:String]? ) /**/ {
+ }
+
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Listener.processStringMapList(com.johnholdsworth.swiftbindings.SwiftHelloTypes$StringMapList)
+
+ open func processStringMapList( map: [String:[String]]? ) /**/ {
+ }
+
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Listener.processText(java.lang.String)
+
+ open func processText( text: String? ) /**/ {
+ }
+
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Listener.processedMap(com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMap)
+
+ open func processedMap( map: [String:SwiftHelloTypes_TextListener]? ) /**/ {
+ }
+
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Listener.processedMapList(com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMapList)
+
+ open func processedMapList( map: [String:[SwiftHelloTypes_TextListener]]? ) /**/ {
+ }
+
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Listener.setCacheDir(java.lang.String)
+
+ open func setCacheDir( cacheDir: String? ) /**/ {
+ }
+
+
+ /// public abstract com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener com.johnholdsworth.swiftbindings.SwiftHelloBinding$Listener.testResponder(int)
+
+ open func testResponder( loopback: Int ) -> SwiftHelloTest_TestListener! /**/ {
+ return nil
+ }
+
+
+ /// public abstract double com.johnholdsworth.swiftbindings.SwiftHelloBinding$Listener.throwException() throws java.lang.Exception
+
+ open func throwException() throws /* java.lang.Exception */ -> Double /**/ {
+ return 0
+ }
+
+
+}
diff --git a/com_johnholdsworth/Sources/SwiftHelloBinding_Responder.swift b/com_johnholdsworth/Sources/SwiftHelloBinding_Responder.swift
new file mode 100644
index 0000000..2515948
--- /dev/null
+++ b/com_johnholdsworth/Sources/SwiftHelloBinding_Responder.swift
@@ -0,0 +1,269 @@
+
+import java_swift
+
+/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
+
+/// interface com.johnholdsworth.swiftbindings.SwiftHelloBinding$Responder ///
+
+public protocol SwiftHelloBinding_Responder: JavaProtocol {
+
+ /// public abstract java.lang.String[] com.johnholdsworth.swiftbindings.SwiftHelloBinding$Responder.debug(java.lang.String)
+
+ func debug( msg: String? ) -> [String]!
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Responder.onMainThread(java.lang.Runnable)
+
+ func onMainThread( runnable: java_swift.Runnable? )
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Responder.processMap(com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMap)
+
+ func processMap( map: [String:SwiftHelloTypes_TextListener]? )
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Responder.processMapList(com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMapList)
+
+ func processMapList( map: [String:[SwiftHelloTypes_TextListener]]? )
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Responder.processedNumber(double)
+
+ func processedNumber( number: Double )
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Responder.processedStringMap(com.johnholdsworth.swiftbindings.SwiftHelloTypes$StringMap)
+
+ func processedStringMap( map: [String:String]? )
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Responder.processedStringMapList(com.johnholdsworth.swiftbindings.SwiftHelloTypes$StringMapList)
+
+ func processedStringMapList( map: [String:[String]]? )
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Responder.processedText(java.lang.String)
+
+ func processedText( text: String? )
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Responder.processedTextListener(com.johnholdsworth.swiftbindings.SwiftHelloTypes$TextListener)
+
+ func processedTextListener( text: SwiftHelloTypes_TextListener? )
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Responder.processedTextListener2dArray(com.johnholdsworth.swiftbindings.SwiftHelloTypes$TextListener[][])
+
+ func processedTextListener2dArray( text: [[SwiftHelloTypes_TextListener]]? )
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Responder.processedTextListenerArray(com.johnholdsworth.swiftbindings.SwiftHelloTypes$TextListener[])
+
+ func processedTextListenerArray( text: [SwiftHelloTypes_TextListener]? )
+
+ /// public abstract com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener com.johnholdsworth.swiftbindings.SwiftHelloBinding$Responder.testResponder(int)
+
+ func testResponder( loopback: Int ) -> SwiftHelloTest_TestListener!
+
+ /// public abstract double com.johnholdsworth.swiftbindings.SwiftHelloBinding$Responder.throwException() throws java.lang.Exception
+
+ func throwException() throws /* java.lang.Exception */ -> Double
+
+}
+
+
+open class SwiftHelloBinding_ResponderForward: JNIObjectForward, SwiftHelloBinding_Responder {
+
+ private static var SwiftHelloBinding_ResponderJNIClass: jclass?
+
+ /// public abstract java.lang.String[] com.johnholdsworth.swiftbindings.SwiftHelloBinding$Responder.debug(java.lang.String)
+
+ private static var debug_MethodID_14: jmethodID?
+
+ open func debug( msg: String? ) -> [String]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: msg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "debug", methodSig: "(Ljava/lang/String;)[Ljava/lang/String;", methodCache: &SwiftHelloBinding_ResponderForward.debug_MethodID_14, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [String].self, from: __return )
+ }
+
+ open func debug( _ _msg: String? ) -> [String]! {
+ return debug( msg: _msg )
+ }
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Responder.onMainThread(java.lang.Runnable)
+
+ private static var onMainThread_MethodID_15: jmethodID?
+
+ open func onMainThread( runnable: java_swift.Runnable? ) {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: runnable, locals: &__locals )
+ JNIMethod.CallVoidMethod( object: javaObject, methodName: "onMainThread", methodSig: "(Ljava/lang/Runnable;)V", methodCache: &SwiftHelloBinding_ResponderForward.onMainThread_MethodID_15, args: &__args, locals: &__locals )
+ }
+
+ open func onMainThread( _ _runnable: java_swift.Runnable? ) {
+ onMainThread( runnable: _runnable )
+ }
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Responder.processMap(com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMap)
+
+ private static var processMap_MethodID_16: jmethodID?
+
+ open func processMap( map: [String:SwiftHelloTypes_TextListener]? ) {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: map, mapClass: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMap", locals: &__locals )
+ JNIMethod.CallVoidMethod( object: javaObject, methodName: "processMap", methodSig: "(Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMap;)V", methodCache: &SwiftHelloBinding_ResponderForward.processMap_MethodID_16, args: &__args, locals: &__locals )
+ }
+
+ open func processMap( _ _map: [String:SwiftHelloTypes_TextListener]? ) {
+ processMap( map: _map )
+ }
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Responder.processMapList(com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMapList)
+
+ private static var processMapList_MethodID_17: jmethodID?
+
+ open func processMapList( map: [String:[SwiftHelloTypes_TextListener]]? ) {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: map, mapClass: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMapList", locals: &__locals )
+ JNIMethod.CallVoidMethod( object: javaObject, methodName: "processMapList", methodSig: "(Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMapList;)V", methodCache: &SwiftHelloBinding_ResponderForward.processMapList_MethodID_17, args: &__args, locals: &__locals )
+ }
+
+ open func processMapList( _ _map: [String:[SwiftHelloTypes_TextListener]]? ) {
+ processMapList( map: _map )
+ }
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Responder.processedNumber(double)
+
+ private static var processedNumber_MethodID_18: jmethodID?
+
+ open func processedNumber( number: Double ) {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( d: number )
+ JNIMethod.CallVoidMethod( object: javaObject, methodName: "processedNumber", methodSig: "(D)V", methodCache: &SwiftHelloBinding_ResponderForward.processedNumber_MethodID_18, args: &__args, locals: &__locals )
+ }
+
+ open func processedNumber( _ _number: Double ) {
+ processedNumber( number: _number )
+ }
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Responder.processedStringMap(com.johnholdsworth.swiftbindings.SwiftHelloTypes$StringMap)
+
+ private static var processedStringMap_MethodID_19: jmethodID?
+
+ open func processedStringMap( map: [String:String]? ) {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: map, mapClass: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$StringMap", locals: &__locals )
+ JNIMethod.CallVoidMethod( object: javaObject, methodName: "processedStringMap", methodSig: "(Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$StringMap;)V", methodCache: &SwiftHelloBinding_ResponderForward.processedStringMap_MethodID_19, args: &__args, locals: &__locals )
+ }
+
+ open func processedStringMap( _ _map: [String:String]? ) {
+ processedStringMap( map: _map )
+ }
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Responder.processedStringMapList(com.johnholdsworth.swiftbindings.SwiftHelloTypes$StringMapList)
+
+ private static var processedStringMapList_MethodID_20: jmethodID?
+
+ open func processedStringMapList( map: [String:[String]]? ) {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: map, mapClass: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$StringMapList", locals: &__locals )
+ JNIMethod.CallVoidMethod( object: javaObject, methodName: "processedStringMapList", methodSig: "(Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$StringMapList;)V", methodCache: &SwiftHelloBinding_ResponderForward.processedStringMapList_MethodID_20, args: &__args, locals: &__locals )
+ }
+
+ open func processedStringMapList( _ _map: [String:[String]]? ) {
+ processedStringMapList( map: _map )
+ }
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Responder.processedText(java.lang.String)
+
+ private static var processedText_MethodID_21: jmethodID?
+
+ open func processedText( text: String? ) {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: text, locals: &__locals )
+ JNIMethod.CallVoidMethod( object: javaObject, methodName: "processedText", methodSig: "(Ljava/lang/String;)V", methodCache: &SwiftHelloBinding_ResponderForward.processedText_MethodID_21, args: &__args, locals: &__locals )
+ }
+
+ open func processedText( _ _text: String? ) {
+ processedText( text: _text )
+ }
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Responder.processedTextListener(com.johnholdsworth.swiftbindings.SwiftHelloTypes$TextListener)
+
+ private static var processedTextListener_MethodID_22: jmethodID?
+
+ open func processedTextListener( text: SwiftHelloTypes_TextListener? ) {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: text, locals: &__locals )
+ JNIMethod.CallVoidMethod( object: javaObject, methodName: "processedTextListener", methodSig: "(Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$TextListener;)V", methodCache: &SwiftHelloBinding_ResponderForward.processedTextListener_MethodID_22, args: &__args, locals: &__locals )
+ }
+
+ open func processedTextListener( _ _text: SwiftHelloTypes_TextListener? ) {
+ processedTextListener( text: _text )
+ }
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Responder.processedTextListener2dArray(com.johnholdsworth.swiftbindings.SwiftHelloTypes$TextListener[][])
+
+ private static var processedTextListener2dArray_MethodID_23: jmethodID?
+
+ open func processedTextListener2dArray( text: [[SwiftHelloTypes_TextListener]]? ) {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: text, locals: &__locals )
+ JNIMethod.CallVoidMethod( object: javaObject, methodName: "processedTextListener2dArray", methodSig: "([[Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$TextListener;)V", methodCache: &SwiftHelloBinding_ResponderForward.processedTextListener2dArray_MethodID_23, args: &__args, locals: &__locals )
+ }
+
+ open func processedTextListener2dArray( _ _text: [[SwiftHelloTypes_TextListener]]? ) {
+ processedTextListener2dArray( text: _text )
+ }
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloBinding$Responder.processedTextListenerArray(com.johnholdsworth.swiftbindings.SwiftHelloTypes$TextListener[])
+
+ private static var processedTextListenerArray_MethodID_24: jmethodID?
+
+ open func processedTextListenerArray( text: [SwiftHelloTypes_TextListener]? ) {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: text, locals: &__locals )
+ JNIMethod.CallVoidMethod( object: javaObject, methodName: "processedTextListenerArray", methodSig: "([Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$TextListener;)V", methodCache: &SwiftHelloBinding_ResponderForward.processedTextListenerArray_MethodID_24, args: &__args, locals: &__locals )
+ }
+
+ open func processedTextListenerArray( _ _text: [SwiftHelloTypes_TextListener]? ) {
+ processedTextListenerArray( text: _text )
+ }
+
+ /// public abstract com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener com.johnholdsworth.swiftbindings.SwiftHelloBinding$Responder.testResponder(int)
+
+ private static var testResponder_MethodID_25: jmethodID?
+
+ open func testResponder( loopback: Int ) -> SwiftHelloTest_TestListener! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( i: jint(loopback) )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "testResponder", methodSig: "(I)Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", methodCache: &SwiftHelloBinding_ResponderForward.testResponder_MethodID_25, args: &__args, locals: &__locals )
+ defer { JNI.DeleteLocalRef( __return ) }
+ return __return != nil ? SwiftHelloTest_TestListenerForward( javaObject: __return ) : nil
+ }
+
+ open func testResponder( _ _loopback: Int ) -> SwiftHelloTest_TestListener! {
+ return testResponder( loopback: _loopback )
+ }
+
+ /// public abstract double com.johnholdsworth.swiftbindings.SwiftHelloBinding$Responder.throwException() throws java.lang.Exception
+
+ private static var throwException_MethodID_26: jmethodID?
+
+ open func throwException() throws /* java.lang.Exception */ -> Double {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ let __return = JNIMethod.CallDoubleMethod( object: javaObject, methodName: "throwException", methodSig: "()D", methodCache: &SwiftHelloBinding_ResponderForward.throwException_MethodID_26, args: &__args, locals: &__locals )
+ if let throwable = JNI.ExceptionCheck() {
+ defer { JNI.DeleteLocalRef( throwable ) }
+ throw java_swift.Exception( javaObject: throwable )
+ }
+ return __return
+ }
+
+
+}
+
diff --git a/com_jh/Sources/SwiftHelloTest.swift b/com_johnholdsworth/Sources/SwiftHelloTest.swift
similarity index 64%
rename from com_jh/Sources/SwiftHelloTest.swift
rename to com_johnholdsworth/Sources/SwiftHelloTest.swift
index dbd93a0..29164fc 100644
--- a/com_jh/Sources/SwiftHelloTest.swift
+++ b/com_johnholdsworth/Sources/SwiftHelloTest.swift
@@ -3,19 +3,16 @@ import java_swift
/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
-/// JAVA_HOME: /Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home ///
-/// Tue Dec 20 14:14:24 GMT 2016 ///
-
-/// interface com.jh.SwiftHelloTest ///
+/// interface com.johnholdsworth.swiftbindings.SwiftHelloTest ///
public protocol SwiftHelloTest: JavaProtocol {
}
+
open class SwiftHelloTestForward: JNIObjectForward, SwiftHelloTest {
private static var SwiftHelloTestJNIClass: jclass?
}
-
diff --git a/com_johnholdsworth/Sources/SwiftHelloTestImpl.swift b/com_johnholdsworth/Sources/SwiftHelloTestImpl.swift
new file mode 100644
index 0000000..4a6b5b9
--- /dev/null
+++ b/com_johnholdsworth/Sources/SwiftHelloTestImpl.swift
@@ -0,0 +1,315 @@
+
+// auto generated by ../../gentests.rb
+
+import java_swift
+import Foundation
+
+public class SwiftTestListener: SwiftHelloTest_TestListenerBase {
+
+ var loopback: SwiftHelloTest_TestListener?
+
+ override public func booleanMethod( arg: Bool ) -> Bool {
+ return loopback?.booleanMethod( arg: arg ) ?? arg
+ }
+
+ override public func booleanArrayMethod( arg: [Bool]? ) -> [Bool]? {
+ return loopback?.booleanArrayMethod( arg: arg ) ?? arg
+ }
+
+ override public func boolean2dArrayMethod( arg: [[Bool]]? ) -> [[Bool]]? {
+ return loopback?.boolean2dArrayMethod( arg: arg ) ?? arg
+ }
+
+ override public func byteMethod( arg: Int8 ) -> Int8 {
+ return loopback?.byteMethod( arg: arg ) ?? arg
+ }
+
+ override public func byteArrayMethod( arg: [Int8]? ) -> [Int8]? {
+ return loopback?.byteArrayMethod( arg: arg ) ?? arg
+ }
+
+ override public func byte2dArrayMethod( arg: [[Int8]]? ) -> [[Int8]]? {
+ return loopback?.byte2dArrayMethod( arg: arg ) ?? arg
+ }
+
+ override public func charMethod( arg: UInt16 ) -> UInt16 {
+ return loopback?.charMethod( arg: arg ) ?? arg
+ }
+
+ override public func charArrayMethod( arg: [UInt16]? ) -> [UInt16]? {
+ return loopback?.charArrayMethod( arg: arg ) ?? arg
+ }
+
+ override public func char2dArrayMethod( arg: [[UInt16]]? ) -> [[UInt16]]? {
+ return loopback?.char2dArrayMethod( arg: arg ) ?? arg
+ }
+
+ override public func shortMethod( arg: Int16 ) -> Int16 {
+ return loopback?.shortMethod( arg: arg ) ?? arg
+ }
+
+ override public func shortArrayMethod( arg: [Int16]? ) -> [Int16]? {
+ return loopback?.shortArrayMethod( arg: arg ) ?? arg
+ }
+
+ override public func short2dArrayMethod( arg: [[Int16]]? ) -> [[Int16]]? {
+ return loopback?.short2dArrayMethod( arg: arg ) ?? arg
+ }
+
+ override public func intMethod( arg: Int ) -> Int {
+ return loopback?.intMethod( arg: arg ) ?? arg
+ }
+
+ override public func intArrayMethod( arg: [Int32]? ) -> [Int32]? {
+ return loopback?.intArrayMethod( arg: arg ) ?? arg
+ }
+
+ override public func int2dArrayMethod( arg: [[Int32]]? ) -> [[Int32]]? {
+ return loopback?.int2dArrayMethod( arg: arg ) ?? arg
+ }
+
+ override public func longMethod( arg: Int64 ) -> Int64 {
+ return loopback?.longMethod( arg: arg ) ?? arg
+ }
+
+ override public func longArrayMethod( arg: [Int64]? ) -> [Int64]? {
+ return loopback?.longArrayMethod( arg: arg ) ?? arg
+ }
+
+ override public func long2dArrayMethod( arg: [[Int64]]? ) -> [[Int64]]? {
+ return loopback?.long2dArrayMethod( arg: arg ) ?? arg
+ }
+
+ override public func floatMethod( arg: Float ) -> Float {
+ return loopback?.floatMethod( arg: arg ) ?? arg
+ }
+
+ override public func floatArrayMethod( arg: [Float]? ) -> [Float]? {
+ return loopback?.floatArrayMethod( arg: arg ) ?? arg
+ }
+
+ override public func float2dArrayMethod( arg: [[Float]]? ) -> [[Float]]? {
+ return loopback?.float2dArrayMethod( arg: arg ) ?? arg
+ }
+
+ override public func doubleMethod( arg: Double ) -> Double {
+ return loopback?.doubleMethod( arg: arg ) ?? arg
+ }
+
+ override public func doubleArrayMethod( arg: [Double]? ) -> [Double]? {
+ return loopback?.doubleArrayMethod( arg: arg ) ?? arg
+ }
+
+ override public func double2dArrayMethod( arg: [[Double]]? ) -> [[Double]]? {
+ return loopback?.double2dArrayMethod( arg: arg ) ?? arg
+ }
+
+ override public func StringMethod( arg: String? ) -> String? {
+ return loopback?.StringMethod( arg: arg ) ?? arg
+ }
+
+ override public func StringArrayMethod( arg: [String]? ) -> [String]? {
+ return loopback?.StringArrayMethod( arg: arg ) ?? arg
+ }
+
+ override public func String2dArrayMethod( arg: [[String]]? ) -> [[String]]? {
+ return loopback?.String2dArrayMethod( arg: arg ) ?? arg
+ }
+
+ override public func TestListenerMethod( arg: SwiftHelloTest_TestListener? ) -> SwiftHelloTest_TestListener? {
+ return loopback?.TestListenerMethod( arg: arg ) ?? arg
+ }
+
+ override public func TestListenerArrayMethod( arg: [SwiftHelloTest_TestListener]? ) -> [SwiftHelloTest_TestListener]? {
+ return loopback?.TestListenerArrayMethod( arg: arg ) ?? arg
+ }
+
+ override public func TestListener2dArrayMethod( arg: [[SwiftHelloTest_TestListener]]? ) -> [[SwiftHelloTest_TestListener]]? {
+ return loopback?.TestListener2dArrayMethod( arg: arg ) ?? arg
+ }
+
+}
+
+public class SwiftTestResponder {
+
+ static var tcount = 0
+
+ public func respond( to responder: SwiftHelloTest_TestListener ) {
+ SwiftTestResponder.tcount += 1
+ NSLog("Swift -> Java \(SwiftTestResponder.tcount)...")
+
+ if true {
+ let reference: Bool = true
+ let referenceArray = [(reference)]
+ let reference2dArray = [referenceArray]
+
+ let response = responder.booleanMethod( arg: reference )
+ let responseArray = responder.booleanArrayMethod( arg: referenceArray )!
+ _ = responder.boolean2dArrayMethod( arg: reference2dArray )
+
+ if response != reference {
+ NSLog("Bool: \(String(describing: response)) != \(reference)")
+ }
+ if responseArray != referenceArray {
+ NSLog("Bool: \(responseArray) != \(referenceArray)")
+ }
+ }
+
+
+ if true {
+ let reference: Int8 = 123
+ let referenceArray = [(reference)]
+ let reference2dArray = [referenceArray]
+
+ let response = responder.byteMethod( arg: reference )
+ let responseArray = responder.byteArrayMethod( arg: referenceArray )!
+ _ = responder.byte2dArrayMethod( arg: reference2dArray )
+
+ if response != reference {
+ NSLog("Int8: \(String(describing: response)) != \(reference)")
+ }
+ if responseArray != referenceArray {
+ NSLog("Int8: \(responseArray) != \(referenceArray)")
+ }
+ }
+
+
+ if true {
+ let reference: UInt16 = 123
+ let referenceArray = [(reference)]
+ let reference2dArray = [referenceArray]
+
+ let response = responder.charMethod( arg: reference )
+ let responseArray = responder.charArrayMethod( arg: referenceArray )!
+ _ = responder.char2dArrayMethod( arg: reference2dArray )
+
+ if response != reference {
+ NSLog("UInt16: \(String(describing: response)) != \(reference)")
+ }
+ if responseArray != referenceArray {
+ NSLog("UInt16: \(responseArray) != \(referenceArray)")
+ }
+ }
+
+
+ if true {
+ let reference: Int16 = 123
+ let referenceArray = [(reference)]
+ let reference2dArray = [referenceArray]
+
+ let response = responder.shortMethod( arg: reference )
+ let responseArray = responder.shortArrayMethod( arg: referenceArray )!
+ _ = responder.short2dArrayMethod( arg: reference2dArray )
+
+ if response != reference {
+ NSLog("Int16: \(String(describing: response)) != \(reference)")
+ }
+ if responseArray != referenceArray {
+ NSLog("Int16: \(responseArray) != \(referenceArray)")
+ }
+ }
+
+
+ if true {
+ let reference: Int = 123
+ let referenceArray = [Int32(reference)]
+ let reference2dArray = [referenceArray]
+
+ let response = responder.intMethod( arg: reference )
+ let responseArray = responder.intArrayMethod( arg: referenceArray )!
+ _ = responder.int2dArrayMethod( arg: reference2dArray )
+
+ if response != reference {
+ NSLog("Int: \(String(describing: response)) != \(reference)")
+ }
+ if responseArray != referenceArray {
+ NSLog("Int: \(responseArray) != \(referenceArray)")
+ }
+ }
+
+
+ if true {
+ let reference: Int64 = 123
+ let referenceArray = [(reference)]
+ let reference2dArray = [referenceArray]
+
+ let response = responder.longMethod( arg: reference )
+ let responseArray = responder.longArrayMethod( arg: referenceArray )!
+ _ = responder.long2dArrayMethod( arg: reference2dArray )
+
+ if response != reference {
+ NSLog("Int64: \(String(describing: response)) != \(reference)")
+ }
+ if responseArray != referenceArray {
+ NSLog("Int64: \(responseArray) != \(referenceArray)")
+ }
+ }
+
+
+ if true {
+ let reference: Float = 123
+ let referenceArray = [(reference)]
+ let reference2dArray = [referenceArray]
+
+ let response = responder.floatMethod( arg: reference )
+ let responseArray = responder.floatArrayMethod( arg: referenceArray )!
+ _ = responder.float2dArrayMethod( arg: reference2dArray )
+
+ if response != reference {
+ NSLog("Float: \(String(describing: response)) != \(reference)")
+ }
+ if responseArray != referenceArray {
+ NSLog("Float: \(responseArray) != \(referenceArray)")
+ }
+ }
+
+
+ if true {
+ let reference: Double = 123
+ let referenceArray = [(reference)]
+ let reference2dArray = [referenceArray]
+
+ let response = responder.doubleMethod( arg: reference )
+ let responseArray = responder.doubleArrayMethod( arg: referenceArray )!
+ _ = responder.double2dArrayMethod( arg: reference2dArray )
+
+ if response != reference {
+ NSLog("Double: \(String(describing: response)) != \(reference)")
+ }
+ if responseArray != referenceArray {
+ NSLog("Double: \(responseArray) != \(referenceArray)")
+ }
+ }
+
+
+ if true {
+ let reference: String = "123"
+ let referenceArray = [(reference)]
+ let reference2dArray = [referenceArray]
+
+ let response = responder.StringMethod( arg: reference )
+ let responseArray = responder.StringArrayMethod( arg: referenceArray )!
+ _ = responder.String2dArrayMethod( arg: reference2dArray )
+
+ if response != reference {
+ NSLog("String: \(String(describing: response)) != \(reference)")
+ }
+ if responseArray != referenceArray {
+ NSLog("String: \(responseArray) != \(referenceArray)")
+ }
+ }
+
+
+ if true {
+ let reference: SwiftHelloTest_TestListener = SwiftTestListener()
+ let referenceArray = [(reference)]
+ let reference2dArray = [referenceArray]
+
+ let response = responder.TestListenerMethod( arg: reference )
+ let responseArray = responder.TestListenerArrayMethod( arg: referenceArray )!
+ _ = responder.TestListener2dArrayMethod( arg: reference2dArray )
+ }
+
+ }
+
+}
diff --git a/com_johnholdsworth/Sources/SwiftHelloTest_SwiftTestListener.swift b/com_johnholdsworth/Sources/SwiftHelloTest_SwiftTestListener.swift
new file mode 100644
index 0000000..e724137
--- /dev/null
+++ b/com_johnholdsworth/Sources/SwiftHelloTest_SwiftTestListener.swift
@@ -0,0 +1,68 @@
+
+import java_swift
+
+/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
+
+/// class com.johnholdsworth.swiftbindings.SwiftHelloTest$SwiftTestListener ///
+
+open class SwiftHelloTest_SwiftTestListener: SwiftHelloTest_TestResponderAdapter {
+
+ public convenience init?( casting object: java_swift.JavaObject, _ file: StaticString = #file, _ line: Int = #line ) {
+ self.init( javaObject: nil )
+ object.withJavaObject {
+ self.javaObject = $0
+ }
+ }
+
+ private static var SwiftHelloTest_SwiftTestListenerJNIClass: jclass?
+
+ /// static int com.johnholdsworth.swiftbindings.SwiftHelloTest$SwiftTestListener.tcount
+
+ // Skipping field: true false false false false false
+
+ /// public com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.loopback
+
+ private static var loopback_FieldID: jfieldID?
+
+ override open var loopback: SwiftHelloTest_TestListener! {
+ get {
+ let __value = JNIField.GetObjectField( fieldName: "loopback", fieldType: "Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", fieldCache: &SwiftHelloTest_SwiftTestListener.loopback_FieldID, object: javaObject )
+ defer { JNI.DeleteLocalRef( __value ) }
+ return __value != nil ? SwiftHelloTest_TestListenerForward( javaObject: __value ) : nil
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetObjectField( fieldName: "loopback", fieldType: "Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", fieldCache: &SwiftHelloTest_SwiftTestListener.loopback_FieldID, object: javaObject, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public com.johnholdsworth.swiftbindings.SwiftHelloTest$SwiftTestListener()
+
+ 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: "com/johnholdsworth/swiftbindings/SwiftHelloTest$SwiftTestListener", classCache: &SwiftHelloTest_SwiftTestListener.SwiftHelloTest_SwiftTestListenerJNIClass, methodSig: "()V", methodCache: &SwiftHelloTest_SwiftTestListener.new_MethodID_1, args: &__args, locals: &__locals )
+ self.init( javaObject: __object )
+ JNI.DeleteLocalRef( __object )
+ }
+
+ /// public void com.johnholdsworth.swiftbindings.SwiftHelloTest$SwiftTestListener.respond(com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener)
+
+ private static var respond_MethodID_2: jmethodID?
+
+ open func respond( responder: SwiftHelloTest_TestListener? ) {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: responder, locals: &__locals )
+ JNIMethod.CallVoidMethod( object: javaObject, methodName: "respond", methodSig: "(Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;)V", methodCache: &SwiftHelloTest_SwiftTestListener.respond_MethodID_2, args: &__args, locals: &__locals )
+ }
+
+ open func respond( _ _responder: SwiftHelloTest_TestListener? ) {
+ respond( responder: _responder )
+ }
+
+}
+
diff --git a/com_johnholdsworth/Sources/SwiftHelloTest_TestListener.swift b/com_johnholdsworth/Sources/SwiftHelloTest_TestListener.swift
new file mode 100644
index 0000000..d853b49
--- /dev/null
+++ b/com_johnholdsworth/Sources/SwiftHelloTest_TestListener.swift
@@ -0,0 +1,1307 @@
+
+import java_swift
+
+/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
+
+/// interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener ///
+
+public protocol SwiftHelloTest_TestListener: JavaProtocol {
+
+ /// public abstract java.lang.String[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.String2dArrayMethod(java.lang.String[][])
+
+ func String2dArrayMethod( arg: [[String]]? ) -> [[String]]!
+
+ /// public abstract java.lang.String[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.StringArrayMethod(java.lang.String[])
+
+ func StringArrayMethod( arg: [String]? ) -> [String]!
+
+ /// public abstract java.lang.String com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.StringMethod(java.lang.String)
+
+ func StringMethod( arg: String? ) -> String!
+
+ /// public abstract com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.TestListener2dArrayMethod(com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener[][])
+
+ func TestListener2dArrayMethod( arg: [[SwiftHelloTest_TestListener]]? ) -> [[SwiftHelloTest_TestListener]]!
+
+ /// public abstract com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.TestListenerArrayMethod(com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener[])
+
+ func TestListenerArrayMethod( arg: [SwiftHelloTest_TestListener]? ) -> [SwiftHelloTest_TestListener]!
+
+ /// public abstract com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.TestListenerMethod(com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener)
+
+ func TestListenerMethod( arg: SwiftHelloTest_TestListener? ) -> SwiftHelloTest_TestListener!
+
+ /// public abstract boolean[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.boolean2dArrayMethod(boolean[][])
+
+ func boolean2dArrayMethod( arg: [[Bool]]? ) -> [[Bool]]!
+
+ /// public abstract boolean[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.booleanArrayMethod(boolean[])
+
+ func booleanArrayMethod( arg: [Bool]? ) -> [Bool]!
+
+ /// public abstract boolean com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.booleanMethod(boolean)
+
+ func booleanMethod( arg: Bool ) -> Bool
+
+ /// public abstract byte[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.byte2dArrayMethod(byte[][])
+
+ func byte2dArrayMethod( arg: [[Int8]]? ) -> [[Int8]]!
+
+ /// public abstract byte[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.byteArrayMethod(byte[])
+
+ func byteArrayMethod( arg: [Int8]? ) -> [Int8]!
+
+ /// public abstract byte com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.byteMethod(byte)
+
+ func byteMethod( arg: Int8 ) -> Int8
+
+ /// public abstract char[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.char2dArrayMethod(char[][])
+
+ func char2dArrayMethod( arg: [[UInt16]]? ) -> [[UInt16]]!
+
+ /// public abstract char[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.charArrayMethod(char[])
+
+ func charArrayMethod( arg: [UInt16]? ) -> [UInt16]!
+
+ /// public abstract char com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.charMethod(char)
+
+ func charMethod( arg: UInt16 ) -> UInt16
+
+ /// public abstract double[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.double2dArrayMethod(double[][])
+
+ func double2dArrayMethod( arg: [[Double]]? ) -> [[Double]]!
+
+ /// public abstract double[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.doubleArrayMethod(double[])
+
+ func doubleArrayMethod( arg: [Double]? ) -> [Double]!
+
+ /// public abstract double com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.doubleMethod(double)
+
+ func doubleMethod( arg: Double ) -> Double
+
+ /// public abstract float[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.float2dArrayMethod(float[][])
+
+ func float2dArrayMethod( arg: [[Float]]? ) -> [[Float]]!
+
+ /// public abstract float[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.floatArrayMethod(float[])
+
+ func floatArrayMethod( arg: [Float]? ) -> [Float]!
+
+ /// public abstract float com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.floatMethod(float)
+
+ func floatMethod( arg: Float ) -> Float
+
+ /// public abstract int[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.int2dArrayMethod(int[][])
+
+ func int2dArrayMethod( arg: [[Int32]]? ) -> [[Int32]]!
+
+ /// public abstract int[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.intArrayMethod(int[])
+
+ func intArrayMethod( arg: [Int32]? ) -> [Int32]!
+
+ /// public abstract int com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.intMethod(int)
+
+ func intMethod( arg: Int ) -> Int
+
+ /// public abstract long[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.long2dArrayMethod(long[][])
+
+ func long2dArrayMethod( arg: [[Int64]]? ) -> [[Int64]]!
+
+ /// public abstract long[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.longArrayMethod(long[])
+
+ func longArrayMethod( arg: [Int64]? ) -> [Int64]!
+
+ /// public abstract long com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.longMethod(long)
+
+ func longMethod( arg: Int64 ) -> Int64
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.setLoopback(com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener)
+
+ func setLoopback( loopback: SwiftHelloTest_TestListener? )
+
+ /// public abstract short[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.short2dArrayMethod(short[][])
+
+ func short2dArrayMethod( arg: [[Int16]]? ) -> [[Int16]]!
+
+ /// public abstract short[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.shortArrayMethod(short[])
+
+ func shortArrayMethod( arg: [Int16]? ) -> [Int16]!
+
+ /// public abstract short com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.shortMethod(short)
+
+ func shortMethod( arg: Int16 ) -> Int16
+
+ /// public abstract com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMap com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.testMap(com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMap)
+
+ func testMap( arg: [String:SwiftHelloTypes_TextListener]? ) -> [String:SwiftHelloTypes_TextListener]!
+
+ /// public abstract com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMapList com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.testMapList(com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMapList)
+
+ func testMapList( arg: [String:[SwiftHelloTypes_TextListener]]? ) -> [String:[SwiftHelloTypes_TextListener]]!
+
+}
+
+
+open class SwiftHelloTest_TestListenerForward: JNIObjectForward, SwiftHelloTest_TestListener {
+
+ private static var SwiftHelloTest_TestListenerJNIClass: jclass?
+
+ /// public abstract java.lang.String[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.String2dArrayMethod(java.lang.String[][])
+
+ private static var String2dArrayMethod_MethodID_34: jmethodID?
+
+ open func String2dArrayMethod( arg: [[String]]? ) -> [[String]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "String2dArrayMethod", methodSig: "([[Ljava/lang/String;)[[Ljava/lang/String;", methodCache: &SwiftHelloTest_TestListenerForward.String2dArrayMethod_MethodID_34, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[String]].self, from: __return )
+ }
+
+ open func String2dArrayMethod( _ _arg: [[String]]? ) -> [[String]]! {
+ return String2dArrayMethod( arg: _arg )
+ }
+
+ /// public abstract java.lang.String[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.StringArrayMethod(java.lang.String[])
+
+ private static var StringArrayMethod_MethodID_35: jmethodID?
+
+ open func StringArrayMethod( arg: [String]? ) -> [String]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "StringArrayMethod", methodSig: "([Ljava/lang/String;)[Ljava/lang/String;", methodCache: &SwiftHelloTest_TestListenerForward.StringArrayMethod_MethodID_35, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [String].self, from: __return )
+ }
+
+ open func StringArrayMethod( _ _arg: [String]? ) -> [String]! {
+ return StringArrayMethod( arg: _arg )
+ }
+
+ /// public abstract java.lang.String com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.StringMethod(java.lang.String)
+
+ private static var StringMethod_MethodID_36: jmethodID?
+
+ open func StringMethod( arg: String? ) -> String! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "StringMethod", methodSig: "(Ljava/lang/String;)Ljava/lang/String;", methodCache: &SwiftHelloTest_TestListenerForward.StringMethod_MethodID_36, args: &__args, locals: &__locals )
+ defer { JNI.DeleteLocalRef( __return ) }
+ return __return != nil ? String( javaObject: __return ) : nil
+ }
+
+ open func StringMethod( _ _arg: String? ) -> String! {
+ return StringMethod( arg: _arg )
+ }
+
+ /// public abstract com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.TestListener2dArrayMethod(com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener[][])
+
+ private static var TestListener2dArrayMethod_MethodID_37: jmethodID?
+
+ open func TestListener2dArrayMethod( arg: [[SwiftHelloTest_TestListener]]? ) -> [[SwiftHelloTest_TestListener]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "TestListener2dArrayMethod", methodSig: "([[Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;)[[Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", methodCache: &SwiftHelloTest_TestListenerForward.TestListener2dArrayMethod_MethodID_37, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[SwiftHelloTest_TestListenerForward]].self, from: __return )
+ }
+
+ open func TestListener2dArrayMethod( _ _arg: [[SwiftHelloTest_TestListener]]? ) -> [[SwiftHelloTest_TestListener]]! {
+ return TestListener2dArrayMethod( arg: _arg )
+ }
+
+ /// public abstract com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.TestListenerArrayMethod(com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener[])
+
+ private static var TestListenerArrayMethod_MethodID_38: jmethodID?
+
+ open func TestListenerArrayMethod( arg: [SwiftHelloTest_TestListener]? ) -> [SwiftHelloTest_TestListener]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "TestListenerArrayMethod", methodSig: "([Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;)[Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", methodCache: &SwiftHelloTest_TestListenerForward.TestListenerArrayMethod_MethodID_38, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [SwiftHelloTest_TestListenerForward].self, from: __return )
+ }
+
+ open func TestListenerArrayMethod( _ _arg: [SwiftHelloTest_TestListener]? ) -> [SwiftHelloTest_TestListener]! {
+ return TestListenerArrayMethod( arg: _arg )
+ }
+
+ /// public abstract com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.TestListenerMethod(com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener)
+
+ private static var TestListenerMethod_MethodID_39: jmethodID?
+
+ open func TestListenerMethod( arg: SwiftHelloTest_TestListener? ) -> SwiftHelloTest_TestListener! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "TestListenerMethod", methodSig: "(Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;)Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", methodCache: &SwiftHelloTest_TestListenerForward.TestListenerMethod_MethodID_39, args: &__args, locals: &__locals )
+ defer { JNI.DeleteLocalRef( __return ) }
+ return __return != nil ? SwiftHelloTest_TestListenerForward( javaObject: __return ) : nil
+ }
+
+ open func TestListenerMethod( _ _arg: SwiftHelloTest_TestListener? ) -> SwiftHelloTest_TestListener! {
+ return TestListenerMethod( arg: _arg )
+ }
+
+ /// public abstract boolean[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.boolean2dArrayMethod(boolean[][])
+
+ private static var boolean2dArrayMethod_MethodID_40: jmethodID?
+
+ open func boolean2dArrayMethod( arg: [[Bool]]? ) -> [[Bool]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "boolean2dArrayMethod", methodSig: "([[Z)[[Z", methodCache: &SwiftHelloTest_TestListenerForward.boolean2dArrayMethod_MethodID_40, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[Bool]].self, from: __return )
+ }
+
+ open func boolean2dArrayMethod( _ _arg: [[Bool]]? ) -> [[Bool]]! {
+ return boolean2dArrayMethod( arg: _arg )
+ }
+
+ /// public abstract boolean[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.booleanArrayMethod(boolean[])
+
+ private static var booleanArrayMethod_MethodID_41: jmethodID?
+
+ open func booleanArrayMethod( arg: [Bool]? ) -> [Bool]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "booleanArrayMethod", methodSig: "([Z)[Z", methodCache: &SwiftHelloTest_TestListenerForward.booleanArrayMethod_MethodID_41, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [Bool].self, from: __return )
+ }
+
+ open func booleanArrayMethod( _ _arg: [Bool]? ) -> [Bool]! {
+ return booleanArrayMethod( arg: _arg )
+ }
+
+ /// public abstract boolean com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.booleanMethod(boolean)
+
+ private static var booleanMethod_MethodID_42: jmethodID?
+
+ open func booleanMethod( arg: Bool ) -> Bool {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( z: jboolean(arg ? JNI_TRUE : JNI_FALSE) )
+ let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "booleanMethod", methodSig: "(Z)Z", methodCache: &SwiftHelloTest_TestListenerForward.booleanMethod_MethodID_42, args: &__args, locals: &__locals )
+ return __return != jboolean(JNI_FALSE)
+ }
+
+ open func booleanMethod( _ _arg: Bool ) -> Bool {
+ return booleanMethod( arg: _arg )
+ }
+
+ /// public abstract byte[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.byte2dArrayMethod(byte[][])
+
+ private static var byte2dArrayMethod_MethodID_43: jmethodID?
+
+ open func byte2dArrayMethod( arg: [[Int8]]? ) -> [[Int8]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "byte2dArrayMethod", methodSig: "([[B)[[B", methodCache: &SwiftHelloTest_TestListenerForward.byte2dArrayMethod_MethodID_43, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[Int8]].self, from: __return )
+ }
+
+ open func byte2dArrayMethod( _ _arg: [[Int8]]? ) -> [[Int8]]! {
+ return byte2dArrayMethod( arg: _arg )
+ }
+
+ /// public abstract byte[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.byteArrayMethod(byte[])
+
+ private static var byteArrayMethod_MethodID_44: jmethodID?
+
+ open func byteArrayMethod( arg: [Int8]? ) -> [Int8]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "byteArrayMethod", methodSig: "([B)[B", methodCache: &SwiftHelloTest_TestListenerForward.byteArrayMethod_MethodID_44, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [Int8].self, from: __return )
+ }
+
+ open func byteArrayMethod( _ _arg: [Int8]? ) -> [Int8]! {
+ return byteArrayMethod( arg: _arg )
+ }
+
+ /// public abstract byte com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.byteMethod(byte)
+
+ private static var byteMethod_MethodID_45: jmethodID?
+
+ open func byteMethod( arg: Int8 ) -> Int8 {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( b: arg )
+ let __return = JNIMethod.CallByteMethod( object: javaObject, methodName: "byteMethod", methodSig: "(B)B", methodCache: &SwiftHelloTest_TestListenerForward.byteMethod_MethodID_45, args: &__args, locals: &__locals )
+ return __return
+ }
+
+ open func byteMethod( _ _arg: Int8 ) -> Int8 {
+ return byteMethod( arg: _arg )
+ }
+
+ /// public abstract char[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.char2dArrayMethod(char[][])
+
+ private static var char2dArrayMethod_MethodID_46: jmethodID?
+
+ open func char2dArrayMethod( arg: [[UInt16]]? ) -> [[UInt16]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "char2dArrayMethod", methodSig: "([[C)[[C", methodCache: &SwiftHelloTest_TestListenerForward.char2dArrayMethod_MethodID_46, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[UInt16]].self, from: __return )
+ }
+
+ open func char2dArrayMethod( _ _arg: [[UInt16]]? ) -> [[UInt16]]! {
+ return char2dArrayMethod( arg: _arg )
+ }
+
+ /// public abstract char[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.charArrayMethod(char[])
+
+ private static var charArrayMethod_MethodID_47: jmethodID?
+
+ open func charArrayMethod( arg: [UInt16]? ) -> [UInt16]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "charArrayMethod", methodSig: "([C)[C", methodCache: &SwiftHelloTest_TestListenerForward.charArrayMethod_MethodID_47, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [UInt16].self, from: __return )
+ }
+
+ open func charArrayMethod( _ _arg: [UInt16]? ) -> [UInt16]! {
+ return charArrayMethod( arg: _arg )
+ }
+
+ /// public abstract char com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.charMethod(char)
+
+ private static var charMethod_MethodID_48: jmethodID?
+
+ open func charMethod( arg: UInt16 ) -> UInt16 {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( c: arg )
+ let __return = JNIMethod.CallCharMethod( object: javaObject, methodName: "charMethod", methodSig: "(C)C", methodCache: &SwiftHelloTest_TestListenerForward.charMethod_MethodID_48, args: &__args, locals: &__locals )
+ return __return
+ }
+
+ open func charMethod( _ _arg: UInt16 ) -> UInt16 {
+ return charMethod( arg: _arg )
+ }
+
+ /// public abstract double[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.double2dArrayMethod(double[][])
+
+ private static var double2dArrayMethod_MethodID_49: jmethodID?
+
+ open func double2dArrayMethod( arg: [[Double]]? ) -> [[Double]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "double2dArrayMethod", methodSig: "([[D)[[D", methodCache: &SwiftHelloTest_TestListenerForward.double2dArrayMethod_MethodID_49, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[Double]].self, from: __return )
+ }
+
+ open func double2dArrayMethod( _ _arg: [[Double]]? ) -> [[Double]]! {
+ return double2dArrayMethod( arg: _arg )
+ }
+
+ /// public abstract double[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.doubleArrayMethod(double[])
+
+ private static var doubleArrayMethod_MethodID_50: jmethodID?
+
+ open func doubleArrayMethod( arg: [Double]? ) -> [Double]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "doubleArrayMethod", methodSig: "([D)[D", methodCache: &SwiftHelloTest_TestListenerForward.doubleArrayMethod_MethodID_50, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [Double].self, from: __return )
+ }
+
+ open func doubleArrayMethod( _ _arg: [Double]? ) -> [Double]! {
+ return doubleArrayMethod( arg: _arg )
+ }
+
+ /// public abstract double com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.doubleMethod(double)
+
+ private static var doubleMethod_MethodID_51: jmethodID?
+
+ open func doubleMethod( arg: Double ) -> Double {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( d: arg )
+ let __return = JNIMethod.CallDoubleMethod( object: javaObject, methodName: "doubleMethod", methodSig: "(D)D", methodCache: &SwiftHelloTest_TestListenerForward.doubleMethod_MethodID_51, args: &__args, locals: &__locals )
+ return __return
+ }
+
+ open func doubleMethod( _ _arg: Double ) -> Double {
+ return doubleMethod( arg: _arg )
+ }
+
+ /// public abstract float[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.float2dArrayMethod(float[][])
+
+ private static var float2dArrayMethod_MethodID_52: jmethodID?
+
+ open func float2dArrayMethod( arg: [[Float]]? ) -> [[Float]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "float2dArrayMethod", methodSig: "([[F)[[F", methodCache: &SwiftHelloTest_TestListenerForward.float2dArrayMethod_MethodID_52, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[Float]].self, from: __return )
+ }
+
+ open func float2dArrayMethod( _ _arg: [[Float]]? ) -> [[Float]]! {
+ return float2dArrayMethod( arg: _arg )
+ }
+
+ /// public abstract float[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.floatArrayMethod(float[])
+
+ private static var floatArrayMethod_MethodID_53: jmethodID?
+
+ open func floatArrayMethod( arg: [Float]? ) -> [Float]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "floatArrayMethod", methodSig: "([F)[F", methodCache: &SwiftHelloTest_TestListenerForward.floatArrayMethod_MethodID_53, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [Float].self, from: __return )
+ }
+
+ open func floatArrayMethod( _ _arg: [Float]? ) -> [Float]! {
+ return floatArrayMethod( arg: _arg )
+ }
+
+ /// public abstract float com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.floatMethod(float)
+
+ private static var floatMethod_MethodID_54: jmethodID?
+
+ open func floatMethod( arg: Float ) -> Float {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( f: arg )
+ let __return = JNIMethod.CallFloatMethod( object: javaObject, methodName: "floatMethod", methodSig: "(F)F", methodCache: &SwiftHelloTest_TestListenerForward.floatMethod_MethodID_54, args: &__args, locals: &__locals )
+ return __return
+ }
+
+ open func floatMethod( _ _arg: Float ) -> Float {
+ return floatMethod( arg: _arg )
+ }
+
+ /// public abstract int[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.int2dArrayMethod(int[][])
+
+ private static var int2dArrayMethod_MethodID_55: jmethodID?
+
+ open func int2dArrayMethod( arg: [[Int32]]? ) -> [[Int32]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "int2dArrayMethod", methodSig: "([[I)[[I", methodCache: &SwiftHelloTest_TestListenerForward.int2dArrayMethod_MethodID_55, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[Int32]].self, from: __return )
+ }
+
+ open func int2dArrayMethod( _ _arg: [[Int32]]? ) -> [[Int32]]! {
+ return int2dArrayMethod( arg: _arg )
+ }
+
+ /// public abstract int[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.intArrayMethod(int[])
+
+ private static var intArrayMethod_MethodID_56: jmethodID?
+
+ open func intArrayMethod( arg: [Int32]? ) -> [Int32]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "intArrayMethod", methodSig: "([I)[I", methodCache: &SwiftHelloTest_TestListenerForward.intArrayMethod_MethodID_56, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [Int32].self, from: __return )
+ }
+
+ open func intArrayMethod( _ _arg: [Int32]? ) -> [Int32]! {
+ return intArrayMethod( arg: _arg )
+ }
+
+ /// public abstract int com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.intMethod(int)
+
+ private static var intMethod_MethodID_57: jmethodID?
+
+ open func intMethod( arg: Int ) -> Int {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( i: jint(arg) )
+ let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "intMethod", methodSig: "(I)I", methodCache: &SwiftHelloTest_TestListenerForward.intMethod_MethodID_57, args: &__args, locals: &__locals )
+ return Int(__return)
+ }
+
+ open func intMethod( _ _arg: Int ) -> Int {
+ return intMethod( arg: _arg )
+ }
+
+ /// public abstract long[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.long2dArrayMethod(long[][])
+
+ private static var long2dArrayMethod_MethodID_58: jmethodID?
+
+ open func long2dArrayMethod( arg: [[Int64]]? ) -> [[Int64]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "long2dArrayMethod", methodSig: "([[J)[[J", methodCache: &SwiftHelloTest_TestListenerForward.long2dArrayMethod_MethodID_58, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[Int64]].self, from: __return )
+ }
+
+ open func long2dArrayMethod( _ _arg: [[Int64]]? ) -> [[Int64]]! {
+ return long2dArrayMethod( arg: _arg )
+ }
+
+ /// public abstract long[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.longArrayMethod(long[])
+
+ private static var longArrayMethod_MethodID_59: jmethodID?
+
+ open func longArrayMethod( arg: [Int64]? ) -> [Int64]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "longArrayMethod", methodSig: "([J)[J", methodCache: &SwiftHelloTest_TestListenerForward.longArrayMethod_MethodID_59, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [Int64].self, from: __return )
+ }
+
+ open func longArrayMethod( _ _arg: [Int64]? ) -> [Int64]! {
+ return longArrayMethod( arg: _arg )
+ }
+
+ /// public abstract long com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.longMethod(long)
+
+ private static var longMethod_MethodID_60: jmethodID?
+
+ open func longMethod( arg: Int64 ) -> Int64 {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( j: arg )
+ let __return = JNIMethod.CallLongMethod( object: javaObject, methodName: "longMethod", methodSig: "(J)J", methodCache: &SwiftHelloTest_TestListenerForward.longMethod_MethodID_60, args: &__args, locals: &__locals )
+ return __return
+ }
+
+ open func longMethod( _ _arg: Int64 ) -> Int64 {
+ return longMethod( arg: _arg )
+ }
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.setLoopback(com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener)
+
+ private static var setLoopback_MethodID_61: jmethodID?
+
+ open func setLoopback( loopback: SwiftHelloTest_TestListener? ) {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: loopback, locals: &__locals )
+ JNIMethod.CallVoidMethod( object: javaObject, methodName: "setLoopback", methodSig: "(Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;)V", methodCache: &SwiftHelloTest_TestListenerForward.setLoopback_MethodID_61, args: &__args, locals: &__locals )
+ }
+
+ open func setLoopback( _ _loopback: SwiftHelloTest_TestListener? ) {
+ setLoopback( loopback: _loopback )
+ }
+
+ /// public abstract short[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.short2dArrayMethod(short[][])
+
+ private static var short2dArrayMethod_MethodID_62: jmethodID?
+
+ open func short2dArrayMethod( arg: [[Int16]]? ) -> [[Int16]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "short2dArrayMethod", methodSig: "([[S)[[S", methodCache: &SwiftHelloTest_TestListenerForward.short2dArrayMethod_MethodID_62, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[Int16]].self, from: __return )
+ }
+
+ open func short2dArrayMethod( _ _arg: [[Int16]]? ) -> [[Int16]]! {
+ return short2dArrayMethod( arg: _arg )
+ }
+
+ /// public abstract short[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.shortArrayMethod(short[])
+
+ private static var shortArrayMethod_MethodID_63: jmethodID?
+
+ open func shortArrayMethod( arg: [Int16]? ) -> [Int16]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "shortArrayMethod", methodSig: "([S)[S", methodCache: &SwiftHelloTest_TestListenerForward.shortArrayMethod_MethodID_63, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [Int16].self, from: __return )
+ }
+
+ open func shortArrayMethod( _ _arg: [Int16]? ) -> [Int16]! {
+ return shortArrayMethod( arg: _arg )
+ }
+
+ /// public abstract short com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.shortMethod(short)
+
+ private static var shortMethod_MethodID_64: jmethodID?
+
+ open func shortMethod( arg: Int16 ) -> Int16 {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( s: arg )
+ let __return = JNIMethod.CallShortMethod( object: javaObject, methodName: "shortMethod", methodSig: "(S)S", methodCache: &SwiftHelloTest_TestListenerForward.shortMethod_MethodID_64, args: &__args, locals: &__locals )
+ return __return
+ }
+
+ open func shortMethod( _ _arg: Int16 ) -> Int16 {
+ return shortMethod( arg: _arg )
+ }
+
+ /// public abstract com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMap com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.testMap(com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMap)
+
+ private static var testMap_MethodID_65: jmethodID?
+
+ open func testMap( arg: [String:SwiftHelloTypes_TextListener]? ) -> [String:SwiftHelloTypes_TextListener]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, mapClass: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMap", locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "testMap", methodSig: "(Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMap;)Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMap;", methodCache: &SwiftHelloTest_TestListenerForward.testMap_MethodID_65, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [String:SwiftHelloTypes_TextListenerForward].self, from: __return )
+ }
+
+ open func testMap( _ _arg: [String:SwiftHelloTypes_TextListener]? ) -> [String:SwiftHelloTypes_TextListener]! {
+ return testMap( arg: _arg )
+ }
+
+ /// public abstract com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMapList com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.testMapList(com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMapList)
+
+ private static var testMapList_MethodID_66: jmethodID?
+
+ open func testMapList( arg: [String:[SwiftHelloTypes_TextListener]]? ) -> [String:[SwiftHelloTypes_TextListener]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, mapClass: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMapList", locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "testMapList", methodSig: "(Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMapList;)Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMapList;", methodCache: &SwiftHelloTest_TestListenerForward.testMapList_MethodID_66, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [String:[SwiftHelloTypes_TextListenerForward]].self, from: __return )
+ }
+
+ open func testMapList( _ _arg: [String:[SwiftHelloTypes_TextListener]]? ) -> [String:[SwiftHelloTypes_TextListener]]! {
+ return testMapList( arg: _arg )
+ }
+
+}
+
+private typealias SwiftHelloTest_TestListener_String2dArrayMethod_0_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestListener_String2dArrayMethod_0( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).String2dArrayMethod( arg: JNIType.toSwift( type: [[String]].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_StringArrayMethod_1_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestListener_StringArrayMethod_1( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).StringArrayMethod( arg: JNIType.toSwift( type: [String].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_StringMethod_2_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestListener_StringMethod_2( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).StringMethod( arg: arg != nil ? String( javaObject: arg ) : nil )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_TestListener2dArrayMethod_3_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestListener_TestListener2dArrayMethod_3( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).TestListener2dArrayMethod( arg: JNIType.toSwift( type: [[SwiftHelloTest_TestListenerForward]].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_TestListenerArrayMethod_4_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestListener_TestListenerArrayMethod_4( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).TestListenerArrayMethod( arg: JNIType.toSwift( type: [SwiftHelloTest_TestListenerForward].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_TestListenerMethod_5_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestListener_TestListenerMethod_5( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).TestListenerMethod( arg: arg != nil ? SwiftHelloTest_TestListenerForward( javaObject: arg ) : nil )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_boolean2dArrayMethod_6_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestListener_boolean2dArrayMethod_6( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).boolean2dArrayMethod( arg: JNIType.toSwift( type: [[Bool]].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_booleanArrayMethod_7_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestListener_booleanArrayMethod_7( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).booleanArrayMethod( arg: JNIType.toSwift( type: [Bool].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_booleanMethod_8_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jboolean ) -> jboolean
+
+private func SwiftHelloTest_TestListener_booleanMethod_8( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jboolean ) -> jboolean {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).booleanMethod( arg: arg != jboolean(JNI_FALSE) )
+ var __locals = [jobject]()
+ return JNI.check( jvalue( z: jboolean(__return ? JNI_TRUE : JNI_FALSE) ).z, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_byte2dArrayMethod_9_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestListener_byte2dArrayMethod_9( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).byte2dArrayMethod( arg: JNIType.toSwift( type: [[Int8]].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_byteArrayMethod_10_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestListener_byteArrayMethod_10( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).byteArrayMethod( arg: JNIType.toSwift( type: [Int8].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_byteMethod_11_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jbyte ) -> jbyte
+
+private func SwiftHelloTest_TestListener_byteMethod_11( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jbyte ) -> jbyte {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).byteMethod( arg: arg )
+ var __locals = [jobject]()
+ return JNI.check( jvalue( b: __return ).b, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_char2dArrayMethod_12_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestListener_char2dArrayMethod_12( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).char2dArrayMethod( arg: JNIType.toSwift( type: [[UInt16]].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_charArrayMethod_13_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestListener_charArrayMethod_13( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).charArrayMethod( arg: JNIType.toSwift( type: [UInt16].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_charMethod_14_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jchar ) -> jchar
+
+private func SwiftHelloTest_TestListener_charMethod_14( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jchar ) -> jchar {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).charMethod( arg: arg )
+ var __locals = [jobject]()
+ return JNI.check( jvalue( c: __return ).c, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_double2dArrayMethod_15_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestListener_double2dArrayMethod_15( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).double2dArrayMethod( arg: JNIType.toSwift( type: [[Double]].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_doubleArrayMethod_16_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestListener_doubleArrayMethod_16( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).doubleArrayMethod( arg: JNIType.toSwift( type: [Double].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_doubleMethod_17_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jdouble ) -> jdouble
+
+private func SwiftHelloTest_TestListener_doubleMethod_17( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jdouble ) -> jdouble {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).doubleMethod( arg: arg )
+ var __locals = [jobject]()
+ return JNI.check( jvalue( d: __return ).d, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_float2dArrayMethod_18_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestListener_float2dArrayMethod_18( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).float2dArrayMethod( arg: JNIType.toSwift( type: [[Float]].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_floatArrayMethod_19_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestListener_floatArrayMethod_19( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).floatArrayMethod( arg: JNIType.toSwift( type: [Float].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_floatMethod_20_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jfloat ) -> jfloat
+
+private func SwiftHelloTest_TestListener_floatMethod_20( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jfloat ) -> jfloat {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).floatMethod( arg: arg )
+ var __locals = [jobject]()
+ return JNI.check( jvalue( f: __return ).f, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_int2dArrayMethod_21_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestListener_int2dArrayMethod_21( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).int2dArrayMethod( arg: JNIType.toSwift( type: [[Int32]].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_intArrayMethod_22_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestListener_intArrayMethod_22( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).intArrayMethod( arg: JNIType.toSwift( type: [Int32].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_intMethod_23_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jint ) -> jint
+
+private func SwiftHelloTest_TestListener_intMethod_23( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jint ) -> jint {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).intMethod( arg: Int(arg) )
+ var __locals = [jobject]()
+ return JNI.check( jvalue( i: jint(__return) ).i, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_long2dArrayMethod_24_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestListener_long2dArrayMethod_24( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).long2dArrayMethod( arg: JNIType.toSwift( type: [[Int64]].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_longArrayMethod_25_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestListener_longArrayMethod_25( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).longArrayMethod( arg: JNIType.toSwift( type: [Int64].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_longMethod_26_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jlong ) -> jlong
+
+private func SwiftHelloTest_TestListener_longMethod_26( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jlong ) -> jlong {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).longMethod( arg: arg )
+ var __locals = [jobject]()
+ return JNI.check( jvalue( j: __return ).j, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_setLoopback_27_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> ()
+
+private func SwiftHelloTest_TestListener_setLoopback_27( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ loopback: jobject? ) -> () {
+ SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).setLoopback( loopback: loopback != nil ? SwiftHelloTest_TestListenerForward( javaObject: loopback ) : nil )
+}
+
+private typealias SwiftHelloTest_TestListener_short2dArrayMethod_28_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestListener_short2dArrayMethod_28( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).short2dArrayMethod( arg: JNIType.toSwift( type: [[Int16]].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_shortArrayMethod_29_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestListener_shortArrayMethod_29( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).shortArrayMethod( arg: JNIType.toSwift( type: [Int16].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_shortMethod_30_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jshort ) -> jshort
+
+private func SwiftHelloTest_TestListener_shortMethod_30( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jshort ) -> jshort {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).shortMethod( arg: arg )
+ var __locals = [jobject]()
+ return JNI.check( jvalue( s: __return ).s, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_testMap_31_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestListener_testMap_31( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).testMap( arg: JNIType.toSwift( type: [String:SwiftHelloTypes_TextListenerForward].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, mapClass: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMap", locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestListener_testMapList_32_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestListener_testMapList_32( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).testMapList( arg: JNIType.toSwift( type: [String:[SwiftHelloTypes_TextListenerForward]].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, mapClass: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMapList", locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+fileprivate class SwiftHelloTest_TestListenerLocal_: JNILocalProxy {
+
+ fileprivate static let _proxyClass: jclass = {
+ var natives = [JNINativeMethod]()
+
+ let SwiftHelloTest_TestListener_String2dArrayMethod_0_thunk: SwiftHelloTest_TestListener_String2dArrayMethod_0_type = SwiftHelloTest_TestListener_String2dArrayMethod_0
+ natives.append( JNINativeMethod( name: strdup("__String2dArrayMethod"), signature: strdup("(J[[Ljava/lang/String;)[[Ljava/lang/String;"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_String2dArrayMethod_0_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_StringArrayMethod_1_thunk: SwiftHelloTest_TestListener_StringArrayMethod_1_type = SwiftHelloTest_TestListener_StringArrayMethod_1
+ natives.append( JNINativeMethod( name: strdup("__StringArrayMethod"), signature: strdup("(J[Ljava/lang/String;)[Ljava/lang/String;"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_StringArrayMethod_1_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_StringMethod_2_thunk: SwiftHelloTest_TestListener_StringMethod_2_type = SwiftHelloTest_TestListener_StringMethod_2
+ natives.append( JNINativeMethod( name: strdup("__StringMethod"), signature: strdup("(JLjava/lang/String;)Ljava/lang/String;"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_StringMethod_2_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_TestListener2dArrayMethod_3_thunk: SwiftHelloTest_TestListener_TestListener2dArrayMethod_3_type = SwiftHelloTest_TestListener_TestListener2dArrayMethod_3
+ natives.append( JNINativeMethod( name: strdup("__TestListener2dArrayMethod"), signature: strdup("(J[[Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;)[[Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_TestListener2dArrayMethod_3_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_TestListenerArrayMethod_4_thunk: SwiftHelloTest_TestListener_TestListenerArrayMethod_4_type = SwiftHelloTest_TestListener_TestListenerArrayMethod_4
+ natives.append( JNINativeMethod( name: strdup("__TestListenerArrayMethod"), signature: strdup("(J[Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;)[Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_TestListenerArrayMethod_4_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_TestListenerMethod_5_thunk: SwiftHelloTest_TestListener_TestListenerMethod_5_type = SwiftHelloTest_TestListener_TestListenerMethod_5
+ natives.append( JNINativeMethod( name: strdup("__TestListenerMethod"), signature: strdup("(JLcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;)Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_TestListenerMethod_5_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_boolean2dArrayMethod_6_thunk: SwiftHelloTest_TestListener_boolean2dArrayMethod_6_type = SwiftHelloTest_TestListener_boolean2dArrayMethod_6
+ natives.append( JNINativeMethod( name: strdup("__boolean2dArrayMethod"), signature: strdup("(J[[Z)[[Z"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_boolean2dArrayMethod_6_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_booleanArrayMethod_7_thunk: SwiftHelloTest_TestListener_booleanArrayMethod_7_type = SwiftHelloTest_TestListener_booleanArrayMethod_7
+ natives.append( JNINativeMethod( name: strdup("__booleanArrayMethod"), signature: strdup("(J[Z)[Z"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_booleanArrayMethod_7_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_booleanMethod_8_thunk: SwiftHelloTest_TestListener_booleanMethod_8_type = SwiftHelloTest_TestListener_booleanMethod_8
+ natives.append( JNINativeMethod( name: strdup("__booleanMethod"), signature: strdup("(JZ)Z"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_booleanMethod_8_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_byte2dArrayMethod_9_thunk: SwiftHelloTest_TestListener_byte2dArrayMethod_9_type = SwiftHelloTest_TestListener_byte2dArrayMethod_9
+ natives.append( JNINativeMethod( name: strdup("__byte2dArrayMethod"), signature: strdup("(J[[B)[[B"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_byte2dArrayMethod_9_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_byteArrayMethod_10_thunk: SwiftHelloTest_TestListener_byteArrayMethod_10_type = SwiftHelloTest_TestListener_byteArrayMethod_10
+ natives.append( JNINativeMethod( name: strdup("__byteArrayMethod"), signature: strdup("(J[B)[B"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_byteArrayMethod_10_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_byteMethod_11_thunk: SwiftHelloTest_TestListener_byteMethod_11_type = SwiftHelloTest_TestListener_byteMethod_11
+ natives.append( JNINativeMethod( name: strdup("__byteMethod"), signature: strdup("(JB)B"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_byteMethod_11_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_char2dArrayMethod_12_thunk: SwiftHelloTest_TestListener_char2dArrayMethod_12_type = SwiftHelloTest_TestListener_char2dArrayMethod_12
+ natives.append( JNINativeMethod( name: strdup("__char2dArrayMethod"), signature: strdup("(J[[C)[[C"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_char2dArrayMethod_12_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_charArrayMethod_13_thunk: SwiftHelloTest_TestListener_charArrayMethod_13_type = SwiftHelloTest_TestListener_charArrayMethod_13
+ natives.append( JNINativeMethod( name: strdup("__charArrayMethod"), signature: strdup("(J[C)[C"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_charArrayMethod_13_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_charMethod_14_thunk: SwiftHelloTest_TestListener_charMethod_14_type = SwiftHelloTest_TestListener_charMethod_14
+ natives.append( JNINativeMethod( name: strdup("__charMethod"), signature: strdup("(JC)C"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_charMethod_14_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_double2dArrayMethod_15_thunk: SwiftHelloTest_TestListener_double2dArrayMethod_15_type = SwiftHelloTest_TestListener_double2dArrayMethod_15
+ natives.append( JNINativeMethod( name: strdup("__double2dArrayMethod"), signature: strdup("(J[[D)[[D"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_double2dArrayMethod_15_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_doubleArrayMethod_16_thunk: SwiftHelloTest_TestListener_doubleArrayMethod_16_type = SwiftHelloTest_TestListener_doubleArrayMethod_16
+ natives.append( JNINativeMethod( name: strdup("__doubleArrayMethod"), signature: strdup("(J[D)[D"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_doubleArrayMethod_16_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_doubleMethod_17_thunk: SwiftHelloTest_TestListener_doubleMethod_17_type = SwiftHelloTest_TestListener_doubleMethod_17
+ natives.append( JNINativeMethod( name: strdup("__doubleMethod"), signature: strdup("(JD)D"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_doubleMethod_17_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_float2dArrayMethod_18_thunk: SwiftHelloTest_TestListener_float2dArrayMethod_18_type = SwiftHelloTest_TestListener_float2dArrayMethod_18
+ natives.append( JNINativeMethod( name: strdup("__float2dArrayMethod"), signature: strdup("(J[[F)[[F"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_float2dArrayMethod_18_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_floatArrayMethod_19_thunk: SwiftHelloTest_TestListener_floatArrayMethod_19_type = SwiftHelloTest_TestListener_floatArrayMethod_19
+ natives.append( JNINativeMethod( name: strdup("__floatArrayMethod"), signature: strdup("(J[F)[F"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_floatArrayMethod_19_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_floatMethod_20_thunk: SwiftHelloTest_TestListener_floatMethod_20_type = SwiftHelloTest_TestListener_floatMethod_20
+ natives.append( JNINativeMethod( name: strdup("__floatMethod"), signature: strdup("(JF)F"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_floatMethod_20_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_int2dArrayMethod_21_thunk: SwiftHelloTest_TestListener_int2dArrayMethod_21_type = SwiftHelloTest_TestListener_int2dArrayMethod_21
+ natives.append( JNINativeMethod( name: strdup("__int2dArrayMethod"), signature: strdup("(J[[I)[[I"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_int2dArrayMethod_21_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_intArrayMethod_22_thunk: SwiftHelloTest_TestListener_intArrayMethod_22_type = SwiftHelloTest_TestListener_intArrayMethod_22
+ natives.append( JNINativeMethod( name: strdup("__intArrayMethod"), signature: strdup("(J[I)[I"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_intArrayMethod_22_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_intMethod_23_thunk: SwiftHelloTest_TestListener_intMethod_23_type = SwiftHelloTest_TestListener_intMethod_23
+ natives.append( JNINativeMethod( name: strdup("__intMethod"), signature: strdup("(JI)I"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_intMethod_23_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_long2dArrayMethod_24_thunk: SwiftHelloTest_TestListener_long2dArrayMethod_24_type = SwiftHelloTest_TestListener_long2dArrayMethod_24
+ natives.append( JNINativeMethod( name: strdup("__long2dArrayMethod"), signature: strdup("(J[[J)[[J"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_long2dArrayMethod_24_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_longArrayMethod_25_thunk: SwiftHelloTest_TestListener_longArrayMethod_25_type = SwiftHelloTest_TestListener_longArrayMethod_25
+ natives.append( JNINativeMethod( name: strdup("__longArrayMethod"), signature: strdup("(J[J)[J"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_longArrayMethod_25_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_longMethod_26_thunk: SwiftHelloTest_TestListener_longMethod_26_type = SwiftHelloTest_TestListener_longMethod_26
+ natives.append( JNINativeMethod( name: strdup("__longMethod"), signature: strdup("(JJ)J"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_longMethod_26_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_setLoopback_27_thunk: SwiftHelloTest_TestListener_setLoopback_27_type = SwiftHelloTest_TestListener_setLoopback_27
+ natives.append( JNINativeMethod( name: strdup("__setLoopback"), signature: strdup("(JLcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;)V"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_setLoopback_27_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_short2dArrayMethod_28_thunk: SwiftHelloTest_TestListener_short2dArrayMethod_28_type = SwiftHelloTest_TestListener_short2dArrayMethod_28
+ natives.append( JNINativeMethod( name: strdup("__short2dArrayMethod"), signature: strdup("(J[[S)[[S"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_short2dArrayMethod_28_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_shortArrayMethod_29_thunk: SwiftHelloTest_TestListener_shortArrayMethod_29_type = SwiftHelloTest_TestListener_shortArrayMethod_29
+ natives.append( JNINativeMethod( name: strdup("__shortArrayMethod"), signature: strdup("(J[S)[S"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_shortArrayMethod_29_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_shortMethod_30_thunk: SwiftHelloTest_TestListener_shortMethod_30_type = SwiftHelloTest_TestListener_shortMethod_30
+ natives.append( JNINativeMethod( name: strdup("__shortMethod"), signature: strdup("(JS)S"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_shortMethod_30_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_testMap_31_thunk: SwiftHelloTest_TestListener_testMap_31_type = SwiftHelloTest_TestListener_testMap_31
+ natives.append( JNINativeMethod( name: strdup("__testMap"), signature: strdup("(JLcom/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMap;)Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMap;"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_testMap_31_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestListener_testMapList_32_thunk: SwiftHelloTest_TestListener_testMapList_32_type = SwiftHelloTest_TestListener_testMapList_32
+ natives.append( JNINativeMethod( name: strdup("__testMapList"), signature: strdup("(JLcom/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMapList;)Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMapList;"), fnPtr: unsafeBitCast( SwiftHelloTest_TestListener_testMapList_32_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ natives.append( JNINativeMethod( name: strdup("__finalize"), signature: strdup("(J)V"), fnPtr: unsafeBitCast( JNIReleasableProxy__finalize_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let clazz = JNI.FindClass( proxyClassName() )
+ withUnsafePointer(to: &natives[0]) {
+ nativesPtr in
+ if JNI.api.RegisterNatives( JNI.env, clazz, nativesPtr, jint(natives.count) ) != jint(JNI_OK) {
+ JNI.report( "Unable to register java natives" )
+ }
+ }
+
+ defer { JNI.DeleteLocalRef( clazz ) }
+ return JNI.api.NewGlobalRef( JNI.env, clazz )!
+ }()
+
+ override open class func proxyClassName() -> String { return "org/swiftjava/com_johnholdsworth/SwiftHelloTest_TestListenerProxy" }
+ override open class func proxyClass() -> jclass? { return _proxyClass }
+
+}
+
+extension SwiftHelloTest_TestListener {
+
+ public func localJavaObject( _ locals: UnsafeMutablePointer<[jobject]> ) -> jobject? {
+ return SwiftHelloTest_TestListenerLocal_( owned: self, proto: self ).localJavaObject( locals )
+ }
+
+}
+
+open class SwiftHelloTest_TestListenerBase: SwiftHelloTest_TestListener {
+
+ public init() {}
+
+ /// public abstract java.lang.String[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.String2dArrayMethod(java.lang.String[][])
+
+ open func String2dArrayMethod( arg: [[String]]? ) -> [[String]]! /**/ {
+ return nil
+ }
+
+
+ /// public abstract java.lang.String[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.StringArrayMethod(java.lang.String[])
+
+ open func StringArrayMethod( arg: [String]? ) -> [String]! /**/ {
+ return nil
+ }
+
+
+ /// public abstract java.lang.String com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.StringMethod(java.lang.String)
+
+ open func StringMethod( arg: String? ) -> String! /**/ {
+ return nil
+ }
+
+
+ /// public abstract com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.TestListener2dArrayMethod(com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener[][])
+
+ open func TestListener2dArrayMethod( arg: [[SwiftHelloTest_TestListener]]? ) -> [[SwiftHelloTest_TestListener]]! /**/ {
+ return nil
+ }
+
+
+ /// public abstract com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.TestListenerArrayMethod(com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener[])
+
+ open func TestListenerArrayMethod( arg: [SwiftHelloTest_TestListener]? ) -> [SwiftHelloTest_TestListener]! /**/ {
+ return nil
+ }
+
+
+ /// public abstract com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.TestListenerMethod(com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener)
+
+ open func TestListenerMethod( arg: SwiftHelloTest_TestListener? ) -> SwiftHelloTest_TestListener! /**/ {
+ return nil
+ }
+
+
+ /// public abstract boolean[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.boolean2dArrayMethod(boolean[][])
+
+ open func boolean2dArrayMethod( arg: [[Bool]]? ) -> [[Bool]]! /**/ {
+ return nil
+ }
+
+
+ /// public abstract boolean[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.booleanArrayMethod(boolean[])
+
+ open func booleanArrayMethod( arg: [Bool]? ) -> [Bool]! /**/ {
+ return nil
+ }
+
+
+ /// public abstract boolean com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.booleanMethod(boolean)
+
+ open func booleanMethod( arg: Bool ) -> Bool /**/ {
+ return false
+ }
+
+
+ /// public abstract byte[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.byte2dArrayMethod(byte[][])
+
+ open func byte2dArrayMethod( arg: [[Int8]]? ) -> [[Int8]]! /**/ {
+ return nil
+ }
+
+
+ /// public abstract byte[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.byteArrayMethod(byte[])
+
+ open func byteArrayMethod( arg: [Int8]? ) -> [Int8]! /**/ {
+ return nil
+ }
+
+
+ /// public abstract byte com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.byteMethod(byte)
+
+ open func byteMethod( arg: Int8 ) -> Int8 /**/ {
+ return 0
+ }
+
+
+ /// public abstract char[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.char2dArrayMethod(char[][])
+
+ open func char2dArrayMethod( arg: [[UInt16]]? ) -> [[UInt16]]! /**/ {
+ return nil
+ }
+
+
+ /// public abstract char[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.charArrayMethod(char[])
+
+ open func charArrayMethod( arg: [UInt16]? ) -> [UInt16]! /**/ {
+ return nil
+ }
+
+
+ /// public abstract char com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.charMethod(char)
+
+ open func charMethod( arg: UInt16 ) -> UInt16 /**/ {
+ return 0
+ }
+
+
+ /// public abstract double[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.double2dArrayMethod(double[][])
+
+ open func double2dArrayMethod( arg: [[Double]]? ) -> [[Double]]! /**/ {
+ return nil
+ }
+
+
+ /// public abstract double[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.doubleArrayMethod(double[])
+
+ open func doubleArrayMethod( arg: [Double]? ) -> [Double]! /**/ {
+ return nil
+ }
+
+
+ /// public abstract double com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.doubleMethod(double)
+
+ open func doubleMethod( arg: Double ) -> Double /**/ {
+ return 0
+ }
+
+
+ /// public abstract float[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.float2dArrayMethod(float[][])
+
+ open func float2dArrayMethod( arg: [[Float]]? ) -> [[Float]]! /**/ {
+ return nil
+ }
+
+
+ /// public abstract float[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.floatArrayMethod(float[])
+
+ open func floatArrayMethod( arg: [Float]? ) -> [Float]! /**/ {
+ return nil
+ }
+
+
+ /// public abstract float com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.floatMethod(float)
+
+ open func floatMethod( arg: Float ) -> Float /**/ {
+ return 0
+ }
+
+
+ /// public abstract int[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.int2dArrayMethod(int[][])
+
+ open func int2dArrayMethod( arg: [[Int32]]? ) -> [[Int32]]! /**/ {
+ return nil
+ }
+
+
+ /// public abstract int[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.intArrayMethod(int[])
+
+ open func intArrayMethod( arg: [Int32]? ) -> [Int32]! /**/ {
+ return nil
+ }
+
+
+ /// public abstract int com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.intMethod(int)
+
+ open func intMethod( arg: Int ) -> Int /**/ {
+ return 0
+ }
+
+
+ /// public abstract long[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.long2dArrayMethod(long[][])
+
+ open func long2dArrayMethod( arg: [[Int64]]? ) -> [[Int64]]! /**/ {
+ return nil
+ }
+
+
+ /// public abstract long[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.longArrayMethod(long[])
+
+ open func longArrayMethod( arg: [Int64]? ) -> [Int64]! /**/ {
+ return nil
+ }
+
+
+ /// public abstract long com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.longMethod(long)
+
+ open func longMethod( arg: Int64 ) -> Int64 /**/ {
+ return 0
+ }
+
+
+ /// public abstract void com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.setLoopback(com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener)
+
+ open func setLoopback( loopback: SwiftHelloTest_TestListener? ) /**/ {
+ }
+
+
+ /// public abstract short[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.short2dArrayMethod(short[][])
+
+ open func short2dArrayMethod( arg: [[Int16]]? ) -> [[Int16]]! /**/ {
+ return nil
+ }
+
+
+ /// public abstract short[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.shortArrayMethod(short[])
+
+ open func shortArrayMethod( arg: [Int16]? ) -> [Int16]! /**/ {
+ return nil
+ }
+
+
+ /// public abstract short com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.shortMethod(short)
+
+ open func shortMethod( arg: Int16 ) -> Int16 /**/ {
+ return 0
+ }
+
+
+ /// public abstract com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMap com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.testMap(com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMap)
+
+ open func testMap( arg: [String:SwiftHelloTypes_TextListener]? ) -> [String:SwiftHelloTypes_TextListener]! /**/ {
+ return nil
+ }
+
+
+ /// public abstract com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMapList com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener.testMapList(com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMapList)
+
+ open func testMapList( arg: [String:[SwiftHelloTypes_TextListener]]? ) -> [String:[SwiftHelloTypes_TextListener]]! /**/ {
+ return nil
+ }
+
+
+}
diff --git a/com_johnholdsworth/Sources/SwiftHelloTest_TestResponderAdapter.swift b/com_johnholdsworth/Sources/SwiftHelloTest_TestResponderAdapter.swift
new file mode 100644
index 0000000..ecd9a5e
--- /dev/null
+++ b/com_johnholdsworth/Sources/SwiftHelloTest_TestResponderAdapter.swift
@@ -0,0 +1,1030 @@
+
+import java_swift
+
+/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
+
+/// class com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter ///
+
+open class SwiftHelloTest_TestResponderAdapter: java_swift.JavaObject, SwiftHelloTest_TestListener {
+
+ public convenience init?( casting object: java_swift.JavaObject, _ file: StaticString = #file, _ line: Int = #line ) {
+ self.init( javaObject: nil )
+ object.withJavaObject {
+ self.javaObject = $0
+ }
+ }
+
+ private static var SwiftHelloTest_TestResponderAdapterJNIClass: jclass?
+
+ /// public com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.loopback
+
+ private static var loopback_FieldID: jfieldID?
+
+ open var loopback: SwiftHelloTest_TestListener! {
+ get {
+ let __value = JNIField.GetObjectField( fieldName: "loopback", fieldType: "Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", fieldCache: &SwiftHelloTest_TestResponderAdapter.loopback_FieldID, object: javaObject )
+ defer { JNI.DeleteLocalRef( __value ) }
+ return __value != nil ? SwiftHelloTest_TestListenerForward( javaObject: __value ) : nil
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetObjectField( fieldName: "loopback", fieldType: "Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", fieldCache: &SwiftHelloTest_TestResponderAdapter.loopback_FieldID, object: javaObject, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter()
+
+ 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: "com/johnholdsworth/swiftbindings/SwiftHelloTest$TestResponderAdapter", classCache: &SwiftHelloTest_TestResponderAdapter.SwiftHelloTest_TestResponderAdapterJNIClass, methodSig: "()V", methodCache: &SwiftHelloTest_TestResponderAdapter.new_MethodID_1, args: &__args, locals: &__locals )
+ self.init( javaObject: __object )
+ JNI.DeleteLocalRef( __object )
+ }
+
+ /// public java.lang.String[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.String2dArrayMethod(java.lang.String[][])
+
+ private static var String2dArrayMethod_MethodID_2: jmethodID?
+
+ open func String2dArrayMethod( arg: [[String]]? ) -> [[String]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "String2dArrayMethod", methodSig: "([[Ljava/lang/String;)[[Ljava/lang/String;", methodCache: &SwiftHelloTest_TestResponderAdapter.String2dArrayMethod_MethodID_2, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[String]].self, from: __return )
+ }
+
+ open func String2dArrayMethod( _ _arg: [[String]]? ) -> [[String]]! {
+ return String2dArrayMethod( arg: _arg )
+ }
+
+ /// public java.lang.String[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.StringArrayMethod(java.lang.String[])
+
+ private static var StringArrayMethod_MethodID_3: jmethodID?
+
+ open func StringArrayMethod( arg: [String]? ) -> [String]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "StringArrayMethod", methodSig: "([Ljava/lang/String;)[Ljava/lang/String;", methodCache: &SwiftHelloTest_TestResponderAdapter.StringArrayMethod_MethodID_3, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [String].self, from: __return )
+ }
+
+ open func StringArrayMethod( _ _arg: [String]? ) -> [String]! {
+ return StringArrayMethod( arg: _arg )
+ }
+
+ /// public java.lang.String com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.StringMethod(java.lang.String)
+
+ private static var StringMethod_MethodID_4: jmethodID?
+
+ open func StringMethod( arg: String? ) -> String! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "StringMethod", methodSig: "(Ljava/lang/String;)Ljava/lang/String;", methodCache: &SwiftHelloTest_TestResponderAdapter.StringMethod_MethodID_4, args: &__args, locals: &__locals )
+ defer { JNI.DeleteLocalRef( __return ) }
+ return __return != nil ? String( javaObject: __return ) : nil
+ }
+
+ open func StringMethod( _ _arg: String? ) -> String! {
+ return StringMethod( arg: _arg )
+ }
+
+ /// public com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.TestListener2dArrayMethod(com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener[][])
+
+ private static var TestListener2dArrayMethod_MethodID_5: jmethodID?
+
+ open func TestListener2dArrayMethod( arg: [[SwiftHelloTest_TestListener]]? ) -> [[SwiftHelloTest_TestListener]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "TestListener2dArrayMethod", methodSig: "([[Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;)[[Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", methodCache: &SwiftHelloTest_TestResponderAdapter.TestListener2dArrayMethod_MethodID_5, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[SwiftHelloTest_TestListenerForward]].self, from: __return )
+ }
+
+ open func TestListener2dArrayMethod( _ _arg: [[SwiftHelloTest_TestListener]]? ) -> [[SwiftHelloTest_TestListener]]! {
+ return TestListener2dArrayMethod( arg: _arg )
+ }
+
+ /// public com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.TestListenerArrayMethod(com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener[])
+
+ private static var TestListenerArrayMethod_MethodID_6: jmethodID?
+
+ open func TestListenerArrayMethod( arg: [SwiftHelloTest_TestListener]? ) -> [SwiftHelloTest_TestListener]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "TestListenerArrayMethod", methodSig: "([Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;)[Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", methodCache: &SwiftHelloTest_TestResponderAdapter.TestListenerArrayMethod_MethodID_6, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [SwiftHelloTest_TestListenerForward].self, from: __return )
+ }
+
+ open func TestListenerArrayMethod( _ _arg: [SwiftHelloTest_TestListener]? ) -> [SwiftHelloTest_TestListener]! {
+ return TestListenerArrayMethod( arg: _arg )
+ }
+
+ /// public com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.TestListenerMethod(com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener)
+
+ private static var TestListenerMethod_MethodID_7: jmethodID?
+
+ open func TestListenerMethod( arg: SwiftHelloTest_TestListener? ) -> SwiftHelloTest_TestListener! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "TestListenerMethod", methodSig: "(Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;)Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", methodCache: &SwiftHelloTest_TestResponderAdapter.TestListenerMethod_MethodID_7, args: &__args, locals: &__locals )
+ defer { JNI.DeleteLocalRef( __return ) }
+ return __return != nil ? SwiftHelloTest_TestListenerForward( javaObject: __return ) : nil
+ }
+
+ open func TestListenerMethod( _ _arg: SwiftHelloTest_TestListener? ) -> SwiftHelloTest_TestListener! {
+ return TestListenerMethod( arg: _arg )
+ }
+
+ /// public boolean[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.boolean2dArrayMethod(boolean[][])
+
+ private static var boolean2dArrayMethod_MethodID_8: jmethodID?
+
+ open func boolean2dArrayMethod( arg: [[Bool]]? ) -> [[Bool]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "boolean2dArrayMethod", methodSig: "([[Z)[[Z", methodCache: &SwiftHelloTest_TestResponderAdapter.boolean2dArrayMethod_MethodID_8, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[Bool]].self, from: __return )
+ }
+
+ open func boolean2dArrayMethod( _ _arg: [[Bool]]? ) -> [[Bool]]! {
+ return boolean2dArrayMethod( arg: _arg )
+ }
+
+ /// public boolean[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.booleanArrayMethod(boolean[])
+
+ private static var booleanArrayMethod_MethodID_9: jmethodID?
+
+ open func booleanArrayMethod( arg: [Bool]? ) -> [Bool]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "booleanArrayMethod", methodSig: "([Z)[Z", methodCache: &SwiftHelloTest_TestResponderAdapter.booleanArrayMethod_MethodID_9, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [Bool].self, from: __return )
+ }
+
+ open func booleanArrayMethod( _ _arg: [Bool]? ) -> [Bool]! {
+ return booleanArrayMethod( arg: _arg )
+ }
+
+ /// public boolean com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.booleanMethod(boolean)
+
+ private static var booleanMethod_MethodID_10: jmethodID?
+
+ open func booleanMethod( arg: Bool ) -> Bool {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( z: jboolean(arg ? JNI_TRUE : JNI_FALSE) )
+ let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "booleanMethod", methodSig: "(Z)Z", methodCache: &SwiftHelloTest_TestResponderAdapter.booleanMethod_MethodID_10, args: &__args, locals: &__locals )
+ return __return != jboolean(JNI_FALSE)
+ }
+
+ open func booleanMethod( _ _arg: Bool ) -> Bool {
+ return booleanMethod( arg: _arg )
+ }
+
+ /// public byte[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.byte2dArrayMethod(byte[][])
+
+ private static var byte2dArrayMethod_MethodID_11: jmethodID?
+
+ open func byte2dArrayMethod( arg: [[Int8]]? ) -> [[Int8]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "byte2dArrayMethod", methodSig: "([[B)[[B", methodCache: &SwiftHelloTest_TestResponderAdapter.byte2dArrayMethod_MethodID_11, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[Int8]].self, from: __return )
+ }
+
+ open func byte2dArrayMethod( _ _arg: [[Int8]]? ) -> [[Int8]]! {
+ return byte2dArrayMethod( arg: _arg )
+ }
+
+ /// public byte[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.byteArrayMethod(byte[])
+
+ private static var byteArrayMethod_MethodID_12: jmethodID?
+
+ open func byteArrayMethod( arg: [Int8]? ) -> [Int8]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "byteArrayMethod", methodSig: "([B)[B", methodCache: &SwiftHelloTest_TestResponderAdapter.byteArrayMethod_MethodID_12, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [Int8].self, from: __return )
+ }
+
+ open func byteArrayMethod( _ _arg: [Int8]? ) -> [Int8]! {
+ return byteArrayMethod( arg: _arg )
+ }
+
+ /// public byte com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.byteMethod(byte)
+
+ private static var byteMethod_MethodID_13: jmethodID?
+
+ open func byteMethod( arg: Int8 ) -> Int8 {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( b: arg )
+ let __return = JNIMethod.CallByteMethod( object: javaObject, methodName: "byteMethod", methodSig: "(B)B", methodCache: &SwiftHelloTest_TestResponderAdapter.byteMethod_MethodID_13, args: &__args, locals: &__locals )
+ return __return
+ }
+
+ open func byteMethod( _ _arg: Int8 ) -> Int8 {
+ return byteMethod( arg: _arg )
+ }
+
+ /// public char[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.char2dArrayMethod(char[][])
+
+ private static var char2dArrayMethod_MethodID_14: jmethodID?
+
+ open func char2dArrayMethod( arg: [[UInt16]]? ) -> [[UInt16]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "char2dArrayMethod", methodSig: "([[C)[[C", methodCache: &SwiftHelloTest_TestResponderAdapter.char2dArrayMethod_MethodID_14, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[UInt16]].self, from: __return )
+ }
+
+ open func char2dArrayMethod( _ _arg: [[UInt16]]? ) -> [[UInt16]]! {
+ return char2dArrayMethod( arg: _arg )
+ }
+
+ /// public char[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.charArrayMethod(char[])
+
+ private static var charArrayMethod_MethodID_15: jmethodID?
+
+ open func charArrayMethod( arg: [UInt16]? ) -> [UInt16]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "charArrayMethod", methodSig: "([C)[C", methodCache: &SwiftHelloTest_TestResponderAdapter.charArrayMethod_MethodID_15, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [UInt16].self, from: __return )
+ }
+
+ open func charArrayMethod( _ _arg: [UInt16]? ) -> [UInt16]! {
+ return charArrayMethod( arg: _arg )
+ }
+
+ /// public char com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.charMethod(char)
+
+ private static var charMethod_MethodID_16: jmethodID?
+
+ open func charMethod( arg: UInt16 ) -> UInt16 {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( c: arg )
+ let __return = JNIMethod.CallCharMethod( object: javaObject, methodName: "charMethod", methodSig: "(C)C", methodCache: &SwiftHelloTest_TestResponderAdapter.charMethod_MethodID_16, args: &__args, locals: &__locals )
+ return __return
+ }
+
+ open func charMethod( _ _arg: UInt16 ) -> UInt16 {
+ return charMethod( arg: _arg )
+ }
+
+ /// public double[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.double2dArrayMethod(double[][])
+
+ private static var double2dArrayMethod_MethodID_17: jmethodID?
+
+ open func double2dArrayMethod( arg: [[Double]]? ) -> [[Double]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "double2dArrayMethod", methodSig: "([[D)[[D", methodCache: &SwiftHelloTest_TestResponderAdapter.double2dArrayMethod_MethodID_17, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[Double]].self, from: __return )
+ }
+
+ open func double2dArrayMethod( _ _arg: [[Double]]? ) -> [[Double]]! {
+ return double2dArrayMethod( arg: _arg )
+ }
+
+ /// public double[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.doubleArrayMethod(double[])
+
+ private static var doubleArrayMethod_MethodID_18: jmethodID?
+
+ open func doubleArrayMethod( arg: [Double]? ) -> [Double]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "doubleArrayMethod", methodSig: "([D)[D", methodCache: &SwiftHelloTest_TestResponderAdapter.doubleArrayMethod_MethodID_18, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [Double].self, from: __return )
+ }
+
+ open func doubleArrayMethod( _ _arg: [Double]? ) -> [Double]! {
+ return doubleArrayMethod( arg: _arg )
+ }
+
+ /// public double com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.doubleMethod(double)
+
+ private static var doubleMethod_MethodID_19: jmethodID?
+
+ open func doubleMethod( arg: Double ) -> Double {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( d: arg )
+ let __return = JNIMethod.CallDoubleMethod( object: javaObject, methodName: "doubleMethod", methodSig: "(D)D", methodCache: &SwiftHelloTest_TestResponderAdapter.doubleMethod_MethodID_19, args: &__args, locals: &__locals )
+ return __return
+ }
+
+ open func doubleMethod( _ _arg: Double ) -> Double {
+ return doubleMethod( arg: _arg )
+ }
+
+ /// public float[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.float2dArrayMethod(float[][])
+
+ private static var float2dArrayMethod_MethodID_20: jmethodID?
+
+ open func float2dArrayMethod( arg: [[Float]]? ) -> [[Float]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "float2dArrayMethod", methodSig: "([[F)[[F", methodCache: &SwiftHelloTest_TestResponderAdapter.float2dArrayMethod_MethodID_20, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[Float]].self, from: __return )
+ }
+
+ open func float2dArrayMethod( _ _arg: [[Float]]? ) -> [[Float]]! {
+ return float2dArrayMethod( arg: _arg )
+ }
+
+ /// public float[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.floatArrayMethod(float[])
+
+ private static var floatArrayMethod_MethodID_21: jmethodID?
+
+ open func floatArrayMethod( arg: [Float]? ) -> [Float]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "floatArrayMethod", methodSig: "([F)[F", methodCache: &SwiftHelloTest_TestResponderAdapter.floatArrayMethod_MethodID_21, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [Float].self, from: __return )
+ }
+
+ open func floatArrayMethod( _ _arg: [Float]? ) -> [Float]! {
+ return floatArrayMethod( arg: _arg )
+ }
+
+ /// public float com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.floatMethod(float)
+
+ private static var floatMethod_MethodID_22: jmethodID?
+
+ open func floatMethod( arg: Float ) -> Float {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( f: arg )
+ let __return = JNIMethod.CallFloatMethod( object: javaObject, methodName: "floatMethod", methodSig: "(F)F", methodCache: &SwiftHelloTest_TestResponderAdapter.floatMethod_MethodID_22, args: &__args, locals: &__locals )
+ return __return
+ }
+
+ open func floatMethod( _ _arg: Float ) -> Float {
+ return floatMethod( arg: _arg )
+ }
+
+ /// public int[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.int2dArrayMethod(int[][])
+
+ private static var int2dArrayMethod_MethodID_23: jmethodID?
+
+ open func int2dArrayMethod( arg: [[Int32]]? ) -> [[Int32]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "int2dArrayMethod", methodSig: "([[I)[[I", methodCache: &SwiftHelloTest_TestResponderAdapter.int2dArrayMethod_MethodID_23, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[Int32]].self, from: __return )
+ }
+
+ open func int2dArrayMethod( _ _arg: [[Int32]]? ) -> [[Int32]]! {
+ return int2dArrayMethod( arg: _arg )
+ }
+
+ /// public int[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.intArrayMethod(int[])
+
+ private static var intArrayMethod_MethodID_24: jmethodID?
+
+ open func intArrayMethod( arg: [Int32]? ) -> [Int32]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "intArrayMethod", methodSig: "([I)[I", methodCache: &SwiftHelloTest_TestResponderAdapter.intArrayMethod_MethodID_24, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [Int32].self, from: __return )
+ }
+
+ open func intArrayMethod( _ _arg: [Int32]? ) -> [Int32]! {
+ return intArrayMethod( arg: _arg )
+ }
+
+ /// public int com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.intMethod(int)
+
+ private static var intMethod_MethodID_25: jmethodID?
+
+ open func intMethod( arg: Int ) -> Int {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( i: jint(arg) )
+ let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "intMethod", methodSig: "(I)I", methodCache: &SwiftHelloTest_TestResponderAdapter.intMethod_MethodID_25, args: &__args, locals: &__locals )
+ return Int(__return)
+ }
+
+ open func intMethod( _ _arg: Int ) -> Int {
+ return intMethod( arg: _arg )
+ }
+
+ /// public long[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.long2dArrayMethod(long[][])
+
+ private static var long2dArrayMethod_MethodID_26: jmethodID?
+
+ open func long2dArrayMethod( arg: [[Int64]]? ) -> [[Int64]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "long2dArrayMethod", methodSig: "([[J)[[J", methodCache: &SwiftHelloTest_TestResponderAdapter.long2dArrayMethod_MethodID_26, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[Int64]].self, from: __return )
+ }
+
+ open func long2dArrayMethod( _ _arg: [[Int64]]? ) -> [[Int64]]! {
+ return long2dArrayMethod( arg: _arg )
+ }
+
+ /// public long[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.longArrayMethod(long[])
+
+ private static var longArrayMethod_MethodID_27: jmethodID?
+
+ open func longArrayMethod( arg: [Int64]? ) -> [Int64]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "longArrayMethod", methodSig: "([J)[J", methodCache: &SwiftHelloTest_TestResponderAdapter.longArrayMethod_MethodID_27, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [Int64].self, from: __return )
+ }
+
+ open func longArrayMethod( _ _arg: [Int64]? ) -> [Int64]! {
+ return longArrayMethod( arg: _arg )
+ }
+
+ /// public long com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.longMethod(long)
+
+ private static var longMethod_MethodID_28: jmethodID?
+
+ open func longMethod( arg: Int64 ) -> Int64 {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( j: arg )
+ let __return = JNIMethod.CallLongMethod( object: javaObject, methodName: "longMethod", methodSig: "(J)J", methodCache: &SwiftHelloTest_TestResponderAdapter.longMethod_MethodID_28, args: &__args, locals: &__locals )
+ return __return
+ }
+
+ open func longMethod( _ _arg: Int64 ) -> Int64 {
+ return longMethod( arg: _arg )
+ }
+
+ /// public void com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.setLoopback(com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener)
+
+ private static var setLoopback_MethodID_29: jmethodID?
+
+ open func setLoopback( loopback: SwiftHelloTest_TestListener? ) {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: loopback, locals: &__locals )
+ JNIMethod.CallVoidMethod( object: javaObject, methodName: "setLoopback", methodSig: "(Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;)V", methodCache: &SwiftHelloTest_TestResponderAdapter.setLoopback_MethodID_29, args: &__args, locals: &__locals )
+ }
+
+ open func setLoopback( _ _loopback: SwiftHelloTest_TestListener? ) {
+ setLoopback( loopback: _loopback )
+ }
+
+ /// public short[][] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.short2dArrayMethod(short[][])
+
+ private static var short2dArrayMethod_MethodID_30: jmethodID?
+
+ open func short2dArrayMethod( arg: [[Int16]]? ) -> [[Int16]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "short2dArrayMethod", methodSig: "([[S)[[S", methodCache: &SwiftHelloTest_TestResponderAdapter.short2dArrayMethod_MethodID_30, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[Int16]].self, from: __return )
+ }
+
+ open func short2dArrayMethod( _ _arg: [[Int16]]? ) -> [[Int16]]! {
+ return short2dArrayMethod( arg: _arg )
+ }
+
+ /// public short[] com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.shortArrayMethod(short[])
+
+ private static var shortArrayMethod_MethodID_31: jmethodID?
+
+ open func shortArrayMethod( arg: [Int16]? ) -> [Int16]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "shortArrayMethod", methodSig: "([S)[S", methodCache: &SwiftHelloTest_TestResponderAdapter.shortArrayMethod_MethodID_31, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [Int16].self, from: __return )
+ }
+
+ open func shortArrayMethod( _ _arg: [Int16]? ) -> [Int16]! {
+ return shortArrayMethod( arg: _arg )
+ }
+
+ /// public short com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.shortMethod(short)
+
+ private static var shortMethod_MethodID_32: jmethodID?
+
+ open func shortMethod( arg: Int16 ) -> Int16 {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( s: arg )
+ let __return = JNIMethod.CallShortMethod( object: javaObject, methodName: "shortMethod", methodSig: "(S)S", methodCache: &SwiftHelloTest_TestResponderAdapter.shortMethod_MethodID_32, args: &__args, locals: &__locals )
+ return __return
+ }
+
+ open func shortMethod( _ _arg: Int16 ) -> Int16 {
+ return shortMethod( arg: _arg )
+ }
+
+ /// public com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMap com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.testMap(com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMap)
+
+ private static var testMap_MethodID_33: jmethodID?
+
+ open func testMap( arg: [String:SwiftHelloTypes_TextListener]? ) -> [String:SwiftHelloTypes_TextListener]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, mapClass: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMap", locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "testMap", methodSig: "(Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMap;)Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMap;", methodCache: &SwiftHelloTest_TestResponderAdapter.testMap_MethodID_33, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [String:SwiftHelloTypes_TextListenerForward].self, from: __return )
+ }
+
+ open func testMap( _ _arg: [String:SwiftHelloTypes_TextListener]? ) -> [String:SwiftHelloTypes_TextListener]! {
+ return testMap( arg: _arg )
+ }
+
+ /// public com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMapList com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter.testMapList(com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMapList)
+
+ private static var testMapList_MethodID_34: jmethodID?
+
+ open func testMapList( arg: [String:[SwiftHelloTypes_TextListener]]? ) -> [String:[SwiftHelloTypes_TextListener]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg, mapClass: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMapList", locals: &__locals )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "testMapList", methodSig: "(Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMapList;)Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMapList;", methodCache: &SwiftHelloTest_TestResponderAdapter.testMapList_MethodID_34, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [String:[SwiftHelloTypes_TextListenerForward]].self, from: __return )
+ }
+
+ open func testMapList( _ _arg: [String:[SwiftHelloTypes_TextListener]]? ) -> [String:[SwiftHelloTypes_TextListener]]! {
+ return testMapList( arg: _arg )
+ }
+
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_String2dArrayMethod_0_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestResponderAdapter_String2dArrayMethod_0( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).String2dArrayMethod( arg: JNIType.toSwift( type: [[String]].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_StringArrayMethod_1_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestResponderAdapter_StringArrayMethod_1( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).StringArrayMethod( arg: JNIType.toSwift( type: [String].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_StringMethod_2_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestResponderAdapter_StringMethod_2( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).StringMethod( arg: arg != nil ? String( javaObject: arg ) : nil )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_TestListener2dArrayMethod_3_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestResponderAdapter_TestListener2dArrayMethod_3( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).TestListener2dArrayMethod( arg: JNIType.toSwift( type: [[SwiftHelloTest_TestListenerForward]].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_TestListenerArrayMethod_4_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestResponderAdapter_TestListenerArrayMethod_4( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).TestListenerArrayMethod( arg: JNIType.toSwift( type: [SwiftHelloTest_TestListenerForward].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_TestListenerMethod_5_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestResponderAdapter_TestListenerMethod_5( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).TestListenerMethod( arg: arg != nil ? SwiftHelloTest_TestListenerForward( javaObject: arg ) : nil )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_boolean2dArrayMethod_6_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestResponderAdapter_boolean2dArrayMethod_6( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).boolean2dArrayMethod( arg: JNIType.toSwift( type: [[Bool]].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_booleanArrayMethod_7_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestResponderAdapter_booleanArrayMethod_7( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).booleanArrayMethod( arg: JNIType.toSwift( type: [Bool].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_booleanMethod_8_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jboolean ) -> jboolean
+
+private func SwiftHelloTest_TestResponderAdapter_booleanMethod_8( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jboolean ) -> jboolean {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).booleanMethod( arg: arg != jboolean(JNI_FALSE) )
+ var __locals = [jobject]()
+ return JNI.check( jvalue( z: jboolean(__return ? JNI_TRUE : JNI_FALSE) ).z, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_byte2dArrayMethod_9_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestResponderAdapter_byte2dArrayMethod_9( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).byte2dArrayMethod( arg: JNIType.toSwift( type: [[Int8]].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_byteArrayMethod_10_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestResponderAdapter_byteArrayMethod_10( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).byteArrayMethod( arg: JNIType.toSwift( type: [Int8].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_byteMethod_11_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jbyte ) -> jbyte
+
+private func SwiftHelloTest_TestResponderAdapter_byteMethod_11( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jbyte ) -> jbyte {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).byteMethod( arg: arg )
+ var __locals = [jobject]()
+ return JNI.check( jvalue( b: __return ).b, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_char2dArrayMethod_12_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestResponderAdapter_char2dArrayMethod_12( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).char2dArrayMethod( arg: JNIType.toSwift( type: [[UInt16]].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_charArrayMethod_13_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestResponderAdapter_charArrayMethod_13( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).charArrayMethod( arg: JNIType.toSwift( type: [UInt16].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_charMethod_14_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jchar ) -> jchar
+
+private func SwiftHelloTest_TestResponderAdapter_charMethod_14( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jchar ) -> jchar {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).charMethod( arg: arg )
+ var __locals = [jobject]()
+ return JNI.check( jvalue( c: __return ).c, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_double2dArrayMethod_15_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestResponderAdapter_double2dArrayMethod_15( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).double2dArrayMethod( arg: JNIType.toSwift( type: [[Double]].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_doubleArrayMethod_16_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestResponderAdapter_doubleArrayMethod_16( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).doubleArrayMethod( arg: JNIType.toSwift( type: [Double].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_doubleMethod_17_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jdouble ) -> jdouble
+
+private func SwiftHelloTest_TestResponderAdapter_doubleMethod_17( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jdouble ) -> jdouble {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).doubleMethod( arg: arg )
+ var __locals = [jobject]()
+ return JNI.check( jvalue( d: __return ).d, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_equals_18_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jboolean
+
+private func SwiftHelloTest_TestResponderAdapter_equals_18( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg0: jobject? ) -> jboolean {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).equals( arg0: arg0 != nil ? java_swift.JavaObject( javaObject: arg0 ) : nil )
+ var __locals = [jobject]()
+ return JNI.check( jvalue( z: jboolean(__return ? JNI_TRUE : JNI_FALSE) ).z, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_float2dArrayMethod_19_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestResponderAdapter_float2dArrayMethod_19( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).float2dArrayMethod( arg: JNIType.toSwift( type: [[Float]].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_floatArrayMethod_20_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestResponderAdapter_floatArrayMethod_20( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).floatArrayMethod( arg: JNIType.toSwift( type: [Float].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_floatMethod_21_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jfloat ) -> jfloat
+
+private func SwiftHelloTest_TestResponderAdapter_floatMethod_21( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jfloat ) -> jfloat {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).floatMethod( arg: arg )
+ var __locals = [jobject]()
+ return JNI.check( jvalue( f: __return ).f, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_hashCode_23_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong ) -> jint
+
+private func SwiftHelloTest_TestResponderAdapter_hashCode_23( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong ) -> jint {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).hashCode( )
+ var __locals = [jobject]()
+ return JNI.check( jvalue( i: jint(__return) ).i, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_int2dArrayMethod_24_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestResponderAdapter_int2dArrayMethod_24( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).int2dArrayMethod( arg: JNIType.toSwift( type: [[Int32]].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_intArrayMethod_25_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestResponderAdapter_intArrayMethod_25( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).intArrayMethod( arg: JNIType.toSwift( type: [Int32].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_intMethod_26_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jint ) -> jint
+
+private func SwiftHelloTest_TestResponderAdapter_intMethod_26( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jint ) -> jint {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).intMethod( arg: Int(arg) )
+ var __locals = [jobject]()
+ return JNI.check( jvalue( i: jint(__return) ).i, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_long2dArrayMethod_27_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestResponderAdapter_long2dArrayMethod_27( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).long2dArrayMethod( arg: JNIType.toSwift( type: [[Int64]].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_longArrayMethod_28_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestResponderAdapter_longArrayMethod_28( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).longArrayMethod( arg: JNIType.toSwift( type: [Int64].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_longMethod_29_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jlong ) -> jlong
+
+private func SwiftHelloTest_TestResponderAdapter_longMethod_29( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jlong ) -> jlong {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).longMethod( arg: arg )
+ var __locals = [jobject]()
+ return JNI.check( jvalue( j: __return ).j, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_setLoopback_32_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> ()
+
+private func SwiftHelloTest_TestResponderAdapter_setLoopback_32( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ loopback: jobject? ) -> () {
+ SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).setLoopback( loopback: loopback != nil ? SwiftHelloTest_TestListenerForward( javaObject: loopback ) : nil )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_short2dArrayMethod_33_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestResponderAdapter_short2dArrayMethod_33( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).short2dArrayMethod( arg: JNIType.toSwift( type: [[Int16]].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_shortArrayMethod_34_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestResponderAdapter_shortArrayMethod_34( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).shortArrayMethod( arg: JNIType.toSwift( type: [Int16].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_shortMethod_35_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jshort ) -> jshort
+
+private func SwiftHelloTest_TestResponderAdapter_shortMethod_35( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jshort ) -> jshort {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).shortMethod( arg: arg )
+ var __locals = [jobject]()
+ return JNI.check( jvalue( s: __return ).s, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_testMap_36_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestResponderAdapter_testMap_36( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).testMap( arg: JNIType.toSwift( type: [String:SwiftHelloTypes_TextListenerForward].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, mapClass: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMap", locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_testMapList_37_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong, _: jobject? ) -> jobject?
+
+private func SwiftHelloTest_TestResponderAdapter_testMapList_37( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong, _ arg: jobject? ) -> jobject? {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).testMapList( arg: JNIType.toSwift( type: [String:[SwiftHelloTypes_TextListenerForward]].self, from: arg, consume: false ) )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, mapClass: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMapList", locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+private typealias SwiftHelloTest_TestResponderAdapter_toString_38_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong ) -> jobject?
+
+private func SwiftHelloTest_TestResponderAdapter_toString_38( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong ) -> jobject? {
+ let __return = SwiftHelloTest_TestResponderAdapterLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).toString( )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+fileprivate class SwiftHelloTest_TestResponderAdapterLocal_: JNIObjectProxy {
+
+ fileprivate static let _proxyClass: jclass = {
+ var natives = [JNINativeMethod]()
+
+ let SwiftHelloTest_TestResponderAdapter_String2dArrayMethod_0_thunk: SwiftHelloTest_TestResponderAdapter_String2dArrayMethod_0_type = SwiftHelloTest_TestResponderAdapter_String2dArrayMethod_0
+ natives.append( JNINativeMethod( name: strdup("__String2dArrayMethod"), signature: strdup("(J[[Ljava/lang/String;)[[Ljava/lang/String;"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_String2dArrayMethod_0_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_StringArrayMethod_1_thunk: SwiftHelloTest_TestResponderAdapter_StringArrayMethod_1_type = SwiftHelloTest_TestResponderAdapter_StringArrayMethod_1
+ natives.append( JNINativeMethod( name: strdup("__StringArrayMethod"), signature: strdup("(J[Ljava/lang/String;)[Ljava/lang/String;"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_StringArrayMethod_1_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_StringMethod_2_thunk: SwiftHelloTest_TestResponderAdapter_StringMethod_2_type = SwiftHelloTest_TestResponderAdapter_StringMethod_2
+ natives.append( JNINativeMethod( name: strdup("__StringMethod"), signature: strdup("(JLjava/lang/String;)Ljava/lang/String;"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_StringMethod_2_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_TestListener2dArrayMethod_3_thunk: SwiftHelloTest_TestResponderAdapter_TestListener2dArrayMethod_3_type = SwiftHelloTest_TestResponderAdapter_TestListener2dArrayMethod_3
+ natives.append( JNINativeMethod( name: strdup("__TestListener2dArrayMethod"), signature: strdup("(J[[Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;)[[Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_TestListener2dArrayMethod_3_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_TestListenerArrayMethod_4_thunk: SwiftHelloTest_TestResponderAdapter_TestListenerArrayMethod_4_type = SwiftHelloTest_TestResponderAdapter_TestListenerArrayMethod_4
+ natives.append( JNINativeMethod( name: strdup("__TestListenerArrayMethod"), signature: strdup("(J[Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;)[Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_TestListenerArrayMethod_4_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_TestListenerMethod_5_thunk: SwiftHelloTest_TestResponderAdapter_TestListenerMethod_5_type = SwiftHelloTest_TestResponderAdapter_TestListenerMethod_5
+ natives.append( JNINativeMethod( name: strdup("__TestListenerMethod"), signature: strdup("(JLcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;)Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_TestListenerMethod_5_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_boolean2dArrayMethod_6_thunk: SwiftHelloTest_TestResponderAdapter_boolean2dArrayMethod_6_type = SwiftHelloTest_TestResponderAdapter_boolean2dArrayMethod_6
+ natives.append( JNINativeMethod( name: strdup("__boolean2dArrayMethod"), signature: strdup("(J[[Z)[[Z"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_boolean2dArrayMethod_6_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_booleanArrayMethod_7_thunk: SwiftHelloTest_TestResponderAdapter_booleanArrayMethod_7_type = SwiftHelloTest_TestResponderAdapter_booleanArrayMethod_7
+ natives.append( JNINativeMethod( name: strdup("__booleanArrayMethod"), signature: strdup("(J[Z)[Z"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_booleanArrayMethod_7_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_booleanMethod_8_thunk: SwiftHelloTest_TestResponderAdapter_booleanMethod_8_type = SwiftHelloTest_TestResponderAdapter_booleanMethod_8
+ natives.append( JNINativeMethod( name: strdup("__booleanMethod"), signature: strdup("(JZ)Z"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_booleanMethod_8_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_byte2dArrayMethod_9_thunk: SwiftHelloTest_TestResponderAdapter_byte2dArrayMethod_9_type = SwiftHelloTest_TestResponderAdapter_byte2dArrayMethod_9
+ natives.append( JNINativeMethod( name: strdup("__byte2dArrayMethod"), signature: strdup("(J[[B)[[B"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_byte2dArrayMethod_9_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_byteArrayMethod_10_thunk: SwiftHelloTest_TestResponderAdapter_byteArrayMethod_10_type = SwiftHelloTest_TestResponderAdapter_byteArrayMethod_10
+ natives.append( JNINativeMethod( name: strdup("__byteArrayMethod"), signature: strdup("(J[B)[B"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_byteArrayMethod_10_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_byteMethod_11_thunk: SwiftHelloTest_TestResponderAdapter_byteMethod_11_type = SwiftHelloTest_TestResponderAdapter_byteMethod_11
+ natives.append( JNINativeMethod( name: strdup("__byteMethod"), signature: strdup("(JB)B"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_byteMethod_11_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_char2dArrayMethod_12_thunk: SwiftHelloTest_TestResponderAdapter_char2dArrayMethod_12_type = SwiftHelloTest_TestResponderAdapter_char2dArrayMethod_12
+ natives.append( JNINativeMethod( name: strdup("__char2dArrayMethod"), signature: strdup("(J[[C)[[C"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_char2dArrayMethod_12_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_charArrayMethod_13_thunk: SwiftHelloTest_TestResponderAdapter_charArrayMethod_13_type = SwiftHelloTest_TestResponderAdapter_charArrayMethod_13
+ natives.append( JNINativeMethod( name: strdup("__charArrayMethod"), signature: strdup("(J[C)[C"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_charArrayMethod_13_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_charMethod_14_thunk: SwiftHelloTest_TestResponderAdapter_charMethod_14_type = SwiftHelloTest_TestResponderAdapter_charMethod_14
+ natives.append( JNINativeMethod( name: strdup("__charMethod"), signature: strdup("(JC)C"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_charMethod_14_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_double2dArrayMethod_15_thunk: SwiftHelloTest_TestResponderAdapter_double2dArrayMethod_15_type = SwiftHelloTest_TestResponderAdapter_double2dArrayMethod_15
+ natives.append( JNINativeMethod( name: strdup("__double2dArrayMethod"), signature: strdup("(J[[D)[[D"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_double2dArrayMethod_15_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_doubleArrayMethod_16_thunk: SwiftHelloTest_TestResponderAdapter_doubleArrayMethod_16_type = SwiftHelloTest_TestResponderAdapter_doubleArrayMethod_16
+ natives.append( JNINativeMethod( name: strdup("__doubleArrayMethod"), signature: strdup("(J[D)[D"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_doubleArrayMethod_16_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_doubleMethod_17_thunk: SwiftHelloTest_TestResponderAdapter_doubleMethod_17_type = SwiftHelloTest_TestResponderAdapter_doubleMethod_17
+ natives.append( JNINativeMethod( name: strdup("__doubleMethod"), signature: strdup("(JD)D"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_doubleMethod_17_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_equals_18_thunk: SwiftHelloTest_TestResponderAdapter_equals_18_type = SwiftHelloTest_TestResponderAdapter_equals_18
+ natives.append( JNINativeMethod( name: strdup("__equals"), signature: strdup("(JLjava/lang/Object;)Z"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_equals_18_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_float2dArrayMethod_19_thunk: SwiftHelloTest_TestResponderAdapter_float2dArrayMethod_19_type = SwiftHelloTest_TestResponderAdapter_float2dArrayMethod_19
+ natives.append( JNINativeMethod( name: strdup("__float2dArrayMethod"), signature: strdup("(J[[F)[[F"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_float2dArrayMethod_19_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_floatArrayMethod_20_thunk: SwiftHelloTest_TestResponderAdapter_floatArrayMethod_20_type = SwiftHelloTest_TestResponderAdapter_floatArrayMethod_20
+ natives.append( JNINativeMethod( name: strdup("__floatArrayMethod"), signature: strdup("(J[F)[F"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_floatArrayMethod_20_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_floatMethod_21_thunk: SwiftHelloTest_TestResponderAdapter_floatMethod_21_type = SwiftHelloTest_TestResponderAdapter_floatMethod_21
+ natives.append( JNINativeMethod( name: strdup("__floatMethod"), signature: strdup("(JF)F"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_floatMethod_21_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_hashCode_23_thunk: SwiftHelloTest_TestResponderAdapter_hashCode_23_type = SwiftHelloTest_TestResponderAdapter_hashCode_23
+ natives.append( JNINativeMethod( name: strdup("__hashCode"), signature: strdup("(J)I"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_hashCode_23_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_int2dArrayMethod_24_thunk: SwiftHelloTest_TestResponderAdapter_int2dArrayMethod_24_type = SwiftHelloTest_TestResponderAdapter_int2dArrayMethod_24
+ natives.append( JNINativeMethod( name: strdup("__int2dArrayMethod"), signature: strdup("(J[[I)[[I"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_int2dArrayMethod_24_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_intArrayMethod_25_thunk: SwiftHelloTest_TestResponderAdapter_intArrayMethod_25_type = SwiftHelloTest_TestResponderAdapter_intArrayMethod_25
+ natives.append( JNINativeMethod( name: strdup("__intArrayMethod"), signature: strdup("(J[I)[I"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_intArrayMethod_25_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_intMethod_26_thunk: SwiftHelloTest_TestResponderAdapter_intMethod_26_type = SwiftHelloTest_TestResponderAdapter_intMethod_26
+ natives.append( JNINativeMethod( name: strdup("__intMethod"), signature: strdup("(JI)I"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_intMethod_26_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_long2dArrayMethod_27_thunk: SwiftHelloTest_TestResponderAdapter_long2dArrayMethod_27_type = SwiftHelloTest_TestResponderAdapter_long2dArrayMethod_27
+ natives.append( JNINativeMethod( name: strdup("__long2dArrayMethod"), signature: strdup("(J[[J)[[J"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_long2dArrayMethod_27_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_longArrayMethod_28_thunk: SwiftHelloTest_TestResponderAdapter_longArrayMethod_28_type = SwiftHelloTest_TestResponderAdapter_longArrayMethod_28
+ natives.append( JNINativeMethod( name: strdup("__longArrayMethod"), signature: strdup("(J[J)[J"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_longArrayMethod_28_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_longMethod_29_thunk: SwiftHelloTest_TestResponderAdapter_longMethod_29_type = SwiftHelloTest_TestResponderAdapter_longMethod_29
+ natives.append( JNINativeMethod( name: strdup("__longMethod"), signature: strdup("(JJ)J"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_longMethod_29_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_setLoopback_32_thunk: SwiftHelloTest_TestResponderAdapter_setLoopback_32_type = SwiftHelloTest_TestResponderAdapter_setLoopback_32
+ natives.append( JNINativeMethod( name: strdup("__setLoopback"), signature: strdup("(JLcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;)V"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_setLoopback_32_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_short2dArrayMethod_33_thunk: SwiftHelloTest_TestResponderAdapter_short2dArrayMethod_33_type = SwiftHelloTest_TestResponderAdapter_short2dArrayMethod_33
+ natives.append( JNINativeMethod( name: strdup("__short2dArrayMethod"), signature: strdup("(J[[S)[[S"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_short2dArrayMethod_33_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_shortArrayMethod_34_thunk: SwiftHelloTest_TestResponderAdapter_shortArrayMethod_34_type = SwiftHelloTest_TestResponderAdapter_shortArrayMethod_34
+ natives.append( JNINativeMethod( name: strdup("__shortArrayMethod"), signature: strdup("(J[S)[S"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_shortArrayMethod_34_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_shortMethod_35_thunk: SwiftHelloTest_TestResponderAdapter_shortMethod_35_type = SwiftHelloTest_TestResponderAdapter_shortMethod_35
+ natives.append( JNINativeMethod( name: strdup("__shortMethod"), signature: strdup("(JS)S"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_shortMethod_35_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_testMap_36_thunk: SwiftHelloTest_TestResponderAdapter_testMap_36_type = SwiftHelloTest_TestResponderAdapter_testMap_36
+ natives.append( JNINativeMethod( name: strdup("__testMap"), signature: strdup("(JLcom/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMap;)Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMap;"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_testMap_36_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_testMapList_37_thunk: SwiftHelloTest_TestResponderAdapter_testMapList_37_type = SwiftHelloTest_TestResponderAdapter_testMapList_37
+ natives.append( JNINativeMethod( name: strdup("__testMapList"), signature: strdup("(JLcom/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMapList;)Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMapList;"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_testMapList_37_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let SwiftHelloTest_TestResponderAdapter_toString_38_thunk: SwiftHelloTest_TestResponderAdapter_toString_38_type = SwiftHelloTest_TestResponderAdapter_toString_38
+ natives.append( JNINativeMethod( name: strdup("__toString"), signature: strdup("(J)Ljava/lang/String;"), fnPtr: unsafeBitCast( SwiftHelloTest_TestResponderAdapter_toString_38_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ natives.append( JNINativeMethod( name: strdup("__finalize"), signature: strdup("(J)V"), fnPtr: unsafeBitCast( JNIReleasableProxy__finalize_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let clazz = JNI.FindClass( proxyClassName() )
+ withUnsafePointer(to: &natives[0]) {
+ nativesPtr in
+ if JNI.api.RegisterNatives( JNI.env, clazz, nativesPtr, jint(natives.count) ) != jint(JNI_OK) {
+ JNI.report( "Unable to register java natives" )
+ }
+ }
+
+ defer { JNI.DeleteLocalRef( clazz ) }
+ return JNI.api.NewGlobalRef( JNI.env, clazz )!
+ }()
+
+ override open class func proxyClassName() -> String { return "org/swiftjava/com_johnholdsworth/SwiftHelloTest_TestResponderAdapterProxy" }
+ override open class func proxyClass() -> jclass? { return _proxyClass }
+
+}
+
+open class SwiftHelloTest_TestResponderAdapterBase: SwiftHelloTest_TestResponderAdapter {
+
+ private static var SwiftHelloTest_TestResponderAdapterBaseJNIClass: jclass? = SwiftHelloTest_TestResponderAdapterLocal_.proxyClass()
+
+ private lazy var __local: SwiftHelloTest_TestResponderAdapterLocal_? = SwiftHelloTest_TestResponderAdapterLocal_( owned: self, proto: self )
+
+ override open func clearLocal() {
+ __local = nil
+ }
+
+ open func inherit( _ parent: JNIObjectProtocol ) {
+ parent.withJavaObject {
+ self.javaObject = $0
+ self.__local?.takeOwnership(javaObject: $0)
+ }
+ }
+
+ /// public com.johnholdsworth.swiftbindings.SwiftHelloTest$TestResponderAdapter()
+
+ private static var new_MethodID_35: jmethodID?
+
+ public convenience init() {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+
+ self.init( javaObject: nil )
+ __args[0] = __local!.swiftValue()
+
+ let __object = JNIMethod.NewObject( className: "org/swiftjava/com_johnholdsworth/SwiftHelloTest_TestResponderAdapterProxy", classCache: &SwiftHelloTest_TestResponderAdapterBase.SwiftHelloTest_TestResponderAdapterBaseJNIClass, methodSig: "(J)V", methodCache: &SwiftHelloTest_TestResponderAdapterBase.new_MethodID_35, args: &__args, locals: &__locals )
+ self.javaObject = __object
+ JNI.DeleteLocalRef( __object )
+ }
+
+}
diff --git a/com_johnholdsworth/Sources/SwiftHelloTypes.swift b/com_johnholdsworth/Sources/SwiftHelloTypes.swift
new file mode 100644
index 0000000..d46c71b
--- /dev/null
+++ b/com_johnholdsworth/Sources/SwiftHelloTypes.swift
@@ -0,0 +1,18 @@
+
+import java_swift
+
+/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
+
+/// interface com.johnholdsworth.swiftbindings.SwiftHelloTypes ///
+
+public protocol SwiftHelloTypes: JavaProtocol {
+
+}
+
+
+open class SwiftHelloTypesForward: JNIObjectForward, SwiftHelloTypes {
+
+ private static var SwiftHelloTypesJNIClass: jclass?
+
+}
+
diff --git a/com_johnholdsworth/Sources/SwiftHelloTypes_ListenerMap.swift b/com_johnholdsworth/Sources/SwiftHelloTypes_ListenerMap.swift
new file mode 100644
index 0000000..86ae8f4
--- /dev/null
+++ b/com_johnholdsworth/Sources/SwiftHelloTypes_ListenerMap.swift
@@ -0,0 +1,103 @@
+
+import java_swift
+
+/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
+
+/// class com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMap ///
+
+open class SwiftHelloTypes_ListenerMap: java_swift.HashMap {
+
+ public convenience init?( casting object: java_swift.JavaObject, _ file: StaticString = #file, _ line: Int = #line ) {
+ self.init( javaObject: nil )
+ object.withJavaObject {
+ self.javaObject = $0
+ }
+ }
+
+ private static var SwiftHelloTypes_ListenerMapJNIClass: jclass?
+
+ /// static final int java.util.HashMap.DEFAULT_INITIAL_CAPACITY
+
+ // Skipping field: true false false false false false
+
+ /// static final float java.util.HashMap.DEFAULT_LOAD_FACTOR
+
+ // Skipping field: true false false false false false
+
+ /// static final int java.util.HashMap.MAXIMUM_CAPACITY
+
+ // Skipping field: true false false false false false
+
+ /// static final int java.util.HashMap.MIN_TREEIFY_CAPACITY
+
+ // Skipping field: true false false false false false
+
+ /// static final int java.util.HashMap.TREEIFY_THRESHOLD
+
+ // Skipping field: true false false false false false
+
+ /// static final int java.util.HashMap.UNTREEIFY_THRESHOLD
+
+ // Skipping field: true false false false false false
+
+ /// private static final long java.util.HashMap.serialVersionUID
+
+ /// transient java.util.Set java.util.HashMap.entrySet
+
+ // Skipping field: true false false false false false
+
+ /// final float java.util.HashMap.loadFactor
+
+ // Skipping field: true false false false false false
+
+ /// transient int java.util.HashMap.modCount
+
+ // Skipping field: true false false false false false
+
+ /// transient int java.util.HashMap.size
+
+ // Skipping field: true false false false false false
+
+ /// transient java.util.HashMap$Node[] java.util.HashMap.table
+
+ // Skipping field: true false false false false false
+
+ /// int java.util.HashMap.threshold
+
+ // Skipping field: true false false false false false
+
+ /// transient java.util.Set java.util.AbstractMap.keySet
+
+ // Skipping field: true false false false false false
+
+ /// transient java.util.Collection java.util.AbstractMap.values
+
+ // Skipping field: true false false false false false
+
+ /// public com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMap()
+
+ 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: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMap", classCache: &SwiftHelloTypes_ListenerMap.SwiftHelloTypes_ListenerMapJNIClass, methodSig: "()V", methodCache: &SwiftHelloTypes_ListenerMap.new_MethodID_1, args: &__args, locals: &__locals )
+ self.init( javaObject: __object )
+ JNI.DeleteLocalRef( __object )
+ }
+
+ /// public static java.lang.Class com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMap.valueClass()
+
+ private static var valueClass_MethodID_2: jmethodID?
+
+ open class func valueClass() -> java_swift.JavaClass! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ let __return = JNIMethod.CallStaticObjectMethod( className: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMap", classCache: &SwiftHelloTypes_ListenerMapJNIClass, methodName: "valueClass", methodSig: "()Ljava/lang/Class;", methodCache: &valueClass_MethodID_2, args: &__args, locals: &__locals )
+ defer { JNI.DeleteLocalRef( __return ) }
+ return __return != nil ? java_swift.JavaClass( javaObject: __return ) : nil
+ }
+
+
+}
+
diff --git a/com_johnholdsworth/Sources/SwiftHelloTypes_ListenerMapList.swift b/com_johnholdsworth/Sources/SwiftHelloTypes_ListenerMapList.swift
new file mode 100644
index 0000000..d25267f
--- /dev/null
+++ b/com_johnholdsworth/Sources/SwiftHelloTypes_ListenerMapList.swift
@@ -0,0 +1,103 @@
+
+import java_swift
+
+/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
+
+/// class com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMapList ///
+
+open class SwiftHelloTypes_ListenerMapList: java_swift.HashMap {
+
+ public convenience init?( casting object: java_swift.JavaObject, _ file: StaticString = #file, _ line: Int = #line ) {
+ self.init( javaObject: nil )
+ object.withJavaObject {
+ self.javaObject = $0
+ }
+ }
+
+ private static var SwiftHelloTypes_ListenerMapListJNIClass: jclass?
+
+ /// static final int java.util.HashMap.DEFAULT_INITIAL_CAPACITY
+
+ // Skipping field: true false false false false false
+
+ /// static final float java.util.HashMap.DEFAULT_LOAD_FACTOR
+
+ // Skipping field: true false false false false false
+
+ /// static final int java.util.HashMap.MAXIMUM_CAPACITY
+
+ // Skipping field: true false false false false false
+
+ /// static final int java.util.HashMap.MIN_TREEIFY_CAPACITY
+
+ // Skipping field: true false false false false false
+
+ /// static final int java.util.HashMap.TREEIFY_THRESHOLD
+
+ // Skipping field: true false false false false false
+
+ /// static final int java.util.HashMap.UNTREEIFY_THRESHOLD
+
+ // Skipping field: true false false false false false
+
+ /// private static final long java.util.HashMap.serialVersionUID
+
+ /// transient java.util.Set java.util.HashMap.entrySet
+
+ // Skipping field: true false false false false false
+
+ /// final float java.util.HashMap.loadFactor
+
+ // Skipping field: true false false false false false
+
+ /// transient int java.util.HashMap.modCount
+
+ // Skipping field: true false false false false false
+
+ /// transient int java.util.HashMap.size
+
+ // Skipping field: true false false false false false
+
+ /// transient java.util.HashMap$Node[] java.util.HashMap.table
+
+ // Skipping field: true false false false false false
+
+ /// int java.util.HashMap.threshold
+
+ // Skipping field: true false false false false false
+
+ /// transient java.util.Set java.util.AbstractMap.keySet
+
+ // Skipping field: true false false false false false
+
+ /// transient java.util.Collection java.util.AbstractMap.values
+
+ // Skipping field: true false false false false false
+
+ /// public com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMapList()
+
+ 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: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMapList", classCache: &SwiftHelloTypes_ListenerMapList.SwiftHelloTypes_ListenerMapListJNIClass, methodSig: "()V", methodCache: &SwiftHelloTypes_ListenerMapList.new_MethodID_1, args: &__args, locals: &__locals )
+ self.init( javaObject: __object )
+ JNI.DeleteLocalRef( __object )
+ }
+
+ /// public static java.lang.Class com.johnholdsworth.swiftbindings.SwiftHelloTypes$ListenerMapList.valueClass()
+
+ private static var valueClass_MethodID_2: jmethodID?
+
+ open class func valueClass() -> java_swift.JavaClass! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ let __return = JNIMethod.CallStaticObjectMethod( className: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$ListenerMapList", classCache: &SwiftHelloTypes_ListenerMapListJNIClass, methodName: "valueClass", methodSig: "()Ljava/lang/Class;", methodCache: &valueClass_MethodID_2, args: &__args, locals: &__locals )
+ defer { JNI.DeleteLocalRef( __return ) }
+ return __return != nil ? java_swift.JavaClass( javaObject: __return ) : nil
+ }
+
+
+}
+
diff --git a/com_johnholdsworth/Sources/SwiftHelloTypes_Planet.swift b/com_johnholdsworth/Sources/SwiftHelloTypes_Planet.swift
new file mode 100644
index 0000000..09718d0
--- /dev/null
+++ b/com_johnholdsworth/Sources/SwiftHelloTypes_Planet.swift
@@ -0,0 +1,357 @@
+
+import java_swift
+
+/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
+
+/// class com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet ///
+
+public enum SwiftHelloTypes_Planet: Int, JNIObjectProtocol, JNIObjectInit {
+
+ case MERCURY, VENUS, EARTH, MARS, JUPITER, SATURN, URANUS, NEPTUNE
+
+ static let enumConstants = try! JavaClass.forName("com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet")
+ .getEnumConstants()!.map { SwiftHelloTypes_PlanetForward( javaObject: $0.javaObject ) }
+
+ public func underlier() -> SwiftHelloTypes_PlanetForward {
+ return SwiftHelloTypes_Planet.enumConstants[self.rawValue]
+ }
+
+ public func localJavaObject(_ locals: UnsafeMutablePointer<[jobject]>) -> jobject? {
+ return underlier().localJavaObject( locals )
+ }
+
+ public init( javaObject: jobject? ) {
+ self = SwiftHelloTypes_Planet( rawValue: JavaEnum( javaObject: javaObject ).ordinal() )!
+ }
+
+ /// public static com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet.valueOf(java.lang.String)
+
+ private static var valueOf_MethodID_1: jmethodID?
+
+ public static func valueOf( name: String? ) -> SwiftHelloTypes_Planet! {
+ return SwiftHelloTypes_PlanetForward.valueOf( name: name )
+ }
+ public static func valueOf( _ _name: String? ) -> SwiftHelloTypes_Planet! {
+ return valueOf( name: _name )
+ }
+
+ /// public static com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet[] com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet.values()
+
+ private static var values_MethodID_2: jmethodID?
+
+ public static func values() -> [SwiftHelloTypes_Planet]! {
+ return SwiftHelloTypes_PlanetForward.values( )
+ }
+
+ /// public double com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet.mass()
+
+ private static var mass_MethodID_3: jmethodID?
+
+ public func mass() -> Double {
+ return underlier().mass( )
+ }
+
+ /// public double com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet.radius()
+
+ private static var radius_MethodID_4: jmethodID?
+
+ public func radius() -> Double {
+ return underlier().radius( )
+ }
+
+ /// public double com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet.surfaceGravity()
+
+ private static var surfaceGravity_MethodID_5: jmethodID?
+
+ public func surfaceGravity() -> Double {
+ return underlier().surfaceGravity( )
+ }
+
+ /// public double com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet.surfaceWeight(double)
+
+ private static var surfaceWeight_MethodID_6: jmethodID?
+
+ public func surfaceWeight( otherMass: Double ) -> Double {
+ return underlier().surfaceWeight( otherMass: otherMass )
+ }
+ public func surfaceWeight( _ _otherMass: Double ) -> Double {
+ return surfaceWeight( otherMass: _otherMass )
+ }
+
+}
+
+
+open class SwiftHelloTypes_PlanetForward: JNIObjectForward {
+
+ private static var SwiftHelloTypes_PlanetJNIClass: jclass?
+
+ /// private static final com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet[] com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet.$VALUES
+
+ /// public static final com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet.EARTH
+
+ private static var EARTH_FieldID: jfieldID?
+
+ public static var EARTH: SwiftHelloTypes_Planet! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "EARTH", fieldType: "Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$Planet;", fieldCache: &EARTH_FieldID, className: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$Planet", classCache: &SwiftHelloTypes_PlanetJNIClass )
+ defer { JNI.DeleteLocalRef( __value ) }
+ return __value != nil ? SwiftHelloTypes_Planet( javaObject: __value ) : nil
+ }
+ }
+
+ /// public static final double com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet.G
+
+ private static var G_FieldID: jfieldID?
+
+ public static var G: Double {
+ get {
+ let __value = JNIField.GetStaticDoubleField( fieldName: "G", fieldType: "D", fieldCache: &G_FieldID, className: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$Planet", classCache: &SwiftHelloTypes_PlanetJNIClass )
+ return __value
+ }
+ }
+
+ /// public static final com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet.JUPITER
+
+ private static var JUPITER_FieldID: jfieldID?
+
+ public static var JUPITER: SwiftHelloTypes_Planet! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "JUPITER", fieldType: "Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$Planet;", fieldCache: &JUPITER_FieldID, className: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$Planet", classCache: &SwiftHelloTypes_PlanetJNIClass )
+ defer { JNI.DeleteLocalRef( __value ) }
+ return __value != nil ? SwiftHelloTypes_Planet( javaObject: __value ) : nil
+ }
+ }
+
+ /// public static final com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet.MARS
+
+ private static var MARS_FieldID: jfieldID?
+
+ public static var MARS: SwiftHelloTypes_Planet! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "MARS", fieldType: "Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$Planet;", fieldCache: &MARS_FieldID, className: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$Planet", classCache: &SwiftHelloTypes_PlanetJNIClass )
+ defer { JNI.DeleteLocalRef( __value ) }
+ return __value != nil ? SwiftHelloTypes_Planet( javaObject: __value ) : nil
+ }
+ }
+
+ /// public static final com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet.MERCURY
+
+ private static var MERCURY_FieldID: jfieldID?
+
+ public static var MERCURY: SwiftHelloTypes_Planet! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "MERCURY", fieldType: "Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$Planet;", fieldCache: &MERCURY_FieldID, className: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$Planet", classCache: &SwiftHelloTypes_PlanetJNIClass )
+ defer { JNI.DeleteLocalRef( __value ) }
+ return __value != nil ? SwiftHelloTypes_Planet( javaObject: __value ) : nil
+ }
+ }
+
+ /// public static final com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet.NEPTUNE
+
+ private static var NEPTUNE_FieldID: jfieldID?
+
+ public static var NEPTUNE: SwiftHelloTypes_Planet! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "NEPTUNE", fieldType: "Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$Planet;", fieldCache: &NEPTUNE_FieldID, className: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$Planet", classCache: &SwiftHelloTypes_PlanetJNIClass )
+ defer { JNI.DeleteLocalRef( __value ) }
+ return __value != nil ? SwiftHelloTypes_Planet( javaObject: __value ) : nil
+ }
+ }
+
+ /// public static final com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet.SATURN
+
+ private static var SATURN_FieldID: jfieldID?
+
+ public static var SATURN: SwiftHelloTypes_Planet! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "SATURN", fieldType: "Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$Planet;", fieldCache: &SATURN_FieldID, className: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$Planet", classCache: &SwiftHelloTypes_PlanetJNIClass )
+ defer { JNI.DeleteLocalRef( __value ) }
+ return __value != nil ? SwiftHelloTypes_Planet( javaObject: __value ) : nil
+ }
+ }
+
+ /// public static final com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet.URANUS
+
+ private static var URANUS_FieldID: jfieldID?
+
+ public static var URANUS: SwiftHelloTypes_Planet! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "URANUS", fieldType: "Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$Planet;", fieldCache: &URANUS_FieldID, className: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$Planet", classCache: &SwiftHelloTypes_PlanetJNIClass )
+ defer { JNI.DeleteLocalRef( __value ) }
+ return __value != nil ? SwiftHelloTypes_Planet( javaObject: __value ) : nil
+ }
+ }
+
+ /// public static final com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet.VENUS
+
+ private static var VENUS_FieldID: jfieldID?
+
+ public static var VENUS: SwiftHelloTypes_Planet! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "VENUS", fieldType: "Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$Planet;", fieldCache: &VENUS_FieldID, className: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$Planet", classCache: &SwiftHelloTypes_PlanetJNIClass )
+ defer { JNI.DeleteLocalRef( __value ) }
+ return __value != nil ? SwiftHelloTypes_Planet( javaObject: __value ) : nil
+ }
+ }
+
+ /// private final double com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet.mass
+
+ /// private final double com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet.radius
+
+ /// public static com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet.valueOf(java.lang.String)
+
+ private static var valueOf_MethodID_7: jmethodID?
+
+ open class func valueOf( name: String? ) -> SwiftHelloTypes_Planet! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: name, locals: &__locals )
+ let __return = JNIMethod.CallStaticObjectMethod( className: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$Planet", classCache: &SwiftHelloTypes_PlanetJNIClass, methodName: "valueOf", methodSig: "(Ljava/lang/String;)Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$Planet;", methodCache: &valueOf_MethodID_7, args: &__args, locals: &__locals )
+ defer { JNI.DeleteLocalRef( __return ) }
+ return __return != nil ? SwiftHelloTypes_Planet( javaObject: __return ) : nil
+ }
+
+ open class func valueOf( _ _name: String? ) -> SwiftHelloTypes_Planet! {
+ return valueOf( name: _name )
+ }
+
+ /// public static java.lang.Enum java.lang.Enum.valueOf(java.lang.Class,java.lang.String)
+
+ private static var valueOf_MethodID_8: jmethodID?
+
+ open class func valueOf( enumType: java_swift.JavaClass?, name: String? ) -> java_swift.JavaEnum! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 2 )
+ __args[0] = JNIType.toJava( value: enumType, locals: &__locals )
+ __args[1] = JNIType.toJava( value: name, locals: &__locals )
+ let __return = JNIMethod.CallStaticObjectMethod( className: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$Planet", classCache: &SwiftHelloTypes_PlanetJNIClass, methodName: "valueOf", methodSig: "(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;", methodCache: &valueOf_MethodID_8, args: &__args, locals: &__locals )
+ defer { JNI.DeleteLocalRef( __return ) }
+ return __return != nil ? java_swift.JavaEnum( javaObject: __return ) : nil
+ }
+
+ open class func valueOf( _ _enumType: java_swift.JavaClass?, _ _name: String? ) -> java_swift.JavaEnum! {
+ return valueOf( enumType: _enumType, name: _name )
+ }
+
+ /// public static com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet[] com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet.values()
+
+ private static var values_MethodID_9: jmethodID?
+
+ open class func values() -> [SwiftHelloTypes_Planet]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ let __return = JNIMethod.CallStaticObjectMethod( className: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$Planet", classCache: &SwiftHelloTypes_PlanetJNIClass, methodName: "values", methodSig: "()[Lcom/johnholdsworth/swiftbindings/SwiftHelloTypes$Planet;", methodCache: &values_MethodID_9, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [SwiftHelloTypes_Planet].self, from: __return )
+ }
+
+
+ /// public final int java.lang.Enum.compareTo(java.lang.Enum)
+
+ // Skipping method: false true false false false
+
+ /// public int java.lang.Enum.compareTo(java.lang.Object)
+
+ // Skipping method: false true false false false
+
+ /// public final boolean java.lang.Enum.equals(java.lang.Object)
+
+ // Skipping method: false true false false false
+
+ /// public final native java.lang.Class java.lang.Object.getClass()
+
+ // Skipping method: false true false false false
+
+ /// public final java.lang.Class java.lang.Enum.getDeclaringClass()
+
+ // Skipping method: false true false false false
+
+ /// public final int java.lang.Enum.hashCode()
+
+ // Skipping method: false true false false false
+
+ /// public double com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet.mass()
+
+ private static var mass_MethodID_10: jmethodID?
+
+ open func mass() -> Double {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ let __return = JNIMethod.CallDoubleMethod( object: javaObject, methodName: "mass", methodSig: "()D", methodCache: &SwiftHelloTypes_PlanetForward.mass_MethodID_10, args: &__args, locals: &__locals )
+ return __return
+ }
+
+
+ /// public final java.lang.String java.lang.Enum.name()
+
+ // Skipping method: false true false false false
+
+ /// public final native void java.lang.Object.notify()
+
+ // Skipping method: false true false false false
+
+ /// public final native void java.lang.Object.notifyAll()
+
+ // Skipping method: false true false false false
+
+ /// public final int java.lang.Enum.ordinal()
+
+ // Skipping method: false true false false false
+
+ /// public double com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet.radius()
+
+ private static var radius_MethodID_11: jmethodID?
+
+ open func radius() -> Double {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ let __return = JNIMethod.CallDoubleMethod( object: javaObject, methodName: "radius", methodSig: "()D", methodCache: &SwiftHelloTypes_PlanetForward.radius_MethodID_11, args: &__args, locals: &__locals )
+ return __return
+ }
+
+
+ /// public double com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet.surfaceGravity()
+
+ private static var surfaceGravity_MethodID_12: jmethodID?
+
+ open func surfaceGravity() -> Double {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ let __return = JNIMethod.CallDoubleMethod( object: javaObject, methodName: "surfaceGravity", methodSig: "()D", methodCache: &SwiftHelloTypes_PlanetForward.surfaceGravity_MethodID_12, args: &__args, locals: &__locals )
+ return __return
+ }
+
+
+ /// public double com.johnholdsworth.swiftbindings.SwiftHelloTypes$Planet.surfaceWeight(double)
+
+ private static var surfaceWeight_MethodID_13: jmethodID?
+
+ open func surfaceWeight( otherMass: Double ) -> Double {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( d: otherMass )
+ let __return = JNIMethod.CallDoubleMethod( object: javaObject, methodName: "surfaceWeight", methodSig: "(D)D", methodCache: &SwiftHelloTypes_PlanetForward.surfaceWeight_MethodID_13, args: &__args, locals: &__locals )
+ return __return
+ }
+
+ open func surfaceWeight( _ _otherMass: Double ) -> Double {
+ return surfaceWeight( otherMass: _otherMass )
+ }
+
+ /// public java.lang.String java.lang.Enum.toString()
+
+ // Skipping method: false true false false false
+
+ /// public final native void java.lang.Object.wait(long) throws java.lang.InterruptedException
+
+ // Skipping method: false true false false false
+
+ /// public final void java.lang.Object.wait(long,int) throws java.lang.InterruptedException
+
+ // Skipping method: false true false false false
+
+ /// public final void java.lang.Object.wait() throws java.lang.InterruptedException
+
+ // Skipping method: false true false false false
+
+}
+
diff --git a/com_johnholdsworth/Sources/SwiftHelloTypes_StringMap.swift b/com_johnholdsworth/Sources/SwiftHelloTypes_StringMap.swift
new file mode 100644
index 0000000..d1e6211
--- /dev/null
+++ b/com_johnholdsworth/Sources/SwiftHelloTypes_StringMap.swift
@@ -0,0 +1,120 @@
+
+import java_swift
+
+/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
+
+/// class com.johnholdsworth.swiftbindings.SwiftHelloTypes$StringMap ///
+
+open class SwiftHelloTypes_StringMap: java_swift.HashMap {
+
+ public convenience init?( casting object: java_swift.JavaObject, _ file: StaticString = #file, _ line: Int = #line ) {
+ self.init( javaObject: nil )
+ object.withJavaObject {
+ self.javaObject = $0
+ }
+ }
+
+ private static var SwiftHelloTypes_StringMapJNIClass: jclass?
+
+ /// static final int java.util.HashMap.DEFAULT_INITIAL_CAPACITY
+
+ // Skipping field: true false false false false false
+
+ /// static final float java.util.HashMap.DEFAULT_LOAD_FACTOR
+
+ // Skipping field: true false false false false false
+
+ /// static final int java.util.HashMap.MAXIMUM_CAPACITY
+
+ // Skipping field: true false false false false false
+
+ /// static final int java.util.HashMap.MIN_TREEIFY_CAPACITY
+
+ // Skipping field: true false false false false false
+
+ /// static final int java.util.HashMap.TREEIFY_THRESHOLD
+
+ // Skipping field: true false false false false false
+
+ /// static final int java.util.HashMap.UNTREEIFY_THRESHOLD
+
+ // Skipping field: true false false false false false
+
+ /// private static final long java.util.HashMap.serialVersionUID
+
+ /// transient java.util.Set java.util.HashMap.entrySet
+
+ // Skipping field: true false false false false false
+
+ /// final float java.util.HashMap.loadFactor
+
+ // Skipping field: true false false false false false
+
+ /// transient int java.util.HashMap.modCount
+
+ // Skipping field: true false false false false false
+
+ /// transient int java.util.HashMap.size
+
+ // Skipping field: true false false false false false
+
+ /// transient java.util.HashMap$Node[] java.util.HashMap.table
+
+ // Skipping field: true false false false false false
+
+ /// int java.util.HashMap.threshold
+
+ // Skipping field: true false false false false false
+
+ /// transient java.util.Set java.util.AbstractMap.keySet
+
+ // Skipping field: true false false false false false
+
+ /// transient java.util.Collection java.util.AbstractMap.values
+
+ // Skipping field: true false false false false false
+
+ /// public com.johnholdsworth.swiftbindings.SwiftHelloTypes$StringMap()
+
+ 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: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$StringMap", classCache: &SwiftHelloTypes_StringMap.SwiftHelloTypes_StringMapJNIClass, methodSig: "()V", methodCache: &SwiftHelloTypes_StringMap.new_MethodID_1, args: &__args, locals: &__locals )
+ self.init( javaObject: __object )
+ JNI.DeleteLocalRef( __object )
+ }
+
+ /// public com.johnholdsworth.swiftbindings.SwiftHelloTypes$StringMap(java.util.Map)
+
+ private static var new_MethodID_2: jmethodID?
+
+ public convenience init( map: java_swift.JavaMap? ) {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: map, mapClass: "java/util/Map", locals: &__locals )
+ let __object = JNIMethod.NewObject( className: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$StringMap", classCache: &SwiftHelloTypes_StringMap.SwiftHelloTypes_StringMapJNIClass, methodSig: "(Ljava/util/Map;)V", methodCache: &SwiftHelloTypes_StringMap.new_MethodID_2, args: &__args, locals: &__locals )
+ self.init( javaObject: __object )
+ JNI.DeleteLocalRef( __object )
+ }
+
+ public convenience init( _ _map: java_swift.JavaMap? ) {
+ self.init( map: _map )
+ }
+
+ /// public static java.lang.Class com.johnholdsworth.swiftbindings.SwiftHelloTypes$StringMap.valueClass()
+
+ private static var valueClass_MethodID_3: jmethodID?
+
+ open class func valueClass() -> java_swift.JavaClass! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ let __return = JNIMethod.CallStaticObjectMethod( className: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$StringMap", classCache: &SwiftHelloTypes_StringMapJNIClass, methodName: "valueClass", methodSig: "()Ljava/lang/Class;", methodCache: &valueClass_MethodID_3, args: &__args, locals: &__locals )
+ defer { JNI.DeleteLocalRef( __return ) }
+ return __return != nil ? java_swift.JavaClass( javaObject: __return ) : nil
+ }
+
+
+}
+
diff --git a/com_johnholdsworth/Sources/SwiftHelloTypes_StringMapList.swift b/com_johnholdsworth/Sources/SwiftHelloTypes_StringMapList.swift
new file mode 100644
index 0000000..05f93a3
--- /dev/null
+++ b/com_johnholdsworth/Sources/SwiftHelloTypes_StringMapList.swift
@@ -0,0 +1,120 @@
+
+import java_swift
+
+/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
+
+/// class com.johnholdsworth.swiftbindings.SwiftHelloTypes$StringMapList ///
+
+open class SwiftHelloTypes_StringMapList: java_swift.HashMap {
+
+ public convenience init?( casting object: java_swift.JavaObject, _ file: StaticString = #file, _ line: Int = #line ) {
+ self.init( javaObject: nil )
+ object.withJavaObject {
+ self.javaObject = $0
+ }
+ }
+
+ private static var SwiftHelloTypes_StringMapListJNIClass: jclass?
+
+ /// static final int java.util.HashMap.DEFAULT_INITIAL_CAPACITY
+
+ // Skipping field: true false false false false false
+
+ /// static final float java.util.HashMap.DEFAULT_LOAD_FACTOR
+
+ // Skipping field: true false false false false false
+
+ /// static final int java.util.HashMap.MAXIMUM_CAPACITY
+
+ // Skipping field: true false false false false false
+
+ /// static final int java.util.HashMap.MIN_TREEIFY_CAPACITY
+
+ // Skipping field: true false false false false false
+
+ /// static final int java.util.HashMap.TREEIFY_THRESHOLD
+
+ // Skipping field: true false false false false false
+
+ /// static final int java.util.HashMap.UNTREEIFY_THRESHOLD
+
+ // Skipping field: true false false false false false
+
+ /// private static final long java.util.HashMap.serialVersionUID
+
+ /// transient java.util.Set java.util.HashMap.entrySet
+
+ // Skipping field: true false false false false false
+
+ /// final float java.util.HashMap.loadFactor
+
+ // Skipping field: true false false false false false
+
+ /// transient int java.util.HashMap.modCount
+
+ // Skipping field: true false false false false false
+
+ /// transient int java.util.HashMap.size
+
+ // Skipping field: true false false false false false
+
+ /// transient java.util.HashMap$Node[] java.util.HashMap.table
+
+ // Skipping field: true false false false false false
+
+ /// int java.util.HashMap.threshold
+
+ // Skipping field: true false false false false false
+
+ /// transient java.util.Set java.util.AbstractMap.keySet
+
+ // Skipping field: true false false false false false
+
+ /// transient java.util.Collection java.util.AbstractMap.values
+
+ // Skipping field: true false false false false false
+
+ /// public com.johnholdsworth.swiftbindings.SwiftHelloTypes$StringMapList()
+
+ 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: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$StringMapList", classCache: &SwiftHelloTypes_StringMapList.SwiftHelloTypes_StringMapListJNIClass, methodSig: "()V", methodCache: &SwiftHelloTypes_StringMapList.new_MethodID_1, args: &__args, locals: &__locals )
+ self.init( javaObject: __object )
+ JNI.DeleteLocalRef( __object )
+ }
+
+ /// public com.johnholdsworth.swiftbindings.SwiftHelloTypes$StringMapList(java.util.Map)
+
+ private static var new_MethodID_2: jmethodID?
+
+ public convenience init( map: java_swift.JavaMap? ) {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: map, mapClass: "java/util/Map", locals: &__locals )
+ let __object = JNIMethod.NewObject( className: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$StringMapList", classCache: &SwiftHelloTypes_StringMapList.SwiftHelloTypes_StringMapListJNIClass, methodSig: "(Ljava/util/Map;)V", methodCache: &SwiftHelloTypes_StringMapList.new_MethodID_2, args: &__args, locals: &__locals )
+ self.init( javaObject: __object )
+ JNI.DeleteLocalRef( __object )
+ }
+
+ public convenience init( _ _map: java_swift.JavaMap? ) {
+ self.init( map: _map )
+ }
+
+ /// public static java.lang.Class com.johnholdsworth.swiftbindings.SwiftHelloTypes$StringMapList.valueClass()
+
+ private static var valueClass_MethodID_3: jmethodID?
+
+ open class func valueClass() -> java_swift.JavaClass! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ let __return = JNIMethod.CallStaticObjectMethod( className: "com/johnholdsworth/swiftbindings/SwiftHelloTypes$StringMapList", classCache: &SwiftHelloTypes_StringMapListJNIClass, methodName: "valueClass", methodSig: "()Ljava/lang/Class;", methodCache: &valueClass_MethodID_3, args: &__args, locals: &__locals )
+ defer { JNI.DeleteLocalRef( __return ) }
+ return __return != nil ? java_swift.JavaClass( javaObject: __return ) : nil
+ }
+
+
+}
+
diff --git a/com_johnholdsworth/Sources/SwiftHelloTypes_TextListener.swift b/com_johnholdsworth/Sources/SwiftHelloTypes_TextListener.swift
new file mode 100644
index 0000000..4025704
--- /dev/null
+++ b/com_johnholdsworth/Sources/SwiftHelloTypes_TextListener.swift
@@ -0,0 +1,90 @@
+
+import java_swift
+
+/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
+
+/// interface com.johnholdsworth.swiftbindings.SwiftHelloTypes$TextListener ///
+
+public protocol SwiftHelloTypes_TextListener: JavaProtocol {
+
+ /// public abstract java.lang.String com.johnholdsworth.swiftbindings.SwiftHelloTypes$TextListener.getText()
+
+ func getText() -> String!
+
+}
+
+
+open class SwiftHelloTypes_TextListenerForward: JNIObjectForward, SwiftHelloTypes_TextListener {
+
+ private static var SwiftHelloTypes_TextListenerJNIClass: jclass?
+
+ /// public abstract java.lang.String com.johnholdsworth.swiftbindings.SwiftHelloTypes$TextListener.getText()
+
+ private static var getText_MethodID_2: jmethodID?
+
+ open func getText() -> String! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getText", methodSig: "()Ljava/lang/String;", methodCache: &SwiftHelloTypes_TextListenerForward.getText_MethodID_2, args: &__args, locals: &__locals )
+ defer { JNI.DeleteLocalRef( __return ) }
+ return __return != nil ? String( javaObject: __return ) : nil
+ }
+
+
+}
+
+private typealias SwiftHelloTypes_TextListener_getText_0_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jlong ) -> jobject?
+
+private func SwiftHelloTypes_TextListener_getText_0( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ __swiftObject: jlong ) -> jobject? {
+ let __return = SwiftHelloTypes_TextListenerLocal_.swiftObject( jniEnv: __env, javaObject: __this, swiftObject: __swiftObject ).getText( )
+ var __locals = [jobject]()
+ return JNI.check( JNIType.toJava( value: __return, locals: &__locals ).l, &__locals, removeLast: true )
+}
+
+fileprivate class SwiftHelloTypes_TextListenerLocal_: JNILocalProxy {
+
+ fileprivate static let _proxyClass: jclass = {
+ var natives = [JNINativeMethod]()
+
+ let SwiftHelloTypes_TextListener_getText_0_thunk: SwiftHelloTypes_TextListener_getText_0_type = SwiftHelloTypes_TextListener_getText_0
+ natives.append( JNINativeMethod( name: strdup("__getText"), signature: strdup("(J)Ljava/lang/String;"), fnPtr: unsafeBitCast( SwiftHelloTypes_TextListener_getText_0_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ natives.append( JNINativeMethod( name: strdup("__finalize"), signature: strdup("(J)V"), fnPtr: unsafeBitCast( JNIReleasableProxy__finalize_thunk, to: UnsafeMutableRawPointer.self ) ) )
+
+ let clazz = JNI.FindClass( proxyClassName() )
+ withUnsafePointer(to: &natives[0]) {
+ nativesPtr in
+ if JNI.api.RegisterNatives( JNI.env, clazz, nativesPtr, jint(natives.count) ) != jint(JNI_OK) {
+ JNI.report( "Unable to register java natives" )
+ }
+ }
+
+ defer { JNI.DeleteLocalRef( clazz ) }
+ return JNI.api.NewGlobalRef( JNI.env, clazz )!
+ }()
+
+ override open class func proxyClassName() -> String { return "org/swiftjava/com_johnholdsworth/SwiftHelloTypes_TextListenerProxy" }
+ override open class func proxyClass() -> jclass? { return _proxyClass }
+
+}
+
+extension SwiftHelloTypes_TextListener {
+
+ public func localJavaObject( _ locals: UnsafeMutablePointer<[jobject]> ) -> jobject? {
+ return SwiftHelloTypes_TextListenerLocal_( owned: self, proto: self ).localJavaObject( locals )
+ }
+
+}
+
+open class SwiftHelloTypes_TextListenerBase: SwiftHelloTypes_TextListener {
+
+ public init() {}
+
+ /// public abstract java.lang.String com.johnholdsworth.swiftbindings.SwiftHelloTypes$TextListener.getText()
+
+ open func getText() -> String! /**/ {
+ return nil
+ }
+
+
+}
diff --git a/examples b/examples
index 4eeacce..fd5f6cd 160000
--- a/examples
+++ b/examples
@@ -1 +1 @@
-Subproject commit 4eeacce5c6f561317462a884f0936699e65fa75b
+Subproject commit fd5f6cd92cbc692481c739da674a507e2cb459d0
diff --git a/genall.sh b/genall.sh
index 562348e..7a9256b 100755
--- a/genall.sh
+++ b/genall.sh
@@ -1,9 +1,9 @@
#!/bin/bash
#
-# Regenerate all bridge sources
+# Regenerate all bridge sources - if only it was this simple!
#
-cd `dirname $0`
+cd "$(dirname "$0")" &&
for i in java_lang java_util java_sql java_awt javax_swing com_apple; do
./genswift.sh $i
diff --git a/genhello.sh b/genhello.sh
index 51bce19..6e3d271 100755
--- a/genhello.sh
+++ b/genhello.sh
@@ -1,31 +1,42 @@
#!/bin/bash
#
# Generates Proxy and Swift sources for swifthello Android sample
-# Note use of -parameters option when compiling to record names
+# Note: use of -parameters option when compiling to record names
#
-cd `dirname $0`/src &&
+cd "$(dirname "$0")/src" &&
-\rm `find com/jh -name '*.class'` 2>/dev/null
+export JAVA_HOME=${JAVA_HOME?-Please export JAVA_HOME}
-\rm `find ../com_jh -name '*.swift'` 2>/dev/null
+export COMPANY=johnholdsworth
-\rm `find ../swift-android-samples/swifthello/src/main/swift/Sources -name 'SwiftHello*.swift'` 2>/dev/null
+# clear out any generated swift files
+\rm `find ../{swift-android-samples,swift-android-kotlin} -name 'SwiftHello*.swift'` 2>/dev/null
-$JAVA_HOME/bin/javac -parameters com/jh/*.java &&
+# clear out generated Java proxy files
+\rm -rf ../{swift-android-samples,swift-android-kotlin}/*/src/main/java/org/swiftjava/com_$COMPANY
-$JAVA_HOME/bin/jar cf /tmp/hello.jar com/jh/*.class &&
+# compile bindings and package them into for jar for genswift.sh
+$JAVA_HOME/bin/javac -Xlint:unchecked -parameters com/$COMPANY/swiftbindings/*.java &&
+
+$JAVA_HOME/bin/jar cf /tmp/swifthello.jar com/$COMPANY/swiftbindings/*.class &&
# The last argument is the frameworks the project
# is dependent on. java_lang for example will add
# about 2mb to the app's apk and needs to be added
# to the project's src/main/swift/Package.swift
-cd .. && ./genswift.sh com.jh /tmp/hello.jar "" &&
+cd .. && ./genswift.sh com.$COMPANY.swiftbindings /tmp/swifthello.jar "" &&
+
+# copy newly generated sources derived from the bindings into the example projects
+
+mkdir -p swift-android-samples/swifthello/src/main/java/{com/$COMPANY/swiftbindings,org/swiftjava/com_$COMPANY} swift-android-kotlin/app/src/main/java/{com/$COMPANY/swiftbindings,org/swiftjava/com_$COMPANY} &&
-mkdir -p swift-android-samples/swifthello/src/main/java/{com/jh,org/genie/com_jh} &&
+\cp -v src/com/$COMPANY/swiftbindings/*.java swift-android-samples/swifthello/src/main/java/com/$COMPANY/swiftbindings &&
+\cp -v src/com/$COMPANY/swiftbindings/*.java swift-android-kotlin/app/src/main/java/com/$COMPANY/swiftbindings &&
-\cp -v src/com/jh/*.java swift-android-samples/swifthello/src/main/java/com/jh &&
-\cp -v src/org/genie/com_jh/*.java swift-android-samples/swifthello/src/main/java/org/genie/com_jh &&
+\cp -v src/org/swiftjava/com_$COMPANY/*.java swift-android-samples/swifthello/src/main/java/org/swiftjava/com_$COMPANY &&
+\cp -v src/org/swiftjava/com_$COMPANY/*.java swift-android-kotlin/app/src/main/java/org/swiftjava/com_$COMPANY &&
-\cp -v com_jh/Sources/SwiftHello*.swift swift-android-samples/swifthello/src/main/swift/Sources
+\cp -v com_$COMPANY/Sources/SwiftHello*.swift swift-android-samples/swifthello/src/main/swift/Sources
+\cp -v com_$COMPANY/Sources/SwiftHello*.swift swift-android-kotlin/app/src/main/swift/Sources
diff --git a/genie.jar b/genie.jar
deleted file mode 100644
index 2882332..0000000
Binary files a/genie.jar and /dev/null differ
diff --git a/genjar.sh b/genjar.sh
index efc708b..baf77ae 100755
--- a/genjar.sh
+++ b/genjar.sh
@@ -3,16 +3,16 @@
# This build the jar of classes required to implement Runnable and Listener events from Java to Swift
#
-cd `dirname $0`/src
+cd "$(dirname "$0")/src" &&
# legacy JVM downloadable from here: https://support.apple.com/kb/dl1572?locale=en_US
-export JAVA_HOME=${1:-/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home}
+export JAVA_HOME=/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
\rm `find . -name '*.class'` 2>/dev/null
-$JAVA_HOME/bin/javac org/genie/{*,*/*}.java &&
+$JAVA_HOME/bin/javac org/swiftjava/{*,*/*}.java com/johnholdsworth/swiftbindings/*.java &&
-$JAVA_HOME/bin/jar cfv ../genie.jar org/genie/{*,*/*}.class &&
+$JAVA_HOME/bin/jar cfv ../swiftjava.jar org/swiftjava/{*,*/*}.class com/johnholdsworth/swiftbindings/*.class &&
-\cp ../genie.jar ~/.genie.jar
+\cp ../swiftjava.jar ~/.swiftjava.jar
diff --git a/genpkg.sh b/genpkg.sh
index 14f44a0..7aa8dcf 100755
--- a/genpkg.sh
+++ b/genpkg.sh
@@ -3,16 +3,16 @@
# Build until all overrides are captured in build.log and there are no errors
#
-cd `dirname $0`
+cd "$(dirname "$0")" &&
XCODEBUILD=/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
# downloadable from https://support.apple.com/kb/dl1572?locale=en_US
-JAVA_HOME=/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
+export JAVA_HOME=${JAVA_HOME:-/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home}
for i in $*; do
- ./genswift.sh $i $JAVA_HOME/../Classes/ui.jar
- ./overrides.pl $i
+ ./genswift.sh $i $JAVA_HOME/jre/lib/rt.jar &&
+ ./overrides.pl $i &&
while true; do
($XCODEBUILD SYMROOT=/tmp -config Debug -target examples -project SwiftJava.xcodeproj; STATUS=$?) | tee -a $i/build.log
./overrides.pl $i
@@ -21,3 +21,4 @@ for i in $*; do
fi
done
done
+
diff --git a/genswift.sh b/genswift.sh
index 4de2cc2..cdd2e15 100755
--- a/genswift.sh
+++ b/genswift.sh
@@ -10,14 +10,16 @@
# need to compile with the new-to-Java8 option -parameters.
#
-FILTER=${1:-java/lang|java/util|java/sql|java/awt|javax/swing}
+export JAVA_HOME="${JAVA_HOME?-Please export JAVA_HOME}"
-FILTER=$(echo $FILTER | sed s@[._]@/@)
+FILTER="${1:-java/lang|java/util|java/sql|java/awt|javax/swing}"
-TARGET_JAR=${2:-$JAVA_HOME/jre/lib/rt.jar}
+FILTER="$(echo "$FILTER" | sed 's@[._]@/@g' | sed 's@\$@\\$@g')"
+
+TARGET_JAR="${2:-$JAVA_HOME/jre/lib/rt.jar}"
PACKAGE_ORDER=${3:-java/lang|java/util|java/sql|java/awt|javax/swing}
-cd `dirname $0` && cd src && $JAVA_HOME/bin/javac genswift.java && cd - &&
+cd "$(dirname "$0")/src" && mkdir -p ../bin && "$JAVA_HOME/bin/javac" -d ../bin genswift.java && cd .. &&
-$JAVA_HOME/bin/jar tf "$TARGET_JAR" | egrep "^($FILTER)" | sed "s@\\.class\$@@" | $JAVA_HOME/bin/java -cp "src:$TARGET_JAR" genswift "$PACKAGE_ORDER"
+"$JAVA_HOME/bin/jar" tf "$TARGET_JAR" | egrep "^($FILTER)" | sed "s@\\.class\$@@" | "$JAVA_HOME/bin/java" -cp "$TARGET_JAR:bin" genswift "$PACKAGE_ORDER"
diff --git a/gentests.rb b/gentests.rb
index 7aba45a..b36fa43 100755
--- a/gentests.rb
+++ b/gentests.rb
@@ -1,6 +1,13 @@
#!/usr/bin/env ruby
+#
+# Generates bindings and implementions for test cde.
+#
+# This file is a bit of a mess frankly and you may need
+# to alternate between running this and genhello.sh
+# a few times to get new types to compile cleanly.
+#
-types = ["boolean", "byte", "char", "short", "int", "long", "float", "double", "String"];
+types = ["boolean", "byte", "char", "short", "int", "long", "float", "double", "String", "TestListener"];
swiftTypes = {
'boolean' => 'Bool',
@@ -11,7 +18,8 @@
'long' => 'Int64',
'float' => 'Float',
'double' => 'Double',
- 'String' => 'String'
+ 'String' => 'String',
+ 'TestListener' => 'SwiftHelloTest_TestListener'
}
arrayException = {
@@ -20,18 +28,31 @@
referenceException = {
'boolean' => 'true',
- 'String' => '"123"'
+ 'String' => '"123"',
+ 'TestListener' => 'SwiftTestListener()'
}
-java = File.open( "src/org/genie/SwiftTest.java", "w" )
-java2 = File.open( "src/com/jh/SwiftHelloTest.java", "w" )
+referenceExceptionJava = {
+ 'boolean' => 'true',
+ 'String' => '"123"',
+ 'TestListener' => 'new SwiftTestListener()'
+}
+
+java = File.open( "src/org/swiftjava/SwiftTest.java", "w" )
+java2 = File.open( "src/com/johnholdsworth/swiftbindings/SwiftHelloTest.java", "w" )
java.puts( < #{swiftTypes[type]}#{opt} {
- return arg
+ return loopback?.#{type}Method( arg: arg ) ?? arg
}
override public func #{type}ArrayMethod( arg: [#{atype}]? ) -> [#{atype}]? {
- return arg
+ return loopback?.#{type}ArrayMethod( arg: arg ) ?? arg
}
override public func #{type}2dArrayMethod( arg: [[#{atype}]]? ) -> [[#{atype}]]? {
- return arg
+ return loopback?.#{type}2dArrayMethod( arg: arg ) ?? arg
}
SWIFT
end
java2.puts( < Java \\(SwiftTestResponder.tcount)...")
SWIFT
for type in types
java2.puts( < Swift "+tcount+"...");
+
+JAVA
+
+for type in types
+ java2.puts( < Bool {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallStaticBooleanMethod( className: "org/genie/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "booleanMethodStatic", methodSig: "(Z)Z", methodCache: &booleanMethodStatic_MethodID_2, args: &__args, locals: &__locals )
- return JNIType.decode( type: Bool(), from: __return )
- }
-
- open class func booleanMethodStatic( _ _arg0: Bool ) -> Bool {
- return booleanMethodStatic( arg0: _arg0 )
- }
-
- /// public boolean org.genie.SwiftTest.booleanMethod(boolean)
-
- private static var booleanMethod_MethodID_3: jmethodID?
-
- open func booleanMethod( arg0: Bool ) -> Bool {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "booleanMethod", methodSig: "(Z)Z", methodCache: &SwiftTest.booleanMethod_MethodID_3, args: &__args, locals: &__locals )
- return JNIType.decode( type: Bool(), from: __return )
- }
-
- open func booleanMethod( _ _arg0: Bool ) -> Bool {
- return booleanMethod( arg0: _arg0 )
- }
-
- /// public static boolean[] org.genie.SwiftTest.booleanArrayMethodStatic(boolean[])
-
- private static var booleanArrayMethodStatic_MethodID_4: jmethodID?
-
- open class func booleanArrayMethodStatic( arg0: [Bool]? ) -> [Bool]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallStaticObjectMethod( className: "org/genie/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "booleanArrayMethodStatic", methodSig: "([Z)[Z", methodCache: &booleanArrayMethodStatic_MethodID_4, args: &__args, locals: &__locals )
- return JNIType.decode( type: [Bool](), from: __return )
- }
-
- open class func booleanArrayMethodStatic( _ _arg0: [Bool]? ) -> [Bool]! {
- return booleanArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public boolean[] org.genie.SwiftTest.booleanArrayMethod(boolean[])
-
- private static var booleanArrayMethod_MethodID_5: jmethodID?
-
- open func booleanArrayMethod( arg0: [Bool]? ) -> [Bool]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "booleanArrayMethod", methodSig: "([Z)[Z", methodCache: &SwiftTest.booleanArrayMethod_MethodID_5, args: &__args, locals: &__locals )
- return JNIType.decode( type: [Bool](), from: __return )
- }
-
- open func booleanArrayMethod( _ _arg0: [Bool]? ) -> [Bool]! {
- return booleanArrayMethod( arg0: _arg0 )
- }
-
- /// public static boolean[][] org.genie.SwiftTest.boolean2dArrayMethodStatic(boolean[][])
-
- private static var boolean2dArrayMethodStatic_MethodID_6: jmethodID?
-
- open class func boolean2dArrayMethodStatic( arg0: [[Bool]]? ) -> [[Bool]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallStaticObjectMethod( className: "org/genie/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "boolean2dArrayMethodStatic", methodSig: "([[Z)[[Z", methodCache: &boolean2dArrayMethodStatic_MethodID_6, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[Bool]](), from: __return )
- }
-
- open class func boolean2dArrayMethodStatic( _ _arg0: [[Bool]]? ) -> [[Bool]]! {
- return boolean2dArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public boolean[][] org.genie.SwiftTest.boolean2dArrayMethod(boolean[][])
-
- private static var boolean2dArrayMethod_MethodID_7: jmethodID?
-
- open func boolean2dArrayMethod( arg0: [[Bool]]? ) -> [[Bool]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "boolean2dArrayMethod", methodSig: "([[Z)[[Z", methodCache: &SwiftTest.boolean2dArrayMethod_MethodID_7, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[Bool]](), from: __return )
- }
-
- open func boolean2dArrayMethod( _ _arg0: [[Bool]]? ) -> [[Bool]]! {
- return boolean2dArrayMethod( arg0: _arg0 )
- }
-
- /// public static byte org.genie.SwiftTest.byteMethodStatic(byte)
-
- private static var byteMethodStatic_MethodID_8: jmethodID?
-
- open class func byteMethodStatic( arg0: Int8 ) -> Int8 {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallStaticByteMethod( className: "org/genie/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "byteMethodStatic", methodSig: "(B)B", methodCache: &byteMethodStatic_MethodID_8, args: &__args, locals: &__locals )
- return JNIType.decode( type: Int8(), from: __return )
- }
-
- open class func byteMethodStatic( _ _arg0: Int8 ) -> Int8 {
- return byteMethodStatic( arg0: _arg0 )
- }
-
- /// public byte org.genie.SwiftTest.byteMethod(byte)
-
- private static var byteMethod_MethodID_9: jmethodID?
-
- open func byteMethod( arg0: Int8 ) -> Int8 {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallByteMethod( object: javaObject, methodName: "byteMethod", methodSig: "(B)B", methodCache: &SwiftTest.byteMethod_MethodID_9, args: &__args, locals: &__locals )
- return JNIType.decode( type: Int8(), from: __return )
- }
-
- open func byteMethod( _ _arg0: Int8 ) -> Int8 {
- return byteMethod( arg0: _arg0 )
- }
-
- /// public static byte[] org.genie.SwiftTest.byteArrayMethodStatic(byte[])
-
- private static var byteArrayMethodStatic_MethodID_10: jmethodID?
-
- open class func byteArrayMethodStatic( arg0: [Int8]? ) -> [Int8]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallStaticObjectMethod( className: "org/genie/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "byteArrayMethodStatic", methodSig: "([B)[B", methodCache: &byteArrayMethodStatic_MethodID_10, args: &__args, locals: &__locals )
- return JNIType.decode( type: [Int8](), from: __return )
- }
-
- open class func byteArrayMethodStatic( _ _arg0: [Int8]? ) -> [Int8]! {
- return byteArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public byte[] org.genie.SwiftTest.byteArrayMethod(byte[])
-
- private static var byteArrayMethod_MethodID_11: jmethodID?
-
- open func byteArrayMethod( arg0: [Int8]? ) -> [Int8]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "byteArrayMethod", methodSig: "([B)[B", methodCache: &SwiftTest.byteArrayMethod_MethodID_11, args: &__args, locals: &__locals )
- return JNIType.decode( type: [Int8](), from: __return )
- }
-
- open func byteArrayMethod( _ _arg0: [Int8]? ) -> [Int8]! {
- return byteArrayMethod( arg0: _arg0 )
- }
-
- /// public static byte[][] org.genie.SwiftTest.byte2dArrayMethodStatic(byte[][])
-
- private static var byte2dArrayMethodStatic_MethodID_12: jmethodID?
-
- open class func byte2dArrayMethodStatic( arg0: [[Int8]]? ) -> [[Int8]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallStaticObjectMethod( className: "org/genie/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "byte2dArrayMethodStatic", methodSig: "([[B)[[B", methodCache: &byte2dArrayMethodStatic_MethodID_12, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[Int8]](), from: __return )
- }
-
- open class func byte2dArrayMethodStatic( _ _arg0: [[Int8]]? ) -> [[Int8]]! {
- return byte2dArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public byte[][] org.genie.SwiftTest.byte2dArrayMethod(byte[][])
-
- private static var byte2dArrayMethod_MethodID_13: jmethodID?
-
- open func byte2dArrayMethod( arg0: [[Int8]]? ) -> [[Int8]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "byte2dArrayMethod", methodSig: "([[B)[[B", methodCache: &SwiftTest.byte2dArrayMethod_MethodID_13, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[Int8]](), from: __return )
- }
-
- open func byte2dArrayMethod( _ _arg0: [[Int8]]? ) -> [[Int8]]! {
- return byte2dArrayMethod( arg0: _arg0 )
- }
-
- /// public static char org.genie.SwiftTest.charMethodStatic(char)
-
- private static var charMethodStatic_MethodID_14: jmethodID?
-
- open class func charMethodStatic( arg0: UInt16 ) -> UInt16 {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallStaticCharMethod( className: "org/genie/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "charMethodStatic", methodSig: "(C)C", methodCache: &charMethodStatic_MethodID_14, args: &__args, locals: &__locals )
- return JNIType.decode( type: UInt16(), from: __return )
- }
-
- open class func charMethodStatic( _ _arg0: UInt16 ) -> UInt16 {
- return charMethodStatic( arg0: _arg0 )
- }
-
- /// public char org.genie.SwiftTest.charMethod(char)
-
- private static var charMethod_MethodID_15: jmethodID?
-
- open func charMethod( arg0: UInt16 ) -> UInt16 {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallCharMethod( object: javaObject, methodName: "charMethod", methodSig: "(C)C", methodCache: &SwiftTest.charMethod_MethodID_15, args: &__args, locals: &__locals )
- return JNIType.decode( type: UInt16(), from: __return )
- }
-
- open func charMethod( _ _arg0: UInt16 ) -> UInt16 {
- return charMethod( arg0: _arg0 )
- }
-
- /// public static char[] org.genie.SwiftTest.charArrayMethodStatic(char[])
-
- private static var charArrayMethodStatic_MethodID_16: jmethodID?
-
- open class func charArrayMethodStatic( arg0: [UInt16]? ) -> [UInt16]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallStaticObjectMethod( className: "org/genie/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "charArrayMethodStatic", methodSig: "([C)[C", methodCache: &charArrayMethodStatic_MethodID_16, args: &__args, locals: &__locals )
- return JNIType.decode( type: [UInt16](), from: __return )
- }
-
- open class func charArrayMethodStatic( _ _arg0: [UInt16]? ) -> [UInt16]! {
- return charArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public char[] org.genie.SwiftTest.charArrayMethod(char[])
-
- private static var charArrayMethod_MethodID_17: jmethodID?
-
- open func charArrayMethod( arg0: [UInt16]? ) -> [UInt16]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "charArrayMethod", methodSig: "([C)[C", methodCache: &SwiftTest.charArrayMethod_MethodID_17, args: &__args, locals: &__locals )
- return JNIType.decode( type: [UInt16](), from: __return )
- }
-
- open func charArrayMethod( _ _arg0: [UInt16]? ) -> [UInt16]! {
- return charArrayMethod( arg0: _arg0 )
- }
-
- /// public static char[][] org.genie.SwiftTest.char2dArrayMethodStatic(char[][])
-
- private static var char2dArrayMethodStatic_MethodID_18: jmethodID?
-
- open class func char2dArrayMethodStatic( arg0: [[UInt16]]? ) -> [[UInt16]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallStaticObjectMethod( className: "org/genie/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "char2dArrayMethodStatic", methodSig: "([[C)[[C", methodCache: &char2dArrayMethodStatic_MethodID_18, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[UInt16]](), from: __return )
- }
-
- open class func char2dArrayMethodStatic( _ _arg0: [[UInt16]]? ) -> [[UInt16]]! {
- return char2dArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public char[][] org.genie.SwiftTest.char2dArrayMethod(char[][])
-
- private static var char2dArrayMethod_MethodID_19: jmethodID?
-
- open func char2dArrayMethod( arg0: [[UInt16]]? ) -> [[UInt16]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "char2dArrayMethod", methodSig: "([[C)[[C", methodCache: &SwiftTest.char2dArrayMethod_MethodID_19, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[UInt16]](), from: __return )
- }
-
- open func char2dArrayMethod( _ _arg0: [[UInt16]]? ) -> [[UInt16]]! {
- return char2dArrayMethod( arg0: _arg0 )
- }
-
- /// public static short org.genie.SwiftTest.shortMethodStatic(short)
-
- private static var shortMethodStatic_MethodID_20: jmethodID?
-
- open class func shortMethodStatic( arg0: Int16 ) -> Int16 {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallStaticShortMethod( className: "org/genie/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "shortMethodStatic", methodSig: "(S)S", methodCache: &shortMethodStatic_MethodID_20, args: &__args, locals: &__locals )
- return JNIType.decode( type: Int16(), from: __return )
- }
-
- open class func shortMethodStatic( _ _arg0: Int16 ) -> Int16 {
- return shortMethodStatic( arg0: _arg0 )
- }
-
- /// public short org.genie.SwiftTest.shortMethod(short)
-
- private static var shortMethod_MethodID_21: jmethodID?
-
- open func shortMethod( arg0: Int16 ) -> Int16 {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallShortMethod( object: javaObject, methodName: "shortMethod", methodSig: "(S)S", methodCache: &SwiftTest.shortMethod_MethodID_21, args: &__args, locals: &__locals )
- return JNIType.decode( type: Int16(), from: __return )
- }
-
- open func shortMethod( _ _arg0: Int16 ) -> Int16 {
- return shortMethod( arg0: _arg0 )
- }
-
- /// public static short[] org.genie.SwiftTest.shortArrayMethodStatic(short[])
-
- private static var shortArrayMethodStatic_MethodID_22: jmethodID?
-
- open class func shortArrayMethodStatic( arg0: [Int16]? ) -> [Int16]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallStaticObjectMethod( className: "org/genie/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "shortArrayMethodStatic", methodSig: "([S)[S", methodCache: &shortArrayMethodStatic_MethodID_22, args: &__args, locals: &__locals )
- return JNIType.decode( type: [Int16](), from: __return )
- }
-
- open class func shortArrayMethodStatic( _ _arg0: [Int16]? ) -> [Int16]! {
- return shortArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public short[] org.genie.SwiftTest.shortArrayMethod(short[])
-
- private static var shortArrayMethod_MethodID_23: jmethodID?
-
- open func shortArrayMethod( arg0: [Int16]? ) -> [Int16]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "shortArrayMethod", methodSig: "([S)[S", methodCache: &SwiftTest.shortArrayMethod_MethodID_23, args: &__args, locals: &__locals )
- return JNIType.decode( type: [Int16](), from: __return )
- }
-
- open func shortArrayMethod( _ _arg0: [Int16]? ) -> [Int16]! {
- return shortArrayMethod( arg0: _arg0 )
- }
-
- /// public static short[][] org.genie.SwiftTest.short2dArrayMethodStatic(short[][])
-
- private static var short2dArrayMethodStatic_MethodID_24: jmethodID?
-
- open class func short2dArrayMethodStatic( arg0: [[Int16]]? ) -> [[Int16]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallStaticObjectMethod( className: "org/genie/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "short2dArrayMethodStatic", methodSig: "([[S)[[S", methodCache: &short2dArrayMethodStatic_MethodID_24, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[Int16]](), from: __return )
- }
-
- open class func short2dArrayMethodStatic( _ _arg0: [[Int16]]? ) -> [[Int16]]! {
- return short2dArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public short[][] org.genie.SwiftTest.short2dArrayMethod(short[][])
-
- private static var short2dArrayMethod_MethodID_25: jmethodID?
-
- open func short2dArrayMethod( arg0: [[Int16]]? ) -> [[Int16]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "short2dArrayMethod", methodSig: "([[S)[[S", methodCache: &SwiftTest.short2dArrayMethod_MethodID_25, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[Int16]](), from: __return )
- }
-
- open func short2dArrayMethod( _ _arg0: [[Int16]]? ) -> [[Int16]]! {
- return short2dArrayMethod( arg0: _arg0 )
- }
-
- /// public static int org.genie.SwiftTest.intMethodStatic(int)
-
- private static var intMethodStatic_MethodID_26: jmethodID?
-
- open class func intMethodStatic( arg0: Int ) -> Int {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallStaticIntMethod( className: "org/genie/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "intMethodStatic", methodSig: "(I)I", methodCache: &intMethodStatic_MethodID_26, args: &__args, locals: &__locals )
- return JNIType.decode( type: Int(), from: __return )
- }
-
- open class func intMethodStatic( _ _arg0: Int ) -> Int {
- return intMethodStatic( arg0: _arg0 )
- }
-
- /// public int org.genie.SwiftTest.intMethod(int)
-
- private static var intMethod_MethodID_27: jmethodID?
-
- open func intMethod( arg0: Int ) -> Int {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "intMethod", methodSig: "(I)I", methodCache: &SwiftTest.intMethod_MethodID_27, args: &__args, locals: &__locals )
- return JNIType.decode( type: Int(), from: __return )
- }
-
- open func intMethod( _ _arg0: Int ) -> Int {
- return intMethod( arg0: _arg0 )
- }
-
- /// public static int[] org.genie.SwiftTest.intArrayMethodStatic(int[])
-
- private static var intArrayMethodStatic_MethodID_28: jmethodID?
-
- open class func intArrayMethodStatic( arg0: [Int32]? ) -> [Int32]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallStaticObjectMethod( className: "org/genie/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "intArrayMethodStatic", methodSig: "([I)[I", methodCache: &intArrayMethodStatic_MethodID_28, args: &__args, locals: &__locals )
- return JNIType.decode( type: [Int32](), from: __return )
- }
-
- open class func intArrayMethodStatic( _ _arg0: [Int32]? ) -> [Int32]! {
- return intArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public int[] org.genie.SwiftTest.intArrayMethod(int[])
-
- private static var intArrayMethod_MethodID_29: jmethodID?
-
- open func intArrayMethod( arg0: [Int32]? ) -> [Int32]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "intArrayMethod", methodSig: "([I)[I", methodCache: &SwiftTest.intArrayMethod_MethodID_29, args: &__args, locals: &__locals )
- return JNIType.decode( type: [Int32](), from: __return )
- }
-
- open func intArrayMethod( _ _arg0: [Int32]? ) -> [Int32]! {
- return intArrayMethod( arg0: _arg0 )
- }
-
- /// public static int[][] org.genie.SwiftTest.int2dArrayMethodStatic(int[][])
-
- private static var int2dArrayMethodStatic_MethodID_30: jmethodID?
-
- open class func int2dArrayMethodStatic( arg0: [[Int32]]? ) -> [[Int32]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallStaticObjectMethod( className: "org/genie/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "int2dArrayMethodStatic", methodSig: "([[I)[[I", methodCache: &int2dArrayMethodStatic_MethodID_30, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[Int32]](), from: __return )
- }
-
- open class func int2dArrayMethodStatic( _ _arg0: [[Int32]]? ) -> [[Int32]]! {
- return int2dArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public int[][] org.genie.SwiftTest.int2dArrayMethod(int[][])
-
- private static var int2dArrayMethod_MethodID_31: jmethodID?
-
- open func int2dArrayMethod( arg0: [[Int32]]? ) -> [[Int32]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "int2dArrayMethod", methodSig: "([[I)[[I", methodCache: &SwiftTest.int2dArrayMethod_MethodID_31, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[Int32]](), from: __return )
- }
-
- open func int2dArrayMethod( _ _arg0: [[Int32]]? ) -> [[Int32]]! {
- return int2dArrayMethod( arg0: _arg0 )
- }
-
- /// public static long org.genie.SwiftTest.longMethodStatic(long)
-
- private static var longMethodStatic_MethodID_32: jmethodID?
-
- open class func longMethodStatic( arg0: Int64 ) -> Int64 {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallStaticLongMethod( className: "org/genie/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "longMethodStatic", methodSig: "(J)J", methodCache: &longMethodStatic_MethodID_32, args: &__args, locals: &__locals )
- return JNIType.decode( type: Int64(), from: __return )
- }
-
- open class func longMethodStatic( _ _arg0: Int64 ) -> Int64 {
- return longMethodStatic( arg0: _arg0 )
- }
-
- /// public long org.genie.SwiftTest.longMethod(long)
-
- private static var longMethod_MethodID_33: jmethodID?
-
- open func longMethod( arg0: Int64 ) -> Int64 {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallLongMethod( object: javaObject, methodName: "longMethod", methodSig: "(J)J", methodCache: &SwiftTest.longMethod_MethodID_33, args: &__args, locals: &__locals )
- return JNIType.decode( type: Int64(), from: __return )
- }
-
- open func longMethod( _ _arg0: Int64 ) -> Int64 {
- return longMethod( arg0: _arg0 )
- }
-
- /// public static long[] org.genie.SwiftTest.longArrayMethodStatic(long[])
-
- private static var longArrayMethodStatic_MethodID_34: jmethodID?
-
- open class func longArrayMethodStatic( arg0: [Int64]? ) -> [Int64]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallStaticObjectMethod( className: "org/genie/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "longArrayMethodStatic", methodSig: "([J)[J", methodCache: &longArrayMethodStatic_MethodID_34, args: &__args, locals: &__locals )
- return JNIType.decode( type: [Int64](), from: __return )
- }
-
- open class func longArrayMethodStatic( _ _arg0: [Int64]? ) -> [Int64]! {
- return longArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public long[] org.genie.SwiftTest.longArrayMethod(long[])
-
- private static var longArrayMethod_MethodID_35: jmethodID?
-
- open func longArrayMethod( arg0: [Int64]? ) -> [Int64]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "longArrayMethod", methodSig: "([J)[J", methodCache: &SwiftTest.longArrayMethod_MethodID_35, args: &__args, locals: &__locals )
- return JNIType.decode( type: [Int64](), from: __return )
- }
-
- open func longArrayMethod( _ _arg0: [Int64]? ) -> [Int64]! {
- return longArrayMethod( arg0: _arg0 )
- }
-
- /// public static long[][] org.genie.SwiftTest.long2dArrayMethodStatic(long[][])
-
- private static var long2dArrayMethodStatic_MethodID_36: jmethodID?
-
- open class func long2dArrayMethodStatic( arg0: [[Int64]]? ) -> [[Int64]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallStaticObjectMethod( className: "org/genie/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "long2dArrayMethodStatic", methodSig: "([[J)[[J", methodCache: &long2dArrayMethodStatic_MethodID_36, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[Int64]](), from: __return )
- }
-
- open class func long2dArrayMethodStatic( _ _arg0: [[Int64]]? ) -> [[Int64]]! {
- return long2dArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public long[][] org.genie.SwiftTest.long2dArrayMethod(long[][])
-
- private static var long2dArrayMethod_MethodID_37: jmethodID?
-
- open func long2dArrayMethod( arg0: [[Int64]]? ) -> [[Int64]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "long2dArrayMethod", methodSig: "([[J)[[J", methodCache: &SwiftTest.long2dArrayMethod_MethodID_37, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[Int64]](), from: __return )
- }
-
- open func long2dArrayMethod( _ _arg0: [[Int64]]? ) -> [[Int64]]! {
- return long2dArrayMethod( arg0: _arg0 )
- }
-
- /// public static float org.genie.SwiftTest.floatMethodStatic(float)
-
- private static var floatMethodStatic_MethodID_38: jmethodID?
-
- open class func floatMethodStatic( arg0: Float ) -> Float {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallStaticFloatMethod( className: "org/genie/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "floatMethodStatic", methodSig: "(F)F", methodCache: &floatMethodStatic_MethodID_38, args: &__args, locals: &__locals )
- return JNIType.decode( type: Float(), from: __return )
- }
-
- open class func floatMethodStatic( _ _arg0: Float ) -> Float {
- return floatMethodStatic( arg0: _arg0 )
- }
-
- /// public float org.genie.SwiftTest.floatMethod(float)
-
- private static var floatMethod_MethodID_39: jmethodID?
-
- open func floatMethod( arg0: Float ) -> Float {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallFloatMethod( object: javaObject, methodName: "floatMethod", methodSig: "(F)F", methodCache: &SwiftTest.floatMethod_MethodID_39, args: &__args, locals: &__locals )
- return JNIType.decode( type: Float(), from: __return )
- }
-
- open func floatMethod( _ _arg0: Float ) -> Float {
- return floatMethod( arg0: _arg0 )
- }
-
- /// public static float[] org.genie.SwiftTest.floatArrayMethodStatic(float[])
-
- private static var floatArrayMethodStatic_MethodID_40: jmethodID?
-
- open class func floatArrayMethodStatic( arg0: [Float]? ) -> [Float]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallStaticObjectMethod( className: "org/genie/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "floatArrayMethodStatic", methodSig: "([F)[F", methodCache: &floatArrayMethodStatic_MethodID_40, args: &__args, locals: &__locals )
- return JNIType.decode( type: [Float](), from: __return )
- }
-
- open class func floatArrayMethodStatic( _ _arg0: [Float]? ) -> [Float]! {
- return floatArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public float[] org.genie.SwiftTest.floatArrayMethod(float[])
-
- private static var floatArrayMethod_MethodID_41: jmethodID?
-
- open func floatArrayMethod( arg0: [Float]? ) -> [Float]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "floatArrayMethod", methodSig: "([F)[F", methodCache: &SwiftTest.floatArrayMethod_MethodID_41, args: &__args, locals: &__locals )
- return JNIType.decode( type: [Float](), from: __return )
- }
-
- open func floatArrayMethod( _ _arg0: [Float]? ) -> [Float]! {
- return floatArrayMethod( arg0: _arg0 )
- }
-
- /// public static float[][] org.genie.SwiftTest.float2dArrayMethodStatic(float[][])
-
- private static var float2dArrayMethodStatic_MethodID_42: jmethodID?
-
- open class func float2dArrayMethodStatic( arg0: [[Float]]? ) -> [[Float]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallStaticObjectMethod( className: "org/genie/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "float2dArrayMethodStatic", methodSig: "([[F)[[F", methodCache: &float2dArrayMethodStatic_MethodID_42, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[Float]](), from: __return )
- }
-
- open class func float2dArrayMethodStatic( _ _arg0: [[Float]]? ) -> [[Float]]! {
- return float2dArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public float[][] org.genie.SwiftTest.float2dArrayMethod(float[][])
-
- private static var float2dArrayMethod_MethodID_43: jmethodID?
-
- open func float2dArrayMethod( arg0: [[Float]]? ) -> [[Float]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "float2dArrayMethod", methodSig: "([[F)[[F", methodCache: &SwiftTest.float2dArrayMethod_MethodID_43, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[Float]](), from: __return )
- }
-
- open func float2dArrayMethod( _ _arg0: [[Float]]? ) -> [[Float]]! {
- return float2dArrayMethod( arg0: _arg0 )
- }
-
- /// public static double org.genie.SwiftTest.doubleMethodStatic(double)
-
- private static var doubleMethodStatic_MethodID_44: jmethodID?
-
- open class func doubleMethodStatic( arg0: Double ) -> Double {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallStaticDoubleMethod( className: "org/genie/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "doubleMethodStatic", methodSig: "(D)D", methodCache: &doubleMethodStatic_MethodID_44, args: &__args, locals: &__locals )
- return JNIType.decode( type: Double(), from: __return )
- }
-
- open class func doubleMethodStatic( _ _arg0: Double ) -> Double {
- return doubleMethodStatic( arg0: _arg0 )
- }
-
- /// public double org.genie.SwiftTest.doubleMethod(double)
-
- private static var doubleMethod_MethodID_45: jmethodID?
-
- open func doubleMethod( arg0: Double ) -> Double {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallDoubleMethod( object: javaObject, methodName: "doubleMethod", methodSig: "(D)D", methodCache: &SwiftTest.doubleMethod_MethodID_45, args: &__args, locals: &__locals )
- return JNIType.decode( type: Double(), from: __return )
- }
-
- open func doubleMethod( _ _arg0: Double ) -> Double {
- return doubleMethod( arg0: _arg0 )
- }
-
- /// public static double[] org.genie.SwiftTest.doubleArrayMethodStatic(double[])
-
- private static var doubleArrayMethodStatic_MethodID_46: jmethodID?
-
- open class func doubleArrayMethodStatic( arg0: [Double]? ) -> [Double]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallStaticObjectMethod( className: "org/genie/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "doubleArrayMethodStatic", methodSig: "([D)[D", methodCache: &doubleArrayMethodStatic_MethodID_46, args: &__args, locals: &__locals )
- return JNIType.decode( type: [Double](), from: __return )
- }
-
- open class func doubleArrayMethodStatic( _ _arg0: [Double]? ) -> [Double]! {
- return doubleArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public double[] org.genie.SwiftTest.doubleArrayMethod(double[])
-
- private static var doubleArrayMethod_MethodID_47: jmethodID?
-
- open func doubleArrayMethod( arg0: [Double]? ) -> [Double]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "doubleArrayMethod", methodSig: "([D)[D", methodCache: &SwiftTest.doubleArrayMethod_MethodID_47, args: &__args, locals: &__locals )
- return JNIType.decode( type: [Double](), from: __return )
- }
-
- open func doubleArrayMethod( _ _arg0: [Double]? ) -> [Double]! {
- return doubleArrayMethod( arg0: _arg0 )
- }
-
- /// public static double[][] org.genie.SwiftTest.double2dArrayMethodStatic(double[][])
-
- private static var double2dArrayMethodStatic_MethodID_48: jmethodID?
-
- open class func double2dArrayMethodStatic( arg0: [[Double]]? ) -> [[Double]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallStaticObjectMethod( className: "org/genie/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "double2dArrayMethodStatic", methodSig: "([[D)[[D", methodCache: &double2dArrayMethodStatic_MethodID_48, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[Double]](), from: __return )
- }
-
- open class func double2dArrayMethodStatic( _ _arg0: [[Double]]? ) -> [[Double]]! {
- return double2dArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public double[][] org.genie.SwiftTest.double2dArrayMethod(double[][])
-
- private static var double2dArrayMethod_MethodID_49: jmethodID?
-
- open func double2dArrayMethod( arg0: [[Double]]? ) -> [[Double]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "double2dArrayMethod", methodSig: "([[D)[[D", methodCache: &SwiftTest.double2dArrayMethod_MethodID_49, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[Double]](), from: __return )
- }
-
- open func double2dArrayMethod( _ _arg0: [[Double]]? ) -> [[Double]]! {
- return double2dArrayMethod( arg0: _arg0 )
- }
-
- /// public static java.lang.String org.genie.SwiftTest.StringMethodStatic(java.lang.String)
-
- private static var StringMethodStatic_MethodID_50: jmethodID?
-
- open class func StringMethodStatic( arg0: String? ) -> String! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallStaticObjectMethod( className: "org/genie/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "StringMethodStatic", methodSig: "(Ljava/lang/String;)Ljava/lang/String;", methodCache: &StringMethodStatic_MethodID_50, args: &__args, locals: &__locals )
- return JNIType.decode( type: String(), from: __return )
- }
-
- open class func StringMethodStatic( _ _arg0: String? ) -> String! {
- return StringMethodStatic( arg0: _arg0 )
- }
-
- /// public java.lang.String org.genie.SwiftTest.StringMethod(java.lang.String)
-
- private static var StringMethod_MethodID_51: jmethodID?
-
- open func StringMethod( arg0: String? ) -> String! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "StringMethod", methodSig: "(Ljava/lang/String;)Ljava/lang/String;", methodCache: &SwiftTest.StringMethod_MethodID_51, args: &__args, locals: &__locals )
- return JNIType.decode( type: String(), from: __return )
- }
-
- open func StringMethod( _ _arg0: String? ) -> String! {
- return StringMethod( arg0: _arg0 )
- }
-
- /// public static java.lang.String[] org.genie.SwiftTest.StringArrayMethodStatic(java.lang.String[])
-
- private static var StringArrayMethodStatic_MethodID_52: jmethodID?
-
- open class func StringArrayMethodStatic( arg0: [String]? ) -> [String]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallStaticObjectMethod( className: "org/genie/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "StringArrayMethodStatic", methodSig: "([Ljava/lang/String;)[Ljava/lang/String;", methodCache: &StringArrayMethodStatic_MethodID_52, args: &__args, locals: &__locals )
- return JNIType.decode( type: [String](), from: __return )
- }
-
- open class func StringArrayMethodStatic( _ _arg0: [String]? ) -> [String]! {
- return StringArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public java.lang.String[] org.genie.SwiftTest.StringArrayMethod(java.lang.String[])
-
- private static var StringArrayMethod_MethodID_53: jmethodID?
-
- open func StringArrayMethod( arg0: [String]? ) -> [String]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "StringArrayMethod", methodSig: "([Ljava/lang/String;)[Ljava/lang/String;", methodCache: &SwiftTest.StringArrayMethod_MethodID_53, args: &__args, locals: &__locals )
- return JNIType.decode( type: [String](), from: __return )
- }
-
- open func StringArrayMethod( _ _arg0: [String]? ) -> [String]! {
- return StringArrayMethod( arg0: _arg0 )
- }
-
- /// public static java.lang.String[][] org.genie.SwiftTest.String2dArrayMethodStatic(java.lang.String[][])
-
- private static var String2dArrayMethodStatic_MethodID_54: jmethodID?
-
- open class func String2dArrayMethodStatic( arg0: [[String]]? ) -> [[String]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallStaticObjectMethod( className: "org/genie/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "String2dArrayMethodStatic", methodSig: "([[Ljava/lang/String;)[[Ljava/lang/String;", methodCache: &String2dArrayMethodStatic_MethodID_54, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[String]](), from: __return )
- }
-
- open class func String2dArrayMethodStatic( _ _arg0: [[String]]? ) -> [[String]]! {
- return String2dArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public java.lang.String[][] org.genie.SwiftTest.String2dArrayMethod(java.lang.String[][])
-
- private static var String2dArrayMethod_MethodID_55: jmethodID?
-
- open func String2dArrayMethod( arg0: [[String]]? ) -> [[String]]! {
- var __args = [jvalue]( repeating: jvalue(), count: 1 )
- var __locals = [jobject]()
- __args[0] = JNIType.encode( value: arg0, locals: &__locals )
- let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "String2dArrayMethod", methodSig: "([[Ljava/lang/String;)[[Ljava/lang/String;", methodCache: &SwiftTest.String2dArrayMethod_MethodID_55, args: &__args, locals: &__locals )
- return JNIType.decode( type: [[String]](), from: __return )
- }
-
- open func String2dArrayMethod( _ _arg0: [[String]]? ) -> [[String]]! {
- return String2dArrayMethod( arg0: _arg0 )
- }
-
-}
diff --git a/org_genie/test_body.swift b/org_genie/test_body.swift
deleted file mode 100644
index 71f9be7..0000000
--- a/org_genie/test_body.swift
+++ /dev/null
@@ -1,270 +0,0 @@
-
- if true {
- let reference: Bool = true
- let referenceArray = [(reference)]
- let reference2dArray = [referenceArray]
-
- SwiftTest.booleanFieldStatic = reference
- XCTAssertEqual( SwiftTest.booleanFieldStatic, reference )
- instance.booleanField = reference
- XCTAssertEqual( instance.booleanField, reference )
-
- SwiftTest.booleanArrayFieldStatic = referenceArray
- XCTAssertEqual( SwiftTest.booleanArrayFieldStatic, referenceArray )
- instance.booleanArrayField = referenceArray
- XCTAssertEqual( instance.booleanArrayField, referenceArray )
-
- SwiftTest.boolean2dArrayFieldStatic = reference2dArray
- XCTAssertEqual( SwiftTest.boolean2dArrayFieldStatic[0], reference2dArray[0] )
- instance.boolean2dArrayField = reference2dArray
- XCTAssertEqual( instance.boolean2dArrayField[0], reference2dArray[0] )
-
- XCTAssertEqual( SwiftTest.booleanMethodStatic( reference ), reference )
- XCTAssertEqual( instance.booleanMethod( reference ), reference )
-
- XCTAssertEqual( SwiftTest.booleanArrayMethodStatic( referenceArray ), referenceArray )
- XCTAssertEqual( instance.booleanArrayMethod( referenceArray ), referenceArray )
-
- XCTAssertEqual( SwiftTest.boolean2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
- XCTAssertEqual( instance.boolean2dArrayMethod( reference2dArray )[0], reference2dArray[0] )
- }
-
- if true {
- let reference: Int8 = 123
- let referenceArray = [(reference)]
- let reference2dArray = [referenceArray]
-
- SwiftTest.byteFieldStatic = reference
- XCTAssertEqual( SwiftTest.byteFieldStatic, reference )
- instance.byteField = reference
- XCTAssertEqual( instance.byteField, reference )
-
- SwiftTest.byteArrayFieldStatic = referenceArray
- XCTAssertEqual( SwiftTest.byteArrayFieldStatic, referenceArray )
- instance.byteArrayField = referenceArray
- XCTAssertEqual( instance.byteArrayField, referenceArray )
-
- SwiftTest.byte2dArrayFieldStatic = reference2dArray
- XCTAssertEqual( SwiftTest.byte2dArrayFieldStatic[0], reference2dArray[0] )
- instance.byte2dArrayField = reference2dArray
- XCTAssertEqual( instance.byte2dArrayField[0], reference2dArray[0] )
-
- XCTAssertEqual( SwiftTest.byteMethodStatic( reference ), reference )
- XCTAssertEqual( instance.byteMethod( reference ), reference )
-
- XCTAssertEqual( SwiftTest.byteArrayMethodStatic( referenceArray ), referenceArray )
- XCTAssertEqual( instance.byteArrayMethod( referenceArray ), referenceArray )
-
- XCTAssertEqual( SwiftTest.byte2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
- XCTAssertEqual( instance.byte2dArrayMethod( reference2dArray )[0], reference2dArray[0] )
- }
-
- if true {
- let reference: UInt16 = 123
- let referenceArray = [(reference)]
- let reference2dArray = [referenceArray]
-
- SwiftTest.charFieldStatic = reference
- XCTAssertEqual( SwiftTest.charFieldStatic, reference )
- instance.charField = reference
- XCTAssertEqual( instance.charField, reference )
-
- SwiftTest.charArrayFieldStatic = referenceArray
- XCTAssertEqual( SwiftTest.charArrayFieldStatic, referenceArray )
- instance.charArrayField = referenceArray
- XCTAssertEqual( instance.charArrayField, referenceArray )
-
- SwiftTest.char2dArrayFieldStatic = reference2dArray
- XCTAssertEqual( SwiftTest.char2dArrayFieldStatic[0], reference2dArray[0] )
- instance.char2dArrayField = reference2dArray
- XCTAssertEqual( instance.char2dArrayField[0], reference2dArray[0] )
-
- XCTAssertEqual( SwiftTest.charMethodStatic( reference ), reference )
- XCTAssertEqual( instance.charMethod( reference ), reference )
-
- XCTAssertEqual( SwiftTest.charArrayMethodStatic( referenceArray ), referenceArray )
- XCTAssertEqual( instance.charArrayMethod( referenceArray ), referenceArray )
-
- XCTAssertEqual( SwiftTest.char2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
- XCTAssertEqual( instance.char2dArrayMethod( reference2dArray )[0], reference2dArray[0] )
- }
-
- if true {
- let reference: Int16 = 123
- let referenceArray = [(reference)]
- let reference2dArray = [referenceArray]
-
- SwiftTest.shortFieldStatic = reference
- XCTAssertEqual( SwiftTest.shortFieldStatic, reference )
- instance.shortField = reference
- XCTAssertEqual( instance.shortField, reference )
-
- SwiftTest.shortArrayFieldStatic = referenceArray
- XCTAssertEqual( SwiftTest.shortArrayFieldStatic, referenceArray )
- instance.shortArrayField = referenceArray
- XCTAssertEqual( instance.shortArrayField, referenceArray )
-
- SwiftTest.short2dArrayFieldStatic = reference2dArray
- XCTAssertEqual( SwiftTest.short2dArrayFieldStatic[0], reference2dArray[0] )
- instance.short2dArrayField = reference2dArray
- XCTAssertEqual( instance.short2dArrayField[0], reference2dArray[0] )
-
- XCTAssertEqual( SwiftTest.shortMethodStatic( reference ), reference )
- XCTAssertEqual( instance.shortMethod( reference ), reference )
-
- XCTAssertEqual( SwiftTest.shortArrayMethodStatic( referenceArray ), referenceArray )
- XCTAssertEqual( instance.shortArrayMethod( referenceArray ), referenceArray )
-
- XCTAssertEqual( SwiftTest.short2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
- XCTAssertEqual( instance.short2dArrayMethod( reference2dArray )[0], reference2dArray[0] )
- }
-
- if true {
- let reference: Int = 123
- let referenceArray = [Int32(reference)]
- let reference2dArray = [referenceArray]
-
- SwiftTest.intFieldStatic = reference
- XCTAssertEqual( SwiftTest.intFieldStatic, reference )
- instance.intField = reference
- XCTAssertEqual( instance.intField, reference )
-
- SwiftTest.intArrayFieldStatic = referenceArray
- XCTAssertEqual( SwiftTest.intArrayFieldStatic, referenceArray )
- instance.intArrayField = referenceArray
- XCTAssertEqual( instance.intArrayField, referenceArray )
-
- SwiftTest.int2dArrayFieldStatic = reference2dArray
- XCTAssertEqual( SwiftTest.int2dArrayFieldStatic[0], reference2dArray[0] )
- instance.int2dArrayField = reference2dArray
- XCTAssertEqual( instance.int2dArrayField[0], reference2dArray[0] )
-
- XCTAssertEqual( SwiftTest.intMethodStatic( reference ), reference )
- XCTAssertEqual( instance.intMethod( reference ), reference )
-
- XCTAssertEqual( SwiftTest.intArrayMethodStatic( referenceArray ), referenceArray )
- XCTAssertEqual( instance.intArrayMethod( referenceArray ), referenceArray )
-
- XCTAssertEqual( SwiftTest.int2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
- XCTAssertEqual( instance.int2dArrayMethod( reference2dArray )[0], reference2dArray[0] )
- }
-
- if true {
- let reference: Int64 = 123
- let referenceArray = [(reference)]
- let reference2dArray = [referenceArray]
-
- SwiftTest.longFieldStatic = reference
- XCTAssertEqual( SwiftTest.longFieldStatic, reference )
- instance.longField = reference
- XCTAssertEqual( instance.longField, reference )
-
- SwiftTest.longArrayFieldStatic = referenceArray
- XCTAssertEqual( SwiftTest.longArrayFieldStatic, referenceArray )
- instance.longArrayField = referenceArray
- XCTAssertEqual( instance.longArrayField, referenceArray )
-
- SwiftTest.long2dArrayFieldStatic = reference2dArray
- XCTAssertEqual( SwiftTest.long2dArrayFieldStatic[0], reference2dArray[0] )
- instance.long2dArrayField = reference2dArray
- XCTAssertEqual( instance.long2dArrayField[0], reference2dArray[0] )
-
- XCTAssertEqual( SwiftTest.longMethodStatic( reference ), reference )
- XCTAssertEqual( instance.longMethod( reference ), reference )
-
- XCTAssertEqual( SwiftTest.longArrayMethodStatic( referenceArray ), referenceArray )
- XCTAssertEqual( instance.longArrayMethod( referenceArray ), referenceArray )
-
- XCTAssertEqual( SwiftTest.long2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
- XCTAssertEqual( instance.long2dArrayMethod( reference2dArray )[0], reference2dArray[0] )
- }
-
- if true {
- let reference: Float = 123
- let referenceArray = [(reference)]
- let reference2dArray = [referenceArray]
-
- SwiftTest.floatFieldStatic = reference
- XCTAssertEqual( SwiftTest.floatFieldStatic, reference )
- instance.floatField = reference
- XCTAssertEqual( instance.floatField, reference )
-
- SwiftTest.floatArrayFieldStatic = referenceArray
- XCTAssertEqual( SwiftTest.floatArrayFieldStatic, referenceArray )
- instance.floatArrayField = referenceArray
- XCTAssertEqual( instance.floatArrayField, referenceArray )
-
- SwiftTest.float2dArrayFieldStatic = reference2dArray
- XCTAssertEqual( SwiftTest.float2dArrayFieldStatic[0], reference2dArray[0] )
- instance.float2dArrayField = reference2dArray
- XCTAssertEqual( instance.float2dArrayField[0], reference2dArray[0] )
-
- XCTAssertEqual( SwiftTest.floatMethodStatic( reference ), reference )
- XCTAssertEqual( instance.floatMethod( reference ), reference )
-
- XCTAssertEqual( SwiftTest.floatArrayMethodStatic( referenceArray ), referenceArray )
- XCTAssertEqual( instance.floatArrayMethod( referenceArray ), referenceArray )
-
- XCTAssertEqual( SwiftTest.float2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
- XCTAssertEqual( instance.float2dArrayMethod( reference2dArray )[0], reference2dArray[0] )
- }
-
- if true {
- let reference: Double = 123
- let referenceArray = [(reference)]
- let reference2dArray = [referenceArray]
-
- SwiftTest.doubleFieldStatic = reference
- XCTAssertEqual( SwiftTest.doubleFieldStatic, reference )
- instance.doubleField = reference
- XCTAssertEqual( instance.doubleField, reference )
-
- SwiftTest.doubleArrayFieldStatic = referenceArray
- XCTAssertEqual( SwiftTest.doubleArrayFieldStatic, referenceArray )
- instance.doubleArrayField = referenceArray
- XCTAssertEqual( instance.doubleArrayField, referenceArray )
-
- SwiftTest.double2dArrayFieldStatic = reference2dArray
- XCTAssertEqual( SwiftTest.double2dArrayFieldStatic[0], reference2dArray[0] )
- instance.double2dArrayField = reference2dArray
- XCTAssertEqual( instance.double2dArrayField[0], reference2dArray[0] )
-
- XCTAssertEqual( SwiftTest.doubleMethodStatic( reference ), reference )
- XCTAssertEqual( instance.doubleMethod( reference ), reference )
-
- XCTAssertEqual( SwiftTest.doubleArrayMethodStatic( referenceArray ), referenceArray )
- XCTAssertEqual( instance.doubleArrayMethod( referenceArray ), referenceArray )
-
- XCTAssertEqual( SwiftTest.double2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
- XCTAssertEqual( instance.double2dArrayMethod( reference2dArray )[0], reference2dArray[0] )
- }
-
- if true {
- let reference: String = "123"
- let referenceArray = [(reference)]
- let reference2dArray = [referenceArray]
-
- SwiftTest.StringFieldStatic = reference
- XCTAssertEqual( SwiftTest.StringFieldStatic, reference )
- instance.StringField = reference
- XCTAssertEqual( instance.StringField, reference )
-
- SwiftTest.StringArrayFieldStatic = referenceArray
- XCTAssertEqual( SwiftTest.StringArrayFieldStatic, referenceArray )
- instance.StringArrayField = referenceArray
- XCTAssertEqual( instance.StringArrayField, referenceArray )
-
- SwiftTest.String2dArrayFieldStatic = reference2dArray
- XCTAssertEqual( SwiftTest.String2dArrayFieldStatic[0], reference2dArray[0] )
- instance.String2dArrayField = reference2dArray
- XCTAssertEqual( instance.String2dArrayField[0], reference2dArray[0] )
-
- XCTAssertEqual( SwiftTest.StringMethodStatic( reference ), reference )
- XCTAssertEqual( instance.StringMethod( reference ), reference )
-
- XCTAssertEqual( SwiftTest.StringArrayMethodStatic( referenceArray ), referenceArray )
- XCTAssertEqual( instance.StringArrayMethod( referenceArray ), referenceArray )
-
- XCTAssertEqual( SwiftTest.String2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
- XCTAssertEqual( instance.String2dArrayMethod( reference2dArray )[0], reference2dArray[0] )
- }
diff --git a/org_swiftjava/Fortify.swift b/org_swiftjava/Fortify.swift
new file mode 100644
index 0000000..61d3cf3
--- /dev/null
+++ b/org_swiftjava/Fortify.swift
@@ -0,0 +1,144 @@
+//
+// Fortify.swift
+// Fortify
+//
+// Created by John Holdsworth on 19/09/2017.
+// Copyright © 2017 John Holdsworth. All rights reserved.
+//
+// Currently requires patched Swift toolchain from here:
+// http://johnholdsworth.com/swift-LOCAL-2017-09-20-a-osx.tar.gz
+//
+
+import Foundation
+
+open class ThreadLocal {
+ public required init() {
+ }
+
+ public class func getThreadLocal(ofClass: T.Type,
+ keyVar: UnsafeMutablePointer) -> T {
+ let needsKey = keyVar.pointee == 0
+ if needsKey {
+ let ret = pthread_key_create(keyVar, {
+ #if os(Linux)
+ Unmanaged.fromOpaque($0!).release()
+ #else
+ Unmanaged.fromOpaque($0).release()
+ #endif
+ })
+ if ret != 0 {
+ NSLog("Could not pthread_key_create: %s", strerror(ret))
+ }
+ }
+ if let existing = pthread_getspecific(keyVar.pointee) {
+ return Unmanaged.fromOpaque(existing).takeUnretainedValue()
+ }
+ else {
+ let unmanaged = Unmanaged.passRetained(T())
+ let ret = pthread_setspecific(keyVar.pointee, unmanaged.toOpaque())
+ if ret != 0 {
+ NSLog("Could not pthread_setspecific: %s", strerror(ret))
+ }
+ return unmanaged.takeUnretainedValue()
+ }
+ }
+}
+
+@_silgen_name ("setjmp")
+public func setjump(_: UnsafeMutablePointer!) -> Int32
+
+@_silgen_name ("longjmp")
+public func longjump(_: UnsafeMutablePointer!, _: Int32) -> Never
+
+private let empty_buf = [UInt8](repeating: 0, count: MemoryLayout.size)
+
+open class Fortify: ThreadLocal {
+
+ static private var pthreadKey: pthread_key_t = 0
+
+ open class var threadLocal: Fortify {
+ return getThreadLocal(ofClass: Fortify.self, keyVar: &pthreadKey)
+ }
+
+ private var stack = [jmp_buf]()
+ public var error: Error?
+
+ // Required as Swift assumes it has control of the stack
+ open class func disableExclusivityChecking() {
+ #if os(Android)
+ let libName = "libswiftCore.so"
+ #else
+ let libName: String? = nil
+ #endif
+ if let stdlibHandle = dlopen(libName, Int32(RTLD_LAZY | RTLD_NOLOAD)),
+ let disableExclusivity = dlsym(stdlibHandle, "_swift_disableExclusivityChecking") {
+ disableExclusivity.assumingMemoryBound(to: Bool.self).pointee = true
+ }
+ else {
+ NSLog("Could not disable exclusivity, failure likely...")
+ }
+ }
+
+ public static let installHandlerOnce: Void = {
+// _swift_stdlib_errorHandler = {
+// (prefix: StaticString, msg: String, file: StaticString,
+// line: UInt, flags: UInt32, config: Int32) in
+// escape(msg: msg, file: file, line: line)
+// }
+
+ disableExclusivityChecking()
+ }()
+
+ open class func exec( block: () throws -> T ) throws -> T {
+ _ = installHandlerOnce
+ let local = threadLocal
+
+ empty_buf.withUnsafeBytes {
+ let buf_ptr = $0.baseAddress!.assumingMemoryBound(to: jmp_buf.self)
+ local.stack.append(buf_ptr.pointee)
+ }
+
+ defer {
+ local.stack.removeLast()
+ }
+
+ if setjump(&local.stack[local.stack.count-1]) != 0 {
+ throw local.error ?? NSError(domain: "Error not available", code: -1, userInfo: nil)
+ }
+
+ return try block()
+ }
+
+ open class func escape(msg: String, file: StaticString = #file, line: UInt = #line) -> Never {
+ escape(withError: NSError(domain: msg, code: -1, userInfo: [
+ NSLocalizedDescriptionKey: "\(msg): \(file):\(line)",
+ "msg": msg, "file": file, "line": line
+ ]))
+ }
+
+ open class func escape(withError error: Error) -> Never {
+ let local = threadLocal
+ local.error = error
+
+ if local.stack.count == 0 {
+ NSLog("escape without matching exec call: \(error)")
+ #if !os(Linux)
+ // pthread_exit(nil) just crashes
+ var oldState: Int32 = 0
+ pthread_setcancelstate(Int32(PTHREAD_CANCEL_ENABLE), &oldState)
+ pthread_setcanceltype(Int32(PTHREAD_CANCEL_DEFERRED), &oldState)
+ // pthread_cancel() never seems to be implemented
+ let cancelled = pthread_cancel(pthread_self())
+ if cancelled != 0 {
+ NSLog("pthread_cancel() failed: %s", strerror(cancelled))
+ }
+ sleep(1)
+ #endif
+ NSLog("cancel/exit not available/implemented or crashes, parking thread")
+ Thread.sleep(until: Date.distantFuture)
+ }
+
+ longjump(&local.stack[local.stack.count-1], 1)
+ NSLog("longjmp() failed, should not get here")
+ }
+}
diff --git a/org_genie/Info.plist b/org_swiftjava/Info.plist
similarity index 100%
rename from org_genie/Info.plist
rename to org_swiftjava/Info.plist
diff --git a/org_swiftjava/Sources/SwiftTest.swift b/org_swiftjava/Sources/SwiftTest.swift
new file mode 100644
index 0000000..44a3eec
--- /dev/null
+++ b/org_swiftjava/Sources/SwiftTest.swift
@@ -0,0 +1,1977 @@
+
+import java_swift
+
+/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
+
+/// class org.swiftjava.SwiftTest ///
+
+open class SwiftTest: java_swift.JavaObject {
+
+ public convenience init?( casting object: java_swift.JavaObject, _ file: StaticString = #file, _ line: Int = #line ) {
+ self.init( javaObject: nil )
+ object.withJavaObject {
+ self.javaObject = $0
+ }
+ }
+
+ private static var SwiftTestJNIClass: jclass?
+
+ /// public static java.lang.String[][] org.swiftjava.SwiftTest.String2dArrayFieldStatic
+
+ private static var String2dArrayFieldStatic_FieldID: jfieldID?
+
+ public static var String2dArrayFieldStatic: [[String]]! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "String2dArrayFieldStatic", fieldType: "[[Ljava/lang/String;", fieldCache: &String2dArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ return JNIType.toSwift( type: [[String]].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetStaticObjectField( fieldName: "String2dArrayFieldStatic", fieldType: "[[Ljava/lang/String;", fieldCache: &String2dArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public static java.lang.String[] org.swiftjava.SwiftTest.StringArrayFieldStatic
+
+ private static var StringArrayFieldStatic_FieldID: jfieldID?
+
+ public static var StringArrayFieldStatic: [String]! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "StringArrayFieldStatic", fieldType: "[Ljava/lang/String;", fieldCache: &StringArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ return JNIType.toSwift( type: [String].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetStaticObjectField( fieldName: "StringArrayFieldStatic", fieldType: "[Ljava/lang/String;", fieldCache: &StringArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public static java.lang.String org.swiftjava.SwiftTest.StringFieldStatic
+
+ private static var StringFieldStatic_FieldID: jfieldID?
+
+ public static var StringFieldStatic: String! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "StringFieldStatic", fieldType: "Ljava/lang/String;", fieldCache: &StringFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ defer { JNI.DeleteLocalRef( __value ) }
+ return __value != nil ? String( javaObject: __value ) : nil
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetStaticObjectField( fieldName: "StringFieldStatic", fieldType: "Ljava/lang/String;", fieldCache: &StringFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public static com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener[][] org.swiftjava.SwiftTest.TestListener2dArrayFieldStatic
+
+ private static var TestListener2dArrayFieldStatic_FieldID: jfieldID?
+
+ public static var TestListener2dArrayFieldStatic: [[/* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol]]! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "TestListener2dArrayFieldStatic", fieldType: "[[Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", fieldCache: &TestListener2dArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ return JNIType.toSwift( type: [[/* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocolForward]].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetStaticObjectField( fieldName: "TestListener2dArrayFieldStatic", fieldType: "[[Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", fieldCache: &TestListener2dArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public static com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener[] org.swiftjava.SwiftTest.TestListenerArrayFieldStatic
+
+ private static var TestListenerArrayFieldStatic_FieldID: jfieldID?
+
+ public static var TestListenerArrayFieldStatic: [/* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol]! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "TestListenerArrayFieldStatic", fieldType: "[Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", fieldCache: &TestListenerArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ return JNIType.toSwift( type: [/* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocolForward].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetStaticObjectField( fieldName: "TestListenerArrayFieldStatic", fieldType: "[Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", fieldCache: &TestListenerArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public static com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener org.swiftjava.SwiftTest.TestListenerFieldStatic
+
+ private static var TestListenerFieldStatic_FieldID: jfieldID?
+
+ public static var TestListenerFieldStatic: /* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "TestListenerFieldStatic", fieldType: "Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", fieldCache: &TestListenerFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ defer { JNI.DeleteLocalRef( __value ) }
+ return __value != nil ? /* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocolForward( javaObject: __value ) : nil
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetStaticObjectField( fieldName: "TestListenerFieldStatic", fieldType: "Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", fieldCache: &TestListenerFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public static boolean[][] org.swiftjava.SwiftTest.boolean2dArrayFieldStatic
+
+ private static var boolean2dArrayFieldStatic_FieldID: jfieldID?
+
+ public static var boolean2dArrayFieldStatic: [[Bool]]! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "boolean2dArrayFieldStatic", fieldType: "[[Z", fieldCache: &boolean2dArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ return JNIType.toSwift( type: [[Bool]].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetStaticObjectField( fieldName: "boolean2dArrayFieldStatic", fieldType: "[[Z", fieldCache: &boolean2dArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public static boolean[] org.swiftjava.SwiftTest.booleanArrayFieldStatic
+
+ private static var booleanArrayFieldStatic_FieldID: jfieldID?
+
+ public static var booleanArrayFieldStatic: [Bool]! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "booleanArrayFieldStatic", fieldType: "[Z", fieldCache: &booleanArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ return JNIType.toSwift( type: [Bool].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetStaticObjectField( fieldName: "booleanArrayFieldStatic", fieldType: "[Z", fieldCache: &booleanArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public static boolean org.swiftjava.SwiftTest.booleanFieldStatic
+
+ private static var booleanFieldStatic_FieldID: jfieldID?
+
+ public static var booleanFieldStatic: Bool {
+ get {
+ let __value = JNIField.GetStaticBooleanField( fieldName: "booleanFieldStatic", fieldType: "Z", fieldCache: &booleanFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ return __value != jboolean(JNI_FALSE)
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = jvalue( z: jboolean(newValue ? JNI_TRUE : JNI_FALSE) )
+ JNIField.SetStaticBooleanField( fieldName: "booleanFieldStatic", fieldType: "Z", fieldCache: &booleanFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.z, locals: &__locals )
+ }
+ }
+
+ /// public static byte[][] org.swiftjava.SwiftTest.byte2dArrayFieldStatic
+
+ private static var byte2dArrayFieldStatic_FieldID: jfieldID?
+
+ public static var byte2dArrayFieldStatic: [[Int8]]! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "byte2dArrayFieldStatic", fieldType: "[[B", fieldCache: &byte2dArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ return JNIType.toSwift( type: [[Int8]].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetStaticObjectField( fieldName: "byte2dArrayFieldStatic", fieldType: "[[B", fieldCache: &byte2dArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public static byte[] org.swiftjava.SwiftTest.byteArrayFieldStatic
+
+ private static var byteArrayFieldStatic_FieldID: jfieldID?
+
+ public static var byteArrayFieldStatic: [Int8]! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "byteArrayFieldStatic", fieldType: "[B", fieldCache: &byteArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ return JNIType.toSwift( type: [Int8].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetStaticObjectField( fieldName: "byteArrayFieldStatic", fieldType: "[B", fieldCache: &byteArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public static byte org.swiftjava.SwiftTest.byteFieldStatic
+
+ private static var byteFieldStatic_FieldID: jfieldID?
+
+ public static var byteFieldStatic: Int8 {
+ get {
+ let __value = JNIField.GetStaticByteField( fieldName: "byteFieldStatic", fieldType: "B", fieldCache: &byteFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ return __value
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = jvalue( b: newValue )
+ JNIField.SetStaticByteField( fieldName: "byteFieldStatic", fieldType: "B", fieldCache: &byteFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.b, locals: &__locals )
+ }
+ }
+
+ /// public static char[][] org.swiftjava.SwiftTest.char2dArrayFieldStatic
+
+ private static var char2dArrayFieldStatic_FieldID: jfieldID?
+
+ public static var char2dArrayFieldStatic: [[UInt16]]! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "char2dArrayFieldStatic", fieldType: "[[C", fieldCache: &char2dArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ return JNIType.toSwift( type: [[UInt16]].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetStaticObjectField( fieldName: "char2dArrayFieldStatic", fieldType: "[[C", fieldCache: &char2dArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public static char[] org.swiftjava.SwiftTest.charArrayFieldStatic
+
+ private static var charArrayFieldStatic_FieldID: jfieldID?
+
+ public static var charArrayFieldStatic: [UInt16]! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "charArrayFieldStatic", fieldType: "[C", fieldCache: &charArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ return JNIType.toSwift( type: [UInt16].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetStaticObjectField( fieldName: "charArrayFieldStatic", fieldType: "[C", fieldCache: &charArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public static char org.swiftjava.SwiftTest.charFieldStatic
+
+ private static var charFieldStatic_FieldID: jfieldID?
+
+ public static var charFieldStatic: UInt16 {
+ get {
+ let __value = JNIField.GetStaticCharField( fieldName: "charFieldStatic", fieldType: "C", fieldCache: &charFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ return __value
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = jvalue( c: newValue )
+ JNIField.SetStaticCharField( fieldName: "charFieldStatic", fieldType: "C", fieldCache: &charFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.c, locals: &__locals )
+ }
+ }
+
+ /// public static double[][] org.swiftjava.SwiftTest.double2dArrayFieldStatic
+
+ private static var double2dArrayFieldStatic_FieldID: jfieldID?
+
+ public static var double2dArrayFieldStatic: [[Double]]! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "double2dArrayFieldStatic", fieldType: "[[D", fieldCache: &double2dArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ return JNIType.toSwift( type: [[Double]].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetStaticObjectField( fieldName: "double2dArrayFieldStatic", fieldType: "[[D", fieldCache: &double2dArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public static double[] org.swiftjava.SwiftTest.doubleArrayFieldStatic
+
+ private static var doubleArrayFieldStatic_FieldID: jfieldID?
+
+ public static var doubleArrayFieldStatic: [Double]! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "doubleArrayFieldStatic", fieldType: "[D", fieldCache: &doubleArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ return JNIType.toSwift( type: [Double].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetStaticObjectField( fieldName: "doubleArrayFieldStatic", fieldType: "[D", fieldCache: &doubleArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public static double org.swiftjava.SwiftTest.doubleFieldStatic
+
+ private static var doubleFieldStatic_FieldID: jfieldID?
+
+ public static var doubleFieldStatic: Double {
+ get {
+ let __value = JNIField.GetStaticDoubleField( fieldName: "doubleFieldStatic", fieldType: "D", fieldCache: &doubleFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ return __value
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = jvalue( d: newValue )
+ JNIField.SetStaticDoubleField( fieldName: "doubleFieldStatic", fieldType: "D", fieldCache: &doubleFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.d, locals: &__locals )
+ }
+ }
+
+ /// public static float[][] org.swiftjava.SwiftTest.float2dArrayFieldStatic
+
+ private static var float2dArrayFieldStatic_FieldID: jfieldID?
+
+ public static var float2dArrayFieldStatic: [[Float]]! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "float2dArrayFieldStatic", fieldType: "[[F", fieldCache: &float2dArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ return JNIType.toSwift( type: [[Float]].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetStaticObjectField( fieldName: "float2dArrayFieldStatic", fieldType: "[[F", fieldCache: &float2dArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public static float[] org.swiftjava.SwiftTest.floatArrayFieldStatic
+
+ private static var floatArrayFieldStatic_FieldID: jfieldID?
+
+ public static var floatArrayFieldStatic: [Float]! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "floatArrayFieldStatic", fieldType: "[F", fieldCache: &floatArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ return JNIType.toSwift( type: [Float].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetStaticObjectField( fieldName: "floatArrayFieldStatic", fieldType: "[F", fieldCache: &floatArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public static float org.swiftjava.SwiftTest.floatFieldStatic
+
+ private static var floatFieldStatic_FieldID: jfieldID?
+
+ public static var floatFieldStatic: Float {
+ get {
+ let __value = JNIField.GetStaticFloatField( fieldName: "floatFieldStatic", fieldType: "F", fieldCache: &floatFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ return __value
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = jvalue( f: newValue )
+ JNIField.SetStaticFloatField( fieldName: "floatFieldStatic", fieldType: "F", fieldCache: &floatFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.f, locals: &__locals )
+ }
+ }
+
+ /// public static int[][] org.swiftjava.SwiftTest.int2dArrayFieldStatic
+
+ private static var int2dArrayFieldStatic_FieldID: jfieldID?
+
+ public static var int2dArrayFieldStatic: [[Int32]]! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "int2dArrayFieldStatic", fieldType: "[[I", fieldCache: &int2dArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ return JNIType.toSwift( type: [[Int32]].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetStaticObjectField( fieldName: "int2dArrayFieldStatic", fieldType: "[[I", fieldCache: &int2dArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public static int[] org.swiftjava.SwiftTest.intArrayFieldStatic
+
+ private static var intArrayFieldStatic_FieldID: jfieldID?
+
+ public static var intArrayFieldStatic: [Int32]! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "intArrayFieldStatic", fieldType: "[I", fieldCache: &intArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ return JNIType.toSwift( type: [Int32].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetStaticObjectField( fieldName: "intArrayFieldStatic", fieldType: "[I", fieldCache: &intArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public static int org.swiftjava.SwiftTest.intFieldStatic
+
+ private static var intFieldStatic_FieldID: jfieldID?
+
+ public static var intFieldStatic: Int {
+ get {
+ let __value = JNIField.GetStaticIntField( fieldName: "intFieldStatic", fieldType: "I", fieldCache: &intFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ return Int(__value)
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = jvalue( i: jint(newValue) )
+ JNIField.SetStaticIntField( fieldName: "intFieldStatic", fieldType: "I", fieldCache: &intFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.i, locals: &__locals )
+ }
+ }
+
+ /// public static long[][] org.swiftjava.SwiftTest.long2dArrayFieldStatic
+
+ private static var long2dArrayFieldStatic_FieldID: jfieldID?
+
+ public static var long2dArrayFieldStatic: [[Int64]]! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "long2dArrayFieldStatic", fieldType: "[[J", fieldCache: &long2dArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ return JNIType.toSwift( type: [[Int64]].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetStaticObjectField( fieldName: "long2dArrayFieldStatic", fieldType: "[[J", fieldCache: &long2dArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public static long[] org.swiftjava.SwiftTest.longArrayFieldStatic
+
+ private static var longArrayFieldStatic_FieldID: jfieldID?
+
+ public static var longArrayFieldStatic: [Int64]! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "longArrayFieldStatic", fieldType: "[J", fieldCache: &longArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ return JNIType.toSwift( type: [Int64].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetStaticObjectField( fieldName: "longArrayFieldStatic", fieldType: "[J", fieldCache: &longArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public static long org.swiftjava.SwiftTest.longFieldStatic
+
+ private static var longFieldStatic_FieldID: jfieldID?
+
+ public static var longFieldStatic: Int64 {
+ get {
+ let __value = JNIField.GetStaticLongField( fieldName: "longFieldStatic", fieldType: "J", fieldCache: &longFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ return __value
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = jvalue( j: newValue )
+ JNIField.SetStaticLongField( fieldName: "longFieldStatic", fieldType: "J", fieldCache: &longFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.j, locals: &__locals )
+ }
+ }
+
+ /// public static short[][] org.swiftjava.SwiftTest.short2dArrayFieldStatic
+
+ private static var short2dArrayFieldStatic_FieldID: jfieldID?
+
+ public static var short2dArrayFieldStatic: [[Int16]]! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "short2dArrayFieldStatic", fieldType: "[[S", fieldCache: &short2dArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ return JNIType.toSwift( type: [[Int16]].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetStaticObjectField( fieldName: "short2dArrayFieldStatic", fieldType: "[[S", fieldCache: &short2dArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public static short[] org.swiftjava.SwiftTest.shortArrayFieldStatic
+
+ private static var shortArrayFieldStatic_FieldID: jfieldID?
+
+ public static var shortArrayFieldStatic: [Int16]! {
+ get {
+ let __value = JNIField.GetStaticObjectField( fieldName: "shortArrayFieldStatic", fieldType: "[S", fieldCache: &shortArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ return JNIType.toSwift( type: [Int16].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetStaticObjectField( fieldName: "shortArrayFieldStatic", fieldType: "[S", fieldCache: &shortArrayFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public static short org.swiftjava.SwiftTest.shortFieldStatic
+
+ private static var shortFieldStatic_FieldID: jfieldID?
+
+ public static var shortFieldStatic: Int16 {
+ get {
+ let __value = JNIField.GetStaticShortField( fieldName: "shortFieldStatic", fieldType: "S", fieldCache: &shortFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass )
+ return __value
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = jvalue( s: newValue )
+ JNIField.SetStaticShortField( fieldName: "shortFieldStatic", fieldType: "S", fieldCache: &shortFieldStatic_FieldID, className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, value: __value.s, locals: &__locals )
+ }
+ }
+
+ /// public java.lang.String[][] org.swiftjava.SwiftTest.String2dArrayField
+
+ private static var String2dArrayField_FieldID: jfieldID?
+
+ open var String2dArrayField: [[String]]! {
+ get {
+ let __value = JNIField.GetObjectField( fieldName: "String2dArrayField", fieldType: "[[Ljava/lang/String;", fieldCache: &SwiftTest.String2dArrayField_FieldID, object: javaObject )
+ return JNIType.toSwift( type: [[String]].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetObjectField( fieldName: "String2dArrayField", fieldType: "[[Ljava/lang/String;", fieldCache: &SwiftTest.String2dArrayField_FieldID, object: javaObject, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public java.lang.String[] org.swiftjava.SwiftTest.StringArrayField
+
+ private static var StringArrayField_FieldID: jfieldID?
+
+ open var StringArrayField: [String]! {
+ get {
+ let __value = JNIField.GetObjectField( fieldName: "StringArrayField", fieldType: "[Ljava/lang/String;", fieldCache: &SwiftTest.StringArrayField_FieldID, object: javaObject )
+ return JNIType.toSwift( type: [String].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetObjectField( fieldName: "StringArrayField", fieldType: "[Ljava/lang/String;", fieldCache: &SwiftTest.StringArrayField_FieldID, object: javaObject, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public java.lang.String org.swiftjava.SwiftTest.StringField
+
+ private static var StringField_FieldID: jfieldID?
+
+ open var StringField: String! {
+ get {
+ let __value = JNIField.GetObjectField( fieldName: "StringField", fieldType: "Ljava/lang/String;", fieldCache: &SwiftTest.StringField_FieldID, object: javaObject )
+ defer { JNI.DeleteLocalRef( __value ) }
+ return __value != nil ? String( javaObject: __value ) : nil
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetObjectField( fieldName: "StringField", fieldType: "Ljava/lang/String;", fieldCache: &SwiftTest.StringField_FieldID, object: javaObject, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener[][] org.swiftjava.SwiftTest.TestListener2dArrayField
+
+ private static var TestListener2dArrayField_FieldID: jfieldID?
+
+ open var TestListener2dArrayField: [[/* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol]]! {
+ get {
+ let __value = JNIField.GetObjectField( fieldName: "TestListener2dArrayField", fieldType: "[[Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", fieldCache: &SwiftTest.TestListener2dArrayField_FieldID, object: javaObject )
+ return JNIType.toSwift( type: [[/* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocolForward]].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetObjectField( fieldName: "TestListener2dArrayField", fieldType: "[[Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", fieldCache: &SwiftTest.TestListener2dArrayField_FieldID, object: javaObject, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener[] org.swiftjava.SwiftTest.TestListenerArrayField
+
+ private static var TestListenerArrayField_FieldID: jfieldID?
+
+ open var TestListenerArrayField: [/* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol]! {
+ get {
+ let __value = JNIField.GetObjectField( fieldName: "TestListenerArrayField", fieldType: "[Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", fieldCache: &SwiftTest.TestListenerArrayField_FieldID, object: javaObject )
+ return JNIType.toSwift( type: [/* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocolForward].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetObjectField( fieldName: "TestListenerArrayField", fieldType: "[Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", fieldCache: &SwiftTest.TestListenerArrayField_FieldID, object: javaObject, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener org.swiftjava.SwiftTest.TestListenerField
+
+ private static var TestListenerField_FieldID: jfieldID?
+
+ open var TestListenerField: /* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol! {
+ get {
+ let __value = JNIField.GetObjectField( fieldName: "TestListenerField", fieldType: "Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", fieldCache: &SwiftTest.TestListenerField_FieldID, object: javaObject )
+ defer { JNI.DeleteLocalRef( __value ) }
+ return __value != nil ? /* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocolForward( javaObject: __value ) : nil
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetObjectField( fieldName: "TestListenerField", fieldType: "Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", fieldCache: &SwiftTest.TestListenerField_FieldID, object: javaObject, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public boolean[][] org.swiftjava.SwiftTest.boolean2dArrayField
+
+ private static var boolean2dArrayField_FieldID: jfieldID?
+
+ open var boolean2dArrayField: [[Bool]]! {
+ get {
+ let __value = JNIField.GetObjectField( fieldName: "boolean2dArrayField", fieldType: "[[Z", fieldCache: &SwiftTest.boolean2dArrayField_FieldID, object: javaObject )
+ return JNIType.toSwift( type: [[Bool]].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetObjectField( fieldName: "boolean2dArrayField", fieldType: "[[Z", fieldCache: &SwiftTest.boolean2dArrayField_FieldID, object: javaObject, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public boolean[] org.swiftjava.SwiftTest.booleanArrayField
+
+ private static var booleanArrayField_FieldID: jfieldID?
+
+ open var booleanArrayField: [Bool]! {
+ get {
+ let __value = JNIField.GetObjectField( fieldName: "booleanArrayField", fieldType: "[Z", fieldCache: &SwiftTest.booleanArrayField_FieldID, object: javaObject )
+ return JNIType.toSwift( type: [Bool].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetObjectField( fieldName: "booleanArrayField", fieldType: "[Z", fieldCache: &SwiftTest.booleanArrayField_FieldID, object: javaObject, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public boolean org.swiftjava.SwiftTest.booleanField
+
+ private static var booleanField_FieldID: jfieldID?
+
+ open var booleanField: Bool {
+ get {
+ let __value = JNIField.GetBooleanField( fieldName: "booleanField", fieldType: "Z", fieldCache: &SwiftTest.booleanField_FieldID, object: javaObject )
+ return __value != jboolean(JNI_FALSE)
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = jvalue( z: jboolean(newValue ? JNI_TRUE : JNI_FALSE) )
+ JNIField.SetBooleanField( fieldName: "booleanField", fieldType: "Z", fieldCache: &SwiftTest.booleanField_FieldID, object: javaObject, value: __value.z, locals: &__locals )
+ }
+ }
+
+ /// public byte[][] org.swiftjava.SwiftTest.byte2dArrayField
+
+ private static var byte2dArrayField_FieldID: jfieldID?
+
+ open var byte2dArrayField: [[Int8]]! {
+ get {
+ let __value = JNIField.GetObjectField( fieldName: "byte2dArrayField", fieldType: "[[B", fieldCache: &SwiftTest.byte2dArrayField_FieldID, object: javaObject )
+ return JNIType.toSwift( type: [[Int8]].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetObjectField( fieldName: "byte2dArrayField", fieldType: "[[B", fieldCache: &SwiftTest.byte2dArrayField_FieldID, object: javaObject, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public byte[] org.swiftjava.SwiftTest.byteArrayField
+
+ private static var byteArrayField_FieldID: jfieldID?
+
+ open var byteArrayField: [Int8]! {
+ get {
+ let __value = JNIField.GetObjectField( fieldName: "byteArrayField", fieldType: "[B", fieldCache: &SwiftTest.byteArrayField_FieldID, object: javaObject )
+ return JNIType.toSwift( type: [Int8].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetObjectField( fieldName: "byteArrayField", fieldType: "[B", fieldCache: &SwiftTest.byteArrayField_FieldID, object: javaObject, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public byte org.swiftjava.SwiftTest.byteField
+
+ private static var byteField_FieldID: jfieldID?
+
+ open var byteField: Int8 {
+ get {
+ let __value = JNIField.GetByteField( fieldName: "byteField", fieldType: "B", fieldCache: &SwiftTest.byteField_FieldID, object: javaObject )
+ return __value
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = jvalue( b: newValue )
+ JNIField.SetByteField( fieldName: "byteField", fieldType: "B", fieldCache: &SwiftTest.byteField_FieldID, object: javaObject, value: __value.b, locals: &__locals )
+ }
+ }
+
+ /// public char[][] org.swiftjava.SwiftTest.char2dArrayField
+
+ private static var char2dArrayField_FieldID: jfieldID?
+
+ open var char2dArrayField: [[UInt16]]! {
+ get {
+ let __value = JNIField.GetObjectField( fieldName: "char2dArrayField", fieldType: "[[C", fieldCache: &SwiftTest.char2dArrayField_FieldID, object: javaObject )
+ return JNIType.toSwift( type: [[UInt16]].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetObjectField( fieldName: "char2dArrayField", fieldType: "[[C", fieldCache: &SwiftTest.char2dArrayField_FieldID, object: javaObject, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public char[] org.swiftjava.SwiftTest.charArrayField
+
+ private static var charArrayField_FieldID: jfieldID?
+
+ open var charArrayField: [UInt16]! {
+ get {
+ let __value = JNIField.GetObjectField( fieldName: "charArrayField", fieldType: "[C", fieldCache: &SwiftTest.charArrayField_FieldID, object: javaObject )
+ return JNIType.toSwift( type: [UInt16].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetObjectField( fieldName: "charArrayField", fieldType: "[C", fieldCache: &SwiftTest.charArrayField_FieldID, object: javaObject, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public char org.swiftjava.SwiftTest.charField
+
+ private static var charField_FieldID: jfieldID?
+
+ open var charField: UInt16 {
+ get {
+ let __value = JNIField.GetCharField( fieldName: "charField", fieldType: "C", fieldCache: &SwiftTest.charField_FieldID, object: javaObject )
+ return __value
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = jvalue( c: newValue )
+ JNIField.SetCharField( fieldName: "charField", fieldType: "C", fieldCache: &SwiftTest.charField_FieldID, object: javaObject, value: __value.c, locals: &__locals )
+ }
+ }
+
+ /// public double[][] org.swiftjava.SwiftTest.double2dArrayField
+
+ private static var double2dArrayField_FieldID: jfieldID?
+
+ open var double2dArrayField: [[Double]]! {
+ get {
+ let __value = JNIField.GetObjectField( fieldName: "double2dArrayField", fieldType: "[[D", fieldCache: &SwiftTest.double2dArrayField_FieldID, object: javaObject )
+ return JNIType.toSwift( type: [[Double]].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetObjectField( fieldName: "double2dArrayField", fieldType: "[[D", fieldCache: &SwiftTest.double2dArrayField_FieldID, object: javaObject, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public double[] org.swiftjava.SwiftTest.doubleArrayField
+
+ private static var doubleArrayField_FieldID: jfieldID?
+
+ open var doubleArrayField: [Double]! {
+ get {
+ let __value = JNIField.GetObjectField( fieldName: "doubleArrayField", fieldType: "[D", fieldCache: &SwiftTest.doubleArrayField_FieldID, object: javaObject )
+ return JNIType.toSwift( type: [Double].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetObjectField( fieldName: "doubleArrayField", fieldType: "[D", fieldCache: &SwiftTest.doubleArrayField_FieldID, object: javaObject, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public double org.swiftjava.SwiftTest.doubleField
+
+ private static var doubleField_FieldID: jfieldID?
+
+ open var doubleField: Double {
+ get {
+ let __value = JNIField.GetDoubleField( fieldName: "doubleField", fieldType: "D", fieldCache: &SwiftTest.doubleField_FieldID, object: javaObject )
+ return __value
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = jvalue( d: newValue )
+ JNIField.SetDoubleField( fieldName: "doubleField", fieldType: "D", fieldCache: &SwiftTest.doubleField_FieldID, object: javaObject, value: __value.d, locals: &__locals )
+ }
+ }
+
+ /// public float[][] org.swiftjava.SwiftTest.float2dArrayField
+
+ private static var float2dArrayField_FieldID: jfieldID?
+
+ open var float2dArrayField: [[Float]]! {
+ get {
+ let __value = JNIField.GetObjectField( fieldName: "float2dArrayField", fieldType: "[[F", fieldCache: &SwiftTest.float2dArrayField_FieldID, object: javaObject )
+ return JNIType.toSwift( type: [[Float]].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetObjectField( fieldName: "float2dArrayField", fieldType: "[[F", fieldCache: &SwiftTest.float2dArrayField_FieldID, object: javaObject, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public float[] org.swiftjava.SwiftTest.floatArrayField
+
+ private static var floatArrayField_FieldID: jfieldID?
+
+ open var floatArrayField: [Float]! {
+ get {
+ let __value = JNIField.GetObjectField( fieldName: "floatArrayField", fieldType: "[F", fieldCache: &SwiftTest.floatArrayField_FieldID, object: javaObject )
+ return JNIType.toSwift( type: [Float].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetObjectField( fieldName: "floatArrayField", fieldType: "[F", fieldCache: &SwiftTest.floatArrayField_FieldID, object: javaObject, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public float org.swiftjava.SwiftTest.floatField
+
+ private static var floatField_FieldID: jfieldID?
+
+ open var floatField: Float {
+ get {
+ let __value = JNIField.GetFloatField( fieldName: "floatField", fieldType: "F", fieldCache: &SwiftTest.floatField_FieldID, object: javaObject )
+ return __value
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = jvalue( f: newValue )
+ JNIField.SetFloatField( fieldName: "floatField", fieldType: "F", fieldCache: &SwiftTest.floatField_FieldID, object: javaObject, value: __value.f, locals: &__locals )
+ }
+ }
+
+ /// public int[][] org.swiftjava.SwiftTest.int2dArrayField
+
+ private static var int2dArrayField_FieldID: jfieldID?
+
+ open var int2dArrayField: [[Int32]]! {
+ get {
+ let __value = JNIField.GetObjectField( fieldName: "int2dArrayField", fieldType: "[[I", fieldCache: &SwiftTest.int2dArrayField_FieldID, object: javaObject )
+ return JNIType.toSwift( type: [[Int32]].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetObjectField( fieldName: "int2dArrayField", fieldType: "[[I", fieldCache: &SwiftTest.int2dArrayField_FieldID, object: javaObject, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public int[] org.swiftjava.SwiftTest.intArrayField
+
+ private static var intArrayField_FieldID: jfieldID?
+
+ open var intArrayField: [Int32]! {
+ get {
+ let __value = JNIField.GetObjectField( fieldName: "intArrayField", fieldType: "[I", fieldCache: &SwiftTest.intArrayField_FieldID, object: javaObject )
+ return JNIType.toSwift( type: [Int32].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetObjectField( fieldName: "intArrayField", fieldType: "[I", fieldCache: &SwiftTest.intArrayField_FieldID, object: javaObject, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public int org.swiftjava.SwiftTest.intField
+
+ private static var intField_FieldID: jfieldID?
+
+ open var intField: Int {
+ get {
+ let __value = JNIField.GetIntField( fieldName: "intField", fieldType: "I", fieldCache: &SwiftTest.intField_FieldID, object: javaObject )
+ return Int(__value)
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = jvalue( i: jint(newValue) )
+ JNIField.SetIntField( fieldName: "intField", fieldType: "I", fieldCache: &SwiftTest.intField_FieldID, object: javaObject, value: __value.i, locals: &__locals )
+ }
+ }
+
+ /// public long[][] org.swiftjava.SwiftTest.long2dArrayField
+
+ private static var long2dArrayField_FieldID: jfieldID?
+
+ open var long2dArrayField: [[Int64]]! {
+ get {
+ let __value = JNIField.GetObjectField( fieldName: "long2dArrayField", fieldType: "[[J", fieldCache: &SwiftTest.long2dArrayField_FieldID, object: javaObject )
+ return JNIType.toSwift( type: [[Int64]].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetObjectField( fieldName: "long2dArrayField", fieldType: "[[J", fieldCache: &SwiftTest.long2dArrayField_FieldID, object: javaObject, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public long[] org.swiftjava.SwiftTest.longArrayField
+
+ private static var longArrayField_FieldID: jfieldID?
+
+ open var longArrayField: [Int64]! {
+ get {
+ let __value = JNIField.GetObjectField( fieldName: "longArrayField", fieldType: "[J", fieldCache: &SwiftTest.longArrayField_FieldID, object: javaObject )
+ return JNIType.toSwift( type: [Int64].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetObjectField( fieldName: "longArrayField", fieldType: "[J", fieldCache: &SwiftTest.longArrayField_FieldID, object: javaObject, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public long org.swiftjava.SwiftTest.longField
+
+ private static var longField_FieldID: jfieldID?
+
+ open var longField: Int64 {
+ get {
+ let __value = JNIField.GetLongField( fieldName: "longField", fieldType: "J", fieldCache: &SwiftTest.longField_FieldID, object: javaObject )
+ return __value
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = jvalue( j: newValue )
+ JNIField.SetLongField( fieldName: "longField", fieldType: "J", fieldCache: &SwiftTest.longField_FieldID, object: javaObject, value: __value.j, locals: &__locals )
+ }
+ }
+
+ /// public com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener org.swiftjava.SwiftTest.loopback
+
+ private static var loopback_FieldID: jfieldID?
+
+ open var loopback: /* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol! {
+ get {
+ let __value = JNIField.GetObjectField( fieldName: "loopback", fieldType: "Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", fieldCache: &SwiftTest.loopback_FieldID, object: javaObject )
+ defer { JNI.DeleteLocalRef( __value ) }
+ return __value != nil ? /* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocolForward( javaObject: __value ) : nil
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetObjectField( fieldName: "loopback", fieldType: "Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", fieldCache: &SwiftTest.loopback_FieldID, object: javaObject, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public short[][] org.swiftjava.SwiftTest.short2dArrayField
+
+ private static var short2dArrayField_FieldID: jfieldID?
+
+ open var short2dArrayField: [[Int16]]! {
+ get {
+ let __value = JNIField.GetObjectField( fieldName: "short2dArrayField", fieldType: "[[S", fieldCache: &SwiftTest.short2dArrayField_FieldID, object: javaObject )
+ return JNIType.toSwift( type: [[Int16]].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetObjectField( fieldName: "short2dArrayField", fieldType: "[[S", fieldCache: &SwiftTest.short2dArrayField_FieldID, object: javaObject, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public short[] org.swiftjava.SwiftTest.shortArrayField
+
+ private static var shortArrayField_FieldID: jfieldID?
+
+ open var shortArrayField: [Int16]! {
+ get {
+ let __value = JNIField.GetObjectField( fieldName: "shortArrayField", fieldType: "[S", fieldCache: &SwiftTest.shortArrayField_FieldID, object: javaObject )
+ return JNIType.toSwift( type: [Int16].self, from: __value )
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = JNIType.toJava( value: newValue, locals: &__locals )
+ JNIField.SetObjectField( fieldName: "shortArrayField", fieldType: "[S", fieldCache: &SwiftTest.shortArrayField_FieldID, object: javaObject, value: __value.l, locals: &__locals )
+ }
+ }
+
+ /// public short org.swiftjava.SwiftTest.shortField
+
+ private static var shortField_FieldID: jfieldID?
+
+ open var shortField: Int16 {
+ get {
+ let __value = JNIField.GetShortField( fieldName: "shortField", fieldType: "S", fieldCache: &SwiftTest.shortField_FieldID, object: javaObject )
+ return __value
+ }
+ set(newValue) {
+ var __locals = [jobject]()
+ let __value = jvalue( s: newValue )
+ JNIField.SetShortField( fieldName: "shortField", fieldType: "S", fieldCache: &SwiftTest.shortField_FieldID, object: javaObject, value: __value.s, locals: &__locals )
+ }
+ }
+
+ /// public org.swiftjava.SwiftTest()
+
+ 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: "org/swiftjava/SwiftTest", classCache: &SwiftTest.SwiftTestJNIClass, methodSig: "()V", methodCache: &SwiftTest.new_MethodID_1, args: &__args, locals: &__locals )
+ self.init( javaObject: __object )
+ JNI.DeleteLocalRef( __object )
+ }
+
+ /// public static java.lang.String[][] org.swiftjava.SwiftTest.String2dArrayMethodStatic(java.lang.String[][])
+
+ private static var String2dArrayMethodStatic_MethodID_2: jmethodID?
+
+ open class func String2dArrayMethodStatic( arg0: [[String]]? ) -> [[String]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg0, locals: &__locals )
+ let __return = JNIMethod.CallStaticObjectMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "String2dArrayMethodStatic", methodSig: "([[Ljava/lang/String;)[[Ljava/lang/String;", methodCache: &String2dArrayMethodStatic_MethodID_2, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[String]].self, from: __return )
+ }
+
+ open class func String2dArrayMethodStatic( _ _arg0: [[String]]? ) -> [[String]]! {
+ return String2dArrayMethodStatic( arg0: _arg0 )
+ }
+
+ /// public static java.lang.String[] org.swiftjava.SwiftTest.StringArrayMethodStatic(java.lang.String[])
+
+ private static var StringArrayMethodStatic_MethodID_3: jmethodID?
+
+ open class func StringArrayMethodStatic( arg0: [String]? ) -> [String]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg0, locals: &__locals )
+ let __return = JNIMethod.CallStaticObjectMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "StringArrayMethodStatic", methodSig: "([Ljava/lang/String;)[Ljava/lang/String;", methodCache: &StringArrayMethodStatic_MethodID_3, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [String].self, from: __return )
+ }
+
+ open class func StringArrayMethodStatic( _ _arg0: [String]? ) -> [String]! {
+ return StringArrayMethodStatic( arg0: _arg0 )
+ }
+
+ /// public static java.lang.String org.swiftjava.SwiftTest.StringMethodStatic(java.lang.String)
+
+ private static var StringMethodStatic_MethodID_4: jmethodID?
+
+ open class func StringMethodStatic( arg0: String? ) -> String! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg0, locals: &__locals )
+ let __return = JNIMethod.CallStaticObjectMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "StringMethodStatic", methodSig: "(Ljava/lang/String;)Ljava/lang/String;", methodCache: &StringMethodStatic_MethodID_4, args: &__args, locals: &__locals )
+ defer { JNI.DeleteLocalRef( __return ) }
+ return __return != nil ? String( javaObject: __return ) : nil
+ }
+
+ open class func StringMethodStatic( _ _arg0: String? ) -> String! {
+ return StringMethodStatic( arg0: _arg0 )
+ }
+
+ /// public static com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener[][] org.swiftjava.SwiftTest.TestListener2dArrayMethodStatic(com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener[][])
+
+ private static var TestListener2dArrayMethodStatic_MethodID_5: jmethodID?
+
+ open class func TestListener2dArrayMethodStatic( arg0: [[/* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol]]? ) -> [[/* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg0, locals: &__locals )
+ let __return = JNIMethod.CallStaticObjectMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "TestListener2dArrayMethodStatic", methodSig: "([[Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;)[[Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", methodCache: &TestListener2dArrayMethodStatic_MethodID_5, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[/* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocolForward]].self, from: __return )
+ }
+
+ open class func TestListener2dArrayMethodStatic( _ _arg0: [[/* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol]]? ) -> [[/* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol]]! {
+ return TestListener2dArrayMethodStatic( arg0: _arg0 )
+ }
+
+ /// public static com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener[] org.swiftjava.SwiftTest.TestListenerArrayMethodStatic(com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener[])
+
+ private static var TestListenerArrayMethodStatic_MethodID_6: jmethodID?
+
+ open class func TestListenerArrayMethodStatic( arg0: [/* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol]? ) -> [/* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg0, locals: &__locals )
+ let __return = JNIMethod.CallStaticObjectMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "TestListenerArrayMethodStatic", methodSig: "([Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;)[Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", methodCache: &TestListenerArrayMethodStatic_MethodID_6, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [/* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocolForward].self, from: __return )
+ }
+
+ open class func TestListenerArrayMethodStatic( _ _arg0: [/* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol]? ) -> [/* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol]! {
+ return TestListenerArrayMethodStatic( arg0: _arg0 )
+ }
+
+ /// public static com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener org.swiftjava.SwiftTest.TestListenerMethodStatic(com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener)
+
+ private static var TestListenerMethodStatic_MethodID_7: jmethodID?
+
+ open class func TestListenerMethodStatic( arg0: /* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol? ) -> /* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg0, locals: &__locals )
+ let __return = JNIMethod.CallStaticObjectMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "TestListenerMethodStatic", methodSig: "(Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;)Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", methodCache: &TestListenerMethodStatic_MethodID_7, args: &__args, locals: &__locals )
+ defer { JNI.DeleteLocalRef( __return ) }
+ return __return != nil ? /* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocolForward( javaObject: __return ) : nil
+ }
+
+ open class func TestListenerMethodStatic( _ _arg0: /* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol? ) -> /* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol! {
+ return TestListenerMethodStatic( arg0: _arg0 )
+ }
+
+ /// public static boolean[][] org.swiftjava.SwiftTest.boolean2dArrayMethodStatic(boolean[][])
+
+ private static var boolean2dArrayMethodStatic_MethodID_8: jmethodID?
+
+ open class func boolean2dArrayMethodStatic( arg0: [[Bool]]? ) -> [[Bool]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg0, locals: &__locals )
+ let __return = JNIMethod.CallStaticObjectMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "boolean2dArrayMethodStatic", methodSig: "([[Z)[[Z", methodCache: &boolean2dArrayMethodStatic_MethodID_8, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[Bool]].self, from: __return )
+ }
+
+ open class func boolean2dArrayMethodStatic( _ _arg0: [[Bool]]? ) -> [[Bool]]! {
+ return boolean2dArrayMethodStatic( arg0: _arg0 )
+ }
+
+ /// public static boolean[] org.swiftjava.SwiftTest.booleanArrayMethodStatic(boolean[])
+
+ private static var booleanArrayMethodStatic_MethodID_9: jmethodID?
+
+ open class func booleanArrayMethodStatic( arg0: [Bool]? ) -> [Bool]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg0, locals: &__locals )
+ let __return = JNIMethod.CallStaticObjectMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "booleanArrayMethodStatic", methodSig: "([Z)[Z", methodCache: &booleanArrayMethodStatic_MethodID_9, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [Bool].self, from: __return )
+ }
+
+ open class func booleanArrayMethodStatic( _ _arg0: [Bool]? ) -> [Bool]! {
+ return booleanArrayMethodStatic( arg0: _arg0 )
+ }
+
+ /// public static boolean org.swiftjava.SwiftTest.booleanMethodStatic(boolean)
+
+ private static var booleanMethodStatic_MethodID_10: jmethodID?
+
+ open class func booleanMethodStatic( arg0: Bool ) -> Bool {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( z: jboolean(arg0 ? JNI_TRUE : JNI_FALSE) )
+ let __return = JNIMethod.CallStaticBooleanMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "booleanMethodStatic", methodSig: "(Z)Z", methodCache: &booleanMethodStatic_MethodID_10, args: &__args, locals: &__locals )
+ return __return != jboolean(JNI_FALSE)
+ }
+
+ open class func booleanMethodStatic( _ _arg0: Bool ) -> Bool {
+ return booleanMethodStatic( arg0: _arg0 )
+ }
+
+ /// public static byte[][] org.swiftjava.SwiftTest.byte2dArrayMethodStatic(byte[][])
+
+ private static var byte2dArrayMethodStatic_MethodID_11: jmethodID?
+
+ open class func byte2dArrayMethodStatic( arg0: [[Int8]]? ) -> [[Int8]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg0, locals: &__locals )
+ let __return = JNIMethod.CallStaticObjectMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "byte2dArrayMethodStatic", methodSig: "([[B)[[B", methodCache: &byte2dArrayMethodStatic_MethodID_11, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[Int8]].self, from: __return )
+ }
+
+ open class func byte2dArrayMethodStatic( _ _arg0: [[Int8]]? ) -> [[Int8]]! {
+ return byte2dArrayMethodStatic( arg0: _arg0 )
+ }
+
+ /// public static byte[] org.swiftjava.SwiftTest.byteArrayMethodStatic(byte[])
+
+ private static var byteArrayMethodStatic_MethodID_12: jmethodID?
+
+ open class func byteArrayMethodStatic( arg0: [Int8]? ) -> [Int8]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg0, locals: &__locals )
+ let __return = JNIMethod.CallStaticObjectMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "byteArrayMethodStatic", methodSig: "([B)[B", methodCache: &byteArrayMethodStatic_MethodID_12, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [Int8].self, from: __return )
+ }
+
+ open class func byteArrayMethodStatic( _ _arg0: [Int8]? ) -> [Int8]! {
+ return byteArrayMethodStatic( arg0: _arg0 )
+ }
+
+ /// public static byte org.swiftjava.SwiftTest.byteMethodStatic(byte)
+
+ private static var byteMethodStatic_MethodID_13: jmethodID?
+
+ open class func byteMethodStatic( arg0: Int8 ) -> Int8 {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( b: arg0 )
+ let __return = JNIMethod.CallStaticByteMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "byteMethodStatic", methodSig: "(B)B", methodCache: &byteMethodStatic_MethodID_13, args: &__args, locals: &__locals )
+ return __return
+ }
+
+ open class func byteMethodStatic( _ _arg0: Int8 ) -> Int8 {
+ return byteMethodStatic( arg0: _arg0 )
+ }
+
+ /// public static char[][] org.swiftjava.SwiftTest.char2dArrayMethodStatic(char[][])
+
+ private static var char2dArrayMethodStatic_MethodID_14: jmethodID?
+
+ open class func char2dArrayMethodStatic( arg0: [[UInt16]]? ) -> [[UInt16]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg0, locals: &__locals )
+ let __return = JNIMethod.CallStaticObjectMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "char2dArrayMethodStatic", methodSig: "([[C)[[C", methodCache: &char2dArrayMethodStatic_MethodID_14, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[UInt16]].self, from: __return )
+ }
+
+ open class func char2dArrayMethodStatic( _ _arg0: [[UInt16]]? ) -> [[UInt16]]! {
+ return char2dArrayMethodStatic( arg0: _arg0 )
+ }
+
+ /// public static char[] org.swiftjava.SwiftTest.charArrayMethodStatic(char[])
+
+ private static var charArrayMethodStatic_MethodID_15: jmethodID?
+
+ open class func charArrayMethodStatic( arg0: [UInt16]? ) -> [UInt16]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg0, locals: &__locals )
+ let __return = JNIMethod.CallStaticObjectMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "charArrayMethodStatic", methodSig: "([C)[C", methodCache: &charArrayMethodStatic_MethodID_15, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [UInt16].self, from: __return )
+ }
+
+ open class func charArrayMethodStatic( _ _arg0: [UInt16]? ) -> [UInt16]! {
+ return charArrayMethodStatic( arg0: _arg0 )
+ }
+
+ /// public static char org.swiftjava.SwiftTest.charMethodStatic(char)
+
+ private static var charMethodStatic_MethodID_16: jmethodID?
+
+ open class func charMethodStatic( arg0: UInt16 ) -> UInt16 {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( c: arg0 )
+ let __return = JNIMethod.CallStaticCharMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "charMethodStatic", methodSig: "(C)C", methodCache: &charMethodStatic_MethodID_16, args: &__args, locals: &__locals )
+ return __return
+ }
+
+ open class func charMethodStatic( _ _arg0: UInt16 ) -> UInt16 {
+ return charMethodStatic( arg0: _arg0 )
+ }
+
+ /// public static double[][] org.swiftjava.SwiftTest.double2dArrayMethodStatic(double[][])
+
+ private static var double2dArrayMethodStatic_MethodID_17: jmethodID?
+
+ open class func double2dArrayMethodStatic( arg0: [[Double]]? ) -> [[Double]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg0, locals: &__locals )
+ let __return = JNIMethod.CallStaticObjectMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "double2dArrayMethodStatic", methodSig: "([[D)[[D", methodCache: &double2dArrayMethodStatic_MethodID_17, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[Double]].self, from: __return )
+ }
+
+ open class func double2dArrayMethodStatic( _ _arg0: [[Double]]? ) -> [[Double]]! {
+ return double2dArrayMethodStatic( arg0: _arg0 )
+ }
+
+ /// public static double[] org.swiftjava.SwiftTest.doubleArrayMethodStatic(double[])
+
+ private static var doubleArrayMethodStatic_MethodID_18: jmethodID?
+
+ open class func doubleArrayMethodStatic( arg0: [Double]? ) -> [Double]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg0, locals: &__locals )
+ let __return = JNIMethod.CallStaticObjectMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "doubleArrayMethodStatic", methodSig: "([D)[D", methodCache: &doubleArrayMethodStatic_MethodID_18, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [Double].self, from: __return )
+ }
+
+ open class func doubleArrayMethodStatic( _ _arg0: [Double]? ) -> [Double]! {
+ return doubleArrayMethodStatic( arg0: _arg0 )
+ }
+
+ /// public static double org.swiftjava.SwiftTest.doubleMethodStatic(double)
+
+ private static var doubleMethodStatic_MethodID_19: jmethodID?
+
+ open class func doubleMethodStatic( arg0: Double ) -> Double {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( d: arg0 )
+ let __return = JNIMethod.CallStaticDoubleMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "doubleMethodStatic", methodSig: "(D)D", methodCache: &doubleMethodStatic_MethodID_19, args: &__args, locals: &__locals )
+ return __return
+ }
+
+ open class func doubleMethodStatic( _ _arg0: Double ) -> Double {
+ return doubleMethodStatic( arg0: _arg0 )
+ }
+
+ /// public static float[][] org.swiftjava.SwiftTest.float2dArrayMethodStatic(float[][])
+
+ private static var float2dArrayMethodStatic_MethodID_20: jmethodID?
+
+ open class func float2dArrayMethodStatic( arg0: [[Float]]? ) -> [[Float]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg0, locals: &__locals )
+ let __return = JNIMethod.CallStaticObjectMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "float2dArrayMethodStatic", methodSig: "([[F)[[F", methodCache: &float2dArrayMethodStatic_MethodID_20, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[Float]].self, from: __return )
+ }
+
+ open class func float2dArrayMethodStatic( _ _arg0: [[Float]]? ) -> [[Float]]! {
+ return float2dArrayMethodStatic( arg0: _arg0 )
+ }
+
+ /// public static float[] org.swiftjava.SwiftTest.floatArrayMethodStatic(float[])
+
+ private static var floatArrayMethodStatic_MethodID_21: jmethodID?
+
+ open class func floatArrayMethodStatic( arg0: [Float]? ) -> [Float]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg0, locals: &__locals )
+ let __return = JNIMethod.CallStaticObjectMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "floatArrayMethodStatic", methodSig: "([F)[F", methodCache: &floatArrayMethodStatic_MethodID_21, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [Float].self, from: __return )
+ }
+
+ open class func floatArrayMethodStatic( _ _arg0: [Float]? ) -> [Float]! {
+ return floatArrayMethodStatic( arg0: _arg0 )
+ }
+
+ /// public static float org.swiftjava.SwiftTest.floatMethodStatic(float)
+
+ private static var floatMethodStatic_MethodID_22: jmethodID?
+
+ open class func floatMethodStatic( arg0: Float ) -> Float {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( f: arg0 )
+ let __return = JNIMethod.CallStaticFloatMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "floatMethodStatic", methodSig: "(F)F", methodCache: &floatMethodStatic_MethodID_22, args: &__args, locals: &__locals )
+ return __return
+ }
+
+ open class func floatMethodStatic( _ _arg0: Float ) -> Float {
+ return floatMethodStatic( arg0: _arg0 )
+ }
+
+ /// public static int[][] org.swiftjava.SwiftTest.int2dArrayMethodStatic(int[][])
+
+ private static var int2dArrayMethodStatic_MethodID_23: jmethodID?
+
+ open class func int2dArrayMethodStatic( arg0: [[Int32]]? ) -> [[Int32]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg0, locals: &__locals )
+ let __return = JNIMethod.CallStaticObjectMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "int2dArrayMethodStatic", methodSig: "([[I)[[I", methodCache: &int2dArrayMethodStatic_MethodID_23, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[Int32]].self, from: __return )
+ }
+
+ open class func int2dArrayMethodStatic( _ _arg0: [[Int32]]? ) -> [[Int32]]! {
+ return int2dArrayMethodStatic( arg0: _arg0 )
+ }
+
+ /// public static int[] org.swiftjava.SwiftTest.intArrayMethodStatic(int[])
+
+ private static var intArrayMethodStatic_MethodID_24: jmethodID?
+
+ open class func intArrayMethodStatic( arg0: [Int32]? ) -> [Int32]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg0, locals: &__locals )
+ let __return = JNIMethod.CallStaticObjectMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "intArrayMethodStatic", methodSig: "([I)[I", methodCache: &intArrayMethodStatic_MethodID_24, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [Int32].self, from: __return )
+ }
+
+ open class func intArrayMethodStatic( _ _arg0: [Int32]? ) -> [Int32]! {
+ return intArrayMethodStatic( arg0: _arg0 )
+ }
+
+ /// public static int org.swiftjava.SwiftTest.intMethodStatic(int)
+
+ private static var intMethodStatic_MethodID_25: jmethodID?
+
+ open class func intMethodStatic( arg0: Int ) -> Int {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( i: jint(arg0) )
+ let __return = JNIMethod.CallStaticIntMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "intMethodStatic", methodSig: "(I)I", methodCache: &intMethodStatic_MethodID_25, args: &__args, locals: &__locals )
+ return Int(__return)
+ }
+
+ open class func intMethodStatic( _ _arg0: Int ) -> Int {
+ return intMethodStatic( arg0: _arg0 )
+ }
+
+ /// public static long[][] org.swiftjava.SwiftTest.long2dArrayMethodStatic(long[][])
+
+ private static var long2dArrayMethodStatic_MethodID_26: jmethodID?
+
+ open class func long2dArrayMethodStatic( arg0: [[Int64]]? ) -> [[Int64]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg0, locals: &__locals )
+ let __return = JNIMethod.CallStaticObjectMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "long2dArrayMethodStatic", methodSig: "([[J)[[J", methodCache: &long2dArrayMethodStatic_MethodID_26, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[Int64]].self, from: __return )
+ }
+
+ open class func long2dArrayMethodStatic( _ _arg0: [[Int64]]? ) -> [[Int64]]! {
+ return long2dArrayMethodStatic( arg0: _arg0 )
+ }
+
+ /// public static long[] org.swiftjava.SwiftTest.longArrayMethodStatic(long[])
+
+ private static var longArrayMethodStatic_MethodID_27: jmethodID?
+
+ open class func longArrayMethodStatic( arg0: [Int64]? ) -> [Int64]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg0, locals: &__locals )
+ let __return = JNIMethod.CallStaticObjectMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "longArrayMethodStatic", methodSig: "([J)[J", methodCache: &longArrayMethodStatic_MethodID_27, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [Int64].self, from: __return )
+ }
+
+ open class func longArrayMethodStatic( _ _arg0: [Int64]? ) -> [Int64]! {
+ return longArrayMethodStatic( arg0: _arg0 )
+ }
+
+ /// public static long org.swiftjava.SwiftTest.longMethodStatic(long)
+
+ private static var longMethodStatic_MethodID_28: jmethodID?
+
+ open class func longMethodStatic( arg0: Int64 ) -> Int64 {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( j: arg0 )
+ let __return = JNIMethod.CallStaticLongMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "longMethodStatic", methodSig: "(J)J", methodCache: &longMethodStatic_MethodID_28, args: &__args, locals: &__locals )
+ return __return
+ }
+
+ open class func longMethodStatic( _ _arg0: Int64 ) -> Int64 {
+ return longMethodStatic( arg0: _arg0 )
+ }
+
+ /// public static short[][] org.swiftjava.SwiftTest.short2dArrayMethodStatic(short[][])
+
+ private static var short2dArrayMethodStatic_MethodID_29: jmethodID?
+
+ open class func short2dArrayMethodStatic( arg0: [[Int16]]? ) -> [[Int16]]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg0, locals: &__locals )
+ let __return = JNIMethod.CallStaticObjectMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "short2dArrayMethodStatic", methodSig: "([[S)[[S", methodCache: &short2dArrayMethodStatic_MethodID_29, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[Int16]].self, from: __return )
+ }
+
+ open class func short2dArrayMethodStatic( _ _arg0: [[Int16]]? ) -> [[Int16]]! {
+ return short2dArrayMethodStatic( arg0: _arg0 )
+ }
+
+ /// public static short[] org.swiftjava.SwiftTest.shortArrayMethodStatic(short[])
+
+ private static var shortArrayMethodStatic_MethodID_30: jmethodID?
+
+ open class func shortArrayMethodStatic( arg0: [Int16]? ) -> [Int16]! {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = JNIType.toJava( value: arg0, locals: &__locals )
+ let __return = JNIMethod.CallStaticObjectMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "shortArrayMethodStatic", methodSig: "([S)[S", methodCache: &shortArrayMethodStatic_MethodID_30, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [Int16].self, from: __return )
+ }
+
+ open class func shortArrayMethodStatic( _ _arg0: [Int16]? ) -> [Int16]! {
+ return shortArrayMethodStatic( arg0: _arg0 )
+ }
+
+ /// public static short org.swiftjava.SwiftTest.shortMethodStatic(short)
+
+ private static var shortMethodStatic_MethodID_31: jmethodID?
+
+ open class func shortMethodStatic( arg0: Int16 ) -> Int16 {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( s: arg0 )
+ let __return = JNIMethod.CallStaticShortMethod( className: "org/swiftjava/SwiftTest", classCache: &SwiftTestJNIClass, methodName: "shortMethodStatic", methodSig: "(S)S", methodCache: &shortMethodStatic_MethodID_31, args: &__args, locals: &__locals )
+ return __return
+ }
+
+ open class func shortMethodStatic( _ _arg0: Int16 ) -> Int16 {
+ return shortMethodStatic( arg0: _arg0 )
+ }
+
+ /// public java.lang.String[][] org.swiftjava.SwiftTest.String2dArrayMethod(java.lang.String[][])
+
+ private static var String2dArrayMethod_MethodID_32: jmethodID?
+
+ open func String2dArrayMethod( arg0: [[String]]? ) -> [[String]]! {
+ 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: "String2dArrayMethod", methodSig: "([[Ljava/lang/String;)[[Ljava/lang/String;", methodCache: &SwiftTest.String2dArrayMethod_MethodID_32, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[String]].self, from: __return )
+ }
+
+ open func String2dArrayMethod( _ _arg0: [[String]]? ) -> [[String]]! {
+ return String2dArrayMethod( arg0: _arg0 )
+ }
+
+ /// public java.lang.String[] org.swiftjava.SwiftTest.StringArrayMethod(java.lang.String[])
+
+ private static var StringArrayMethod_MethodID_33: jmethodID?
+
+ open func StringArrayMethod( arg0: [String]? ) -> [String]! {
+ 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: "StringArrayMethod", methodSig: "([Ljava/lang/String;)[Ljava/lang/String;", methodCache: &SwiftTest.StringArrayMethod_MethodID_33, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [String].self, from: __return )
+ }
+
+ open func StringArrayMethod( _ _arg0: [String]? ) -> [String]! {
+ return StringArrayMethod( arg0: _arg0 )
+ }
+
+ /// public java.lang.String org.swiftjava.SwiftTest.StringMethod(java.lang.String)
+
+ private static var StringMethod_MethodID_34: jmethodID?
+
+ open func StringMethod( arg0: String? ) -> String! {
+ 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: "StringMethod", methodSig: "(Ljava/lang/String;)Ljava/lang/String;", methodCache: &SwiftTest.StringMethod_MethodID_34, args: &__args, locals: &__locals )
+ defer { JNI.DeleteLocalRef( __return ) }
+ return __return != nil ? String( javaObject: __return ) : nil
+ }
+
+ open func StringMethod( _ _arg0: String? ) -> String! {
+ return StringMethod( arg0: _arg0 )
+ }
+
+ /// public com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener[][] org.swiftjava.SwiftTest.TestListener2dArrayMethod(com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener[][])
+
+ private static var TestListener2dArrayMethod_MethodID_35: jmethodID?
+
+ open func TestListener2dArrayMethod( arg0: [[/* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol]]? ) -> [[/* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol]]! {
+ 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: "TestListener2dArrayMethod", methodSig: "([[Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;)[[Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", methodCache: &SwiftTest.TestListener2dArrayMethod_MethodID_35, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[/* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocolForward]].self, from: __return )
+ }
+
+ open func TestListener2dArrayMethod( _ _arg0: [[/* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol]]? ) -> [[/* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol]]! {
+ return TestListener2dArrayMethod( arg0: _arg0 )
+ }
+
+ /// public com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener[] org.swiftjava.SwiftTest.TestListenerArrayMethod(com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener[])
+
+ private static var TestListenerArrayMethod_MethodID_36: jmethodID?
+
+ open func TestListenerArrayMethod( arg0: [/* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol]? ) -> [/* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol]! {
+ 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: "TestListenerArrayMethod", methodSig: "([Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;)[Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", methodCache: &SwiftTest.TestListenerArrayMethod_MethodID_36, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [/* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocolForward].self, from: __return )
+ }
+
+ open func TestListenerArrayMethod( _ _arg0: [/* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol]? ) -> [/* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol]! {
+ return TestListenerArrayMethod( arg0: _arg0 )
+ }
+
+ /// public com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener org.swiftjava.SwiftTest.TestListenerMethod(com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener)
+
+ private static var TestListenerMethod_MethodID_37: jmethodID?
+
+ open func TestListenerMethod( arg0: /* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol? ) -> /* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol! {
+ 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: "TestListenerMethod", methodSig: "(Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;)Lcom/johnholdsworth/swiftbindings/SwiftHelloTest$TestListener;", methodCache: &SwiftTest.TestListenerMethod_MethodID_37, args: &__args, locals: &__locals )
+ defer { JNI.DeleteLocalRef( __return ) }
+ return __return != nil ? /* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocolForward( javaObject: __return ) : nil
+ }
+
+ open func TestListenerMethod( _ _arg0: /* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol? ) -> /* interface com.johnholdsworth.swiftbindings.SwiftHelloTest$TestListener */ UnavailableProtocol! {
+ return TestListenerMethod( arg0: _arg0 )
+ }
+
+ /// public boolean[][] org.swiftjava.SwiftTest.boolean2dArrayMethod(boolean[][])
+
+ private static var boolean2dArrayMethod_MethodID_38: jmethodID?
+
+ open func boolean2dArrayMethod( arg0: [[Bool]]? ) -> [[Bool]]! {
+ 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: "boolean2dArrayMethod", methodSig: "([[Z)[[Z", methodCache: &SwiftTest.boolean2dArrayMethod_MethodID_38, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[Bool]].self, from: __return )
+ }
+
+ open func boolean2dArrayMethod( _ _arg0: [[Bool]]? ) -> [[Bool]]! {
+ return boolean2dArrayMethod( arg0: _arg0 )
+ }
+
+ /// public boolean[] org.swiftjava.SwiftTest.booleanArrayMethod(boolean[])
+
+ private static var booleanArrayMethod_MethodID_39: jmethodID?
+
+ open func booleanArrayMethod( arg0: [Bool]? ) -> [Bool]! {
+ 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: "booleanArrayMethod", methodSig: "([Z)[Z", methodCache: &SwiftTest.booleanArrayMethod_MethodID_39, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [Bool].self, from: __return )
+ }
+
+ open func booleanArrayMethod( _ _arg0: [Bool]? ) -> [Bool]! {
+ return booleanArrayMethod( arg0: _arg0 )
+ }
+
+ /// public boolean org.swiftjava.SwiftTest.booleanMethod(boolean)
+
+ private static var booleanMethod_MethodID_40: jmethodID?
+
+ open func booleanMethod( arg0: Bool ) -> Bool {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( z: jboolean(arg0 ? JNI_TRUE : JNI_FALSE) )
+ let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "booleanMethod", methodSig: "(Z)Z", methodCache: &SwiftTest.booleanMethod_MethodID_40, args: &__args, locals: &__locals )
+ return __return != jboolean(JNI_FALSE)
+ }
+
+ open func booleanMethod( _ _arg0: Bool ) -> Bool {
+ return booleanMethod( arg0: _arg0 )
+ }
+
+ /// public byte[][] org.swiftjava.SwiftTest.byte2dArrayMethod(byte[][])
+
+ private static var byte2dArrayMethod_MethodID_41: jmethodID?
+
+ open func byte2dArrayMethod( arg0: [[Int8]]? ) -> [[Int8]]! {
+ 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: "byte2dArrayMethod", methodSig: "([[B)[[B", methodCache: &SwiftTest.byte2dArrayMethod_MethodID_41, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[Int8]].self, from: __return )
+ }
+
+ open func byte2dArrayMethod( _ _arg0: [[Int8]]? ) -> [[Int8]]! {
+ return byte2dArrayMethod( arg0: _arg0 )
+ }
+
+ /// public byte[] org.swiftjava.SwiftTest.byteArrayMethod(byte[])
+
+ private static var byteArrayMethod_MethodID_42: jmethodID?
+
+ open func byteArrayMethod( arg0: [Int8]? ) -> [Int8]! {
+ 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: "byteArrayMethod", methodSig: "([B)[B", methodCache: &SwiftTest.byteArrayMethod_MethodID_42, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [Int8].self, from: __return )
+ }
+
+ open func byteArrayMethod( _ _arg0: [Int8]? ) -> [Int8]! {
+ return byteArrayMethod( arg0: _arg0 )
+ }
+
+ /// public byte org.swiftjava.SwiftTest.byteMethod(byte)
+
+ private static var byteMethod_MethodID_43: jmethodID?
+
+ open func byteMethod( arg0: Int8 ) -> Int8 {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( b: arg0 )
+ let __return = JNIMethod.CallByteMethod( object: javaObject, methodName: "byteMethod", methodSig: "(B)B", methodCache: &SwiftTest.byteMethod_MethodID_43, args: &__args, locals: &__locals )
+ return __return
+ }
+
+ open func byteMethod( _ _arg0: Int8 ) -> Int8 {
+ return byteMethod( arg0: _arg0 )
+ }
+
+ /// public char[][] org.swiftjava.SwiftTest.char2dArrayMethod(char[][])
+
+ private static var char2dArrayMethod_MethodID_44: jmethodID?
+
+ open func char2dArrayMethod( arg0: [[UInt16]]? ) -> [[UInt16]]! {
+ 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: "char2dArrayMethod", methodSig: "([[C)[[C", methodCache: &SwiftTest.char2dArrayMethod_MethodID_44, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[UInt16]].self, from: __return )
+ }
+
+ open func char2dArrayMethod( _ _arg0: [[UInt16]]? ) -> [[UInt16]]! {
+ return char2dArrayMethod( arg0: _arg0 )
+ }
+
+ /// public char[] org.swiftjava.SwiftTest.charArrayMethod(char[])
+
+ private static var charArrayMethod_MethodID_45: jmethodID?
+
+ open func charArrayMethod( arg0: [UInt16]? ) -> [UInt16]! {
+ 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: "charArrayMethod", methodSig: "([C)[C", methodCache: &SwiftTest.charArrayMethod_MethodID_45, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [UInt16].self, from: __return )
+ }
+
+ open func charArrayMethod( _ _arg0: [UInt16]? ) -> [UInt16]! {
+ return charArrayMethod( arg0: _arg0 )
+ }
+
+ /// public char org.swiftjava.SwiftTest.charMethod(char)
+
+ private static var charMethod_MethodID_46: jmethodID?
+
+ open func charMethod( arg0: UInt16 ) -> UInt16 {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( c: arg0 )
+ let __return = JNIMethod.CallCharMethod( object: javaObject, methodName: "charMethod", methodSig: "(C)C", methodCache: &SwiftTest.charMethod_MethodID_46, args: &__args, locals: &__locals )
+ return __return
+ }
+
+ open func charMethod( _ _arg0: UInt16 ) -> UInt16 {
+ return charMethod( arg0: _arg0 )
+ }
+
+ /// public double[][] org.swiftjava.SwiftTest.double2dArrayMethod(double[][])
+
+ private static var double2dArrayMethod_MethodID_47: jmethodID?
+
+ open func double2dArrayMethod( arg0: [[Double]]? ) -> [[Double]]! {
+ 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: "double2dArrayMethod", methodSig: "([[D)[[D", methodCache: &SwiftTest.double2dArrayMethod_MethodID_47, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[Double]].self, from: __return )
+ }
+
+ open func double2dArrayMethod( _ _arg0: [[Double]]? ) -> [[Double]]! {
+ return double2dArrayMethod( arg0: _arg0 )
+ }
+
+ /// public double[] org.swiftjava.SwiftTest.doubleArrayMethod(double[])
+
+ private static var doubleArrayMethod_MethodID_48: jmethodID?
+
+ open func doubleArrayMethod( arg0: [Double]? ) -> [Double]! {
+ 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: "doubleArrayMethod", methodSig: "([D)[D", methodCache: &SwiftTest.doubleArrayMethod_MethodID_48, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [Double].self, from: __return )
+ }
+
+ open func doubleArrayMethod( _ _arg0: [Double]? ) -> [Double]! {
+ return doubleArrayMethod( arg0: _arg0 )
+ }
+
+ /// public double org.swiftjava.SwiftTest.doubleMethod(double)
+
+ private static var doubleMethod_MethodID_49: jmethodID?
+
+ open func doubleMethod( arg0: Double ) -> Double {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( d: arg0 )
+ let __return = JNIMethod.CallDoubleMethod( object: javaObject, methodName: "doubleMethod", methodSig: "(D)D", methodCache: &SwiftTest.doubleMethod_MethodID_49, args: &__args, locals: &__locals )
+ return __return
+ }
+
+ open func doubleMethod( _ _arg0: Double ) -> Double {
+ return doubleMethod( arg0: _arg0 )
+ }
+
+ /// public float[][] org.swiftjava.SwiftTest.float2dArrayMethod(float[][])
+
+ private static var float2dArrayMethod_MethodID_50: jmethodID?
+
+ open func float2dArrayMethod( arg0: [[Float]]? ) -> [[Float]]! {
+ 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: "float2dArrayMethod", methodSig: "([[F)[[F", methodCache: &SwiftTest.float2dArrayMethod_MethodID_50, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[Float]].self, from: __return )
+ }
+
+ open func float2dArrayMethod( _ _arg0: [[Float]]? ) -> [[Float]]! {
+ return float2dArrayMethod( arg0: _arg0 )
+ }
+
+ /// public float[] org.swiftjava.SwiftTest.floatArrayMethod(float[])
+
+ private static var floatArrayMethod_MethodID_51: jmethodID?
+
+ open func floatArrayMethod( arg0: [Float]? ) -> [Float]! {
+ 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: "floatArrayMethod", methodSig: "([F)[F", methodCache: &SwiftTest.floatArrayMethod_MethodID_51, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [Float].self, from: __return )
+ }
+
+ open func floatArrayMethod( _ _arg0: [Float]? ) -> [Float]! {
+ return floatArrayMethod( arg0: _arg0 )
+ }
+
+ /// public float org.swiftjava.SwiftTest.floatMethod(float)
+
+ private static var floatMethod_MethodID_52: jmethodID?
+
+ open func floatMethod( arg0: Float ) -> Float {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( f: arg0 )
+ let __return = JNIMethod.CallFloatMethod( object: javaObject, methodName: "floatMethod", methodSig: "(F)F", methodCache: &SwiftTest.floatMethod_MethodID_52, args: &__args, locals: &__locals )
+ return __return
+ }
+
+ open func floatMethod( _ _arg0: Float ) -> Float {
+ return floatMethod( arg0: _arg0 )
+ }
+
+ /// public int[][] org.swiftjava.SwiftTest.int2dArrayMethod(int[][])
+
+ private static var int2dArrayMethod_MethodID_53: jmethodID?
+
+ open func int2dArrayMethod( arg0: [[Int32]]? ) -> [[Int32]]! {
+ 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: "int2dArrayMethod", methodSig: "([[I)[[I", methodCache: &SwiftTest.int2dArrayMethod_MethodID_53, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[Int32]].self, from: __return )
+ }
+
+ open func int2dArrayMethod( _ _arg0: [[Int32]]? ) -> [[Int32]]! {
+ return int2dArrayMethod( arg0: _arg0 )
+ }
+
+ /// public int[] org.swiftjava.SwiftTest.intArrayMethod(int[])
+
+ private static var intArrayMethod_MethodID_54: jmethodID?
+
+ open func intArrayMethod( arg0: [Int32]? ) -> [Int32]! {
+ 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: "intArrayMethod", methodSig: "([I)[I", methodCache: &SwiftTest.intArrayMethod_MethodID_54, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [Int32].self, from: __return )
+ }
+
+ open func intArrayMethod( _ _arg0: [Int32]? ) -> [Int32]! {
+ return intArrayMethod( arg0: _arg0 )
+ }
+
+ /// public int org.swiftjava.SwiftTest.intMethod(int)
+
+ private static var intMethod_MethodID_55: jmethodID?
+
+ open func intMethod( arg0: Int ) -> Int {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( i: jint(arg0) )
+ let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "intMethod", methodSig: "(I)I", methodCache: &SwiftTest.intMethod_MethodID_55, args: &__args, locals: &__locals )
+ return Int(__return)
+ }
+
+ open func intMethod( _ _arg0: Int ) -> Int {
+ return intMethod( arg0: _arg0 )
+ }
+
+ /// public long[][] org.swiftjava.SwiftTest.long2dArrayMethod(long[][])
+
+ private static var long2dArrayMethod_MethodID_56: jmethodID?
+
+ open func long2dArrayMethod( arg0: [[Int64]]? ) -> [[Int64]]! {
+ 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: "long2dArrayMethod", methodSig: "([[J)[[J", methodCache: &SwiftTest.long2dArrayMethod_MethodID_56, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[Int64]].self, from: __return )
+ }
+
+ open func long2dArrayMethod( _ _arg0: [[Int64]]? ) -> [[Int64]]! {
+ return long2dArrayMethod( arg0: _arg0 )
+ }
+
+ /// public long[] org.swiftjava.SwiftTest.longArrayMethod(long[])
+
+ private static var longArrayMethod_MethodID_57: jmethodID?
+
+ open func longArrayMethod( arg0: [Int64]? ) -> [Int64]! {
+ 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: "longArrayMethod", methodSig: "([J)[J", methodCache: &SwiftTest.longArrayMethod_MethodID_57, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [Int64].self, from: __return )
+ }
+
+ open func longArrayMethod( _ _arg0: [Int64]? ) -> [Int64]! {
+ return longArrayMethod( arg0: _arg0 )
+ }
+
+ /// public long org.swiftjava.SwiftTest.longMethod(long)
+
+ private static var longMethod_MethodID_58: jmethodID?
+
+ open func longMethod( arg0: Int64 ) -> Int64 {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( j: arg0 )
+ let __return = JNIMethod.CallLongMethod( object: javaObject, methodName: "longMethod", methodSig: "(J)J", methodCache: &SwiftTest.longMethod_MethodID_58, args: &__args, locals: &__locals )
+ return __return
+ }
+
+ open func longMethod( _ _arg0: Int64 ) -> Int64 {
+ return longMethod( arg0: _arg0 )
+ }
+
+ /// public short[][] org.swiftjava.SwiftTest.short2dArrayMethod(short[][])
+
+ private static var short2dArrayMethod_MethodID_59: jmethodID?
+
+ open func short2dArrayMethod( arg0: [[Int16]]? ) -> [[Int16]]! {
+ 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: "short2dArrayMethod", methodSig: "([[S)[[S", methodCache: &SwiftTest.short2dArrayMethod_MethodID_59, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [[Int16]].self, from: __return )
+ }
+
+ open func short2dArrayMethod( _ _arg0: [[Int16]]? ) -> [[Int16]]! {
+ return short2dArrayMethod( arg0: _arg0 )
+ }
+
+ /// public short[] org.swiftjava.SwiftTest.shortArrayMethod(short[])
+
+ private static var shortArrayMethod_MethodID_60: jmethodID?
+
+ open func shortArrayMethod( arg0: [Int16]? ) -> [Int16]! {
+ 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: "shortArrayMethod", methodSig: "([S)[S", methodCache: &SwiftTest.shortArrayMethod_MethodID_60, args: &__args, locals: &__locals )
+ return JNIType.toSwift( type: [Int16].self, from: __return )
+ }
+
+ open func shortArrayMethod( _ _arg0: [Int16]? ) -> [Int16]! {
+ return shortArrayMethod( arg0: _arg0 )
+ }
+
+ /// public short org.swiftjava.SwiftTest.shortMethod(short)
+
+ private static var shortMethod_MethodID_61: jmethodID?
+
+ open func shortMethod( arg0: Int16 ) -> Int16 {
+ var __locals = [jobject]()
+ var __args = [jvalue]( repeating: jvalue(), count: 1 )
+ __args[0] = jvalue( s: arg0 )
+ let __return = JNIMethod.CallShortMethod( object: javaObject, methodName: "shortMethod", methodSig: "(S)S", methodCache: &SwiftTest.shortMethod_MethodID_61, args: &__args, locals: &__locals )
+ return __return
+ }
+
+ open func shortMethod( _ _arg0: Int16 ) -> Int16 {
+ return shortMethod( arg0: _arg0 )
+ }
+
+}
+
diff --git a/org_swiftjava/org_swiftjava.swift b/org_swiftjava/org_swiftjava.swift
new file mode 100644
index 0000000..8328b20
--- /dev/null
+++ b/org_swiftjava/org_swiftjava.swift
@@ -0,0 +1,355 @@
+//
+// org_swiftjava.swift
+// org_swiftjava
+//
+// Created by John Holdsworth on 27/07/2016.
+// Copyright © 2016 John Holdsworth. All rights reserved.
+//
+
+import XCTest
+
+class org_swiftjava: XCTestCase {
+
+ override func setUp() {
+ super.setUp()
+ // Put setup code here. This method is called before the invocation of each test method in the class.
+ }
+
+ override func tearDown() {
+ // Put teardown code here. This method is called after the invocation of each test method in the class.
+ super.tearDown()
+ }
+
+ func testExample() {
+ // This is an example of a functional test case.
+ // Use XCTAssert and related functions to verify your tests produce the correct results.
+
+// SwiftHelloTest_TestListenerLocal_.proxyClass()
+
+ // You'll get an assertion failure if
+ // you comment the following line out.
+ Fortify.disableExclusivityChecking()
+
+ let dest = SwiftTestListener()
+
+ let bounce2 = SwiftHelloTest_TestResponderAdapter()
+ bounce2.setLoopback(loopback: dest)
+
+ let bounce1 = SwiftTestListener()
+ bounce1.loopback = bounce2
+
+ let instance = SwiftHelloTest_TestResponderAdapter()
+ instance.setLoopback(loopback: bounce1)
+
+ if true {
+ let reference: Bool = true
+ let referenceArray = [(reference)]
+ let reference2dArray = [referenceArray]
+
+ SwiftTest.booleanFieldStatic = reference
+ XCTAssertEqual( SwiftTest.booleanFieldStatic, reference )
+// instance.booleanField = reference
+// XCTAssertEqual( instance.booleanField, reference )
+
+ SwiftTest.booleanArrayFieldStatic = referenceArray
+ XCTAssertEqual( SwiftTest.booleanArrayFieldStatic, referenceArray )
+// instance.booleanArrayField = referenceArray
+// XCTAssertEqual( instance.booleanArrayField, referenceArray )
+
+ SwiftTest.boolean2dArrayFieldStatic = reference2dArray
+ XCTAssertEqual( SwiftTest.boolean2dArrayFieldStatic[0], reference2dArray[0] )
+// instance.boolean2dArrayField = reference2dArray
+// XCTAssertEqual( instance.boolean2dArrayField[0], reference2dArray[0] )
+
+// XCTAssertEqual( SwiftTest.booleanMethodStatic( reference ), reference )
+ XCTAssertEqual( instance.booleanMethod( reference ), reference )
+
+// XCTAssertEqual( SwiftTest.booleanArrayMethodStatic( referenceArray ), referenceArray )
+ XCTAssertEqual( instance.booleanArrayMethod( referenceArray ), referenceArray )
+
+// XCTAssertEqual( SwiftTest.boolean2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
+ XCTAssertEqual( instance.boolean2dArrayMethod( reference2dArray )[0], reference2dArray[0] )
+ }
+
+ if true {
+ let reference: Int8 = 123
+ let referenceArray = [(reference)]
+ let reference2dArray = [referenceArray]
+
+ SwiftTest.byteFieldStatic = reference
+ XCTAssertEqual( SwiftTest.byteFieldStatic, reference )
+// instance.byteField = reference
+// XCTAssertEqual( instance.byteField, reference )
+
+ SwiftTest.byteArrayFieldStatic = referenceArray
+ XCTAssertEqual( SwiftTest.byteArrayFieldStatic, referenceArray )
+// instance.byteArrayField = referenceArray
+// XCTAssertEqual( instance.byteArrayField, referenceArray )
+
+ SwiftTest.byte2dArrayFieldStatic = reference2dArray
+ XCTAssertEqual( SwiftTest.byte2dArrayFieldStatic[0], reference2dArray[0] )
+// instance.byte2dArrayField = reference2dArray
+// XCTAssertEqual( instance.byte2dArrayField[0], reference2dArray[0] )
+
+// XCTAssertEqual( SwiftTest.byteMethodStatic( reference ), reference )
+ XCTAssertEqual( instance.byteMethod( reference ), reference )
+
+// XCTAssertEqual( SwiftTest.byteArrayMethodStatic( referenceArray ), referenceArray )
+ XCTAssertEqual( instance.byteArrayMethod( referenceArray ), referenceArray )
+
+// XCTAssertEqual( SwiftTest.byte2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
+ XCTAssertEqual( instance.byte2dArrayMethod( reference2dArray )[0], reference2dArray[0] )
+ }
+
+ if true {
+ let reference: UInt16 = 123
+ let referenceArray = [(reference)]
+ let reference2dArray = [referenceArray]
+
+ SwiftTest.charFieldStatic = reference
+ XCTAssertEqual( SwiftTest.charFieldStatic, reference )
+// instance.charField = reference
+// XCTAssertEqual( instance.charField, reference )
+
+ SwiftTest.charArrayFieldStatic = referenceArray
+ XCTAssertEqual( SwiftTest.charArrayFieldStatic, referenceArray )
+// instance.charArrayField = referenceArray
+// XCTAssertEqual( instance.charArrayField, referenceArray )
+
+ SwiftTest.char2dArrayFieldStatic = reference2dArray
+ XCTAssertEqual( SwiftTest.char2dArrayFieldStatic[0], reference2dArray[0] )
+// instance.char2dArrayField = reference2dArray
+// XCTAssertEqual( instance.char2dArrayField[0], reference2dArray[0] )
+
+// XCTAssertEqual( SwiftTest.charMethodStatic( reference ), reference )
+ XCTAssertEqual( instance.charMethod( reference ), reference )
+
+// XCTAssertEqual( SwiftTest.charArrayMethodStatic( referenceArray ), referenceArray )
+ XCTAssertEqual( instance.charArrayMethod( referenceArray ), referenceArray )
+
+// XCTAssertEqual( SwiftTest.char2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
+ XCTAssertEqual( instance.char2dArrayMethod( reference2dArray )[0], reference2dArray[0] )
+ }
+
+ if true {
+ let reference: Int16 = 123
+ let referenceArray = [(reference)]
+ let reference2dArray = [referenceArray]
+
+ SwiftTest.shortFieldStatic = reference
+ XCTAssertEqual( SwiftTest.shortFieldStatic, reference )
+// instance.shortField = reference
+// XCTAssertEqual( instance.shortField, reference )
+
+ SwiftTest.shortArrayFieldStatic = referenceArray
+ XCTAssertEqual( SwiftTest.shortArrayFieldStatic, referenceArray )
+// instance.shortArrayField = referenceArray
+// XCTAssertEqual( instance.shortArrayField, referenceArray )
+
+ SwiftTest.short2dArrayFieldStatic = reference2dArray
+ XCTAssertEqual( SwiftTest.short2dArrayFieldStatic[0], reference2dArray[0] )
+// instance.short2dArrayField = reference2dArray
+// XCTAssertEqual( instance.short2dArrayField[0], reference2dArray[0] )
+
+// XCTAssertEqual( SwiftTest.shortMethodStatic( reference ), reference )
+ XCTAssertEqual( instance.shortMethod( reference ), reference )
+
+// XCTAssertEqual( SwiftTest.shortArrayMethodStatic( referenceArray ), referenceArray )
+ XCTAssertEqual( instance.shortArrayMethod( referenceArray ), referenceArray )
+
+// XCTAssertEqual( SwiftTest.short2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
+ XCTAssertEqual( instance.short2dArrayMethod( reference2dArray )[0], reference2dArray[0] )
+ }
+
+ if true {
+ let reference: Int = 123
+ let referenceArray = [Int32(reference)]
+ let reference2dArray = [referenceArray]
+
+ SwiftTest.intFieldStatic = reference
+ XCTAssertEqual( SwiftTest.intFieldStatic, reference )
+// instance.intField = reference
+// XCTAssertEqual( instance.intField, reference )
+
+ SwiftTest.intArrayFieldStatic = referenceArray
+ XCTAssertEqual( SwiftTest.intArrayFieldStatic, referenceArray )
+// instance.intArrayField = referenceArray
+// XCTAssertEqual( instance.intArrayField, referenceArray )
+
+ SwiftTest.int2dArrayFieldStatic = reference2dArray
+ XCTAssertEqual( SwiftTest.int2dArrayFieldStatic[0], reference2dArray[0] )
+// instance.int2dArrayField = reference2dArray
+// XCTAssertEqual( instance.int2dArrayField[0], reference2dArray[0] )
+
+// XCTAssertEqual( SwiftTest.intMethodStatic( reference ), reference )
+ XCTAssertEqual( instance.intMethod( reference ), reference )
+
+// XCTAssertEqual( SwiftTest.intArrayMethodStatic( referenceArray ), referenceArray )
+ XCTAssertEqual( instance.intArrayMethod( referenceArray ), referenceArray )
+
+// XCTAssertEqual( SwiftTest.int2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
+ XCTAssertEqual( instance.int2dArrayMethod( reference2dArray )[0], reference2dArray[0] )
+ }
+
+ if true {
+ let reference: Int64 = 123
+ let referenceArray = [(reference)]
+ let reference2dArray = [referenceArray]
+
+ SwiftTest.longFieldStatic = reference
+ XCTAssertEqual( SwiftTest.longFieldStatic, reference )
+// instance.longField = reference
+// XCTAssertEqual( instance.longField, reference )
+
+ SwiftTest.longArrayFieldStatic = referenceArray
+ XCTAssertEqual( SwiftTest.longArrayFieldStatic, referenceArray )
+// instance.longArrayField = referenceArray
+// XCTAssertEqual( instance.longArrayField, referenceArray )
+
+ SwiftTest.long2dArrayFieldStatic = reference2dArray
+ XCTAssertEqual( SwiftTest.long2dArrayFieldStatic[0], reference2dArray[0] )
+// instance.long2dArrayField = reference2dArray
+// XCTAssertEqual( instance.long2dArrayField[0], reference2dArray[0] )
+
+// XCTAssertEqual( SwiftTest.longMethodStatic( reference ), reference )
+ XCTAssertEqual( instance.longMethod( reference ), reference )
+
+// XCTAssertEqual( SwiftTest.longArrayMethodStatic( referenceArray ), referenceArray )
+ XCTAssertEqual( instance.longArrayMethod( referenceArray ), referenceArray )
+
+// XCTAssertEqual( SwiftTest.long2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
+ XCTAssertEqual( instance.long2dArrayMethod( reference2dArray )[0], reference2dArray[0] )
+ }
+
+ if true {
+ let reference: Float = 123
+ let referenceArray = [(reference)]
+ let reference2dArray = [referenceArray]
+
+ SwiftTest.floatFieldStatic = reference
+ XCTAssertEqual( SwiftTest.floatFieldStatic, reference )
+// instance.floatField = reference
+// XCTAssertEqual( instance.floatField, reference )
+
+ SwiftTest.floatArrayFieldStatic = referenceArray
+ XCTAssertEqual( SwiftTest.floatArrayFieldStatic, referenceArray )
+// instance.floatArrayField = referenceArray
+// XCTAssertEqual( instance.floatArrayField, referenceArray )
+
+ SwiftTest.float2dArrayFieldStatic = reference2dArray
+ XCTAssertEqual( SwiftTest.float2dArrayFieldStatic[0], reference2dArray[0] )
+// instance.float2dArrayField = reference2dArray
+// XCTAssertEqual( instance.float2dArrayField[0], reference2dArray[0] )
+
+// XCTAssertEqual( SwiftTest.floatMethodStatic( reference ), reference )
+ XCTAssertEqual( instance.floatMethod( reference ), reference )
+
+// XCTAssertEqual( SwiftTest.floatArrayMethodStatic( referenceArray ), referenceArray )
+ XCTAssertEqual( instance.floatArrayMethod( referenceArray ), referenceArray )
+
+// XCTAssertEqual( SwiftTest.float2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
+ XCTAssertEqual( instance.float2dArrayMethod( reference2dArray )[0], reference2dArray[0] )
+ }
+
+ if true {
+ let reference: Double = 123
+ let referenceArray = [(reference)]
+ let reference2dArray = [referenceArray]
+
+ SwiftTest.doubleFieldStatic = reference
+ XCTAssertEqual( SwiftTest.doubleFieldStatic, reference )
+// instance.doubleField = reference
+// XCTAssertEqual( instance.doubleField, reference )
+
+ SwiftTest.doubleArrayFieldStatic = referenceArray
+ XCTAssertEqual( SwiftTest.doubleArrayFieldStatic, referenceArray )
+// instance.doubleArrayField = referenceArray
+// XCTAssertEqual( instance.doubleArrayField, referenceArray )
+
+ SwiftTest.double2dArrayFieldStatic = reference2dArray
+ XCTAssertEqual( SwiftTest.double2dArrayFieldStatic[0], reference2dArray[0] )
+// instance.double2dArrayField = reference2dArray
+// XCTAssertEqual( instance.double2dArrayField[0], reference2dArray[0] )
+
+// XCTAssertEqual( SwiftTest.doubleMethodStatic( reference ), reference )
+ XCTAssertEqual( instance.doubleMethod( reference ), reference )
+
+// XCTAssertEqual( SwiftTest.doubleArrayMethodStatic( referenceArray ), referenceArray )
+ XCTAssertEqual( instance.doubleArrayMethod( referenceArray ), referenceArray )
+
+// XCTAssertEqual( SwiftTest.double2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
+ XCTAssertEqual( instance.double2dArrayMethod( reference2dArray )[0], reference2dArray[0] )
+ }
+
+ if true {
+ let reference: String = "123"
+ let referenceArray = [(reference)]
+ let reference2dArray = [referenceArray]
+
+ SwiftTest.StringFieldStatic = reference
+ XCTAssertEqual( SwiftTest.StringFieldStatic, reference )
+// instance.StringField = reference
+// XCTAssertEqual( instance.StringField, reference )
+
+ SwiftTest.StringArrayFieldStatic = referenceArray
+ XCTAssertEqual( SwiftTest.StringArrayFieldStatic, referenceArray )
+// instance.StringArrayField = referenceArray
+// XCTAssertEqual( instance.StringArrayField, referenceArray )
+
+ SwiftTest.String2dArrayFieldStatic = reference2dArray
+ XCTAssertEqual( SwiftTest.String2dArrayFieldStatic[0], reference2dArray[0] )
+// instance.String2dArrayField = reference2dArray
+// XCTAssertEqual( instance.String2dArrayField[0], reference2dArray[0] )
+
+// XCTAssertEqual( SwiftTest.StringMethodStatic( reference ), reference )
+ XCTAssertEqual( instance.StringMethod( reference ), reference )
+
+// XCTAssertEqual( SwiftTest.StringArrayMethodStatic( referenceArray ), referenceArray )
+ XCTAssertEqual( instance.StringArrayMethod( referenceArray ), referenceArray )
+
+// XCTAssertEqual( SwiftTest.String2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
+ XCTAssertEqual( instance.String2dArrayMethod( reference2dArray )[0], reference2dArray[0] )
+ }
+
+ if true {
+ let reference: SwiftHelloTest_TestListener = SwiftTestListener()
+ let referenceArray = [(reference)]
+ let reference2dArray = [referenceArray]
+
+// SwiftTest.TestListenerFieldStatic = reference
+// XCTAssertEqual( SwiftTest.TestListenerFieldStatic, reference )
+//// instance.TestListenerField = reference
+//// XCTAssertEqual( instance.TestListenerField, reference )
+//
+// SwiftTest.TestListenerArrayFieldStatic = referenceArray
+// XCTAssertEqual( SwiftTest.TestListenerArrayFieldStatic, referenceArray )
+//// instance.TestListenerArrayField = referenceArray
+//// XCTAssertEqual( instance.TestListenerArrayField, referenceArray )
+//
+// SwiftTest.TestListener2dArrayFieldStatic = reference2dArray
+// XCTAssertEqual( SwiftTest.TestListener2dArrayFieldStatic[0], reference2dArray[0] )
+//// instance.TestListener2dArrayField = reference2dArray
+//// XCTAssertEqual( instance.TestListener2dArrayField[0], reference2dArray[0] )
+//
+//// XCTAssertEqual( SwiftTest.TestListenerMethodStatic( reference ), reference )
+// XCTAssertEqual( instance.TestListenerMethod( reference ), reference )
+//
+//// XCTAssertEqual( SwiftTest.TestListenerArrayMethodStatic( referenceArray ), referenceArray )
+// XCTAssertEqual( instance.TestListenerArrayMethod( referenceArray ), referenceArray )
+//
+//// XCTAssertEqual( SwiftTest.TestListener2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
+// XCTAssertEqual( instance.TestListener2dArrayMethod( reference2dArray )[0], reference2dArray[0] )
+ }
+ }
+
+ func testPerformanceExample() {
+ // This is an example of a performance test case.
+ self.measure {
+ // Put the code you want to measure the time of here.
+ for _ in 0..<100 {
+ self.testExample()
+ }
+ }
+ }
+
+}
diff --git a/org_genie/org_genie.swift b/org_swiftjava/test_body.swift
similarity index 54%
rename from org_genie/org_genie.swift
rename to org_swiftjava/test_body.swift
index 9705da1..c8564c4 100644
--- a/org_genie/org_genie.swift
+++ b/org_swiftjava/test_body.swift
@@ -1,30 +1,3 @@
-//
-// org_genie.swift
-// org_genie
-//
-// Created by John Holdsworth on 27/07/2016.
-// Copyright © 2016 John Holdsworth. All rights reserved.
-//
-
-import XCTest
-
-class org_genie: XCTestCase {
-
- override func setUp() {
- super.setUp()
- // Put setup code here. This method is called before the invocation of each test method in the class.
- }
-
- override func tearDown() {
- // Put teardown code here. This method is called after the invocation of each test method in the class.
- super.tearDown()
- }
-
- func testExample() {
- // This is an example of a functional test case.
- // Use XCTAssert and related functions to verify your tests produce the correct results.
-
- let instance = SwiftTest()
if true {
let reference: Bool = true
@@ -33,26 +6,26 @@ class org_genie: XCTestCase {
SwiftTest.booleanFieldStatic = reference
XCTAssertEqual( SwiftTest.booleanFieldStatic, reference )
- instance.booleanField = reference
- XCTAssertEqual( instance.booleanField, reference )
+// instance.booleanField = reference
+// XCTAssertEqual( instance.booleanField, reference )
SwiftTest.booleanArrayFieldStatic = referenceArray
XCTAssertEqual( SwiftTest.booleanArrayFieldStatic, referenceArray )
- instance.booleanArrayField = referenceArray
- XCTAssertEqual( instance.booleanArrayField, referenceArray )
+// instance.booleanArrayField = referenceArray
+// XCTAssertEqual( instance.booleanArrayField, referenceArray )
SwiftTest.boolean2dArrayFieldStatic = reference2dArray
XCTAssertEqual( SwiftTest.boolean2dArrayFieldStatic[0], reference2dArray[0] )
- instance.boolean2dArrayField = reference2dArray
- XCTAssertEqual( instance.boolean2dArrayField[0], reference2dArray[0] )
+// instance.boolean2dArrayField = reference2dArray
+// XCTAssertEqual( instance.boolean2dArrayField[0], reference2dArray[0] )
- XCTAssertEqual( SwiftTest.booleanMethodStatic( reference ), reference )
+// XCTAssertEqual( SwiftTest.booleanMethodStatic( reference ), reference )
XCTAssertEqual( instance.booleanMethod( reference ), reference )
- XCTAssertEqual( SwiftTest.booleanArrayMethodStatic( referenceArray ), referenceArray )
+// XCTAssertEqual( SwiftTest.booleanArrayMethodStatic( referenceArray ), referenceArray )
XCTAssertEqual( instance.booleanArrayMethod( referenceArray ), referenceArray )
- XCTAssertEqual( SwiftTest.boolean2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
+// XCTAssertEqual( SwiftTest.boolean2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
XCTAssertEqual( instance.boolean2dArrayMethod( reference2dArray )[0], reference2dArray[0] )
}
@@ -63,26 +36,26 @@ class org_genie: XCTestCase {
SwiftTest.byteFieldStatic = reference
XCTAssertEqual( SwiftTest.byteFieldStatic, reference )
- instance.byteField = reference
- XCTAssertEqual( instance.byteField, reference )
+// instance.byteField = reference
+// XCTAssertEqual( instance.byteField, reference )
SwiftTest.byteArrayFieldStatic = referenceArray
XCTAssertEqual( SwiftTest.byteArrayFieldStatic, referenceArray )
- instance.byteArrayField = referenceArray
- XCTAssertEqual( instance.byteArrayField, referenceArray )
+// instance.byteArrayField = referenceArray
+// XCTAssertEqual( instance.byteArrayField, referenceArray )
SwiftTest.byte2dArrayFieldStatic = reference2dArray
XCTAssertEqual( SwiftTest.byte2dArrayFieldStatic[0], reference2dArray[0] )
- instance.byte2dArrayField = reference2dArray
- XCTAssertEqual( instance.byte2dArrayField[0], reference2dArray[0] )
+// instance.byte2dArrayField = reference2dArray
+// XCTAssertEqual( instance.byte2dArrayField[0], reference2dArray[0] )
- XCTAssertEqual( SwiftTest.byteMethodStatic( reference ), reference )
+// XCTAssertEqual( SwiftTest.byteMethodStatic( reference ), reference )
XCTAssertEqual( instance.byteMethod( reference ), reference )
- XCTAssertEqual( SwiftTest.byteArrayMethodStatic( referenceArray ), referenceArray )
+// XCTAssertEqual( SwiftTest.byteArrayMethodStatic( referenceArray ), referenceArray )
XCTAssertEqual( instance.byteArrayMethod( referenceArray ), referenceArray )
- XCTAssertEqual( SwiftTest.byte2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
+// XCTAssertEqual( SwiftTest.byte2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
XCTAssertEqual( instance.byte2dArrayMethod( reference2dArray )[0], reference2dArray[0] )
}
@@ -93,26 +66,26 @@ class org_genie: XCTestCase {
SwiftTest.charFieldStatic = reference
XCTAssertEqual( SwiftTest.charFieldStatic, reference )
- instance.charField = reference
- XCTAssertEqual( instance.charField, reference )
+// instance.charField = reference
+// XCTAssertEqual( instance.charField, reference )
SwiftTest.charArrayFieldStatic = referenceArray
XCTAssertEqual( SwiftTest.charArrayFieldStatic, referenceArray )
- instance.charArrayField = referenceArray
- XCTAssertEqual( instance.charArrayField, referenceArray )
+// instance.charArrayField = referenceArray
+// XCTAssertEqual( instance.charArrayField, referenceArray )
SwiftTest.char2dArrayFieldStatic = reference2dArray
XCTAssertEqual( SwiftTest.char2dArrayFieldStatic[0], reference2dArray[0] )
- instance.char2dArrayField = reference2dArray
- XCTAssertEqual( instance.char2dArrayField[0], reference2dArray[0] )
+// instance.char2dArrayField = reference2dArray
+// XCTAssertEqual( instance.char2dArrayField[0], reference2dArray[0] )
- XCTAssertEqual( SwiftTest.charMethodStatic( reference ), reference )
+// XCTAssertEqual( SwiftTest.charMethodStatic( reference ), reference )
XCTAssertEqual( instance.charMethod( reference ), reference )
- XCTAssertEqual( SwiftTest.charArrayMethodStatic( referenceArray ), referenceArray )
+// XCTAssertEqual( SwiftTest.charArrayMethodStatic( referenceArray ), referenceArray )
XCTAssertEqual( instance.charArrayMethod( referenceArray ), referenceArray )
- XCTAssertEqual( SwiftTest.char2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
+// XCTAssertEqual( SwiftTest.char2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
XCTAssertEqual( instance.char2dArrayMethod( reference2dArray )[0], reference2dArray[0] )
}
@@ -123,26 +96,26 @@ class org_genie: XCTestCase {
SwiftTest.shortFieldStatic = reference
XCTAssertEqual( SwiftTest.shortFieldStatic, reference )
- instance.shortField = reference
- XCTAssertEqual( instance.shortField, reference )
+// instance.shortField = reference
+// XCTAssertEqual( instance.shortField, reference )
SwiftTest.shortArrayFieldStatic = referenceArray
XCTAssertEqual( SwiftTest.shortArrayFieldStatic, referenceArray )
- instance.shortArrayField = referenceArray
- XCTAssertEqual( instance.shortArrayField, referenceArray )
+// instance.shortArrayField = referenceArray
+// XCTAssertEqual( instance.shortArrayField, referenceArray )
SwiftTest.short2dArrayFieldStatic = reference2dArray
XCTAssertEqual( SwiftTest.short2dArrayFieldStatic[0], reference2dArray[0] )
- instance.short2dArrayField = reference2dArray
- XCTAssertEqual( instance.short2dArrayField[0], reference2dArray[0] )
+// instance.short2dArrayField = reference2dArray
+// XCTAssertEqual( instance.short2dArrayField[0], reference2dArray[0] )
- XCTAssertEqual( SwiftTest.shortMethodStatic( reference ), reference )
+// XCTAssertEqual( SwiftTest.shortMethodStatic( reference ), reference )
XCTAssertEqual( instance.shortMethod( reference ), reference )
- XCTAssertEqual( SwiftTest.shortArrayMethodStatic( referenceArray ), referenceArray )
+// XCTAssertEqual( SwiftTest.shortArrayMethodStatic( referenceArray ), referenceArray )
XCTAssertEqual( instance.shortArrayMethod( referenceArray ), referenceArray )
- XCTAssertEqual( SwiftTest.short2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
+// XCTAssertEqual( SwiftTest.short2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
XCTAssertEqual( instance.short2dArrayMethod( reference2dArray )[0], reference2dArray[0] )
}
@@ -153,26 +126,26 @@ class org_genie: XCTestCase {
SwiftTest.intFieldStatic = reference
XCTAssertEqual( SwiftTest.intFieldStatic, reference )
- instance.intField = reference
- XCTAssertEqual( instance.intField, reference )
+// instance.intField = reference
+// XCTAssertEqual( instance.intField, reference )
SwiftTest.intArrayFieldStatic = referenceArray
XCTAssertEqual( SwiftTest.intArrayFieldStatic, referenceArray )
- instance.intArrayField = referenceArray
- XCTAssertEqual( instance.intArrayField, referenceArray )
+// instance.intArrayField = referenceArray
+// XCTAssertEqual( instance.intArrayField, referenceArray )
SwiftTest.int2dArrayFieldStatic = reference2dArray
XCTAssertEqual( SwiftTest.int2dArrayFieldStatic[0], reference2dArray[0] )
- instance.int2dArrayField = reference2dArray
- XCTAssertEqual( instance.int2dArrayField[0], reference2dArray[0] )
+// instance.int2dArrayField = reference2dArray
+// XCTAssertEqual( instance.int2dArrayField[0], reference2dArray[0] )
- XCTAssertEqual( SwiftTest.intMethodStatic( reference ), reference )
+// XCTAssertEqual( SwiftTest.intMethodStatic( reference ), reference )
XCTAssertEqual( instance.intMethod( reference ), reference )
- XCTAssertEqual( SwiftTest.intArrayMethodStatic( referenceArray ), referenceArray )
+// XCTAssertEqual( SwiftTest.intArrayMethodStatic( referenceArray ), referenceArray )
XCTAssertEqual( instance.intArrayMethod( referenceArray ), referenceArray )
- XCTAssertEqual( SwiftTest.int2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
+// XCTAssertEqual( SwiftTest.int2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
XCTAssertEqual( instance.int2dArrayMethod( reference2dArray )[0], reference2dArray[0] )
}
@@ -183,26 +156,26 @@ class org_genie: XCTestCase {
SwiftTest.longFieldStatic = reference
XCTAssertEqual( SwiftTest.longFieldStatic, reference )
- instance.longField = reference
- XCTAssertEqual( instance.longField, reference )
+// instance.longField = reference
+// XCTAssertEqual( instance.longField, reference )
SwiftTest.longArrayFieldStatic = referenceArray
XCTAssertEqual( SwiftTest.longArrayFieldStatic, referenceArray )
- instance.longArrayField = referenceArray
- XCTAssertEqual( instance.longArrayField, referenceArray )
+// instance.longArrayField = referenceArray
+// XCTAssertEqual( instance.longArrayField, referenceArray )
SwiftTest.long2dArrayFieldStatic = reference2dArray
XCTAssertEqual( SwiftTest.long2dArrayFieldStatic[0], reference2dArray[0] )
- instance.long2dArrayField = reference2dArray
- XCTAssertEqual( instance.long2dArrayField[0], reference2dArray[0] )
+// instance.long2dArrayField = reference2dArray
+// XCTAssertEqual( instance.long2dArrayField[0], reference2dArray[0] )
- XCTAssertEqual( SwiftTest.longMethodStatic( reference ), reference )
+// XCTAssertEqual( SwiftTest.longMethodStatic( reference ), reference )
XCTAssertEqual( instance.longMethod( reference ), reference )
- XCTAssertEqual( SwiftTest.longArrayMethodStatic( referenceArray ), referenceArray )
+// XCTAssertEqual( SwiftTest.longArrayMethodStatic( referenceArray ), referenceArray )
XCTAssertEqual( instance.longArrayMethod( referenceArray ), referenceArray )
- XCTAssertEqual( SwiftTest.long2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
+// XCTAssertEqual( SwiftTest.long2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
XCTAssertEqual( instance.long2dArrayMethod( reference2dArray )[0], reference2dArray[0] )
}
@@ -213,26 +186,26 @@ class org_genie: XCTestCase {
SwiftTest.floatFieldStatic = reference
XCTAssertEqual( SwiftTest.floatFieldStatic, reference )
- instance.floatField = reference
- XCTAssertEqual( instance.floatField, reference )
+// instance.floatField = reference
+// XCTAssertEqual( instance.floatField, reference )
SwiftTest.floatArrayFieldStatic = referenceArray
XCTAssertEqual( SwiftTest.floatArrayFieldStatic, referenceArray )
- instance.floatArrayField = referenceArray
- XCTAssertEqual( instance.floatArrayField, referenceArray )
+// instance.floatArrayField = referenceArray
+// XCTAssertEqual( instance.floatArrayField, referenceArray )
SwiftTest.float2dArrayFieldStatic = reference2dArray
XCTAssertEqual( SwiftTest.float2dArrayFieldStatic[0], reference2dArray[0] )
- instance.float2dArrayField = reference2dArray
- XCTAssertEqual( instance.float2dArrayField[0], reference2dArray[0] )
+// instance.float2dArrayField = reference2dArray
+// XCTAssertEqual( instance.float2dArrayField[0], reference2dArray[0] )
- XCTAssertEqual( SwiftTest.floatMethodStatic( reference ), reference )
+// XCTAssertEqual( SwiftTest.floatMethodStatic( reference ), reference )
XCTAssertEqual( instance.floatMethod( reference ), reference )
- XCTAssertEqual( SwiftTest.floatArrayMethodStatic( referenceArray ), referenceArray )
+// XCTAssertEqual( SwiftTest.floatArrayMethodStatic( referenceArray ), referenceArray )
XCTAssertEqual( instance.floatArrayMethod( referenceArray ), referenceArray )
- XCTAssertEqual( SwiftTest.float2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
+// XCTAssertEqual( SwiftTest.float2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
XCTAssertEqual( instance.float2dArrayMethod( reference2dArray )[0], reference2dArray[0] )
}
@@ -243,26 +216,26 @@ class org_genie: XCTestCase {
SwiftTest.doubleFieldStatic = reference
XCTAssertEqual( SwiftTest.doubleFieldStatic, reference )
- instance.doubleField = reference
- XCTAssertEqual( instance.doubleField, reference )
+// instance.doubleField = reference
+// XCTAssertEqual( instance.doubleField, reference )
SwiftTest.doubleArrayFieldStatic = referenceArray
XCTAssertEqual( SwiftTest.doubleArrayFieldStatic, referenceArray )
- instance.doubleArrayField = referenceArray
- XCTAssertEqual( instance.doubleArrayField, referenceArray )
+// instance.doubleArrayField = referenceArray
+// XCTAssertEqual( instance.doubleArrayField, referenceArray )
SwiftTest.double2dArrayFieldStatic = reference2dArray
XCTAssertEqual( SwiftTest.double2dArrayFieldStatic[0], reference2dArray[0] )
- instance.double2dArrayField = reference2dArray
- XCTAssertEqual( instance.double2dArrayField[0], reference2dArray[0] )
+// instance.double2dArrayField = reference2dArray
+// XCTAssertEqual( instance.double2dArrayField[0], reference2dArray[0] )
- XCTAssertEqual( SwiftTest.doubleMethodStatic( reference ), reference )
+// XCTAssertEqual( SwiftTest.doubleMethodStatic( reference ), reference )
XCTAssertEqual( instance.doubleMethod( reference ), reference )
- XCTAssertEqual( SwiftTest.doubleArrayMethodStatic( referenceArray ), referenceArray )
+// XCTAssertEqual( SwiftTest.doubleArrayMethodStatic( referenceArray ), referenceArray )
XCTAssertEqual( instance.doubleArrayMethod( referenceArray ), referenceArray )
- XCTAssertEqual( SwiftTest.double2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
+// XCTAssertEqual( SwiftTest.double2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
XCTAssertEqual( instance.double2dArrayMethod( reference2dArray )[0], reference2dArray[0] )
}
@@ -273,35 +246,55 @@ class org_genie: XCTestCase {
SwiftTest.StringFieldStatic = reference
XCTAssertEqual( SwiftTest.StringFieldStatic, reference )
- instance.StringField = reference
- XCTAssertEqual( instance.StringField, reference )
+// instance.StringField = reference
+// XCTAssertEqual( instance.StringField, reference )
SwiftTest.StringArrayFieldStatic = referenceArray
XCTAssertEqual( SwiftTest.StringArrayFieldStatic, referenceArray )
- instance.StringArrayField = referenceArray
- XCTAssertEqual( instance.StringArrayField, referenceArray )
+// instance.StringArrayField = referenceArray
+// XCTAssertEqual( instance.StringArrayField, referenceArray )
SwiftTest.String2dArrayFieldStatic = reference2dArray
XCTAssertEqual( SwiftTest.String2dArrayFieldStatic[0], reference2dArray[0] )
- instance.String2dArrayField = reference2dArray
- XCTAssertEqual( instance.String2dArrayField[0], reference2dArray[0] )
+// instance.String2dArrayField = reference2dArray
+// XCTAssertEqual( instance.String2dArrayField[0], reference2dArray[0] )
- XCTAssertEqual( SwiftTest.StringMethodStatic( reference ), reference )
+// XCTAssertEqual( SwiftTest.StringMethodStatic( reference ), reference )
XCTAssertEqual( instance.StringMethod( reference ), reference )
- XCTAssertEqual( SwiftTest.StringArrayMethodStatic( referenceArray ), referenceArray )
+// XCTAssertEqual( SwiftTest.StringArrayMethodStatic( referenceArray ), referenceArray )
XCTAssertEqual( instance.StringArrayMethod( referenceArray ), referenceArray )
- XCTAssertEqual( SwiftTest.String2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
+// XCTAssertEqual( SwiftTest.String2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
XCTAssertEqual( instance.String2dArrayMethod( reference2dArray )[0], reference2dArray[0] )
}
- }
- func testPerformanceExample() {
- // This is an example of a performance test case.
- self.measure {
- // Put the code you want to measure the time of here.
- }
- }
+ if true {
+ let reference: SwiftHelloTest_TestListener = SwiftTestListener()
+ let referenceArray = [(reference)]
+ let reference2dArray = [referenceArray]
+
+ SwiftTest.TestListenerFieldStatic = reference
+ XCTAssertEqual( SwiftTest.TestListenerFieldStatic, reference )
+// instance.TestListenerField = reference
+// XCTAssertEqual( instance.TestListenerField, reference )
+
+ SwiftTest.TestListenerArrayFieldStatic = referenceArray
+ XCTAssertEqual( SwiftTest.TestListenerArrayFieldStatic, referenceArray )
+// instance.TestListenerArrayField = referenceArray
+// XCTAssertEqual( instance.TestListenerArrayField, referenceArray )
-}
+ SwiftTest.TestListener2dArrayFieldStatic = reference2dArray
+ XCTAssertEqual( SwiftTest.TestListener2dArrayFieldStatic[0], reference2dArray[0] )
+// instance.TestListener2dArrayField = reference2dArray
+// XCTAssertEqual( instance.TestListener2dArrayField[0], reference2dArray[0] )
+
+// XCTAssertEqual( SwiftTest.TestListenerMethodStatic( reference ), reference )
+ XCTAssertEqual( instance.TestListenerMethod( reference ), reference )
+
+// XCTAssertEqual( SwiftTest.TestListenerArrayMethodStatic( referenceArray ), referenceArray )
+ XCTAssertEqual( instance.TestListenerArrayMethod( referenceArray ), referenceArray )
+
+// XCTAssertEqual( SwiftTest.TestListener2dArrayMethodStatic( reference2dArray )[0], reference2dArray[0] )
+ XCTAssertEqual( instance.TestListener2dArrayMethod( reference2dArray )[0], reference2dArray[0] )
+ }
diff --git a/overrides.pl b/overrides.pl
index a5a0f43..76799ef 100755
--- a/overrides.pl
+++ b/overrides.pl
@@ -23,12 +23,11 @@
while ( $text =~ /([^\n:]+):.*? error: overriding declaration requires an 'override' keyword\n ([^{]*\{)/gm ) {
my ($source, $key) = ($1, $2);
- warn ">>$1<<\n";
- warn ">>$2<<\n";
+ warn ">>$1 $2<<\n";
next if !-f $source;
my $code = join '', IO::File->new( "< $source" )->getlines();
- if ( $code =~ s/(?new( "> $source" )->print( $code );
}
}
diff --git a/src/com/jh/SwiftHello.java b/src/com/jh/SwiftHello.java
deleted file mode 100644
index 741a6fe..0000000
--- a/src/com/jh/SwiftHello.java
+++ /dev/null
@@ -1,26 +0,0 @@
-
-package com.jh;
-
-public interface SwiftHello {
-
- public interface Listener {
-
- public void processNumber( double number );
-
- public void processText( String text );
-
- }
-
- public interface Responder {
-
- public void processedNumber( double number );
-
- public void processedText( String text );
-
- public String[] debug( String msg );
-
- public SwiftHelloTest.TestListener testResponder();
-
- }
-
-}
diff --git a/src/com/jh/SwiftHelloTest.java b/src/com/jh/SwiftHelloTest.java
deleted file mode 100644
index b44fc4c..0000000
--- a/src/com/jh/SwiftHelloTest.java
+++ /dev/null
@@ -1,158 +0,0 @@
-
-package com.jh;
-
-public interface SwiftHelloTest {
-
- public interface TestListener {
-
- public boolean booleanMethod( boolean arg );
- public boolean[] booleanArrayMethod( boolean arg[] );
- public boolean[][] boolean2dArrayMethod( boolean arg[][] );
-
- public byte byteMethod( byte arg );
- public byte[] byteArrayMethod( byte arg[] );
- public byte[][] byte2dArrayMethod( byte arg[][] );
-
- public char charMethod( char arg );
- public char[] charArrayMethod( char arg[] );
- public char[][] char2dArrayMethod( char arg[][] );
-
- public short shortMethod( short arg );
- public short[] shortArrayMethod( short arg[] );
- public short[][] short2dArrayMethod( short arg[][] );
-
- public int intMethod( int arg );
- public int[] intArrayMethod( int arg[] );
- public int[][] int2dArrayMethod( int arg[][] );
-
- public long longMethod( long arg );
- public long[] longArrayMethod( long arg[] );
- public long[][] long2dArrayMethod( long arg[][] );
-
- public float floatMethod( float arg );
- public float[] floatArrayMethod( float arg[] );
- public float[][] float2dArrayMethod( float arg[][] );
-
- public double doubleMethod( double arg );
- public double[] doubleArrayMethod( double arg[] );
- public double[][] double2dArrayMethod( double arg[][] );
-
- public String StringMethod( String arg );
- public String[] StringArrayMethod( String arg[] );
- public String[][] String2dArrayMethod( String arg[][] );
-
- }
-
- public static class TestResponderImpl implements TestListener {
-
- public boolean booleanMethod( boolean arg ) {
- return arg;
- }
-
- public boolean[] booleanArrayMethod( boolean arg[] ) {
- return arg;
- }
-
- public boolean[][] boolean2dArrayMethod( boolean arg[][] ) {
- return arg;
- }
-
- public byte byteMethod( byte arg ) {
- return arg;
- }
-
- public byte[] byteArrayMethod( byte arg[] ) {
- return arg;
- }
-
- public byte[][] byte2dArrayMethod( byte arg[][] ) {
- return arg;
- }
-
- public char charMethod( char arg ) {
- return arg;
- }
-
- public char[] charArrayMethod( char arg[] ) {
- return arg;
- }
-
- public char[][] char2dArrayMethod( char arg[][] ) {
- return arg;
- }
-
- public short shortMethod( short arg ) {
- return arg;
- }
-
- public short[] shortArrayMethod( short arg[] ) {
- return arg;
- }
-
- public short[][] short2dArrayMethod( short arg[][] ) {
- return arg;
- }
-
- public int intMethod( int arg ) {
- return arg;
- }
-
- public int[] intArrayMethod( int arg[] ) {
- return arg;
- }
-
- public int[][] int2dArrayMethod( int arg[][] ) {
- return arg;
- }
-
- public long longMethod( long arg ) {
- return arg;
- }
-
- public long[] longArrayMethod( long arg[] ) {
- return arg;
- }
-
- public long[][] long2dArrayMethod( long arg[][] ) {
- return arg;
- }
-
- public float floatMethod( float arg ) {
- return arg;
- }
-
- public float[] floatArrayMethod( float arg[] ) {
- return arg;
- }
-
- public float[][] float2dArrayMethod( float arg[][] ) {
- return arg;
- }
-
- public double doubleMethod( double arg ) {
- return arg;
- }
-
- public double[] doubleArrayMethod( double arg[] ) {
- return arg;
- }
-
- public double[][] double2dArrayMethod( double arg[][] ) {
- return arg;
- }
-
- public String StringMethod( String arg ) {
- return arg;
- }
-
- public String[] StringArrayMethod( String arg[] ) {
- return arg;
- }
-
- public String[][] String2dArrayMethod( String arg[][] ) {
- return arg;
- }
-
- }
-
-}
diff --git a/src/com/johnholdsworth/swiftbindings/SwiftHelloBinding.java b/src/com/johnholdsworth/swiftbindings/SwiftHelloBinding.java
new file mode 100644
index 0000000..28d7d50
--- /dev/null
+++ b/src/com/johnholdsworth/swiftbindings/SwiftHelloBinding.java
@@ -0,0 +1,67 @@
+
+package com.johnholdsworth.swiftbindings;
+
+import com.johnholdsworth.swiftbindings.SwiftHelloTypes.TextListener;
+import com.johnholdsworth.swiftbindings.SwiftHelloTypes.ListenerMap;
+import com.johnholdsworth.swiftbindings.SwiftHelloTypes.ListenerMapList;
+import com.johnholdsworth.swiftbindings.SwiftHelloTypes.StringMap;
+import com.johnholdsworth.swiftbindings.SwiftHelloTypes.StringMapList;
+
+public interface SwiftHelloBinding {
+
+ // Messages from JavaActivity to Swift
+ public interface Listener {
+
+ public void setCacheDir( String cacheDir );
+
+ public void processNumber( double number );
+
+ public void processText( String text );
+
+ public void processedMap( ListenerMap map );
+
+ public void processedMapList( ListenerMapList map );
+
+ public void processStringMap( StringMap map );
+
+ public void processStringMapList( StringMapList map );
+
+ public double throwException() throws Exception;
+
+ public SwiftHelloTest.TestListener testResponder( int loopback );
+
+ }
+
+ // Messages from Swift back to Activity
+ public interface Responder {
+
+ public void processedNumber( double number );
+
+ public void processedText( String text );
+
+ public void processedTextListener( TextListener text );
+
+ public void processedTextListenerArray( TextListener text[] );
+
+ public void processedTextListener2dArray( TextListener text[][] );
+
+ public void processMap( ListenerMap map );
+
+ public void processMapList( ListenerMapList map );
+
+ public void processedStringMap( StringMap map );
+
+ public void processedStringMapList( StringMapList map );
+
+ public double throwException() throws Exception;
+
+ public String[] debug( String msg );
+
+ public void onMainThread( Runnable runnable );
+
+ public SwiftHelloTest.TestListener testResponder( int loopback );
+
+ }
+
+}
+
diff --git a/src/com/johnholdsworth/swiftbindings/SwiftHelloTest.java b/src/com/johnholdsworth/swiftbindings/SwiftHelloTest.java
new file mode 100644
index 0000000..acd414e
--- /dev/null
+++ b/src/com/johnholdsworth/swiftbindings/SwiftHelloTest.java
@@ -0,0 +1,391 @@
+
+// auto generated by ../../../../gentests.rb
+
+package com.johnholdsworth.swiftbindings;
+
+import com.johnholdsworth.swiftbindings.SwiftHelloTypes.TextListener;
+import com.johnholdsworth.swiftbindings.SwiftHelloTypes.ListenerMap;
+import com.johnholdsworth.swiftbindings.SwiftHelloTypes.ListenerMapList;
+
+public interface SwiftHelloTest {
+
+ public interface TestListener {
+
+ public void setLoopback( TestListener loopback );
+
+ public boolean booleanMethod( boolean arg );
+ public boolean[] booleanArrayMethod( boolean arg[] );
+ public boolean[][] boolean2dArrayMethod( boolean arg[][] );
+
+ public byte byteMethod( byte arg );
+ public byte[] byteArrayMethod( byte arg[] );
+ public byte[][] byte2dArrayMethod( byte arg[][] );
+
+ public char charMethod( char arg );
+ public char[] charArrayMethod( char arg[] );
+ public char[][] char2dArrayMethod( char arg[][] );
+
+ public short shortMethod( short arg );
+ public short[] shortArrayMethod( short arg[] );
+ public short[][] short2dArrayMethod( short arg[][] );
+
+ public int intMethod( int arg );
+ public int[] intArrayMethod( int arg[] );
+ public int[][] int2dArrayMethod( int arg[][] );
+
+ public long longMethod( long arg );
+ public long[] longArrayMethod( long arg[] );
+ public long[][] long2dArrayMethod( long arg[][] );
+
+ public float floatMethod( float arg );
+ public float[] floatArrayMethod( float arg[] );
+ public float[][] float2dArrayMethod( float arg[][] );
+
+ public double doubleMethod( double arg );
+ public double[] doubleArrayMethod( double arg[] );
+ public double[][] double2dArrayMethod( double arg[][] );
+
+ public String StringMethod( String arg );
+ public String[] StringArrayMethod( String arg[] );
+ public String[][] String2dArrayMethod( String arg[][] );
+
+ public TestListener TestListenerMethod( TestListener arg );
+ public TestListener[] TestListenerArrayMethod( TestListener arg[] );
+ public TestListener[][] TestListener2dArrayMethod( TestListener arg[][] );
+
+ public ListenerMap testMap( ListenerMap arg );
+ public ListenerMapList testMapList( ListenerMapList arg );
+
+ }
+
+ public static class TestResponderAdapter implements TestListener {
+
+ public TestListener loopback;
+
+ public void setLoopback( TestListener loopback ) {
+ this.loopback = loopback;
+ }
+
+ public boolean booleanMethod( boolean arg ) {
+ return loopback != null ? loopback.booleanMethod( arg ) : arg;
+ }
+
+ public boolean[] booleanArrayMethod( boolean arg[] ) {
+ return loopback != null ? loopback.booleanArrayMethod( arg ) : arg;
+ }
+
+ public boolean[][] boolean2dArrayMethod( boolean arg[][] ) {
+ return loopback != null ? loopback.boolean2dArrayMethod( arg ) : arg;
+ }
+
+ public byte byteMethod( byte arg ) {
+ return loopback != null ? loopback.byteMethod( arg ) : arg;
+ }
+
+ public byte[] byteArrayMethod( byte arg[] ) {
+ return loopback != null ? loopback.byteArrayMethod( arg ) : arg;
+ }
+
+ public byte[][] byte2dArrayMethod( byte arg[][] ) {
+ return loopback != null ? loopback.byte2dArrayMethod( arg ) : arg;
+ }
+
+ public char charMethod( char arg ) {
+ return loopback != null ? loopback.charMethod( arg ) : arg;
+ }
+
+ public char[] charArrayMethod( char arg[] ) {
+ return loopback != null ? loopback.charArrayMethod( arg ) : arg;
+ }
+
+ public char[][] char2dArrayMethod( char arg[][] ) {
+ return loopback != null ? loopback.char2dArrayMethod( arg ) : arg;
+ }
+
+ public short shortMethod( short arg ) {
+ return loopback != null ? loopback.shortMethod( arg ) : arg;
+ }
+
+ public short[] shortArrayMethod( short arg[] ) {
+ return loopback != null ? loopback.shortArrayMethod( arg ) : arg;
+ }
+
+ public short[][] short2dArrayMethod( short arg[][] ) {
+ return loopback != null ? loopback.short2dArrayMethod( arg ) : arg;
+ }
+
+ public int intMethod( int arg ) {
+ return loopback != null ? loopback.intMethod( arg ) : arg;
+ }
+
+ public int[] intArrayMethod( int arg[] ) {
+ return loopback != null ? loopback.intArrayMethod( arg ) : arg;
+ }
+
+ public int[][] int2dArrayMethod( int arg[][] ) {
+ return loopback != null ? loopback.int2dArrayMethod( arg ) : arg;
+ }
+
+ public long longMethod( long arg ) {
+ return loopback != null ? loopback.longMethod( arg ) : arg;
+ }
+
+ public long[] longArrayMethod( long arg[] ) {
+ return loopback != null ? loopback.longArrayMethod( arg ) : arg;
+ }
+
+ public long[][] long2dArrayMethod( long arg[][] ) {
+ return loopback != null ? loopback.long2dArrayMethod( arg ) : arg;
+ }
+
+ public float floatMethod( float arg ) {
+ return loopback != null ? loopback.floatMethod( arg ) : arg;
+ }
+
+ public float[] floatArrayMethod( float arg[] ) {
+ return loopback != null ? loopback.floatArrayMethod( arg ) : arg;
+ }
+
+ public float[][] float2dArrayMethod( float arg[][] ) {
+ return loopback != null ? loopback.float2dArrayMethod( arg ) : arg;
+ }
+
+ public double doubleMethod( double arg ) {
+ return loopback != null ? loopback.doubleMethod( arg ) : arg;
+ }
+
+ public double[] doubleArrayMethod( double arg[] ) {
+ return loopback != null ? loopback.doubleArrayMethod( arg ) : arg;
+ }
+
+ public double[][] double2dArrayMethod( double arg[][] ) {
+ return loopback != null ? loopback.double2dArrayMethod( arg ) : arg;
+ }
+
+ public String StringMethod( String arg ) {
+ return loopback != null ? loopback.StringMethod( arg ) : arg;
+ }
+
+ public String[] StringArrayMethod( String arg[] ) {
+ return loopback != null ? loopback.StringArrayMethod( arg ) : arg;
+ }
+
+ public String[][] String2dArrayMethod( String arg[][] ) {
+ return loopback != null ? loopback.String2dArrayMethod( arg ) : arg;
+ }
+
+ public TestListener TestListenerMethod( TestListener arg ) {
+ return loopback != null ? loopback.TestListenerMethod( arg ) : arg;
+ }
+
+ public TestListener[] TestListenerArrayMethod( TestListener arg[] ) {
+ return loopback != null ? loopback.TestListenerArrayMethod( arg ) : arg;
+ }
+
+ public TestListener[][] TestListener2dArrayMethod( TestListener arg[][] ) {
+ return loopback != null ? loopback.TestListener2dArrayMethod( arg ) : arg;
+ }
+
+ public ListenerMap testMap( ListenerMap arg ) {
+ return loopback != null ? loopback.testMap( arg ) : arg;
+ }
+
+ public ListenerMapList testMapList( ListenerMapList arg ) {
+ return loopback != null ? loopback.testMapList( arg ) : arg;
+ }
+
+ }
+
+ public static class SwiftTestListener extends TestResponderAdapter {
+
+ static int tcount = 0;
+
+ public void respond( TestListener responder ) {
+ tcount += 1;
+ System.out.println("Java -> Swift "+tcount+"...");
+
+
+ if ( true ) {
+ boolean reference = true;
+ boolean referenceArray[] = new boolean [] {reference};
+ boolean reference2dArray[][] = new boolean [][] {referenceArray};
+
+ boolean response = responder.booleanMethod( reference );
+ boolean responseArray[] = responder.booleanArrayMethod( referenceArray );
+ boolean response2dArray[][] = responder.boolean2dArrayMethod( reference2dArray );
+
+ if ( response != reference ) {
+ System.out.println("Bool: "+response+" != "+reference);
+ }
+ if ( responseArray[0] != referenceArray[0] ) {
+ System.out.println("Bool: "+responseArray[0]+" != "+referenceArray[0]);
+ }
+ if ( response2dArray[0][0] != reference2dArray[0][0] ) {
+ System.out.println("Bool: "+response2dArray[0][0]+" != "+reference2dArray[0][0]);
+ }
+ }
+
+ if ( true ) {
+ byte reference = 123;
+ byte referenceArray[] = new byte [] {reference};
+ byte reference2dArray[][] = new byte [][] {referenceArray};
+
+ byte response = responder.byteMethod( reference );
+ byte responseArray[] = responder.byteArrayMethod( referenceArray );
+ byte response2dArray[][] = responder.byte2dArrayMethod( reference2dArray );
+
+ if ( response != reference ) {
+ System.out.println("Int8: "+response+" != "+reference);
+ }
+ if ( responseArray[0] != referenceArray[0] ) {
+ System.out.println("Int8: "+responseArray[0]+" != "+referenceArray[0]);
+ }
+ if ( response2dArray[0][0] != reference2dArray[0][0] ) {
+ System.out.println("Int8: "+response2dArray[0][0]+" != "+reference2dArray[0][0]);
+ }
+ }
+
+ if ( true ) {
+ char reference = 123;
+ char referenceArray[] = new char [] {reference};
+ char reference2dArray[][] = new char [][] {referenceArray};
+
+ char response = responder.charMethod( reference );
+ char responseArray[] = responder.charArrayMethod( referenceArray );
+ char response2dArray[][] = responder.char2dArrayMethod( reference2dArray );
+
+ if ( response != reference ) {
+ System.out.println("UInt16: "+response+" != "+reference);
+ }
+ if ( responseArray[0] != referenceArray[0] ) {
+ System.out.println("UInt16: "+responseArray[0]+" != "+referenceArray[0]);
+ }
+ if ( response2dArray[0][0] != reference2dArray[0][0] ) {
+ System.out.println("UInt16: "+response2dArray[0][0]+" != "+reference2dArray[0][0]);
+ }
+ }
+
+ if ( true ) {
+ short reference = 123;
+ short referenceArray[] = new short [] {reference};
+ short reference2dArray[][] = new short [][] {referenceArray};
+
+ short response = responder.shortMethod( reference );
+ short responseArray[] = responder.shortArrayMethod( referenceArray );
+ short response2dArray[][] = responder.short2dArrayMethod( reference2dArray );
+
+ if ( response != reference ) {
+ System.out.println("Int16: "+response+" != "+reference);
+ }
+ if ( responseArray[0] != referenceArray[0] ) {
+ System.out.println("Int16: "+responseArray[0]+" != "+referenceArray[0]);
+ }
+ if ( response2dArray[0][0] != reference2dArray[0][0] ) {
+ System.out.println("Int16: "+response2dArray[0][0]+" != "+reference2dArray[0][0]);
+ }
+ }
+
+ if ( true ) {
+ int reference = 123;
+ int referenceArray[] = new int [] {reference};
+ int reference2dArray[][] = new int [][] {referenceArray};
+
+ int response = responder.intMethod( reference );
+ int responseArray[] = responder.intArrayMethod( referenceArray );
+ int response2dArray[][] = responder.int2dArrayMethod( reference2dArray );
+
+ if ( response != reference ) {
+ System.out.println("Int: "+response+" != "+reference);
+ }
+ if ( responseArray[0] != referenceArray[0] ) {
+ System.out.println("Int: "+responseArray[0]+" != "+referenceArray[0]);
+ }
+ if ( response2dArray[0][0] != reference2dArray[0][0] ) {
+ System.out.println("Int: "+response2dArray[0][0]+" != "+reference2dArray[0][0]);
+ }
+ }
+
+ if ( true ) {
+ long reference = 123;
+ long referenceArray[] = new long [] {reference};
+ long reference2dArray[][] = new long [][] {referenceArray};
+
+ long response = responder.longMethod( reference );
+ long responseArray[] = responder.longArrayMethod( referenceArray );
+ long response2dArray[][] = responder.long2dArrayMethod( reference2dArray );
+
+ if ( response != reference ) {
+ System.out.println("Int64: "+response+" != "+reference);
+ }
+ if ( responseArray[0] != referenceArray[0] ) {
+ System.out.println("Int64: "+responseArray[0]+" != "+referenceArray[0]);
+ }
+ if ( response2dArray[0][0] != reference2dArray[0][0] ) {
+ System.out.println("Int64: "+response2dArray[0][0]+" != "+reference2dArray[0][0]);
+ }
+ }
+
+ if ( true ) {
+ float reference = 123;
+ float referenceArray[] = new float [] {reference};
+ float reference2dArray[][] = new float [][] {referenceArray};
+
+ float response = responder.floatMethod( reference );
+ float responseArray[] = responder.floatArrayMethod( referenceArray );
+ float response2dArray[][] = responder.float2dArrayMethod( reference2dArray );
+
+ if ( response != reference ) {
+ System.out.println("Float: "+response+" != "+reference);
+ }
+ if ( responseArray[0] != referenceArray[0] ) {
+ System.out.println("Float: "+responseArray[0]+" != "+referenceArray[0]);
+ }
+ if ( response2dArray[0][0] != reference2dArray[0][0] ) {
+ System.out.println("Float: "+response2dArray[0][0]+" != "+reference2dArray[0][0]);
+ }
+ }
+
+ if ( true ) {
+ double reference = 123;
+ double referenceArray[] = new double [] {reference};
+ double reference2dArray[][] = new double [][] {referenceArray};
+
+ double response = responder.doubleMethod( reference );
+ double responseArray[] = responder.doubleArrayMethod( referenceArray );
+ double response2dArray[][] = responder.double2dArrayMethod( reference2dArray );
+
+ if ( response != reference ) {
+ System.out.println("Double: "+response+" != "+reference);
+ }
+ if ( responseArray[0] != referenceArray[0] ) {
+ System.out.println("Double: "+responseArray[0]+" != "+referenceArray[0]);
+ }
+ if ( response2dArray[0][0] != reference2dArray[0][0] ) {
+ System.out.println("Double: "+response2dArray[0][0]+" != "+reference2dArray[0][0]);
+ }
+ }
+
+ if ( true ) {
+ String reference = "123";
+ String referenceArray[] = new String [] {reference};
+ String reference2dArray[][] = new String [][] {referenceArray};
+
+ String response = responder.StringMethod( reference );
+ String responseArray[] = responder.StringArrayMethod( referenceArray );
+ String response2dArray[][] = responder.String2dArrayMethod( reference2dArray );
+ }
+
+ if ( true ) {
+ TestListener reference = new SwiftTestListener();
+ TestListener referenceArray[] = new TestListener [] {reference};
+ TestListener reference2dArray[][] = new TestListener [][] {referenceArray};
+
+ TestListener response = responder.TestListenerMethod( reference );
+ TestListener responseArray[] = responder.TestListenerArrayMethod( referenceArray );
+ TestListener response2dArray[][] = responder.TestListener2dArrayMethod( reference2dArray );
+ }
+ }
+
+ }
+
+}
diff --git a/src/com/johnholdsworth/swiftbindings/SwiftHelloTypes.java b/src/com/johnholdsworth/swiftbindings/SwiftHelloTypes.java
new file mode 100644
index 0000000..d5ec454
--- /dev/null
+++ b/src/com/johnholdsworth/swiftbindings/SwiftHelloTypes.java
@@ -0,0 +1,88 @@
+
+// Shared types/interfaces between Java and Swift in example applications
+
+package com.johnholdsworth.swiftbindings;
+
+import java.util.Map;
+import java.util.HashMap;
+
+public interface SwiftHelloTypes {
+
+ // An example of publishing an object to Java.
+ // Add the associated protocol to an class and
+ // objects can be passed to a responder message.
+ public interface TextListener {
+ public String getText();
+ }
+
+ // These are required because of type erasure in Java jars
+ public static class ListenerMap extends HashMap {
+ public static Class> valueClass() {
+ return TextListener.class;
+ }
+ }
+
+ public static class ListenerMapList extends HashMap {
+ public static Class> valueClass() {
+ return (new TextListener [] {}).getClass();
+ }
+ }
+
+ public static class StringMap extends HashMap {
+ public static Class> valueClass() {
+ return String.class;
+ }
+ public StringMap() {
+ super();
+ }
+ @SuppressWarnings("unchecked")
+ public StringMap(Map map) {
+ super(map);
+ }
+ }
+
+ public static class StringMapList extends HashMap {
+ public static Class> valueClass() {
+ return (new String [] {}).getClass();
+ }
+ public StringMapList() {
+ super();
+ }
+ @SuppressWarnings("unchecked")
+ public StringMapList(Map map) {
+ super(map);
+ }
+ }
+
+ public static enum Planet {
+ MERCURY (3.303e+23, 2.4397e6),
+ VENUS (4.869e+24, 6.0518e6),
+ EARTH (5.976e+24, 6.37814e6),
+ MARS (6.421e+23, 3.3972e6),
+ JUPITER (1.9e+27, 7.1492e7),
+ SATURN (5.688e+26, 6.0268e7),
+ URANUS (8.686e+25, 2.5559e7),
+ NEPTUNE (1.024e+26, 2.4746e7);
+
+ private final double mass; // in kilograms
+ private final double radius; // in meters
+ Planet(double mass, double radius) {
+ this.mass = mass;
+ this.radius = radius;
+ }
+ public double mass() { return mass; }
+ public double radius() { return radius; }
+
+ // universal gravitational constant (m3 kg-1 s-2)
+ public static final double G = 6.67300E-11;
+
+ public double surfaceGravity() {
+ return G * mass / (radius * radius);
+ }
+ public double surfaceWeight(double otherMass) {
+ return otherMass * surfaceGravity();
+ }
+ }
+}
+
+
diff --git a/src/genswift.java b/src/genswift.java
index f7a1cc4..4173b69 100644
--- a/src/genswift.java
+++ b/src/genswift.java
@@ -1,20 +1,27 @@
//
// genswift.java
-// SwiftJava
+// https://github.com/SwiftJava/SwiftJava
+// $Id: //depot/SwiftJava/src/genswift.java#95 $
//
// Created by John Holdsworth on 14/07/2016.
// Copyright (c) 2016 John Holdsworth. All rights reserved.
+// MIT License
+//
+// See ../genswift.sh for details on invocation.
+// Code generator for Swift written in the style of a Perl script.
+//
+// Requires https://github.com/SwiftJava/java_swift release 2.1.0+
//
-// See genswift.sh..
// List of classes to be generated received on stdin which is the
// output of a grep on the target jar for the classes of interest.
//
// The ordering of frameworks can be specified in argv[0] otherwise
// the ordering is found by processing all files then re-processing
// after reordering to minimise the number of forward references in
-// the generated code.
+// the generated code. argv[1] can be the destination directory for
+/// generated Swift and argv[2] can be the root for Java generation.
//
-// For Java classes a Swift class of the same name is generated in
+// For Java classes, a Swift class of the same name is generated in
// a framework derived from the first two packages of the classes
// full name (e.g. java_lang, java_util.) For Java interfaces a
// Swift protocol is generated along with a concrete class with
@@ -27,294 +34,260 @@
// have Swift methods in a subclass called from Java. This is used
// in threading and in event processing in Swift. These "Base" classes
// are also generated for concrete classes with names ending in "Adapter".
+// These seemingly arbitrary conventions are taken from java.awt & swing.
//
// A variation on this forwarding of Java methods into Swift is where
// a method is generally a subclasses responsibility to implement such
-// as the method java.awt.Canvas.paint(). A list of these methods is
-// maintained in this source and where one is encountered a "Base"
+// as the method java.awt.Canvas.paint(). A list of these methods must
+// be maintained in this source and where one is encountered a "Base"
// class is generated allowing the method to be implemented in Swift.
//
-// For this proxy of Java methods into Swift support is required on
+// For this proxy of Java methods into Swift, support is required on
// the Java side of the divide. Proxy classes delegating to "native"
// implementations of the relevant method are generated and must be
// available to the application. On UNIX this is through the jar file
-// ~/.genie.jar built from these generated sources using ../genjar.sh.
+// ~/.swiftjava.jar built from these generated sources using ../genjar.sh.
+//
+//
+// MIT License
+//
+// Copyright (c) 2016-7, John Holdsworth
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy of this
+// software and associated documentation files (the "Software"), to deal in the Software
+// without restriction, including without limitation the rights to use, copy, modify, merge,
+// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
+// to whom the Software is furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in all copies
+// or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
+// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
import java.io.*;
import java.util.HashMap;
import java.util.ArrayList;
+import java.util.Comparator;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
class genswift {
- static class Parameter {
- Executable executable;
- int number;
-
- public Class> getType() {
- return executable.constructor != null ?
- executable.constructor.getParameterTypes()[number] :
- executable.method.getParameterTypes()[number];
- }
-
- public String getName() {
- return executable.parameterNames != null ?
- executable.parameterNames[number] : "arg"+number;
- }
- }
-
- static class Executable {
- java.lang.reflect.Constructor> constructor;
- java.lang.reflect.Method method;
- Parameter parameters[];
- String parameterNames[];
-
- public int getModifiers() {
- return constructor != null ?
- constructor.getModifiers() :
- method.getModifiers();
- }
-
- public int getParameterCount() {
- return constructor != null ?
- constructor.getParameterTypes().length :
- method.getParameterTypes().length;
- }
-
- public Parameter [] getParameters() {
- if ( parameters == null ) {
- int size = getParameterCount();
- parameters = new Parameter[size];
- if ( size != 0 ) {
- for ( int i=0 ; i executableClass = executable.getClass();
- java.lang.reflect.Method paramsMethod = executableClass.getMethod("getParameters", new Class>[] {});
-
- Object realParameters[] = (Object []) paramsMethod.invoke(executable, new Object[] {});
- Class> parametersClass = realParameters[0].getClass();
- java.lang.reflect.Method nameMethod = parametersClass.getMethod("getName", new Class>[] {});
-
- parameterNames = new String[size];
- for ( int i=0 ; i [] getExceptionTypes() {
- return constructor != null ?
- constructor.getExceptionTypes() :
- method.getExceptionTypes();
- }
-
- }
-
- static class Constructor extends Executable {
- public String toString() {
- return constructor.toString();
- }
- }
-
- static Constructor> newConstructor( java.lang.reflect.Constructor> constructor ) {
- if ( constructor == null )
- return null;
- Constructor> proxy = new Constructor();
- proxy.constructor = constructor;
- return proxy;
- }
-
- static class Method extends Executable {
- public String getName() {
- return method.getName();
- }
- public Class> getReturnType() {
- return method.getReturnType();
- }
- public String toString() {
- return method.toString();
- }
- }
-
- static Method newMethod( java.lang.reflect.Method method ) {
- if ( method == null )
- return null;
- Method proxy = new Method();
- proxy.method = method;
- return proxy;
- }
-
- static void print( String s ) {
- System.out.println(s);
- }
-
- static String Unclassed = "Unclassed";
- static String pathToWriteSource = "./";
- static String organisation = "org.genie.";
- static String proxySourcePath = pathToWriteSource+"src/"+organisation.replace('.', '/');
- static String repoBase = "https://github.com/SwiftJava/";
-
- boolean isUnclassed( Class> type ) {
- return swiftTypeFor(type, false, true).indexOf(Unclassed) != -1;
+ static void print( String s ) {
+ System.out.println(s);
}
- boolean excludeFromCodeGeneration( Class> clazz ) {
- return !Modifier.isPublic(clazz.getModifiers()) ||
- classPrefix(clazz.getName()).equals("java_util") && clazz.getName().indexOf('$') != -1;
+ static void progress( Object o ) {
+ //print( o.toString() );
}
- boolean supportsProxyCallback( Class> clazz ) {
- String clazzName = clazz.getName();
- return clazz == java.lang.Runnable.class || isAdapter()
- || clazz.isInterface() && (clazzName.endsWith("Listener") || clazzName.endsWith("Handler") || clazzName.endsWith("Manager"));
- }
+ static int apiVersion = 2;
- boolean isAdapter() {
- return classSuffix.endsWith("Adapter") && clazz != java.awt.dnd.DropTargetAdapter.class; // missing drop()?
+ static String Unavailable = "Unavailable";
+ static String pathToWriteSource = "./";
+ static String organisation = "org.swiftjava.";
+ static String proxySourcePath = organisation.replace('.', '/');
+ static String repoBase = "https://github.com/SwiftJava/";
+ static boolean sortMembers = true, convertEnums = true, returnImplicitlyUnwrapped = true;
+
+ boolean isUnavailable( Class> type ) {
+ return notVoid(type) && swiftTypeFor(type, false, true).indexOf(Unavailable) != -1;
}
+ static HashMap swiftKeywords = new HashMap() {
+ private static final long serialVersionUID = 1L;
+
+ {
+ put( "init", true );
+ put( "self", true );
+ put( "new", true );
+ put( "in", true );
+ put( "is", true );
+ put( "operator", true );
+ put( "subscript", true );
+ put( "where", true );
+ put( "as", true );
+ }
+ };
+
static HashMap swiftReserved = new HashMap() {
- private static final long serialVersionUID = 1L;
-
- {
- put( Float.class.getName(), true );
- put( Double.class.getName(), true );
- put( Object.class.getName(), true );
- put( String.class.getName(), true );
- put( Comparable.class.getName(), true );
- put( Error.class.getName(), true );
- put( SecurityException.class.getName(), true );
- put( java.util.Set.class.getName(), true );
- put( java.util.Locale.class.getName(), true );
- put( java.util.Comparator.class.getName(), true );
- put( javax.swing.text.TabSet.class.getName(), true );
- }
+ private static final long serialVersionUID = 1L;
+
+ {
+ put( Float.class.getName(), true );
+ put( Double.class.getName(), true );
+ put( Class.class.getName(), true );
+ put( Object.class.getName(), true );
+ put( Enum.class.getName(), true );
+ put( Thread.class.getName(), true );
+ put( String.class.getName(), true );
+ put( Comparable.class.getName(), true );
+ put( Error.class.getName(), true );
+ put( SecurityException.class.getName(), true );
+ put( java.util.Map.class.getName(), true );
+ put( java.util.Set.class.getName(), true );
+ put( java.util.Locale.class.getName(), true );
+ put( java.util.Comparator.class.getName(), true );
+ put( javax.swing.text.TabSet.class.getName(), true );
+ }
+ };
+
+ static HashMap keyClasses = new HashMap() {
+ private static final long serialVersionUID = 1L;
+
+ {
+ put( Object.class.getName(), true );
+ put( Class.class.getName(), true );
+ put( Enum.class.getName(), true );
+ put( Thread.class.getName(), true );
+ put( Runnable.class.getName(), true );
+ put( Throwable.class.getName(), true );
+ put( Exception.class.getName(), true );
+ put( java.util.Set.class.getName(), true );
+ put( java.util.Map.class.getName(), true );
+ put( java.util.HashMap.class.getName(), true );
+ }
};
static HashMap subclassResponsibilities = new HashMap() {
- private static final long serialVersionUID = 1L;
-
- {
- put( "public void java.awt.Window.paint(java.awt.Graphics)", true );
- put( "public void java.awt.Canvas.paint(java.awt.Graphics)", true );
- put( "public void java.awt.Canvas.update(java.awt.Graphics)", true );
- put( "public java.awt.Component javax.swing.JTable.prepareRenderer(javax.swing.table.TableCellRenderer,int,int)", true );
- put( "public void javax.swing.text.PlainDocument.insertString(int,java.lang.String,javax.swing.text.AttributeSet) throws javax.swing.text.BadLocationException", true );
- put( "public java.awt.Component javax.swing.table.DefaultTableCellRenderer.getTableCellRendererComponent(javax.swing.JTable,java.lang.Object,boolean,boolean,int,int)", true );
- put( "public boolean javax.swing.table.DefaultTableModel.isCellEditable(int,int)", true );
- put( "public void javax.swing.JTable.changeSelection(int,int,boolean,boolean)", true );
- }
+ private static final long serialVersionUID = 1L;
+
+ {
+ put( "public void java.awt.Window.paint(java.awt.Graphics)", true );
+ put( "public void java.awt.Canvas.paint(java.awt.Graphics)", true );
+ put( "public void java.awt.Canvas.update(java.awt.Graphics)", true );
+ put( "public java.awt.Component javax.swing.JTable.prepareRenderer(javax.swing.table.TableCellRenderer,int,int)", true );
+ put( "public void javax.swing.text.PlainDocument.insertString(int,java.lang.String,javax.swing.text.AttributeSet) throws javax.swing.text.BadLocationException", true );
+ put( "public java.awt.Component javax.swing.table.DefaultTableCellRenderer.getTableCellRendererComponent(javax.swing.JTable,java.lang.Object,boolean,boolean,int,int)", true );
+ put( "public boolean javax.swing.table.DefaultTableModel.isCellEditable(int,int)", true );
+ put( "public void javax.swing.JTable.changeSelection(int,int,boolean,boolean)", true );
+ }
};
static HashMap swiftTypes = new HashMap() {
- private static final long serialVersionUID = 1L;
-
- {
- put( "boolean", "Bool");
- put( "byte", "Int8");
- put( "char", "UInt16");
- put( "short", "Int16");
- put( "int", "Int");
- put( "long", "Int64");
- put( "float", "Float");
- put( "double", "Double");
- put( Float.class.getName(), "Float");
- put( String.class.getName(), "String");
- }
+ private static final long serialVersionUID = 1L;
+
+ {
+ put( "boolean", "Bool");
+ put( "byte", "Int8");
+ put( "char", "UInt16");
+ put( "short", "Int16");
+ put( "int", "Int");
+ put( "long", "Int64");
+ put( "float", "Float");
+ put( "double", "Double");
+ put( Float.class.getName(), "Float");
+ put( String.class.getName(), "String");
+ }
};
static HashMap arrayTypes = new HashMap