Skip to content

Commit 1ac3da3

Browse files
committed
Initial commit
0 parents  commit 1ac3da3

File tree

384 files changed

+137776
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

384 files changed

+137776
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*/xcuserdata/*

Info.plist

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>en</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>$(PRODUCT_NAME)</string>
15+
<key>CFBundlePackageType</key>
16+
<string>FMWK</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>1.0</string>
19+
<key>CFBundleSignature</key>
20+
<string>????</string>
21+
<key>CFBundleVersion</key>
22+
<string>$(CURRENT_PROJECT_VERSION)</string>
23+
<key>NSHumanReadableCopyright</key>
24+
<string>Copyright © 2016 John Holdsworth. All rights reserved.</string>
25+
<key>NSPrincipalClass</key>
26+
<string></string>
27+
</dict>
28+
</plist>

LICENSE

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
This representation of the Java apis is generated from the Apple distribution of the Java VM
3+
which are provided under the provisions of "Fair Use" but your use is ultimately subject
4+
to the original License Agreement.
5+
6+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
7+
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
8+
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
9+
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
10+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Package.swift

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//
2+
// Package.swift
3+
// SwiftJava
4+
//
5+
// Created by John Holdsworth on 20/07/2016.
6+
// Copyright (c) 2016 John Holdsworth. All rights reserved.
7+
//
8+
9+
import PackageDescription
10+
11+
let package = Package(
12+
name: "java_awt",
13+
dependencies: [
14+
.Package(url: "https://github.com/SwiftJava/java_util.git", versions: Version(1,0,0)..<Version(2,0,0)),
15+
]
16+
)

Sources/AWTError.swift

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
2+
import java_swift
3+
import java_lang
4+
5+
/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
6+
7+
/// JAVA_HOME: /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home ///
8+
/// Tue Dec 20 11:34:45 GMT 2016 ///
9+
10+
/// class java.awt.AWTError ///
11+
12+
open class AWTError: java_lang.JavaError {
13+
14+
public convenience init?( casting object: java_lang.JavaObject, _ file: StaticString = #file, _ line: Int = #line ) {
15+
self.init( javaObject: nil )
16+
if !object.validDownCast( toJavaClass: "java.awt.AWTError", file, line ) {
17+
return nil
18+
}
19+
object.withJavaObject {
20+
self.javaObject = $0
21+
}
22+
}
23+
24+
private static var AWTErrorJNIClass: jclass?
25+
26+
/// private static final long java.awt.AWTError.serialVersionUID
27+
28+
/// static final long java.lang.Error.serialVersionUID
29+
30+
/// private static final long java.lang.Throwable.serialVersionUID
31+
32+
/// private java.lang.String java.lang.Throwable.detailMessage
33+
34+
/// private java.lang.Throwable java.lang.Throwable.cause
35+
36+
/// private java.lang.StackTraceElement[] java.lang.Throwable.stackTrace
37+
38+
/// public java.awt.AWTError(java.lang.String)
39+
40+
private static var new_MethodID_1: jmethodID?
41+
42+
public convenience init( arg0: String? ) {
43+
var __args = [jvalue]( repeating: jvalue(), count: 1 )
44+
var __locals = [jobject]()
45+
__args[0] = JNIType.encode( value: arg0, locals: &__locals )
46+
let __object = JNIMethod.NewObject( className: "java/awt/AWTError", classCache: &AWTError.AWTErrorJNIClass, methodSig: "(Ljava/lang/String;)V", methodCache: &AWTError.new_MethodID_1, args: &__args, locals: &__locals )
47+
self.init( javaObject: __object )
48+
JNI.DeleteLocalRef( __object )
49+
}
50+
51+
public convenience init( _ _arg0: String? ) {
52+
self.init( arg0: _arg0 )
53+
}
54+
55+
}

0 commit comments

Comments
 (0)