diff --git a/.classpath b/.classpath
index fb50116..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 81db307..654df50 160000
--- a/CJavaVM
+++ b/CJavaVM
@@ -1 +1 @@
-Subproject commit 81db307ef23f62643807fb32a2ec712466750d63
+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 e1e2dd5..17d44f3 100644
--- a/JDBC/AppDelegate.swift
+++ b/JDBC/AppDelegate.swift
@@ -61,11 +61,11 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSTableViewDataSource, NSTab
return
}
- // Use Thread class to run in background to get the correct class loaderwith& classpath
- Thread( {
+ // Use Thread class to run in background to get the correct class loader & classpath
+ 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..Proxy.java
+This generates Swift classes and a third Java source src/org/swiftjava/your_package/YourAppProxy.java
that also needs to be included in your project. Consult the script genhello.sh and project
"swift-android-samples/swifthello" for details. The source "swift-android-samples/swifthello/src/main/swift/Sources/main.swift"
shows how to set this up with a native method called from the main activity.
@@ -144,12 +143,12 @@ shows how to set this up with a native method called from the main activity.
### Forward, Runnable, Listener, Adapter, subclass responsibility and Base classes.
For every Java interface the code generator generates a Swift Protocol along
-with a Forward class in instance of which conforms to the protocol and
+with a ProtocolForward class an instance of which conforms to the protocol and
can be used to message Java instances conforming to the interface/protocol.
For the Runnable interface used in threading the converse needs to be possible
where Java code can call through to Swift code. This is performed using a Java
-proxy class which has a pointer to the associated Swift object and a "native"e
+proxy class which has a pointer to the associated Swift object and a "native"
implementation of the "run()" method that calls through to Swift. On the Swift
side this is surfaced as the "RunnableBase" class which can be subclassed to
provide a Swift implementation of the "run()" method callable from Java.
@@ -157,7 +156,7 @@ provide a Swift implementation of the "run()" method callable from Java.
This approach is also taken for processing events and all interfaces with names
ending in "Listener", "Manager" or "Handler" also have "Base" classes generated
for subclassing along with Java Proxy classes. On macOS and Linux these classes
-are compiled into a jar file ~/genie.jar using the genjar.sh script for this to work.
+are compiled into a jar file ~/swiftjava.jar using the genjar.sh script for this to work.
```Swift
class MyActionListener: ActionListenerBase {
@@ -169,6 +168,11 @@ are compiled into a jar file ~/genie.jar using the genjar.sh script for this to
quitButton.addActionListener(MyActionListener());
```
+Any interface/protocol from a Java interface can be added to a class to enable it to
+be passed to Java provide it's name ends in `Listener`. The implementation is a little
+complex but does not have an appreciable overhead. structs can also be made accesable
+to Java in this way but the object will no be live i.e. a coy of the struct will be taken.
+
Some event processing is also done by subclassing concrete classes that have names
ending in "Adapter". Slightly modified Swift "Base" classes and Java Proxies are also
generated for this. Other classes have methods that are intended to be responsibility
@@ -176,21 +180,26 @@ of the subclasses such as java.awt.Canvas.paint(). A list of these methods needs
maintained in the code generator unfortunately. If one of these methods encountered
a Base class and Proxy is generated for the concrete class that can be subclassed.
-As these "Base" subclasses cant close over variable in your program you may want to
+As these "Base" subclasses can't close over variables in your program you may want to
have an initialiser to capture these instead. There is a bit of a standard dance
-that needs to be performed. First instantiate the "Base" superclass and pass this
-to the designated initialiser of your superclass. Due to the use of generics you'll
-also be prompted to provide a null implementation of the required initialiser.
+that needs to be performed. Instantiate the "Base" superclass and assign it's
+javaObject to your classes' javaObject. Due to the use of generics you'll
+also be prompted to provide a null implementation of the "required" initialiser.
```Swift
+class MyCanvas: CanvasBase {
+
init(imageProducer:ImageProducer) {
- super.init( javaObject: CanvasBase().javaObject )
+ super.init(javaObject: nil)
+ inherit(CanvasBase())
image = createImage(imageProducer)
}
required init(javaObject: jobject?) {
fatalError("init(javaObject:) has not been implemented")
}
+
+ ...
```
Consult the Swing examples code for further details.
@@ -214,9 +223,6 @@ PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
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.
-This License does not apply to any generated code in the java* submodules which
-are provided under the provisions of "Fair Use" but your use is ultimately subject
-to the Oracle Binary Code License Agreement available here:
-
-[http://www.oracle.com/technetwork/java/javase/terms/license/index.html](http://www.oracle.com/technetwork/java/javase/terms/license/index.html)
-
+This License does not apply to the code generated from the Apple distribution of the Java VM
+which are provided under the provisions of "Fair Use" and your use is ultimately subject
+to the original License Agreement.
diff --git a/SwiftJava.xcodeproj/project.pbxproj b/SwiftJava.xcodeproj/project.pbxproj
index ce9f3b6..d9e47e6 100644
--- a/SwiftJava.xcodeproj/project.pbxproj
+++ b/SwiftJava.xcodeproj/project.pbxproj
@@ -7,15 +7,18 @@
objects = {
/* Begin PBXBuildFile section */
- BB19B4421D673986002F5586 /* README.md in Sources */ = {isa = PBXBuildFile; fileRef = BB19B4411D673986002F5586 /* README.md */; };
BB31E20F1D4FF13400779860 /* genpkg.sh in Resources */ = {isa = PBXBuildFile; fileRef = BB31E20E1D4FF13400779860 /* genpkg.sh */; };
+ BB408A1420BF101A00B57CFB /* swift-android-zlib in Resources */ = {isa = PBXBuildFile; fileRef = BB408A1220BF101900B57CFB /* swift-android-zlib */; };
+ BB408A1620BF102A00B57CFB /* swift-android-opengl in Resources */ = {isa = PBXBuildFile; fileRef = BB408A1520BF102900B57CFB /* swift-android-opengl */; };
BB4AF49E1D4C1F80001DCA63 /* java_sql.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BBBF2E8E1D49A0C3004142AE /* java_sql.framework */; };
- BB4AF4A61D4C2CE2001DCA63 /* java_lang.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BBC13EBC1D4997FB0035A039 /* java_lang.framework */; };
BB5ACFDF1D35B09900E2386A /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB5ACFDE1D35B09900E2386A /* AppDelegate.swift */; };
BB5ACFE11D35B09900E2386A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = BB5ACFE01D35B09900E2386A /* Assets.xcassets */; };
BB5ACFE41D35B09900E2386A /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = BB5ACFE21D35B09900E2386A /* MainMenu.xib */; };
+ BB63C9E51F7970F00048D83B /* Fortify.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB63C9E41F7970EE0048D83B /* Fortify.swift */; };
+ BB643B321F4873F7003E849E /* swift-android-gradle in Resources */ = {isa = PBXBuildFile; fileRef = BB643B311F4873F7003E849E /* swift-android-gradle */; };
+ BB6651321F2E39F7004EFD5F /* swift-android-kotlin in Resources */ = {isa = PBXBuildFile; fileRef = BB6651301F2E39F6004EFD5F /* swift-android-kotlin */; };
+ BB6651361F2E3F51004EFD5F /* android_toolchain in Resources */ = {isa = PBXBuildFile; fileRef = BB6651351F2E3F50004EFD5F /* android_toolchain */; };
BB9CF8931D619D1C004781B9 /* genhello.sh in Resources */ = {isa = PBXBuildFile; fileRef = BB9CF8921D619D1C004781B9 /* genhello.sh */; };
- BB9CF8961D61BAE8004781B9 /* swift-android-gradle in Resources */ = {isa = PBXBuildFile; fileRef = BB9CF8951D61BAE8004781B9 /* swift-android-gradle */; };
BB9CF8981D61BAF4004781B9 /* swift-android-samples in Resources */ = {isa = PBXBuildFile; fileRef = BB9CF8971D61BAF4004781B9 /* swift-android-samples */; };
BBAD3EDA1D59DDBC0091D139 /* TableColorSelection.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBAD3ED91D59DDBC0091D139 /* TableColorSelection.swift */; };
BBAD3EE41D5A84700091D139 /* genall.sh in Resources */ = {isa = PBXBuildFile; fileRef = BBAD3EE31D5A84700091D139 /* genall.sh */; };
@@ -32,9 +35,22 @@
BBBF3A671D4B1B95004142AE /* PopupTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBBF3A661D4B1B95004142AE /* PopupTest.swift */; };
BBBF3A691D4BCE36004142AE /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBBF3A681D4BCE36004142AE /* main.swift */; };
BBBF3A731D4BF8CF004142AE /* AWTGraphicsDemo.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBBF3A721D4BF8CF004142AE /* AWTGraphicsDemo.swift */; };
- BBC13DB91D48FDCE0035A039 /* org_genie.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBC13DB81D48FDCE0035A039 /* org_genie.swift */; };
+ BBC13DB91D48FDCE0035A039 /* org_swiftjava.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBC13DB81D48FDCE0035A039 /* org_swiftjava.swift */; };
BBC13DC21D4900AA0035A039 /* SwiftTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBC13DC11D4900AA0035A039 /* SwiftTest.swift */; };
+ BBCCEF9A1F3C83440084F9E3 /* LICENSE in Resources */ = {isa = PBXBuildFile; fileRef = BBCCEF991F3C83440084F9E3 /* LICENSE */; };
+ BBE0F86F20B733FE00332AC6 /* swift-android-Clibadder in Resources */ = {isa = PBXBuildFile; fileRef = BBE0F86E20B733FC00332AC6 /* swift-android-Clibadder */; };
BBF280D91D64BC6100A7AF5D /* src in Resources */ = {isa = PBXBuildFile; fileRef = BBF280D81D64BC6100A7AF5D /* src */; };
+ CE3185101F368D6B002046A6 /* SwiftHelloTypes_TextListener.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE31850E1F368D44002046A6 /* SwiftHelloTypes_TextListener.swift */; };
+ CE4A250B1F34B3E0003AF384 /* JavaVM.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BBCD66ED1D36A03F00DF5E47 /* JavaVM.framework */; };
+ CE4A25101F3555CA003AF384 /* com_johnholdsworth in Resources */ = {isa = PBXBuildFile; fileRef = CE4A250F1F3555CA003AF384 /* com_johnholdsworth */; };
+ CE4A25191F355910003AF384 /* SwiftHelloTest_SwiftTestListener.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE4A25151F355902003AF384 /* SwiftHelloTest_SwiftTestListener.swift */; };
+ CE4A251A1F355914003AF384 /* SwiftHelloTest_TestResponderAdapter.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE4A25141F355902003AF384 /* SwiftHelloTest_TestResponderAdapter.swift */; };
+ CE4A251B1F355918003AF384 /* SwiftHelloTestImpl.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE4A25131F355902003AF384 /* SwiftHelloTestImpl.swift */; };
+ CE4A25211F355CAC003AF384 /* SwiftHelloTest_TestListener.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE4A251F1F355CA6003AF384 /* SwiftHelloTest_TestListener.swift */; };
+ CE4A25241F3563AB003AF384 /* JavaVM.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BBCD66ED1D36A03F00DF5E47 /* JavaVM.framework */; };
+ CE6BB1D81F33E59900CA6A8F /* java_swift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BBC13E821D4996AE0035A039 /* java_swift.framework */; };
+ CE6BB1D91F33E5AD00CA6A8F /* CJavaVM.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BBC13E601D49954A0035A039 /* CJavaVM.framework */; };
+ CE81023A1F3693510069563B /* MainActivity.kt in Resources */ = {isa = PBXBuildFile; fileRef = CE8102391F3693510069563B /* MainActivity.kt */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
@@ -205,20 +221,26 @@
/* Begin PBXFileReference section */
BB0543FE1D41F38C00F9B367 /* libjvm.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libjvm.dylib; path = "../../../../usr/local/jvm/openjdk-1.8.0-internal/jre/lib/server/libjvm.dylib"; sourceTree = ""; };
BB0544041D42D55200F9B367 /* genjar.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = genjar.sh; sourceTree = ""; };
+ BB0AB6B31F7559C700B60EC0 /* Injection4Android */ = {isa = PBXFileReference; lastKnownFileType = folder; path = Injection4Android; sourceTree = ""; };
+ BB0AB6B71F755A5A00B60EC0 /* swift-android-injection */ = {isa = PBXFileReference; lastKnownFileType = folder; path = "swift-android-injection"; sourceTree = ""; };
BB19B4411D673986002F5586 /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; };
BB31E20E1D4FF13400779860 /* genpkg.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = genpkg.sh; sourceTree = ""; };
+ BB408A1220BF101900B57CFB /* swift-android-zlib */ = {isa = PBXFileReference; lastKnownFileType = folder; path = "swift-android-zlib"; sourceTree = ""; };
+ BB408A1520BF102900B57CFB /* swift-android-opengl */ = {isa = PBXFileReference; lastKnownFileType = folder; path = "swift-android-opengl"; sourceTree = ""; };
BB5ACFDB1D35B09900E2386A /* JDBC.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = JDBC.app; sourceTree = BUILT_PRODUCTS_DIR; };
BB5ACFDE1D35B09900E2386A /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
BB5ACFE01D35B09900E2386A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
BB5ACFE31D35B09900E2386A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; };
BB5ACFE51D35B09900E2386A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
- BB8A70511D5AF7AC00840B9E /* build_macos.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = build_macos.sh; sourceTree = ""; };
- BB8A70531D5B164300840B9E /* build_linux.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = build_linux.sh; sourceTree = ""; };
+ BB63C9E41F7970EE0048D83B /* Fortify.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Fortify.swift; sourceTree = ""; };
+ BB643B311F4873F7003E849E /* swift-android-gradle */ = {isa = PBXFileReference; lastKnownFileType = folder; path = "swift-android-gradle"; sourceTree = ""; };
+ BB6651301F2E39F6004EFD5F /* swift-android-kotlin */ = {isa = PBXFileReference; lastKnownFileType = folder; path = "swift-android-kotlin"; sourceTree = ""; };
+ BB6651351F2E3F50004EFD5F /* android_toolchain */ = {isa = PBXFileReference; lastKnownFileType = folder; path = android_toolchain; sourceTree = ""; };
+ BB88CEC721CC388400B79BD9 /* swifthello.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = swifthello.swift; path = "swift-android-samples/swifthello/src/main/swift/Sources/swifthello.swift"; sourceTree = ""; };
BB8AC4391D3F035700BD5B0F /* libswiftCore.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libswiftCore.tbd; path = System/Library/PrivateFrameworks/Swift/libswiftCore.tbd; sourceTree = SDKROOT; };
BB8AC4621D3F11E600BD5B0F /* examples */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = examples; sourceTree = BUILT_PRODUCTS_DIR; };
BB8AC46E1D3F217D00BD5B0F /* libjvm.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libjvm.dylib; path = ../../../../Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/server/libjvm.dylib; sourceTree = ""; };
BB9CF8921D619D1C004781B9 /* genhello.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = genhello.sh; sourceTree = ""; };
- BB9CF8951D61BAE8004781B9 /* swift-android-gradle */ = {isa = PBXFileReference; lastKnownFileType = folder; path = "swift-android-gradle"; sourceTree = ""; };
BB9CF8971D61BAF4004781B9 /* swift-android-samples */ = {isa = PBXFileReference; lastKnownFileType = folder; path = "swift-android-samples"; sourceTree = ""; };
BBAD3ED91D59DDBC0091D139 /* TableColorSelection.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = TableColorSelection.swift; path = Sources/TableColorSelection.swift; sourceTree = ""; };
BBAD3EE31D5A84700091D139 /* genall.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = genall.sh; sourceTree = ""; };
@@ -226,7 +248,6 @@
BBBF2F031D49A163004142AE /* java_awt.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = java_awt.xcodeproj; path = java_awt/java_awt.xcodeproj; sourceTree = ""; };
BBBF322A1D49A246004142AE /* javax_swing.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = javax_swing.xcodeproj; path = javax_swing/javax_swing.xcodeproj; sourceTree = ""; };
BBBF389C1D49B5E6004142AE /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; };
- BBBF38B31D49C14C004142AE /* genie.jar */ = {isa = PBXFileReference; lastKnownFileType = archive.jar; path = genie.jar; sourceTree = ""; };
BBBF38DB1D49DB05004142AE /* com_apple.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = com_apple.xcodeproj; path = com_apple/com_apple.xcodeproj; sourceTree = ""; };
BBBF3A471D4A8A17004142AE /* Package.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = ""; };
BBBF3A521D4A8A68004142AE /* PhilosophersJList.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = PhilosophersJList.swift; path = Sources/PhilosophersJList.swift; sourceTree = ""; };
@@ -241,23 +262,36 @@
BBBF3A661D4B1B95004142AE /* PopupTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = PopupTest.swift; path = Sources/PopupTest.swift; sourceTree = ""; };
BBBF3A681D4BCE36004142AE /* main.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = main.swift; path = Sources/main.swift; sourceTree = ""; };
BBBF3A721D4BF8CF004142AE /* AWTGraphicsDemo.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AWTGraphicsDemo.swift; path = Sources/AWTGraphicsDemo.swift; sourceTree = ""; };
- BBC13DB61D48FDCE0035A039 /* org_genie_tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = org_genie_tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
- BBC13DB81D48FDCE0035A039 /* org_genie.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = org_genie.swift; sourceTree = ""; };
+ BBC13DB61D48FDCE0035A039 /* org_swiftjava_tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = org_swiftjava_tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
+ BBC13DB81D48FDCE0035A039 /* org_swiftjava.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = org_swiftjava.swift; sourceTree = ""; };
BBC13DBA1D48FDCE0035A039 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
BBC13DC11D4900AA0035A039 /* SwiftTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = SwiftTest.swift; path = Sources/SwiftTest.swift; sourceTree = ""; };
BBC13DC51D490B160035A039 /* test_body.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = test_body.swift; sourceTree = ""; };
BBC13DC71D49149A0035A039 /* gentests.rb */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.ruby; path = gentests.rb; sourceTree = ""; };
- BBC13DC91D4918A30035A039 /* SwiftTest.java */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.java; name = SwiftTest.java; path = src/org/genie/SwiftTest.java; sourceTree = SOURCE_ROOT; };
BBC13E5B1D49954A0035A039 /* CJavaVM.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = CJavaVM.xcodeproj; path = CJavaVM/CJavaVM.xcodeproj; sourceTree = ""; };
BBC13E7D1D4996AE0035A039 /* java_swift.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = java_swift.xcodeproj; path = java_swift/java_swift.xcodeproj; sourceTree = ""; };
BBC13EB71D4997FA0035A039 /* java_lang.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = java_lang.xcodeproj; path = java_lang/java_lang.xcodeproj; sourceTree = ""; };
BBC140651D4999580035A039 /* java_util.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = java_util.xcodeproj; path = java_util/java_util.xcodeproj; sourceTree = ""; };
+ BBCCEF991F3C83440084F9E3 /* LICENSE */ = {isa = PBXFileReference; lastKnownFileType = text; path = LICENSE; sourceTree = ""; };
BBCD66ED1D36A03F00DF5E47 /* JavaVM.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaVM.framework; path = System/Library/Frameworks/JavaVM.framework; sourceTree = SDKROOT; };
- BBCD66F91D36FACD00DF5E47 /* getsigs.pl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.perl; path = getsigs.pl; sourceTree = ""; };
BBCD6EBC1D383E3700DF5E47 /* genswift.java */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.java; name = genswift.java; path = src/genswift.java; sourceTree = ""; };
BBCD75371D38DC4200DF5E47 /* overrides.pl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.perl; path = overrides.pl; sourceTree = ""; };
BBCD9F871D3CD05900DF5E47 /* genswift.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = genswift.sh; sourceTree = ""; };
+ BBE0F86E20B733FC00332AC6 /* swift-android-Clibadder */ = {isa = PBXFileReference; lastKnownFileType = folder; path = "swift-android-Clibadder"; sourceTree = ""; };
BBF280D81D64BC6100A7AF5D /* src */ = {isa = PBXFileReference; lastKnownFileType = folder; path = src; sourceTree = ""; };
+ CE31850E1F368D44002046A6 /* SwiftHelloTypes_TextListener.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SwiftHelloTypes_TextListener.swift; path = com_johnholdsworth/Sources/SwiftHelloTypes_TextListener.swift; sourceTree = SOURCE_ROOT; };
+ CE4A250F1F3555CA003AF384 /* com_johnholdsworth */ = {isa = PBXFileReference; lastKnownFileType = folder; path = com_johnholdsworth; sourceTree = ""; };
+ CE4A25131F355902003AF384 /* SwiftHelloTestImpl.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SwiftHelloTestImpl.swift; path = com_johnholdsworth/Sources/SwiftHelloTestImpl.swift; sourceTree = SOURCE_ROOT; };
+ CE4A25141F355902003AF384 /* SwiftHelloTest_TestResponderAdapter.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SwiftHelloTest_TestResponderAdapter.swift; path = com_johnholdsworth/Sources/SwiftHelloTest_TestResponderAdapter.swift; sourceTree = SOURCE_ROOT; };
+ CE4A25151F355902003AF384 /* SwiftHelloTest_SwiftTestListener.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SwiftHelloTest_SwiftTestListener.swift; path = com_johnholdsworth/Sources/SwiftHelloTest_SwiftTestListener.swift; sourceTree = SOURCE_ROOT; };
+ CE4A251C1F355B0A003AF384 /* SwiftTest.java */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.java; name = SwiftTest.java; path = src/org/swiftjava/SwiftTest.java; sourceTree = SOURCE_ROOT; };
+ CE4A251F1F355CA6003AF384 /* SwiftHelloTest_TestListener.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SwiftHelloTest_TestListener.swift; path = com_johnholdsworth/Sources/SwiftHelloTest_TestListener.swift; sourceTree = SOURCE_ROOT; };
+ CE649E2D1F39E88200C5B7FE /* SwiftHelloTypes.java */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.java; name = SwiftHelloTypes.java; path = src/com/johnholdsworth/swiftbindings/SwiftHelloTypes.java; sourceTree = ""; };
+ CE649E2F1F39E88200C5B7FE /* SwiftHelloBinding.java */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.java; name = SwiftHelloBinding.java; path = src/com/johnholdsworth/swiftbindings/SwiftHelloBinding.java; sourceTree = ""; };
+ CE649E301F39E88200C5B7FE /* SwiftHelloTest.java */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.java; name = SwiftHelloTest.java; path = src/com/johnholdsworth/swiftbindings/SwiftHelloTest.java; sourceTree = ""; };
+ CE75236D1F33E9A3003795CA /* libjvm.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libjvm.dylib; path = ../../../Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/jre/lib/server/libjvm.dylib; sourceTree = ""; };
+ CE8102391F3693510069563B /* MainActivity.kt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = MainActivity.kt; path = "swift-android-kotlin/app/src/main/java/com/example/user/myapplication/MainActivity.kt"; sourceTree = ""; };
+ CE81023D1F369D8D0069563B /* SwiftHello.java */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.java; name = SwiftHello.java; path = "swift-android-samples/swifthello/src/main/java/net/zhuoweizhang/swifthello/SwiftHello.java"; sourceTree = ""; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -265,6 +299,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ CE4A25241F3563AB003AF384 /* JavaVM.framework in Frameworks */,
BB4AF49E1D4C1F80001DCA63 /* java_sql.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
@@ -281,7 +316,9 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
- BB4AF4A61D4C2CE2001DCA63 /* java_lang.framework in Frameworks */,
+ CE4A250B1F34B3E0003AF384 /* JavaVM.framework in Frameworks */,
+ CE6BB1D91F33E5AD00CA6A8F /* CJavaVM.framework in Frameworks */,
+ CE6BB1D81F33E59900CA6A8F /* java_swift.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -291,7 +328,14 @@
BB5ACFD21D35B09900E2386A = {
isa = PBXGroup;
children = (
+ BBCCEF991F3C83440084F9E3 /* LICENSE */,
BBBF389C1D49B5E6004142AE /* README.md */,
+ CE31850D1F368C77002046A6 /* Scripts */,
+ CE3185051F368C37002046A6 /* Bindings */,
+ CE8102371F3693260069563B /* Android */,
+ BB5ACFDD1D35B09900E2386A /* JDBC */,
+ BB8AC4631D3F11E600BD5B0F /* examples */,
+ BBC13DB71D48FDCE0035A039 /* org_swiftjava */,
BBC13E5B1D49954A0035A039 /* CJavaVM.xcodeproj */,
BBC13E7D1D4996AE0035A039 /* java_swift.xcodeproj */,
BBC13EB71D4997FA0035A039 /* java_lang.xcodeproj */,
@@ -300,22 +344,17 @@
BBBF2F031D49A163004142AE /* java_awt.xcodeproj */,
BBBF322A1D49A246004142AE /* javax_swing.xcodeproj */,
BBBF38DB1D49DB05004142AE /* com_apple.xcodeproj */,
- BBCD9F871D3CD05900DF5E47 /* genswift.sh */,
- BBCD6EBC1D383E3700DF5E47 /* genswift.java */,
- BBCD75371D38DC4200DF5E47 /* overrides.pl */,
- BBC13DC71D49149A0035A039 /* gentests.rb */,
- BB9CF8921D619D1C004781B9 /* genhello.sh */,
- BB31E20E1D4FF13400779860 /* genpkg.sh */,
- BBCD66F91D36FACD00DF5E47 /* getsigs.pl */,
- BBAD3EE31D5A84700091D139 /* genall.sh */,
- BB0544041D42D55200F9B367 /* genjar.sh */,
- BBBF38B31D49C14C004142AE /* genie.jar */,
- BB5ACFDD1D35B09900E2386A /* JDBC */,
- BB8AC4631D3F11E600BD5B0F /* examples */,
- BBC13DB71D48FDCE0035A039 /* org_genie */,
BBF280D81D64BC6100A7AF5D /* src */,
- BB9CF8951D61BAE8004781B9 /* swift-android-gradle */,
+ CE4A250F1F3555CA003AF384 /* com_johnholdsworth */,
+ BB6651351F2E3F50004EFD5F /* android_toolchain */,
+ BB643B311F4873F7003E849E /* swift-android-gradle */,
BB9CF8971D61BAF4004781B9 /* swift-android-samples */,
+ BB6651301F2E39F6004EFD5F /* swift-android-kotlin */,
+ BB0AB6B71F755A5A00B60EC0 /* swift-android-injection */,
+ BBE0F86E20B733FC00332AC6 /* swift-android-Clibadder */,
+ BB408A1520BF102900B57CFB /* swift-android-opengl */,
+ BB408A1220BF101900B57CFB /* swift-android-zlib */,
+ BB0AB6B31F7559C700B60EC0 /* Injection4Android */,
BB5ACFDC1D35B09900E2386A /* Products */,
BBCD66EC1D36A03F00DF5E47 /* Frameworks */,
);
@@ -326,7 +365,7 @@
children = (
BB5ACFDB1D35B09900E2386A /* JDBC.app */,
BB8AC4621D3F11E600BD5B0F /* examples */,
- BBC13DB61D48FDCE0035A039 /* org_genie_tests.xctest */,
+ BBC13DB61D48FDCE0035A039 /* org_swiftjava_tests.xctest */,
);
name = Products;
sourceTree = "";
@@ -348,8 +387,6 @@
BB19B4411D673986002F5586 /* README.md */,
BBBF3A681D4BCE36004142AE /* main.swift */,
BBBF3A471D4A8A17004142AE /* Package.swift */,
- BB8A70511D5AF7AC00840B9E /* build_macos.sh */,
- BB8A70531D5B164300840B9E /* build_linux.sh */,
BBBF3A511D4A8A1C004142AE /* Sources */,
);
path = examples;
@@ -406,16 +443,22 @@
name = Sources;
sourceTree = "";
};
- BBC13DB71D48FDCE0035A039 /* org_genie */ = {
+ BBC13DB71D48FDCE0035A039 /* org_swiftjava */ = {
isa = PBXGroup;
children = (
- BBC13DC91D4918A30035A039 /* SwiftTest.java */,
+ BB63C9E41F7970EE0048D83B /* Fortify.swift */,
+ CE4A251C1F355B0A003AF384 /* SwiftTest.java */,
+ CE31850E1F368D44002046A6 /* SwiftHelloTypes_TextListener.swift */,
+ CE4A25141F355902003AF384 /* SwiftHelloTest_TestResponderAdapter.swift */,
+ CE4A25151F355902003AF384 /* SwiftHelloTest_SwiftTestListener.swift */,
+ CE4A251F1F355CA6003AF384 /* SwiftHelloTest_TestListener.swift */,
+ CE4A25131F355902003AF384 /* SwiftHelloTestImpl.swift */,
BBC13DC11D4900AA0035A039 /* SwiftTest.swift */,
- BBC13DB81D48FDCE0035A039 /* org_genie.swift */,
+ BBC13DB81D48FDCE0035A039 /* org_swiftjava.swift */,
BBC13DC51D490B160035A039 /* test_body.swift */,
BBC13DBA1D48FDCE0035A039 /* Info.plist */,
);
- path = org_genie;
+ path = org_swiftjava;
sourceTree = "";
};
BBC13E5C1D49954A0035A039 /* Products */ = {
@@ -455,12 +498,48 @@
children = (
BB0543FE1D41F38C00F9B367 /* libjvm.dylib */,
BB8AC46E1D3F217D00BD5B0F /* libjvm.dylib */,
+ CE75236D1F33E9A3003795CA /* libjvm.dylib */,
BB8AC4391D3F035700BD5B0F /* libswiftCore.tbd */,
BBCD66ED1D36A03F00DF5E47 /* JavaVM.framework */,
);
name = Frameworks;
sourceTree = "";
};
+ CE3185051F368C37002046A6 /* Bindings */ = {
+ isa = PBXGroup;
+ children = (
+ CE649E301F39E88200C5B7FE /* SwiftHelloTest.java */,
+ CE649E2F1F39E88200C5B7FE /* SwiftHelloBinding.java */,
+ CE649E2D1F39E88200C5B7FE /* SwiftHelloTypes.java */,
+ );
+ name = Bindings;
+ sourceTree = "";
+ };
+ CE31850D1F368C77002046A6 /* Scripts */ = {
+ isa = PBXGroup;
+ children = (
+ BBCD9F871D3CD05900DF5E47 /* genswift.sh */,
+ BBCD6EBC1D383E3700DF5E47 /* genswift.java */,
+ BBCD75371D38DC4200DF5E47 /* overrides.pl */,
+ BBC13DC71D49149A0035A039 /* gentests.rb */,
+ BB9CF8921D619D1C004781B9 /* genhello.sh */,
+ BB31E20E1D4FF13400779860 /* genpkg.sh */,
+ BBAD3EE31D5A84700091D139 /* genall.sh */,
+ BB0544041D42D55200F9B367 /* genjar.sh */,
+ );
+ name = Scripts;
+ sourceTree = "";
+ };
+ CE8102371F3693260069563B /* Android */ = {
+ isa = PBXGroup;
+ children = (
+ CE81023D1F369D8D0069563B /* SwiftHello.java */,
+ CE8102391F3693510069563B /* MainActivity.kt */,
+ BB88CEC721CC388400B79BD9 /* swifthello.swift */,
+ );
+ name = Android;
+ sourceTree = "";
+ };
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
@@ -511,9 +590,9 @@
productReference = BB8AC4621D3F11E600BD5B0F /* examples */;
productType = "com.apple.product-type.tool";
};
- BBC13DB51D48FDCE0035A039 /* org_genie_tests */ = {
+ BBC13DB51D48FDCE0035A039 /* org_swiftjava_tests */ = {
isa = PBXNativeTarget;
- buildConfigurationList = BBC13DBE1D48FDCE0035A039 /* Build configuration list for PBXNativeTarget "org_genie_tests" */;
+ buildConfigurationList = BBC13DBE1D48FDCE0035A039 /* Build configuration list for PBXNativeTarget "org_swiftjava_tests" */;
buildPhases = (
BBC13DB21D48FDCE0035A039 /* Sources */,
BBC13DB31D48FDCE0035A039 /* Frameworks */,
@@ -523,9 +602,9 @@
);
dependencies = (
);
- name = org_genie_tests;
+ name = org_swiftjava_tests;
productName = org_genie;
- productReference = BBC13DB61D48FDCE0035A039 /* org_genie_tests.xctest */;
+ productReference = BBC13DB61D48FDCE0035A039 /* org_swiftjava_tests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
/* End PBXNativeTarget section */
@@ -535,26 +614,28 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0800;
- LastUpgradeCheck = 0800;
+ LastUpgradeCheck = 0930;
ORGANIZATIONNAME = "John Holdsworth";
TargetAttributes = {
BB5ACFDA1D35B09900E2386A = {
CreatedOnToolsVersion = 8.0;
DevelopmentTeam = 9V5A8WE85E;
DevelopmentTeamName = "John Holdsworth";
- LastSwiftMigration = 0800;
+ LastSwiftMigration = 0900;
ProvisioningStyle = Automatic;
};
BB8AC4611D3F11E600BD5B0F = {
CreatedOnToolsVersion = 8.0;
DevelopmentTeam = 9V5A8WE85E;
DevelopmentTeamName = "John Holdsworth";
+ LastSwiftMigration = 0900;
ProvisioningStyle = Automatic;
};
BBC13DB51D48FDCE0035A039 = {
CreatedOnToolsVersion = 8.0;
DevelopmentTeam = 9V5A8WE85E;
DevelopmentTeamName = "John Holdsworth";
+ LastSwiftMigration = 0900;
ProvisioningStyle = Automatic;
};
};
@@ -564,6 +645,7 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
+ English,
en,
Base,
);
@@ -608,7 +690,7 @@
targets = (
BB5ACFDA1D35B09900E2386A /* JDBC */,
BB8AC4611D3F11E600BD5B0F /* examples */,
- BBC13DB51D48FDCE0035A039 /* org_genie_tests */,
+ BBC13DB51D48FDCE0035A039 /* org_swiftjava_tests */,
);
};
/* End PBXProject section */
@@ -677,13 +759,21 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
+ CE4A25101F3555CA003AF384 /* com_johnholdsworth in Resources */,
+ BB408A1620BF102A00B57CFB /* swift-android-opengl in Resources */,
+ BBCCEF9A1F3C83440084F9E3 /* LICENSE in Resources */,
BB5ACFE11D35B09900E2386A /* Assets.xcassets in Resources */,
+ BBE0F86F20B733FE00332AC6 /* swift-android-Clibadder in Resources */,
BBAD3EE41D5A84700091D139 /* genall.sh in Resources */,
+ BB6651321F2E39F7004EFD5F /* swift-android-kotlin in Resources */,
+ BB6651361F2E3F51004EFD5F /* android_toolchain in Resources */,
BB31E20F1D4FF13400779860 /* genpkg.sh in Resources */,
+ BB408A1420BF101A00B57CFB /* swift-android-zlib in Resources */,
BBF280D91D64BC6100A7AF5D /* src in Resources */,
- BB9CF8961D61BAE8004781B9 /* swift-android-gradle in Resources */,
+ BB643B321F4873F7003E849E /* swift-android-gradle in Resources */,
BB9CF8981D61BAF4004781B9 /* swift-android-samples in Resources */,
BB5ACFE41D35B09900E2386A /* MainMenu.xib in Resources */,
+ CE81023A1F3693510069563B /* MainActivity.kt in Resources */,
BB9CF8931D619D1C004781B9 /* genhello.sh in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
@@ -710,6 +800,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
+ BBBF3A691D4BCE36004142AE /* main.swift in Sources */,
BBBF3A591D4A8B88004142AE /* ImageCanvas.swift in Sources */,
BBBF3A571D4A8B45004142AE /* SimpleEx.swift in Sources */,
BBBF3A5B1D4A8C27004142AE /* FocusTest.swift in Sources */,
@@ -717,10 +808,8 @@
BBBF3A631D4AC26B004142AE /* JComboBox.swift in Sources */,
BBBF3A551D4A8ADD004142AE /* SimpleJTreeExample.swift in Sources */,
BBBF3A531D4A8A68004142AE /* PhilosophersJList.swift in Sources */,
- BBBF3A691D4BCE36004142AE /* main.swift in Sources */,
BBBF3A671D4B1B95004142AE /* PopupTest.swift in Sources */,
BBBF3A611D4AC24F004142AE /* TableColumnColor.swift in Sources */,
- BB19B4421D673986002F5586 /* README.md in Sources */,
BBBF3A731D4BF8CF004142AE /* AWTGraphicsDemo.swift in Sources */,
BBAD3EDA1D59DDBC0091D139 /* TableColorSelection.swift in Sources */,
BBBF3A5D1D4AA59E004142AE /* TextText.swift in Sources */,
@@ -731,8 +820,14 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
+ BBC13DB91D48FDCE0035A039 /* org_swiftjava.swift in Sources */,
+ CE4A25211F355CAC003AF384 /* SwiftHelloTest_TestListener.swift in Sources */,
+ CE4A25191F355910003AF384 /* SwiftHelloTest_SwiftTestListener.swift in Sources */,
+ BB63C9E51F7970F00048D83B /* Fortify.swift in Sources */,
BBC13DC21D4900AA0035A039 /* SwiftTest.swift in Sources */,
- BBC13DB91D48FDCE0035A039 /* org_genie.swift in Sources */,
+ CE3185101F368D6B002046A6 /* SwiftHelloTypes_TextListener.swift in Sources */,
+ CE4A251A1F355914003AF384 /* SwiftHelloTest_TestResponderAdapter.swift in Sources */,
+ CE4A251B1F355918003AF384 /* SwiftHelloTestImpl.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -822,14 +917,24 @@
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "";
@@ -869,14 +974,24 @@
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "";
@@ -908,10 +1023,10 @@
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = JDBC/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
- PRODUCT_BUNDLE_IDENTIFIER = org.genie.JDBC;
+ PRODUCT_BUNDLE_IDENTIFIER = org.swiftjava.JDBC;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
- SWIFT_VERSION = 3.0;
+ SWIFT_VERSION = 4.0;
};
name = Debug;
};
@@ -924,9 +1039,9 @@
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = JDBC/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
- PRODUCT_BUNDLE_IDENTIFIER = org.genie.JDBC;
+ PRODUCT_BUNDLE_IDENTIFIER = org.swiftjava.JDBC;
PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_VERSION = 3.0;
+ SWIFT_VERSION = 4.0;
};
name = Release;
};
@@ -935,12 +1050,8 @@
buildSettings = {
CODE_SIGN_IDENTITY = "-";
LD_RUNPATH_SEARCH_PATHS = "$(TOOLCHAIN_DIR)/usr/lib/swift/macosx";
- LIBRARY_SEARCH_PATHS = (
- "$(inherited)",
- "$(LOCAL_LIBRARY_DIR)/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/server",
- );
PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_VERSION = 3.0;
+ SWIFT_VERSION = 4.0;
};
name = Debug;
};
@@ -949,12 +1060,8 @@
buildSettings = {
CODE_SIGN_IDENTITY = "-";
LD_RUNPATH_SEARCH_PATHS = "$(TOOLCHAIN_DIR)/usr/lib/swift/macosx";
- LIBRARY_SEARCH_PATHS = (
- "$(inherited)",
- "$(LOCAL_LIBRARY_DIR)/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/server",
- );
PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_VERSION = 3.0;
+ SWIFT_VERSION = 4.0;
};
name = Release;
};
@@ -963,9 +1070,13 @@
buildSettings = {
CODE_SIGN_IDENTITY = "-";
COMBINE_HIDPI_IMAGES = YES;
- INFOPLIST_FILE = org_genie/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
- PRODUCT_BUNDLE_IDENTIFIER = "org.genie.org-genie";
+ INFOPLIST_FILE = org_swiftjava/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks /Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/jre/lib/server";
+ LIBRARY_SEARCH_PATHS = (
+ "$(inherited)",
+ "$(LOCAL_LIBRARY_DIR)/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/jre/lib/server",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = "org.swiftjava.org-swiftjava";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
};
@@ -976,9 +1087,13 @@
buildSettings = {
CODE_SIGN_IDENTITY = "-";
COMBINE_HIDPI_IMAGES = YES;
- INFOPLIST_FILE = org_genie/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
- PRODUCT_BUNDLE_IDENTIFIER = "org.genie.org-genie";
+ INFOPLIST_FILE = org_swiftjava/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks /Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/jre/lib/server";
+ LIBRARY_SEARCH_PATHS = (
+ "$(inherited)",
+ "$(LOCAL_LIBRARY_DIR)/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/jre/lib/server",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = "org.swiftjava.org-swiftjava";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
};
@@ -1014,7 +1129,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
- BBC13DBE1D48FDCE0035A039 /* Build configuration list for PBXNativeTarget "org_genie_tests" */ = {
+ BBC13DBE1D48FDCE0035A039 /* Build configuration list for PBXNativeTarget "org_swiftjava_tests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
BBC13DBF1D48FDCE0035A039 /* Debug */,
diff --git a/SwiftJava.xcodeproj/project.xcworkspace/xcshareddata/SwiftJava.xcscmblueprint b/SwiftJava.xcodeproj/project.xcworkspace/xcshareddata/SwiftJava.xcscmblueprint
new file mode 100644
index 0000000..586f2f1
--- /dev/null
+++ b/SwiftJava.xcodeproj/project.xcworkspace/xcshareddata/SwiftJava.xcscmblueprint
@@ -0,0 +1,114 @@
+{
+ "DVTSourceControlWorkspaceBlueprintPrimaryRemoteRepositoryKey" : "878C2603E03822D160043D9D16A36206CED4E0CA",
+ "DVTSourceControlWorkspaceBlueprintWorkingCopyRepositoryLocationsKey" : {
+
+ },
+ "DVTSourceControlWorkspaceBlueprintWorkingCopyStatesKey" : {
+ "919E7FD20BEE11F783ACA7E8733E036FFD3CC2A7" : 0,
+ "975F9120751D6C438E9A5C85C38DE132AC6185DA" : 0,
+ "34073D21618405EACC233186A25025AB1438DB71" : 0,
+ "D69ED636B0A47DAAE52D01130A54526F3F08576F" : 0,
+ "2448595CDB5ED36D9EAF6DDDED0F943FA508C747" : 0,
+ "F35EB971E2A3FAC98274059126C5879BB91B08C3" : 0,
+ "88C7909D14364BE1B34BD9FA7515C938F2799EDA" : 0,
+ "F5602BE39D3BC51A40E8B26B29F3243856A652CB" : 0,
+ "878C2603E03822D160043D9D16A36206CED4E0CA" : 0,
+ "89DEE779F8BFE1CE8DDEF7AB113FB6B93E7D55C6" : 0,
+ "03D674EFBA86A077C658C74B9BF7405C80AD6E58" : 0,
+ "7FD9F53F3E97DB446A68FCFF0B1331098D829EA6" : 0,
+ "A4A5B9FFE9560298D43F77C6A13830755B45E233" : 0,
+ "685A538D4847A574735DC1EA392743F80472F6DF" : 0
+ },
+ "DVTSourceControlWorkspaceBlueprintIdentifierKey" : "6BFDE20B-CFCB-4CEC-B3D1-A0DEAE5DDDC0",
+ "DVTSourceControlWorkspaceBlueprintWorkingCopyPathsKey" : {
+ "919E7FD20BEE11F783ACA7E8733E036FFD3CC2A7" : "SwiftJava\/java_swift\/",
+ "975F9120751D6C438E9A5C85C38DE132AC6185DA" : "SwiftJava\/java_sql\/",
+ "34073D21618405EACC233186A25025AB1438DB71" : "SwiftJava\/javax_swing\/",
+ "D69ED636B0A47DAAE52D01130A54526F3F08576F" : "SwiftJava\/swift-android-samples\/",
+ "2448595CDB5ED36D9EAF6DDDED0F943FA508C747" : "SwiftJava\/android_toolchain\/",
+ "F35EB971E2A3FAC98274059126C5879BB91B08C3" : "SwiftJava\/java_lang\/",
+ "88C7909D14364BE1B34BD9FA7515C938F2799EDA" : "SwiftJava\/com_apple\/",
+ "F5602BE39D3BC51A40E8B26B29F3243856A652CB" : "SwiftJava\/java_awt\/",
+ "878C2603E03822D160043D9D16A36206CED4E0CA" : "SwiftJava\/",
+ "89DEE779F8BFE1CE8DDEF7AB113FB6B93E7D55C6" : "SwiftJava\/examples\/",
+ "03D674EFBA86A077C658C74B9BF7405C80AD6E58" : "SwiftJava\/CJavaVM\/",
+ "7FD9F53F3E97DB446A68FCFF0B1331098D829EA6" : "SwiftJava\/swift-android-gradle\/",
+ "A4A5B9FFE9560298D43F77C6A13830755B45E233" : "SwiftJava\/swift-android-kotlin\/",
+ "685A538D4847A574735DC1EA392743F80472F6DF" : "SwiftJava\/java_util\/"
+ },
+ "DVTSourceControlWorkspaceBlueprintNameKey" : "SwiftJava",
+ "DVTSourceControlWorkspaceBlueprintVersion" : 204,
+ "DVTSourceControlWorkspaceBlueprintRelativePathToProjectKey" : "SwiftJava.xcodeproj",
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositoriesKey" : [
+ {
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/SwiftJava\/CJavaVM.git",
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "03D674EFBA86A077C658C74B9BF7405C80AD6E58"
+ },
+ {
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/SwiftJava\/android_toolchain",
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "2448595CDB5ED36D9EAF6DDDED0F943FA508C747"
+ },
+ {
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/SwiftJava\/javax_swing.git",
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "34073D21618405EACC233186A25025AB1438DB71"
+ },
+ {
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/SwiftJava\/java_util.git",
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "685A538D4847A574735DC1EA392743F80472F6DF"
+ },
+ {
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/SwiftJava\/swift-android-gradle.git",
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "7FD9F53F3E97DB446A68FCFF0B1331098D829EA6"
+ },
+ {
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "http:\/\/github.com\/SwiftJava\/SwiftJava",
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "878C2603E03822D160043D9D16A36206CED4E0CA"
+ },
+ {
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/SwiftJava\/com_apple.git",
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "88C7909D14364BE1B34BD9FA7515C938F2799EDA"
+ },
+ {
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/SwiftJava\/examples.git",
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "89DEE779F8BFE1CE8DDEF7AB113FB6B93E7D55C6"
+ },
+ {
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/SwiftJava\/java_swift.git",
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "919E7FD20BEE11F783ACA7E8733E036FFD3CC2A7"
+ },
+ {
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/SwiftJava\/java_sql.git",
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "975F9120751D6C438E9A5C85C38DE132AC6185DA"
+ },
+ {
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/SwiftJava\/swift-android-kotlin",
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "A4A5B9FFE9560298D43F77C6A13830755B45E233"
+ },
+ {
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/SwiftJava\/swift-android-samples.git",
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "D69ED636B0A47DAAE52D01130A54526F3F08576F"
+ },
+ {
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/SwiftJava\/java_lang.git",
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "F35EB971E2A3FAC98274059126C5879BB91B08C3"
+ },
+ {
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/SwiftJava\/java_awt.git",
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
+ "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "F5602BE39D3BC51A40E8B26B29F3243856A652CB"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/android_toolchain b/android_toolchain
new file mode 160000
index 0000000..76847bc
--- /dev/null
+++ b/android_toolchain
@@ -0,0 +1 @@
+Subproject commit 76847bcd23f309109d408935fdc47d4815a478dc
diff --git a/com_apple b/com_apple
index 875316c..5714c6a 160000
--- a/com_apple
+++ b/com_apple
@@ -1 +1 @@
-Subproject commit 875316c11370148f149d345f75a1e8b5133c32a4
+Subproject commit 5714c6ac1b99f449f9be416ac4abf5aec15de62e
diff --git a/com_jh/Sources/SwiftHelloListener.swift b/com_jh/Sources/SwiftHelloListener.swift
deleted file mode 100644
index 802feb1..0000000
--- a/com_jh/Sources/SwiftHelloListener.swift
+++ /dev/null
@@ -1,127 +0,0 @@
-
-import java_swift
-
-/// interface com.jh.SwiftHelloListener ///
-
-public protocol SwiftHelloListener: JavaProtocol {
-
- /// public abstract void com.jh.SwiftHelloListener.processNumber(double)
-
- func processNumber( number: Double )
- func processNumber( _ _number: Double )
-
- /// public abstract void com.jh.SwiftHelloListener.processText(java.lang.String)
-
- func processText( text: String? )
- func processText( _ _text: String? )
-
-}
-
-open class SwiftHelloListenerForward: JNIObjectForward, SwiftHelloListener {
-
- private static var SwiftHelloListenerJNIClass: jclass?
-
- /// public abstract void com.jh.SwiftHelloListener.processNumber(double)
-
- private static var processNumber_MethodID_3: 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: &SwiftHelloListenerForward.processNumber_MethodID_3, args: &__args, locals: &__locals )
- }
-
- open func processNumber( _ _number: Double ) {
- processNumber( number: _number )
- }
-
- /// public abstract void com.jh.SwiftHelloListener.processText(java.lang.String)
-
- private static var processText_MethodID_4: 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: &SwiftHelloListenerForward.processText_MethodID_4, args: &__args, locals: &__locals )
- }
-
- open func processText( _ _text: String? ) {
- processText( text: _text )
- }
-
-}
-
-
-private typealias SwiftHelloListener_processNumber_0_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jdouble ) -> ()
-
-private func SwiftHelloListener_processNumber_0( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ number: jdouble ) -> () {
- SwiftHelloListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).processNumber( number: JNIType.decode( type: Double(), from: number ) )
-}
-
-private typealias SwiftHelloListener_processText_1_type = @convention(c) ( _: UnsafeMutablePointer, _: jobject?, _: jobject? ) -> ()
-
-private func SwiftHelloListener_processText_1( _ __env: UnsafeMutablePointer, _ __this: jobject?, _ text: jobject? ) -> () {
- SwiftHelloListenerBase.swiftObject( jniEnv: __env, javaObject: __this ).processText( text: JNIType.decode( type: String(), from: text ) )
-}
-
-open class SwiftHelloListenerBase: JNIObjectProxy, SwiftHelloListener {
-
- private static var nativesRegistered = false
-
- private static func registerNatives() {
- if ( !nativesRegistered ) {
- var natives = [JNINativeMethod]()
-
- let SwiftHelloListener_processNumber_0_thunk: SwiftHelloListener_processNumber_0_type = SwiftHelloListener_processNumber_0
- natives.append( JNINativeMethod( name: strdup("__processNumber"), signature: strdup("(D)V"), fnPtr: unsafeBitCast( SwiftHelloListener_processNumber_0_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- let SwiftHelloListener_processText_1_thunk: SwiftHelloListener_processText_1_type = SwiftHelloListener_processText_1
- natives.append( JNINativeMethod( name: strdup("__processText"), signature: strdup("(Ljava/lang/String;)V"), fnPtr: unsafeBitCast( SwiftHelloListener_processText_1_thunk, to: UnsafeMutableRawPointer.self ) ) )
-
- withUnsafePointer(to: &natives[0]) {
- nativesPtr in
- let clazz = JNI.FindClass( "org/genie/com_jh/SwiftHelloListenerProxy" )
- 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 )
- SwiftHelloListenerBase.registerNatives()
- createProxy( javaClassName: "org/genie/com_jh/SwiftHelloListenerProxy" )
- }
-
- static func swiftObject( jniEnv: UnsafeMutablePointer?, javaObject: jobject? ) -> SwiftHelloListenerBase {
- return unsafeBitCast( swiftPointer( jniEnv: jniEnv, object: javaObject ), to: SwiftHelloListenerBase.self )
- }
-
- /// public abstract void com.jh.SwiftHelloListener.processNumber(double)
-
- open func processNumber( number: Double ) /**/ {
- processNumber( number )
- }
-
- open func processNumber( _ _number: Double ) /**/ {
- }
-
- /// public abstract void com.jh.SwiftHelloListener.processText(java.lang.String)
-
- open func processText( text: String? ) /**/ {
- processText( text )
- }
-
- open func processText( _ _text: String? ) /**/ {
- }
-
-}
diff --git a/com_jh/Sources/SwiftHelloResponder.swift b/com_jh/Sources/SwiftHelloResponder.swift
deleted file mode 100644
index 324502f..0000000
--- a/com_jh/Sources/SwiftHelloResponder.swift
+++ /dev/null
@@ -1,56 +0,0 @@
-
-import java_swift
-
-/// interface com.jh.SwiftHelloResponder ///
-
-public protocol SwiftHelloResponder: JavaProtocol {
-
- /// public abstract void com.jh.SwiftHelloResponder.processedNumber(double)
-
- func processedNumber( number: Double )
- func processedNumber( _ _number: Double )
-
- /// public abstract void com.jh.SwiftHelloResponder.processedText(java.lang.String)
-
- func processedText( text: String? )
- func processedText( _ _text: String? )
-
-}
-
-open class SwiftHelloResponderForward: JNIObjectForward, SwiftHelloResponder {
-
- private static var SwiftHelloResponderJNIClass: jclass?
-
- /// public abstract void com.jh.SwiftHelloResponder.processedNumber(double)
-
- private static var processedNumber_MethodID_3: 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: &SwiftHelloResponderForward.processedNumber_MethodID_3, args: &__args, locals: &__locals )
- }
-
- open func processedNumber( _ _number: Double ) {
- processedNumber( number: _number )
- }
-
- /// public abstract void com.jh.SwiftHelloResponder.processedText(java.lang.String)
-
- private static var processedText_MethodID_4: 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: &SwiftHelloResponderForward.processedText_MethodID_4, args: &__args, locals: &__locals )
- }
-
- open func processedText( _ _text: String? ) {
- processedText( text: _text )
- }
-
-}
-
-
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_johnholdsworth/Sources/SwiftHelloTest.swift b/com_johnholdsworth/Sources/SwiftHelloTest.swift
new file mode 100644
index 0000000..29164fc
--- /dev/null
+++ b/com_johnholdsworth/Sources/SwiftHelloTest.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.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 cf05565..fd5f6cd 160000
--- a/examples
+++ b/examples
@@ -1 +1 @@
-Subproject commit cf055657131634efe7a47e017a83a69d7a1f123b
+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 2dff906..6e3d271 100755
--- a/genhello.sh
+++ b/genhello.sh
@@ -1,23 +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" &&
-$JAVA_HOME/bin/javac -parameters com/jh/*.java &&
+export JAVA_HOME=${JAVA_HOME?-Please export JAVA_HOME}
-$JAVA_HOME/bin/jar cf /tmp/hello.jar com/jh/*.class &&
+export COMPANY=johnholdsworth
+
+# clear out any generated swift files
+\rm `find ../{swift-android-samples,swift-android-kotlin} -name 'SwiftHello*.swift'` 2>/dev/null
+
+# clear out generated Java proxy files
+\rm -rf ../{swift-android-samples,swift-android-kotlin}/*/src/main/java/org/swiftjava/com_$COMPANY
+
+# 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} &&
+
+\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 &&
-mkdir -p swift-android-samples/swifthello/src/main/java/{com/jh,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 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 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 cb497ce..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 d1e88cf..7aa8dcf 100755
--- a/genpkg.sh
+++ b/genpkg.sh
@@ -3,13 +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-beta5.app/Contents/Developer/usr/bin/xcodebuild
+XCODEBUILD=/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
+
+# downloadable from https://support.apple.com/kb/dl1572?locale=en_US
+export JAVA_HOME=${JAVA_HOME:-/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home}
for i in $*; do
- ./genswift.sh $i
- ./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
@@ -18,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 f84fc4b..b36fa43 100755
--- a/gentests.rb
+++ b/gentests.rb
@@ -1,6 +1,13 @@
-#!/usr/bin/env ruby -w
+#!/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,23 +28,70 @@
referenceException = {
'boolean' => 'true',
- 'String' => '"123"'
+ 'String' => '"123"',
+ 'TestListener' => 'SwiftTestListener()'
}
-java = File.open( "src/org/genie/SwiftTest.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 loopback?.#{type}Method( arg: arg ) ?? arg
+ }
+
+ override public func #{type}ArrayMethod( arg: [#{atype}]? ) -> [#{atype}]? {
+ return loopback?.#{type}ArrayMethod( arg: arg ) ?? arg
+ }
+
+ override public func #{type}2dArrayMethod( arg: [[#{atype}]]? ) -> [[#{atype}]]? {
+ 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 )
- }
-
- public class func booleanMethodStatic( _ _arg0: Bool ) -> Bool {
- return booleanMethodStatic( arg0: _arg0 )
- }
-
- /// public boolean org.genie.SwiftTest.booleanMethod(boolean)
-
- private static var booleanMethod_MethodID_3: jmethodID?
-
- public 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 )
- }
-
- public func booleanMethod( _ _arg0: Bool ) -> Bool {
- return booleanMethod( arg0: _arg0 )
- }
-
- /// public static boolean[] org.genie.SwiftTest.booleanArrayMethodStatic(boolean[])
-
- private static var booleanArrayMethodStatic_MethodID_4: jmethodID?
-
- public 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 )
- }
-
- public class func booleanArrayMethodStatic( _ _arg0: [Bool]? ) -> [Bool]! {
- return booleanArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public boolean[] org.genie.SwiftTest.booleanArrayMethod(boolean[])
-
- private static var booleanArrayMethod_MethodID_5: jmethodID?
-
- public 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 )
- }
-
- public func booleanArrayMethod( _ _arg0: [Bool]? ) -> [Bool]! {
- return booleanArrayMethod( arg0: _arg0 )
- }
-
- /// public static boolean[][] org.genie.SwiftTest.boolean2dArrayMethodStatic(boolean[][])
-
- private static var boolean2dArrayMethodStatic_MethodID_6: jmethodID?
-
- public 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 )
- }
-
- public class func boolean2dArrayMethodStatic( _ _arg0: [[Bool]]? ) -> [[Bool]]! {
- return boolean2dArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public boolean[][] org.genie.SwiftTest.boolean2dArrayMethod(boolean[][])
-
- private static var boolean2dArrayMethod_MethodID_7: jmethodID?
-
- public 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 )
- }
-
- public func boolean2dArrayMethod( _ _arg0: [[Bool]]? ) -> [[Bool]]! {
- return boolean2dArrayMethod( arg0: _arg0 )
- }
-
- /// public static byte org.genie.SwiftTest.byteMethodStatic(byte)
-
- private static var byteMethodStatic_MethodID_8: jmethodID?
-
- public 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 )
- }
-
- public class func byteMethodStatic( _ _arg0: Int8 ) -> Int8 {
- return byteMethodStatic( arg0: _arg0 )
- }
-
- /// public byte org.genie.SwiftTest.byteMethod(byte)
-
- private static var byteMethod_MethodID_9: jmethodID?
-
- public 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 )
- }
-
- public func byteMethod( _ _arg0: Int8 ) -> Int8 {
- return byteMethod( arg0: _arg0 )
- }
-
- /// public static byte[] org.genie.SwiftTest.byteArrayMethodStatic(byte[])
-
- private static var byteArrayMethodStatic_MethodID_10: jmethodID?
-
- public 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 )
- }
-
- public class func byteArrayMethodStatic( _ _arg0: [Int8]? ) -> [Int8]! {
- return byteArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public byte[] org.genie.SwiftTest.byteArrayMethod(byte[])
-
- private static var byteArrayMethod_MethodID_11: jmethodID?
-
- public 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 )
- }
-
- public func byteArrayMethod( _ _arg0: [Int8]? ) -> [Int8]! {
- return byteArrayMethod( arg0: _arg0 )
- }
-
- /// public static byte[][] org.genie.SwiftTest.byte2dArrayMethodStatic(byte[][])
-
- private static var byte2dArrayMethodStatic_MethodID_12: jmethodID?
-
- public 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 )
- }
-
- public class func byte2dArrayMethodStatic( _ _arg0: [[Int8]]? ) -> [[Int8]]! {
- return byte2dArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public byte[][] org.genie.SwiftTest.byte2dArrayMethod(byte[][])
-
- private static var byte2dArrayMethod_MethodID_13: jmethodID?
-
- public 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 )
- }
-
- public func byte2dArrayMethod( _ _arg0: [[Int8]]? ) -> [[Int8]]! {
- return byte2dArrayMethod( arg0: _arg0 )
- }
-
- /// public static char org.genie.SwiftTest.charMethodStatic(char)
-
- private static var charMethodStatic_MethodID_14: jmethodID?
-
- public 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 )
- }
-
- public class func charMethodStatic( _ _arg0: UInt16 ) -> UInt16 {
- return charMethodStatic( arg0: _arg0 )
- }
-
- /// public char org.genie.SwiftTest.charMethod(char)
-
- private static var charMethod_MethodID_15: jmethodID?
-
- public 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 )
- }
-
- public func charMethod( _ _arg0: UInt16 ) -> UInt16 {
- return charMethod( arg0: _arg0 )
- }
-
- /// public static char[] org.genie.SwiftTest.charArrayMethodStatic(char[])
-
- private static var charArrayMethodStatic_MethodID_16: jmethodID?
-
- public 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 )
- }
-
- public class func charArrayMethodStatic( _ _arg0: [UInt16]? ) -> [UInt16]! {
- return charArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public char[] org.genie.SwiftTest.charArrayMethod(char[])
-
- private static var charArrayMethod_MethodID_17: jmethodID?
-
- public 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 )
- }
-
- public func charArrayMethod( _ _arg0: [UInt16]? ) -> [UInt16]! {
- return charArrayMethod( arg0: _arg0 )
- }
-
- /// public static char[][] org.genie.SwiftTest.char2dArrayMethodStatic(char[][])
-
- private static var char2dArrayMethodStatic_MethodID_18: jmethodID?
-
- public 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 )
- }
-
- public class func char2dArrayMethodStatic( _ _arg0: [[UInt16]]? ) -> [[UInt16]]! {
- return char2dArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public char[][] org.genie.SwiftTest.char2dArrayMethod(char[][])
-
- private static var char2dArrayMethod_MethodID_19: jmethodID?
-
- public 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 )
- }
-
- public func char2dArrayMethod( _ _arg0: [[UInt16]]? ) -> [[UInt16]]! {
- return char2dArrayMethod( arg0: _arg0 )
- }
-
- /// public static short org.genie.SwiftTest.shortMethodStatic(short)
-
- private static var shortMethodStatic_MethodID_20: jmethodID?
-
- public 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 )
- }
-
- public class func shortMethodStatic( _ _arg0: Int16 ) -> Int16 {
- return shortMethodStatic( arg0: _arg0 )
- }
-
- /// public short org.genie.SwiftTest.shortMethod(short)
-
- private static var shortMethod_MethodID_21: jmethodID?
-
- public 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 )
- }
-
- public func shortMethod( _ _arg0: Int16 ) -> Int16 {
- return shortMethod( arg0: _arg0 )
- }
-
- /// public static short[] org.genie.SwiftTest.shortArrayMethodStatic(short[])
-
- private static var shortArrayMethodStatic_MethodID_22: jmethodID?
-
- public 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 )
- }
-
- public class func shortArrayMethodStatic( _ _arg0: [Int16]? ) -> [Int16]! {
- return shortArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public short[] org.genie.SwiftTest.shortArrayMethod(short[])
-
- private static var shortArrayMethod_MethodID_23: jmethodID?
-
- public 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 )
- }
-
- public func shortArrayMethod( _ _arg0: [Int16]? ) -> [Int16]! {
- return shortArrayMethod( arg0: _arg0 )
- }
-
- /// public static short[][] org.genie.SwiftTest.short2dArrayMethodStatic(short[][])
-
- private static var short2dArrayMethodStatic_MethodID_24: jmethodID?
-
- public 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 )
- }
-
- public class func short2dArrayMethodStatic( _ _arg0: [[Int16]]? ) -> [[Int16]]! {
- return short2dArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public short[][] org.genie.SwiftTest.short2dArrayMethod(short[][])
-
- private static var short2dArrayMethod_MethodID_25: jmethodID?
-
- public 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 )
- }
-
- public func short2dArrayMethod( _ _arg0: [[Int16]]? ) -> [[Int16]]! {
- return short2dArrayMethod( arg0: _arg0 )
- }
-
- /// public static int org.genie.SwiftTest.intMethodStatic(int)
-
- private static var intMethodStatic_MethodID_26: jmethodID?
-
- public 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 )
- }
-
- public class func intMethodStatic( _ _arg0: Int ) -> Int {
- return intMethodStatic( arg0: _arg0 )
- }
-
- /// public int org.genie.SwiftTest.intMethod(int)
-
- private static var intMethod_MethodID_27: jmethodID?
-
- public 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 )
- }
-
- public func intMethod( _ _arg0: Int ) -> Int {
- return intMethod( arg0: _arg0 )
- }
-
- /// public static int[] org.genie.SwiftTest.intArrayMethodStatic(int[])
-
- private static var intArrayMethodStatic_MethodID_28: jmethodID?
-
- public 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 )
- }
-
- public class func intArrayMethodStatic( _ _arg0: [Int32]? ) -> [Int32]! {
- return intArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public int[] org.genie.SwiftTest.intArrayMethod(int[])
-
- private static var intArrayMethod_MethodID_29: jmethodID?
-
- public 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 )
- }
-
- public func intArrayMethod( _ _arg0: [Int32]? ) -> [Int32]! {
- return intArrayMethod( arg0: _arg0 )
- }
-
- /// public static int[][] org.genie.SwiftTest.int2dArrayMethodStatic(int[][])
-
- private static var int2dArrayMethodStatic_MethodID_30: jmethodID?
-
- public 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 )
- }
-
- public class func int2dArrayMethodStatic( _ _arg0: [[Int32]]? ) -> [[Int32]]! {
- return int2dArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public int[][] org.genie.SwiftTest.int2dArrayMethod(int[][])
-
- private static var int2dArrayMethod_MethodID_31: jmethodID?
-
- public 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 )
- }
-
- public func int2dArrayMethod( _ _arg0: [[Int32]]? ) -> [[Int32]]! {
- return int2dArrayMethod( arg0: _arg0 )
- }
-
- /// public static long org.genie.SwiftTest.longMethodStatic(long)
-
- private static var longMethodStatic_MethodID_32: jmethodID?
-
- public 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 )
- }
-
- public class func longMethodStatic( _ _arg0: Int64 ) -> Int64 {
- return longMethodStatic( arg0: _arg0 )
- }
-
- /// public long org.genie.SwiftTest.longMethod(long)
-
- private static var longMethod_MethodID_33: jmethodID?
-
- public 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 )
- }
-
- public func longMethod( _ _arg0: Int64 ) -> Int64 {
- return longMethod( arg0: _arg0 )
- }
-
- /// public static long[] org.genie.SwiftTest.longArrayMethodStatic(long[])
-
- private static var longArrayMethodStatic_MethodID_34: jmethodID?
-
- public 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 )
- }
-
- public class func longArrayMethodStatic( _ _arg0: [Int64]? ) -> [Int64]! {
- return longArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public long[] org.genie.SwiftTest.longArrayMethod(long[])
-
- private static var longArrayMethod_MethodID_35: jmethodID?
-
- public 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 )
- }
-
- public func longArrayMethod( _ _arg0: [Int64]? ) -> [Int64]! {
- return longArrayMethod( arg0: _arg0 )
- }
-
- /// public static long[][] org.genie.SwiftTest.long2dArrayMethodStatic(long[][])
-
- private static var long2dArrayMethodStatic_MethodID_36: jmethodID?
-
- public 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 )
- }
-
- public class func long2dArrayMethodStatic( _ _arg0: [[Int64]]? ) -> [[Int64]]! {
- return long2dArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public long[][] org.genie.SwiftTest.long2dArrayMethod(long[][])
-
- private static var long2dArrayMethod_MethodID_37: jmethodID?
-
- public 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 )
- }
-
- public func long2dArrayMethod( _ _arg0: [[Int64]]? ) -> [[Int64]]! {
- return long2dArrayMethod( arg0: _arg0 )
- }
-
- /// public static float org.genie.SwiftTest.floatMethodStatic(float)
-
- private static var floatMethodStatic_MethodID_38: jmethodID?
-
- public 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 )
- }
-
- public class func floatMethodStatic( _ _arg0: Float ) -> Float {
- return floatMethodStatic( arg0: _arg0 )
- }
-
- /// public float org.genie.SwiftTest.floatMethod(float)
-
- private static var floatMethod_MethodID_39: jmethodID?
-
- public 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 )
- }
-
- public func floatMethod( _ _arg0: Float ) -> Float {
- return floatMethod( arg0: _arg0 )
- }
-
- /// public static float[] org.genie.SwiftTest.floatArrayMethodStatic(float[])
-
- private static var floatArrayMethodStatic_MethodID_40: jmethodID?
-
- public 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 )
- }
-
- public class func floatArrayMethodStatic( _ _arg0: [Float]? ) -> [Float]! {
- return floatArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public float[] org.genie.SwiftTest.floatArrayMethod(float[])
-
- private static var floatArrayMethod_MethodID_41: jmethodID?
-
- public 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 )
- }
-
- public func floatArrayMethod( _ _arg0: [Float]? ) -> [Float]! {
- return floatArrayMethod( arg0: _arg0 )
- }
-
- /// public static float[][] org.genie.SwiftTest.float2dArrayMethodStatic(float[][])
-
- private static var float2dArrayMethodStatic_MethodID_42: jmethodID?
-
- public 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 )
- }
-
- public class func float2dArrayMethodStatic( _ _arg0: [[Float]]? ) -> [[Float]]! {
- return float2dArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public float[][] org.genie.SwiftTest.float2dArrayMethod(float[][])
-
- private static var float2dArrayMethod_MethodID_43: jmethodID?
-
- public 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 )
- }
-
- public func float2dArrayMethod( _ _arg0: [[Float]]? ) -> [[Float]]! {
- return float2dArrayMethod( arg0: _arg0 )
- }
-
- /// public static double org.genie.SwiftTest.doubleMethodStatic(double)
-
- private static var doubleMethodStatic_MethodID_44: jmethodID?
-
- public 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 )
- }
-
- public class func doubleMethodStatic( _ _arg0: Double ) -> Double {
- return doubleMethodStatic( arg0: _arg0 )
- }
-
- /// public double org.genie.SwiftTest.doubleMethod(double)
-
- private static var doubleMethod_MethodID_45: jmethodID?
-
- public 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 )
- }
-
- public func doubleMethod( _ _arg0: Double ) -> Double {
- return doubleMethod( arg0: _arg0 )
- }
-
- /// public static double[] org.genie.SwiftTest.doubleArrayMethodStatic(double[])
-
- private static var doubleArrayMethodStatic_MethodID_46: jmethodID?
-
- public 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 )
- }
-
- public class func doubleArrayMethodStatic( _ _arg0: [Double]? ) -> [Double]! {
- return doubleArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public double[] org.genie.SwiftTest.doubleArrayMethod(double[])
-
- private static var doubleArrayMethod_MethodID_47: jmethodID?
-
- public 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 )
- }
-
- public func doubleArrayMethod( _ _arg0: [Double]? ) -> [Double]! {
- return doubleArrayMethod( arg0: _arg0 )
- }
-
- /// public static double[][] org.genie.SwiftTest.double2dArrayMethodStatic(double[][])
-
- private static var double2dArrayMethodStatic_MethodID_48: jmethodID?
-
- public 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 )
- }
-
- public class func double2dArrayMethodStatic( _ _arg0: [[Double]]? ) -> [[Double]]! {
- return double2dArrayMethodStatic( arg0: _arg0 )
- }
-
- /// public double[][] org.genie.SwiftTest.double2dArrayMethod(double[][])
-
- private static var double2dArrayMethod_MethodID_49: jmethodID?
-
- public 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 )
- }
-
- public 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?
-
- public 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 )
- }
-
- public 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?
-
- public 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 )
- }
-
- public 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?
-
- public 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 )
- }
-
- public 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?
-
- public 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 )
- }
-
- public 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?
-
- public 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 )
- }
-
- public 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?
-
- public 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 )
- }
-
- public 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/parameters/recipe.sh b/parameters/recipe.sh
index 8f5902e..56433c5 100644
--- a/parameters/recipe.sh
+++ b/parameters/recipe.sh
@@ -5,7 +5,7 @@
# unzip $JAVA_HOME/src.zip
# find . -name '*.java' > sources.txt
-# $JAVA_HOME/bin/jvac -d classes -g -parameters @sources.txt 2>&1 | tee log.txt
+# $JAVA_HOME/bin/javac -d classes -g -parameters @sources.txt 2>&1 | tee log.txt
# unfortunately this gives errors and you have to repeat the folowing steps
diff --git a/src/com/jh/SwiftHelloListener.java b/src/com/jh/SwiftHelloListener.java
deleted file mode 100644
index 0bdd67a..0000000
--- a/src/com/jh/SwiftHelloListener.java
+++ /dev/null
@@ -1,10 +0,0 @@
-
-package com.jh;
-
-public interface SwiftHelloListener {
-
- public void processNumber( double number );
-
- public void processText( String text );
-
-}
diff --git a/src/com/jh/SwiftHelloResponder.java b/src/com/jh/SwiftHelloResponder.java
deleted file mode 100644
index 05b7e6a..0000000
--- a/src/com/jh/SwiftHelloResponder.java
+++ /dev/null
@@ -1,10 +0,0 @@
-
-package com.jh;
-
-public interface SwiftHelloResponder {
-
- public void processedNumber( double number );
-
- public void processedText( String text );
-
-}
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 956dfcc..4173b69 100644
--- a/src/genswift.java
+++ b/src/genswift.java
@@ -1,179 +1,293 @@
//
// 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
+// 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
+// "Forward" added that can be used to message to instances of
+// the protocol from Swift.
+//
+// Where the interface is java.lang.Runnable or the interface name
+// ends in "Listener", "Handler" or "Manager" an additional "Base"
+// class is generated, instances of which can be passed to Java and
+// 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 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
+// 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
+// ~/.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.lang.reflect.*;
+import java.util.Comparator;
+import java.lang.reflect.Field;
+import java.lang.reflect.Modifier;
class genswift {
- 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