diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 9aba4b06c..3348d06bb 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -311,3 +311,30 @@ jobs: run: ./scripts/run-linkage-test.sh env: JAVA_HOME: ${{ env.JAVA_HOME }} + + verify-wrap-java-idempotent: + name: JavaStdlib wrap-java up-to-date + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + jdk_vendor: ['corretto'] + container: + image: swift:6.3-jammy + steps: + - uses: actions/checkout@v6 + - name: Mark workspace as safe for git + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" + - name: Prepare CI Environment + uses: ./.github/actions/prepare_env + - name: Regenerate JavaStdlib wrappers + env: + JAVA_HOME: ${{ env.JAVA_HOME_25 }} + run: ./scripts/wrap-java-generate.sh + - name: Verify no changes (whitespace-tolerant) + run: | + if ! git diff --ignore-all-space --ignore-blank-lines --exit-code -- '**/generated/*.swift'; then + echo "::error::wrap-java output drifted. Re-run ./scripts/wrap-java-generate.sh and commit the result." + git diff --ignore-all-space --ignore-blank-lines -- '**/generated/*.swift' + exit 1 + fi diff --git a/Sources/JavaStdlib/JavaIO/generated/BufferedInputStream.swift b/Sources/JavaStdlib/JavaIO/generated/BufferedInputStream.swift index 71bb3ebbb..081016135 100644 --- a/Sources/JavaStdlib/JavaIO/generated/BufferedInputStream.swift +++ b/Sources/JavaStdlib/JavaIO/generated/BufferedInputStream.swift @@ -10,14 +10,14 @@ open class BufferedInputStream: InputStream { @JavaMethod @_nonoverride public convenience init(_ arg0: InputStream?, _ arg1: Int32, environment: JNIEnvironment? = nil) - /// Java method `reset`. + /// Java method `available`. /// /// ### Java method signature /// ```java - /// public synchronized void java.io.BufferedInputStream.reset() throws java.io.IOException + /// public synchronized int java.io.BufferedInputStream.available() throws java.io.IOException /// ``` @JavaMethod - open override func reset() throws + open override func available() throws -> Int32 /// Java method `close`. /// @@ -37,14 +37,14 @@ open class BufferedInputStream: InputStream { @JavaMethod open override func mark(_ arg0: Int32) - /// Java method `read`. + /// Java method `markSupported`. /// /// ### Java method signature /// ```java - /// public synchronized int java.io.BufferedInputStream.read(byte[],int,int) throws java.io.IOException + /// public boolean java.io.BufferedInputStream.markSupported() /// ``` @JavaMethod - open override func read(_ arg0: [Int8], _ arg1: Int32, _ arg2: Int32) throws -> Int32 + open override func markSupported() -> Bool /// Java method `read`. /// @@ -55,39 +55,39 @@ open class BufferedInputStream: InputStream { @JavaMethod open override func read() throws -> Int32 - /// Java method `transferTo`. + /// Java method `read`. /// /// ### Java method signature /// ```java - /// public synchronized long java.io.BufferedInputStream.transferTo(java.io.OutputStream) throws java.io.IOException + /// public synchronized int java.io.BufferedInputStream.read(byte[],int,int) throws java.io.IOException /// ``` @JavaMethod - open override func transferTo(_ arg0: OutputStream?) throws -> Int64 + open override func read(_ arg0: [Int8], _ arg1: Int32, _ arg2: Int32) throws -> Int32 - /// Java method `skip`. + /// Java method `reset`. /// /// ### Java method signature /// ```java - /// public synchronized long java.io.BufferedInputStream.skip(long) throws java.io.IOException + /// public synchronized void java.io.BufferedInputStream.reset() throws java.io.IOException /// ``` @JavaMethod - open override func skip(_ arg0: Int64) throws -> Int64 + open override func reset() throws - /// Java method `available`. + /// Java method `skip`. /// /// ### Java method signature /// ```java - /// public synchronized int java.io.BufferedInputStream.available() throws java.io.IOException + /// public synchronized long java.io.BufferedInputStream.skip(long) throws java.io.IOException /// ``` @JavaMethod - open override func available() throws -> Int32 + open override func skip(_ arg0: Int64) throws -> Int64 - /// Java method `markSupported`. + /// Java method `transferTo`. /// /// ### Java method signature /// ```java - /// public boolean java.io.BufferedInputStream.markSupported() + /// public synchronized long java.io.BufferedInputStream.transferTo(java.io.OutputStream) throws java.io.IOException /// ``` @JavaMethod - open override func markSupported() -> Bool + open override func transferTo(_ arg0: OutputStream?) throws -> Int64 } diff --git a/Sources/JavaStdlib/JavaIO/generated/FileDescriptor.swift b/Sources/JavaStdlib/JavaIO/generated/FileDescriptor.swift index 25cfd223b..e3f43509a 100644 --- a/Sources/JavaStdlib/JavaIO/generated/FileDescriptor.swift +++ b/Sources/JavaStdlib/JavaIO/generated/FileDescriptor.swift @@ -2,6 +2,16 @@ import SwiftJava import SwiftJavaJNICore +extension JavaClass { + @JavaStaticField(isFinal: true) + public var err: FileDescriptor! + + @JavaStaticField("in", isFinal: true) + public var `in`: FileDescriptor! + + @JavaStaticField(isFinal: true) + public var out: FileDescriptor! +} @JavaClass("java.io.FileDescriptor") open class FileDescriptor: JavaObject { @JavaMethod @@ -25,13 +35,3 @@ open class FileDescriptor: JavaObject { @JavaMethod open func valid() -> Bool } -extension JavaClass { - @JavaStaticField("in", isFinal: true) - public var `in`: FileDescriptor! - - @JavaStaticField(isFinal: true) - public var out: FileDescriptor! - - @JavaStaticField(isFinal: true) - public var err: FileDescriptor! -} diff --git a/Sources/JavaStdlib/JavaIO/generated/FileReader.swift b/Sources/JavaStdlib/JavaIO/generated/FileReader.swift index 545c24b71..b5a3752cb 100644 --- a/Sources/JavaStdlib/JavaIO/generated/FileReader.swift +++ b/Sources/JavaStdlib/JavaIO/generated/FileReader.swift @@ -5,17 +5,17 @@ import SwiftJavaJNICore @JavaClass("java.io.FileReader") open class FileReader: InputStreamReader { @JavaMethod - @_nonoverride public convenience init(_ arg0: File?, _ arg1: Charset?, environment: JNIEnvironment? = nil) throws + @_nonoverride public convenience init(_ arg0: File?, environment: JNIEnvironment? = nil) throws @JavaMethod - @_nonoverride public convenience init(_ arg0: String, _ arg1: Charset?, environment: JNIEnvironment? = nil) throws + @_nonoverride public convenience init(_ arg0: File?, _ arg1: Charset?, environment: JNIEnvironment? = nil) throws @JavaMethod @_nonoverride public convenience init(_ arg0: FileDescriptor?, environment: JNIEnvironment? = nil) @JavaMethod - @_nonoverride public convenience init(_ arg0: File?, environment: JNIEnvironment? = nil) throws + @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) throws @JavaMethod - @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) throws + @_nonoverride public convenience init(_ arg0: String, _ arg1: Charset?, environment: JNIEnvironment? = nil) throws } diff --git a/Sources/JavaStdlib/JavaIO/generated/InputStreamReader.swift b/Sources/JavaStdlib/JavaIO/generated/InputStreamReader.swift index b5fc8c96d..698e1d910 100644 --- a/Sources/JavaStdlib/JavaIO/generated/InputStreamReader.swift +++ b/Sources/JavaStdlib/JavaIO/generated/InputStreamReader.swift @@ -5,56 +5,56 @@ import SwiftJavaJNICore @JavaClass("java.io.InputStreamReader") open class InputStreamReader: Reader { @JavaMethod - @_nonoverride public convenience init(_ arg0: InputStream?, _ arg1: Charset?, environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(_ arg0: InputStream?, environment: JNIEnvironment? = nil) @JavaMethod @_nonoverride public convenience init(_ arg0: InputStream?, _ arg1: String, environment: JNIEnvironment? = nil) throws @JavaMethod - @_nonoverride public convenience init(_ arg0: InputStream?, environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(_ arg0: InputStream?, _ arg1: Charset?, environment: JNIEnvironment? = nil) - /// Java method `ready`. + /// Java method `close`. /// /// ### Java method signature /// ```java - /// public boolean java.io.InputStreamReader.ready() throws java.io.IOException + /// public void java.io.InputStreamReader.close() throws java.io.IOException /// ``` @JavaMethod - open override func ready() throws -> Bool + open override func close() throws - /// Java method `close`. + /// Java method `getEncoding`. /// /// ### Java method signature /// ```java - /// public void java.io.InputStreamReader.close() throws java.io.IOException + /// public java.lang.String java.io.InputStreamReader.getEncoding() /// ``` @JavaMethod - open override func close() throws + open func getEncoding() -> String /// Java method `read`. /// /// ### Java method signature /// ```java - /// public int java.io.InputStreamReader.read(char[],int,int) throws java.io.IOException + /// public int java.io.InputStreamReader.read() throws java.io.IOException /// ``` @JavaMethod - open override func read(_ arg0: [UInt16], _ arg1: Int32, _ arg2: Int32) throws -> Int32 + open override func read() throws -> Int32 /// Java method `read`. /// /// ### Java method signature /// ```java - /// public int java.io.InputStreamReader.read() throws java.io.IOException + /// public int java.io.InputStreamReader.read(char[],int,int) throws java.io.IOException /// ``` @JavaMethod - open override func read() throws -> Int32 + open override func read(_ arg0: [UInt16], _ arg1: Int32, _ arg2: Int32) throws -> Int32 - /// Java method `getEncoding`. + /// Java method `ready`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.io.InputStreamReader.getEncoding() + /// public boolean java.io.InputStreamReader.ready() throws java.io.IOException /// ``` @JavaMethod - open func getEncoding() -> String + open override func ready() throws -> Bool } diff --git a/Sources/JavaStdlib/JavaIO/generated/Reader.swift b/Sources/JavaStdlib/JavaIO/generated/Reader.swift index 5f0236ae4..5d4626c56 100644 --- a/Sources/JavaStdlib/JavaIO/generated/Reader.swift +++ b/Sources/JavaStdlib/JavaIO/generated/Reader.swift @@ -2,35 +2,27 @@ import SwiftJava import SwiftJavaJNICore -@JavaClass("java.io.Reader", implements: Readable.self, Closeable.self) -open class Reader: JavaObject { - /// Java method `ready`. - /// - /// ### Java method signature - /// ```java - /// public boolean java.io.Reader.ready() throws java.io.IOException - /// ``` - @JavaMethod - open func ready() throws -> Bool - - /// Java method `readAllAsString`. +extension JavaClass { + /// Java method `nullReader`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.io.Reader.readAllAsString() throws java.io.IOException + /// public static java.io.Reader java.io.Reader.nullReader() /// ``` - @JavaMethod - open func readAllAsString() throws -> String + @JavaStaticMethod + public func nullReader() -> Reader! - /// Java method `reset`. + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public void java.io.Reader.reset() throws java.io.IOException + /// public static java.io.Reader java.io.Reader.of(java.lang.CharSequence) /// ``` - @JavaMethod - open func reset() throws - + @JavaStaticMethod + public func of(_ arg0: CharSequence?) -> Reader! +} +@JavaClass("java.io.Reader", implements: Readable.self, Closeable.self) +open class Reader: JavaObject { /// Java method `close`. /// /// ### Java method signature @@ -49,6 +41,15 @@ open class Reader: JavaObject { @JavaMethod open func mark(_ arg0: Int32) throws + /// Java method `markSupported`. + /// + /// ### Java method signature + /// ```java + /// public boolean java.io.Reader.markSupported() + /// ``` + @JavaMethod + open func markSupported() -> Bool + /// Java method `read`. /// /// ### Java method signature @@ -76,58 +77,57 @@ open class Reader: JavaObject { @JavaMethod open func read(_ arg0: [UInt16]) throws -> Int32 - /// Java method `transferTo`. + /// Java method `readAllAsString`. /// /// ### Java method signature /// ```java - /// public long java.io.Reader.transferTo(java.io.Writer) throws java.io.IOException + /// public java.lang.String java.io.Reader.readAllAsString() throws java.io.IOException /// ``` @JavaMethod - open func transferTo(_ arg0: Writer?) throws -> Int64 + open func readAllAsString() throws -> String - /// Java method `skip`. + /// Java method `readAllLines`. /// /// ### Java method signature /// ```java - /// public long java.io.Reader.skip(long) throws java.io.IOException + /// public java.util.List java.io.Reader.readAllLines() throws java.io.IOException /// ``` @JavaMethod - open func skip(_ arg0: Int64) throws -> Int64 + open func readAllLines() throws -> List! - /// Java method `markSupported`. + /// Java method `ready`. /// /// ### Java method signature /// ```java - /// public boolean java.io.Reader.markSupported() + /// public boolean java.io.Reader.ready() throws java.io.IOException /// ``` @JavaMethod - open func markSupported() -> Bool + open func ready() throws -> Bool - /// Java method `readAllLines`. + /// Java method `reset`. /// /// ### Java method signature /// ```java - /// public java.util.List java.io.Reader.readAllLines() throws java.io.IOException + /// public void java.io.Reader.reset() throws java.io.IOException /// ``` @JavaMethod - open func readAllLines() throws -> List! -} -extension JavaClass { - /// Java method `nullReader`. + open func reset() throws + + /// Java method `skip`. /// /// ### Java method signature /// ```java - /// public static java.io.Reader java.io.Reader.nullReader() + /// public long java.io.Reader.skip(long) throws java.io.IOException /// ``` - @JavaStaticMethod - public func nullReader() -> Reader! + @JavaMethod + open func skip(_ arg0: Int64) throws -> Int64 - /// Java method `of`. + /// Java method `transferTo`. /// /// ### Java method signature /// ```java - /// public static java.io.Reader java.io.Reader.of(java.lang.CharSequence) + /// public long java.io.Reader.transferTo(java.io.Writer) throws java.io.IOException /// ``` - @JavaStaticMethod - public func of(_ arg0: CharSequence?) -> Reader! + @JavaMethod + open func transferTo(_ arg0: Writer?) throws -> Int64 } diff --git a/Sources/JavaStdlib/JavaIO/generated/StringReader.swift b/Sources/JavaStdlib/JavaIO/generated/StringReader.swift index 0390d3b5a..56e0a258c 100644 --- a/Sources/JavaStdlib/JavaIO/generated/StringReader.swift +++ b/Sources/JavaStdlib/JavaIO/generated/StringReader.swift @@ -7,41 +7,41 @@ open class StringReader: Reader { @JavaMethod @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) - /// Java method `ready`. + /// Java method `close`. /// /// ### Java method signature /// ```java - /// public boolean java.io.StringReader.ready() throws java.io.IOException + /// public void java.io.StringReader.close() /// ``` @JavaMethod - open override func ready() throws -> Bool + open override func close() - /// Java method `reset`. + /// Java method `mark`. /// /// ### Java method signature /// ```java - /// public void java.io.StringReader.reset() throws java.io.IOException + /// public void java.io.StringReader.mark(int) throws java.io.IOException /// ``` @JavaMethod - open override func reset() throws + open override func mark(_ arg0: Int32) throws - /// Java method `close`. + /// Java method `markSupported`. /// /// ### Java method signature /// ```java - /// public void java.io.StringReader.close() + /// public boolean java.io.StringReader.markSupported() /// ``` @JavaMethod - open override func close() + open override func markSupported() -> Bool - /// Java method `mark`. + /// Java method `read`. /// /// ### Java method signature /// ```java - /// public void java.io.StringReader.mark(int) throws java.io.IOException + /// public int java.io.StringReader.read() throws java.io.IOException /// ``` @JavaMethod - open override func mark(_ arg0: Int32) throws + open override func read() throws -> Int32 /// Java method `read`. /// @@ -52,30 +52,30 @@ open class StringReader: Reader { @JavaMethod open override func read(_ arg0: [UInt16], _ arg1: Int32, _ arg2: Int32) throws -> Int32 - /// Java method `read`. + /// Java method `ready`. /// /// ### Java method signature /// ```java - /// public int java.io.StringReader.read() throws java.io.IOException + /// public boolean java.io.StringReader.ready() throws java.io.IOException /// ``` @JavaMethod - open override func read() throws -> Int32 + open override func ready() throws -> Bool - /// Java method `skip`. + /// Java method `reset`. /// /// ### Java method signature /// ```java - /// public long java.io.StringReader.skip(long) throws java.io.IOException + /// public void java.io.StringReader.reset() throws java.io.IOException /// ``` @JavaMethod - open override func skip(_ arg0: Int64) throws -> Int64 + open override func reset() throws - /// Java method `markSupported`. + /// Java method `skip`. /// /// ### Java method signature /// ```java - /// public boolean java.io.StringReader.markSupported() + /// public long java.io.StringReader.skip(long) throws java.io.IOException /// ``` @JavaMethod - open override func markSupported() -> Bool + open override func skip(_ arg0: Int64) throws -> Int64 } diff --git a/Sources/JavaStdlib/JavaLangReflect/generated/AccessibleObject.swift b/Sources/JavaStdlib/JavaLangReflect/generated/AccessibleObject.swift index 5b54b1df8..2d7efc63f 100644 --- a/Sources/JavaStdlib/JavaLangReflect/generated/AccessibleObject.swift +++ b/Sources/JavaStdlib/JavaLangReflect/generated/AccessibleObject.swift @@ -2,25 +2,36 @@ import SwiftJava import SwiftJavaJNICore +extension JavaClass { + /// Java method `setAccessible`. + /// + /// ### Java method signature + /// ```java + /// public static void java.lang.reflect.AccessibleObject.setAccessible(java.lang.reflect.AccessibleObject[],boolean) + /// ``` + @JavaStaticMethod + public func setAccessible(_ arg0: [AccessibleObject?], _ arg1: Bool) +} @JavaClass("java.lang.reflect.AccessibleObject") open class AccessibleObject: JavaObject { - /// Java method `setAccessible`. + /// Java method `isAccessible`. /// /// ### Java method signature /// ```java - /// public void java.lang.reflect.AccessibleObject.setAccessible(boolean) + /// public boolean java.lang.reflect.AccessibleObject.isAccessible() /// ``` + @available(*, deprecated) @JavaMethod - open func setAccessible(_ arg0: Bool) + open func isAccessible() -> Bool - /// Java method `isAnnotationPresent`. + /// Java method `setAccessible`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.reflect.AccessibleObject.isAnnotationPresent(java.lang.Class) + /// public void java.lang.reflect.AccessibleObject.setAccessible(boolean) /// ``` @JavaMethod - open func isAnnotationPresent(_ arg0: JavaClass?) -> Bool + open func setAccessible(_ arg0: Bool) /// Java method `getAnnotation`. /// @@ -31,14 +42,14 @@ open class AccessibleObject: JavaObject { @JavaMethod(typeErasedResult: "T!", typeErasedResultBound: Annotation?.self) open func getAnnotation(_ arg0: JavaClass?) -> T! - /// Java method `getAnnotationsByType`. + /// Java method `isAnnotationPresent`. /// /// ### Java method signature /// ```java - /// public T[] java.lang.reflect.AccessibleObject.getAnnotationsByType(java.lang.Class) + /// public boolean java.lang.reflect.AccessibleObject.isAnnotationPresent(java.lang.Class) /// ``` @JavaMethod - open func getAnnotationsByType(_ arg0: JavaClass?) -> [T?] + open func isAnnotationPresent(_ arg0: JavaClass?) -> Bool /// Java method `getAnnotations`. /// @@ -49,68 +60,57 @@ open class AccessibleObject: JavaObject { @JavaMethod open func getAnnotations() -> [Annotation?] - /// Java method `getDeclaredAnnotation`. + /// Java method `getAnnotationsByType`. /// /// ### Java method signature /// ```java - /// public T java.lang.reflect.AccessibleObject.getDeclaredAnnotation(java.lang.Class) + /// public T[] java.lang.reflect.AccessibleObject.getAnnotationsByType(java.lang.Class) /// ``` - @JavaMethod(typeErasedResult: "T!", typeErasedResultBound: Annotation?.self) - open func getDeclaredAnnotation(_ arg0: JavaClass?) -> T! + @JavaMethod + open func getAnnotationsByType(_ arg0: JavaClass?) -> [T?] - /// Java method `getDeclaredAnnotationsByType`. + /// Java method `canAccess`. /// /// ### Java method signature /// ```java - /// public T[] java.lang.reflect.AccessibleObject.getDeclaredAnnotationsByType(java.lang.Class) + /// public final boolean java.lang.reflect.AccessibleObject.canAccess(java.lang.Object) /// ``` @JavaMethod - open func getDeclaredAnnotationsByType(_ arg0: JavaClass?) -> [T?] + open func canAccess(_ arg0: JavaObject?) -> Bool - /// Java method `getDeclaredAnnotations`. + /// Java method `getDeclaredAnnotation`. /// /// ### Java method signature /// ```java - /// public java.lang.annotation.Annotation[] java.lang.reflect.AccessibleObject.getDeclaredAnnotations() + /// public T java.lang.reflect.AccessibleObject.getDeclaredAnnotation(java.lang.Class) /// ``` - @JavaMethod - open func getDeclaredAnnotations() -> [Annotation?] + @JavaMethod(typeErasedResult: "T!", typeErasedResultBound: Annotation?.self) + open func getDeclaredAnnotation(_ arg0: JavaClass?) -> T! - /// Java method `trySetAccessible`. + /// Java method `getDeclaredAnnotations`. /// /// ### Java method signature /// ```java - /// public final boolean java.lang.reflect.AccessibleObject.trySetAccessible() + /// public java.lang.annotation.Annotation[] java.lang.reflect.AccessibleObject.getDeclaredAnnotations() /// ``` @JavaMethod - open func trySetAccessible() -> Bool + open func getDeclaredAnnotations() -> [Annotation?] - /// Java method `canAccess`. + /// Java method `getDeclaredAnnotationsByType`. /// /// ### Java method signature /// ```java - /// public final boolean java.lang.reflect.AccessibleObject.canAccess(java.lang.Object) + /// public T[] java.lang.reflect.AccessibleObject.getDeclaredAnnotationsByType(java.lang.Class) /// ``` @JavaMethod - open func canAccess(_ arg0: JavaObject?) -> Bool + open func getDeclaredAnnotationsByType(_ arg0: JavaClass?) -> [T?] - /// Java method `isAccessible`. + /// Java method `trySetAccessible`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.reflect.AccessibleObject.isAccessible() + /// public final boolean java.lang.reflect.AccessibleObject.trySetAccessible() /// ``` - @available(*, deprecated) @JavaMethod - open func isAccessible() -> Bool -} -extension JavaClass { - /// Java method `setAccessible`. - /// - /// ### Java method signature - /// ```java - /// public static void java.lang.reflect.AccessibleObject.setAccessible(java.lang.reflect.AccessibleObject[],boolean) - /// ``` - @JavaStaticMethod - public func setAccessible(_ arg0: [AccessibleObject?], _ arg1: Bool) + open func trySetAccessible() -> Bool } diff --git a/Sources/JavaStdlib/JavaLangReflect/generated/AnnotatedType.swift b/Sources/JavaStdlib/JavaLangReflect/generated/AnnotatedType.swift index 13ce2d906..4c6bd0522 100644 --- a/Sources/JavaStdlib/JavaLangReflect/generated/AnnotatedType.swift +++ b/Sources/JavaStdlib/JavaLangReflect/generated/AnnotatedType.swift @@ -22,66 +22,66 @@ public struct AnnotatedType { @JavaMethod(typeErasedResult: "T!", typeErasedResultBound: Annotation?.self) public func getAnnotation(_ arg0: JavaClass?) -> T! - /// Java method `getAnnotations`. + /// Java method `isAnnotationPresent`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.annotation.Annotation[] java.lang.reflect.AnnotatedType.getAnnotations() + /// public default boolean java.lang.reflect.AnnotatedElement.isAnnotationPresent(java.lang.Class) /// ``` @JavaMethod - public func getAnnotations() -> [Annotation?] + public func isAnnotationPresent(_ arg0: JavaClass?) -> Bool - /// Java method `getDeclaredAnnotations`. + /// Java method `getAnnotations`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.annotation.Annotation[] java.lang.reflect.AnnotatedType.getDeclaredAnnotations() + /// public abstract java.lang.annotation.Annotation[] java.lang.reflect.AnnotatedType.getAnnotations() /// ``` @JavaMethod - public func getDeclaredAnnotations() -> [Annotation?] + public func getAnnotations() -> [Annotation?] - /// Java method `getType`. + /// Java method `getAnnotationsByType`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.reflect.Type java.lang.reflect.AnnotatedType.getType() + /// public default T[] java.lang.reflect.AnnotatedElement.getAnnotationsByType(java.lang.Class) /// ``` @JavaMethod - public func getType() -> Type! + public func getAnnotationsByType(_ arg0: JavaClass?) -> [T?] - /// Java method `isAnnotationPresent`. + /// Java method `getDeclaredAnnotation`. /// /// ### Java method signature /// ```java - /// public default boolean java.lang.reflect.AnnotatedElement.isAnnotationPresent(java.lang.Class) + /// public default T java.lang.reflect.AnnotatedElement.getDeclaredAnnotation(java.lang.Class) /// ``` - @JavaMethod - public func isAnnotationPresent(_ arg0: JavaClass?) -> Bool + @JavaMethod(typeErasedResult: "T!", typeErasedResultBound: Annotation?.self) + public func getDeclaredAnnotation(_ arg0: JavaClass?) -> T! - /// Java method `getAnnotationsByType`. + /// Java method `getDeclaredAnnotations`. /// /// ### Java method signature /// ```java - /// public default T[] java.lang.reflect.AnnotatedElement.getAnnotationsByType(java.lang.Class) + /// public abstract java.lang.annotation.Annotation[] java.lang.reflect.AnnotatedType.getDeclaredAnnotations() /// ``` @JavaMethod - public func getAnnotationsByType(_ arg0: JavaClass?) -> [T?] + public func getDeclaredAnnotations() -> [Annotation?] - /// Java method `getDeclaredAnnotation`. + /// Java method `getDeclaredAnnotationsByType`. /// /// ### Java method signature /// ```java - /// public default T java.lang.reflect.AnnotatedElement.getDeclaredAnnotation(java.lang.Class) + /// public default T[] java.lang.reflect.AnnotatedElement.getDeclaredAnnotationsByType(java.lang.Class) /// ``` - @JavaMethod(typeErasedResult: "T!", typeErasedResultBound: Annotation?.self) - public func getDeclaredAnnotation(_ arg0: JavaClass?) -> T! + @JavaMethod + public func getDeclaredAnnotationsByType(_ arg0: JavaClass?) -> [T?] - /// Java method `getDeclaredAnnotationsByType`. + /// Java method `getType`. /// /// ### Java method signature /// ```java - /// public default T[] java.lang.reflect.AnnotatedElement.getDeclaredAnnotationsByType(java.lang.Class) + /// public abstract java.lang.reflect.Type java.lang.reflect.AnnotatedType.getType() /// ``` @JavaMethod - public func getDeclaredAnnotationsByType(_ arg0: JavaClass?) -> [T?] + public func getType() -> Type! } diff --git a/Sources/JavaStdlib/JavaLangReflect/generated/Annotation.swift b/Sources/JavaStdlib/JavaLangReflect/generated/Annotation.swift index 3287d72f8..abd16c59a 100644 --- a/Sources/JavaStdlib/JavaLangReflect/generated/Annotation.swift +++ b/Sources/JavaStdlib/JavaLangReflect/generated/Annotation.swift @@ -4,23 +4,23 @@ import SwiftJavaJNICore @JavaInterface("java.lang.annotation.Annotation") public struct Annotation { - /// Java method `equals`. + /// Java method `annotationType`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.lang.annotation.Annotation.equals(java.lang.Object) + /// public abstract java.lang.Class java.lang.annotation.Annotation.annotationType() /// ``` @JavaMethod - public func equals(_ arg0: JavaObject?) -> Bool + public func annotationType() -> JavaClass! - /// Java method `toString`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.String java.lang.annotation.Annotation.toString() + /// public abstract boolean java.lang.annotation.Annotation.equals(java.lang.Object) /// ``` @JavaMethod - public func toString() -> String + public func equals(_ arg0: JavaObject?) -> Bool /// Java method `hashCode`. /// @@ -31,12 +31,12 @@ public struct Annotation { @JavaMethod public func hashCode() -> Int32 - /// Java method `annotationType`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.Class java.lang.annotation.Annotation.annotationType() + /// public abstract java.lang.String java.lang.annotation.Annotation.toString() /// ``` @JavaMethod - public func annotationType() -> JavaClass! + public func toString() -> String } diff --git a/Sources/JavaStdlib/JavaLangReflect/generated/Array.swift b/Sources/JavaStdlib/JavaLangReflect/generated/Array.swift index ba7c88e57..3b220aa17 100644 --- a/Sources/JavaStdlib/JavaLangReflect/generated/Array.swift +++ b/Sources/JavaStdlib/JavaLangReflect/generated/Array.swift @@ -2,37 +2,24 @@ import SwiftJava import SwiftJavaJNICore -@JavaClass("java.lang.reflect.Array") -open class Array: JavaObject { - -} extension JavaClass { - /// Java method `get`. - /// - /// ### Java method signature - /// ```java - /// public static native java.lang.Object java.lang.reflect.Array.get(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException - /// ``` - @JavaStaticMethod - public func get(_ arg0: JavaObject?, _ arg1: Int32) throws -> JavaObject! - - /// Java method `getLength`. + /// Java method `getBoolean`. /// /// ### Java method signature /// ```java - /// public static native int java.lang.reflect.Array.getLength(java.lang.Object) throws java.lang.IllegalArgumentException + /// public static native boolean java.lang.reflect.Array.getBoolean(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException /// ``` @JavaStaticMethod - public func getLength(_ arg0: JavaObject?) throws -> Int32 + public func getBoolean(_ arg0: JavaObject?, _ arg1: Int32) throws -> Bool - /// Java method `getBoolean`. + /// Java method `setBoolean`. /// /// ### Java method signature /// ```java - /// public static native boolean java.lang.reflect.Array.getBoolean(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// public static native void java.lang.reflect.Array.setBoolean(java.lang.Object,int,boolean) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException /// ``` @JavaStaticMethod - public func getBoolean(_ arg0: JavaObject?, _ arg1: Int32) throws -> Bool + public func setBoolean(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Bool) throws /// Java method `getByte`. /// @@ -43,14 +30,14 @@ extension JavaClass { @JavaStaticMethod public func getByte(_ arg0: JavaObject?, _ arg1: Int32) throws -> Int8 - /// Java method `getShort`. + /// Java method `setByte`. /// /// ### Java method signature /// ```java - /// public static native short java.lang.reflect.Array.getShort(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// public static native void java.lang.reflect.Array.setByte(java.lang.Object,int,byte) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException /// ``` @JavaStaticMethod - public func getShort(_ arg0: JavaObject?, _ arg1: Int32) throws -> Int16 + public func setByte(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Int8) throws /// Java method `getChar`. /// @@ -61,23 +48,32 @@ extension JavaClass { @JavaStaticMethod public func getChar(_ arg0: JavaObject?, _ arg1: Int32) throws -> UInt16 - /// Java method `getInt`. + /// Java method `setChar`. /// /// ### Java method signature /// ```java - /// public static native int java.lang.reflect.Array.getInt(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// public static native void java.lang.reflect.Array.setChar(java.lang.Object,int,char) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException /// ``` @JavaStaticMethod - public func getInt(_ arg0: JavaObject?, _ arg1: Int32) throws -> Int32 + public func setChar(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: UInt16) throws - /// Java method `getLong`. + /// Java method `getDouble`. /// /// ### Java method signature /// ```java - /// public static native long java.lang.reflect.Array.getLong(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// public static native double java.lang.reflect.Array.getDouble(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException /// ``` @JavaStaticMethod - public func getLong(_ arg0: JavaObject?, _ arg1: Int32) throws -> Int64 + public func getDouble(_ arg0: JavaObject?, _ arg1: Int32) throws -> Double + + /// Java method `setDouble`. + /// + /// ### Java method signature + /// ```java + /// public static native void java.lang.reflect.Array.setDouble(java.lang.Object,int,double) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// ``` + @JavaStaticMethod + public func setDouble(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Double) throws /// Java method `getFloat`. /// @@ -88,111 +84,115 @@ extension JavaClass { @JavaStaticMethod public func getFloat(_ arg0: JavaObject?, _ arg1: Int32) throws -> Float - /// Java method `getDouble`. + /// Java method `setFloat`. /// /// ### Java method signature /// ```java - /// public static native double java.lang.reflect.Array.getDouble(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// public static native void java.lang.reflect.Array.setFloat(java.lang.Object,int,float) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException /// ``` @JavaStaticMethod - public func getDouble(_ arg0: JavaObject?, _ arg1: Int32) throws -> Double + public func setFloat(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Float) throws - /// Java method `newInstance`. + /// Java method `get`. /// /// ### Java method signature /// ```java - /// public static java.lang.Object java.lang.reflect.Array.newInstance(java.lang.Class,int) throws java.lang.NegativeArraySizeException + /// public static native java.lang.Object java.lang.reflect.Array.get(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException /// ``` @JavaStaticMethod - public func newInstance(_ arg0: JavaClass?, _ arg1: Int32) throws -> JavaObject! + public func get(_ arg0: JavaObject?, _ arg1: Int32) throws -> JavaObject! - /// Java method `newInstance`. + /// Java method `getInt`. /// /// ### Java method signature /// ```java - /// public static java.lang.Object java.lang.reflect.Array.newInstance(java.lang.Class,int...) throws java.lang.IllegalArgumentException,java.lang.NegativeArraySizeException + /// public static native int java.lang.reflect.Array.getInt(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException /// ``` @JavaStaticMethod - public func newInstance(_ arg0: JavaClass?, _ arg1: [Int32]) throws -> JavaObject! + public func getInt(_ arg0: JavaObject?, _ arg1: Int32) throws -> Int32 - /// Java method `set`. + /// Java method `setInt`. /// /// ### Java method signature /// ```java - /// public static native void java.lang.reflect.Array.set(java.lang.Object,int,java.lang.Object) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// public static native void java.lang.reflect.Array.setInt(java.lang.Object,int,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException /// ``` @JavaStaticMethod - public func set(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: JavaObject?) throws + public func setInt(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Int32) throws - /// Java method `setBoolean`. + /// Java method `getLength`. /// /// ### Java method signature /// ```java - /// public static native void java.lang.reflect.Array.setBoolean(java.lang.Object,int,boolean) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// public static native int java.lang.reflect.Array.getLength(java.lang.Object) throws java.lang.IllegalArgumentException /// ``` @JavaStaticMethod - public func setBoolean(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Bool) throws + public func getLength(_ arg0: JavaObject?) throws -> Int32 - /// Java method `setByte`. + /// Java method `getLong`. /// /// ### Java method signature /// ```java - /// public static native void java.lang.reflect.Array.setByte(java.lang.Object,int,byte) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// public static native long java.lang.reflect.Array.getLong(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException /// ``` @JavaStaticMethod - public func setByte(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Int8) throws + public func getLong(_ arg0: JavaObject?, _ arg1: Int32) throws -> Int64 - /// Java method `setChar`. + /// Java method `setLong`. /// /// ### Java method signature /// ```java - /// public static native void java.lang.reflect.Array.setChar(java.lang.Object,int,char) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// public static native void java.lang.reflect.Array.setLong(java.lang.Object,int,long) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException /// ``` @JavaStaticMethod - public func setChar(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: UInt16) throws + public func setLong(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Int64) throws - /// Java method `setShort`. + /// Java method `newInstance`. /// /// ### Java method signature /// ```java - /// public static native void java.lang.reflect.Array.setShort(java.lang.Object,int,short) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// public static java.lang.Object java.lang.reflect.Array.newInstance(java.lang.Class,int) throws java.lang.NegativeArraySizeException /// ``` @JavaStaticMethod - public func setShort(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Int16) throws + public func newInstance(_ arg0: JavaClass?, _ arg1: Int32) throws -> JavaObject! - /// Java method `setInt`. + /// Java method `newInstance`. /// /// ### Java method signature /// ```java - /// public static native void java.lang.reflect.Array.setInt(java.lang.Object,int,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// public static java.lang.Object java.lang.reflect.Array.newInstance(java.lang.Class,int...) throws java.lang.IllegalArgumentException,java.lang.NegativeArraySizeException /// ``` @JavaStaticMethod - public func setInt(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Int32) throws + public func newInstance(_ arg0: JavaClass?, _ arg1: [Int32]) throws -> JavaObject! - /// Java method `setLong`. + /// Java method `set`. /// /// ### Java method signature /// ```java - /// public static native void java.lang.reflect.Array.setLong(java.lang.Object,int,long) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// public static native void java.lang.reflect.Array.set(java.lang.Object,int,java.lang.Object) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException /// ``` @JavaStaticMethod - public func setLong(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Int64) throws + public func set(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: JavaObject?) throws - /// Java method `setFloat`. + /// Java method `getShort`. /// /// ### Java method signature /// ```java - /// public static native void java.lang.reflect.Array.setFloat(java.lang.Object,int,float) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// public static native short java.lang.reflect.Array.getShort(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException /// ``` @JavaStaticMethod - public func setFloat(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Float) throws + public func getShort(_ arg0: JavaObject?, _ arg1: Int32) throws -> Int16 - /// Java method `setDouble`. + /// Java method `setShort`. /// /// ### Java method signature /// ```java - /// public static native void java.lang.reflect.Array.setDouble(java.lang.Object,int,double) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// public static native void java.lang.reflect.Array.setShort(java.lang.Object,int,short) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException /// ``` @JavaStaticMethod - public func setDouble(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Double) throws + public func setShort(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Int16) throws +} +@JavaClass("java.lang.reflect.Array") +open class Array: JavaObject { + } diff --git a/Sources/JavaStdlib/JavaLangReflect/generated/Constructor.swift b/Sources/JavaStdlib/JavaLangReflect/generated/Constructor.swift index de9eb5718..259d1aae1 100644 --- a/Sources/JavaStdlib/JavaLangReflect/generated/Constructor.swift +++ b/Sources/JavaStdlib/JavaLangReflect/generated/Constructor.swift @@ -6,201 +6,201 @@ import SwiftJavaJNICore open class Constructor: Executable { public typealias T = Constructor_T - /// Java method `getName`. + /// Java method `setAccessible`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.reflect.Constructor.getName() + /// public void java.lang.reflect.Constructor.setAccessible(boolean) /// ``` @JavaMethod - open override func getName() -> String + open override func setAccessible(_ arg0: Bool) - /// Java method `equals`. + /// Java method `getAnnotatedReceiverType`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.reflect.Constructor.equals(java.lang.Object) + /// public java.lang.reflect.AnnotatedType java.lang.reflect.Constructor.getAnnotatedReceiverType() /// ``` @JavaMethod - open override func equals(_ arg0: JavaObject?) -> Bool + open override func getAnnotatedReceiverType() -> AnnotatedType! - /// Java method `toString`. + /// Java method `getAnnotatedReturnType`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.reflect.Constructor.toString() + /// public java.lang.reflect.AnnotatedType java.lang.reflect.Constructor.getAnnotatedReturnType() /// ``` @JavaMethod - open override func toString() -> String + open override func getAnnotatedReturnType() -> AnnotatedType! - /// Java method `hashCode`. + /// Java method `getAnnotation`. /// /// ### Java method signature /// ```java - /// public int java.lang.reflect.Constructor.hashCode() + /// public T java.lang.reflect.Constructor.getAnnotation(java.lang.Class) /// ``` - @JavaMethod - open override func hashCode() -> Int32 + @JavaMethod(typeErasedResult: "T!", typeErasedResultBound: Annotation?.self) + open override func getAnnotation(_ arg0: JavaClass?) -> T! - /// Java method `getModifiers`. + /// Java method `getDeclaredAnnotations`. /// /// ### Java method signature /// ```java - /// public int java.lang.reflect.Constructor.getModifiers() + /// public java.lang.annotation.Annotation[] java.lang.reflect.Constructor.getDeclaredAnnotations() /// ``` @JavaMethod - open override func getModifiers() -> Int32 + open override func getDeclaredAnnotations() -> [Annotation?] - /// Java method `getTypeParameters`. + /// Java method `getDeclaringClass`. /// /// ### Java method signature /// ```java - /// public java.lang.reflect.TypeVariable>[] java.lang.reflect.Constructor.getTypeParameters() + /// public java.lang.Class java.lang.reflect.Constructor.getDeclaringClass() /// ``` @JavaMethod - open func getTypeParameters() -> [TypeVariable>?] + open func getDeclaringClass() -> JavaClass! - /// Java method `setAccessible`. + /// Java method `getExceptionTypes`. /// /// ### Java method signature /// ```java - /// public void java.lang.reflect.Constructor.setAccessible(boolean) + /// public java.lang.Class[] java.lang.reflect.Constructor.getExceptionTypes() /// ``` @JavaMethod - open override func setAccessible(_ arg0: Bool) + open override func getExceptionTypes() -> [JavaClass?] - /// Java method `newInstance`. + /// Java method `getGenericExceptionTypes`. /// /// ### Java method signature /// ```java - /// public T java.lang.reflect.Constructor.newInstance(java.lang.Object...) throws java.lang.InstantiationException,java.lang.IllegalAccessException,java.lang.IllegalArgumentException,java.lang.reflect.InvocationTargetException + /// public java.lang.reflect.Type[] java.lang.reflect.Constructor.getGenericExceptionTypes() /// ``` - @JavaMethod(typeErasedResult: "T!") - open func newInstance(_ arg0: [JavaObject?]) throws -> T! + @JavaMethod + open override func getGenericExceptionTypes() -> [Type?] - /// Java method `getParameterTypes`. + /// Java method `getGenericParameterTypes`. /// /// ### Java method signature /// ```java - /// public java.lang.Class[] java.lang.reflect.Constructor.getParameterTypes() + /// public java.lang.reflect.Type[] java.lang.reflect.Constructor.getGenericParameterTypes() /// ``` @JavaMethod - open override func getParameterTypes() -> [JavaClass?] + open override func getGenericParameterTypes() -> [Type?] - /// Java method `toGenericString`. + /// Java method `getModifiers`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.reflect.Constructor.toGenericString() + /// public int java.lang.reflect.Constructor.getModifiers() /// ``` @JavaMethod - open override func toGenericString() -> String + open override func getModifiers() -> Int32 - /// Java method `isSynthetic`. + /// Java method `getName`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.reflect.Constructor.isSynthetic() + /// public java.lang.String java.lang.reflect.Constructor.getName() /// ``` @JavaMethod - open override func isSynthetic() -> Bool + open override func getName() -> String - /// Java method `getDeclaringClass`. + /// Java method `newInstance`. /// /// ### Java method signature /// ```java - /// public java.lang.Class java.lang.reflect.Constructor.getDeclaringClass() + /// public T java.lang.reflect.Constructor.newInstance(java.lang.Object...) throws java.lang.InstantiationException,java.lang.IllegalAccessException,java.lang.IllegalArgumentException,java.lang.reflect.InvocationTargetException /// ``` - @JavaMethod - open func getDeclaringClass() -> JavaClass! + @JavaMethod(typeErasedResult: "T!") + open func newInstance(_ arg0: [JavaObject?]) throws -> T! - /// Java method `getAnnotation`. + /// Java method `getParameterAnnotations`. /// /// ### Java method signature /// ```java - /// public T java.lang.reflect.Constructor.getAnnotation(java.lang.Class) + /// public java.lang.annotation.Annotation[][] java.lang.reflect.Constructor.getParameterAnnotations() /// ``` - @JavaMethod(typeErasedResult: "T!", typeErasedResultBound: Annotation?.self) - open override func getAnnotation(_ arg0: JavaClass?) -> T! + @JavaMethod + open override func getParameterAnnotations() -> [[Annotation?]] - /// Java method `getDeclaredAnnotations`. + /// Java method `getParameterCount`. /// /// ### Java method signature /// ```java - /// public java.lang.annotation.Annotation[] java.lang.reflect.Constructor.getDeclaredAnnotations() + /// public int java.lang.reflect.Constructor.getParameterCount() /// ``` @JavaMethod - open override func getDeclaredAnnotations() -> [Annotation?] + open override func getParameterCount() -> Int32 - /// Java method `isVarArgs`. + /// Java method `getParameterTypes`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.reflect.Constructor.isVarArgs() + /// public java.lang.Class[] java.lang.reflect.Constructor.getParameterTypes() /// ``` @JavaMethod - open override func isVarArgs() -> Bool + open override func getParameterTypes() -> [JavaClass?] - /// Java method `getParameterCount`. + /// Java method `isSynthetic`. /// /// ### Java method signature /// ```java - /// public int java.lang.reflect.Constructor.getParameterCount() + /// public boolean java.lang.reflect.Constructor.isSynthetic() /// ``` @JavaMethod - open override func getParameterCount() -> Int32 + open override func isSynthetic() -> Bool - /// Java method `getParameterAnnotations`. + /// Java method `toGenericString`. /// /// ### Java method signature /// ```java - /// public java.lang.annotation.Annotation[][] java.lang.reflect.Constructor.getParameterAnnotations() + /// public java.lang.String java.lang.reflect.Constructor.toGenericString() /// ``` @JavaMethod - open override func getParameterAnnotations() -> [[Annotation?]] + open override func toGenericString() -> String - /// Java method `getGenericParameterTypes`. + /// Java method `getTypeParameters`. /// /// ### Java method signature /// ```java - /// public java.lang.reflect.Type[] java.lang.reflect.Constructor.getGenericParameterTypes() + /// public java.lang.reflect.TypeVariable>[] java.lang.reflect.Constructor.getTypeParameters() /// ``` @JavaMethod - open override func getGenericParameterTypes() -> [Type?] + open func getTypeParameters() -> [TypeVariable>?] - /// Java method `getGenericExceptionTypes`. + /// Java method `isVarArgs`. /// /// ### Java method signature /// ```java - /// public java.lang.reflect.Type[] java.lang.reflect.Constructor.getGenericExceptionTypes() + /// public boolean java.lang.reflect.Constructor.isVarArgs() /// ``` @JavaMethod - open override func getGenericExceptionTypes() -> [Type?] + open override func isVarArgs() -> Bool - /// Java method `getExceptionTypes`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public java.lang.Class[] java.lang.reflect.Constructor.getExceptionTypes() + /// public boolean java.lang.reflect.Constructor.equals(java.lang.Object) /// ``` @JavaMethod - open override func getExceptionTypes() -> [JavaClass?] + open override func equals(_ arg0: JavaObject?) -> Bool - /// Java method `getAnnotatedReturnType`. + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public java.lang.reflect.AnnotatedType java.lang.reflect.Constructor.getAnnotatedReturnType() + /// public int java.lang.reflect.Constructor.hashCode() /// ``` @JavaMethod - open override func getAnnotatedReturnType() -> AnnotatedType! + open override func hashCode() -> Int32 - /// Java method `getAnnotatedReceiverType`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public java.lang.reflect.AnnotatedType java.lang.reflect.Constructor.getAnnotatedReceiverType() + /// public java.lang.String java.lang.reflect.Constructor.toString() /// ``` @JavaMethod - open override func getAnnotatedReceiverType() -> AnnotatedType! + open override func toString() -> String } diff --git a/Sources/JavaStdlib/JavaLangReflect/generated/Executable.swift b/Sources/JavaStdlib/JavaLangReflect/generated/Executable.swift index fa7ee379b..00e2170d4 100644 --- a/Sources/JavaStdlib/JavaLangReflect/generated/Executable.swift +++ b/Sources/JavaStdlib/JavaLangReflect/generated/Executable.swift @@ -4,122 +4,122 @@ import SwiftJavaJNICore @JavaClass("java.lang.reflect.Executable", implements: GenericDeclaration.self) open class Executable: AccessibleObject { - /// Java method `getName`. + /// Java method `getAnnotatedExceptionTypes`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.String java.lang.reflect.Executable.getName() + /// public java.lang.reflect.AnnotatedType[] java.lang.reflect.Executable.getAnnotatedExceptionTypes() /// ``` @JavaMethod - open func getName() -> String + open func getAnnotatedExceptionTypes() -> [AnnotatedType?] - /// Java method `getModifiers`. + /// Java method `getAnnotatedParameterTypes`. /// /// ### Java method signature /// ```java - /// public abstract int java.lang.reflect.Executable.getModifiers() + /// public java.lang.reflect.AnnotatedType[] java.lang.reflect.Executable.getAnnotatedParameterTypes() /// ``` @JavaMethod - open func getModifiers() -> Int32 + open func getAnnotatedParameterTypes() -> [AnnotatedType?] - /// Java method `getTypeParameters`. + /// Java method `getAnnotatedReceiverType`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.reflect.TypeVariable[] java.lang.reflect.Executable.getTypeParameters() + /// public java.lang.reflect.AnnotatedType java.lang.reflect.Executable.getAnnotatedReceiverType() /// ``` @JavaMethod - open func getTypeParameters() -> [TypeVariable?] + open func getAnnotatedReceiverType() -> AnnotatedType! - /// Java method `getParameterTypes`. + /// Java method `getAnnotatedReturnType`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.Class[] java.lang.reflect.Executable.getParameterTypes() + /// public abstract java.lang.reflect.AnnotatedType java.lang.reflect.Executable.getAnnotatedReturnType() /// ``` @JavaMethod - open func getParameterTypes() -> [JavaClass?] + open func getAnnotatedReturnType() -> AnnotatedType! - /// Java method `toGenericString`. + /// Java method `getAnnotation`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.String java.lang.reflect.Executable.toGenericString() + /// public T java.lang.reflect.Executable.getAnnotation(java.lang.Class) /// ``` - @JavaMethod - open func toGenericString() -> String + @JavaMethod(typeErasedResult: "T!", typeErasedResultBound: Annotation?.self) + open override func getAnnotation(_ arg0: JavaClass?) -> T! - /// Java method `isSynthetic`. + /// Java method `getAnnotationsByType`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.reflect.Executable.isSynthetic() + /// public T[] java.lang.reflect.Executable.getAnnotationsByType(java.lang.Class) /// ``` @JavaMethod - open func isSynthetic() -> Bool + open override func getAnnotationsByType(_ arg0: JavaClass?) -> [T?] - /// Java method `getDeclaringClass`. + /// Java method `getDeclaredAnnotations`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.Class java.lang.reflect.Executable.getDeclaringClass() + /// public java.lang.annotation.Annotation[] java.lang.reflect.Executable.getDeclaredAnnotations() /// ``` @JavaMethod - open func getDeclaringClass() -> JavaClass! + open override func getDeclaredAnnotations() -> [Annotation?] - /// Java method `getAnnotation`. + /// Java method `getDeclaringClass`. /// /// ### Java method signature /// ```java - /// public T java.lang.reflect.Executable.getAnnotation(java.lang.Class) + /// public abstract java.lang.Class java.lang.reflect.Executable.getDeclaringClass() /// ``` - @JavaMethod(typeErasedResult: "T!", typeErasedResultBound: Annotation?.self) - open override func getAnnotation(_ arg0: JavaClass?) -> T! + @JavaMethod + open func getDeclaringClass() -> JavaClass! - /// Java method `getAnnotationsByType`. + /// Java method `getExceptionTypes`. /// /// ### Java method signature /// ```java - /// public T[] java.lang.reflect.Executable.getAnnotationsByType(java.lang.Class) + /// public abstract java.lang.Class[] java.lang.reflect.Executable.getExceptionTypes() /// ``` @JavaMethod - open override func getAnnotationsByType(_ arg0: JavaClass?) -> [T?] + open func getExceptionTypes() -> [JavaClass?] - /// Java method `getDeclaredAnnotations`. + /// Java method `getGenericExceptionTypes`. /// /// ### Java method signature /// ```java - /// public java.lang.annotation.Annotation[] java.lang.reflect.Executable.getDeclaredAnnotations() + /// public java.lang.reflect.Type[] java.lang.reflect.Executable.getGenericExceptionTypes() /// ``` @JavaMethod - open override func getDeclaredAnnotations() -> [Annotation?] + open func getGenericExceptionTypes() -> [Type?] - /// Java method `isVarArgs`. + /// Java method `getGenericParameterTypes`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.reflect.Executable.isVarArgs() + /// public java.lang.reflect.Type[] java.lang.reflect.Executable.getGenericParameterTypes() /// ``` @JavaMethod - open func isVarArgs() -> Bool + open func getGenericParameterTypes() -> [Type?] - /// Java method `getAnnotatedParameterTypes`. + /// Java method `getModifiers`. /// /// ### Java method signature /// ```java - /// public java.lang.reflect.AnnotatedType[] java.lang.reflect.Executable.getAnnotatedParameterTypes() + /// public abstract int java.lang.reflect.Executable.getModifiers() /// ``` @JavaMethod - open func getAnnotatedParameterTypes() -> [AnnotatedType?] + open func getModifiers() -> Int32 - /// Java method `getParameterCount`. + /// Java method `getName`. /// /// ### Java method signature /// ```java - /// public abstract int java.lang.reflect.Executable.getParameterCount() + /// public abstract java.lang.String java.lang.reflect.Executable.getName() /// ``` @JavaMethod - open func getParameterCount() -> Int32 + open func getName() -> String /// Java method `getParameterAnnotations`. /// @@ -130,66 +130,66 @@ open class Executable: AccessibleObject { @JavaMethod open func getParameterAnnotations() -> [[Annotation?]] - /// Java method `getGenericParameterTypes`. + /// Java method `getParameterCount`. /// /// ### Java method signature /// ```java - /// public java.lang.reflect.Type[] java.lang.reflect.Executable.getGenericParameterTypes() + /// public abstract int java.lang.reflect.Executable.getParameterCount() /// ``` @JavaMethod - open func getGenericParameterTypes() -> [Type?] + open func getParameterCount() -> Int32 - /// Java method `getGenericExceptionTypes`. + /// Java method `getParameters`. /// /// ### Java method signature /// ```java - /// public java.lang.reflect.Type[] java.lang.reflect.Executable.getGenericExceptionTypes() + /// public java.lang.reflect.Parameter[] java.lang.reflect.Executable.getParameters() /// ``` @JavaMethod - open func getGenericExceptionTypes() -> [Type?] + open func getParameters() -> [Parameter?] - /// Java method `getExceptionTypes`. + /// Java method `getParameterTypes`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.Class[] java.lang.reflect.Executable.getExceptionTypes() + /// public abstract java.lang.Class[] java.lang.reflect.Executable.getParameterTypes() /// ``` @JavaMethod - open func getExceptionTypes() -> [JavaClass?] + open func getParameterTypes() -> [JavaClass?] - /// Java method `getAnnotatedReturnType`. + /// Java method `isSynthetic`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.reflect.AnnotatedType java.lang.reflect.Executable.getAnnotatedReturnType() + /// public boolean java.lang.reflect.Executable.isSynthetic() /// ``` @JavaMethod - open func getAnnotatedReturnType() -> AnnotatedType! + open func isSynthetic() -> Bool - /// Java method `getParameters`. + /// Java method `toGenericString`. /// /// ### Java method signature /// ```java - /// public java.lang.reflect.Parameter[] java.lang.reflect.Executable.getParameters() + /// public abstract java.lang.String java.lang.reflect.Executable.toGenericString() /// ``` @JavaMethod - open func getParameters() -> [Parameter?] + open func toGenericString() -> String - /// Java method `getAnnotatedReceiverType`. + /// Java method `getTypeParameters`. /// /// ### Java method signature /// ```java - /// public java.lang.reflect.AnnotatedType java.lang.reflect.Executable.getAnnotatedReceiverType() + /// public abstract java.lang.reflect.TypeVariable[] java.lang.reflect.Executable.getTypeParameters() /// ``` @JavaMethod - open func getAnnotatedReceiverType() -> AnnotatedType! + open func getTypeParameters() -> [TypeVariable?] - /// Java method `getAnnotatedExceptionTypes`. + /// Java method `isVarArgs`. /// /// ### Java method signature /// ```java - /// public java.lang.reflect.AnnotatedType[] java.lang.reflect.Executable.getAnnotatedExceptionTypes() + /// public boolean java.lang.reflect.Executable.isVarArgs() /// ``` @JavaMethod - open func getAnnotatedExceptionTypes() -> [AnnotatedType?] + open func isVarArgs() -> Bool } diff --git a/Sources/JavaStdlib/JavaLangReflect/generated/Field.swift b/Sources/JavaStdlib/JavaLangReflect/generated/Field.swift index 75739f7b9..0b0bbd256 100644 --- a/Sources/JavaStdlib/JavaLangReflect/generated/Field.swift +++ b/Sources/JavaStdlib/JavaLangReflect/generated/Field.swift @@ -4,59 +4,59 @@ import SwiftJavaJNICore @JavaClass("java.lang.reflect.Field") open class Field: AccessibleObject { - /// Java method `getName`. + /// Java method `setAccessible`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.reflect.Field.getName() + /// public void java.lang.reflect.Field.setAccessible(boolean) /// ``` @JavaMethod - open func getName() -> String + open override func setAccessible(_ arg0: Bool) - /// Java method `get`. + /// Java method `getAnnotatedType`. /// /// ### Java method signature /// ```java - /// public java.lang.Object java.lang.reflect.Field.get(java.lang.Object) throws java.lang.IllegalArgumentException,java.lang.IllegalAccessException + /// public java.lang.reflect.AnnotatedType java.lang.reflect.Field.getAnnotatedType() /// ``` @JavaMethod - open func get(_ arg0: JavaObject?) throws -> JavaObject! + open func getAnnotatedType() -> AnnotatedType! - /// Java method `equals`. + /// Java method `getAnnotation`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.reflect.Field.equals(java.lang.Object) + /// public T java.lang.reflect.Field.getAnnotation(java.lang.Class) /// ``` - @JavaMethod - open override func equals(_ arg0: JavaObject?) -> Bool + @JavaMethod(typeErasedResult: "T!", typeErasedResultBound: Annotation?.self) + open override func getAnnotation(_ arg0: JavaClass?) -> T! - /// Java method `toString`. + /// Java method `getAnnotationsByType`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.reflect.Field.toString() + /// public T[] java.lang.reflect.Field.getAnnotationsByType(java.lang.Class) /// ``` @JavaMethod - open override func toString() -> String + open override func getAnnotationsByType(_ arg0: JavaClass?) -> [T?] - /// Java method `hashCode`. + /// Java method `getBoolean`. /// /// ### Java method signature /// ```java - /// public int java.lang.reflect.Field.hashCode() + /// public boolean java.lang.reflect.Field.getBoolean(java.lang.Object) throws java.lang.IllegalArgumentException,java.lang.IllegalAccessException /// ``` @JavaMethod - open override func hashCode() -> Int32 + open func getBoolean(_ arg0: JavaObject?) throws -> Bool - /// Java method `getBoolean`. + /// Java method `setBoolean`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.reflect.Field.getBoolean(java.lang.Object) throws java.lang.IllegalArgumentException,java.lang.IllegalAccessException + /// public void java.lang.reflect.Field.setBoolean(java.lang.Object,boolean) throws java.lang.IllegalArgumentException,java.lang.IllegalAccessException /// ``` @JavaMethod - open func getBoolean(_ arg0: JavaObject?) throws -> Bool + open func setBoolean(_ arg0: JavaObject?, _ arg1: Bool) throws /// Java method `getByte`. /// @@ -67,14 +67,14 @@ open class Field: AccessibleObject { @JavaMethod open func getByte(_ arg0: JavaObject?) throws -> Int8 - /// Java method `getShort`. + /// Java method `setByte`. /// /// ### Java method signature /// ```java - /// public short java.lang.reflect.Field.getShort(java.lang.Object) throws java.lang.IllegalArgumentException,java.lang.IllegalAccessException + /// public void java.lang.reflect.Field.setByte(java.lang.Object,byte) throws java.lang.IllegalArgumentException,java.lang.IllegalAccessException /// ``` @JavaMethod - open func getShort(_ arg0: JavaObject?) throws -> Int16 + open func setByte(_ arg0: JavaObject?, _ arg1: Int8) throws /// Java method `getChar`. /// @@ -85,32 +85,32 @@ open class Field: AccessibleObject { @JavaMethod open func getChar(_ arg0: JavaObject?) throws -> UInt16 - /// Java method `getInt`. + /// Java method `setChar`. /// /// ### Java method signature /// ```java - /// public int java.lang.reflect.Field.getInt(java.lang.Object) throws java.lang.IllegalArgumentException,java.lang.IllegalAccessException + /// public void java.lang.reflect.Field.setChar(java.lang.Object,char) throws java.lang.IllegalArgumentException,java.lang.IllegalAccessException /// ``` @JavaMethod - open func getInt(_ arg0: JavaObject?) throws -> Int32 + open func setChar(_ arg0: JavaObject?, _ arg1: UInt16) throws - /// Java method `getLong`. + /// Java method `getDeclaredAnnotations`. /// /// ### Java method signature /// ```java - /// public long java.lang.reflect.Field.getLong(java.lang.Object) throws java.lang.IllegalArgumentException,java.lang.IllegalAccessException + /// public java.lang.annotation.Annotation[] java.lang.reflect.Field.getDeclaredAnnotations() /// ``` @JavaMethod - open func getLong(_ arg0: JavaObject?) throws -> Int64 + open override func getDeclaredAnnotations() -> [Annotation?] - /// Java method `getFloat`. + /// Java method `getDeclaringClass`. /// /// ### Java method signature /// ```java - /// public float java.lang.reflect.Field.getFloat(java.lang.Object) throws java.lang.IllegalArgumentException,java.lang.IllegalAccessException + /// public java.lang.Class java.lang.reflect.Field.getDeclaringClass() /// ``` @JavaMethod - open func getFloat(_ arg0: JavaObject?) throws -> Float + open func getDeclaringClass() -> JavaClass! /// Java method `getDouble`. /// @@ -121,131 +121,131 @@ open class Field: AccessibleObject { @JavaMethod open func getDouble(_ arg0: JavaObject?) throws -> Double - /// Java method `getModifiers`. + /// Java method `setDouble`. /// /// ### Java method signature /// ```java - /// public int java.lang.reflect.Field.getModifiers() + /// public void java.lang.reflect.Field.setDouble(java.lang.Object,double) throws java.lang.IllegalArgumentException,java.lang.IllegalAccessException /// ``` @JavaMethod - open func getModifiers() -> Int32 + open func setDouble(_ arg0: JavaObject?, _ arg1: Double) throws - /// Java method `setAccessible`. + /// Java method `isEnumConstant`. /// /// ### Java method signature /// ```java - /// public void java.lang.reflect.Field.setAccessible(boolean) + /// public boolean java.lang.reflect.Field.isEnumConstant() /// ``` @JavaMethod - open override func setAccessible(_ arg0: Bool) + open func isEnumConstant() -> Bool - /// Java method `toGenericString`. + /// Java method `getFloat`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.reflect.Field.toGenericString() + /// public float java.lang.reflect.Field.getFloat(java.lang.Object) throws java.lang.IllegalArgumentException,java.lang.IllegalAccessException /// ``` @JavaMethod - open func toGenericString() -> String + open func getFloat(_ arg0: JavaObject?) throws -> Float - /// Java method `isSynthetic`. + /// Java method `setFloat`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.reflect.Field.isSynthetic() + /// public void java.lang.reflect.Field.setFloat(java.lang.Object,float) throws java.lang.IllegalArgumentException,java.lang.IllegalAccessException /// ``` @JavaMethod - open func isSynthetic() -> Bool + open func setFloat(_ arg0: JavaObject?, _ arg1: Float) throws - /// Java method `getDeclaringClass`. + /// Java method `getGenericType`. /// /// ### Java method signature /// ```java - /// public java.lang.Class java.lang.reflect.Field.getDeclaringClass() + /// public java.lang.reflect.Type java.lang.reflect.Field.getGenericType() /// ``` @JavaMethod - open func getDeclaringClass() -> JavaClass! + open func getGenericType() -> Type! - /// Java method `getAnnotation`. + /// Java method `get`. /// /// ### Java method signature /// ```java - /// public T java.lang.reflect.Field.getAnnotation(java.lang.Class) + /// public java.lang.Object java.lang.reflect.Field.get(java.lang.Object) throws java.lang.IllegalArgumentException,java.lang.IllegalAccessException /// ``` - @JavaMethod(typeErasedResult: "T!", typeErasedResultBound: Annotation?.self) - open override func getAnnotation(_ arg0: JavaClass?) -> T! + @JavaMethod + open func get(_ arg0: JavaObject?) throws -> JavaObject! - /// Java method `getAnnotationsByType`. + /// Java method `getInt`. /// /// ### Java method signature /// ```java - /// public T[] java.lang.reflect.Field.getAnnotationsByType(java.lang.Class) + /// public int java.lang.reflect.Field.getInt(java.lang.Object) throws java.lang.IllegalArgumentException,java.lang.IllegalAccessException /// ``` @JavaMethod - open override func getAnnotationsByType(_ arg0: JavaClass?) -> [T?] + open func getInt(_ arg0: JavaObject?) throws -> Int32 - /// Java method `getDeclaredAnnotations`. + /// Java method `setInt`. /// /// ### Java method signature /// ```java - /// public java.lang.annotation.Annotation[] java.lang.reflect.Field.getDeclaredAnnotations() + /// public void java.lang.reflect.Field.setInt(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.IllegalAccessException /// ``` @JavaMethod - open override func getDeclaredAnnotations() -> [Annotation?] + open func setInt(_ arg0: JavaObject?, _ arg1: Int32) throws - /// Java method `set`. + /// Java method `getLong`. /// /// ### Java method signature /// ```java - /// public void java.lang.reflect.Field.set(java.lang.Object,java.lang.Object) throws java.lang.IllegalArgumentException,java.lang.IllegalAccessException + /// public long java.lang.reflect.Field.getLong(java.lang.Object) throws java.lang.IllegalArgumentException,java.lang.IllegalAccessException /// ``` @JavaMethod - open func set(_ arg0: JavaObject?, _ arg1: JavaObject?) throws + open func getLong(_ arg0: JavaObject?) throws -> Int64 - /// Java method `getGenericType`. + /// Java method `setLong`. /// /// ### Java method signature /// ```java - /// public java.lang.reflect.Type java.lang.reflect.Field.getGenericType() + /// public void java.lang.reflect.Field.setLong(java.lang.Object,long) throws java.lang.IllegalArgumentException,java.lang.IllegalAccessException /// ``` @JavaMethod - open func getGenericType() -> Type! + open func setLong(_ arg0: JavaObject?, _ arg1: Int64) throws - /// Java method `getType`. + /// Java method `getModifiers`. /// /// ### Java method signature /// ```java - /// public java.lang.Class java.lang.reflect.Field.getType() + /// public int java.lang.reflect.Field.getModifiers() /// ``` @JavaMethod - open func getType() -> JavaClass! + open func getModifiers() -> Int32 - /// Java method `setBoolean`. + /// Java method `getName`. /// /// ### Java method signature /// ```java - /// public void java.lang.reflect.Field.setBoolean(java.lang.Object,boolean) throws java.lang.IllegalArgumentException,java.lang.IllegalAccessException + /// public java.lang.String java.lang.reflect.Field.getName() /// ``` @JavaMethod - open func setBoolean(_ arg0: JavaObject?, _ arg1: Bool) throws + open func getName() -> String - /// Java method `setByte`. + /// Java method `set`. /// /// ### Java method signature /// ```java - /// public void java.lang.reflect.Field.setByte(java.lang.Object,byte) throws java.lang.IllegalArgumentException,java.lang.IllegalAccessException + /// public void java.lang.reflect.Field.set(java.lang.Object,java.lang.Object) throws java.lang.IllegalArgumentException,java.lang.IllegalAccessException /// ``` @JavaMethod - open func setByte(_ arg0: JavaObject?, _ arg1: Int8) throws + open func set(_ arg0: JavaObject?, _ arg1: JavaObject?) throws - /// Java method `setChar`. + /// Java method `getShort`. /// /// ### Java method signature /// ```java - /// public void java.lang.reflect.Field.setChar(java.lang.Object,char) throws java.lang.IllegalArgumentException,java.lang.IllegalAccessException + /// public short java.lang.reflect.Field.getShort(java.lang.Object) throws java.lang.IllegalArgumentException,java.lang.IllegalAccessException /// ``` @JavaMethod - open func setChar(_ arg0: JavaObject?, _ arg1: UInt16) throws + open func getShort(_ arg0: JavaObject?) throws -> Int16 /// Java method `setShort`. /// @@ -256,57 +256,57 @@ open class Field: AccessibleObject { @JavaMethod open func setShort(_ arg0: JavaObject?, _ arg1: Int16) throws - /// Java method `setInt`. + /// Java method `isSynthetic`. /// /// ### Java method signature /// ```java - /// public void java.lang.reflect.Field.setInt(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.IllegalAccessException + /// public boolean java.lang.reflect.Field.isSynthetic() /// ``` @JavaMethod - open func setInt(_ arg0: JavaObject?, _ arg1: Int32) throws + open func isSynthetic() -> Bool - /// Java method `setLong`. + /// Java method `toGenericString`. /// /// ### Java method signature /// ```java - /// public void java.lang.reflect.Field.setLong(java.lang.Object,long) throws java.lang.IllegalArgumentException,java.lang.IllegalAccessException + /// public java.lang.String java.lang.reflect.Field.toGenericString() /// ``` @JavaMethod - open func setLong(_ arg0: JavaObject?, _ arg1: Int64) throws + open func toGenericString() -> String - /// Java method `setFloat`. + /// Java method `getType`. /// /// ### Java method signature /// ```java - /// public void java.lang.reflect.Field.setFloat(java.lang.Object,float) throws java.lang.IllegalArgumentException,java.lang.IllegalAccessException + /// public java.lang.Class java.lang.reflect.Field.getType() /// ``` @JavaMethod - open func setFloat(_ arg0: JavaObject?, _ arg1: Float) throws + open func getType() -> JavaClass! - /// Java method `setDouble`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public void java.lang.reflect.Field.setDouble(java.lang.Object,double) throws java.lang.IllegalArgumentException,java.lang.IllegalAccessException + /// public boolean java.lang.reflect.Field.equals(java.lang.Object) /// ``` @JavaMethod - open func setDouble(_ arg0: JavaObject?, _ arg1: Double) throws + open override func equals(_ arg0: JavaObject?) -> Bool - /// Java method `isEnumConstant`. + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.reflect.Field.isEnumConstant() + /// public int java.lang.reflect.Field.hashCode() /// ``` @JavaMethod - open func isEnumConstant() -> Bool + open override func hashCode() -> Int32 - /// Java method `getAnnotatedType`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public java.lang.reflect.AnnotatedType java.lang.reflect.Field.getAnnotatedType() + /// public java.lang.String java.lang.reflect.Field.toString() /// ``` @JavaMethod - open func getAnnotatedType() -> AnnotatedType! + open override func toString() -> String } diff --git a/Sources/JavaStdlib/JavaLangReflect/generated/GenericDeclaration.swift b/Sources/JavaStdlib/JavaLangReflect/generated/GenericDeclaration.swift index 9290f29bf..ad2410dee 100644 --- a/Sources/JavaStdlib/JavaLangReflect/generated/GenericDeclaration.swift +++ b/Sources/JavaStdlib/JavaLangReflect/generated/GenericDeclaration.swift @@ -4,14 +4,14 @@ import SwiftJavaJNICore @JavaInterface("java.lang.reflect.GenericDeclaration") public struct GenericDeclaration { - /// Java method `getTypeParameters`. + /// Java method `getAnnotation`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.reflect.TypeVariable[] java.lang.reflect.GenericDeclaration.getTypeParameters() + /// public abstract T java.lang.reflect.AnnotatedElement.getAnnotation(java.lang.Class) /// ``` - @JavaMethod - public func getTypeParameters() -> [TypeVariable?] + @JavaMethod(typeErasedResult: "T!", typeErasedResultBound: Annotation?.self) + public func getAnnotation(_ arg0: JavaClass?) -> T! /// Java method `isAnnotationPresent`. /// @@ -22,14 +22,14 @@ public struct GenericDeclaration { @JavaMethod public func isAnnotationPresent(_ arg0: JavaClass?) -> Bool - /// Java method `getAnnotation`. + /// Java method `getAnnotations`. /// /// ### Java method signature /// ```java - /// public abstract T java.lang.reflect.AnnotatedElement.getAnnotation(java.lang.Class) + /// public abstract java.lang.annotation.Annotation[] java.lang.reflect.AnnotatedElement.getAnnotations() /// ``` - @JavaMethod(typeErasedResult: "T!", typeErasedResultBound: Annotation?.self) - public func getAnnotation(_ arg0: JavaClass?) -> T! + @JavaMethod + public func getAnnotations() -> [Annotation?] /// Java method `getAnnotationsByType`. /// @@ -40,23 +40,23 @@ public struct GenericDeclaration { @JavaMethod public func getAnnotationsByType(_ arg0: JavaClass?) -> [T?] - /// Java method `getAnnotations`. + /// Java method `getDeclaredAnnotation`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.annotation.Annotation[] java.lang.reflect.AnnotatedElement.getAnnotations() + /// public default T java.lang.reflect.AnnotatedElement.getDeclaredAnnotation(java.lang.Class) /// ``` - @JavaMethod - public func getAnnotations() -> [Annotation?] + @JavaMethod(typeErasedResult: "T!", typeErasedResultBound: Annotation?.self) + public func getDeclaredAnnotation(_ arg0: JavaClass?) -> T! - /// Java method `getDeclaredAnnotation`. + /// Java method `getDeclaredAnnotations`. /// /// ### Java method signature /// ```java - /// public default T java.lang.reflect.AnnotatedElement.getDeclaredAnnotation(java.lang.Class) + /// public abstract java.lang.annotation.Annotation[] java.lang.reflect.AnnotatedElement.getDeclaredAnnotations() /// ``` - @JavaMethod(typeErasedResult: "T!", typeErasedResultBound: Annotation?.self) - public func getDeclaredAnnotation(_ arg0: JavaClass?) -> T! + @JavaMethod + public func getDeclaredAnnotations() -> [Annotation?] /// Java method `getDeclaredAnnotationsByType`. /// @@ -67,12 +67,12 @@ public struct GenericDeclaration { @JavaMethod public func getDeclaredAnnotationsByType(_ arg0: JavaClass?) -> [T?] - /// Java method `getDeclaredAnnotations`. + /// Java method `getTypeParameters`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.annotation.Annotation[] java.lang.reflect.AnnotatedElement.getDeclaredAnnotations() + /// public abstract java.lang.reflect.TypeVariable[] java.lang.reflect.GenericDeclaration.getTypeParameters() /// ``` @JavaMethod - public func getDeclaredAnnotations() -> [Annotation?] + public func getTypeParameters() -> [TypeVariable?] } diff --git a/Sources/JavaStdlib/JavaLangReflect/generated/Method.swift b/Sources/JavaStdlib/JavaLangReflect/generated/Method.swift index 5881c1aa1..a097e314e 100644 --- a/Sources/JavaStdlib/JavaLangReflect/generated/Method.swift +++ b/Sources/JavaStdlib/JavaLangReflect/generated/Method.swift @@ -4,149 +4,149 @@ import SwiftJavaJNICore @JavaClass("java.lang.reflect.Method") open class Method: Executable { - /// Java method `invoke`. + /// Java method `setAccessible`. /// /// ### Java method signature /// ```java - /// public java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object,java.lang.Object...) throws java.lang.IllegalAccessException,java.lang.reflect.InvocationTargetException + /// public void java.lang.reflect.Method.setAccessible(boolean) /// ``` @JavaMethod - open func invoke(_ arg0: JavaObject?, _ arg1: [JavaObject?]) throws -> JavaObject! + open override func setAccessible(_ arg0: Bool) - /// Java method `getName`. + /// Java method `getAnnotatedReturnType`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.reflect.Method.getName() + /// public java.lang.reflect.AnnotatedType java.lang.reflect.Method.getAnnotatedReturnType() /// ``` @JavaMethod - open override func getName() -> String + open override func getAnnotatedReturnType() -> AnnotatedType! - /// Java method `equals`. + /// Java method `getAnnotation`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.reflect.Method.equals(java.lang.Object) + /// public T java.lang.reflect.Method.getAnnotation(java.lang.Class) /// ``` - @JavaMethod - open override func equals(_ arg0: JavaObject?) -> Bool + @JavaMethod(typeErasedResult: "T!", typeErasedResultBound: Annotation?.self) + open override func getAnnotation(_ arg0: JavaClass?) -> T! - /// Java method `toString`. + /// Java method `isBridge`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.reflect.Method.toString() + /// public boolean java.lang.reflect.Method.isBridge() /// ``` @JavaMethod - open override func toString() -> String + open func isBridge() -> Bool - /// Java method `hashCode`. + /// Java method `getDeclaredAnnotations`. /// /// ### Java method signature /// ```java - /// public int java.lang.reflect.Method.hashCode() + /// public java.lang.annotation.Annotation[] java.lang.reflect.Method.getDeclaredAnnotations() /// ``` @JavaMethod - open override func hashCode() -> Int32 + open override func getDeclaredAnnotations() -> [Annotation?] - /// Java method `getModifiers`. + /// Java method `getDeclaringClass`. /// /// ### Java method signature /// ```java - /// public int java.lang.reflect.Method.getModifiers() + /// public java.lang.Class java.lang.reflect.Method.getDeclaringClass() /// ``` @JavaMethod - open override func getModifiers() -> Int32 + open override func getDeclaringClass() -> JavaClass! - /// Java method `getTypeParameters`. + /// Java method `isDefault`. /// /// ### Java method signature /// ```java - /// public java.lang.reflect.TypeVariable[] java.lang.reflect.Method.getTypeParameters() + /// public boolean java.lang.reflect.Method.isDefault() /// ``` @JavaMethod - open func getTypeParameters() -> [TypeVariable?] + open func isDefault() -> Bool - /// Java method `setAccessible`. + /// Java method `getDefaultValue`. /// /// ### Java method signature /// ```java - /// public void java.lang.reflect.Method.setAccessible(boolean) + /// public java.lang.Object java.lang.reflect.Method.getDefaultValue() /// ``` @JavaMethod - open override func setAccessible(_ arg0: Bool) + open func getDefaultValue() -> JavaObject! - /// Java method `getReturnType`. + /// Java method `getExceptionTypes`. /// /// ### Java method signature /// ```java - /// public java.lang.Class java.lang.reflect.Method.getReturnType() + /// public java.lang.Class[] java.lang.reflect.Method.getExceptionTypes() /// ``` @JavaMethod - open func getReturnType() -> JavaClass! + open override func getExceptionTypes() -> [JavaClass?] - /// Java method `getParameterTypes`. + /// Java method `getGenericExceptionTypes`. /// /// ### Java method signature /// ```java - /// public java.lang.Class[] java.lang.reflect.Method.getParameterTypes() + /// public java.lang.reflect.Type[] java.lang.reflect.Method.getGenericExceptionTypes() /// ``` @JavaMethod - open override func getParameterTypes() -> [JavaClass?] + open override func getGenericExceptionTypes() -> [Type?] - /// Java method `toGenericString`. + /// Java method `getGenericParameterTypes`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.reflect.Method.toGenericString() + /// public java.lang.reflect.Type[] java.lang.reflect.Method.getGenericParameterTypes() /// ``` @JavaMethod - open override func toGenericString() -> String + open override func getGenericParameterTypes() -> [Type?] - /// Java method `isSynthetic`. + /// Java method `getGenericReturnType`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.reflect.Method.isSynthetic() + /// public java.lang.reflect.Type java.lang.reflect.Method.getGenericReturnType() /// ``` @JavaMethod - open override func isSynthetic() -> Bool + open func getGenericReturnType() -> Type! - /// Java method `getDeclaringClass`. + /// Java method `invoke`. /// /// ### Java method signature /// ```java - /// public java.lang.Class java.lang.reflect.Method.getDeclaringClass() + /// public java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object,java.lang.Object...) throws java.lang.IllegalAccessException,java.lang.reflect.InvocationTargetException /// ``` @JavaMethod - open override func getDeclaringClass() -> JavaClass! + open func invoke(_ arg0: JavaObject?, _ arg1: [JavaObject?]) throws -> JavaObject! - /// Java method `getAnnotation`. + /// Java method `getModifiers`. /// /// ### Java method signature /// ```java - /// public T java.lang.reflect.Method.getAnnotation(java.lang.Class) + /// public int java.lang.reflect.Method.getModifiers() /// ``` - @JavaMethod(typeErasedResult: "T!", typeErasedResultBound: Annotation?.self) - open override func getAnnotation(_ arg0: JavaClass?) -> T! + @JavaMethod + open override func getModifiers() -> Int32 - /// Java method `getDeclaredAnnotations`. + /// Java method `getName`. /// /// ### Java method signature /// ```java - /// public java.lang.annotation.Annotation[] java.lang.reflect.Method.getDeclaredAnnotations() + /// public java.lang.String java.lang.reflect.Method.getName() /// ``` @JavaMethod - open override func getDeclaredAnnotations() -> [Annotation?] + open override func getName() -> String - /// Java method `isVarArgs`. + /// Java method `getParameterAnnotations`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.reflect.Method.isVarArgs() + /// public java.lang.annotation.Annotation[][] java.lang.reflect.Method.getParameterAnnotations() /// ``` @JavaMethod - open override func isVarArgs() -> Bool + open override func getParameterAnnotations() -> [[Annotation?]] /// Java method `getParameterCount`. /// @@ -157,84 +157,84 @@ open class Method: Executable { @JavaMethod open override func getParameterCount() -> Int32 - /// Java method `getParameterAnnotations`. + /// Java method `getParameterTypes`. /// /// ### Java method signature /// ```java - /// public java.lang.annotation.Annotation[][] java.lang.reflect.Method.getParameterAnnotations() + /// public java.lang.Class[] java.lang.reflect.Method.getParameterTypes() /// ``` @JavaMethod - open override func getParameterAnnotations() -> [[Annotation?]] + open override func getParameterTypes() -> [JavaClass?] - /// Java method `getGenericParameterTypes`. + /// Java method `getReturnType`. /// /// ### Java method signature /// ```java - /// public java.lang.reflect.Type[] java.lang.reflect.Method.getGenericParameterTypes() + /// public java.lang.Class java.lang.reflect.Method.getReturnType() /// ``` @JavaMethod - open override func getGenericParameterTypes() -> [Type?] + open func getReturnType() -> JavaClass! - /// Java method `getGenericExceptionTypes`. + /// Java method `isSynthetic`. /// /// ### Java method signature /// ```java - /// public java.lang.reflect.Type[] java.lang.reflect.Method.getGenericExceptionTypes() + /// public boolean java.lang.reflect.Method.isSynthetic() /// ``` @JavaMethod - open override func getGenericExceptionTypes() -> [Type?] + open override func isSynthetic() -> Bool - /// Java method `isDefault`. + /// Java method `toGenericString`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.reflect.Method.isDefault() + /// public java.lang.String java.lang.reflect.Method.toGenericString() /// ``` @JavaMethod - open func isDefault() -> Bool + open override func toGenericString() -> String - /// Java method `getGenericReturnType`. + /// Java method `getTypeParameters`. /// /// ### Java method signature /// ```java - /// public java.lang.reflect.Type java.lang.reflect.Method.getGenericReturnType() + /// public java.lang.reflect.TypeVariable[] java.lang.reflect.Method.getTypeParameters() /// ``` @JavaMethod - open func getGenericReturnType() -> Type! + open func getTypeParameters() -> [TypeVariable?] - /// Java method `getExceptionTypes`. + /// Java method `isVarArgs`. /// /// ### Java method signature /// ```java - /// public java.lang.Class[] java.lang.reflect.Method.getExceptionTypes() + /// public boolean java.lang.reflect.Method.isVarArgs() /// ``` @JavaMethod - open override func getExceptionTypes() -> [JavaClass?] + open override func isVarArgs() -> Bool - /// Java method `isBridge`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.reflect.Method.isBridge() + /// public boolean java.lang.reflect.Method.equals(java.lang.Object) /// ``` @JavaMethod - open func isBridge() -> Bool + open override func equals(_ arg0: JavaObject?) -> Bool - /// Java method `getDefaultValue`. + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public java.lang.Object java.lang.reflect.Method.getDefaultValue() + /// public int java.lang.reflect.Method.hashCode() /// ``` @JavaMethod - open func getDefaultValue() -> JavaObject! + open override func hashCode() -> Int32 - /// Java method `getAnnotatedReturnType`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public java.lang.reflect.AnnotatedType java.lang.reflect.Method.getAnnotatedReturnType() + /// public java.lang.String java.lang.reflect.Method.toString() /// ``` @JavaMethod - open override func getAnnotatedReturnType() -> AnnotatedType! + open override func toString() -> String } diff --git a/Sources/JavaStdlib/JavaLangReflect/generated/Parameter.swift b/Sources/JavaStdlib/JavaLangReflect/generated/Parameter.swift index 40abae3b4..276f67401 100644 --- a/Sources/JavaStdlib/JavaLangReflect/generated/Parameter.swift +++ b/Sources/JavaStdlib/JavaLangReflect/generated/Parameter.swift @@ -4,140 +4,140 @@ import SwiftJavaJNICore @JavaClass("java.lang.reflect.Parameter") open class Parameter: JavaObject { - /// Java method `getName`. + /// Java method `getAnnotatedType`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.reflect.Parameter.getName() + /// public java.lang.reflect.AnnotatedType java.lang.reflect.Parameter.getAnnotatedType() /// ``` @JavaMethod - open func getName() -> String + open func getAnnotatedType() -> AnnotatedType! - /// Java method `equals`. + /// Java method `getAnnotation`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.reflect.Parameter.equals(java.lang.Object) + /// public T java.lang.reflect.Parameter.getAnnotation(java.lang.Class) /// ``` - @JavaMethod - open override func equals(_ arg0: JavaObject?) -> Bool + @JavaMethod(typeErasedResult: "T!", typeErasedResultBound: Annotation?.self) + open func getAnnotation(_ arg0: JavaClass?) -> T! - /// Java method `toString`. + /// Java method `getAnnotations`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.reflect.Parameter.toString() + /// public java.lang.annotation.Annotation[] java.lang.reflect.Parameter.getAnnotations() /// ``` @JavaMethod - open override func toString() -> String + open func getAnnotations() -> [Annotation?] - /// Java method `hashCode`. + /// Java method `getAnnotationsByType`. /// /// ### Java method signature /// ```java - /// public int java.lang.reflect.Parameter.hashCode() + /// public T[] java.lang.reflect.Parameter.getAnnotationsByType(java.lang.Class) /// ``` @JavaMethod - open override func hashCode() -> Int32 + open func getAnnotationsByType(_ arg0: JavaClass?) -> [T?] - /// Java method `getModifiers`. + /// Java method `getDeclaredAnnotation`. /// /// ### Java method signature /// ```java - /// public int java.lang.reflect.Parameter.getModifiers() + /// public T java.lang.reflect.Parameter.getDeclaredAnnotation(java.lang.Class) /// ``` - @JavaMethod - open func getModifiers() -> Int32 + @JavaMethod(typeErasedResult: "T!", typeErasedResultBound: Annotation?.self) + open func getDeclaredAnnotation(_ arg0: JavaClass?) -> T! - /// Java method `isSynthetic`. + /// Java method `getDeclaredAnnotations`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.reflect.Parameter.isSynthetic() + /// public java.lang.annotation.Annotation[] java.lang.reflect.Parameter.getDeclaredAnnotations() /// ``` @JavaMethod - open func isSynthetic() -> Bool + open func getDeclaredAnnotations() -> [Annotation?] - /// Java method `getAnnotation`. + /// Java method `getDeclaredAnnotationsByType`. /// /// ### Java method signature /// ```java - /// public T java.lang.reflect.Parameter.getAnnotation(java.lang.Class) + /// public T[] java.lang.reflect.Parameter.getDeclaredAnnotationsByType(java.lang.Class) /// ``` - @JavaMethod(typeErasedResult: "T!", typeErasedResultBound: Annotation?.self) - open func getAnnotation(_ arg0: JavaClass?) -> T! + @JavaMethod + open func getDeclaredAnnotationsByType(_ arg0: JavaClass?) -> [T?] - /// Java method `getAnnotationsByType`. + /// Java method `getDeclaringExecutable`. /// /// ### Java method signature /// ```java - /// public T[] java.lang.reflect.Parameter.getAnnotationsByType(java.lang.Class) + /// public java.lang.reflect.Executable java.lang.reflect.Parameter.getDeclaringExecutable() /// ``` @JavaMethod - open func getAnnotationsByType(_ arg0: JavaClass?) -> [T?] + open func getDeclaringExecutable() -> Executable! - /// Java method `getAnnotations`. + /// Java method `isImplicit`. /// /// ### Java method signature /// ```java - /// public java.lang.annotation.Annotation[] java.lang.reflect.Parameter.getAnnotations() + /// public boolean java.lang.reflect.Parameter.isImplicit() /// ``` @JavaMethod - open func getAnnotations() -> [Annotation?] + open func isImplicit() -> Bool - /// Java method `getDeclaredAnnotation`. + /// Java method `getModifiers`. /// /// ### Java method signature /// ```java - /// public T java.lang.reflect.Parameter.getDeclaredAnnotation(java.lang.Class) + /// public int java.lang.reflect.Parameter.getModifiers() /// ``` - @JavaMethod(typeErasedResult: "T!", typeErasedResultBound: Annotation?.self) - open func getDeclaredAnnotation(_ arg0: JavaClass?) -> T! + @JavaMethod + open func getModifiers() -> Int32 - /// Java method `getDeclaredAnnotationsByType`. + /// Java method `getName`. /// /// ### Java method signature /// ```java - /// public T[] java.lang.reflect.Parameter.getDeclaredAnnotationsByType(java.lang.Class) + /// public java.lang.String java.lang.reflect.Parameter.getName() /// ``` @JavaMethod - open func getDeclaredAnnotationsByType(_ arg0: JavaClass?) -> [T?] + open func getName() -> String - /// Java method `getDeclaredAnnotations`. + /// Java method `isNamePresent`. /// /// ### Java method signature /// ```java - /// public java.lang.annotation.Annotation[] java.lang.reflect.Parameter.getDeclaredAnnotations() + /// public boolean java.lang.reflect.Parameter.isNamePresent() /// ``` @JavaMethod - open func getDeclaredAnnotations() -> [Annotation?] + open func isNamePresent() -> Bool - /// Java method `getType`. + /// Java method `getParameterizedType`. /// /// ### Java method signature /// ```java - /// public java.lang.Class java.lang.reflect.Parameter.getType() + /// public java.lang.reflect.Type java.lang.reflect.Parameter.getParameterizedType() /// ``` @JavaMethod - open func getType() -> JavaClass! + open func getParameterizedType() -> Type! - /// Java method `getAnnotatedType`. + /// Java method `isSynthetic`. /// /// ### Java method signature /// ```java - /// public java.lang.reflect.AnnotatedType java.lang.reflect.Parameter.getAnnotatedType() + /// public boolean java.lang.reflect.Parameter.isSynthetic() /// ``` @JavaMethod - open func getAnnotatedType() -> AnnotatedType! + open func isSynthetic() -> Bool - /// Java method `getParameterizedType`. + /// Java method `getType`. /// /// ### Java method signature /// ```java - /// public java.lang.reflect.Type java.lang.reflect.Parameter.getParameterizedType() + /// public java.lang.Class java.lang.reflect.Parameter.getType() /// ``` @JavaMethod - open func getParameterizedType() -> Type! + open func getType() -> JavaClass! /// Java method `isVarArgs`. /// @@ -148,30 +148,30 @@ open class Parameter: JavaObject { @JavaMethod open func isVarArgs() -> Bool - /// Java method `getDeclaringExecutable`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public java.lang.reflect.Executable java.lang.reflect.Parameter.getDeclaringExecutable() + /// public boolean java.lang.reflect.Parameter.equals(java.lang.Object) /// ``` @JavaMethod - open func getDeclaringExecutable() -> Executable! + open override func equals(_ arg0: JavaObject?) -> Bool - /// Java method `isNamePresent`. + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.reflect.Parameter.isNamePresent() + /// public int java.lang.reflect.Parameter.hashCode() /// ``` @JavaMethod - open func isNamePresent() -> Bool + open override func hashCode() -> Int32 - /// Java method `isImplicit`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.reflect.Parameter.isImplicit() + /// public java.lang.String java.lang.reflect.Parameter.toString() /// ``` @JavaMethod - open func isImplicit() -> Bool + open override func toString() -> String } diff --git a/Sources/JavaStdlib/JavaLangReflect/generated/ParameterizedType.swift b/Sources/JavaStdlib/JavaLangReflect/generated/ParameterizedType.swift index f3f21a8f4..0a37ae5ea 100644 --- a/Sources/JavaStdlib/JavaLangReflect/generated/ParameterizedType.swift +++ b/Sources/JavaStdlib/JavaLangReflect/generated/ParameterizedType.swift @@ -4,32 +4,32 @@ import SwiftJavaJNICore @JavaInterface("java.lang.reflect.ParameterizedType", extends: Type.self) public struct ParameterizedType { - /// Java method `getOwnerType`. + /// Java method `getActualTypeArguments`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.reflect.Type java.lang.reflect.ParameterizedType.getOwnerType() + /// public abstract java.lang.reflect.Type[] java.lang.reflect.ParameterizedType.getActualTypeArguments() /// ``` @JavaMethod - public func getOwnerType() -> Type! + public func getActualTypeArguments() -> [Type?] - /// Java method `getRawType`. + /// Java method `getOwnerType`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.reflect.Type java.lang.reflect.ParameterizedType.getRawType() + /// public abstract java.lang.reflect.Type java.lang.reflect.ParameterizedType.getOwnerType() /// ``` @JavaMethod - public func getRawType() -> Type! + public func getOwnerType() -> Type! - /// Java method `getActualTypeArguments`. + /// Java method `getRawType`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.reflect.Type[] java.lang.reflect.ParameterizedType.getActualTypeArguments() + /// public abstract java.lang.reflect.Type java.lang.reflect.ParameterizedType.getRawType() /// ``` @JavaMethod - public func getActualTypeArguments() -> [Type?] + public func getRawType() -> Type! /// Java method `getTypeName`. /// diff --git a/Sources/JavaStdlib/JavaLangReflect/generated/TypeVariable.swift b/Sources/JavaStdlib/JavaLangReflect/generated/TypeVariable.swift index 95d50c877..c6e19634a 100644 --- a/Sources/JavaStdlib/JavaLangReflect/generated/TypeVariable.swift +++ b/Sources/JavaStdlib/JavaLangReflect/generated/TypeVariable.swift @@ -6,111 +6,111 @@ import SwiftJavaJNICore public struct TypeVariable { public typealias D = TypeVariable_D - /// Java method `getGenericDeclaration`. + /// Java method `getAnnotatedBounds`. /// /// ### Java method signature /// ```java - /// public abstract D java.lang.reflect.TypeVariable.getGenericDeclaration() + /// public abstract java.lang.reflect.AnnotatedType[] java.lang.reflect.TypeVariable.getAnnotatedBounds() /// ``` - @JavaMethod(typeErasedResult: "D!", typeErasedResultBound: GenericDeclaration?.self) - public func getGenericDeclaration() -> D! + @JavaMethod + public func getAnnotatedBounds() -> [AnnotatedType?] - /// Java method `getAnnotatedBounds`. + /// Java method `getAnnotation`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.reflect.AnnotatedType[] java.lang.reflect.TypeVariable.getAnnotatedBounds() + /// public abstract T java.lang.reflect.AnnotatedElement.getAnnotation(java.lang.Class) /// ``` - @JavaMethod - public func getAnnotatedBounds() -> [AnnotatedType?] + @JavaMethod(typeErasedResult: "T!", typeErasedResultBound: Annotation?.self) + public func getAnnotation(_ arg0: JavaClass?) -> T! - /// Java method `getName`. + /// Java method `isAnnotationPresent`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.String java.lang.reflect.TypeVariable.getName() + /// public default boolean java.lang.reflect.AnnotatedElement.isAnnotationPresent(java.lang.Class) /// ``` @JavaMethod - public func getName() -> String + public func isAnnotationPresent(_ arg0: JavaClass?) -> Bool - /// Java method `getBounds`. + /// Java method `getAnnotations`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.reflect.Type[] java.lang.reflect.TypeVariable.getBounds() + /// public abstract java.lang.annotation.Annotation[] java.lang.reflect.AnnotatedElement.getAnnotations() /// ``` @JavaMethod - public func getBounds() -> [Type?] + public func getAnnotations() -> [Annotation?] - /// Java method `getTypeName`. + /// Java method `getAnnotationsByType`. /// /// ### Java method signature /// ```java - /// public default java.lang.String java.lang.reflect.Type.getTypeName() + /// public default T[] java.lang.reflect.AnnotatedElement.getAnnotationsByType(java.lang.Class) /// ``` @JavaMethod - public func getTypeName() -> String + public func getAnnotationsByType(_ arg0: JavaClass?) -> [T?] - /// Java method `isAnnotationPresent`. + /// Java method `getBounds`. /// /// ### Java method signature /// ```java - /// public default boolean java.lang.reflect.AnnotatedElement.isAnnotationPresent(java.lang.Class) + /// public abstract java.lang.reflect.Type[] java.lang.reflect.TypeVariable.getBounds() /// ``` @JavaMethod - public func isAnnotationPresent(_ arg0: JavaClass?) -> Bool + public func getBounds() -> [Type?] - /// Java method `getAnnotation`. + /// Java method `getDeclaredAnnotation`. /// /// ### Java method signature /// ```java - /// public abstract T java.lang.reflect.AnnotatedElement.getAnnotation(java.lang.Class) + /// public default T java.lang.reflect.AnnotatedElement.getDeclaredAnnotation(java.lang.Class) /// ``` @JavaMethod(typeErasedResult: "T!", typeErasedResultBound: Annotation?.self) - public func getAnnotation(_ arg0: JavaClass?) -> T! + public func getDeclaredAnnotation(_ arg0: JavaClass?) -> T! - /// Java method `getAnnotationsByType`. + /// Java method `getDeclaredAnnotations`. /// /// ### Java method signature /// ```java - /// public default T[] java.lang.reflect.AnnotatedElement.getAnnotationsByType(java.lang.Class) + /// public abstract java.lang.annotation.Annotation[] java.lang.reflect.AnnotatedElement.getDeclaredAnnotations() /// ``` @JavaMethod - public func getAnnotationsByType(_ arg0: JavaClass?) -> [T?] + public func getDeclaredAnnotations() -> [Annotation?] - /// Java method `getAnnotations`. + /// Java method `getDeclaredAnnotationsByType`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.annotation.Annotation[] java.lang.reflect.AnnotatedElement.getAnnotations() + /// public default T[] java.lang.reflect.AnnotatedElement.getDeclaredAnnotationsByType(java.lang.Class) /// ``` @JavaMethod - public func getAnnotations() -> [Annotation?] + public func getDeclaredAnnotationsByType(_ arg0: JavaClass?) -> [T?] - /// Java method `getDeclaredAnnotation`. + /// Java method `getGenericDeclaration`. /// /// ### Java method signature /// ```java - /// public default T java.lang.reflect.AnnotatedElement.getDeclaredAnnotation(java.lang.Class) + /// public abstract D java.lang.reflect.TypeVariable.getGenericDeclaration() /// ``` - @JavaMethod(typeErasedResult: "T!", typeErasedResultBound: Annotation?.self) - public func getDeclaredAnnotation(_ arg0: JavaClass?) -> T! + @JavaMethod(typeErasedResult: "D!", typeErasedResultBound: GenericDeclaration?.self) + public func getGenericDeclaration() -> D! - /// Java method `getDeclaredAnnotationsByType`. + /// Java method `getName`. /// /// ### Java method signature /// ```java - /// public default T[] java.lang.reflect.AnnotatedElement.getDeclaredAnnotationsByType(java.lang.Class) + /// public abstract java.lang.String java.lang.reflect.TypeVariable.getName() /// ``` @JavaMethod - public func getDeclaredAnnotationsByType(_ arg0: JavaClass?) -> [T?] + public func getName() -> String - /// Java method `getDeclaredAnnotations`. + /// Java method `getTypeName`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.annotation.Annotation[] java.lang.reflect.AnnotatedElement.getDeclaredAnnotations() + /// public default java.lang.String java.lang.reflect.Type.getTypeName() /// ``` @JavaMethod - public func getDeclaredAnnotations() -> [Annotation?] + public func getTypeName() -> String } diff --git a/Sources/JavaStdlib/JavaLangReflect/generated/WildcardType.swift b/Sources/JavaStdlib/JavaLangReflect/generated/WildcardType.swift index 592c74100..daba50c0a 100644 --- a/Sources/JavaStdlib/JavaLangReflect/generated/WildcardType.swift +++ b/Sources/JavaStdlib/JavaLangReflect/generated/WildcardType.swift @@ -4,15 +4,6 @@ import SwiftJavaJNICore @JavaInterface("java.lang.reflect.WildcardType", extends: Type.self) public struct WildcardType { - /// Java method `getUpperBounds`. - /// - /// ### Java method signature - /// ```java - /// public abstract java.lang.reflect.Type[] java.lang.reflect.WildcardType.getUpperBounds() - /// ``` - @JavaMethod - public func getUpperBounds() -> [Type?] - /// Java method `getLowerBounds`. /// /// ### Java method signature @@ -30,4 +21,13 @@ public struct WildcardType { /// ``` @JavaMethod public func getTypeName() -> String + + /// Java method `getUpperBounds`. + /// + /// ### Java method signature + /// ```java + /// public abstract java.lang.reflect.Type[] java.lang.reflect.WildcardType.getUpperBounds() + /// ``` + @JavaMethod + public func getUpperBounds() -> [Type?] } diff --git a/Sources/JavaStdlib/JavaNet/generated/HttpURLConnection.swift b/Sources/JavaStdlib/JavaNet/generated/HttpURLConnection.swift new file mode 100644 index 000000000..a34895b04 --- /dev/null +++ b/Sources/JavaStdlib/JavaNet/generated/HttpURLConnection.swift @@ -0,0 +1,269 @@ +// Auto-generated by Java-to-Swift wrapper generator. +import SwiftJava +import SwiftJavaJNICore + +extension JavaClass { + @JavaStaticField(isFinal: true) + public var HTTP_ACCEPTED: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_BAD_GATEWAY: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_BAD_METHOD: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_BAD_REQUEST: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_CLIENT_TIMEOUT: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_CONFLICT: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_CREATED: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_ENTITY_TOO_LARGE: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_FORBIDDEN: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_GATEWAY_TIMEOUT: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_GONE: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_INTERNAL_ERROR: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_LENGTH_REQUIRED: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_MOVED_PERM: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_MOVED_TEMP: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_MULT_CHOICE: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_NOT_ACCEPTABLE: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_NOT_AUTHORITATIVE: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_NOT_FOUND: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_NOT_IMPLEMENTED: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_NOT_MODIFIED: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_NO_CONTENT: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_OK: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_PARTIAL: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_PAYMENT_REQUIRED: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_PRECON_FAILED: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_PROXY_AUTH: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_REQ_TOO_LONG: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_RESET: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_SEE_OTHER: Int32 + + @available(*, deprecated) + @JavaStaticField(isFinal: true) + public var HTTP_SERVER_ERROR: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_UNAUTHORIZED: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_UNAVAILABLE: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_UNSUPPORTED_TYPE: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_USE_PROXY: Int32 + + @JavaStaticField(isFinal: true) + public var HTTP_VERSION: Int32 + + /// Java method `getFollowRedirects`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.net.HttpURLConnection.getFollowRedirects() + /// ``` + @JavaStaticMethod + public func getFollowRedirects() -> Bool + + /// Java method `setFollowRedirects`. + /// + /// ### Java method signature + /// ```java + /// public static void java.net.HttpURLConnection.setFollowRedirects(boolean) + /// ``` + @JavaStaticMethod + public func setFollowRedirects(_ arg0: Bool) +} +@JavaClass("java.net.HttpURLConnection") +open class HttpURLConnection: URLConnection { + /// Java method `setChunkedStreamingMode`. + /// + /// ### Java method signature + /// ```java + /// public void java.net.HttpURLConnection.setChunkedStreamingMode(int) + /// ``` + @JavaMethod + open func setChunkedStreamingMode(_ arg0: Int32) + + /// Java method `disconnect`. + /// + /// ### Java method signature + /// ```java + /// public abstract void java.net.HttpURLConnection.disconnect() + /// ``` + @JavaMethod + open func disconnect() + + /// Java method `getErrorStream`. + /// + /// ### Java method signature + /// ```java + /// public java.io.InputStream java.net.HttpURLConnection.getErrorStream() + /// ``` + @JavaMethod + open func getErrorStream() -> InputStream! + + /// Java method `setFixedLengthStreamingMode`. + /// + /// ### Java method signature + /// ```java + /// public void java.net.HttpURLConnection.setFixedLengthStreamingMode(int) + /// ``` + @JavaMethod + open func setFixedLengthStreamingMode(_ arg0: Int32) + + /// Java method `setFixedLengthStreamingMode`. + /// + /// ### Java method signature + /// ```java + /// public void java.net.HttpURLConnection.setFixedLengthStreamingMode(long) + /// ``` + @JavaMethod + open func setFixedLengthStreamingMode(_ arg0: Int64) + + /// Java method `getHeaderField`. + /// + /// ### Java method signature + /// ```java + /// public java.lang.String java.net.HttpURLConnection.getHeaderField(int) + /// ``` + @JavaMethod + open override func getHeaderField(_ arg0: Int32) -> String + + /// Java method `getHeaderFieldDate`. + /// + /// ### Java method signature + /// ```java + /// public long java.net.HttpURLConnection.getHeaderFieldDate(java.lang.String,long) + /// ``` + @JavaMethod + open override func getHeaderFieldDate(_ arg0: String, _ arg1: Int64) -> Int64 + + /// Java method `getHeaderFieldKey`. + /// + /// ### Java method signature + /// ```java + /// public java.lang.String java.net.HttpURLConnection.getHeaderFieldKey(int) + /// ``` + @JavaMethod + open override func getHeaderFieldKey(_ arg0: Int32) -> String + + /// Java method `getInstanceFollowRedirects`. + /// + /// ### Java method signature + /// ```java + /// public boolean java.net.HttpURLConnection.getInstanceFollowRedirects() + /// ``` + @JavaMethod + open func getInstanceFollowRedirects() -> Bool + + /// Java method `setInstanceFollowRedirects`. + /// + /// ### Java method signature + /// ```java + /// public void java.net.HttpURLConnection.setInstanceFollowRedirects(boolean) + /// ``` + @JavaMethod + open func setInstanceFollowRedirects(_ arg0: Bool) + + /// Java method `getRequestMethod`. + /// + /// ### Java method signature + /// ```java + /// public java.lang.String java.net.HttpURLConnection.getRequestMethod() + /// ``` + @JavaMethod + open func getRequestMethod() -> String + + /// Java method `setRequestMethod`. + /// + /// ### Java method signature + /// ```java + /// public void java.net.HttpURLConnection.setRequestMethod(java.lang.String) throws java.net.ProtocolException + /// ``` + @JavaMethod + open func setRequestMethod(_ arg0: String) throws + + /// Java method `getResponseCode`. + /// + /// ### Java method signature + /// ```java + /// public int java.net.HttpURLConnection.getResponseCode() throws java.io.IOException + /// ``` + @JavaMethod + open func getResponseCode() throws -> Int32 + + /// Java method `getResponseMessage`. + /// + /// ### Java method signature + /// ```java + /// public java.lang.String java.net.HttpURLConnection.getResponseMessage() throws java.io.IOException + /// ``` + @JavaMethod + open func getResponseMessage() throws -> String + + /// Java method `usingProxy`. + /// + /// ### Java method signature + /// ```java + /// public abstract boolean java.net.HttpURLConnection.usingProxy() + /// ``` + @JavaMethod + open func usingProxy() -> Bool +} diff --git a/Sources/JavaStdlib/JavaNet/generated/URI.swift b/Sources/JavaStdlib/JavaNet/generated/URI.swift index 0259021bf..c547c39c6 100644 --- a/Sources/JavaStdlib/JavaNet/generated/URI.swift +++ b/Sources/JavaStdlib/JavaNet/generated/URI.swift @@ -2,20 +2,24 @@ import SwiftJava import SwiftJavaJNICore +extension JavaClass { + /// Java method `create`. + /// + /// ### Java method signature + /// ```java + /// public static java.net.URI java.net.URI.create(java.lang.String) + /// ``` + @JavaStaticMethod + public func create(_ arg0: String) -> URI! +} @JavaClass("java.net.URI") open class URI: JavaObject { @JavaMethod - @_nonoverride public convenience init(_ arg0: String, _ arg1: String, _ arg2: String, _ arg3: String, _ arg4: String, environment: JNIEnvironment? = nil) throws - - @JavaMethod - @_nonoverride public convenience init(_ arg0: String, _ arg1: String, _ arg2: String, _ arg3: String, environment: JNIEnvironment? = nil) throws + @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) throws @JavaMethod @_nonoverride public convenience init(_ arg0: String, _ arg1: String, _ arg2: String, environment: JNIEnvironment? = nil) throws - @JavaMethod - @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) throws - @JavaMethod @_nonoverride public convenience init( _ arg0: String, @@ -28,32 +32,29 @@ open class URI: JavaObject { environment: JNIEnvironment? = nil ) throws - /// Java method `equals`. - /// - /// ### Java method signature - /// ```java - /// public boolean java.net.URI.equals(java.lang.Object) - /// ``` @JavaMethod - open override func equals(_ arg0: JavaObject?) -> Bool + @_nonoverride public convenience init(_ arg0: String, _ arg1: String, _ arg2: String, _ arg3: String, environment: JNIEnvironment? = nil) throws - /// Java method `toString`. + @JavaMethod + @_nonoverride public convenience init(_ arg0: String, _ arg1: String, _ arg2: String, _ arg3: String, _ arg4: String, environment: JNIEnvironment? = nil) throws + + /// Java method `isAbsolute`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URI.toString() + /// public boolean java.net.URI.isAbsolute() /// ``` @JavaMethod - open override func toString() -> String + open func isAbsolute() -> Bool - /// Java method `hashCode`. + /// Java method `getAuthority`. /// /// ### Java method signature /// ```java - /// public int java.net.URI.hashCode() + /// public java.lang.String java.net.URI.getAuthority() /// ``` @JavaMethod - open override func hashCode() -> Int32 + open func getAuthority() -> String /// Java method `compareTo`. /// @@ -73,229 +74,228 @@ open class URI: JavaObject { @JavaMethod open func compareTo(_ arg0: URI?) -> Int32 - /// Java method `isAbsolute`. + /// Java method `getFragment`. /// /// ### Java method signature /// ```java - /// public boolean java.net.URI.isAbsolute() + /// public java.lang.String java.net.URI.getFragment() /// ``` @JavaMethod - open func isAbsolute() -> Bool + open func getFragment() -> String - /// Java method `resolve`. + /// Java method `getHost`. /// /// ### Java method signature /// ```java - /// public java.net.URI java.net.URI.resolve(java.lang.String) + /// public java.lang.String java.net.URI.getHost() /// ``` @JavaMethod - open func resolve(_ arg0: String) -> URI! + open func getHost() -> String - /// Java method `resolve`. + /// Java method `normalize`. /// /// ### Java method signature /// ```java - /// public java.net.URI java.net.URI.resolve(java.net.URI) + /// public java.net.URI java.net.URI.normalize() /// ``` @JavaMethod - open func resolve(_ arg0: URI?) -> URI! + open func normalize() -> URI! - /// Java method `getScheme`. + /// Java method `isOpaque`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URI.getScheme() + /// public boolean java.net.URI.isOpaque() /// ``` @JavaMethod - open func getScheme() -> String + open func isOpaque() -> Bool - /// Java method `isOpaque`. + /// Java method `parseServerAuthority`. /// /// ### Java method signature /// ```java - /// public boolean java.net.URI.isOpaque() + /// public java.net.URI java.net.URI.parseServerAuthority() throws java.net.URISyntaxException /// ``` @JavaMethod - open func isOpaque() -> Bool + open func parseServerAuthority() throws -> URI! - /// Java method `getRawAuthority`. + /// Java method `getPath`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URI.getRawAuthority() + /// public java.lang.String java.net.URI.getPath() /// ``` @JavaMethod - open func getRawAuthority() -> String + open func getPath() -> String - /// Java method `getRawFragment`. + /// Java method `getPort`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URI.getRawFragment() + /// public int java.net.URI.getPort() /// ``` @JavaMethod - open func getRawFragment() -> String + open func getPort() -> Int32 - /// Java method `getRawQuery`. + /// Java method `getQuery`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URI.getRawQuery() + /// public java.lang.String java.net.URI.getQuery() /// ``` @JavaMethod - open func getRawQuery() -> String + open func getQuery() -> String - /// Java method `getRawPath`. + /// Java method `getRawAuthority`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URI.getRawPath() + /// public java.lang.String java.net.URI.getRawAuthority() /// ``` @JavaMethod - open func getRawPath() -> String + open func getRawAuthority() -> String - /// Java method `getHost`. + /// Java method `getRawFragment`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URI.getHost() + /// public java.lang.String java.net.URI.getRawFragment() /// ``` @JavaMethod - open func getHost() -> String + open func getRawFragment() -> String - /// Java method `getPort`. + /// Java method `getRawPath`. /// /// ### Java method signature /// ```java - /// public int java.net.URI.getPort() + /// public java.lang.String java.net.URI.getRawPath() /// ``` @JavaMethod - open func getPort() -> Int32 + open func getRawPath() -> String - /// Java method `getAuthority`. + /// Java method `getRawQuery`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URI.getAuthority() + /// public java.lang.String java.net.URI.getRawQuery() /// ``` @JavaMethod - open func getAuthority() -> String + open func getRawQuery() -> String - /// Java method `getQuery`. + /// Java method `getRawSchemeSpecificPart`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URI.getQuery() + /// public java.lang.String java.net.URI.getRawSchemeSpecificPart() /// ``` @JavaMethod - open func getQuery() -> String + open func getRawSchemeSpecificPart() -> String - /// Java method `getPath`. + /// Java method `getRawUserInfo`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URI.getPath() + /// public java.lang.String java.net.URI.getRawUserInfo() /// ``` @JavaMethod - open func getPath() -> String + open func getRawUserInfo() -> String - /// Java method `getUserInfo`. + /// Java method `relativize`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URI.getUserInfo() + /// public java.net.URI java.net.URI.relativize(java.net.URI) /// ``` @JavaMethod - open func getUserInfo() -> String + open func relativize(_ arg0: URI?) -> URI! - /// Java method `toURL`. + /// Java method `resolve`. /// /// ### Java method signature /// ```java - /// public java.net.URL java.net.URI.toURL() throws java.net.MalformedURLException + /// public java.net.URI java.net.URI.resolve(java.lang.String) /// ``` @JavaMethod - open func toURL() throws -> JavaURL! + open func resolve(_ arg0: String) -> URI! - /// Java method `normalize`. + /// Java method `resolve`. /// /// ### Java method signature /// ```java - /// public java.net.URI java.net.URI.normalize() + /// public java.net.URI java.net.URI.resolve(java.net.URI) /// ``` @JavaMethod - open func normalize() -> URI! + open func resolve(_ arg0: URI?) -> URI! - /// Java method `relativize`. + /// Java method `getScheme`. /// /// ### Java method signature /// ```java - /// public java.net.URI java.net.URI.relativize(java.net.URI) + /// public java.lang.String java.net.URI.getScheme() /// ``` @JavaMethod - open func relativize(_ arg0: URI?) -> URI! + open func getScheme() -> String - /// Java method `getRawSchemeSpecificPart`. + /// Java method `getSchemeSpecificPart`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URI.getRawSchemeSpecificPart() + /// public java.lang.String java.net.URI.getSchemeSpecificPart() /// ``` @JavaMethod - open func getRawSchemeSpecificPart() -> String + open func getSchemeSpecificPart() -> String - /// Java method `parseServerAuthority`. + /// Java method `toASCIIString`. /// /// ### Java method signature /// ```java - /// public java.net.URI java.net.URI.parseServerAuthority() throws java.net.URISyntaxException + /// public java.lang.String java.net.URI.toASCIIString() /// ``` @JavaMethod - open func parseServerAuthority() throws -> URI! + open func toASCIIString() -> String - /// Java method `getSchemeSpecificPart`. + /// Java method `toURL`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URI.getSchemeSpecificPart() + /// public java.net.URL java.net.URI.toURL() throws java.net.MalformedURLException /// ``` @JavaMethod - open func getSchemeSpecificPart() -> String + open func toURL() throws -> JavaURL! - /// Java method `getRawUserInfo`. + /// Java method `getUserInfo`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URI.getRawUserInfo() + /// public java.lang.String java.net.URI.getUserInfo() /// ``` @JavaMethod - open func getRawUserInfo() -> String + open func getUserInfo() -> String - /// Java method `getFragment`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URI.getFragment() + /// public boolean java.net.URI.equals(java.lang.Object) /// ``` @JavaMethod - open func getFragment() -> String + open override func equals(_ arg0: JavaObject?) -> Bool - /// Java method `toASCIIString`. + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URI.toASCIIString() + /// public int java.net.URI.hashCode() /// ``` @JavaMethod - open func toASCIIString() -> String -} -extension JavaClass { - /// Java method `create`. + open override func hashCode() -> Int32 + + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public static java.net.URI java.net.URI.create(java.lang.String) + /// public java.lang.String java.net.URI.toString() /// ``` - @JavaStaticMethod - public func create(_ arg0: String) -> URI! + @JavaMethod + open override func toString() -> String } diff --git a/Sources/JavaStdlib/JavaNet/generated/URLClassLoader.swift b/Sources/JavaStdlib/JavaNet/generated/URLClassLoader.swift index 6db0b5eb2..5c00fe554 100644 --- a/Sources/JavaStdlib/JavaNet/generated/URLClassLoader.swift +++ b/Sources/JavaStdlib/JavaNet/generated/URLClassLoader.swift @@ -2,6 +2,25 @@ import SwiftJava import SwiftJavaJNICore +extension JavaClass { + /// Java method `newInstance`. + /// + /// ### Java method signature + /// ```java + /// public static java.net.URLClassLoader java.net.URLClassLoader.newInstance(java.net.URL[]) + /// ``` + @JavaStaticMethod + public func newInstance(_ arg0: [JavaURL?]) -> URLClassLoader! + + /// Java method `newInstance`. + /// + /// ### Java method signature + /// ```java + /// public static java.net.URLClassLoader java.net.URLClassLoader.newInstance(java.net.URL[],java.lang.ClassLoader) + /// ``` + @JavaStaticMethod + public func newInstance(_ arg0: [JavaURL?], _ arg1: JavaClassLoader?) -> URLClassLoader! +} @JavaClass("java.net.URLClassLoader", implements: Closeable.self) open class URLClassLoader: JavaClassLoader { @JavaMethod @@ -13,23 +32,23 @@ open class URLClassLoader: JavaClassLoader { @JavaMethod @_nonoverride public convenience init(_ arg0: [JavaURL?], _ arg1: JavaClassLoader?, environment: JNIEnvironment? = nil) - /// Java method `findResource`. + /// Java method `addURL`. /// /// ### Java method signature /// ```java - /// public java.net.URL java.net.URLClassLoader.findResource(java.lang.String) + /// protected void java.net.URLClassLoader.addURL(java.net.URL) /// ``` @JavaMethod - open override func findResource(_ arg0: String) -> JavaURL! + open func addURL(_ arg0: JavaURL?) - /// Java method `getResourceAsStream`. + /// Java method `close`. /// /// ### Java method signature /// ```java - /// public java.io.InputStream java.net.URLClassLoader.getResourceAsStream(java.lang.String) + /// public void java.net.URLClassLoader.close() throws java.io.IOException /// ``` @JavaMethod - open override func getResourceAsStream(_ arg0: String) -> InputStream! + open func close() throws /// Java method `findClass`. /// @@ -40,32 +59,32 @@ open class URLClassLoader: JavaClassLoader { @JavaMethod open override func findClass(_ arg0: String) throws -> JavaClass! - /// Java method `findResources`. + /// Java method `findResource`. /// /// ### Java method signature /// ```java - /// public java.util.Enumeration java.net.URLClassLoader.findResources(java.lang.String) throws java.io.IOException + /// public java.net.URL java.net.URLClassLoader.findResource(java.lang.String) /// ``` @JavaMethod - open override func findResources(_ arg0: String) throws -> Enumeration! + open override func findResource(_ arg0: String) -> JavaURL! - /// Java method `close`. + /// Java method `findResources`. /// /// ### Java method signature /// ```java - /// public void java.net.URLClassLoader.close() throws java.io.IOException + /// public java.util.Enumeration java.net.URLClassLoader.findResources(java.lang.String) throws java.io.IOException /// ``` @JavaMethod - open func close() throws + open override func findResources(_ arg0: String) throws -> Enumeration! - /// Java method `addURL`. + /// Java method `getResourceAsStream`. /// /// ### Java method signature /// ```java - /// protected void java.net.URLClassLoader.addURL(java.net.URL) + /// public java.io.InputStream java.net.URLClassLoader.getResourceAsStream(java.lang.String) /// ``` @JavaMethod - open func addURL(_ arg0: JavaURL?) + open override func getResourceAsStream(_ arg0: String) -> InputStream! /// Java method `getURLs`. /// @@ -76,22 +95,3 @@ open class URLClassLoader: JavaClassLoader { @JavaMethod open func getURLs() -> [JavaURL?] } -extension JavaClass { - /// Java method `newInstance`. - /// - /// ### Java method signature - /// ```java - /// public static java.net.URLClassLoader java.net.URLClassLoader.newInstance(java.net.URL[],java.lang.ClassLoader) - /// ``` - @JavaStaticMethod - public func newInstance(_ arg0: [JavaURL?], _ arg1: JavaClassLoader?) -> URLClassLoader! - - /// Java method `newInstance`. - /// - /// ### Java method signature - /// ```java - /// public static java.net.URLClassLoader java.net.URLClassLoader.newInstance(java.net.URL[]) - /// ``` - @JavaStaticMethod - public func newInstance(_ arg0: [JavaURL?]) -> URLClassLoader! -} diff --git a/Sources/JavaStdlib/JavaNet/generated/URLConnection.swift b/Sources/JavaStdlib/JavaNet/generated/URLConnection.swift index 4d9668b56..28cc692e4 100644 --- a/Sources/JavaStdlib/JavaNet/generated/URLConnection.swift +++ b/Sources/JavaStdlib/JavaNet/generated/URLConnection.swift @@ -2,431 +2,449 @@ import SwiftJava import SwiftJavaJNICore -@JavaClass("java.net.URLConnection") -open class URLConnection: JavaObject { - /// Java method `getDefaultUseCaches`. +extension JavaClass { + /// Java method `getDefaultAllowUserInteraction`. /// /// ### Java method signature /// ```java - /// public boolean java.net.URLConnection.getDefaultUseCaches() + /// public static boolean java.net.URLConnection.getDefaultAllowUserInteraction() /// ``` - @JavaMethod - open func getDefaultUseCaches() -> Bool + @JavaStaticMethod + public func getDefaultAllowUserInteraction() -> Bool - /// Java method `getContentLengthLong`. + /// Java method `setDefaultAllowUserInteraction`. /// /// ### Java method signature /// ```java - /// public long java.net.URLConnection.getContentLengthLong() + /// public static void java.net.URLConnection.setDefaultAllowUserInteraction(boolean) /// ``` - @JavaMethod - open func getContentLengthLong() -> Int64 + @JavaStaticMethod + public func setDefaultAllowUserInteraction(_ arg0: Bool) - /// Java method `getHeaderFieldLong`. + /// Java method `getDefaultRequestProperty`. /// /// ### Java method signature /// ```java - /// public long java.net.URLConnection.getHeaderFieldLong(java.lang.String,long) + /// public static java.lang.String java.net.URLConnection.getDefaultRequestProperty(java.lang.String) /// ``` - @JavaMethod - open func getHeaderFieldLong(_ arg0: String, _ arg1: Int64) -> Int64 + @available(*, deprecated) + @JavaStaticMethod + public func getDefaultRequestProperty(_ arg0: String) -> String - /// Java method `getHeaderField`. + /// Java method `setDefaultRequestProperty`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URLConnection.getHeaderField(java.lang.String) + /// public static void java.net.URLConnection.setDefaultRequestProperty(java.lang.String,java.lang.String) /// ``` - @JavaMethod - open func getHeaderField(_ arg0: String) -> String + @available(*, deprecated) + @JavaStaticMethod + public func setDefaultRequestProperty(_ arg0: String, _ arg1: String) - /// Java method `getHeaderField`. + /// Java method `getDefaultUseCaches`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URLConnection.getHeaderField(int) + /// public static boolean java.net.URLConnection.getDefaultUseCaches(java.lang.String) /// ``` - @JavaMethod - open func getHeaderField(_ arg0: Int32) -> String + @JavaStaticMethod + public func getDefaultUseCaches(_ arg0: String) -> Bool - /// Java method `getHeaderFieldDate`. + /// Java method `setDefaultUseCaches`. /// /// ### Java method signature /// ```java - /// public long java.net.URLConnection.getHeaderFieldDate(java.lang.String,long) + /// public static void java.net.URLConnection.setDefaultUseCaches(java.lang.String,boolean) /// ``` - @JavaMethod - open func getHeaderFieldDate(_ arg0: String, _ arg1: Int64) -> Int64 + @JavaStaticMethod + public func setDefaultUseCaches(_ arg0: String, _ arg1: Bool) - /// Java method `getContentType`. + /// Java method `guessContentTypeFromName`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URLConnection.getContentType() + /// public static java.lang.String java.net.URLConnection.guessContentTypeFromName(java.lang.String) + /// ``` + @JavaStaticMethod + public func guessContentTypeFromName(_ arg0: String) -> String + + /// Java method `guessContentTypeFromStream`. + /// + /// ### Java method signature + /// ```java + /// public static java.lang.String java.net.URLConnection.guessContentTypeFromStream(java.io.InputStream) throws java.io.IOException + /// ``` + @JavaStaticMethod + public func guessContentTypeFromStream(_ arg0: InputStream?) throws -> String +} +@JavaClass("java.net.URLConnection") +open class URLConnection: JavaObject { + /// Java method `addRequestProperty`. + /// + /// ### Java method signature + /// ```java + /// public void java.net.URLConnection.addRequestProperty(java.lang.String,java.lang.String) /// ``` @JavaMethod - open func getContentType() -> String + open func addRequestProperty(_ arg0: String, _ arg1: String) - /// Java method `setConnectTimeout`. + /// Java method `getAllowUserInteraction`. /// /// ### Java method signature /// ```java - /// public void java.net.URLConnection.setConnectTimeout(int) + /// public boolean java.net.URLConnection.getAllowUserInteraction() /// ``` @JavaMethod - open func setConnectTimeout(_ arg0: Int32) + open func getAllowUserInteraction() -> Bool - /// Java method `getConnectTimeout`. + /// Java method `setAllowUserInteraction`. /// /// ### Java method signature /// ```java - /// public int java.net.URLConnection.getConnectTimeout() + /// public void java.net.URLConnection.setAllowUserInteraction(boolean) /// ``` @JavaMethod - open func getConnectTimeout() -> Int32 + open func setAllowUserInteraction(_ arg0: Bool) - /// Java method `setReadTimeout`. + /// Java method `connect`. /// /// ### Java method signature /// ```java - /// public void java.net.URLConnection.setReadTimeout(int) + /// public abstract void java.net.URLConnection.connect() throws java.io.IOException /// ``` @JavaMethod - open func setReadTimeout(_ arg0: Int32) + open func connect() throws - /// Java method `getReadTimeout`. + /// Java method `getConnectTimeout`. /// /// ### Java method signature /// ```java - /// public int java.net.URLConnection.getReadTimeout() + /// public int java.net.URLConnection.getConnectTimeout() /// ``` @JavaMethod - open func getReadTimeout() -> Int32 + open func getConnectTimeout() -> Int32 - /// Java method `getContentEncoding`. + /// Java method `setConnectTimeout`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URLConnection.getContentEncoding() + /// public void java.net.URLConnection.setConnectTimeout(int) /// ``` @JavaMethod - open func getContentEncoding() -> String + open func setConnectTimeout(_ arg0: Int32) - /// Java method `getExpiration`. + /// Java method `getContent`. /// /// ### Java method signature /// ```java - /// public long java.net.URLConnection.getExpiration() + /// public java.lang.Object java.net.URLConnection.getContent() throws java.io.IOException /// ``` @JavaMethod - open func getExpiration() -> Int64 + open func getContent() throws -> JavaObject! - /// Java method `getHeaderFieldInt`. + /// Java method `getContent`. /// /// ### Java method signature /// ```java - /// public int java.net.URLConnection.getHeaderFieldInt(java.lang.String,int) + /// public java.lang.Object java.net.URLConnection.getContent(java.lang.Class[]) throws java.io.IOException /// ``` @JavaMethod - open func getHeaderFieldInt(_ arg0: String, _ arg1: Int32) -> Int32 + open func getContent(_ arg0: [JavaClass?]) throws -> JavaObject! - /// Java method `getHeaderFieldKey`. + /// Java method `getContentEncoding`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URLConnection.getHeaderFieldKey(int) + /// public java.lang.String java.net.URLConnection.getContentEncoding() /// ``` @JavaMethod - open func getHeaderFieldKey(_ arg0: Int32) -> String + open func getContentEncoding() -> String - /// Java method `getOutputStream`. + /// Java method `getContentLength`. /// /// ### Java method signature /// ```java - /// public java.io.OutputStream java.net.URLConnection.getOutputStream() throws java.io.IOException + /// public int java.net.URLConnection.getContentLength() /// ``` @JavaMethod - open func getOutputStream() throws -> OutputStream! + open func getContentLength() -> Int32 - /// Java method `setDoInput`. + /// Java method `getContentLengthLong`. /// /// ### Java method signature /// ```java - /// public void java.net.URLConnection.setDoInput(boolean) + /// public long java.net.URLConnection.getContentLengthLong() /// ``` @JavaMethod - open func setDoInput(_ arg0: Bool) + open func getContentLengthLong() -> Int64 - /// Java method `getDoInput`. + /// Java method `getContentType`. /// /// ### Java method signature /// ```java - /// public boolean java.net.URLConnection.getDoInput() + /// public java.lang.String java.net.URLConnection.getContentType() /// ``` @JavaMethod - open func getDoInput() -> Bool + open func getContentType() -> String - /// Java method `setDoOutput`. + /// Java method `getDate`. /// /// ### Java method signature /// ```java - /// public void java.net.URLConnection.setDoOutput(boolean) + /// public long java.net.URLConnection.getDate() /// ``` @JavaMethod - open func setDoOutput(_ arg0: Bool) + open func getDate() -> Int64 - /// Java method `getDoOutput`. + /// Java method `getDefaultUseCaches`. /// /// ### Java method signature /// ```java - /// public boolean java.net.URLConnection.getDoOutput() + /// public boolean java.net.URLConnection.getDefaultUseCaches() /// ``` @JavaMethod - open func getDoOutput() -> Bool + open func getDefaultUseCaches() -> Bool - /// Java method `setAllowUserInteraction`. + /// Java method `setDefaultUseCaches`. /// /// ### Java method signature /// ```java - /// public void java.net.URLConnection.setAllowUserInteraction(boolean) + /// public void java.net.URLConnection.setDefaultUseCaches(boolean) /// ``` @JavaMethod - open func setAllowUserInteraction(_ arg0: Bool) + open func setDefaultUseCaches(_ arg0: Bool) - /// Java method `getAllowUserInteraction`. + /// Java method `getDoInput`. /// /// ### Java method signature /// ```java - /// public boolean java.net.URLConnection.getAllowUserInteraction() + /// public boolean java.net.URLConnection.getDoInput() /// ``` @JavaMethod - open func getAllowUserInteraction() -> Bool + open func getDoInput() -> Bool - /// Java method `getUseCaches`. + /// Java method `setDoInput`. /// /// ### Java method signature /// ```java - /// public boolean java.net.URLConnection.getUseCaches() + /// public void java.net.URLConnection.setDoInput(boolean) /// ``` @JavaMethod - open func getUseCaches() -> Bool + open func setDoInput(_ arg0: Bool) - /// Java method `setIfModifiedSince`. + /// Java method `getDoOutput`. /// /// ### Java method signature /// ```java - /// public void java.net.URLConnection.setIfModifiedSince(long) + /// public boolean java.net.URLConnection.getDoOutput() /// ``` @JavaMethod - open func setIfModifiedSince(_ arg0: Int64) + open func getDoOutput() -> Bool - /// Java method `getIfModifiedSince`. + /// Java method `setDoOutput`. /// /// ### Java method signature /// ```java - /// public long java.net.URLConnection.getIfModifiedSince() + /// public void java.net.URLConnection.setDoOutput(boolean) /// ``` @JavaMethod - open func getIfModifiedSince() -> Int64 + open func setDoOutput(_ arg0: Bool) - /// Java method `setDefaultUseCaches`. + /// Java method `getExpiration`. /// /// ### Java method signature /// ```java - /// public void java.net.URLConnection.setDefaultUseCaches(boolean) + /// public long java.net.URLConnection.getExpiration() /// ``` @JavaMethod - open func setDefaultUseCaches(_ arg0: Bool) + open func getExpiration() -> Int64 - /// Java method `addRequestProperty`. + /// Java method `getHeaderField`. /// /// ### Java method signature /// ```java - /// public void java.net.URLConnection.addRequestProperty(java.lang.String,java.lang.String) + /// public java.lang.String java.net.URLConnection.getHeaderField(int) /// ``` @JavaMethod - open func addRequestProperty(_ arg0: String, _ arg1: String) + open func getHeaderField(_ arg0: Int32) -> String - /// Java method `getRequestProperty`. + /// Java method `getHeaderField`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URLConnection.getRequestProperty(java.lang.String) + /// public java.lang.String java.net.URLConnection.getHeaderField(java.lang.String) /// ``` @JavaMethod - open func getRequestProperty(_ arg0: String) -> String + open func getHeaderField(_ arg0: String) -> String - /// Java method `toString`. + /// Java method `getHeaderFieldDate`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URLConnection.toString() + /// public long java.net.URLConnection.getHeaderFieldDate(java.lang.String,long) /// ``` @JavaMethod - open override func toString() -> String + open func getHeaderFieldDate(_ arg0: String, _ arg1: Int64) -> Int64 - /// Java method `getInputStream`. + /// Java method `getHeaderFieldInt`. /// /// ### Java method signature /// ```java - /// public java.io.InputStream java.net.URLConnection.getInputStream() throws java.io.IOException + /// public int java.net.URLConnection.getHeaderFieldInt(java.lang.String,int) /// ``` @JavaMethod - open func getInputStream() throws -> InputStream! + open func getHeaderFieldInt(_ arg0: String, _ arg1: Int32) -> Int32 - /// Java method `getContent`. + /// Java method `getHeaderFieldKey`. /// /// ### Java method signature /// ```java - /// public java.lang.Object java.net.URLConnection.getContent(java.lang.Class[]) throws java.io.IOException + /// public java.lang.String java.net.URLConnection.getHeaderFieldKey(int) /// ``` @JavaMethod - open func getContent(_ arg0: [JavaClass?]) throws -> JavaObject! + open func getHeaderFieldKey(_ arg0: Int32) -> String - /// Java method `getContent`. + /// Java method `getHeaderFieldLong`. /// /// ### Java method signature /// ```java - /// public java.lang.Object java.net.URLConnection.getContent() throws java.io.IOException + /// public long java.net.URLConnection.getHeaderFieldLong(java.lang.String,long) /// ``` @JavaMethod - open func getContent() throws -> JavaObject! + open func getHeaderFieldLong(_ arg0: String, _ arg1: Int64) -> Int64 - /// Java method `connect`. + /// Java method `getHeaderFields`. /// /// ### Java method signature /// ```java - /// public abstract void java.net.URLConnection.connect() throws java.io.IOException + /// public java.util.Map> java.net.URLConnection.getHeaderFields() /// ``` @JavaMethod - open func connect() throws + open func getHeaderFields() -> JavaMap>! - /// Java method `getDate`. + /// Java method `getIfModifiedSince`. /// /// ### Java method signature /// ```java - /// public long java.net.URLConnection.getDate() + /// public long java.net.URLConnection.getIfModifiedSince() /// ``` @JavaMethod - open func getDate() -> Int64 + open func getIfModifiedSince() -> Int64 - /// Java method `setUseCaches`. + /// Java method `setIfModifiedSince`. /// /// ### Java method signature /// ```java - /// public void java.net.URLConnection.setUseCaches(boolean) + /// public void java.net.URLConnection.setIfModifiedSince(long) /// ``` @JavaMethod - open func setUseCaches(_ arg0: Bool) + open func setIfModifiedSince(_ arg0: Int64) - /// Java method `getLastModified`. + /// Java method `getInputStream`. /// /// ### Java method signature /// ```java - /// public long java.net.URLConnection.getLastModified() + /// public java.io.InputStream java.net.URLConnection.getInputStream() throws java.io.IOException /// ``` @JavaMethod - open func getLastModified() -> Int64 + open func getInputStream() throws -> InputStream! - /// Java method `getContentLength`. + /// Java method `getLastModified`. /// /// ### Java method signature /// ```java - /// public int java.net.URLConnection.getContentLength() + /// public long java.net.URLConnection.getLastModified() /// ``` @JavaMethod - open func getContentLength() -> Int32 + open func getLastModified() -> Int64 - /// Java method `getURL`. + /// Java method `getOutputStream`. /// /// ### Java method signature /// ```java - /// public java.net.URL java.net.URLConnection.getURL() + /// public java.io.OutputStream java.net.URLConnection.getOutputStream() throws java.io.IOException /// ``` @JavaMethod - open func getURL() -> JavaURL! + open func getOutputStream() throws -> OutputStream! - /// Java method `setRequestProperty`. + /// Java method `getReadTimeout`. /// /// ### Java method signature /// ```java - /// public void java.net.URLConnection.setRequestProperty(java.lang.String,java.lang.String) + /// public int java.net.URLConnection.getReadTimeout() /// ``` @JavaMethod - open func setRequestProperty(_ arg0: String, _ arg1: String) -} -extension JavaClass { - /// Java method `getDefaultUseCaches`. + open func getReadTimeout() -> Int32 + + /// Java method `setReadTimeout`. /// /// ### Java method signature /// ```java - /// public static boolean java.net.URLConnection.getDefaultUseCaches(java.lang.String) + /// public void java.net.URLConnection.setReadTimeout(int) /// ``` - @JavaStaticMethod - public func getDefaultUseCaches(_ arg0: String) -> Bool + @JavaMethod + open func setReadTimeout(_ arg0: Int32) - /// Java method `setDefaultAllowUserInteraction`. + /// Java method `getRequestProperties`. /// /// ### Java method signature /// ```java - /// public static void java.net.URLConnection.setDefaultAllowUserInteraction(boolean) + /// public java.util.Map> java.net.URLConnection.getRequestProperties() /// ``` - @JavaStaticMethod - public func setDefaultAllowUserInteraction(_ arg0: Bool) + @JavaMethod + open func getRequestProperties() -> JavaMap>! - /// Java method `getDefaultAllowUserInteraction`. + /// Java method `getRequestProperty`. /// /// ### Java method signature /// ```java - /// public static boolean java.net.URLConnection.getDefaultAllowUserInteraction() + /// public java.lang.String java.net.URLConnection.getRequestProperty(java.lang.String) /// ``` - @JavaStaticMethod - public func getDefaultAllowUserInteraction() -> Bool + @JavaMethod + open func getRequestProperty(_ arg0: String) -> String - /// Java method `setDefaultUseCaches`. + /// Java method `setRequestProperty`. /// /// ### Java method signature /// ```java - /// public static void java.net.URLConnection.setDefaultUseCaches(java.lang.String,boolean) + /// public void java.net.URLConnection.setRequestProperty(java.lang.String,java.lang.String) /// ``` - @JavaStaticMethod - public func setDefaultUseCaches(_ arg0: String, _ arg1: Bool) + @JavaMethod + open func setRequestProperty(_ arg0: String, _ arg1: String) - /// Java method `setDefaultRequestProperty`. + /// Java method `getURL`. /// /// ### Java method signature /// ```java - /// public static void java.net.URLConnection.setDefaultRequestProperty(java.lang.String,java.lang.String) + /// public java.net.URL java.net.URLConnection.getURL() /// ``` - @available(*, deprecated) - @JavaStaticMethod - public func setDefaultRequestProperty(_ arg0: String, _ arg1: String) + @JavaMethod + open func getURL() -> JavaURL! - /// Java method `getDefaultRequestProperty`. + /// Java method `getUseCaches`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.net.URLConnection.getDefaultRequestProperty(java.lang.String) + /// public boolean java.net.URLConnection.getUseCaches() /// ``` - @available(*, deprecated) - @JavaStaticMethod - public func getDefaultRequestProperty(_ arg0: String) -> String + @JavaMethod + open func getUseCaches() -> Bool - /// Java method `guessContentTypeFromName`. + /// Java method `setUseCaches`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.net.URLConnection.guessContentTypeFromName(java.lang.String) + /// public void java.net.URLConnection.setUseCaches(boolean) /// ``` - @JavaStaticMethod - public func guessContentTypeFromName(_ arg0: String) -> String + @JavaMethod + open func setUseCaches(_ arg0: Bool) - /// Java method `guessContentTypeFromStream`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.net.URLConnection.guessContentTypeFromStream(java.io.InputStream) throws java.io.IOException + /// public java.lang.String java.net.URLConnection.toString() /// ``` - @JavaStaticMethod - public func guessContentTypeFromStream(_ arg0: InputStream?) throws -> String + @JavaMethod + open override func toString() -> String } diff --git a/Sources/JavaStdlib/JavaNet/swift-java.config b/Sources/JavaStdlib/JavaNet/swift-java.config index 40fff1201..f939deb2c 100644 --- a/Sources/JavaStdlib/JavaNet/swift-java.config +++ b/Sources/JavaStdlib/JavaNet/swift-java.config @@ -3,5 +3,6 @@ "java.net.URI" : "URI", "java.net.URLClassLoader" : "URLClassLoader", "java.net.URLConnection" : "URLConnection", + "java.net.HttpURLConnection" : "HttpURLConnection", } } diff --git a/Sources/JavaStdlib/JavaUtil/generated/ArrayDeque.swift b/Sources/JavaStdlib/JavaUtil/generated/ArrayDeque.swift index 9481a3597..49f8d8884 100644 --- a/Sources/JavaStdlib/JavaUtil/generated/ArrayDeque.swift +++ b/Sources/JavaStdlib/JavaUtil/generated/ArrayDeque.swift @@ -7,49 +7,49 @@ open class ArrayDeque: JavaObject { public typealias E = ArrayDeque_E @JavaMethod - @_nonoverride public convenience init(_ arg0: Int32, environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(environment: JNIEnvironment? = nil) @JavaMethod - @_nonoverride public convenience init(environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(_ arg0: Int32, environment: JNIEnvironment? = nil) @JavaMethod @_nonoverride public convenience init(_ arg0: JavaCollection?, environment: JNIEnvironment? = nil) - /// Java method `remove`. + /// Java method `add`. /// /// ### Java method signature /// ```java - /// public E java.util.ArrayDeque.remove() + /// public boolean java.util.ArrayDeque.add(E) /// ``` - @JavaMethod(typeErasedResult: "E!") - open func remove() -> E! + @JavaMethod + open func add(_ arg0: E?) -> Bool - /// Java method `remove`. + /// Java method `addAll`. /// /// ### Java method signature /// ```java - /// public boolean java.util.ArrayDeque.remove(java.lang.Object) + /// public boolean java.util.ArrayDeque.addAll(java.util.Collection) /// ``` @JavaMethod - open func remove(_ arg0: JavaObject?) -> Bool + open func addAll(_ arg0: JavaCollection?) -> Bool - /// Java method `size`. + /// Java method `addFirst`. /// /// ### Java method signature /// ```java - /// public int java.util.ArrayDeque.size() + /// public void java.util.ArrayDeque.addFirst(E) /// ``` @JavaMethod - open func size() -> Int32 + open func addFirst(_ arg0: E?) - /// Java method `clone`. + /// Java method `addLast`. /// /// ### Java method signature /// ```java - /// public java.util.ArrayDeque java.util.ArrayDeque.clone() + /// public void java.util.ArrayDeque.addLast(E) /// ``` @JavaMethod - open override func clone() -> ArrayDeque! + open func addLast(_ arg0: E?) /// Java method `clear`. /// @@ -60,41 +60,50 @@ open class ArrayDeque: JavaObject { @JavaMethod open func clear() - /// Java method `isEmpty`. + /// Java method `contains`. /// /// ### Java method signature /// ```java - /// public boolean java.util.ArrayDeque.isEmpty() + /// public boolean java.util.ArrayDeque.contains(java.lang.Object) /// ``` @JavaMethod - open func isEmpty() -> Bool + open func contains(_ arg0: JavaObject?) -> Bool - /// Java method `add`. + /// Java method `descendingIterator`. /// /// ### Java method signature /// ```java - /// public boolean java.util.ArrayDeque.add(E) + /// public java.util.Iterator java.util.ArrayDeque.descendingIterator() /// ``` @JavaMethod - open func add(_ arg0: E?) -> Bool + open func descendingIterator() -> JavaIterator! - /// Java method `toArray`. + /// Java method `element`. /// /// ### Java method signature /// ```java - /// public T[] java.util.ArrayDeque.toArray(T[]) + /// public E java.util.ArrayDeque.element() /// ``` - @JavaMethod - open func toArray(_ arg0: [T?]) -> [T?] + @JavaMethod(typeErasedResult: "E!") + open func element() -> E! - /// Java method `toArray`. + /// Java method `isEmpty`. /// /// ### Java method signature /// ```java - /// public java.lang.Object[] java.util.ArrayDeque.toArray() + /// public boolean java.util.ArrayDeque.isEmpty() /// ``` @JavaMethod - open func toArray() -> [JavaObject?] + open func isEmpty() -> Bool + + /// Java method `getFirst`. + /// + /// ### Java method signature + /// ```java + /// public E java.util.ArrayDeque.getFirst() + /// ``` + @JavaMethod(typeErasedResult: "E!") + open func getFirst() -> E! /// Java method `iterator`. /// @@ -105,228 +114,219 @@ open class ArrayDeque: JavaObject { @JavaMethod open func iterator() -> JavaIterator! - /// Java method `contains`. + /// Java method `getLast`. /// /// ### Java method signature /// ```java - /// public boolean java.util.ArrayDeque.contains(java.lang.Object) + /// public E java.util.ArrayDeque.getLast() /// ``` - @JavaMethod - open func contains(_ arg0: JavaObject?) -> Bool + @JavaMethod(typeErasedResult: "E!") + open func getLast() -> E! - /// Java method `addAll`. + /// Java method `offer`. /// /// ### Java method signature /// ```java - /// public boolean java.util.ArrayDeque.addAll(java.util.Collection) + /// public boolean java.util.ArrayDeque.offer(E) /// ``` @JavaMethod - open func addAll(_ arg0: JavaCollection?) -> Bool + open func offer(_ arg0: E?) -> Bool - /// Java method `peek`. + /// Java method `offerFirst`. /// /// ### Java method signature /// ```java - /// public E java.util.ArrayDeque.peek() + /// public boolean java.util.ArrayDeque.offerFirst(E) /// ``` - @JavaMethod(typeErasedResult: "E!") - open func peek() -> E! + @JavaMethod + open func offerFirst(_ arg0: E?) -> Bool - /// Java method `getFirst`. + /// Java method `offerLast`. /// /// ### Java method signature /// ```java - /// public E java.util.ArrayDeque.getFirst() + /// public boolean java.util.ArrayDeque.offerLast(E) /// ``` - @JavaMethod(typeErasedResult: "E!") - open func getFirst() -> E! + @JavaMethod + open func offerLast(_ arg0: E?) -> Bool - /// Java method `getLast`. + /// Java method `peek`. /// /// ### Java method signature /// ```java - /// public E java.util.ArrayDeque.getLast() + /// public E java.util.ArrayDeque.peek() /// ``` @JavaMethod(typeErasedResult: "E!") - open func getLast() -> E! + open func peek() -> E! - /// Java method `element`. + /// Java method `peekFirst`. /// /// ### Java method signature /// ```java - /// public E java.util.ArrayDeque.element() + /// public E java.util.ArrayDeque.peekFirst() /// ``` @JavaMethod(typeErasedResult: "E!") - open func element() -> E! + open func peekFirst() -> E! - /// Java method `addFirst`. + /// Java method `peekLast`. /// /// ### Java method signature /// ```java - /// public void java.util.ArrayDeque.addFirst(E) + /// public E java.util.ArrayDeque.peekLast() /// ``` - @JavaMethod - open func addFirst(_ arg0: E?) + @JavaMethod(typeErasedResult: "E!") + open func peekLast() -> E! - /// Java method `addLast`. + /// Java method `poll`. /// /// ### Java method signature /// ```java - /// public void java.util.ArrayDeque.addLast(E) + /// public E java.util.ArrayDeque.poll() /// ``` - @JavaMethod - open func addLast(_ arg0: E?) + @JavaMethod(typeErasedResult: "E!") + open func poll() -> E! - /// Java method `removeFirst`. + /// Java method `pollFirst`. /// /// ### Java method signature /// ```java - /// public E java.util.ArrayDeque.removeFirst() + /// public E java.util.ArrayDeque.pollFirst() /// ``` @JavaMethod(typeErasedResult: "E!") - open func removeFirst() -> E! + open func pollFirst() -> E! - /// Java method `removeLast`. + /// Java method `pollLast`. /// /// ### Java method signature /// ```java - /// public E java.util.ArrayDeque.removeLast() + /// public E java.util.ArrayDeque.pollLast() /// ``` @JavaMethod(typeErasedResult: "E!") - open func removeLast() -> E! + open func pollLast() -> E! - /// Java method `removeAll`. + /// Java method `pop`. /// /// ### Java method signature /// ```java - /// public boolean java.util.ArrayDeque.removeAll(java.util.Collection) + /// public E java.util.ArrayDeque.pop() /// ``` - @JavaMethod - open func removeAll(_ arg0: JavaCollection?) -> Bool + @JavaMethod(typeErasedResult: "E!") + open func pop() -> E! - /// Java method `retainAll`. + /// Java method `push`. /// /// ### Java method signature /// ```java - /// public boolean java.util.ArrayDeque.retainAll(java.util.Collection) + /// public void java.util.ArrayDeque.push(E) /// ``` @JavaMethod - open func retainAll(_ arg0: JavaCollection?) -> Bool + open func push(_ arg0: E?) - /// Java method `poll`. + /// Java method `remove`. /// /// ### Java method signature /// ```java - /// public E java.util.ArrayDeque.poll() + /// public E java.util.ArrayDeque.remove() /// ``` @JavaMethod(typeErasedResult: "E!") - open func poll() -> E! + open func remove() -> E! - /// Java method `offer`. + /// Java method `remove`. /// /// ### Java method signature /// ```java - /// public boolean java.util.ArrayDeque.offer(E) + /// public boolean java.util.ArrayDeque.remove(java.lang.Object) /// ``` @JavaMethod - open func offer(_ arg0: E?) -> Bool + open func remove(_ arg0: JavaObject?) -> Bool - /// Java method `push`. + /// Java method `removeAll`. /// /// ### Java method signature /// ```java - /// public void java.util.ArrayDeque.push(E) + /// public boolean java.util.ArrayDeque.removeAll(java.util.Collection) /// ``` @JavaMethod - open func push(_ arg0: E?) + open func removeAll(_ arg0: JavaCollection?) -> Bool - /// Java method `pop`. + /// Java method `removeFirst`. /// /// ### Java method signature /// ```java - /// public E java.util.ArrayDeque.pop() + /// public E java.util.ArrayDeque.removeFirst() /// ``` @JavaMethod(typeErasedResult: "E!") - open func pop() -> E! + open func removeFirst() -> E! - /// Java method `pollFirst`. + /// Java method `removeFirstOccurrence`. /// /// ### Java method signature /// ```java - /// public E java.util.ArrayDeque.pollFirst() + /// public boolean java.util.ArrayDeque.removeFirstOccurrence(java.lang.Object) /// ``` - @JavaMethod(typeErasedResult: "E!") - open func pollFirst() -> E! + @JavaMethod + open func removeFirstOccurrence(_ arg0: JavaObject?) -> Bool - /// Java method `pollLast`. + /// Java method `removeLast`. /// /// ### Java method signature /// ```java - /// public E java.util.ArrayDeque.pollLast() + /// public E java.util.ArrayDeque.removeLast() /// ``` @JavaMethod(typeErasedResult: "E!") - open func pollLast() -> E! + open func removeLast() -> E! - /// Java method `offerLast`. + /// Java method `removeLastOccurrence`. /// /// ### Java method signature /// ```java - /// public boolean java.util.ArrayDeque.offerLast(E) + /// public boolean java.util.ArrayDeque.removeLastOccurrence(java.lang.Object) /// ``` @JavaMethod - open func offerLast(_ arg0: E?) -> Bool - - /// Java method `peekFirst`. - /// - /// ### Java method signature - /// ```java - /// public E java.util.ArrayDeque.peekFirst() - /// ``` - @JavaMethod(typeErasedResult: "E!") - open func peekFirst() -> E! + open func removeLastOccurrence(_ arg0: JavaObject?) -> Bool - /// Java method `removeFirstOccurrence`. + /// Java method `retainAll`. /// /// ### Java method signature /// ```java - /// public boolean java.util.ArrayDeque.removeFirstOccurrence(java.lang.Object) + /// public boolean java.util.ArrayDeque.retainAll(java.util.Collection) /// ``` @JavaMethod - open func removeFirstOccurrence(_ arg0: JavaObject?) -> Bool + open func retainAll(_ arg0: JavaCollection?) -> Bool - /// Java method `offerFirst`. + /// Java method `size`. /// /// ### Java method signature /// ```java - /// public boolean java.util.ArrayDeque.offerFirst(E) + /// public int java.util.ArrayDeque.size() /// ``` @JavaMethod - open func offerFirst(_ arg0: E?) -> Bool + open func size() -> Int32 - /// Java method `peekLast`. + /// Java method `toArray`. /// /// ### Java method signature /// ```java - /// public E java.util.ArrayDeque.peekLast() + /// public T[] java.util.ArrayDeque.toArray(T[]) /// ``` - @JavaMethod(typeErasedResult: "E!") - open func peekLast() -> E! + @JavaMethod + open func toArray(_ arg0: [T?]) -> [T?] - /// Java method `removeLastOccurrence`. + /// Java method `toArray`. /// /// ### Java method signature /// ```java - /// public boolean java.util.ArrayDeque.removeLastOccurrence(java.lang.Object) + /// public java.lang.Object[] java.util.ArrayDeque.toArray() /// ``` @JavaMethod - open func removeLastOccurrence(_ arg0: JavaObject?) -> Bool + open func toArray() -> [JavaObject?] - /// Java method `descendingIterator`. + /// Java method `clone`. /// /// ### Java method signature /// ```java - /// public java.util.Iterator java.util.ArrayDeque.descendingIterator() + /// public java.util.ArrayDeque java.util.ArrayDeque.clone() /// ``` @JavaMethod - open func descendingIterator() -> JavaIterator! + open override func clone() -> ArrayDeque! } diff --git a/Sources/JavaStdlib/JavaUtil/generated/ArrayList.swift b/Sources/JavaStdlib/JavaUtil/generated/ArrayList.swift index 321a52482..2b9065a1a 100644 --- a/Sources/JavaStdlib/JavaUtil/generated/ArrayList.swift +++ b/Sources/JavaStdlib/JavaUtil/generated/ArrayList.swift @@ -6,86 +6,68 @@ import SwiftJavaJNICore open class ArrayList: JavaObject { public typealias E = ArrayList_E - @JavaMethod - @_nonoverride public convenience init(_ arg0: JavaCollection?, environment: JNIEnvironment? = nil) - @JavaMethod @_nonoverride public convenience init(environment: JNIEnvironment? = nil) @JavaMethod @_nonoverride public convenience init(_ arg0: Int32, environment: JNIEnvironment? = nil) - /// Java method `remove`. - /// - /// ### Java method signature - /// ```java - /// public boolean java.util.ArrayList.remove(java.lang.Object) - /// ``` @JavaMethod - open func remove(_ arg0: JavaObject?) -> Bool - - /// Java method `remove`. - /// - /// ### Java method signature - /// ```java - /// public E java.util.ArrayList.remove(int) - /// ``` - @JavaMethod(typeErasedResult: "E!") - open func remove(_ arg0: Int32) -> E! + @_nonoverride public convenience init(_ arg0: JavaCollection?, environment: JNIEnvironment? = nil) - /// Java method `size`. + /// Java method `add`. /// /// ### Java method signature /// ```java - /// public int java.util.ArrayList.size() + /// public boolean java.util.ArrayList.add(E) /// ``` @JavaMethod - open func size() -> Int32 + open func add(_ arg0: E?) -> Bool - /// Java method `get`. + /// Java method `add`. /// /// ### Java method signature /// ```java - /// public E java.util.ArrayList.get(int) + /// public void java.util.ArrayList.add(int,E) /// ``` - @JavaMethod(typeErasedResult: "E!") - open func get(_ arg0: Int32) -> E! + @JavaMethod + open func add(_ arg0: Int32, _ arg1: E?) - /// Java method `equals`. + /// Java method `addAll`. /// /// ### Java method signature /// ```java - /// public boolean java.util.ArrayList.equals(java.lang.Object) + /// public boolean java.util.ArrayList.addAll(int,java.util.Collection) /// ``` @JavaMethod - open override func equals(_ arg0: JavaObject?) -> Bool + open func addAll(_ arg0: Int32, _ arg1: JavaCollection?) -> Bool - /// Java method `hashCode`. + /// Java method `addAll`. /// /// ### Java method signature /// ```java - /// public int java.util.ArrayList.hashCode() + /// public boolean java.util.ArrayList.addAll(java.util.Collection) /// ``` @JavaMethod - open override func hashCode() -> Int32 + open func addAll(_ arg0: JavaCollection?) -> Bool - /// Java method `clone`. + /// Java method `addFirst`. /// /// ### Java method signature /// ```java - /// public java.lang.Object java.util.ArrayList.clone() + /// public void java.util.ArrayList.addFirst(E) /// ``` @JavaMethod - open override func clone() -> JavaObject! + open func addFirst(_ arg0: E?) - /// Java method `indexOf`. + /// Java method `addLast`. /// /// ### Java method signature /// ```java - /// public int java.util.ArrayList.indexOf(java.lang.Object) + /// public void java.util.ArrayList.addLast(E) /// ``` @JavaMethod - open func indexOf(_ arg0: JavaObject?) -> Int32 + open func addLast(_ arg0: E?) /// Java method `clear`. /// @@ -96,14 +78,14 @@ open class ArrayList: JavaObject { @JavaMethod open func clear() - /// Java method `lastIndexOf`. + /// Java method `contains`. /// /// ### Java method signature /// ```java - /// public int java.util.ArrayList.lastIndexOf(java.lang.Object) + /// public boolean java.util.ArrayList.contains(java.lang.Object) /// ``` @JavaMethod - open func lastIndexOf(_ arg0: JavaObject?) -> Int32 + open func contains(_ arg0: JavaObject?) -> Bool /// Java method `isEmpty`. /// @@ -114,210 +96,228 @@ open class ArrayList: JavaObject { @JavaMethod open func isEmpty() -> Bool - /// Java method `add`. + /// Java method `ensureCapacity`. /// /// ### Java method signature /// ```java - /// public boolean java.util.ArrayList.add(E) + /// public void java.util.ArrayList.ensureCapacity(int) /// ``` @JavaMethod - open func add(_ arg0: E?) -> Bool + open func ensureCapacity(_ arg0: Int32) - /// Java method `add`. + /// Java method `getFirst`. /// /// ### Java method signature /// ```java - /// public void java.util.ArrayList.add(int,E) + /// public E java.util.ArrayList.getFirst() /// ``` - @JavaMethod - open func add(_ arg0: Int32, _ arg1: E?) + @JavaMethod(typeErasedResult: "E!") + open func getFirst() -> E! - /// Java method `subList`. + /// Java method `get`. /// /// ### Java method signature /// ```java - /// public java.util.List java.util.ArrayList.subList(int,int) + /// public E java.util.ArrayList.get(int) /// ``` - @JavaMethod - open func subList(_ arg0: Int32, _ arg1: Int32) -> List! + @JavaMethod(typeErasedResult: "E!") + open func get(_ arg0: Int32) -> E! - /// Java method `toArray`. + /// Java method `indexOf`. /// /// ### Java method signature /// ```java - /// public T[] java.util.ArrayList.toArray(T[]) + /// public int java.util.ArrayList.indexOf(java.lang.Object) /// ``` @JavaMethod - open func toArray(_ arg0: [T?]) -> [T?] + open func indexOf(_ arg0: JavaObject?) -> Int32 - /// Java method `toArray`. + /// Java method `iterator`. /// /// ### Java method signature /// ```java - /// public java.lang.Object[] java.util.ArrayList.toArray() + /// public java.util.Iterator java.util.ArrayList.iterator() /// ``` @JavaMethod - open func toArray() -> [JavaObject?] + open func iterator() -> JavaIterator! - /// Java method `iterator`. + /// Java method `getLast`. /// /// ### Java method signature /// ```java - /// public java.util.Iterator java.util.ArrayList.iterator() + /// public E java.util.ArrayList.getLast() /// ``` - @JavaMethod - open func iterator() -> JavaIterator! + @JavaMethod(typeErasedResult: "E!") + open func getLast() -> E! - /// Java method `contains`. + /// Java method `lastIndexOf`. /// /// ### Java method signature /// ```java - /// public boolean java.util.ArrayList.contains(java.lang.Object) + /// public int java.util.ArrayList.lastIndexOf(java.lang.Object) /// ``` @JavaMethod - open func contains(_ arg0: JavaObject?) -> Bool + open func lastIndexOf(_ arg0: JavaObject?) -> Int32 - /// Java method `addAll`. + /// Java method `listIterator`. /// /// ### Java method signature /// ```java - /// public boolean java.util.ArrayList.addAll(java.util.Collection) + /// public java.util.ListIterator java.util.ArrayList.listIterator() /// ``` @JavaMethod - open func addAll(_ arg0: JavaCollection?) -> Bool + open func listIterator() -> ListIterator! - /// Java method `addAll`. + /// Java method `listIterator`. /// /// ### Java method signature /// ```java - /// public boolean java.util.ArrayList.addAll(int,java.util.Collection) + /// public java.util.ListIterator java.util.ArrayList.listIterator(int) /// ``` @JavaMethod - open func addAll(_ arg0: Int32, _ arg1: JavaCollection?) -> Bool + open func listIterator(_ arg0: Int32) -> ListIterator! - /// Java method `trimToSize`. + /// Java method `remove`. /// /// ### Java method signature /// ```java - /// public void java.util.ArrayList.trimToSize() + /// public E java.util.ArrayList.remove(int) /// ``` - @JavaMethod - open func trimToSize() + @JavaMethod(typeErasedResult: "E!") + open func remove(_ arg0: Int32) -> E! - /// Java method `set`. + /// Java method `remove`. /// /// ### Java method signature /// ```java - /// public E java.util.ArrayList.set(int,E) + /// public boolean java.util.ArrayList.remove(java.lang.Object) /// ``` - @JavaMethod(typeErasedResult: "E!") - open func set(_ arg0: Int32, _ arg1: E?) -> E! + @JavaMethod + open func remove(_ arg0: JavaObject?) -> Bool - /// Java method `ensureCapacity`. + /// Java method `removeAll`. /// /// ### Java method signature /// ```java - /// public void java.util.ArrayList.ensureCapacity(int) + /// public boolean java.util.ArrayList.removeAll(java.util.Collection) /// ``` @JavaMethod - open func ensureCapacity(_ arg0: Int32) + open func removeAll(_ arg0: JavaCollection?) -> Bool - /// Java method `getFirst`. + /// Java method `removeFirst`. /// /// ### Java method signature /// ```java - /// public E java.util.ArrayList.getFirst() + /// public E java.util.ArrayList.removeFirst() /// ``` @JavaMethod(typeErasedResult: "E!") - open func getFirst() -> E! + open func removeFirst() -> E! - /// Java method `getLast`. + /// Java method `removeLast`. /// /// ### Java method signature /// ```java - /// public E java.util.ArrayList.getLast() + /// public E java.util.ArrayList.removeLast() /// ``` @JavaMethod(typeErasedResult: "E!") - open func getLast() -> E! + open func removeLast() -> E! - /// Java method `addFirst`. + /// Java method `removeRange`. /// /// ### Java method signature /// ```java - /// public void java.util.ArrayList.addFirst(E) + /// protected void java.util.ArrayList.removeRange(int,int) /// ``` @JavaMethod - open func addFirst(_ arg0: E?) + open func removeRange(_ arg0: Int32, _ arg1: Int32) - /// Java method `addLast`. + /// Java method `retainAll`. /// /// ### Java method signature /// ```java - /// public void java.util.ArrayList.addLast(E) + /// public boolean java.util.ArrayList.retainAll(java.util.Collection) /// ``` @JavaMethod - open func addLast(_ arg0: E?) + open func retainAll(_ arg0: JavaCollection?) -> Bool - /// Java method `removeFirst`. + /// Java method `set`. /// /// ### Java method signature /// ```java - /// public E java.util.ArrayList.removeFirst() + /// public E java.util.ArrayList.set(int,E) /// ``` @JavaMethod(typeErasedResult: "E!") - open func removeFirst() -> E! + open func set(_ arg0: Int32, _ arg1: E?) -> E! - /// Java method `removeLast`. + /// Java method `size`. /// /// ### Java method signature /// ```java - /// public E java.util.ArrayList.removeLast() + /// public int java.util.ArrayList.size() /// ``` - @JavaMethod(typeErasedResult: "E!") - open func removeLast() -> E! + @JavaMethod + open func size() -> Int32 - /// Java method `removeRange`. + /// Java method `subList`. /// /// ### Java method signature /// ```java - /// protected void java.util.ArrayList.removeRange(int,int) + /// public java.util.List java.util.ArrayList.subList(int,int) /// ``` @JavaMethod - open func removeRange(_ arg0: Int32, _ arg1: Int32) + open func subList(_ arg0: Int32, _ arg1: Int32) -> List! - /// Java method `removeAll`. + /// Java method `toArray`. /// /// ### Java method signature /// ```java - /// public boolean java.util.ArrayList.removeAll(java.util.Collection) + /// public T[] java.util.ArrayList.toArray(T[]) /// ``` @JavaMethod - open func removeAll(_ arg0: JavaCollection?) -> Bool + open func toArray(_ arg0: [T?]) -> [T?] - /// Java method `retainAll`. + /// Java method `toArray`. /// /// ### Java method signature /// ```java - /// public boolean java.util.ArrayList.retainAll(java.util.Collection) + /// public java.lang.Object[] java.util.ArrayList.toArray() /// ``` @JavaMethod - open func retainAll(_ arg0: JavaCollection?) -> Bool + open func toArray() -> [JavaObject?] - /// Java method `listIterator`. + /// Java method `trimToSize`. /// /// ### Java method signature /// ```java - /// public java.util.ListIterator java.util.ArrayList.listIterator(int) + /// public void java.util.ArrayList.trimToSize() /// ``` @JavaMethod - open func listIterator(_ arg0: Int32) -> ListIterator! + open func trimToSize() - /// Java method `listIterator`. + /// Java method `clone`. /// /// ### Java method signature /// ```java - /// public java.util.ListIterator java.util.ArrayList.listIterator() + /// public java.lang.Object java.util.ArrayList.clone() /// ``` @JavaMethod - open func listIterator() -> ListIterator! + open override func clone() -> JavaObject! + + /// Java method `equals`. + /// + /// ### Java method signature + /// ```java + /// public boolean java.util.ArrayList.equals(java.lang.Object) + /// ``` + @JavaMethod + open override func equals(_ arg0: JavaObject?) -> Bool + + /// Java method `hashCode`. + /// + /// ### Java method signature + /// ```java + /// public int java.util.ArrayList.hashCode() + /// ``` + @JavaMethod + open override func hashCode() -> Int32 } diff --git a/Sources/JavaStdlib/JavaUtil/generated/BitSet.swift b/Sources/JavaStdlib/JavaUtil/generated/BitSet.swift index ae6fcb56b..f5f663f1d 100644 --- a/Sources/JavaStdlib/JavaUtil/generated/BitSet.swift +++ b/Sources/JavaStdlib/JavaUtil/generated/BitSet.swift @@ -2,85 +2,77 @@ import SwiftJava import SwiftJavaJNICore -@JavaClass("java.util.BitSet") -open class BitSet: JavaObject { - @JavaMethod - @_nonoverride public convenience init(_ arg0: Int32, environment: JNIEnvironment? = nil) - - @JavaMethod - @_nonoverride public convenience init(environment: JNIEnvironment? = nil) - - /// Java method `size`. +extension JavaClass { + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public int java.util.BitSet.size() + /// public static java.util.BitSet java.util.BitSet.valueOf(byte[]) /// ``` - @JavaMethod - open func size() -> Int32 + @JavaStaticMethod + public func valueOf(_ arg0: [Int8]) -> BitSet! - /// Java method `get`. + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public boolean java.util.BitSet.get(int) + /// public static java.util.BitSet java.util.BitSet.valueOf(java.nio.ByteBuffer) /// ``` - @JavaMethod - open func get(_ arg0: Int32) -> Bool + @JavaStaticMethod + public func valueOf(_ arg0: ByteBuffer?) -> BitSet! - /// Java method `get`. + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public java.util.BitSet java.util.BitSet.get(int,int) + /// public static java.util.BitSet java.util.BitSet.valueOf(long[]) /// ``` + @JavaStaticMethod + public func valueOf(_ arg0: [Int64]) -> BitSet! +} +@JavaClass("java.util.BitSet") +open class BitSet: JavaObject { @JavaMethod - open func get(_ arg0: Int32, _ arg1: Int32) -> BitSet! + @_nonoverride public convenience init(environment: JNIEnvironment? = nil) - /// Java method `equals`. - /// - /// ### Java method signature - /// ```java - /// public boolean java.util.BitSet.equals(java.lang.Object) - /// ``` @JavaMethod - open override func equals(_ arg0: JavaObject?) -> Bool + @_nonoverride public convenience init(_ arg0: Int32, environment: JNIEnvironment? = nil) - /// Java method `length`. + /// Java method `and`. /// /// ### Java method signature /// ```java - /// public int java.util.BitSet.length() + /// public void java.util.BitSet.and(java.util.BitSet) /// ``` @JavaMethod - open func length() -> Int32 + open func and(_ arg0: BitSet?) - /// Java method `toString`. + /// Java method `andNot`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.util.BitSet.toString() + /// public void java.util.BitSet.andNot(java.util.BitSet) /// ``` @JavaMethod - open override func toString() -> String + open func andNot(_ arg0: BitSet?) - /// Java method `hashCode`. + /// Java method `cardinality`. /// /// ### Java method signature /// ```java - /// public int java.util.BitSet.hashCode() + /// public int java.util.BitSet.cardinality() /// ``` @JavaMethod - open override func hashCode() -> Int32 + open func cardinality() -> Int32 - /// Java method `clone`. + /// Java method `clear`. /// /// ### Java method signature /// ```java - /// public java.lang.Object java.util.BitSet.clone() + /// public void java.util.BitSet.clear() /// ``` @JavaMethod - open override func clone() -> JavaObject! + open func clear() /// Java method `clear`. /// @@ -100,15 +92,6 @@ open class BitSet: JavaObject { @JavaMethod open func clear(_ arg0: Int32, _ arg1: Int32) - /// Java method `clear`. - /// - /// ### Java method signature - /// ```java - /// public void java.util.BitSet.clear() - /// ``` - @JavaMethod - open func clear() - /// Java method `isEmpty`. /// /// ### Java method signature @@ -118,77 +101,77 @@ open class BitSet: JavaObject { @JavaMethod open func isEmpty() -> Bool - /// Java method `set`. + /// Java method `flip`. /// /// ### Java method signature /// ```java - /// public void java.util.BitSet.set(int,int) + /// public void java.util.BitSet.flip(int) /// ``` @JavaMethod - open func set(_ arg0: Int32, _ arg1: Int32) + open func flip(_ arg0: Int32) - /// Java method `set`. + /// Java method `flip`. /// /// ### Java method signature /// ```java - /// public void java.util.BitSet.set(int,boolean) + /// public void java.util.BitSet.flip(int,int) /// ``` @JavaMethod - open func set(_ arg0: Int32, _ arg1: Bool) + open func flip(_ arg0: Int32, _ arg1: Int32) - /// Java method `set`. + /// Java method `get`. /// /// ### Java method signature /// ```java - /// public void java.util.BitSet.set(int) + /// public boolean java.util.BitSet.get(int) /// ``` @JavaMethod - open func set(_ arg0: Int32) + open func get(_ arg0: Int32) -> Bool - /// Java method `set`. + /// Java method `get`. /// /// ### Java method signature /// ```java - /// public void java.util.BitSet.set(int,int,boolean) + /// public java.util.BitSet java.util.BitSet.get(int,int) /// ``` @JavaMethod - open func set(_ arg0: Int32, _ arg1: Int32, _ arg2: Bool) + open func get(_ arg0: Int32, _ arg1: Int32) -> BitSet! - /// Java method `flip`. + /// Java method `intersects`. /// /// ### Java method signature /// ```java - /// public void java.util.BitSet.flip(int) + /// public boolean java.util.BitSet.intersects(java.util.BitSet) /// ``` @JavaMethod - open func flip(_ arg0: Int32) + open func intersects(_ arg0: BitSet?) -> Bool - /// Java method `flip`. + /// Java method `length`. /// /// ### Java method signature /// ```java - /// public void java.util.BitSet.flip(int,int) + /// public int java.util.BitSet.length() /// ``` @JavaMethod - open func flip(_ arg0: Int32, _ arg1: Int32) + open func length() -> Int32 - /// Java method `toByteArray`. + /// Java method `nextClearBit`. /// /// ### Java method signature /// ```java - /// public byte[] java.util.BitSet.toByteArray() + /// public int java.util.BitSet.nextClearBit(int) /// ``` @JavaMethod - open func toByteArray() -> [Int8] + open func nextClearBit(_ arg0: Int32) -> Int32 - /// Java method `nextClearBit`. + /// Java method `nextSetBit`. /// /// ### Java method signature /// ```java - /// public int java.util.BitSet.nextClearBit(int) + /// public int java.util.BitSet.nextSetBit(int) /// ``` @JavaMethod - open func nextClearBit(_ arg0: Int32) -> Int32 + open func nextSetBit(_ arg0: Int32) -> Int32 /// Java method `or`. /// @@ -199,112 +182,129 @@ open class BitSet: JavaObject { @JavaMethod open func or(_ arg0: BitSet?) - /// Java method `and`. + /// Java method `previousClearBit`. /// /// ### Java method signature /// ```java - /// public void java.util.BitSet.and(java.util.BitSet) + /// public int java.util.BitSet.previousClearBit(int) /// ``` @JavaMethod - open func and(_ arg0: BitSet?) + open func previousClearBit(_ arg0: Int32) -> Int32 - /// Java method `xor`. + /// Java method `previousSetBit`. /// /// ### Java method signature /// ```java - /// public void java.util.BitSet.xor(java.util.BitSet) + /// public int java.util.BitSet.previousSetBit(int) /// ``` @JavaMethod - open func xor(_ arg0: BitSet?) + open func previousSetBit(_ arg0: Int32) -> Int32 - /// Java method `andNot`. + /// Java method `set`. /// /// ### Java method signature /// ```java - /// public void java.util.BitSet.andNot(java.util.BitSet) + /// public void java.util.BitSet.set(int) /// ``` @JavaMethod - open func andNot(_ arg0: BitSet?) + open func set(_ arg0: Int32) - /// Java method `cardinality`. + /// Java method `set`. /// /// ### Java method signature /// ```java - /// public int java.util.BitSet.cardinality() + /// public void java.util.BitSet.set(int,boolean) /// ``` @JavaMethod - open func cardinality() -> Int32 + open func set(_ arg0: Int32, _ arg1: Bool) - /// Java method `nextSetBit`. + /// Java method `set`. /// /// ### Java method signature /// ```java - /// public int java.util.BitSet.nextSetBit(int) + /// public void java.util.BitSet.set(int,int) /// ``` @JavaMethod - open func nextSetBit(_ arg0: Int32) -> Int32 + open func set(_ arg0: Int32, _ arg1: Int32) - /// Java method `toLongArray`. + /// Java method `set`. /// /// ### Java method signature /// ```java - /// public long[] java.util.BitSet.toLongArray() + /// public void java.util.BitSet.set(int,int,boolean) /// ``` @JavaMethod - open func toLongArray() -> [Int64] + open func set(_ arg0: Int32, _ arg1: Int32, _ arg2: Bool) - /// Java method `previousSetBit`. + /// Java method `size`. /// /// ### Java method signature /// ```java - /// public int java.util.BitSet.previousSetBit(int) + /// public int java.util.BitSet.size() /// ``` @JavaMethod - open func previousSetBit(_ arg0: Int32) -> Int32 + open func size() -> Int32 - /// Java method `previousClearBit`. + /// Java method `toByteArray`. /// /// ### Java method signature /// ```java - /// public int java.util.BitSet.previousClearBit(int) + /// public byte[] java.util.BitSet.toByteArray() /// ``` @JavaMethod - open func previousClearBit(_ arg0: Int32) -> Int32 + open func toByteArray() -> [Int8] - /// Java method `intersects`. + /// Java method `toLongArray`. /// /// ### Java method signature /// ```java - /// public boolean java.util.BitSet.intersects(java.util.BitSet) + /// public long[] java.util.BitSet.toLongArray() /// ``` @JavaMethod - open func intersects(_ arg0: BitSet?) -> Bool -} -extension JavaClass { - /// Java method `valueOf`. + open func toLongArray() -> [Int64] + + /// Java method `xor`. /// /// ### Java method signature /// ```java - /// public static java.util.BitSet java.util.BitSet.valueOf(long[]) + /// public void java.util.BitSet.xor(java.util.BitSet) /// ``` - @JavaStaticMethod - public func valueOf(_ arg0: [Int64]) -> BitSet! + @JavaMethod + open func xor(_ arg0: BitSet?) - /// Java method `valueOf`. + /// Java method `clone`. /// /// ### Java method signature /// ```java - /// public static java.util.BitSet java.util.BitSet.valueOf(byte[]) + /// public java.lang.Object java.util.BitSet.clone() /// ``` - @JavaStaticMethod - public func valueOf(_ arg0: [Int8]) -> BitSet! + @JavaMethod + open override func clone() -> JavaObject! - /// Java method `valueOf`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public static java.util.BitSet java.util.BitSet.valueOf(java.nio.ByteBuffer) + /// public boolean java.util.BitSet.equals(java.lang.Object) /// ``` - @JavaStaticMethod - public func valueOf(_ arg0: ByteBuffer?) -> BitSet! + @JavaMethod + open override func equals(_ arg0: JavaObject?) -> Bool + + /// Java method `hashCode`. + /// + /// ### Java method signature + /// ```java + /// public int java.util.BitSet.hashCode() + /// ``` + @JavaMethod + open override func hashCode() -> Int32 + + /// Java method `toString`. + /// + /// ### Java method signature + /// ```java + /// public java.lang.String java.util.BitSet.toString() + /// ``` + @JavaMethod + open override func toString() -> String } diff --git a/Sources/JavaStdlib/JavaUtil/generated/HashMap.swift b/Sources/JavaStdlib/JavaUtil/generated/HashMap.swift index 467b55e96..8741b5f82 100644 --- a/Sources/JavaStdlib/JavaUtil/generated/HashMap.swift +++ b/Sources/JavaStdlib/JavaUtil/generated/HashMap.swift @@ -2,12 +2,25 @@ import SwiftJava import SwiftJavaJNICore -@JavaClass("java.util.HashMap") +extension JavaClass { + /// Java method `newHashMap`. + /// + /// ### Java method signature + /// ```java + /// public static java.util.HashMap java.util.HashMap.newHashMap(int) + /// ``` + @JavaStaticMethod + public func newHashMap(_ arg0: Int32) -> HashMap! where ObjectType == HashMap +} +@JavaClass("java.util.HashMap", implements: JavaMap.self) open class HashMap: JavaObject { public typealias K = HashMap_K public typealias V = HashMap_V + @JavaMethod + @_nonoverride public convenience init(environment: JNIEnvironment? = nil) + @JavaMethod @_nonoverride public convenience init(_ arg0: Int32, environment: JNIEnvironment? = nil) @@ -15,34 +28,43 @@ open class HashMap: JavaObje @_nonoverride public convenience init(_ arg0: Int32, _ arg1: Float, environment: JNIEnvironment? = nil) @JavaMethod - @_nonoverride public convenience init(environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(_ arg0: JavaMap?, environment: JNIEnvironment? = nil) - /// Java method `remove`. + /// Java method `clear`. /// /// ### Java method signature /// ```java - /// public V java.util.HashMap.remove(java.lang.Object) + /// public void java.util.HashMap.clear() /// ``` - @JavaMethod(typeErasedResult: "V!") - open func remove(_ arg0: JavaObject?) -> V! + @JavaMethod + open func clear() - /// Java method `remove`. + /// Java method `containsKey`. /// /// ### Java method signature /// ```java - /// public boolean java.util.HashMap.remove(java.lang.Object,java.lang.Object) + /// public boolean java.util.HashMap.containsKey(java.lang.Object) /// ``` @JavaMethod - open func remove(_ arg0: JavaObject?, _ arg1: JavaObject?) -> Bool + open func containsKey(_ arg0: JavaObject?) -> Bool - /// Java method `size`. + /// Java method `containsValue`. /// /// ### Java method signature /// ```java - /// public int java.util.HashMap.size() + /// public boolean java.util.HashMap.containsValue(java.lang.Object) /// ``` @JavaMethod - open func size() -> Int32 + open func containsValue(_ arg0: JavaObject?) -> Bool + + /// Java method `isEmpty`. + /// + /// ### Java method signature + /// ```java + /// public boolean java.util.HashMap.isEmpty() + /// ``` + @JavaMethod + open func isEmpty() -> Bool /// Java method `get`. /// @@ -53,121 +75,111 @@ open class HashMap: JavaObje @JavaMethod(typeErasedResult: "V!") open func get(_ arg0: JavaObject?) -> V! - /// Java method `put`. + /// Java method `keySet`. /// /// ### Java method signature /// ```java - /// public V java.util.HashMap.put(K,V) + /// public java.util.Set java.util.HashMap.keySet() /// ``` - @JavaMethod(typeErasedResult: "V!") - open func put(_ arg0: K?, _ arg1: V?) -> V! + @JavaMethod + open func keySet() -> JavaSet! - /// Java method `values`. + /// Java method `getOrDefault`. /// /// ### Java method signature /// ```java - /// public java.util.Collection java.util.HashMap.values() + /// public V java.util.HashMap.getOrDefault(java.lang.Object,V) /// ``` - @JavaMethod - open func values() -> JavaCollection! + @JavaMethod(typeErasedResult: "V!") + open func getOrDefault(_ arg0: JavaObject?, _ arg1: V?) -> V! - /// Java method `clone`. + /// Java method `put`. /// /// ### Java method signature /// ```java - /// public java.lang.Object java.util.HashMap.clone() + /// public V java.util.HashMap.put(K,V) /// ``` - @JavaMethod - open override func clone() -> JavaObject! + @JavaMethod(typeErasedResult: "V!") + open func put(_ arg0: K?, _ arg1: V?) -> V! - /// Java method `clear`. + /// Java method `putAll`. /// /// ### Java method signature /// ```java - /// public void java.util.HashMap.clear() + /// public void java.util.HashMap.putAll(java.util.Map) /// ``` @JavaMethod - open func clear() + open func putAll(_ arg0: JavaMap?) - /// Java method `isEmpty`. + /// Java method `putIfAbsent`. /// /// ### Java method signature /// ```java - /// public boolean java.util.HashMap.isEmpty() + /// public V java.util.HashMap.putIfAbsent(K,V) /// ``` - @JavaMethod - open func isEmpty() -> Bool + @JavaMethod(typeErasedResult: "V!") + open func putIfAbsent(_ arg0: K?, _ arg1: V?) -> V! - /// Java method `replace`. + /// Java method `remove`. /// /// ### Java method signature /// ```java - /// public V java.util.HashMap.replace(K,V) + /// public V java.util.HashMap.remove(java.lang.Object) /// ``` @JavaMethod(typeErasedResult: "V!") - open func replace(_ arg0: K?, _ arg1: V?) -> V! + open func remove(_ arg0: JavaObject?) -> V! - /// Java method `replace`. + /// Java method `remove`. /// /// ### Java method signature /// ```java - /// public boolean java.util.HashMap.replace(K,V,V) + /// public boolean java.util.HashMap.remove(java.lang.Object,java.lang.Object) /// ``` @JavaMethod - open func replace(_ arg0: K?, _ arg1: V?, _ arg2: V?) -> Bool + open func remove(_ arg0: JavaObject?, _ arg1: JavaObject?) -> Bool - /// Java method `putIfAbsent`. + /// Java method `replace`. /// /// ### Java method signature /// ```java - /// public V java.util.HashMap.putIfAbsent(K,V) + /// public V java.util.HashMap.replace(K,V) /// ``` @JavaMethod(typeErasedResult: "V!") - open func putIfAbsent(_ arg0: K?, _ arg1: V?) -> V! + open func replace(_ arg0: K?, _ arg1: V?) -> V! - /// Java method `keySet`. + /// Java method `replace`. /// /// ### Java method signature /// ```java - /// public java.util.Set java.util.HashMap.keySet() + /// public boolean java.util.HashMap.replace(K,V,V) /// ``` @JavaMethod - open func keySet() -> JavaSet! + open func replace(_ arg0: K?, _ arg1: V?, _ arg2: V?) -> Bool - /// Java method `containsValue`. + /// Java method `size`. /// /// ### Java method signature /// ```java - /// public boolean java.util.HashMap.containsValue(java.lang.Object) + /// public int java.util.HashMap.size() /// ``` @JavaMethod - open func containsValue(_ arg0: JavaObject?) -> Bool + open func size() -> Int32 - /// Java method `containsKey`. + /// Java method `values`. /// /// ### Java method signature /// ```java - /// public boolean java.util.HashMap.containsKey(java.lang.Object) + /// public java.util.Collection java.util.HashMap.values() /// ``` @JavaMethod - open func containsKey(_ arg0: JavaObject?) -> Bool + open func values() -> JavaCollection! - /// Java method `getOrDefault`. - /// - /// ### Java method signature - /// ```java - /// public V java.util.HashMap.getOrDefault(java.lang.Object,V) - /// ``` - @JavaMethod(typeErasedResult: "V!") - open func getOrDefault(_ arg0: JavaObject?, _ arg1: V?) -> V! -} -extension JavaClass { - /// Java method `newHashMap`. + /// Java method `clone`. /// /// ### Java method signature /// ```java - /// public static java.util.HashMap java.util.HashMap.newHashMap(int) + /// public java.lang.Object java.util.HashMap.clone() /// ``` - @JavaStaticMethod - public func newHashMap(_ arg0: Int32) -> HashMap! where ObjectType == HashMap + @JavaMethod + open override func clone() -> JavaObject! } diff --git a/Sources/JavaStdlib/JavaUtil/generated/HashSet.swift b/Sources/JavaStdlib/JavaUtil/generated/HashSet.swift index 3fa96dc11..7d0ebf4b7 100644 --- a/Sources/JavaStdlib/JavaUtil/generated/HashSet.swift +++ b/Sources/JavaStdlib/JavaUtil/generated/HashSet.swift @@ -2,10 +2,23 @@ import SwiftJava import SwiftJavaJNICore +extension JavaClass { + /// Java method `newHashSet`. + /// + /// ### Java method signature + /// ```java + /// public static java.util.HashSet java.util.HashSet.newHashSet(int) + /// ``` + @JavaStaticMethod + public func newHashSet(_ arg0: Int32) -> HashSet! where ObjectType == HashSet +} @JavaClass("java.util.HashSet", implements: JavaSet.self) open class HashSet: JavaObject { public typealias E = HashSet_E + @JavaMethod + @_nonoverride public convenience init(environment: JNIEnvironment? = nil) + @JavaMethod @_nonoverride public convenience init(_ arg0: Int32, environment: JNIEnvironment? = nil) @@ -15,62 +28,68 @@ open class HashSet: JavaObject { @JavaMethod @_nonoverride public convenience init(_ arg0: JavaCollection?, environment: JNIEnvironment? = nil) + /// Java method `add`. + /// + /// ### Java method signature + /// ```java + /// public boolean java.util.HashSet.add(E) + /// ``` @JavaMethod - @_nonoverride public convenience init(environment: JNIEnvironment? = nil) + open func add(_ arg0: E?) -> Bool - /// Java method `remove`. + /// Java method `clear`. /// /// ### Java method signature /// ```java - /// public boolean java.util.HashSet.remove(java.lang.Object) + /// public void java.util.HashSet.clear() /// ``` @JavaMethod - open func remove(_ arg0: JavaObject?) -> Bool + open func clear() - /// Java method `size`. + /// Java method `contains`. /// /// ### Java method signature /// ```java - /// public int java.util.HashSet.size() + /// public boolean java.util.HashSet.contains(java.lang.Object) /// ``` @JavaMethod - open func size() -> Int32 + open func contains(_ arg0: JavaObject?) -> Bool - /// Java method `clone`. + /// Java method `isEmpty`. /// /// ### Java method signature /// ```java - /// public java.lang.Object java.util.HashSet.clone() + /// public boolean java.util.HashSet.isEmpty() /// ``` @JavaMethod - open override func clone() -> JavaObject! + open func isEmpty() -> Bool - /// Java method `clear`. + /// Java method `iterator`. /// /// ### Java method signature /// ```java - /// public void java.util.HashSet.clear() + /// public java.util.Iterator java.util.HashSet.iterator() /// ``` @JavaMethod - open func clear() + open func iterator() -> JavaIterator! - /// Java method `isEmpty`. + /// Java method `remove`. /// /// ### Java method signature /// ```java - /// public boolean java.util.HashSet.isEmpty() + /// public boolean java.util.HashSet.remove(java.lang.Object) /// ``` @JavaMethod - open func isEmpty() -> Bool + open func remove(_ arg0: JavaObject?) -> Bool - /// Java method `add`. + /// Java method `size`. /// /// ### Java method signature /// ```java - /// public boolean java.util.HashSet.add(E) + /// public int java.util.HashSet.size() /// ``` @JavaMethod - open func add(_ arg0: E?) -> Bool + open func size() -> Int32 /// Java method `toArray`. /// @@ -90,31 +109,12 @@ open class HashSet: JavaObject { @JavaMethod open func toArray() -> [JavaObject?] - /// Java method `iterator`. - /// - /// ### Java method signature - /// ```java - /// public java.util.Iterator java.util.HashSet.iterator() - /// ``` - @JavaMethod - open func iterator() -> JavaIterator! - - /// Java method `contains`. + /// Java method `clone`. /// /// ### Java method signature /// ```java - /// public boolean java.util.HashSet.contains(java.lang.Object) + /// public java.lang.Object java.util.HashSet.clone() /// ``` @JavaMethod - open func contains(_ arg0: JavaObject?) -> Bool -} -extension JavaClass { - /// Java method `newHashSet`. - /// - /// ### Java method signature - /// ```java - /// public static java.util.HashSet java.util.HashSet.newHashSet(int) - /// ``` - @JavaStaticMethod - public func newHashSet(_ arg0: Int32) -> HashSet! where ObjectType == HashSet + open override func clone() -> JavaObject! } diff --git a/Sources/JavaStdlib/JavaUtil/generated/JavaDictionary.swift b/Sources/JavaStdlib/JavaUtil/generated/JavaDictionary.swift index eb918b8c2..e58a34b79 100644 --- a/Sources/JavaStdlib/JavaUtil/generated/JavaDictionary.swift +++ b/Sources/JavaStdlib/JavaUtil/generated/JavaDictionary.swift @@ -11,23 +11,23 @@ open class JavaDictionary java.util.Dictionary.elements() /// ``` - @JavaMethod(typeErasedResult: "V!") - open func remove(_ arg0: JavaObject?) -> V! + @JavaMethod + open func elements() -> Enumeration! - /// Java method `size`. + /// Java method `isEmpty`. /// /// ### Java method signature /// ```java - /// public abstract int java.util.Dictionary.size() + /// public abstract boolean java.util.Dictionary.isEmpty() /// ``` @JavaMethod - open func size() -> Int32 + open func isEmpty() -> Bool /// Java method `get`. /// @@ -38,39 +38,39 @@ open class JavaDictionary V! - /// Java method `put`. + /// Java method `keys`. /// /// ### Java method signature /// ```java - /// public abstract V java.util.Dictionary.put(K,V) + /// public abstract java.util.Enumeration java.util.Dictionary.keys() /// ``` - @JavaMethod(typeErasedResult: "V!") - open func put(_ arg0: K?, _ arg1: V?) -> V! + @JavaMethod + open func keys() -> Enumeration! - /// Java method `isEmpty`. + /// Java method `put`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.Dictionary.isEmpty() + /// public abstract V java.util.Dictionary.put(K,V) /// ``` - @JavaMethod - open func isEmpty() -> Bool + @JavaMethod(typeErasedResult: "V!") + open func put(_ arg0: K?, _ arg1: V?) -> V! - /// Java method `elements`. + /// Java method `remove`. /// /// ### Java method signature /// ```java - /// public abstract java.util.Enumeration java.util.Dictionary.elements() + /// public abstract V java.util.Dictionary.remove(java.lang.Object) /// ``` - @JavaMethod - open func elements() -> Enumeration! + @JavaMethod(typeErasedResult: "V!") + open func remove(_ arg0: JavaObject?) -> V! - /// Java method `keys`. + /// Java method `size`. /// /// ### Java method signature /// ```java - /// public abstract java.util.Enumeration java.util.Dictionary.keys() + /// public abstract int java.util.Dictionary.size() /// ``` @JavaMethod - open func keys() -> Enumeration! + open func size() -> Int32 } diff --git a/Sources/JavaStdlib/JavaUtil/generated/PriorityQueue.swift b/Sources/JavaStdlib/JavaUtil/generated/PriorityQueue.swift index eabeca49d..f48235848 100644 --- a/Sources/JavaStdlib/JavaUtil/generated/PriorityQueue.swift +++ b/Sources/JavaStdlib/JavaUtil/generated/PriorityQueue.swift @@ -7,34 +7,25 @@ open class PriorityQueue: JavaObject { public typealias E = PriorityQueue_E @JavaMethod - @_nonoverride public convenience init(_ arg0: PriorityQueue?, environment: JNIEnvironment? = nil) - - @JavaMethod - @_nonoverride public convenience init(_ arg0: JavaCollection?, environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(environment: JNIEnvironment? = nil) @JavaMethod @_nonoverride public convenience init(_ arg0: Int32, environment: JNIEnvironment? = nil) @JavaMethod - @_nonoverride public convenience init(environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(_ arg0: JavaCollection?, environment: JNIEnvironment? = nil) - /// Java method `remove`. - /// - /// ### Java method signature - /// ```java - /// public boolean java.util.PriorityQueue.remove(java.lang.Object) - /// ``` @JavaMethod - open func remove(_ arg0: JavaObject?) -> Bool + @_nonoverride public convenience init(_ arg0: PriorityQueue?, environment: JNIEnvironment? = nil) - /// Java method `size`. + /// Java method `add`. /// /// ### Java method signature /// ```java - /// public int java.util.PriorityQueue.size() + /// public boolean java.util.PriorityQueue.add(E) /// ``` @JavaMethod - open func size() -> Int32 + open func add(_ arg0: E?) -> Bool /// Java method `clear`. /// @@ -45,59 +36,59 @@ open class PriorityQueue: JavaObject { @JavaMethod open func clear() - /// Java method `add`. + /// Java method `contains`. /// /// ### Java method signature /// ```java - /// public boolean java.util.PriorityQueue.add(E) + /// public boolean java.util.PriorityQueue.contains(java.lang.Object) /// ``` @JavaMethod - open func add(_ arg0: E?) -> Bool + open func contains(_ arg0: JavaObject?) -> Bool - /// Java method `toArray`. + /// Java method `iterator`. /// /// ### Java method signature /// ```java - /// public T[] java.util.PriorityQueue.toArray(T[]) + /// public java.util.Iterator java.util.PriorityQueue.iterator() /// ``` @JavaMethod - open func toArray(_ arg0: [T?]) -> [T?] + open func iterator() -> JavaIterator! - /// Java method `toArray`. + /// Java method `offer`. /// /// ### Java method signature /// ```java - /// public java.lang.Object[] java.util.PriorityQueue.toArray() + /// public boolean java.util.PriorityQueue.offer(E) /// ``` @JavaMethod - open func toArray() -> [JavaObject?] + open func offer(_ arg0: E?) -> Bool - /// Java method `iterator`. + /// Java method `peek`. /// /// ### Java method signature /// ```java - /// public java.util.Iterator java.util.PriorityQueue.iterator() + /// public E java.util.PriorityQueue.peek() /// ``` - @JavaMethod - open func iterator() -> JavaIterator! + @JavaMethod(typeErasedResult: "E!") + open func peek() -> E! - /// Java method `contains`. + /// Java method `poll`. /// /// ### Java method signature /// ```java - /// public boolean java.util.PriorityQueue.contains(java.lang.Object) + /// public E java.util.PriorityQueue.poll() /// ``` - @JavaMethod - open func contains(_ arg0: JavaObject?) -> Bool + @JavaMethod(typeErasedResult: "E!") + open func poll() -> E! - /// Java method `peek`. + /// Java method `remove`. /// /// ### Java method signature /// ```java - /// public E java.util.PriorityQueue.peek() + /// public boolean java.util.PriorityQueue.remove(java.lang.Object) /// ``` - @JavaMethod(typeErasedResult: "E!") - open func peek() -> E! + @JavaMethod + open func remove(_ arg0: JavaObject?) -> Bool /// Java method `removeAll`. /// @@ -117,21 +108,30 @@ open class PriorityQueue: JavaObject { @JavaMethod open func retainAll(_ arg0: JavaCollection?) -> Bool - /// Java method `poll`. + /// Java method `size`. /// /// ### Java method signature /// ```java - /// public E java.util.PriorityQueue.poll() + /// public int java.util.PriorityQueue.size() /// ``` - @JavaMethod(typeErasedResult: "E!") - open func poll() -> E! + @JavaMethod + open func size() -> Int32 - /// Java method `offer`. + /// Java method `toArray`. /// /// ### Java method signature /// ```java - /// public boolean java.util.PriorityQueue.offer(E) + /// public T[] java.util.PriorityQueue.toArray(T[]) /// ``` @JavaMethod - open func offer(_ arg0: E?) -> Bool + open func toArray(_ arg0: [T?]) -> [T?] + + /// Java method `toArray`. + /// + /// ### Java method signature + /// ```java + /// public java.lang.Object[] java.util.PriorityQueue.toArray() + /// ``` + @JavaMethod + open func toArray() -> [JavaObject?] } diff --git a/Sources/JavaStdlib/JavaUtil/generated/Queue.swift b/Sources/JavaStdlib/JavaUtil/generated/Queue.swift index d1c139728..10827169b 100644 --- a/Sources/JavaStdlib/JavaUtil/generated/Queue.swift +++ b/Sources/JavaStdlib/JavaUtil/generated/Queue.swift @@ -6,183 +6,183 @@ import SwiftJavaJNICore public struct Queue { public typealias E = Queue_E - /// Java method `remove`. + /// Java method `add`. /// /// ### Java method signature /// ```java - /// public abstract E java.util.Queue.remove() + /// public abstract boolean java.util.Queue.add(E) /// ``` - @JavaMethod(typeErasedResult: "E!") - public func remove() -> E! + @JavaMethod + public func add(_ arg0: E?) -> Bool - /// Java method `add`. + /// Java method `addAll`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.Queue.add(E) + /// public abstract boolean java.util.Collection.addAll(java.util.Collection) /// ``` @JavaMethod - public func add(_ arg0: E?) -> Bool + public func addAll(_ arg0: JavaCollection?) -> Bool - /// Java method `peek`. + /// Java method `clear`. /// /// ### Java method signature /// ```java - /// public abstract E java.util.Queue.peek() + /// public abstract void java.util.Collection.clear() /// ``` - @JavaMethod(typeErasedResult: "E!") - public func peek() -> E! + @JavaMethod + public func clear() - /// Java method `element`. + /// Java method `contains`. /// /// ### Java method signature /// ```java - /// public abstract E java.util.Queue.element() + /// public abstract boolean java.util.Collection.contains(java.lang.Object) /// ``` - @JavaMethod(typeErasedResult: "E!") - public func element() -> E! + @JavaMethod + public func contains(_ arg0: JavaObject?) -> Bool - /// Java method `poll`. + /// Java method `containsAll`. /// /// ### Java method signature /// ```java - /// public abstract E java.util.Queue.poll() + /// public abstract boolean java.util.Collection.containsAll(java.util.Collection) /// ``` - @JavaMethod(typeErasedResult: "E!") - public func poll() -> E! + @JavaMethod + public func containsAll(_ arg0: JavaCollection?) -> Bool - /// Java method `offer`. + /// Java method `element`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.Queue.offer(E) + /// public abstract E java.util.Queue.element() /// ``` - @JavaMethod - public func offer(_ arg0: E?) -> Bool + @JavaMethod(typeErasedResult: "E!") + public func element() -> E! - /// Java method `remove`. + /// Java method `isEmpty`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.Collection.remove(java.lang.Object) + /// public abstract boolean java.util.Collection.isEmpty() /// ``` @JavaMethod - public func remove(_ arg0: JavaObject?) -> Bool + public func isEmpty() -> Bool - /// Java method `size`. + /// Java method `iterator`. /// /// ### Java method signature /// ```java - /// public abstract int java.util.Collection.size() + /// public abstract java.util.Iterator java.util.Collection.iterator() /// ``` @JavaMethod - public func size() -> Int32 + public func iterator() -> JavaIterator! - /// Java method `equals`. + /// Java method `offer`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.Collection.equals(java.lang.Object) + /// public abstract boolean java.util.Queue.offer(E) /// ``` @JavaMethod - public func equals(_ arg0: JavaObject?) -> Bool + public func offer(_ arg0: E?) -> Bool - /// Java method `hashCode`. + /// Java method `peek`. /// /// ### Java method signature /// ```java - /// public abstract int java.util.Collection.hashCode() + /// public abstract E java.util.Queue.peek() /// ``` - @JavaMethod - public func hashCode() -> Int32 + @JavaMethod(typeErasedResult: "E!") + public func peek() -> E! - /// Java method `clear`. + /// Java method `poll`. /// /// ### Java method signature /// ```java - /// public abstract void java.util.Collection.clear() + /// public abstract E java.util.Queue.poll() /// ``` - @JavaMethod - public func clear() + @JavaMethod(typeErasedResult: "E!") + public func poll() -> E! - /// Java method `isEmpty`. + /// Java method `remove`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.Collection.isEmpty() + /// public abstract E java.util.Queue.remove() /// ``` - @JavaMethod - public func isEmpty() -> Bool + @JavaMethod(typeErasedResult: "E!") + public func remove() -> E! - /// Java method `toArray`. + /// Java method `remove`. /// /// ### Java method signature /// ```java - /// public abstract T[] java.util.Collection.toArray(T[]) + /// public abstract boolean java.util.Collection.remove(java.lang.Object) /// ``` @JavaMethod - public func toArray(_ arg0: [T?]) -> [T?] + public func remove(_ arg0: JavaObject?) -> Bool - /// Java method `toArray`. + /// Java method `removeAll`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.Object[] java.util.Collection.toArray() + /// public abstract boolean java.util.Collection.removeAll(java.util.Collection) /// ``` @JavaMethod - public func toArray() -> [JavaObject?] + public func removeAll(_ arg0: JavaCollection?) -> Bool - /// Java method `iterator`. + /// Java method `retainAll`. /// /// ### Java method signature /// ```java - /// public abstract java.util.Iterator java.util.Collection.iterator() + /// public abstract boolean java.util.Collection.retainAll(java.util.Collection) /// ``` @JavaMethod - public func iterator() -> JavaIterator! + public func retainAll(_ arg0: JavaCollection?) -> Bool - /// Java method `contains`. + /// Java method `size`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.Collection.contains(java.lang.Object) + /// public abstract int java.util.Collection.size() /// ``` @JavaMethod - public func contains(_ arg0: JavaObject?) -> Bool + public func size() -> Int32 - /// Java method `addAll`. + /// Java method `toArray`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.Collection.addAll(java.util.Collection) + /// public abstract T[] java.util.Collection.toArray(T[]) /// ``` @JavaMethod - public func addAll(_ arg0: JavaCollection?) -> Bool + public func toArray(_ arg0: [T?]) -> [T?] - /// Java method `removeAll`. + /// Java method `toArray`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.Collection.removeAll(java.util.Collection) + /// public abstract java.lang.Object[] java.util.Collection.toArray() /// ``` @JavaMethod - public func removeAll(_ arg0: JavaCollection?) -> Bool + public func toArray() -> [JavaObject?] - /// Java method `retainAll`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.Collection.retainAll(java.util.Collection) + /// public abstract boolean java.util.Collection.equals(java.lang.Object) /// ``` @JavaMethod - public func retainAll(_ arg0: JavaCollection?) -> Bool + public func equals(_ arg0: JavaObject?) -> Bool - /// Java method `containsAll`. + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.Collection.containsAll(java.util.Collection) + /// public abstract int java.util.Collection.hashCode() /// ``` @JavaMethod - public func containsAll(_ arg0: JavaCollection?) -> Bool + public func hashCode() -> Int32 } diff --git a/Sources/JavaStdlib/JavaUtil/generated/Stack.swift b/Sources/JavaStdlib/JavaUtil/generated/Stack.swift index f8e3c4f26..8ab5d73b7 100644 --- a/Sources/JavaStdlib/JavaUtil/generated/Stack.swift +++ b/Sources/JavaStdlib/JavaUtil/generated/Stack.swift @@ -27,14 +27,14 @@ open class Stack: JavaObject { @JavaMethod(typeErasedResult: "E!") open func peek() -> E! - /// Java method `search`. + /// Java method `pop`. /// /// ### Java method signature /// ```java - /// public synchronized int java.util.Stack.search(java.lang.Object) + /// public synchronized E java.util.Stack.pop() /// ``` - @JavaMethod - open func search(_ arg0: JavaObject?) -> Int32 + @JavaMethod(typeErasedResult: "E!") + open func pop() -> E! /// Java method `push`. /// @@ -45,12 +45,12 @@ open class Stack: JavaObject { @JavaMethod(typeErasedResult: "E!") open func push(_ arg0: E?) -> E! - /// Java method `pop`. + /// Java method `search`. /// /// ### Java method signature /// ```java - /// public synchronized E java.util.Stack.pop() + /// public synchronized int java.util.Stack.search(java.lang.Object) /// ``` - @JavaMethod(typeErasedResult: "E!") - open func pop() -> E! + @JavaMethod + open func search(_ arg0: JavaObject?) -> Int32 } diff --git a/Sources/JavaStdlib/JavaUtil/generated/TreeMap.swift b/Sources/JavaStdlib/JavaUtil/generated/TreeMap.swift index 8176b43bc..617bf2b39 100644 --- a/Sources/JavaStdlib/JavaUtil/generated/TreeMap.swift +++ b/Sources/JavaStdlib/JavaUtil/generated/TreeMap.swift @@ -11,95 +11,80 @@ open class TreeMap: JavaObje @JavaMethod @_nonoverride public convenience init(environment: JNIEnvironment? = nil) - /// Java method `remove`. - /// - /// ### Java method signature - /// ```java - /// public V java.util.TreeMap.remove(java.lang.Object) - /// ``` - @JavaMethod(typeErasedResult: "V!") - open func remove(_ arg0: JavaObject?) -> V! - - /// Java method `size`. - /// - /// ### Java method signature - /// ```java - /// public int java.util.TreeMap.size() - /// ``` @JavaMethod - open func size() -> Int32 + @_nonoverride public convenience init(_ arg0: JavaMap?, environment: JNIEnvironment? = nil) - /// Java method `get`. + /// Java method `ceilingKey`. /// /// ### Java method signature /// ```java - /// public V java.util.TreeMap.get(java.lang.Object) + /// public K java.util.TreeMap.ceilingKey(K) /// ``` - @JavaMethod(typeErasedResult: "V!") - open func get(_ arg0: JavaObject?) -> V! + @JavaMethod(typeErasedResult: "K!") + open func ceilingKey(_ arg0: K?) -> K! - /// Java method `put`. + /// Java method `clear`. /// /// ### Java method signature /// ```java - /// public V java.util.TreeMap.put(K,V) + /// public void java.util.TreeMap.clear() /// ``` - @JavaMethod(typeErasedResult: "V!") - open func put(_ arg0: K?, _ arg1: V?) -> V! + @JavaMethod + open func clear() - /// Java method `values`. + /// Java method `containsKey`. /// /// ### Java method signature /// ```java - /// public java.util.Collection java.util.TreeMap.values() + /// public boolean java.util.TreeMap.containsKey(java.lang.Object) /// ``` @JavaMethod - open func values() -> JavaCollection! + open func containsKey(_ arg0: JavaObject?) -> Bool - /// Java method `clone`. + /// Java method `containsValue`. /// /// ### Java method signature /// ```java - /// public java.lang.Object java.util.TreeMap.clone() + /// public boolean java.util.TreeMap.containsValue(java.lang.Object) /// ``` @JavaMethod - open override func clone() -> JavaObject! + open func containsValue(_ arg0: JavaObject?) -> Bool - /// Java method `clear`. + /// Java method `firstKey`. /// /// ### Java method signature /// ```java - /// public void java.util.TreeMap.clear() + /// public K java.util.TreeMap.firstKey() /// ``` - @JavaMethod - open func clear() + @JavaMethod(typeErasedResult: "K!") + open func firstKey() -> K! - /// Java method `replace`. + /// Java method `floorKey`. /// /// ### Java method signature /// ```java - /// public boolean java.util.TreeMap.replace(K,V,V) + /// public K java.util.TreeMap.floorKey(K) /// ``` - @JavaMethod - open func replace(_ arg0: K?, _ arg1: V?, _ arg2: V?) -> Bool + @JavaMethod(typeErasedResult: "K!") + open func floorKey(_ arg0: K?) -> K! - /// Java method `replace`. + /// Java method `get`. /// /// ### Java method signature /// ```java - /// public V java.util.TreeMap.replace(K,V) + /// public V java.util.TreeMap.get(java.lang.Object) /// ``` @JavaMethod(typeErasedResult: "V!") - open func replace(_ arg0: K?, _ arg1: V?) -> V! + open func get(_ arg0: JavaObject?) -> V! - /// Java method `putIfAbsent`. + /// Java method `higherKey`. /// /// ### Java method signature /// ```java - /// public V java.util.TreeMap.putIfAbsent(K,V) + /// public K java.util.TreeMap.higherKey(K) /// ``` - @JavaMethod(typeErasedResult: "V!") - open func putIfAbsent(_ arg0: K?, _ arg1: V?) -> V! + @JavaMethod(typeErasedResult: "K!") + open func higherKey(_ arg0: K?) -> K! /// Java method `keySet`. /// @@ -110,32 +95,41 @@ open class TreeMap: JavaObje @JavaMethod open func keySet() -> JavaSet! - /// Java method `containsValue`. + /// Java method `lastKey`. /// /// ### Java method signature /// ```java - /// public boolean java.util.TreeMap.containsValue(java.lang.Object) + /// public K java.util.TreeMap.lastKey() /// ``` - @JavaMethod - open func containsValue(_ arg0: JavaObject?) -> Bool + @JavaMethod(typeErasedResult: "K!") + open func lastKey() -> K! - /// Java method `containsKey`. + /// Java method `lowerKey`. /// /// ### Java method signature /// ```java - /// public boolean java.util.TreeMap.containsKey(java.lang.Object) + /// public K java.util.TreeMap.lowerKey(K) /// ``` - @JavaMethod - open func containsKey(_ arg0: JavaObject?) -> Bool + @JavaMethod(typeErasedResult: "K!") + open func lowerKey(_ arg0: K?) -> K! - /// Java method `firstKey`. + /// Java method `put`. /// /// ### Java method signature /// ```java - /// public K java.util.TreeMap.firstKey() + /// public V java.util.TreeMap.put(K,V) /// ``` - @JavaMethod(typeErasedResult: "K!") - open func firstKey() -> K! + @JavaMethod(typeErasedResult: "V!") + open func put(_ arg0: K?, _ arg1: V?) -> V! + + /// Java method `putAll`. + /// + /// ### Java method signature + /// ```java + /// public void java.util.TreeMap.putAll(java.util.Map) + /// ``` + @JavaMethod + open func putAll(_ arg0: JavaMap?) /// Java method `putFirst`. /// @@ -146,6 +140,15 @@ open class TreeMap: JavaObje @JavaMethod(typeErasedResult: "V!") open func putFirst(_ arg0: K?, _ arg1: V?) -> V! + /// Java method `putIfAbsent`. + /// + /// ### Java method signature + /// ```java + /// public V java.util.TreeMap.putIfAbsent(K,V) + /// ``` + @JavaMethod(typeErasedResult: "V!") + open func putIfAbsent(_ arg0: K?, _ arg1: V?) -> V! + /// Java method `putLast`. /// /// ### Java method signature @@ -155,48 +158,57 @@ open class TreeMap: JavaObje @JavaMethod(typeErasedResult: "V!") open func putLast(_ arg0: K?, _ arg1: V?) -> V! - /// Java method `lowerKey`. + /// Java method `remove`. /// /// ### Java method signature /// ```java - /// public K java.util.TreeMap.lowerKey(K) + /// public V java.util.TreeMap.remove(java.lang.Object) /// ``` - @JavaMethod(typeErasedResult: "K!") - open func lowerKey(_ arg0: K?) -> K! + @JavaMethod(typeErasedResult: "V!") + open func remove(_ arg0: JavaObject?) -> V! - /// Java method `floorKey`. + /// Java method `replace`. /// /// ### Java method signature /// ```java - /// public K java.util.TreeMap.floorKey(K) + /// public V java.util.TreeMap.replace(K,V) /// ``` - @JavaMethod(typeErasedResult: "K!") - open func floorKey(_ arg0: K?) -> K! + @JavaMethod(typeErasedResult: "V!") + open func replace(_ arg0: K?, _ arg1: V?) -> V! - /// Java method `ceilingKey`. + /// Java method `replace`. /// /// ### Java method signature /// ```java - /// public K java.util.TreeMap.ceilingKey(K) + /// public boolean java.util.TreeMap.replace(K,V,V) /// ``` - @JavaMethod(typeErasedResult: "K!") - open func ceilingKey(_ arg0: K?) -> K! + @JavaMethod + open func replace(_ arg0: K?, _ arg1: V?, _ arg2: V?) -> Bool - /// Java method `higherKey`. + /// Java method `size`. /// /// ### Java method signature /// ```java - /// public K java.util.TreeMap.higherKey(K) + /// public int java.util.TreeMap.size() /// ``` - @JavaMethod(typeErasedResult: "K!") - open func higherKey(_ arg0: K?) -> K! + @JavaMethod + open func size() -> Int32 - /// Java method `lastKey`. + /// Java method `values`. /// /// ### Java method signature /// ```java - /// public K java.util.TreeMap.lastKey() + /// public java.util.Collection java.util.TreeMap.values() /// ``` - @JavaMethod(typeErasedResult: "K!") - open func lastKey() -> K! + @JavaMethod + open func values() -> JavaCollection! + + /// Java method `clone`. + /// + /// ### Java method signature + /// ```java + /// public java.lang.Object java.util.TreeMap.clone() + /// ``` + @JavaMethod + open override func clone() -> JavaObject! } diff --git a/Sources/JavaStdlib/JavaUtil/generated/TreeSet.swift b/Sources/JavaStdlib/JavaUtil/generated/TreeSet.swift index f45f1543d..509195805 100644 --- a/Sources/JavaStdlib/JavaUtil/generated/TreeSet.swift +++ b/Sources/JavaStdlib/JavaUtil/generated/TreeSet.swift @@ -7,136 +7,136 @@ open class TreeSet: JavaObject { public typealias E = TreeSet_E @JavaMethod - @_nonoverride public convenience init(_ arg0: JavaCollection?, environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(environment: JNIEnvironment? = nil) @JavaMethod - @_nonoverride public convenience init(environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(_ arg0: JavaCollection?, environment: JNIEnvironment? = nil) - /// Java method `remove`. + /// Java method `add`. /// /// ### Java method signature /// ```java - /// public boolean java.util.TreeSet.remove(java.lang.Object) + /// public boolean java.util.TreeSet.add(E) /// ``` @JavaMethod - open func remove(_ arg0: JavaObject?) -> Bool + open func add(_ arg0: E?) -> Bool - /// Java method `size`. + /// Java method `addAll`. /// /// ### Java method signature /// ```java - /// public int java.util.TreeSet.size() + /// public boolean java.util.TreeSet.addAll(java.util.Collection) /// ``` @JavaMethod - open func size() -> Int32 + open func addAll(_ arg0: JavaCollection?) -> Bool - /// Java method `clone`. + /// Java method `addFirst`. /// /// ### Java method signature /// ```java - /// public java.lang.Object java.util.TreeSet.clone() + /// public void java.util.TreeSet.addFirst(E) /// ``` @JavaMethod - open override func clone() -> JavaObject! + open func addFirst(_ arg0: E?) - /// Java method `floor`. + /// Java method `addLast`. /// /// ### Java method signature /// ```java - /// public E java.util.TreeSet.floor(E) + /// public void java.util.TreeSet.addLast(E) /// ``` - @JavaMethod(typeErasedResult: "E!") - open func floor(_ arg0: E?) -> E! + @JavaMethod + open func addLast(_ arg0: E?) - /// Java method `clear`. + /// Java method `ceiling`. /// /// ### Java method signature /// ```java - /// public void java.util.TreeSet.clear() + /// public E java.util.TreeSet.ceiling(E) /// ``` - @JavaMethod - open func clear() + @JavaMethod(typeErasedResult: "E!") + open func ceiling(_ arg0: E?) -> E! - /// Java method `isEmpty`. + /// Java method `clear`. /// /// ### Java method signature /// ```java - /// public boolean java.util.TreeSet.isEmpty() + /// public void java.util.TreeSet.clear() /// ``` @JavaMethod - open func isEmpty() -> Bool + open func clear() - /// Java method `add`. + /// Java method `contains`. /// /// ### Java method signature /// ```java - /// public boolean java.util.TreeSet.add(E) + /// public boolean java.util.TreeSet.contains(java.lang.Object) /// ``` @JavaMethod - open func add(_ arg0: E?) -> Bool + open func contains(_ arg0: JavaObject?) -> Bool - /// Java method `iterator`. + /// Java method `descendingIterator`. /// /// ### Java method signature /// ```java - /// public java.util.Iterator java.util.TreeSet.iterator() + /// public java.util.Iterator java.util.TreeSet.descendingIterator() /// ``` @JavaMethod - open func iterator() -> JavaIterator! + open func descendingIterator() -> JavaIterator! - /// Java method `contains`. + /// Java method `isEmpty`. /// /// ### Java method signature /// ```java - /// public boolean java.util.TreeSet.contains(java.lang.Object) + /// public boolean java.util.TreeSet.isEmpty() /// ``` @JavaMethod - open func contains(_ arg0: JavaObject?) -> Bool + open func isEmpty() -> Bool - /// Java method `last`. + /// Java method `first`. /// /// ### Java method signature /// ```java - /// public E java.util.TreeSet.last() + /// public E java.util.TreeSet.first() /// ``` @JavaMethod(typeErasedResult: "E!") - open func last() -> E! + open func first() -> E! - /// Java method `addAll`. + /// Java method `floor`. /// /// ### Java method signature /// ```java - /// public boolean java.util.TreeSet.addAll(java.util.Collection) + /// public E java.util.TreeSet.floor(E) /// ``` - @JavaMethod - open func addAll(_ arg0: JavaCollection?) -> Bool + @JavaMethod(typeErasedResult: "E!") + open func floor(_ arg0: E?) -> E! - /// Java method `first`. + /// Java method `higher`. /// /// ### Java method signature /// ```java - /// public E java.util.TreeSet.first() + /// public E java.util.TreeSet.higher(E) /// ``` @JavaMethod(typeErasedResult: "E!") - open func first() -> E! + open func higher(_ arg0: E?) -> E! - /// Java method `addFirst`. + /// Java method `iterator`. /// /// ### Java method signature /// ```java - /// public void java.util.TreeSet.addFirst(E) + /// public java.util.Iterator java.util.TreeSet.iterator() /// ``` @JavaMethod - open func addFirst(_ arg0: E?) + open func iterator() -> JavaIterator! - /// Java method `addLast`. + /// Java method `last`. /// /// ### Java method signature /// ```java - /// public void java.util.TreeSet.addLast(E) + /// public E java.util.TreeSet.last() /// ``` - @JavaMethod - open func addLast(_ arg0: E?) + @JavaMethod(typeErasedResult: "E!") + open func last() -> E! /// Java method `lower`. /// @@ -165,30 +165,30 @@ open class TreeSet: JavaObject { @JavaMethod(typeErasedResult: "E!") open func pollLast() -> E! - /// Java method `descendingIterator`. + /// Java method `remove`. /// /// ### Java method signature /// ```java - /// public java.util.Iterator java.util.TreeSet.descendingIterator() + /// public boolean java.util.TreeSet.remove(java.lang.Object) /// ``` @JavaMethod - open func descendingIterator() -> JavaIterator! + open func remove(_ arg0: JavaObject?) -> Bool - /// Java method `ceiling`. + /// Java method `size`. /// /// ### Java method signature /// ```java - /// public E java.util.TreeSet.ceiling(E) + /// public int java.util.TreeSet.size() /// ``` - @JavaMethod(typeErasedResult: "E!") - open func ceiling(_ arg0: E?) -> E! + @JavaMethod + open func size() -> Int32 - /// Java method `higher`. + /// Java method `clone`. /// /// ### Java method signature /// ```java - /// public E java.util.TreeSet.higher(E) + /// public java.lang.Object java.util.TreeSet.clone() /// ``` - @JavaMethod(typeErasedResult: "E!") - open func higher(_ arg0: E?) -> E! + @JavaMethod + open override func clone() -> JavaObject! } diff --git a/Sources/JavaStdlib/JavaUtilFunction/generated/JavaBiFunction.swift b/Sources/JavaStdlib/JavaUtilFunction/generated/JavaBiFunction.swift index 6e1604dd2..50c92bfb1 100644 --- a/Sources/JavaStdlib/JavaUtilFunction/generated/JavaBiFunction.swift +++ b/Sources/JavaStdlib/JavaUtilFunction/generated/JavaBiFunction.swift @@ -10,21 +10,21 @@ public struct JavaBiFunction java.util.function.BiFunction java.util.function.BiFunction.andThen(java.util.function.Function) /// ``` - @JavaMethod(typeErasedResult: "R!") - public func apply(_ arg0: T?, _ arg1: U?) -> R! + @JavaMethod + public func andThen(_ arg0: JavaFunction?) -> JavaBiFunction! - /// Java method `andThen`. + /// Java method `apply`. /// /// ### Java method signature /// ```java - /// public default java.util.function.BiFunction java.util.function.BiFunction.andThen(java.util.function.Function) + /// public abstract R java.util.function.BiFunction.apply(T,U) /// ``` - @JavaMethod - public func andThen(_ arg0: JavaFunction?) -> JavaBiFunction! + @JavaMethod(typeErasedResult: "R!") + public func apply(_ arg0: T?, _ arg1: U?) -> R! } diff --git a/Sources/JavaStdlib/JavaUtilFunction/generated/JavaBiPredicate.swift b/Sources/JavaStdlib/JavaUtilFunction/generated/JavaBiPredicate.swift index f4ddd3312..6bebcfe04 100644 --- a/Sources/JavaStdlib/JavaUtilFunction/generated/JavaBiPredicate.swift +++ b/Sources/JavaStdlib/JavaUtilFunction/generated/JavaBiPredicate.swift @@ -8,39 +8,39 @@ public struct JavaBiPredicate java.util.function.BiPredicate.and(java.util.function.BiPredicate) /// ``` @JavaMethod - public func test(_ arg0: T?, _ arg1: U?) -> Bool + public func and(_ arg0: JavaBiPredicate?) -> JavaBiPredicate! - /// Java method `or`. + /// Java method `negate`. /// /// ### Java method signature /// ```java - /// public default java.util.function.BiPredicate java.util.function.BiPredicate.or(java.util.function.BiPredicate) + /// public default java.util.function.BiPredicate java.util.function.BiPredicate.negate() /// ``` @JavaMethod - public func or(_ arg0: JavaBiPredicate?) -> JavaBiPredicate! + public func negate() -> JavaBiPredicate! - /// Java method `negate`. + /// Java method `or`. /// /// ### Java method signature /// ```java - /// public default java.util.function.BiPredicate java.util.function.BiPredicate.negate() + /// public default java.util.function.BiPredicate java.util.function.BiPredicate.or(java.util.function.BiPredicate) /// ``` @JavaMethod - public func negate() -> JavaBiPredicate! + public func or(_ arg0: JavaBiPredicate?) -> JavaBiPredicate! - /// Java method `and`. + /// Java method `test`. /// /// ### Java method signature /// ```java - /// public default java.util.function.BiPredicate java.util.function.BiPredicate.and(java.util.function.BiPredicate) + /// public abstract boolean java.util.function.BiPredicate.test(T,U) /// ``` @JavaMethod - public func and(_ arg0: JavaBiPredicate?) -> JavaBiPredicate! + public func test(_ arg0: T?, _ arg1: U?) -> Bool } diff --git a/Sources/JavaStdlib/JavaUtilFunction/generated/JavaBinaryOperator.swift b/Sources/JavaStdlib/JavaUtilFunction/generated/JavaBinaryOperator.swift index f11d68ddf..d46c655b7 100644 --- a/Sources/JavaStdlib/JavaUtilFunction/generated/JavaBinaryOperator.swift +++ b/Sources/JavaStdlib/JavaUtilFunction/generated/JavaBinaryOperator.swift @@ -6,21 +6,21 @@ import SwiftJavaJNICore public struct JavaBinaryOperator { public typealias T = JavaBinaryOperator_T - /// Java method `apply`. + /// Java method `andThen`. /// /// ### Java method signature /// ```java - /// public abstract R java.util.function.BiFunction.apply(T,U) + /// public default java.util.function.BiFunction java.util.function.BiFunction.andThen(java.util.function.Function) /// ``` - @JavaMethod(typeErasedResult: "T!") - public func apply(_ arg0: T?, _ arg1: T?) -> T! + @JavaMethod + public func andThen(_ arg0: JavaFunction?) -> JavaBiFunction! - /// Java method `andThen`. + /// Java method `apply`. /// /// ### Java method signature /// ```java - /// public default java.util.function.BiFunction java.util.function.BiFunction.andThen(java.util.function.Function) + /// public abstract R java.util.function.BiFunction.apply(T,U) /// ``` - @JavaMethod - public func andThen(_ arg0: JavaFunction?) -> JavaBiFunction! + @JavaMethod(typeErasedResult: "T!") + public func apply(_ arg0: T?, _ arg1: T?) -> T! } diff --git a/Sources/JavaStdlib/JavaUtilFunction/generated/JavaDoublePredicate.swift b/Sources/JavaStdlib/JavaUtilFunction/generated/JavaDoublePredicate.swift index 0fa7f0fc4..70df8e892 100644 --- a/Sources/JavaStdlib/JavaUtilFunction/generated/JavaDoublePredicate.swift +++ b/Sources/JavaStdlib/JavaUtilFunction/generated/JavaDoublePredicate.swift @@ -4,39 +4,39 @@ import SwiftJavaJNICore @JavaInterface("java.util.function.DoublePredicate") public struct JavaDoublePredicate { - /// Java method `test`. + /// Java method `and`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.function.DoublePredicate.test(double) + /// public default java.util.function.DoublePredicate java.util.function.DoublePredicate.and(java.util.function.DoublePredicate) /// ``` @JavaMethod - public func test(_ arg0: Double) -> Bool + public func and(_ arg0: JavaDoublePredicate?) -> JavaDoublePredicate! - /// Java method `or`. + /// Java method `negate`. /// /// ### Java method signature /// ```java - /// public default java.util.function.DoublePredicate java.util.function.DoublePredicate.or(java.util.function.DoublePredicate) + /// public default java.util.function.DoublePredicate java.util.function.DoublePredicate.negate() /// ``` @JavaMethod - public func or(_ arg0: JavaDoublePredicate?) -> JavaDoublePredicate! + public func negate() -> JavaDoublePredicate! - /// Java method `negate`. + /// Java method `or`. /// /// ### Java method signature /// ```java - /// public default java.util.function.DoublePredicate java.util.function.DoublePredicate.negate() + /// public default java.util.function.DoublePredicate java.util.function.DoublePredicate.or(java.util.function.DoublePredicate) /// ``` @JavaMethod - public func negate() -> JavaDoublePredicate! + public func or(_ arg0: JavaDoublePredicate?) -> JavaDoublePredicate! - /// Java method `and`. + /// Java method `test`. /// /// ### Java method signature /// ```java - /// public default java.util.function.DoublePredicate java.util.function.DoublePredicate.and(java.util.function.DoublePredicate) + /// public abstract boolean java.util.function.DoublePredicate.test(double) /// ``` @JavaMethod - public func and(_ arg0: JavaDoublePredicate?) -> JavaDoublePredicate! + public func test(_ arg0: Double) -> Bool } diff --git a/Sources/JavaStdlib/JavaUtilFunction/generated/JavaDoubleUnaryOperator.swift b/Sources/JavaStdlib/JavaUtilFunction/generated/JavaDoubleUnaryOperator.swift index 4f35ce34c..dd3b09e3b 100644 --- a/Sources/JavaStdlib/JavaUtilFunction/generated/JavaDoubleUnaryOperator.swift +++ b/Sources/JavaStdlib/JavaUtilFunction/generated/JavaDoubleUnaryOperator.swift @@ -2,42 +2,42 @@ import SwiftJava import SwiftJavaJNICore -@JavaInterface("java.util.function.DoubleUnaryOperator") -public struct JavaDoubleUnaryOperator { - /// Java method `applyAsDouble`. +extension JavaClass { + /// Java method `identity`. /// /// ### Java method signature /// ```java - /// public abstract double java.util.function.DoubleUnaryOperator.applyAsDouble(double) + /// public static java.util.function.DoubleUnaryOperator java.util.function.DoubleUnaryOperator.identity() /// ``` - @JavaMethod - public func applyAsDouble(_ arg0: Double) -> Double - - /// Java method `compose`. + @JavaStaticMethod + public func identity() -> JavaDoubleUnaryOperator! +} +@JavaInterface("java.util.function.DoubleUnaryOperator") +public struct JavaDoubleUnaryOperator { + /// Java method `andThen`. /// /// ### Java method signature /// ```java - /// public default java.util.function.DoubleUnaryOperator java.util.function.DoubleUnaryOperator.compose(java.util.function.DoubleUnaryOperator) + /// public default java.util.function.DoubleUnaryOperator java.util.function.DoubleUnaryOperator.andThen(java.util.function.DoubleUnaryOperator) /// ``` @JavaMethod - public func compose(_ arg0: JavaDoubleUnaryOperator?) -> JavaDoubleUnaryOperator! + public func andThen(_ arg0: JavaDoubleUnaryOperator?) -> JavaDoubleUnaryOperator! - /// Java method `andThen`. + /// Java method `applyAsDouble`. /// /// ### Java method signature /// ```java - /// public default java.util.function.DoubleUnaryOperator java.util.function.DoubleUnaryOperator.andThen(java.util.function.DoubleUnaryOperator) + /// public abstract double java.util.function.DoubleUnaryOperator.applyAsDouble(double) /// ``` @JavaMethod - public func andThen(_ arg0: JavaDoubleUnaryOperator?) -> JavaDoubleUnaryOperator! -} -extension JavaClass { - /// Java method `identity`. + public func applyAsDouble(_ arg0: Double) -> Double + + /// Java method `compose`. /// /// ### Java method signature /// ```java - /// public static java.util.function.DoubleUnaryOperator java.util.function.DoubleUnaryOperator.identity() + /// public default java.util.function.DoubleUnaryOperator java.util.function.DoubleUnaryOperator.compose(java.util.function.DoubleUnaryOperator) /// ``` - @JavaStaticMethod - public func identity() -> JavaDoubleUnaryOperator! + @JavaMethod + public func compose(_ arg0: JavaDoubleUnaryOperator?) -> JavaDoubleUnaryOperator! } diff --git a/Sources/JavaStdlib/JavaUtilFunction/generated/JavaFunction.swift b/Sources/JavaStdlib/JavaUtilFunction/generated/JavaFunction.swift index d93fa5aba..d573cd360 100644 --- a/Sources/JavaStdlib/JavaUtilFunction/generated/JavaFunction.swift +++ b/Sources/JavaStdlib/JavaUtilFunction/generated/JavaFunction.swift @@ -2,12 +2,31 @@ import SwiftJava import SwiftJavaJNICore +extension JavaClass { + /// Java method `identity`. + /// + /// ### Java method signature + /// ```java + /// public static java.util.function.Function java.util.function.Function.identity() + /// ``` + @JavaStaticMethod + public func identity() -> JavaFunction! where ObjectType == JavaFunction +} @JavaInterface("java.util.function.Function") public struct JavaFunction { public typealias T = JavaFunction_T public typealias R = JavaFunction_R + /// Java method `andThen`. + /// + /// ### Java method signature + /// ```java + /// public default java.util.function.Function java.util.function.Function.andThen(java.util.function.Function) + /// ``` + @JavaMethod + public func andThen(_ arg0: JavaFunction?) -> JavaFunction! + /// Java method `apply`. /// /// ### Java method signature @@ -25,23 +44,4 @@ public struct JavaFunction(_ arg0: JavaFunction?) -> JavaFunction! - - /// Java method `andThen`. - /// - /// ### Java method signature - /// ```java - /// public default java.util.function.Function java.util.function.Function.andThen(java.util.function.Function) - /// ``` - @JavaMethod - public func andThen(_ arg0: JavaFunction?) -> JavaFunction! -} -extension JavaClass { - /// Java method `identity`. - /// - /// ### Java method signature - /// ```java - /// public static java.util.function.Function java.util.function.Function.identity() - /// ``` - @JavaStaticMethod - public func identity() -> JavaFunction! where ObjectType == JavaFunction } diff --git a/Sources/JavaStdlib/JavaUtilFunction/generated/JavaIntPredicate.swift b/Sources/JavaStdlib/JavaUtilFunction/generated/JavaIntPredicate.swift index e3061a753..1db297833 100644 --- a/Sources/JavaStdlib/JavaUtilFunction/generated/JavaIntPredicate.swift +++ b/Sources/JavaStdlib/JavaUtilFunction/generated/JavaIntPredicate.swift @@ -4,39 +4,39 @@ import SwiftJavaJNICore @JavaInterface("java.util.function.IntPredicate") public struct JavaIntPredicate { - /// Java method `test`. + /// Java method `and`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.function.IntPredicate.test(int) + /// public default java.util.function.IntPredicate java.util.function.IntPredicate.and(java.util.function.IntPredicate) /// ``` @JavaMethod - public func test(_ arg0: Int32) -> Bool + public func and(_ arg0: JavaIntPredicate?) -> JavaIntPredicate! - /// Java method `or`. + /// Java method `negate`. /// /// ### Java method signature /// ```java - /// public default java.util.function.IntPredicate java.util.function.IntPredicate.or(java.util.function.IntPredicate) + /// public default java.util.function.IntPredicate java.util.function.IntPredicate.negate() /// ``` @JavaMethod - public func or(_ arg0: JavaIntPredicate?) -> JavaIntPredicate! + public func negate() -> JavaIntPredicate! - /// Java method `negate`. + /// Java method `or`. /// /// ### Java method signature /// ```java - /// public default java.util.function.IntPredicate java.util.function.IntPredicate.negate() + /// public default java.util.function.IntPredicate java.util.function.IntPredicate.or(java.util.function.IntPredicate) /// ``` @JavaMethod - public func negate() -> JavaIntPredicate! + public func or(_ arg0: JavaIntPredicate?) -> JavaIntPredicate! - /// Java method `and`. + /// Java method `test`. /// /// ### Java method signature /// ```java - /// public default java.util.function.IntPredicate java.util.function.IntPredicate.and(java.util.function.IntPredicate) + /// public abstract boolean java.util.function.IntPredicate.test(int) /// ``` @JavaMethod - public func and(_ arg0: JavaIntPredicate?) -> JavaIntPredicate! + public func test(_ arg0: Int32) -> Bool } diff --git a/Sources/JavaStdlib/JavaUtilFunction/generated/JavaIntUnaryOperator.swift b/Sources/JavaStdlib/JavaUtilFunction/generated/JavaIntUnaryOperator.swift index ac21b0fa2..5be2ee0b6 100644 --- a/Sources/JavaStdlib/JavaUtilFunction/generated/JavaIntUnaryOperator.swift +++ b/Sources/JavaStdlib/JavaUtilFunction/generated/JavaIntUnaryOperator.swift @@ -2,42 +2,42 @@ import SwiftJava import SwiftJavaJNICore -@JavaInterface("java.util.function.IntUnaryOperator") -public struct JavaIntUnaryOperator { - /// Java method `applyAsInt`. +extension JavaClass { + /// Java method `identity`. /// /// ### Java method signature /// ```java - /// public abstract int java.util.function.IntUnaryOperator.applyAsInt(int) + /// public static java.util.function.IntUnaryOperator java.util.function.IntUnaryOperator.identity() /// ``` - @JavaMethod - public func applyAsInt(_ arg0: Int32) -> Int32 - - /// Java method `compose`. + @JavaStaticMethod + public func identity() -> JavaIntUnaryOperator! +} +@JavaInterface("java.util.function.IntUnaryOperator") +public struct JavaIntUnaryOperator { + /// Java method `andThen`. /// /// ### Java method signature /// ```java - /// public default java.util.function.IntUnaryOperator java.util.function.IntUnaryOperator.compose(java.util.function.IntUnaryOperator) + /// public default java.util.function.IntUnaryOperator java.util.function.IntUnaryOperator.andThen(java.util.function.IntUnaryOperator) /// ``` @JavaMethod - public func compose(_ arg0: JavaIntUnaryOperator?) -> JavaIntUnaryOperator! + public func andThen(_ arg0: JavaIntUnaryOperator?) -> JavaIntUnaryOperator! - /// Java method `andThen`. + /// Java method `applyAsInt`. /// /// ### Java method signature /// ```java - /// public default java.util.function.IntUnaryOperator java.util.function.IntUnaryOperator.andThen(java.util.function.IntUnaryOperator) + /// public abstract int java.util.function.IntUnaryOperator.applyAsInt(int) /// ``` @JavaMethod - public func andThen(_ arg0: JavaIntUnaryOperator?) -> JavaIntUnaryOperator! -} -extension JavaClass { - /// Java method `identity`. + public func applyAsInt(_ arg0: Int32) -> Int32 + + /// Java method `compose`. /// /// ### Java method signature /// ```java - /// public static java.util.function.IntUnaryOperator java.util.function.IntUnaryOperator.identity() + /// public default java.util.function.IntUnaryOperator java.util.function.IntUnaryOperator.compose(java.util.function.IntUnaryOperator) /// ``` - @JavaStaticMethod - public func identity() -> JavaIntUnaryOperator! + @JavaMethod + public func compose(_ arg0: JavaIntUnaryOperator?) -> JavaIntUnaryOperator! } diff --git a/Sources/JavaStdlib/JavaUtilFunction/generated/JavaLongPredicate.swift b/Sources/JavaStdlib/JavaUtilFunction/generated/JavaLongPredicate.swift index b538e4552..e3e6b7d8a 100644 --- a/Sources/JavaStdlib/JavaUtilFunction/generated/JavaLongPredicate.swift +++ b/Sources/JavaStdlib/JavaUtilFunction/generated/JavaLongPredicate.swift @@ -4,39 +4,39 @@ import SwiftJavaJNICore @JavaInterface("java.util.function.LongPredicate") public struct JavaLongPredicate { - /// Java method `test`. + /// Java method `and`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.function.LongPredicate.test(long) + /// public default java.util.function.LongPredicate java.util.function.LongPredicate.and(java.util.function.LongPredicate) /// ``` @JavaMethod - public func test(_ arg0: Int64) -> Bool + public func and(_ arg0: JavaLongPredicate?) -> JavaLongPredicate! - /// Java method `or`. + /// Java method `negate`. /// /// ### Java method signature /// ```java - /// public default java.util.function.LongPredicate java.util.function.LongPredicate.or(java.util.function.LongPredicate) + /// public default java.util.function.LongPredicate java.util.function.LongPredicate.negate() /// ``` @JavaMethod - public func or(_ arg0: JavaLongPredicate?) -> JavaLongPredicate! + public func negate() -> JavaLongPredicate! - /// Java method `negate`. + /// Java method `or`. /// /// ### Java method signature /// ```java - /// public default java.util.function.LongPredicate java.util.function.LongPredicate.negate() + /// public default java.util.function.LongPredicate java.util.function.LongPredicate.or(java.util.function.LongPredicate) /// ``` @JavaMethod - public func negate() -> JavaLongPredicate! + public func or(_ arg0: JavaLongPredicate?) -> JavaLongPredicate! - /// Java method `and`. + /// Java method `test`. /// /// ### Java method signature /// ```java - /// public default java.util.function.LongPredicate java.util.function.LongPredicate.and(java.util.function.LongPredicate) + /// public abstract boolean java.util.function.LongPredicate.test(long) /// ``` @JavaMethod - public func and(_ arg0: JavaLongPredicate?) -> JavaLongPredicate! + public func test(_ arg0: Int64) -> Bool } diff --git a/Sources/JavaStdlib/JavaUtilFunction/generated/JavaLongUnaryOperator.swift b/Sources/JavaStdlib/JavaUtilFunction/generated/JavaLongUnaryOperator.swift index 12ea3749e..af1ff91c6 100644 --- a/Sources/JavaStdlib/JavaUtilFunction/generated/JavaLongUnaryOperator.swift +++ b/Sources/JavaStdlib/JavaUtilFunction/generated/JavaLongUnaryOperator.swift @@ -2,42 +2,42 @@ import SwiftJava import SwiftJavaJNICore -@JavaInterface("java.util.function.LongUnaryOperator") -public struct JavaLongUnaryOperator { - /// Java method `applyAsLong`. +extension JavaClass { + /// Java method `identity`. /// /// ### Java method signature /// ```java - /// public abstract long java.util.function.LongUnaryOperator.applyAsLong(long) + /// public static java.util.function.LongUnaryOperator java.util.function.LongUnaryOperator.identity() /// ``` - @JavaMethod - public func applyAsLong(_ arg0: Int64) -> Int64 - - /// Java method `compose`. + @JavaStaticMethod + public func identity() -> JavaLongUnaryOperator! +} +@JavaInterface("java.util.function.LongUnaryOperator") +public struct JavaLongUnaryOperator { + /// Java method `andThen`. /// /// ### Java method signature /// ```java - /// public default java.util.function.LongUnaryOperator java.util.function.LongUnaryOperator.compose(java.util.function.LongUnaryOperator) + /// public default java.util.function.LongUnaryOperator java.util.function.LongUnaryOperator.andThen(java.util.function.LongUnaryOperator) /// ``` @JavaMethod - public func compose(_ arg0: JavaLongUnaryOperator?) -> JavaLongUnaryOperator! + public func andThen(_ arg0: JavaLongUnaryOperator?) -> JavaLongUnaryOperator! - /// Java method `andThen`. + /// Java method `applyAsLong`. /// /// ### Java method signature /// ```java - /// public default java.util.function.LongUnaryOperator java.util.function.LongUnaryOperator.andThen(java.util.function.LongUnaryOperator) + /// public abstract long java.util.function.LongUnaryOperator.applyAsLong(long) /// ``` @JavaMethod - public func andThen(_ arg0: JavaLongUnaryOperator?) -> JavaLongUnaryOperator! -} -extension JavaClass { - /// Java method `identity`. + public func applyAsLong(_ arg0: Int64) -> Int64 + + /// Java method `compose`. /// /// ### Java method signature /// ```java - /// public static java.util.function.LongUnaryOperator java.util.function.LongUnaryOperator.identity() + /// public default java.util.function.LongUnaryOperator java.util.function.LongUnaryOperator.compose(java.util.function.LongUnaryOperator) /// ``` - @JavaStaticMethod - public func identity() -> JavaLongUnaryOperator! + @JavaMethod + public func compose(_ arg0: JavaLongUnaryOperator?) -> JavaLongUnaryOperator! } diff --git a/Sources/JavaStdlib/JavaUtilFunction/generated/JavaPredicate.swift b/Sources/JavaStdlib/JavaUtilFunction/generated/JavaPredicate.swift index c0c688f25..3dfcdbbd6 100644 --- a/Sources/JavaStdlib/JavaUtilFunction/generated/JavaPredicate.swift +++ b/Sources/JavaStdlib/JavaUtilFunction/generated/JavaPredicate.swift @@ -2,27 +2,37 @@ import SwiftJava import SwiftJavaJNICore -@JavaInterface("java.util.function.Predicate") -public struct JavaPredicate { - public typealias T = JavaPredicate_T +extension JavaClass { + /// Java method `isEqual`. + /// + /// ### Java method signature + /// ```java + /// public static java.util.function.Predicate java.util.function.Predicate.isEqual(java.lang.Object) + /// ``` + @JavaStaticMethod + public func isEqual(_ arg0: JavaObject?) -> JavaPredicate! where ObjectType == JavaPredicate - /// Java method `test`. + /// Java method `not`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.function.Predicate.test(T) + /// public static java.util.function.Predicate java.util.function.Predicate.not(java.util.function.Predicate) /// ``` - @JavaMethod - public func test(_ arg0: T?) -> Bool + @JavaStaticMethod + public func not(_ arg0: JavaPredicate?) -> JavaPredicate! where ObjectType == JavaPredicate +} +@JavaInterface("java.util.function.Predicate") +public struct JavaPredicate { + public typealias T = JavaPredicate_T - /// Java method `or`. + /// Java method `and`. /// /// ### Java method signature /// ```java - /// public default java.util.function.Predicate java.util.function.Predicate.or(java.util.function.Predicate) + /// public default java.util.function.Predicate java.util.function.Predicate.and(java.util.function.Predicate) /// ``` @JavaMethod - public func or(_ arg0: JavaPredicate?) -> JavaPredicate! + public func and(_ arg0: JavaPredicate?) -> JavaPredicate! /// Java method `negate`. /// @@ -33,31 +43,21 @@ public struct JavaPredicate { @JavaMethod public func negate() -> JavaPredicate! - /// Java method `and`. + /// Java method `or`. /// /// ### Java method signature /// ```java - /// public default java.util.function.Predicate java.util.function.Predicate.and(java.util.function.Predicate) + /// public default java.util.function.Predicate java.util.function.Predicate.or(java.util.function.Predicate) /// ``` @JavaMethod - public func and(_ arg0: JavaPredicate?) -> JavaPredicate! -} -extension JavaClass { - /// Java method `isEqual`. - /// - /// ### Java method signature - /// ```java - /// public static java.util.function.Predicate java.util.function.Predicate.isEqual(java.lang.Object) - /// ``` - @JavaStaticMethod - public func isEqual(_ arg0: JavaObject?) -> JavaPredicate! where ObjectType == JavaPredicate + public func or(_ arg0: JavaPredicate?) -> JavaPredicate! - /// Java method `not`. + /// Java method `test`. /// /// ### Java method signature /// ```java - /// public static java.util.function.Predicate java.util.function.Predicate.not(java.util.function.Predicate) + /// public abstract boolean java.util.function.Predicate.test(T) /// ``` - @JavaStaticMethod - public func not(_ arg0: JavaPredicate?) -> JavaPredicate! where ObjectType == JavaPredicate + @JavaMethod + public func test(_ arg0: T?) -> Bool } diff --git a/Sources/JavaStdlib/JavaUtilFunction/generated/JavaUnaryOperator.swift b/Sources/JavaStdlib/JavaUtilFunction/generated/JavaUnaryOperator.swift index 63133f6e7..17a4298d6 100644 --- a/Sources/JavaStdlib/JavaUtilFunction/generated/JavaUnaryOperator.swift +++ b/Sources/JavaStdlib/JavaUtilFunction/generated/JavaUnaryOperator.swift @@ -2,10 +2,29 @@ import SwiftJava import SwiftJavaJNICore +extension JavaClass { + /// Java method `identity`. + /// + /// ### Java method signature + /// ```java + /// public static java.util.function.UnaryOperator java.util.function.UnaryOperator.identity() + /// ``` + @JavaStaticMethod + public func identity() -> JavaUnaryOperator! where ObjectType == JavaUnaryOperator +} @JavaInterface("java.util.function.UnaryOperator", extends: JavaFunction.self) public struct JavaUnaryOperator { public typealias T = JavaUnaryOperator_T + /// Java method `andThen`. + /// + /// ### Java method signature + /// ```java + /// public default java.util.function.Function java.util.function.Function.andThen(java.util.function.Function) + /// ``` + @JavaMethod + public func andThen(_ arg0: JavaFunction?) -> JavaFunction! + /// Java method `apply`. /// /// ### Java method signature @@ -23,23 +42,4 @@ public struct JavaUnaryOperator { /// ``` @JavaMethod public func compose(_ arg0: JavaFunction?) -> JavaFunction! - - /// Java method `andThen`. - /// - /// ### Java method signature - /// ```java - /// public default java.util.function.Function java.util.function.Function.andThen(java.util.function.Function) - /// ``` - @JavaMethod - public func andThen(_ arg0: JavaFunction?) -> JavaFunction! -} -extension JavaClass { - /// Java method `identity`. - /// - /// ### Java method signature - /// ```java - /// public static java.util.function.UnaryOperator java.util.function.UnaryOperator.identity() - /// ``` - @JavaStaticMethod - public func identity() -> JavaUnaryOperator! where ObjectType == JavaUnaryOperator } diff --git a/Sources/JavaStdlib/JavaUtilJar/generated/Attributes.swift b/Sources/JavaStdlib/JavaUtilJar/generated/Attributes.swift index bb2689346..3e8b07b0a 100644 --- a/Sources/JavaStdlib/JavaUtilJar/generated/Attributes.swift +++ b/Sources/JavaStdlib/JavaUtilJar/generated/Attributes.swift @@ -2,34 +2,52 @@ import SwiftJava import SwiftJavaJNICore -@JavaClass("java.util.jar.Attributes") +@JavaClass("java.util.jar.Attributes", implements: JavaMap.self) open class Attributes: JavaObject { @JavaMethod - @_nonoverride public convenience init(_ arg0: Attributes?, environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(environment: JNIEnvironment? = nil) @JavaMethod @_nonoverride public convenience init(_ arg0: Int32, environment: JNIEnvironment? = nil) @JavaMethod - @_nonoverride public convenience init(environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(_ arg0: Attributes?, environment: JNIEnvironment? = nil) - /// Java method `remove`. + /// Java method `clear`. /// /// ### Java method signature /// ```java - /// public java.lang.Object java.util.jar.Attributes.remove(java.lang.Object) + /// public void java.util.jar.Attributes.clear() /// ``` @JavaMethod - open func remove(_ arg0: JavaObject?) -> JavaObject! + open func clear() - /// Java method `size`. + /// Java method `containsKey`. /// /// ### Java method signature /// ```java - /// public int java.util.jar.Attributes.size() + /// public boolean java.util.jar.Attributes.containsKey(java.lang.Object) /// ``` @JavaMethod - open func size() -> Int32 + open func containsKey(_ arg0: JavaObject?) -> Bool + + /// Java method `containsValue`. + /// + /// ### Java method signature + /// ```java + /// public boolean java.util.jar.Attributes.containsValue(java.lang.Object) + /// ``` + @JavaMethod + open func containsValue(_ arg0: JavaObject?) -> Bool + + /// Java method `isEmpty`. + /// + /// ### Java method signature + /// ```java + /// public boolean java.util.jar.Attributes.isEmpty() + /// ``` + @JavaMethod + open func isEmpty() -> Bool /// Java method `get`. /// @@ -40,59 +58,59 @@ open class Attributes: JavaObject { @JavaMethod open func get(_ arg0: JavaObject?) -> JavaObject! - /// Java method `put`. + /// Java method `keySet`. /// /// ### Java method signature /// ```java - /// public java.lang.Object java.util.jar.Attributes.put(java.lang.Object,java.lang.Object) + /// public java.util.Set java.util.jar.Attributes.keySet() /// ``` @JavaMethod - open func put(_ arg0: JavaObject?, _ arg1: JavaObject?) -> JavaObject! + open func keySet() -> JavaSet! - /// Java method `equals`. + /// Java method `put`. /// /// ### Java method signature /// ```java - /// public boolean java.util.jar.Attributes.equals(java.lang.Object) + /// public java.lang.Object java.util.jar.Attributes.put(java.lang.Object,java.lang.Object) /// ``` @JavaMethod - open override func equals(_ arg0: JavaObject?) -> Bool + open func put(_ arg0: JavaObject?, _ arg1: JavaObject?) -> JavaObject! - /// Java method `values`. + /// Java method `putAll`. /// /// ### Java method signature /// ```java - /// public java.util.Collection java.util.jar.Attributes.values() + /// public void java.util.jar.Attributes.putAll(java.util.Map) /// ``` @JavaMethod - open func values() -> JavaCollection! + open func putAll(_ arg0: JavaMap?) - /// Java method `hashCode`. + /// Java method `putValue`. /// /// ### Java method signature /// ```java - /// public int java.util.jar.Attributes.hashCode() + /// public java.lang.String java.util.jar.Attributes.putValue(java.lang.String,java.lang.String) /// ``` @JavaMethod - open override func hashCode() -> Int32 + open func putValue(_ arg0: String, _ arg1: String) -> String - /// Java method `clone`. + /// Java method `remove`. /// /// ### Java method signature /// ```java - /// public java.lang.Object java.util.jar.Attributes.clone() + /// public java.lang.Object java.util.jar.Attributes.remove(java.lang.Object) /// ``` @JavaMethod - open override func clone() -> JavaObject! + open func remove(_ arg0: JavaObject?) -> JavaObject! - /// Java method `clear`. + /// Java method `size`. /// /// ### Java method signature /// ```java - /// public void java.util.jar.Attributes.clear() + /// public int java.util.jar.Attributes.size() /// ``` @JavaMethod - open func clear() + open func size() -> Int32 /// Java method `getValue`. /// @@ -112,140 +130,131 @@ open class Attributes: JavaObject { @JavaMethod open func getValue(_ arg0: Attributes.Name?) -> String - /// Java method `isEmpty`. - /// - /// ### Java method signature - /// ```java - /// public boolean java.util.jar.Attributes.isEmpty() - /// ``` - @JavaMethod - open func isEmpty() -> Bool - - /// Java method `keySet`. + /// Java method `values`. /// /// ### Java method signature /// ```java - /// public java.util.Set java.util.jar.Attributes.keySet() + /// public java.util.Collection java.util.jar.Attributes.values() /// ``` @JavaMethod - open func keySet() -> JavaSet! + open func values() -> JavaCollection! - /// Java method `containsValue`. + /// Java method `clone`. /// /// ### Java method signature /// ```java - /// public boolean java.util.jar.Attributes.containsValue(java.lang.Object) + /// public java.lang.Object java.util.jar.Attributes.clone() /// ``` @JavaMethod - open func containsValue(_ arg0: JavaObject?) -> Bool + open override func clone() -> JavaObject! - /// Java method `containsKey`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public boolean java.util.jar.Attributes.containsKey(java.lang.Object) + /// public boolean java.util.jar.Attributes.equals(java.lang.Object) /// ``` @JavaMethod - open func containsKey(_ arg0: JavaObject?) -> Bool + open override func equals(_ arg0: JavaObject?) -> Bool - /// Java method `putValue`. + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.util.jar.Attributes.putValue(java.lang.String,java.lang.String) + /// public int java.util.jar.Attributes.hashCode() /// ``` @JavaMethod - open func putValue(_ arg0: String, _ arg1: String) -> String -} -extension Attributes { - @JavaClass("java.util.jar.Attributes$Name") - open class Name: JavaObject { - @JavaMethod - @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) - - /// Java method `equals`. - /// - /// ### Java method signature - /// ```java - /// public boolean java.util.jar.Attributes$Name.equals(java.lang.Object) - /// ``` - @JavaMethod - open override func equals(_ arg0: JavaObject?) -> Bool - - /// Java method `toString`. - /// - /// ### Java method signature - /// ```java - /// public java.lang.String java.util.jar.Attributes$Name.toString() - /// ``` - @JavaMethod - open override func toString() -> String - - /// Java method `hashCode`. - /// - /// ### Java method signature - /// ```java - /// public int java.util.jar.Attributes$Name.hashCode() - /// ``` - @JavaMethod - open override func hashCode() -> Int32 - } + open override func hashCode() -> Int32 } extension JavaClass { @JavaStaticField(isFinal: true) - public var MANIFEST_VERSION: Attributes.Name! + public var CLASS_PATH: Attributes.Name! @JavaStaticField(isFinal: true) - public var SIGNATURE_VERSION: Attributes.Name! + public var CONTENT_TYPE: Attributes.Name! + @available(*, deprecated) @JavaStaticField(isFinal: true) - public var CONTENT_TYPE: Attributes.Name! + public var EXTENSION_INSTALLATION: Attributes.Name! @JavaStaticField(isFinal: true) - public var CLASS_PATH: Attributes.Name! + public var EXTENSION_LIST: Attributes.Name! @JavaStaticField(isFinal: true) - public var MAIN_CLASS: Attributes.Name! + public var EXTENSION_NAME: Attributes.Name! @JavaStaticField(isFinal: true) - public var SEALED: Attributes.Name! + public var IMPLEMENTATION_TITLE: Attributes.Name! + @available(*, deprecated) @JavaStaticField(isFinal: true) - public var EXTENSION_LIST: Attributes.Name! + public var IMPLEMENTATION_URL: Attributes.Name! @JavaStaticField(isFinal: true) - public var EXTENSION_NAME: Attributes.Name! + public var IMPLEMENTATION_VENDOR: Attributes.Name! @available(*, deprecated) @JavaStaticField(isFinal: true) - public var EXTENSION_INSTALLATION: Attributes.Name! + public var IMPLEMENTATION_VENDOR_ID: Attributes.Name! @JavaStaticField(isFinal: true) - public var IMPLEMENTATION_TITLE: Attributes.Name! + public var IMPLEMENTATION_VERSION: Attributes.Name! @JavaStaticField(isFinal: true) - public var IMPLEMENTATION_VERSION: Attributes.Name! + public var MAIN_CLASS: Attributes.Name! @JavaStaticField(isFinal: true) - public var IMPLEMENTATION_VENDOR: Attributes.Name! + public var MANIFEST_VERSION: Attributes.Name! - @available(*, deprecated) @JavaStaticField(isFinal: true) - public var IMPLEMENTATION_VENDOR_ID: Attributes.Name! + public var MULTI_RELEASE: Attributes.Name! - @available(*, deprecated) @JavaStaticField(isFinal: true) - public var IMPLEMENTATION_URL: Attributes.Name! + public var SEALED: Attributes.Name! @JavaStaticField(isFinal: true) - public var SPECIFICATION_TITLE: Attributes.Name! + public var SIGNATURE_VERSION: Attributes.Name! @JavaStaticField(isFinal: true) - public var SPECIFICATION_VERSION: Attributes.Name! + public var SPECIFICATION_TITLE: Attributes.Name! @JavaStaticField(isFinal: true) public var SPECIFICATION_VENDOR: Attributes.Name! @JavaStaticField(isFinal: true) - public var MULTI_RELEASE: Attributes.Name! + public var SPECIFICATION_VERSION: Attributes.Name! +} +extension Attributes { + @JavaClass("java.util.jar.Attributes$Name") + open class Name: JavaObject { + @JavaMethod + @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) + + /// Java method `equals`. + /// + /// ### Java method signature + /// ```java + /// public boolean java.util.jar.Attributes$Name.equals(java.lang.Object) + /// ``` + @JavaMethod + open override func equals(_ arg0: JavaObject?) -> Bool + + /// Java method `hashCode`. + /// + /// ### Java method signature + /// ```java + /// public int java.util.jar.Attributes$Name.hashCode() + /// ``` + @JavaMethod + open override func hashCode() -> Int32 + + /// Java method `toString`. + /// + /// ### Java method signature + /// ```java + /// public java.lang.String java.util.jar.Attributes$Name.toString() + /// ``` + @JavaMethod + open override func toString() -> String + } } diff --git a/Sources/JavaStdlib/JavaUtilJar/generated/JarEntry.swift b/Sources/JavaStdlib/JavaUtilJar/generated/JarEntry.swift index 89a0caf6d..443735d1e 100644 --- a/Sources/JavaStdlib/JavaUtilJar/generated/JarEntry.swift +++ b/Sources/JavaStdlib/JavaUtilJar/generated/JarEntry.swift @@ -5,29 +5,29 @@ import SwiftJavaJNICore @JavaClass("java.util.jar.JarEntry") open class JarEntry: ZipEntry { @JavaMethod - @_nonoverride public convenience init(_ arg0: JarEntry?, environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) @JavaMethod - @_nonoverride public convenience init(_ arg0: ZipEntry?, environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(_ arg0: JarEntry?, environment: JNIEnvironment? = nil) @JavaMethod - @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(_ arg0: ZipEntry?, environment: JNIEnvironment? = nil) - /// Java method `getRealName`. + /// Java method `getAttributes`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.util.jar.JarEntry.getRealName() + /// public java.util.jar.Attributes java.util.jar.JarEntry.getAttributes() throws java.io.IOException /// ``` @JavaMethod - open func getRealName() -> String + open func getAttributes() throws -> Attributes! - /// Java method `getAttributes`. + /// Java method `getRealName`. /// /// ### Java method signature /// ```java - /// public java.util.jar.Attributes java.util.jar.JarEntry.getAttributes() throws java.io.IOException + /// public java.lang.String java.util.jar.JarEntry.getRealName() /// ``` @JavaMethod - open func getAttributes() throws -> Attributes! + open func getRealName() -> String } diff --git a/Sources/JavaStdlib/JavaUtilJar/generated/JarFile.swift b/Sources/JavaStdlib/JavaUtilJar/generated/JarFile.swift index 7f3fa619d..4f6264609 100644 --- a/Sources/JavaStdlib/JavaUtilJar/generated/JarFile.swift +++ b/Sources/JavaStdlib/JavaUtilJar/generated/JarFile.swift @@ -2,22 +2,26 @@ import SwiftJava import SwiftJavaJNICore +extension JavaClass { + @JavaStaticField(isFinal: true) + public var MANIFEST_NAME: String +} @JavaClass("java.util.jar.JarFile") open class JarFile: JavaObject { @JavaMethod - @_nonoverride public convenience init(_ arg0: File?, _ arg1: Bool, _ arg2: Int32, environment: JNIEnvironment? = nil) throws + @_nonoverride public convenience init(_ arg0: File?, environment: JNIEnvironment? = nil) throws @JavaMethod - @_nonoverride public convenience init(_ arg0: File?, environment: JNIEnvironment? = nil) throws + @_nonoverride public convenience init(_ arg0: File?, _ arg1: Bool, environment: JNIEnvironment? = nil) throws @JavaMethod - @_nonoverride public convenience init(_ arg0: String, _ arg1: Bool, environment: JNIEnvironment? = nil) throws + @_nonoverride public convenience init(_ arg0: File?, _ arg1: Bool, _ arg2: Int32, environment: JNIEnvironment? = nil) throws @JavaMethod @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) throws @JavaMethod - @_nonoverride public convenience init(_ arg0: File?, _ arg1: Bool, environment: JNIEnvironment? = nil) throws + @_nonoverride public convenience init(_ arg0: String, _ arg1: Bool, environment: JNIEnvironment? = nil) throws /// Java method `entries`. /// @@ -28,41 +32,41 @@ open class JarFile: JavaObject { @JavaMethod open func entries() -> Enumeration! - /// Java method `getInputStream`. + /// Java method `getEntry`. /// /// ### Java method signature /// ```java - /// public synchronized java.io.InputStream java.util.jar.JarFile.getInputStream(java.util.zip.ZipEntry) throws java.io.IOException + /// public java.util.zip.ZipEntry java.util.jar.JarFile.getEntry(java.lang.String) /// ``` @JavaMethod - open func getInputStream(_ arg0: ZipEntry?) throws -> InputStream! + open func getEntry(_ arg0: String) -> ZipEntry! - /// Java method `getManifest`. + /// Java method `getInputStream`. /// /// ### Java method signature /// ```java - /// public java.util.jar.Manifest java.util.jar.JarFile.getManifest() throws java.io.IOException + /// public synchronized java.io.InputStream java.util.jar.JarFile.getInputStream(java.util.zip.ZipEntry) throws java.io.IOException /// ``` @JavaMethod - open func getManifest() throws -> Manifest! + open func getInputStream(_ arg0: ZipEntry?) throws -> InputStream! - /// Java method `getEntry`. + /// Java method `getJarEntry`. /// /// ### Java method signature /// ```java - /// public java.util.zip.ZipEntry java.util.jar.JarFile.getEntry(java.lang.String) + /// public java.util.jar.JarEntry java.util.jar.JarFile.getJarEntry(java.lang.String) /// ``` @JavaMethod - open func getEntry(_ arg0: String) -> ZipEntry! + open func getJarEntry(_ arg0: String) -> JarEntry! - /// Java method `getJarEntry`. + /// Java method `getManifest`. /// /// ### Java method signature /// ```java - /// public java.util.jar.JarEntry java.util.jar.JarFile.getJarEntry(java.lang.String) + /// public java.util.jar.Manifest java.util.jar.JarFile.getManifest() throws java.io.IOException /// ``` @JavaMethod - open func getJarEntry(_ arg0: String) -> JarEntry! + open func getManifest() throws -> Manifest! /// Java method `isMultiRelease`. /// @@ -73,7 +77,3 @@ open class JarFile: JavaObject { @JavaMethod open func isMultiRelease() -> Bool } -extension JavaClass { - @JavaStaticField(isFinal: true) - public var MANIFEST_NAME: String -} diff --git a/Sources/JavaStdlib/JavaUtilJar/generated/JarInputStream.swift b/Sources/JavaStdlib/JavaUtilJar/generated/JarInputStream.swift index 53e65ca45..445570ac8 100644 --- a/Sources/JavaStdlib/JavaUtilJar/generated/JarInputStream.swift +++ b/Sources/JavaStdlib/JavaUtilJar/generated/JarInputStream.swift @@ -10,48 +10,48 @@ open class JarInputStream: InputStream { @JavaMethod @_nonoverride public convenience init(_ arg0: InputStream?, _ arg1: Bool, environment: JNIEnvironment? = nil) throws - /// Java method `getNextEntry`. + /// Java method `createZipEntry`. /// /// ### Java method signature /// ```java - /// public java.util.zip.ZipEntry java.util.jar.JarInputStream.getNextEntry() throws java.io.IOException + /// protected java.util.zip.ZipEntry java.util.jar.JarInputStream.createZipEntry(java.lang.String) /// ``` @JavaMethod - open func getNextEntry() throws -> ZipEntry! + open func createZipEntry(_ arg0: String) -> ZipEntry! - /// Java method `getNextJarEntry`. + /// Java method `getManifest`. /// /// ### Java method signature /// ```java - /// public java.util.jar.JarEntry java.util.jar.JarInputStream.getNextJarEntry() throws java.io.IOException + /// public java.util.jar.Manifest java.util.jar.JarInputStream.getManifest() /// ``` @JavaMethod - open func getNextJarEntry() throws -> JarEntry! + open func getManifest() -> Manifest! - /// Java method `createZipEntry`. + /// Java method `getNextEntry`. /// /// ### Java method signature /// ```java - /// protected java.util.zip.ZipEntry java.util.jar.JarInputStream.createZipEntry(java.lang.String) + /// public java.util.zip.ZipEntry java.util.jar.JarInputStream.getNextEntry() throws java.io.IOException /// ``` @JavaMethod - open func createZipEntry(_ arg0: String) -> ZipEntry! + open func getNextEntry() throws -> ZipEntry! - /// Java method `read`. + /// Java method `getNextJarEntry`. /// /// ### Java method signature /// ```java - /// public int java.util.jar.JarInputStream.read(byte[],int,int) throws java.io.IOException + /// public java.util.jar.JarEntry java.util.jar.JarInputStream.getNextJarEntry() throws java.io.IOException /// ``` @JavaMethod - open override func read(_ arg0: [Int8], _ arg1: Int32, _ arg2: Int32) throws -> Int32 + open func getNextJarEntry() throws -> JarEntry! - /// Java method `getManifest`. + /// Java method `read`. /// /// ### Java method signature /// ```java - /// public java.util.jar.Manifest java.util.jar.JarInputStream.getManifest() + /// public int java.util.jar.JarInputStream.read(byte[],int,int) throws java.io.IOException /// ``` @JavaMethod - open func getManifest() -> Manifest! + open override func read(_ arg0: [Int8], _ arg1: Int32, _ arg2: Int32) throws -> Int32 } diff --git a/Sources/JavaStdlib/JavaUtilJar/generated/Manifest.swift b/Sources/JavaStdlib/JavaUtilJar/generated/Manifest.swift index e1b9f5e50..a52a2ee74 100644 --- a/Sources/JavaStdlib/JavaUtilJar/generated/Manifest.swift +++ b/Sources/JavaStdlib/JavaUtilJar/generated/Manifest.swift @@ -5,49 +5,58 @@ import SwiftJavaJNICore @JavaClass("java.util.jar.Manifest") open class Manifest: JavaObject { @JavaMethod - @_nonoverride public convenience init(_ arg0: Manifest?, environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(environment: JNIEnvironment? = nil) @JavaMethod @_nonoverride public convenience init(_ arg0: InputStream?, environment: JNIEnvironment? = nil) throws @JavaMethod - @_nonoverride public convenience init(environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(_ arg0: Manifest?, environment: JNIEnvironment? = nil) - /// Java method `equals`. + /// Java method `getAttributes`. /// /// ### Java method signature /// ```java - /// public boolean java.util.jar.Manifest.equals(java.lang.Object) + /// public java.util.jar.Attributes java.util.jar.Manifest.getAttributes(java.lang.String) /// ``` @JavaMethod - open override func equals(_ arg0: JavaObject?) -> Bool + open func getAttributes(_ arg0: String) -> Attributes! - /// Java method `hashCode`. + /// Java method `clear`. /// /// ### Java method signature /// ```java - /// public int java.util.jar.Manifest.hashCode() + /// public void java.util.jar.Manifest.clear() /// ``` @JavaMethod - open override func hashCode() -> Int32 + open func clear() - /// Java method `clone`. + /// Java method `getEntries`. /// /// ### Java method signature /// ```java - /// public java.lang.Object java.util.jar.Manifest.clone() + /// public java.util.Map java.util.jar.Manifest.getEntries() /// ``` @JavaMethod - open override func clone() -> JavaObject! + open func getEntries() -> JavaMap! - /// Java method `clear`. + /// Java method `getMainAttributes`. /// /// ### Java method signature /// ```java - /// public void java.util.jar.Manifest.clear() + /// public java.util.jar.Attributes java.util.jar.Manifest.getMainAttributes() /// ``` @JavaMethod - open func clear() + open func getMainAttributes() -> Attributes! + + /// Java method `read`. + /// + /// ### Java method signature + /// ```java + /// public void java.util.jar.Manifest.read(java.io.InputStream) throws java.io.IOException + /// ``` + @JavaMethod + open func read(_ arg0: InputStream?) throws /// Java method `write`. /// @@ -58,30 +67,30 @@ open class Manifest: JavaObject { @JavaMethod open func write(_ arg0: OutputStream?) throws - /// Java method `read`. + /// Java method `clone`. /// /// ### Java method signature /// ```java - /// public void java.util.jar.Manifest.read(java.io.InputStream) throws java.io.IOException + /// public java.lang.Object java.util.jar.Manifest.clone() /// ``` @JavaMethod - open func read(_ arg0: InputStream?) throws + open override func clone() -> JavaObject! - /// Java method `getMainAttributes`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public java.util.jar.Attributes java.util.jar.Manifest.getMainAttributes() + /// public boolean java.util.jar.Manifest.equals(java.lang.Object) /// ``` @JavaMethod - open func getMainAttributes() -> Attributes! + open override func equals(_ arg0: JavaObject?) -> Bool - /// Java method `getAttributes`. + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public java.util.jar.Attributes java.util.jar.Manifest.getAttributes(java.lang.String) + /// public int java.util.jar.Manifest.hashCode() /// ``` @JavaMethod - open func getAttributes(_ arg0: String) -> Attributes! + open override func hashCode() -> Int32 } diff --git a/Sources/JavaStdlib/JavaUtilJar/generated/ZipEntry.swift b/Sources/JavaStdlib/JavaUtilJar/generated/ZipEntry.swift index c0465a410..6e7fa72c2 100644 --- a/Sources/JavaStdlib/JavaUtilJar/generated/ZipEntry.swift +++ b/Sources/JavaStdlib/JavaUtilJar/generated/ZipEntry.swift @@ -2,6 +2,13 @@ import SwiftJava import SwiftJavaJNICore +extension JavaClass { + @JavaStaticField(isFinal: true) + public var DEFLATED: Int32 + + @JavaStaticField(isFinal: true) + public var STORED: Int32 +} @JavaClass("java.util.zip.ZipEntry") open class ZipEntry: JavaObject { @JavaMethod @@ -10,59 +17,59 @@ open class ZipEntry: JavaObject { @JavaMethod @_nonoverride public convenience init(_ arg0: ZipEntry?, environment: JNIEnvironment? = nil) - /// Java method `getName`. + /// Java method `getComment`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.util.zip.ZipEntry.getName() + /// public java.lang.String java.util.zip.ZipEntry.getComment() /// ``` @JavaMethod - open func getName() -> String + open func getComment() -> String - /// Java method `toString`. + /// Java method `setComment`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.util.zip.ZipEntry.toString() + /// public void java.util.zip.ZipEntry.setComment(java.lang.String) /// ``` @JavaMethod - open override func toString() -> String + open func setComment(_ arg0: String) - /// Java method `hashCode`. + /// Java method `getCompressedSize`. /// /// ### Java method signature /// ```java - /// public int java.util.zip.ZipEntry.hashCode() + /// public long java.util.zip.ZipEntry.getCompressedSize() /// ``` @JavaMethod - open override func hashCode() -> Int32 + open func getCompressedSize() -> Int64 - /// Java method `clone`. + /// Java method `setCompressedSize`. /// /// ### Java method signature /// ```java - /// public java.lang.Object java.util.zip.ZipEntry.clone() + /// public void java.util.zip.ZipEntry.setCompressedSize(long) /// ``` @JavaMethod - open override func clone() -> JavaObject! + open func setCompressedSize(_ arg0: Int64) - /// Java method `getMethod`. + /// Java method `getCrc`. /// /// ### Java method signature /// ```java - /// public int java.util.zip.ZipEntry.getMethod() + /// public long java.util.zip.ZipEntry.getCrc() /// ``` @JavaMethod - open func getMethod() -> Int32 + open func getCrc() -> Int64 - /// Java method `getSize`. + /// Java method `setCrc`. /// /// ### Java method signature /// ```java - /// public long java.util.zip.ZipEntry.getSize() + /// public void java.util.zip.ZipEntry.setCrc(long) /// ``` @JavaMethod - open func getSize() -> Int64 + open func setCrc(_ arg0: Int64) /// Java method `isDirectory`. /// @@ -73,118 +80,111 @@ open class ZipEntry: JavaObject { @JavaMethod open func isDirectory() -> Bool - /// Java method `getTime`. + /// Java method `getExtra`. /// /// ### Java method signature /// ```java - /// public long java.util.zip.ZipEntry.getTime() + /// public byte[] java.util.zip.ZipEntry.getExtra() /// ``` @JavaMethod - open func getTime() -> Int64 + open func getExtra() -> [Int8] - /// Java method `setTime`. + /// Java method `setExtra`. /// /// ### Java method signature /// ```java - /// public void java.util.zip.ZipEntry.setTime(long) + /// public void java.util.zip.ZipEntry.setExtra(byte[]) /// ``` @JavaMethod - open func setTime(_ arg0: Int64) + open func setExtra(_ arg0: [Int8]) - /// Java method `setSize`. + /// Java method `getMethod`. /// /// ### Java method signature /// ```java - /// public void java.util.zip.ZipEntry.setSize(long) + /// public int java.util.zip.ZipEntry.getMethod() /// ``` @JavaMethod - open func setSize(_ arg0: Int64) + open func getMethod() -> Int32 - /// Java method `getCompressedSize`. + /// Java method `setMethod`. /// /// ### Java method signature /// ```java - /// public long java.util.zip.ZipEntry.getCompressedSize() + /// public void java.util.zip.ZipEntry.setMethod(int) /// ``` @JavaMethod - open func getCompressedSize() -> Int64 + open func setMethod(_ arg0: Int32) - /// Java method `setCompressedSize`. + /// Java method `getName`. /// /// ### Java method signature /// ```java - /// public void java.util.zip.ZipEntry.setCompressedSize(long) + /// public java.lang.String java.util.zip.ZipEntry.getName() /// ``` @JavaMethod - open func setCompressedSize(_ arg0: Int64) + open func getName() -> String - /// Java method `setCrc`. + /// Java method `getSize`. /// /// ### Java method signature /// ```java - /// public void java.util.zip.ZipEntry.setCrc(long) + /// public long java.util.zip.ZipEntry.getSize() /// ``` @JavaMethod - open func setCrc(_ arg0: Int64) + open func getSize() -> Int64 - /// Java method `getCrc`. + /// Java method `setSize`. /// /// ### Java method signature /// ```java - /// public long java.util.zip.ZipEntry.getCrc() + /// public void java.util.zip.ZipEntry.setSize(long) /// ``` @JavaMethod - open func getCrc() -> Int64 + open func setSize(_ arg0: Int64) - /// Java method `setMethod`. + /// Java method `getTime`. /// /// ### Java method signature /// ```java - /// public void java.util.zip.ZipEntry.setMethod(int) + /// public long java.util.zip.ZipEntry.getTime() /// ``` @JavaMethod - open func setMethod(_ arg0: Int32) + open func getTime() -> Int64 - /// Java method `setExtra`. + /// Java method `setTime`. /// /// ### Java method signature /// ```java - /// public void java.util.zip.ZipEntry.setExtra(byte[]) + /// public void java.util.zip.ZipEntry.setTime(long) /// ``` @JavaMethod - open func setExtra(_ arg0: [Int8]) + open func setTime(_ arg0: Int64) - /// Java method `getExtra`. + /// Java method `clone`. /// /// ### Java method signature /// ```java - /// public byte[] java.util.zip.ZipEntry.getExtra() + /// public java.lang.Object java.util.zip.ZipEntry.clone() /// ``` @JavaMethod - open func getExtra() -> [Int8] + open override func clone() -> JavaObject! - /// Java method `setComment`. + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public void java.util.zip.ZipEntry.setComment(java.lang.String) + /// public int java.util.zip.ZipEntry.hashCode() /// ``` @JavaMethod - open func setComment(_ arg0: String) + open override func hashCode() -> Int32 - /// Java method `getComment`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.util.zip.ZipEntry.getComment() + /// public java.lang.String java.util.zip.ZipEntry.toString() /// ``` @JavaMethod - open func getComment() -> String -} -extension JavaClass { - @JavaStaticField(isFinal: true) - public var STORED: Int32 - - @JavaStaticField(isFinal: true) - public var DEFLATED: Int32 + open override func toString() -> String } diff --git a/Sources/SwiftJava/generated/Appendable.swift b/Sources/SwiftJava/generated/Appendable.swift index 6194ab3bf..77ca001fb 100644 --- a/Sources/SwiftJava/generated/Appendable.swift +++ b/Sources/SwiftJava/generated/Appendable.swift @@ -7,26 +7,26 @@ public struct Appendable { /// /// ### Java method signature /// ```java - /// public abstract java.lang.Appendable java.lang.Appendable.append(java.lang.CharSequence) throws java.io.IOException + /// public abstract java.lang.Appendable java.lang.Appendable.append(char) throws java.io.IOException /// ``` @JavaMethod - public func append(_ arg0: CharSequence?) throws -> Appendable! + public func append(_ arg0: UInt16) throws -> Appendable! /// Java method `append`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.Appendable java.lang.Appendable.append(java.lang.CharSequence,int,int) throws java.io.IOException + /// public abstract java.lang.Appendable java.lang.Appendable.append(java.lang.CharSequence) throws java.io.IOException /// ``` @JavaMethod - public func append(_ arg0: CharSequence?, _ arg1: Int32, _ arg2: Int32) throws -> Appendable! + public func append(_ arg0: CharSequence?) throws -> Appendable! /// Java method `append`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.Appendable java.lang.Appendable.append(char) throws java.io.IOException + /// public abstract java.lang.Appendable java.lang.Appendable.append(java.lang.CharSequence,int,int) throws java.io.IOException /// ``` @JavaMethod - public func append(_ arg0: UInt16) throws -> Appendable! + public func append(_ arg0: CharSequence?, _ arg1: Int32, _ arg2: Int32) throws -> Appendable! } diff --git a/Sources/SwiftJava/generated/ByteBuffer.swift b/Sources/SwiftJava/generated/ByteBuffer.swift index 4fddff59f..4b872aa47 100644 --- a/Sources/SwiftJava/generated/ByteBuffer.swift +++ b/Sources/SwiftJava/generated/ByteBuffer.swift @@ -1,268 +1,269 @@ // Auto-generated by Java-to-Swift wrapper generator. import SwiftJavaJNICore -@JavaClass("java.nio.ByteBuffer") -open class ByteBuffer: JavaObject { - /// Java method `reset`. +extension JavaClass { + /// Java method `allocate`. /// /// ### Java method signature /// ```java - /// public java.nio.ByteBuffer java.nio.ByteBuffer.reset() + /// public static java.nio.ByteBuffer java.nio.ByteBuffer.allocate(int) /// ``` - @JavaMethod - open func reset() -> ByteBuffer! + @JavaStaticMethod + public func allocate(_ arg0: Int32) -> ByteBuffer! - /// Java method `get`. + /// Java method `allocateDirect`. /// /// ### Java method signature /// ```java - /// public java.nio.ByteBuffer java.nio.ByteBuffer.get(byte[]) + /// public static java.nio.ByteBuffer java.nio.ByteBuffer.allocateDirect(int) /// ``` - @JavaMethod - open func get(_ arg0: [Int8]) -> ByteBuffer! + @JavaStaticMethod + public func allocateDirect(_ arg0: Int32) -> ByteBuffer! - /// Java method `get`. + /// Java method `wrap`. /// /// ### Java method signature /// ```java - /// public abstract byte java.nio.ByteBuffer.get(int) + /// public static java.nio.ByteBuffer java.nio.ByteBuffer.wrap(byte[]) /// ``` - @JavaMethod - open func get(_ arg0: Int32) -> Int8 + @JavaStaticMethod + public func wrap(_ arg0: [Int8]) -> ByteBuffer! - /// Java method `get`. + /// Java method `wrap`. /// /// ### Java method signature /// ```java - /// public abstract byte java.nio.ByteBuffer.get() + /// public static java.nio.ByteBuffer java.nio.ByteBuffer.wrap(byte[],int,int) /// ``` - @JavaMethod - open func get() -> Int8 - - /// Java method `get`. + @JavaStaticMethod + public func wrap(_ arg0: [Int8], _ arg1: Int32, _ arg2: Int32) -> ByteBuffer! +} +@JavaClass("java.nio.ByteBuffer") +open class ByteBuffer: JavaObject { + /// Java method `alignedSlice`. /// /// ### Java method signature /// ```java - /// public java.nio.ByteBuffer java.nio.ByteBuffer.get(byte[],int,int) + /// public final java.nio.ByteBuffer java.nio.ByteBuffer.alignedSlice(int) /// ``` @JavaMethod - open func get(_ arg0: [Int8], _ arg1: Int32, _ arg2: Int32) -> ByteBuffer! + open func alignedSlice(_ arg0: Int32) -> ByteBuffer! - /// Java method `get`. + /// Java method `alignmentOffset`. /// /// ### Java method signature /// ```java - /// public java.nio.ByteBuffer java.nio.ByteBuffer.get(int,byte[]) + /// public final int java.nio.ByteBuffer.alignmentOffset(int,int) /// ``` @JavaMethod - open func get(_ arg0: Int32, _ arg1: [Int8]) -> ByteBuffer! + open func alignmentOffset(_ arg0: Int32, _ arg1: Int32) -> Int32 - /// Java method `get`. + /// Java method `array`. /// /// ### Java method signature /// ```java - /// public java.nio.ByteBuffer java.nio.ByteBuffer.get(int,byte[],int,int) + /// public final byte[] java.nio.ByteBuffer.array() /// ``` @JavaMethod - open func get(_ arg0: Int32, _ arg1: [Int8], _ arg2: Int32, _ arg3: Int32) -> ByteBuffer! + open func array() -> [Int8] - /// Java method `put`. + /// Java method `arrayOffset`. /// /// ### Java method signature /// ```java - /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.put(int,byte) + /// public final int java.nio.ByteBuffer.arrayOffset() /// ``` @JavaMethod - open func put(_ arg0: Int32, _ arg1: Int8) -> ByteBuffer! + open func arrayOffset() -> Int32 - /// Java method `put`. + /// Java method `asReadOnlyBuffer`. /// /// ### Java method signature /// ```java - /// public java.nio.ByteBuffer java.nio.ByteBuffer.put(java.nio.ByteBuffer) + /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.asReadOnlyBuffer() /// ``` @JavaMethod - open func put(_ arg0: ByteBuffer?) -> ByteBuffer! + open func asReadOnlyBuffer() -> ByteBuffer! - /// Java method `put`. + /// Java method `getChar`. /// /// ### Java method signature /// ```java - /// public java.nio.ByteBuffer java.nio.ByteBuffer.put(int,java.nio.ByteBuffer,int,int) + /// public abstract char java.nio.ByteBuffer.getChar() /// ``` @JavaMethod - open func put(_ arg0: Int32, _ arg1: ByteBuffer?, _ arg2: Int32, _ arg3: Int32) -> ByteBuffer! + open func getChar() -> UInt16 - /// Java method `put`. + /// Java method `getChar`. /// /// ### Java method signature /// ```java - /// public final java.nio.ByteBuffer java.nio.ByteBuffer.put(byte[]) + /// public abstract char java.nio.ByteBuffer.getChar(int) /// ``` @JavaMethod - open func put(_ arg0: [Int8]) -> ByteBuffer! + open func getChar(_ arg0: Int32) -> UInt16 - /// Java method `put`. + /// Java method `clear`. /// /// ### Java method signature /// ```java - /// public java.nio.ByteBuffer java.nio.ByteBuffer.put(int,byte[]) + /// public java.nio.ByteBuffer java.nio.ByteBuffer.clear() /// ``` @JavaMethod - open func put(_ arg0: Int32, _ arg1: [Int8]) -> ByteBuffer! + open func clear() -> ByteBuffer! - /// Java method `put`. + /// Java method `compact`. /// /// ### Java method signature /// ```java - /// public java.nio.ByteBuffer java.nio.ByteBuffer.put(int,byte[],int,int) + /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.compact() /// ``` @JavaMethod - open func put(_ arg0: Int32, _ arg1: [Int8], _ arg2: Int32, _ arg3: Int32) -> ByteBuffer! + open func compact() -> ByteBuffer! - /// Java method `put`. + /// Java method `compareTo`. /// /// ### Java method signature /// ```java - /// public java.nio.ByteBuffer java.nio.ByteBuffer.put(byte[],int,int) + /// public int java.nio.ByteBuffer.compareTo(java.lang.Object) /// ``` @JavaMethod - open func put(_ arg0: [Int8], _ arg1: Int32, _ arg2: Int32) -> ByteBuffer! + open func compareTo(_ arg0: JavaObject?) -> Int32 - /// Java method `put`. + /// Java method `compareTo`. /// /// ### Java method signature /// ```java - /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.put(byte) + /// public int java.nio.ByteBuffer.compareTo(java.nio.ByteBuffer) /// ``` @JavaMethod - open func put(_ arg0: Int8) -> ByteBuffer! + open func compareTo(_ arg0: ByteBuffer?) -> Int32 - /// Java method `equals`. + /// Java method `isDirect`. /// /// ### Java method signature /// ```java - /// public boolean java.nio.ByteBuffer.equals(java.lang.Object) + /// public abstract boolean java.nio.ByteBuffer.isDirect() /// ``` @JavaMethod - open override func equals(_ arg0: JavaObject?) -> Bool + open func isDirect() -> Bool - /// Java method `toString`. + /// Java method `getDouble`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.nio.ByteBuffer.toString() + /// public abstract double java.nio.ByteBuffer.getDouble() /// ``` @JavaMethod - open override func toString() -> String + open func getDouble() -> Double - /// Java method `hashCode`. + /// Java method `getDouble`. /// /// ### Java method signature /// ```java - /// public int java.nio.ByteBuffer.hashCode() + /// public abstract double java.nio.ByteBuffer.getDouble(int) /// ``` @JavaMethod - open override func hashCode() -> Int32 + open func getDouble(_ arg0: Int32) -> Double - /// Java method `compareTo`. + /// Java method `duplicate`. /// /// ### Java method signature /// ```java - /// public int java.nio.ByteBuffer.compareTo(java.nio.ByteBuffer) + /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.duplicate() /// ``` @JavaMethod - open func compareTo(_ arg0: ByteBuffer?) -> Int32 + open func duplicate() -> ByteBuffer! - /// Java method `compareTo`. + /// Java method `flip`. /// /// ### Java method signature /// ```java - /// public int java.nio.ByteBuffer.compareTo(java.lang.Object) + /// public java.nio.ByteBuffer java.nio.ByteBuffer.flip() /// ``` @JavaMethod - open func compareTo(_ arg0: JavaObject?) -> Int32 + open func flip() -> ByteBuffer! - /// Java method `getShort`. + /// Java method `getFloat`. /// /// ### Java method signature /// ```java - /// public abstract short java.nio.ByteBuffer.getShort() + /// public abstract float java.nio.ByteBuffer.getFloat() /// ``` @JavaMethod - open func getShort() -> Int16 + open func getFloat() -> Float - /// Java method `getShort`. + /// Java method `getFloat`. /// /// ### Java method signature /// ```java - /// public abstract short java.nio.ByteBuffer.getShort(int) + /// public abstract float java.nio.ByteBuffer.getFloat(int) /// ``` @JavaMethod - open func getShort(_ arg0: Int32) -> Int16 + open func getFloat(_ arg0: Int32) -> Float - /// Java method `putShort`. + /// Java method `get`. /// /// ### Java method signature /// ```java - /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.putShort(int,short) + /// public abstract byte java.nio.ByteBuffer.get() /// ``` @JavaMethod - open func putShort(_ arg0: Int32, _ arg1: Int16) -> ByteBuffer! + open func get() -> Int8 - /// Java method `putShort`. + /// Java method `get`. /// /// ### Java method signature /// ```java - /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.putShort(short) + /// public abstract byte java.nio.ByteBuffer.get(int) /// ``` @JavaMethod - open func putShort(_ arg0: Int16) -> ByteBuffer! + open func get(_ arg0: Int32) -> Int8 - /// Java method `getChar`. + /// Java method `get`. /// /// ### Java method signature /// ```java - /// public abstract char java.nio.ByteBuffer.getChar(int) + /// public java.nio.ByteBuffer java.nio.ByteBuffer.get(byte[]) /// ``` @JavaMethod - open func getChar(_ arg0: Int32) -> UInt16 + open func get(_ arg0: [Int8]) -> ByteBuffer! - /// Java method `getChar`. + /// Java method `get`. /// /// ### Java method signature /// ```java - /// public abstract char java.nio.ByteBuffer.getChar() + /// public java.nio.ByteBuffer java.nio.ByteBuffer.get(byte[],int,int) /// ``` @JavaMethod - open func getChar() -> UInt16 + open func get(_ arg0: [Int8], _ arg1: Int32, _ arg2: Int32) -> ByteBuffer! - /// Java method `putChar`. + /// Java method `get`. /// /// ### Java method signature /// ```java - /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.putChar(int,char) + /// public java.nio.ByteBuffer java.nio.ByteBuffer.get(int,byte[]) /// ``` @JavaMethod - open func putChar(_ arg0: Int32, _ arg1: UInt16) -> ByteBuffer! + open func get(_ arg0: Int32, _ arg1: [Int8]) -> ByteBuffer! - /// Java method `putChar`. + /// Java method `get`. /// /// ### Java method signature /// ```java - /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.putChar(char) + /// public java.nio.ByteBuffer java.nio.ByteBuffer.get(int,byte[],int,int) /// ``` @JavaMethod - open func putChar(_ arg0: UInt16) -> ByteBuffer! + open func get(_ arg0: Int32, _ arg1: [Int8], _ arg2: Int32, _ arg3: Int32) -> ByteBuffer! - /// Java method `getInt`. + /// Java method `hasArray`. /// /// ### Java method signature /// ```java - /// public abstract int java.nio.ByteBuffer.getInt(int) + /// public final boolean java.nio.ByteBuffer.hasArray() /// ``` @JavaMethod - open func getInt(_ arg0: Int32) -> Int32 + open func hasArray() -> Bool /// Java method `getInt`. /// @@ -273,328 +274,327 @@ open class ByteBuffer: JavaObject { @JavaMethod open func getInt() -> Int32 - /// Java method `putInt`. + /// Java method `getInt`. /// /// ### Java method signature /// ```java - /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.putInt(int,int) + /// public abstract int java.nio.ByteBuffer.getInt(int) /// ``` @JavaMethod - open func putInt(_ arg0: Int32, _ arg1: Int32) -> ByteBuffer! + open func getInt(_ arg0: Int32) -> Int32 - /// Java method `putInt`. + /// Java method `limit`. /// /// ### Java method signature /// ```java - /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.putInt(int) + /// public java.nio.ByteBuffer java.nio.ByteBuffer.limit(int) /// ``` @JavaMethod - open func putInt(_ arg0: Int32) -> ByteBuffer! + open func limit(_ arg0: Int32) -> ByteBuffer! /// Java method `getLong`. /// /// ### Java method signature /// ```java - /// public abstract long java.nio.ByteBuffer.getLong(int) + /// public abstract long java.nio.ByteBuffer.getLong() /// ``` @JavaMethod - open func getLong(_ arg0: Int32) -> Int64 + open func getLong() -> Int64 /// Java method `getLong`. /// /// ### Java method signature /// ```java - /// public abstract long java.nio.ByteBuffer.getLong() + /// public abstract long java.nio.ByteBuffer.getLong(int) /// ``` @JavaMethod - open func getLong() -> Int64 + open func getLong(_ arg0: Int32) -> Int64 - /// Java method `putLong`. + /// Java method `mark`. /// /// ### Java method signature /// ```java - /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.putLong(long) + /// public java.nio.ByteBuffer java.nio.ByteBuffer.mark() /// ``` @JavaMethod - open func putLong(_ arg0: Int64) -> ByteBuffer! + open func mark() -> ByteBuffer! - /// Java method `putLong`. + /// Java method `mismatch`. /// /// ### Java method signature /// ```java - /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.putLong(int,long) + /// public int java.nio.ByteBuffer.mismatch(java.nio.ByteBuffer) /// ``` @JavaMethod - open func putLong(_ arg0: Int32, _ arg1: Int64) -> ByteBuffer! + open func mismatch(_ arg0: ByteBuffer?) -> Int32 - /// Java method `getFloat`. + /// Java method `position`. /// /// ### Java method signature /// ```java - /// public abstract float java.nio.ByteBuffer.getFloat() + /// public java.nio.ByteBuffer java.nio.ByteBuffer.position(int) /// ``` @JavaMethod - open func getFloat() -> Float + open func position(_ arg0: Int32) -> ByteBuffer! - /// Java method `getFloat`. + /// Java method `put`. /// /// ### Java method signature /// ```java - /// public abstract float java.nio.ByteBuffer.getFloat(int) + /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.put(byte) /// ``` @JavaMethod - open func getFloat(_ arg0: Int32) -> Float + open func put(_ arg0: Int8) -> ByteBuffer! - /// Java method `putFloat`. + /// Java method `put`. /// /// ### Java method signature /// ```java - /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.putFloat(float) + /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.put(int,byte) /// ``` @JavaMethod - open func putFloat(_ arg0: Float) -> ByteBuffer! + open func put(_ arg0: Int32, _ arg1: Int8) -> ByteBuffer! - /// Java method `putFloat`. + /// Java method `put`. /// /// ### Java method signature /// ```java - /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.putFloat(int,float) + /// public final java.nio.ByteBuffer java.nio.ByteBuffer.put(byte[]) /// ``` @JavaMethod - open func putFloat(_ arg0: Int32, _ arg1: Float) -> ByteBuffer! + open func put(_ arg0: [Int8]) -> ByteBuffer! - /// Java method `getDouble`. + /// Java method `put`. /// /// ### Java method signature /// ```java - /// public abstract double java.nio.ByteBuffer.getDouble(int) + /// public java.nio.ByteBuffer java.nio.ByteBuffer.put(byte[],int,int) /// ``` @JavaMethod - open func getDouble(_ arg0: Int32) -> Double + open func put(_ arg0: [Int8], _ arg1: Int32, _ arg2: Int32) -> ByteBuffer! - /// Java method `getDouble`. + /// Java method `put`. /// /// ### Java method signature /// ```java - /// public abstract double java.nio.ByteBuffer.getDouble() + /// public java.nio.ByteBuffer java.nio.ByteBuffer.put(int,byte[]) /// ``` @JavaMethod - open func getDouble() -> Double + open func put(_ arg0: Int32, _ arg1: [Int8]) -> ByteBuffer! - /// Java method `putDouble`. + /// Java method `put`. /// /// ### Java method signature /// ```java - /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.putDouble(int,double) + /// public java.nio.ByteBuffer java.nio.ByteBuffer.put(int,byte[],int,int) /// ``` @JavaMethod - open func putDouble(_ arg0: Int32, _ arg1: Double) -> ByteBuffer! + open func put(_ arg0: Int32, _ arg1: [Int8], _ arg2: Int32, _ arg3: Int32) -> ByteBuffer! - /// Java method `putDouble`. + /// Java method `put`. /// /// ### Java method signature /// ```java - /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.putDouble(double) + /// public java.nio.ByteBuffer java.nio.ByteBuffer.put(int,java.nio.ByteBuffer,int,int) /// ``` @JavaMethod - open func putDouble(_ arg0: Double) -> ByteBuffer! + open func put(_ arg0: Int32, _ arg1: ByteBuffer?, _ arg2: Int32, _ arg3: Int32) -> ByteBuffer! - /// Java method `clear`. + /// Java method `put`. /// /// ### Java method signature /// ```java - /// public java.nio.ByteBuffer java.nio.ByteBuffer.clear() + /// public java.nio.ByteBuffer java.nio.ByteBuffer.put(java.nio.ByteBuffer) /// ``` @JavaMethod - open func clear() -> ByteBuffer! + open func put(_ arg0: ByteBuffer?) -> ByteBuffer! - /// Java method `position`. + /// Java method `putChar`. /// /// ### Java method signature /// ```java - /// public java.nio.ByteBuffer java.nio.ByteBuffer.position(int) + /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.putChar(char) /// ``` @JavaMethod - open func position(_ arg0: Int32) -> ByteBuffer! + open func putChar(_ arg0: UInt16) -> ByteBuffer! - /// Java method `mismatch`. + /// Java method `putChar`. /// /// ### Java method signature /// ```java - /// public int java.nio.ByteBuffer.mismatch(java.nio.ByteBuffer) + /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.putChar(int,char) /// ``` @JavaMethod - open func mismatch(_ arg0: ByteBuffer?) -> Int32 + open func putChar(_ arg0: Int32, _ arg1: UInt16) -> ByteBuffer! - /// Java method `limit`. + /// Java method `putDouble`. /// /// ### Java method signature /// ```java - /// public java.nio.ByteBuffer java.nio.ByteBuffer.limit(int) + /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.putDouble(double) /// ``` @JavaMethod - open func limit(_ arg0: Int32) -> ByteBuffer! + open func putDouble(_ arg0: Double) -> ByteBuffer! - /// Java method `isDirect`. + /// Java method `putDouble`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.nio.ByteBuffer.isDirect() + /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.putDouble(int,double) /// ``` @JavaMethod - open func isDirect() -> Bool + open func putDouble(_ arg0: Int32, _ arg1: Double) -> ByteBuffer! - /// Java method `hasArray`. + /// Java method `putFloat`. /// /// ### Java method signature /// ```java - /// public final boolean java.nio.ByteBuffer.hasArray() + /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.putFloat(float) /// ``` @JavaMethod - open func hasArray() -> Bool + open func putFloat(_ arg0: Float) -> ByteBuffer! - /// Java method `array`. + /// Java method `putFloat`. /// /// ### Java method signature /// ```java - /// public final byte[] java.nio.ByteBuffer.array() + /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.putFloat(int,float) /// ``` @JavaMethod - open func array() -> [Int8] + open func putFloat(_ arg0: Int32, _ arg1: Float) -> ByteBuffer! - /// Java method `arrayOffset`. + /// Java method `putInt`. /// /// ### Java method signature /// ```java - /// public final int java.nio.ByteBuffer.arrayOffset() + /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.putInt(int) /// ``` @JavaMethod - open func arrayOffset() -> Int32 + open func putInt(_ arg0: Int32) -> ByteBuffer! - /// Java method `mark`. + /// Java method `putInt`. /// /// ### Java method signature /// ```java - /// public java.nio.ByteBuffer java.nio.ByteBuffer.mark() + /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.putInt(int,int) /// ``` @JavaMethod - open func mark() -> ByteBuffer! + open func putInt(_ arg0: Int32, _ arg1: Int32) -> ByteBuffer! - /// Java method `flip`. + /// Java method `putLong`. /// /// ### Java method signature /// ```java - /// public java.nio.ByteBuffer java.nio.ByteBuffer.flip() + /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.putLong(int,long) /// ``` @JavaMethod - open func flip() -> ByteBuffer! + open func putLong(_ arg0: Int32, _ arg1: Int64) -> ByteBuffer! - /// Java method `rewind`. + /// Java method `putLong`. /// /// ### Java method signature /// ```java - /// public java.nio.ByteBuffer java.nio.ByteBuffer.rewind() + /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.putLong(long) /// ``` @JavaMethod - open func rewind() -> ByteBuffer! + open func putLong(_ arg0: Int64) -> ByteBuffer! - /// Java method `slice`. + /// Java method `putShort`. /// /// ### Java method signature /// ```java - /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.slice() + /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.putShort(int,short) /// ``` @JavaMethod - open func slice() -> ByteBuffer! + open func putShort(_ arg0: Int32, _ arg1: Int16) -> ByteBuffer! - /// Java method `slice`. + /// Java method `putShort`. /// /// ### Java method signature /// ```java - /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.slice(int,int) + /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.putShort(short) /// ``` @JavaMethod - open func slice(_ arg0: Int32, _ arg1: Int32) -> ByteBuffer! + open func putShort(_ arg0: Int16) -> ByteBuffer! - /// Java method `duplicate`. + /// Java method `reset`. /// /// ### Java method signature /// ```java - /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.duplicate() + /// public java.nio.ByteBuffer java.nio.ByteBuffer.reset() /// ``` @JavaMethod - open func duplicate() -> ByteBuffer! + open func reset() -> ByteBuffer! - /// Java method `alignmentOffset`. + /// Java method `rewind`. /// /// ### Java method signature /// ```java - /// public final int java.nio.ByteBuffer.alignmentOffset(int,int) + /// public java.nio.ByteBuffer java.nio.ByteBuffer.rewind() /// ``` @JavaMethod - open func alignmentOffset(_ arg0: Int32, _ arg1: Int32) -> Int32 + open func rewind() -> ByteBuffer! - /// Java method `asReadOnlyBuffer`. + /// Java method `getShort`. /// /// ### Java method signature /// ```java - /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.asReadOnlyBuffer() + /// public abstract short java.nio.ByteBuffer.getShort() /// ``` @JavaMethod - open func asReadOnlyBuffer() -> ByteBuffer! + open func getShort() -> Int16 - /// Java method `compact`. + /// Java method `getShort`. /// /// ### Java method signature /// ```java - /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.compact() + /// public abstract short java.nio.ByteBuffer.getShort(int) /// ``` @JavaMethod - open func compact() -> ByteBuffer! + open func getShort(_ arg0: Int32) -> Int16 - /// Java method `alignedSlice`. + /// Java method `slice`. /// /// ### Java method signature /// ```java - /// public final java.nio.ByteBuffer java.nio.ByteBuffer.alignedSlice(int) + /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.slice() /// ``` @JavaMethod - open func alignedSlice(_ arg0: Int32) -> ByteBuffer! -} -extension JavaClass { - /// Java method `wrap`. + open func slice() -> ByteBuffer! + + /// Java method `slice`. /// /// ### Java method signature /// ```java - /// public static java.nio.ByteBuffer java.nio.ByteBuffer.wrap(byte[],int,int) + /// public abstract java.nio.ByteBuffer java.nio.ByteBuffer.slice(int,int) /// ``` - @JavaStaticMethod - public func wrap(_ arg0: [Int8], _ arg1: Int32, _ arg2: Int32) -> ByteBuffer! + @JavaMethod + open func slice(_ arg0: Int32, _ arg1: Int32) -> ByteBuffer! - /// Java method `wrap`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public static java.nio.ByteBuffer java.nio.ByteBuffer.wrap(byte[]) + /// public boolean java.nio.ByteBuffer.equals(java.lang.Object) /// ``` - @JavaStaticMethod - public func wrap(_ arg0: [Int8]) -> ByteBuffer! + @JavaMethod + open override func equals(_ arg0: JavaObject?) -> Bool - /// Java method `allocate`. + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public static java.nio.ByteBuffer java.nio.ByteBuffer.allocate(int) + /// public int java.nio.ByteBuffer.hashCode() /// ``` - @JavaStaticMethod - public func allocate(_ arg0: Int32) -> ByteBuffer! + @JavaMethod + open override func hashCode() -> Int32 - /// Java method `allocateDirect`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public static java.nio.ByteBuffer java.nio.ByteBuffer.allocateDirect(int) + /// public java.lang.String java.nio.ByteBuffer.toString() /// ``` - @JavaStaticMethod - public func allocateDirect(_ arg0: Int32) -> ByteBuffer! + @JavaMethod + open override func toString() -> String } diff --git a/Sources/SwiftJava/generated/CharSequence.swift b/Sources/SwiftJava/generated/CharSequence.swift index faf742c9e..7714b50ed 100644 --- a/Sources/SwiftJava/generated/CharSequence.swift +++ b/Sources/SwiftJava/generated/CharSequence.swift @@ -1,25 +1,26 @@ // Auto-generated by Java-to-Swift wrapper generator. import SwiftJavaJNICore -@JavaInterface("java.lang.CharSequence") -public struct CharSequence { - /// Java method `length`. +extension JavaClass { + /// Java method `compare`. /// /// ### Java method signature /// ```java - /// public abstract int java.lang.CharSequence.length() + /// public static int java.lang.CharSequence.compare(java.lang.CharSequence,java.lang.CharSequence) /// ``` - @JavaMethod - public func length() -> Int32 - - /// Java method `toString`. + @JavaStaticMethod + public func compare(_ arg0: CharSequence?, _ arg1: CharSequence?) -> Int32 +} +@JavaInterface("java.lang.CharSequence") +public struct CharSequence { + /// Java method `charAt`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.String java.lang.CharSequence.toString() + /// public abstract char java.lang.CharSequence.charAt(int) /// ``` @JavaMethod - public func toString() -> String + public func charAt(_ arg0: Int32) -> UInt16 /// Java method `getChars`. /// @@ -30,23 +31,23 @@ public struct CharSequence { @JavaMethod public func getChars(_ arg0: Int32, _ arg1: Int32, _ arg2: [UInt16], _ arg3: Int32) - /// Java method `charAt`. + /// Java method `isEmpty`. /// /// ### Java method signature /// ```java - /// public abstract char java.lang.CharSequence.charAt(int) + /// public default boolean java.lang.CharSequence.isEmpty() /// ``` @JavaMethod - public func charAt(_ arg0: Int32) -> UInt16 + public func isEmpty() -> Bool - /// Java method `isEmpty`. + /// Java method `length`. /// /// ### Java method signature /// ```java - /// public default boolean java.lang.CharSequence.isEmpty() + /// public abstract int java.lang.CharSequence.length() /// ``` @JavaMethod - public func isEmpty() -> Bool + public func length() -> Int32 /// Java method `subSequence`. /// @@ -56,14 +57,13 @@ public struct CharSequence { /// ``` @JavaMethod public func subSequence(_ arg0: Int32, _ arg1: Int32) -> CharSequence! -} -extension JavaClass { - /// Java method `compare`. + + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public static int java.lang.CharSequence.compare(java.lang.CharSequence,java.lang.CharSequence) + /// public abstract java.lang.String java.lang.CharSequence.toString() /// ``` - @JavaStaticMethod - public func compare(_ arg0: CharSequence?, _ arg1: CharSequence?) -> Int32 + @JavaMethod + public func toString() -> String } diff --git a/Sources/SwiftJava/generated/Charset.swift b/Sources/SwiftJava/generated/Charset.swift index a9f0d8ebb..0f5b1addf 100644 --- a/Sources/SwiftJava/generated/Charset.swift +++ b/Sources/SwiftJava/generated/Charset.swift @@ -1,79 +1,80 @@ // Auto-generated by Java-to-Swift wrapper generator. import SwiftJavaJNICore -@JavaClass("java.nio.charset.Charset") -open class Charset: JavaObject { - /// Java method `name`. +extension JavaClass { + /// Java method `defaultCharset`. /// /// ### Java method signature /// ```java - /// public final java.lang.String java.nio.charset.Charset.name() + /// public static java.nio.charset.Charset java.nio.charset.Charset.defaultCharset() /// ``` - @JavaMethod - open func name() -> String + @JavaStaticMethod + public func defaultCharset() -> Charset! - /// Java method `equals`. + /// Java method `forName`. /// /// ### Java method signature /// ```java - /// public final boolean java.nio.charset.Charset.equals(java.lang.Object) + /// public static java.nio.charset.Charset java.nio.charset.Charset.forName(java.lang.String) /// ``` - @JavaMethod - open override func equals(_ arg0: JavaObject?) -> Bool + @JavaStaticMethod + public func forName(_ arg0: String) -> Charset! - /// Java method `toString`. + /// Java method `forName`. /// /// ### Java method signature /// ```java - /// public final java.lang.String java.nio.charset.Charset.toString() + /// public static java.nio.charset.Charset java.nio.charset.Charset.forName(java.lang.String,java.nio.charset.Charset) /// ``` - @JavaMethod - open override func toString() -> String + @JavaStaticMethod + public func forName(_ arg0: String, _ arg1: Charset?) -> Charset! - /// Java method `hashCode`. + /// Java method `isSupported`. /// /// ### Java method signature /// ```java - /// public final int java.nio.charset.Charset.hashCode() + /// public static boolean java.nio.charset.Charset.isSupported(java.lang.String) /// ``` - @JavaMethod - open override func hashCode() -> Int32 - - /// Java method `compareTo`. + @JavaStaticMethod + public func isSupported(_ arg0: String) -> Bool +} +@JavaClass("java.nio.charset.Charset") +open class Charset: JavaObject { + /// Java method `aliases`. /// /// ### Java method signature /// ```java - /// public int java.nio.charset.Charset.compareTo(java.lang.Object) + /// public final java.util.Set java.nio.charset.Charset.aliases() /// ``` @JavaMethod - open func compareTo(_ arg0: JavaObject?) -> Int32 + open func aliases() -> JavaSet! - /// Java method `compareTo`. + /// Java method `canEncode`. /// /// ### Java method signature /// ```java - /// public final int java.nio.charset.Charset.compareTo(java.nio.charset.Charset) + /// public boolean java.nio.charset.Charset.canEncode() /// ``` @JavaMethod - open func compareTo(_ arg0: Charset?) -> Int32 + open func canEncode() -> Bool - /// Java method `encode`. + /// Java method `compareTo`. /// /// ### Java method signature /// ```java - /// public final java.nio.ByteBuffer java.nio.charset.Charset.encode(java.lang.String) + /// public final int java.nio.charset.Charset.compareTo(java.nio.charset.Charset) /// ``` @JavaMethod - open func encode(_ arg0: String) -> ByteBuffer! + open func compareTo(_ arg0: Charset?) -> Int32 - /// Java method `canEncode`. + /// Java method `compareTo`. /// /// ### Java method signature /// ```java - /// public boolean java.nio.charset.Charset.canEncode() + /// public int java.nio.charset.Charset.compareTo(java.lang.Object) /// ``` @JavaMethod - open func canEncode() -> Bool + open func compareTo(_ arg0: JavaObject?) -> Int32 /// Java method `contains`. /// @@ -84,67 +85,66 @@ open class Charset: JavaObject { @JavaMethod open func contains(_ arg0: Charset?) -> Bool - /// Java method `isRegistered`. + /// Java method `displayName`. /// /// ### Java method signature /// ```java - /// public final boolean java.nio.charset.Charset.isRegistered() + /// public java.lang.String java.nio.charset.Charset.displayName() /// ``` @JavaMethod - open func isRegistered() -> Bool + open func displayName() -> String - /// Java method `aliases`. + /// Java method `encode`. /// /// ### Java method signature /// ```java - /// public final java.util.Set java.nio.charset.Charset.aliases() + /// public final java.nio.ByteBuffer java.nio.charset.Charset.encode(java.lang.String) /// ``` @JavaMethod - open func aliases() -> JavaSet! + open func encode(_ arg0: String) -> ByteBuffer! - /// Java method `displayName`. + /// Java method `name`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.nio.charset.Charset.displayName() + /// public final java.lang.String java.nio.charset.Charset.name() /// ``` @JavaMethod - open func displayName() -> String -} -extension JavaClass { - /// Java method `forName`. + open func name() -> String + + /// Java method `isRegistered`. /// /// ### Java method signature /// ```java - /// public static java.nio.charset.Charset java.nio.charset.Charset.forName(java.lang.String,java.nio.charset.Charset) + /// public final boolean java.nio.charset.Charset.isRegistered() /// ``` - @JavaStaticMethod - public func forName(_ arg0: String, _ arg1: Charset?) -> Charset! + @JavaMethod + open func isRegistered() -> Bool - /// Java method `forName`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public static java.nio.charset.Charset java.nio.charset.Charset.forName(java.lang.String) + /// public final boolean java.nio.charset.Charset.equals(java.lang.Object) /// ``` - @JavaStaticMethod - public func forName(_ arg0: String) -> Charset! + @JavaMethod + open override func equals(_ arg0: JavaObject?) -> Bool - /// Java method `defaultCharset`. + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public static java.nio.charset.Charset java.nio.charset.Charset.defaultCharset() + /// public final int java.nio.charset.Charset.hashCode() /// ``` - @JavaStaticMethod - public func defaultCharset() -> Charset! + @JavaMethod + open override func hashCode() -> Int32 - /// Java method `isSupported`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public static boolean java.nio.charset.Charset.isSupported(java.lang.String) + /// public final java.lang.String java.nio.charset.Charset.toString() /// ``` - @JavaStaticMethod - public func isSupported(_ arg0: String) -> Bool + @JavaMethod + open override func toString() -> String } diff --git a/Sources/SwiftJava/generated/Exception.swift b/Sources/SwiftJava/generated/Exception.swift index 6afccf5bd..ba81a60a9 100644 --- a/Sources/SwiftJava/generated/Exception.swift +++ b/Sources/SwiftJava/generated/Exception.swift @@ -4,14 +4,14 @@ import SwiftJavaJNICore @JavaClass("java.lang.Exception") open class Exception: Throwable { @JavaMethod - @_nonoverride public convenience init(_ arg0: Throwable?, environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(environment: JNIEnvironment? = nil) @JavaMethod - @_nonoverride public convenience init(_ arg0: String, _ arg1: Throwable?, environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) @JavaMethod - @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(_ arg0: String, _ arg1: Throwable?, environment: JNIEnvironment? = nil) @JavaMethod - @_nonoverride public convenience init(environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(_ arg0: Throwable?, environment: JNIEnvironment? = nil) } diff --git a/Sources/SwiftJava/generated/File.swift b/Sources/SwiftJava/generated/File.swift index 7a9b147dd..e6b681089 100644 --- a/Sources/SwiftJava/generated/File.swift +++ b/Sources/SwiftJava/generated/File.swift @@ -1,377 +1,380 @@ // Auto-generated by Java-to-Swift wrapper generator. import SwiftJavaJNICore -@JavaClass("java.io.File") -open class File: JavaObject { - @JavaMethod - @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) +extension JavaClass { + @JavaStaticField(isFinal: true) + public var pathSeparator: String - @JavaMethod - @_nonoverride public convenience init(_ arg0: String, _ arg1: String, environment: JNIEnvironment? = nil) + @JavaStaticField(isFinal: true) + public var pathSeparatorChar: UInt16 - @JavaMethod - @_nonoverride public convenience init(_ arg0: File?, _ arg1: String, environment: JNIEnvironment? = nil) + @JavaStaticField(isFinal: true) + public var separator: String - /// Java method `getName`. + @JavaStaticField(isFinal: true) + public var separatorChar: UInt16 + + /// Java method `createTempFile`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.io.File.getName() + /// public static java.io.File java.io.File.createTempFile(java.lang.String,java.lang.String) throws java.io.IOException /// ``` - @JavaMethod - open func getName() -> String + @JavaStaticMethod + public func createTempFile(_ arg0: String, _ arg1: String) throws -> File! - /// Java method `equals`. + /// Java method `createTempFile`. /// /// ### Java method signature /// ```java - /// public boolean java.io.File.equals(java.lang.Object) + /// public static java.io.File java.io.File.createTempFile(java.lang.String,java.lang.String,java.io.File) throws java.io.IOException /// ``` - @JavaMethod - open override func equals(_ arg0: JavaObject?) -> Bool + @JavaStaticMethod + public func createTempFile(_ arg0: String, _ arg1: String, _ arg2: File?) throws -> File! - /// Java method `length`. + /// Java method `listRoots`. /// /// ### Java method signature /// ```java - /// public long java.io.File.length() + /// public static java.io.File[] java.io.File.listRoots() /// ``` + @JavaStaticMethod + public func listRoots() -> [File?] +} +@JavaClass("java.io.File") +open class File: JavaObject { @JavaMethod - open func length() -> Int64 + @_nonoverride public convenience init(_ arg0: File?, _ arg1: String, environment: JNIEnvironment? = nil) - /// Java method `toString`. - /// - /// ### Java method signature - /// ```java - /// public java.lang.String java.io.File.toString() - /// ``` @JavaMethod - open override func toString() -> String + @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) - /// Java method `hashCode`. + @JavaMethod + @_nonoverride public convenience init(_ arg0: String, _ arg1: String, environment: JNIEnvironment? = nil) + + /// Java method `isAbsolute`. /// /// ### Java method signature /// ```java - /// public int java.io.File.hashCode() + /// public boolean java.io.File.isAbsolute() /// ``` @JavaMethod - open override func hashCode() -> Int32 + open func isAbsolute() -> Bool - /// Java method `isHidden`. + /// Java method `getAbsoluteFile`. /// /// ### Java method signature /// ```java - /// public boolean java.io.File.isHidden() + /// public java.io.File java.io.File.getAbsoluteFile() /// ``` @JavaMethod - open func isHidden() -> Bool + open func getAbsoluteFile() -> File! - /// Java method `compareTo`. + /// Java method `getAbsolutePath`. /// /// ### Java method signature /// ```java - /// public int java.io.File.compareTo(java.io.File) + /// public java.lang.String java.io.File.getAbsolutePath() /// ``` @JavaMethod - open func compareTo(_ arg0: File?) -> Int32 + open func getAbsolutePath() -> String - /// Java method `compareTo`. + /// Java method `canExecute`. /// /// ### Java method signature /// ```java - /// public int java.io.File.compareTo(java.lang.Object) + /// public boolean java.io.File.canExecute() /// ``` @JavaMethod - open func compareTo(_ arg0: JavaObject?) -> Int32 + open func canExecute() -> Bool - /// Java method `list`. + /// Java method `getCanonicalFile`. /// /// ### Java method signature /// ```java - /// public java.lang.String[] java.io.File.list() + /// public java.io.File java.io.File.getCanonicalFile() throws java.io.IOException /// ``` @JavaMethod - open func list() -> [String] + open func getCanonicalFile() throws -> File! - /// Java method `isAbsolute`. + /// Java method `getCanonicalPath`. /// /// ### Java method signature /// ```java - /// public boolean java.io.File.isAbsolute() + /// public java.lang.String java.io.File.getCanonicalPath() throws java.io.IOException /// ``` @JavaMethod - open func isAbsolute() -> Bool + open func getCanonicalPath() throws -> String - /// Java method `getParent`. + /// Java method `canRead`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.io.File.getParent() + /// public boolean java.io.File.canRead() /// ``` @JavaMethod - open func getParent() -> String + open func canRead() -> Bool - /// Java method `setReadOnly`. + /// Java method `canWrite`. /// /// ### Java method signature /// ```java - /// public boolean java.io.File.setReadOnly() + /// public boolean java.io.File.canWrite() /// ``` @JavaMethod - open func setReadOnly() -> Bool + open func canWrite() -> Bool - /// Java method `canRead`. + /// Java method `compareTo`. /// /// ### Java method signature /// ```java - /// public boolean java.io.File.canRead() + /// public int java.io.File.compareTo(java.io.File) /// ``` @JavaMethod - open func canRead() -> Bool + open func compareTo(_ arg0: File?) -> Int32 - /// Java method `delete`. + /// Java method `compareTo`. /// /// ### Java method signature /// ```java - /// public boolean java.io.File.delete() + /// public int java.io.File.compareTo(java.lang.Object) /// ``` @JavaMethod - open func delete() -> Bool + open func compareTo(_ arg0: JavaObject?) -> Int32 - /// Java method `getPath`. + /// Java method `createNewFile`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.io.File.getPath() + /// public boolean java.io.File.createNewFile() throws java.io.IOException /// ``` @JavaMethod - open func getPath() -> String + open func createNewFile() throws -> Bool - /// Java method `toURL`. + /// Java method `delete`. /// /// ### Java method signature /// ```java - /// public java.net.URL java.io.File.toURL() throws java.net.MalformedURLException + /// public boolean java.io.File.delete() /// ``` - @available(*, deprecated) @JavaMethod - open func toURL() throws -> JavaURL! + open func delete() -> Bool - /// Java method `getAbsolutePath`. + /// Java method `deleteOnExit`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.io.File.getAbsolutePath() + /// public void java.io.File.deleteOnExit() /// ``` @JavaMethod - open func getAbsolutePath() -> String + open func deleteOnExit() - /// Java method `exists`. + /// Java method `isDirectory`. /// /// ### Java method signature /// ```java - /// public boolean java.io.File.exists() + /// public boolean java.io.File.isDirectory() /// ``` @JavaMethod - open func exists() -> Bool + open func isDirectory() -> Bool - /// Java method `createNewFile`. + /// Java method `setExecutable`. /// /// ### Java method signature /// ```java - /// public boolean java.io.File.createNewFile() throws java.io.IOException + /// public boolean java.io.File.setExecutable(boolean) /// ``` @JavaMethod - open func createNewFile() throws -> Bool + open func setExecutable(_ arg0: Bool) -> Bool - /// Java method `renameTo`. + /// Java method `setExecutable`. /// /// ### Java method signature /// ```java - /// public boolean java.io.File.renameTo(java.io.File) + /// public boolean java.io.File.setExecutable(boolean,boolean) /// ``` @JavaMethod - open func renameTo(_ arg0: File?) -> Bool + open func setExecutable(_ arg0: Bool, _ arg1: Bool) -> Bool - /// Java method `isDirectory`. + /// Java method `exists`. /// /// ### Java method signature /// ```java - /// public boolean java.io.File.isDirectory() + /// public boolean java.io.File.exists() /// ``` @JavaMethod - open func isDirectory() -> Bool + open func exists() -> Bool - /// Java method `getCanonicalPath`. + /// Java method `isFile`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.io.File.getCanonicalPath() throws java.io.IOException + /// public boolean java.io.File.isFile() /// ``` @JavaMethod - open func getCanonicalPath() throws -> String + open func isFile() -> Bool - /// Java method `getAbsoluteFile`. + /// Java method `getFreeSpace`. /// /// ### Java method signature /// ```java - /// public java.io.File java.io.File.getAbsoluteFile() + /// public long java.io.File.getFreeSpace() /// ``` @JavaMethod - open func getAbsoluteFile() -> File! + open func getFreeSpace() -> Int64 - /// Java method `mkdir`. + /// Java method `isHidden`. /// /// ### Java method signature /// ```java - /// public boolean java.io.File.mkdir() + /// public boolean java.io.File.isHidden() /// ``` @JavaMethod - open func mkdir() -> Bool + open func isHidden() -> Bool - /// Java method `getCanonicalFile`. + /// Java method `lastModified`. /// /// ### Java method signature /// ```java - /// public java.io.File java.io.File.getCanonicalFile() throws java.io.IOException + /// public long java.io.File.lastModified() /// ``` @JavaMethod - open func getCanonicalFile() throws -> File! + open func lastModified() -> Int64 - /// Java method `getParentFile`. + /// Java method `setLastModified`. /// /// ### Java method signature /// ```java - /// public java.io.File java.io.File.getParentFile() + /// public boolean java.io.File.setLastModified(long) /// ``` @JavaMethod - open func getParentFile() -> File! + open func setLastModified(_ arg0: Int64) -> Bool - /// Java method `mkdirs`. + /// Java method `length`. /// /// ### Java method signature /// ```java - /// public boolean java.io.File.mkdirs() + /// public long java.io.File.length() /// ``` @JavaMethod - open func mkdirs() -> Bool + open func length() -> Int64 - /// Java method `setWritable`. + /// Java method `list`. /// /// ### Java method signature /// ```java - /// public boolean java.io.File.setWritable(boolean) + /// public java.lang.String[] java.io.File.list() /// ``` @JavaMethod - open func setWritable(_ arg0: Bool) -> Bool + open func list() -> [String] - /// Java method `setWritable`. + /// Java method `listFiles`. /// /// ### Java method signature /// ```java - /// public boolean java.io.File.setWritable(boolean,boolean) + /// public java.io.File[] java.io.File.listFiles() /// ``` @JavaMethod - open func setWritable(_ arg0: Bool, _ arg1: Bool) -> Bool + open func listFiles() -> [File?] - /// Java method `setReadable`. + /// Java method `mkdir`. /// /// ### Java method signature /// ```java - /// public boolean java.io.File.setReadable(boolean,boolean) + /// public boolean java.io.File.mkdir() /// ``` @JavaMethod - open func setReadable(_ arg0: Bool, _ arg1: Bool) -> Bool + open func mkdir() -> Bool - /// Java method `setReadable`. + /// Java method `mkdirs`. /// /// ### Java method signature /// ```java - /// public boolean java.io.File.setReadable(boolean) + /// public boolean java.io.File.mkdirs() /// ``` @JavaMethod - open func setReadable(_ arg0: Bool) -> Bool + open func mkdirs() -> Bool - /// Java method `setExecutable`. + /// Java method `getName`. /// /// ### Java method signature /// ```java - /// public boolean java.io.File.setExecutable(boolean,boolean) + /// public java.lang.String java.io.File.getName() /// ``` @JavaMethod - open func setExecutable(_ arg0: Bool, _ arg1: Bool) -> Bool + open func getName() -> String - /// Java method `setExecutable`. + /// Java method `getParent`. /// /// ### Java method signature /// ```java - /// public boolean java.io.File.setExecutable(boolean) + /// public java.lang.String java.io.File.getParent() /// ``` @JavaMethod - open func setExecutable(_ arg0: Bool) -> Bool + open func getParent() -> String - /// Java method `canWrite`. + /// Java method `getParentFile`. /// /// ### Java method signature /// ```java - /// public boolean java.io.File.canWrite() + /// public java.io.File java.io.File.getParentFile() /// ``` @JavaMethod - open func canWrite() -> Bool + open func getParentFile() -> File! - /// Java method `isFile`. + /// Java method `getPath`. /// /// ### Java method signature /// ```java - /// public boolean java.io.File.isFile() + /// public java.lang.String java.io.File.getPath() /// ``` @JavaMethod - open func isFile() -> Bool + open func getPath() -> String - /// Java method `lastModified`. + /// Java method `setReadable`. /// /// ### Java method signature /// ```java - /// public long java.io.File.lastModified() + /// public boolean java.io.File.setReadable(boolean) /// ``` @JavaMethod - open func lastModified() -> Int64 + open func setReadable(_ arg0: Bool) -> Bool - /// Java method `deleteOnExit`. + /// Java method `setReadable`. /// /// ### Java method signature /// ```java - /// public void java.io.File.deleteOnExit() + /// public boolean java.io.File.setReadable(boolean,boolean) /// ``` @JavaMethod - open func deleteOnExit() + open func setReadable(_ arg0: Bool, _ arg1: Bool) -> Bool - /// Java method `listFiles`. + /// Java method `setReadOnly`. /// /// ### Java method signature /// ```java - /// public java.io.File[] java.io.File.listFiles() + /// public boolean java.io.File.setReadOnly() /// ``` @JavaMethod - open func listFiles() -> [File?] + open func setReadOnly() -> Bool - /// Java method `setLastModified`. + /// Java method `renameTo`. /// /// ### Java method signature /// ```java - /// public boolean java.io.File.setLastModified(long) + /// public boolean java.io.File.renameTo(java.io.File) /// ``` @JavaMethod - open func setLastModified(_ arg0: Int64) -> Bool + open func renameTo(_ arg0: File?) -> Bool - /// Java method `canExecute`. + /// Java method `toPath`. /// /// ### Java method signature /// ```java - /// public boolean java.io.File.canExecute() + /// public java.nio.file.Path java.io.File.toPath() /// ``` @JavaMethod - open func canExecute() -> Bool + open func toPath() -> Path! /// Java method `getTotalSpace`. /// @@ -382,14 +385,15 @@ open class File: JavaObject { @JavaMethod open func getTotalSpace() -> Int64 - /// Java method `getFreeSpace`. + /// Java method `toURL`. /// /// ### Java method signature /// ```java - /// public long java.io.File.getFreeSpace() + /// public java.net.URL java.io.File.toURL() throws java.net.MalformedURLException /// ``` + @available(*, deprecated) @JavaMethod - open func getFreeSpace() -> Int64 + open func toURL() throws -> JavaURL! /// Java method `getUsableSpace`. /// @@ -400,52 +404,48 @@ open class File: JavaObject { @JavaMethod open func getUsableSpace() -> Int64 - /// Java method `toPath`. + /// Java method `setWritable`. /// /// ### Java method signature /// ```java - /// public java.nio.file.Path java.io.File.toPath() + /// public boolean java.io.File.setWritable(boolean) /// ``` @JavaMethod - open func toPath() -> Path! -} -extension JavaClass { - @JavaStaticField(isFinal: true) - public var separatorChar: UInt16 - - @JavaStaticField(isFinal: true) - public var separator: String - - @JavaStaticField(isFinal: true) - public var pathSeparatorChar: UInt16 + open func setWritable(_ arg0: Bool) -> Bool - @JavaStaticField(isFinal: true) - public var pathSeparator: String + /// Java method `setWritable`. + /// + /// ### Java method signature + /// ```java + /// public boolean java.io.File.setWritable(boolean,boolean) + /// ``` + @JavaMethod + open func setWritable(_ arg0: Bool, _ arg1: Bool) -> Bool - /// Java method `listRoots`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public static java.io.File[] java.io.File.listRoots() + /// public boolean java.io.File.equals(java.lang.Object) /// ``` - @JavaStaticMethod - public func listRoots() -> [File?] + @JavaMethod + open override func equals(_ arg0: JavaObject?) -> Bool - /// Java method `createTempFile`. + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public static java.io.File java.io.File.createTempFile(java.lang.String,java.lang.String) throws java.io.IOException + /// public int java.io.File.hashCode() /// ``` - @JavaStaticMethod - public func createTempFile(_ arg0: String, _ arg1: String) throws -> File! + @JavaMethod + open override func hashCode() -> Int32 - /// Java method `createTempFile`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public static java.io.File java.io.File.createTempFile(java.lang.String,java.lang.String,java.io.File) throws java.io.IOException + /// public java.lang.String java.io.File.toString() /// ``` - @JavaStaticMethod - public func createTempFile(_ arg0: String, _ arg1: String, _ arg2: File?) throws -> File! + @JavaMethod + open override func toString() -> String } diff --git a/Sources/SwiftJava/generated/InputStream.swift b/Sources/SwiftJava/generated/InputStream.swift index 3701d2988..386713e95 100644 --- a/Sources/SwiftJava/generated/InputStream.swift +++ b/Sources/SwiftJava/generated/InputStream.swift @@ -1,28 +1,29 @@ // Auto-generated by Java-to-Swift wrapper generator. import SwiftJavaJNICore -@JavaClass("java.io.InputStream", implements: Closeable.self) -open class InputStream: JavaObject { - @JavaMethod - @_nonoverride public convenience init(environment: JNIEnvironment? = nil) - - /// Java method `reset`. +extension JavaClass { + /// Java method `nullInputStream`. /// /// ### Java method signature /// ```java - /// public void java.io.InputStream.reset() throws java.io.IOException + /// public static java.io.InputStream java.io.InputStream.nullInputStream() /// ``` + @JavaStaticMethod + public func nullInputStream() -> InputStream! +} +@JavaClass("java.io.InputStream", implements: Closeable.self) +open class InputStream: JavaObject { @JavaMethod - open func reset() throws + @_nonoverride public convenience init(environment: JNIEnvironment? = nil) - /// Java method `readAllBytes`. + /// Java method `available`. /// /// ### Java method signature /// ```java - /// public byte[] java.io.InputStream.readAllBytes() throws java.io.IOException + /// public int java.io.InputStream.available() throws java.io.IOException /// ``` @JavaMethod - open func readAllBytes() throws -> [Int8] + open func available() throws -> Int32 /// Java method `close`. /// @@ -42,86 +43,86 @@ open class InputStream: JavaObject { @JavaMethod open func mark(_ arg0: Int32) - /// Java method `read`. + /// Java method `markSupported`. /// /// ### Java method signature /// ```java - /// public int java.io.InputStream.read(byte[]) throws java.io.IOException + /// public boolean java.io.InputStream.markSupported() /// ``` @JavaMethod - open func read(_ arg0: [Int8]) throws -> Int32 + open func markSupported() -> Bool /// Java method `read`. /// /// ### Java method signature /// ```java - /// public int java.io.InputStream.read(byte[],int,int) throws java.io.IOException + /// public abstract int java.io.InputStream.read() throws java.io.IOException /// ``` @JavaMethod - open func read(_ arg0: [Int8], _ arg1: Int32, _ arg2: Int32) throws -> Int32 + open func read() throws -> Int32 /// Java method `read`. /// /// ### Java method signature /// ```java - /// public abstract int java.io.InputStream.read() throws java.io.IOException + /// public int java.io.InputStream.read(byte[]) throws java.io.IOException /// ``` @JavaMethod - open func read() throws -> Int32 + open func read(_ arg0: [Int8]) throws -> Int32 - /// Java method `readNBytes`. + /// Java method `read`. /// /// ### Java method signature /// ```java - /// public int java.io.InputStream.readNBytes(byte[],int,int) throws java.io.IOException + /// public int java.io.InputStream.read(byte[],int,int) throws java.io.IOException /// ``` @JavaMethod - open func readNBytes(_ arg0: [Int8], _ arg1: Int32, _ arg2: Int32) throws -> Int32 + open func read(_ arg0: [Int8], _ arg1: Int32, _ arg2: Int32) throws -> Int32 - /// Java method `readNBytes`. + /// Java method `readAllBytes`. /// /// ### Java method signature /// ```java - /// public byte[] java.io.InputStream.readNBytes(int) throws java.io.IOException + /// public byte[] java.io.InputStream.readAllBytes() throws java.io.IOException /// ``` @JavaMethod - open func readNBytes(_ arg0: Int32) throws -> [Int8] + open func readAllBytes() throws -> [Int8] - /// Java method `transferTo`. + /// Java method `readNBytes`. /// /// ### Java method signature /// ```java - /// public long java.io.InputStream.transferTo(java.io.OutputStream) throws java.io.IOException + /// public byte[] java.io.InputStream.readNBytes(int) throws java.io.IOException /// ``` @JavaMethod - open func transferTo(_ arg0: OutputStream?) throws -> Int64 + open func readNBytes(_ arg0: Int32) throws -> [Int8] - /// Java method `skip`. + /// Java method `readNBytes`. /// /// ### Java method signature /// ```java - /// public long java.io.InputStream.skip(long) throws java.io.IOException + /// public int java.io.InputStream.readNBytes(byte[],int,int) throws java.io.IOException /// ``` @JavaMethod - open func skip(_ arg0: Int64) throws -> Int64 + open func readNBytes(_ arg0: [Int8], _ arg1: Int32, _ arg2: Int32) throws -> Int32 - /// Java method `available`. + /// Java method `reset`. /// /// ### Java method signature /// ```java - /// public int java.io.InputStream.available() throws java.io.IOException + /// public void java.io.InputStream.reset() throws java.io.IOException /// ``` @JavaMethod - open func available() throws -> Int32 + open func reset() throws - /// Java method `markSupported`. + /// Java method `skip`. /// /// ### Java method signature /// ```java - /// public boolean java.io.InputStream.markSupported() + /// public long java.io.InputStream.skip(long) throws java.io.IOException /// ``` @JavaMethod - open func markSupported() -> Bool + open func skip(_ arg0: Int64) throws -> Int64 /// Java method `skipNBytes`. /// @@ -131,14 +132,13 @@ open class InputStream: JavaObject { /// ``` @JavaMethod open func skipNBytes(_ arg0: Int64) throws -} -extension JavaClass { - /// Java method `nullInputStream`. + + /// Java method `transferTo`. /// /// ### Java method signature /// ```java - /// public static java.io.InputStream java.io.InputStream.nullInputStream() + /// public long java.io.InputStream.transferTo(java.io.OutputStream) throws java.io.IOException /// ``` - @JavaStaticMethod - public func nullInputStream() -> InputStream! + @JavaMethod + open func transferTo(_ arg0: OutputStream?) throws -> Int64 } diff --git a/Sources/SwiftJava/generated/JavaArray.swift b/Sources/SwiftJava/generated/JavaArray.swift index b01b2cbf2..d8a2a06c1 100644 --- a/Sources/SwiftJava/generated/JavaArray.swift +++ b/Sources/SwiftJava/generated/JavaArray.swift @@ -1,37 +1,24 @@ // Auto-generated by Java-to-Swift wrapper generator. import SwiftJavaJNICore -@JavaClass("java.lang.reflect.Array") -open class JavaArray: JavaObject { - -} extension JavaClass { - /// Java method `get`. - /// - /// ### Java method signature - /// ```java - /// public static native java.lang.Object java.lang.reflect.Array.get(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException - /// ``` - @JavaStaticMethod - public func get(_ arg0: JavaObject?, _ arg1: Int32) throws -> JavaObject! - - /// Java method `getLength`. + /// Java method `getBoolean`. /// /// ### Java method signature /// ```java - /// public static native int java.lang.reflect.Array.getLength(java.lang.Object) throws java.lang.IllegalArgumentException + /// public static native boolean java.lang.reflect.Array.getBoolean(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException /// ``` @JavaStaticMethod - public func getLength(_ arg0: JavaObject?) throws -> Int32 + public func getBoolean(_ arg0: JavaObject?, _ arg1: Int32) throws -> Bool - /// Java method `getBoolean`. + /// Java method `setBoolean`. /// /// ### Java method signature /// ```java - /// public static native boolean java.lang.reflect.Array.getBoolean(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// public static native void java.lang.reflect.Array.setBoolean(java.lang.Object,int,boolean) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException /// ``` @JavaStaticMethod - public func getBoolean(_ arg0: JavaObject?, _ arg1: Int32) throws -> Bool + public func setBoolean(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Bool) throws /// Java method `getByte`. /// @@ -42,14 +29,14 @@ extension JavaClass { @JavaStaticMethod public func getByte(_ arg0: JavaObject?, _ arg1: Int32) throws -> Int8 - /// Java method `getShort`. + /// Java method `setByte`. /// /// ### Java method signature /// ```java - /// public static native short java.lang.reflect.Array.getShort(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// public static native void java.lang.reflect.Array.setByte(java.lang.Object,int,byte) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException /// ``` @JavaStaticMethod - public func getShort(_ arg0: JavaObject?, _ arg1: Int32) throws -> Int16 + public func setByte(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Int8) throws /// Java method `getChar`. /// @@ -60,23 +47,32 @@ extension JavaClass { @JavaStaticMethod public func getChar(_ arg0: JavaObject?, _ arg1: Int32) throws -> UInt16 - /// Java method `getInt`. + /// Java method `setChar`. /// /// ### Java method signature /// ```java - /// public static native int java.lang.reflect.Array.getInt(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// public static native void java.lang.reflect.Array.setChar(java.lang.Object,int,char) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException /// ``` @JavaStaticMethod - public func getInt(_ arg0: JavaObject?, _ arg1: Int32) throws -> Int32 + public func setChar(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: UInt16) throws - /// Java method `getLong`. + /// Java method `getDouble`. /// /// ### Java method signature /// ```java - /// public static native long java.lang.reflect.Array.getLong(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// public static native double java.lang.reflect.Array.getDouble(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException /// ``` @JavaStaticMethod - public func getLong(_ arg0: JavaObject?, _ arg1: Int32) throws -> Int64 + public func getDouble(_ arg0: JavaObject?, _ arg1: Int32) throws -> Double + + /// Java method `setDouble`. + /// + /// ### Java method signature + /// ```java + /// public static native void java.lang.reflect.Array.setDouble(java.lang.Object,int,double) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// ``` + @JavaStaticMethod + public func setDouble(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Double) throws /// Java method `getFloat`. /// @@ -87,111 +83,115 @@ extension JavaClass { @JavaStaticMethod public func getFloat(_ arg0: JavaObject?, _ arg1: Int32) throws -> Float - /// Java method `getDouble`. + /// Java method `setFloat`. /// /// ### Java method signature /// ```java - /// public static native double java.lang.reflect.Array.getDouble(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// public static native void java.lang.reflect.Array.setFloat(java.lang.Object,int,float) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException /// ``` @JavaStaticMethod - public func getDouble(_ arg0: JavaObject?, _ arg1: Int32) throws -> Double + public func setFloat(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Float) throws - /// Java method `newInstance`. + /// Java method `get`. /// /// ### Java method signature /// ```java - /// public static java.lang.Object java.lang.reflect.Array.newInstance(java.lang.Class,int) throws java.lang.NegativeArraySizeException + /// public static native java.lang.Object java.lang.reflect.Array.get(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException /// ``` @JavaStaticMethod - public func newInstance(_ arg0: JavaClass?, _ arg1: Int32) throws -> JavaObject! + public func get(_ arg0: JavaObject?, _ arg1: Int32) throws -> JavaObject! - /// Java method `newInstance`. + /// Java method `getInt`. /// /// ### Java method signature /// ```java - /// public static java.lang.Object java.lang.reflect.Array.newInstance(java.lang.Class,int...) throws java.lang.IllegalArgumentException,java.lang.NegativeArraySizeException + /// public static native int java.lang.reflect.Array.getInt(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException /// ``` @JavaStaticMethod - public func newInstance(_ arg0: JavaClass?, _ arg1: [Int32]) throws -> JavaObject! + public func getInt(_ arg0: JavaObject?, _ arg1: Int32) throws -> Int32 - /// Java method `set`. + /// Java method `setInt`. /// /// ### Java method signature /// ```java - /// public static native void java.lang.reflect.Array.set(java.lang.Object,int,java.lang.Object) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// public static native void java.lang.reflect.Array.setInt(java.lang.Object,int,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException /// ``` @JavaStaticMethod - public func set(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: JavaObject?) throws + public func setInt(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Int32) throws - /// Java method `setBoolean`. + /// Java method `getLength`. /// /// ### Java method signature /// ```java - /// public static native void java.lang.reflect.Array.setBoolean(java.lang.Object,int,boolean) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// public static native int java.lang.reflect.Array.getLength(java.lang.Object) throws java.lang.IllegalArgumentException /// ``` @JavaStaticMethod - public func setBoolean(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Bool) throws + public func getLength(_ arg0: JavaObject?) throws -> Int32 - /// Java method `setByte`. + /// Java method `getLong`. /// /// ### Java method signature /// ```java - /// public static native void java.lang.reflect.Array.setByte(java.lang.Object,int,byte) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// public static native long java.lang.reflect.Array.getLong(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException /// ``` @JavaStaticMethod - public func setByte(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Int8) throws + public func getLong(_ arg0: JavaObject?, _ arg1: Int32) throws -> Int64 - /// Java method `setChar`. + /// Java method `setLong`. /// /// ### Java method signature /// ```java - /// public static native void java.lang.reflect.Array.setChar(java.lang.Object,int,char) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// public static native void java.lang.reflect.Array.setLong(java.lang.Object,int,long) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException /// ``` @JavaStaticMethod - public func setChar(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: UInt16) throws + public func setLong(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Int64) throws - /// Java method `setShort`. + /// Java method `newInstance`. /// /// ### Java method signature /// ```java - /// public static native void java.lang.reflect.Array.setShort(java.lang.Object,int,short) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// public static java.lang.Object java.lang.reflect.Array.newInstance(java.lang.Class,int) throws java.lang.NegativeArraySizeException /// ``` @JavaStaticMethod - public func setShort(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Int16) throws + public func newInstance(_ arg0: JavaClass?, _ arg1: Int32) throws -> JavaObject! - /// Java method `setInt`. + /// Java method `newInstance`. /// /// ### Java method signature /// ```java - /// public static native void java.lang.reflect.Array.setInt(java.lang.Object,int,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// public static java.lang.Object java.lang.reflect.Array.newInstance(java.lang.Class,int...) throws java.lang.IllegalArgumentException,java.lang.NegativeArraySizeException /// ``` @JavaStaticMethod - public func setInt(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Int32) throws + public func newInstance(_ arg0: JavaClass?, _ arg1: [Int32]) throws -> JavaObject! - /// Java method `setLong`. + /// Java method `set`. /// /// ### Java method signature /// ```java - /// public static native void java.lang.reflect.Array.setLong(java.lang.Object,int,long) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// public static native void java.lang.reflect.Array.set(java.lang.Object,int,java.lang.Object) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException /// ``` @JavaStaticMethod - public func setLong(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Int64) throws + public func set(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: JavaObject?) throws - /// Java method `setFloat`. + /// Java method `getShort`. /// /// ### Java method signature /// ```java - /// public static native void java.lang.reflect.Array.setFloat(java.lang.Object,int,float) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// public static native short java.lang.reflect.Array.getShort(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException /// ``` @JavaStaticMethod - public func setFloat(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Float) throws + public func getShort(_ arg0: JavaObject?, _ arg1: Int32) throws -> Int16 - /// Java method `setDouble`. + /// Java method `setShort`. /// /// ### Java method signature /// ```java - /// public static native void java.lang.reflect.Array.setDouble(java.lang.Object,int,double) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException + /// public static native void java.lang.reflect.Array.setShort(java.lang.Object,int,short) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException /// ``` @JavaStaticMethod - public func setDouble(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Double) throws + public func setShort(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Int16) throws +} +@JavaClass("java.lang.reflect.Array") +open class JavaArray: JavaObject { + } diff --git a/Sources/SwiftJava/generated/JavaBoolean.swift b/Sources/SwiftJava/generated/JavaBoolean.swift index a973ff41c..9c85a45af 100644 --- a/Sources/SwiftJava/generated/JavaBoolean.swift +++ b/Sources/SwiftJava/generated/JavaBoolean.swift @@ -1,167 +1,167 @@ // Auto-generated by Java-to-Swift wrapper generator. import SwiftJavaJNICore -@JavaClass("java.lang.Boolean") -open class JavaBoolean: JavaObject { - @available(*, deprecated) - @JavaMethod - @_nonoverride public convenience init(_ arg0: Bool, environment: JNIEnvironment? = nil) +extension JavaClass { + @JavaStaticField(isFinal: true) + public var FALSE: JavaBoolean! - @available(*, deprecated) - @JavaMethod - @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) + @JavaStaticField(isFinal: true) + public var TRUE: JavaBoolean! - /// Java method `equals`. + @JavaStaticField(isFinal: true) + public var TYPE: JavaClass! + + /// Java method `getBoolean`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.Boolean.equals(java.lang.Object) + /// public static boolean java.lang.Boolean.getBoolean(java.lang.String) /// ``` - @JavaMethod - open override func equals(_ arg0: JavaObject?) -> Bool + @JavaStaticMethod + public func getBoolean(_ arg0: String) -> Bool - /// Java method `toString`. + /// Java method `compare`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.Boolean.toString() + /// public static int java.lang.Boolean.compare(boolean,boolean) /// ``` - @JavaMethod - open override func toString() -> String + @JavaStaticMethod + public func compare(_ arg0: Bool, _ arg1: Bool) -> Int32 - /// Java method `hashCode`. + /// Java method `logicalAnd`. /// /// ### Java method signature /// ```java - /// public int java.lang.Boolean.hashCode() + /// public static boolean java.lang.Boolean.logicalAnd(boolean,boolean) /// ``` - @JavaMethod - open override func hashCode() -> Int32 + @JavaStaticMethod + public func logicalAnd(_ arg0: Bool, _ arg1: Bool) -> Bool - /// Java method `compareTo`. + /// Java method `logicalOr`. /// /// ### Java method signature /// ```java - /// public int java.lang.Boolean.compareTo(java.lang.Boolean) + /// public static boolean java.lang.Boolean.logicalOr(boolean,boolean) /// ``` - @JavaMethod - open func compareTo(_ arg0: JavaBoolean?) -> Int32 + @JavaStaticMethod + public func logicalOr(_ arg0: Bool, _ arg1: Bool) -> Bool - /// Java method `compareTo`. + /// Java method `logicalXor`. /// /// ### Java method signature /// ```java - /// public int java.lang.Boolean.compareTo(java.lang.Object) + /// public static boolean java.lang.Boolean.logicalXor(boolean,boolean) /// ``` - @JavaMethod - open func compareTo(_ arg0: JavaObject?) -> Int32 + @JavaStaticMethod + public func logicalXor(_ arg0: Bool, _ arg1: Bool) -> Bool - /// Java method `booleanValue`. + /// Java method `parseBoolean`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.Boolean.booleanValue() + /// public static boolean java.lang.Boolean.parseBoolean(java.lang.String) /// ``` - @JavaMethod - open func booleanValue() -> Bool -} -extension JavaClass { - @JavaStaticField(isFinal: true) - public var TRUE: JavaBoolean! - - @JavaStaticField(isFinal: true) - public var FALSE: JavaBoolean! - - @JavaStaticField(isFinal: true) - public var TYPE: JavaClass! + @JavaStaticMethod + public func parseBoolean(_ arg0: String) -> Bool - /// Java method `toString`. + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.Boolean.toString(boolean) + /// public static java.lang.Boolean java.lang.Boolean.valueOf(boolean) /// ``` @JavaStaticMethod - public func toString(_ arg0: Bool) -> String + public func valueOf(_ arg0: Bool) -> JavaBoolean! - /// Java method `hashCode`. + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Boolean.hashCode(boolean) + /// public static java.lang.Boolean java.lang.Boolean.valueOf(java.lang.String) /// ``` @JavaStaticMethod - public func hashCode(_ arg0: Bool) -> Int32 + public func valueOf(_ arg0: String) -> JavaBoolean! - /// Java method `getBoolean`. + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public static boolean java.lang.Boolean.getBoolean(java.lang.String) + /// public static int java.lang.Boolean.hashCode(boolean) /// ``` @JavaStaticMethod - public func getBoolean(_ arg0: String) -> Bool + public func hashCode(_ arg0: Bool) -> Int32 - /// Java method `compare`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Boolean.compare(boolean,boolean) + /// public static java.lang.String java.lang.Boolean.toString(boolean) /// ``` @JavaStaticMethod - public func compare(_ arg0: Bool, _ arg1: Bool) -> Int32 + public func toString(_ arg0: Bool) -> String +} +@JavaClass("java.lang.Boolean") +open class JavaBoolean: JavaObject { + @available(*, deprecated) + @JavaMethod + @_nonoverride public convenience init(_ arg0: Bool, environment: JNIEnvironment? = nil) - /// Java method `valueOf`. + @available(*, deprecated) + @JavaMethod + @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) + + /// Java method `booleanValue`. /// /// ### Java method signature /// ```java - /// public static java.lang.Boolean java.lang.Boolean.valueOf(java.lang.String) + /// public boolean java.lang.Boolean.booleanValue() /// ``` - @JavaStaticMethod - public func valueOf(_ arg0: String) -> JavaBoolean! + @JavaMethod + open func booleanValue() -> Bool - /// Java method `valueOf`. + /// Java method `compareTo`. /// /// ### Java method signature /// ```java - /// public static java.lang.Boolean java.lang.Boolean.valueOf(boolean) + /// public int java.lang.Boolean.compareTo(java.lang.Boolean) /// ``` - @JavaStaticMethod - public func valueOf(_ arg0: Bool) -> JavaBoolean! + @JavaMethod + open func compareTo(_ arg0: JavaBoolean?) -> Int32 - /// Java method `parseBoolean`. + /// Java method `compareTo`. /// /// ### Java method signature /// ```java - /// public static boolean java.lang.Boolean.parseBoolean(java.lang.String) + /// public int java.lang.Boolean.compareTo(java.lang.Object) /// ``` - @JavaStaticMethod - public func parseBoolean(_ arg0: String) -> Bool + @JavaMethod + open func compareTo(_ arg0: JavaObject?) -> Int32 - /// Java method `logicalAnd`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public static boolean java.lang.Boolean.logicalAnd(boolean,boolean) + /// public boolean java.lang.Boolean.equals(java.lang.Object) /// ``` - @JavaStaticMethod - public func logicalAnd(_ arg0: Bool, _ arg1: Bool) -> Bool + @JavaMethod + open override func equals(_ arg0: JavaObject?) -> Bool - /// Java method `logicalOr`. + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public static boolean java.lang.Boolean.logicalOr(boolean,boolean) + /// public int java.lang.Boolean.hashCode() /// ``` - @JavaStaticMethod - public func logicalOr(_ arg0: Bool, _ arg1: Bool) -> Bool + @JavaMethod + open override func hashCode() -> Int32 - /// Java method `logicalXor`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public static boolean java.lang.Boolean.logicalXor(boolean,boolean) + /// public java.lang.String java.lang.Boolean.toString() /// ``` - @JavaStaticMethod - public func logicalXor(_ arg0: Bool, _ arg1: Bool) -> Bool + @JavaMethod + open override func toString() -> String } diff --git a/Sources/SwiftJava/generated/JavaByte.swift b/Sources/SwiftJava/generated/JavaByte.swift index 88339d02b..944ff157f 100644 --- a/Sources/SwiftJava/generated/JavaByte.swift +++ b/Sources/SwiftJava/generated/JavaByte.swift @@ -1,130 +1,120 @@ // Auto-generated by Java-to-Swift wrapper generator. import SwiftJavaJNICore -@JavaClass("java.lang.Byte") -open class JavaByte: JavaNumber { - @available(*, deprecated) - @JavaMethod - @_nonoverride public convenience init(_ arg0: Int8, environment: JNIEnvironment? = nil) +extension JavaClass { + @JavaStaticField(isFinal: true) + public var BYTES: Int32 - @available(*, deprecated) - @JavaMethod - @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) throws + @JavaStaticField(isFinal: true) + public var MAX_VALUE: Int8 - /// Java method `equals`. + @JavaStaticField(isFinal: true) + public var MIN_VALUE: Int8 + + @JavaStaticField(isFinal: true) + public var SIZE: Int32 + + @JavaStaticField(isFinal: true) + public var TYPE: JavaClass! + + /// Java method `compare`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.Byte.equals(java.lang.Object) + /// public static int java.lang.Byte.compare(byte,byte) /// ``` - @JavaMethod - open override func equals(_ arg0: JavaObject?) -> Bool + @JavaStaticMethod + public func compare(_ arg0: Int8, _ arg1: Int8) -> Int32 - /// Java method `toString`. + /// Java method `compareUnsigned`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.Byte.toString() + /// public static int java.lang.Byte.compareUnsigned(byte,byte) /// ``` - @JavaMethod - open override func toString() -> String + @JavaStaticMethod + public func compareUnsigned(_ arg0: Int8, _ arg1: Int8) -> Int32 - /// Java method `hashCode`. + /// Java method `decode`. /// /// ### Java method signature /// ```java - /// public int java.lang.Byte.hashCode() + /// public static java.lang.Byte java.lang.Byte.decode(java.lang.String) throws java.lang.NumberFormatException /// ``` - @JavaMethod - open override func hashCode() -> Int32 + @JavaStaticMethod + public func decode(_ arg0: String) throws -> JavaByte! - /// Java method `compareTo`. + /// Java method `parseByte`. /// /// ### Java method signature /// ```java - /// public int java.lang.Byte.compareTo(java.lang.Byte) + /// public static byte java.lang.Byte.parseByte(java.lang.String) throws java.lang.NumberFormatException /// ``` - @JavaMethod - open func compareTo(_ arg0: JavaByte?) -> Int32 + @JavaStaticMethod + public func parseByte(_ arg0: String) throws -> Int8 - /// Java method `compareTo`. + /// Java method `parseByte`. /// /// ### Java method signature /// ```java - /// public int java.lang.Byte.compareTo(java.lang.Object) + /// public static byte java.lang.Byte.parseByte(java.lang.String,int) throws java.lang.NumberFormatException /// ``` - @JavaMethod - open func compareTo(_ arg0: JavaObject?) -> Int32 + @JavaStaticMethod + public func parseByte(_ arg0: String, _ arg1: Int32) throws -> Int8 - /// Java method `byteValue`. + /// Java method `toUnsignedInt`. /// /// ### Java method signature /// ```java - /// public byte java.lang.Byte.byteValue() + /// public static int java.lang.Byte.toUnsignedInt(byte) /// ``` - @JavaMethod - open override func byteValue() -> Int8 + @JavaStaticMethod + public func toUnsignedInt(_ arg0: Int8) -> Int32 - /// Java method `shortValue`. + /// Java method `toUnsignedLong`. /// /// ### Java method signature /// ```java - /// public short java.lang.Byte.shortValue() + /// public static long java.lang.Byte.toUnsignedLong(byte) /// ``` - @JavaMethod - open override func shortValue() -> Int16 + @JavaStaticMethod + public func toUnsignedLong(_ arg0: Int8) -> Int64 - /// Java method `intValue`. + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public int java.lang.Byte.intValue() + /// public static java.lang.Byte java.lang.Byte.valueOf(byte) /// ``` - @JavaMethod - open override func intValue() -> Int32 + @JavaStaticMethod + public func valueOf(_ arg0: Int8) -> JavaByte! - /// Java method `longValue`. + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public long java.lang.Byte.longValue() + /// public static java.lang.Byte java.lang.Byte.valueOf(java.lang.String) throws java.lang.NumberFormatException /// ``` - @JavaMethod - open override func longValue() -> Int64 + @JavaStaticMethod + public func valueOf(_ arg0: String) throws -> JavaByte! - /// Java method `floatValue`. + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public float java.lang.Byte.floatValue() + /// public static java.lang.Byte java.lang.Byte.valueOf(java.lang.String,int) throws java.lang.NumberFormatException /// ``` - @JavaMethod - open override func floatValue() -> Float + @JavaStaticMethod + public func valueOf(_ arg0: String, _ arg1: Int32) throws -> JavaByte! - /// Java method `doubleValue`. + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public double java.lang.Byte.doubleValue() + /// public static int java.lang.Byte.hashCode(byte) /// ``` - @JavaMethod - open override func doubleValue() -> Double -} -extension JavaClass { - @JavaStaticField(isFinal: true) - public var MIN_VALUE: Int8 - - @JavaStaticField(isFinal: true) - public var MAX_VALUE: Int8 - - @JavaStaticField(isFinal: true) - public var TYPE: JavaClass! - - @JavaStaticField(isFinal: true) - public var SIZE: Int32 - - @JavaStaticField(isFinal: true) - public var BYTES: Int32 + @JavaStaticMethod + public func hashCode(_ arg0: Int8) -> Int32 /// Java method `toString`. /// @@ -134,103 +124,113 @@ extension JavaClass { /// ``` @JavaStaticMethod public func toString(_ arg0: Int8) -> String +} +@JavaClass("java.lang.Byte") +open class JavaByte: JavaNumber { + @available(*, deprecated) + @JavaMethod + @_nonoverride public convenience init(_ arg0: Int8, environment: JNIEnvironment? = nil) - /// Java method `hashCode`. + @available(*, deprecated) + @JavaMethod + @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) throws + + /// Java method `byteValue`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Byte.hashCode(byte) + /// public byte java.lang.Byte.byteValue() /// ``` - @JavaStaticMethod - public func hashCode(_ arg0: Int8) -> Int32 + @JavaMethod + open override func byteValue() -> Int8 - /// Java method `compareUnsigned`. + /// Java method `compareTo`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Byte.compareUnsigned(byte,byte) + /// public int java.lang.Byte.compareTo(java.lang.Byte) /// ``` - @JavaStaticMethod - public func compareUnsigned(_ arg0: Int8, _ arg1: Int8) -> Int32 + @JavaMethod + open func compareTo(_ arg0: JavaByte?) -> Int32 - /// Java method `compare`. + /// Java method `compareTo`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Byte.compare(byte,byte) + /// public int java.lang.Byte.compareTo(java.lang.Object) /// ``` - @JavaStaticMethod - public func compare(_ arg0: Int8, _ arg1: Int8) -> Int32 + @JavaMethod + open func compareTo(_ arg0: JavaObject?) -> Int32 - /// Java method `valueOf`. + /// Java method `doubleValue`. /// /// ### Java method signature /// ```java - /// public static java.lang.Byte java.lang.Byte.valueOf(java.lang.String) throws java.lang.NumberFormatException + /// public double java.lang.Byte.doubleValue() /// ``` - @JavaStaticMethod - public func valueOf(_ arg0: String) throws -> JavaByte! + @JavaMethod + open override func doubleValue() -> Double - /// Java method `valueOf`. + /// Java method `floatValue`. /// /// ### Java method signature /// ```java - /// public static java.lang.Byte java.lang.Byte.valueOf(java.lang.String,int) throws java.lang.NumberFormatException + /// public float java.lang.Byte.floatValue() /// ``` - @JavaStaticMethod - public func valueOf(_ arg0: String, _ arg1: Int32) throws -> JavaByte! + @JavaMethod + open override func floatValue() -> Float - /// Java method `valueOf`. + /// Java method `intValue`. /// /// ### Java method signature /// ```java - /// public static java.lang.Byte java.lang.Byte.valueOf(byte) + /// public int java.lang.Byte.intValue() /// ``` - @JavaStaticMethod - public func valueOf(_ arg0: Int8) -> JavaByte! + @JavaMethod + open override func intValue() -> Int32 - /// Java method `decode`. + /// Java method `longValue`. /// /// ### Java method signature /// ```java - /// public static java.lang.Byte java.lang.Byte.decode(java.lang.String) throws java.lang.NumberFormatException + /// public long java.lang.Byte.longValue() /// ``` - @JavaStaticMethod - public func decode(_ arg0: String) throws -> JavaByte! + @JavaMethod + open override func longValue() -> Int64 - /// Java method `toUnsignedLong`. + /// Java method `shortValue`. /// /// ### Java method signature /// ```java - /// public static long java.lang.Byte.toUnsignedLong(byte) + /// public short java.lang.Byte.shortValue() /// ``` - @JavaStaticMethod - public func toUnsignedLong(_ arg0: Int8) -> Int64 + @JavaMethod + open override func shortValue() -> Int16 - /// Java method `toUnsignedInt`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Byte.toUnsignedInt(byte) + /// public boolean java.lang.Byte.equals(java.lang.Object) /// ``` - @JavaStaticMethod - public func toUnsignedInt(_ arg0: Int8) -> Int32 + @JavaMethod + open override func equals(_ arg0: JavaObject?) -> Bool - /// Java method `parseByte`. + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public static byte java.lang.Byte.parseByte(java.lang.String) throws java.lang.NumberFormatException + /// public int java.lang.Byte.hashCode() /// ``` - @JavaStaticMethod - public func parseByte(_ arg0: String) throws -> Int8 + @JavaMethod + open override func hashCode() -> Int32 - /// Java method `parseByte`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public static byte java.lang.Byte.parseByte(java.lang.String,int) throws java.lang.NumberFormatException + /// public java.lang.String java.lang.Byte.toString() /// ``` - @JavaStaticMethod - public func parseByte(_ arg0: String, _ arg1: Int32) throws -> Int8 + @JavaMethod + open override func toString() -> String } diff --git a/Sources/SwiftJava/generated/JavaCharacter.swift b/Sources/SwiftJava/generated/JavaCharacter.swift index 4b04c50b0..3f4b9b93b 100644 --- a/Sources/SwiftJava/generated/JavaCharacter.swift +++ b/Sources/SwiftJava/generated/JavaCharacter.swift @@ -1,2161 +1,2161 @@ // Auto-generated by Java-to-Swift wrapper generator. import SwiftJavaJNICore -@JavaClass("java.lang.Character") -open class JavaCharacter: JavaObject { - @available(*, deprecated) - @JavaMethod - @_nonoverride public convenience init(_ arg0: UInt16, environment: JNIEnvironment? = nil) - - /// Java method `equals`. - /// - /// ### Java method signature - /// ```java - /// public boolean java.lang.Character.equals(java.lang.Object) - /// ``` - @JavaMethod - open override func equals(_ arg0: JavaObject?) -> Bool - - /// Java method `toString`. - /// - /// ### Java method signature - /// ```java - /// public java.lang.String java.lang.Character.toString() - /// ``` - @JavaMethod - open override func toString() -> String - - /// Java method `hashCode`. - /// - /// ### Java method signature - /// ```java - /// public int java.lang.Character.hashCode() - /// ``` - @JavaMethod - open override func hashCode() -> Int32 - - /// Java method `compareTo`. - /// - /// ### Java method signature - /// ```java - /// public int java.lang.Character.compareTo(java.lang.Character) - /// ``` - @JavaMethod - open func compareTo(_ arg0: JavaCharacter?) -> Int32 - - /// Java method `compareTo`. - /// - /// ### Java method signature - /// ```java - /// public int java.lang.Character.compareTo(java.lang.Object) - /// ``` - @JavaMethod - open func compareTo(_ arg0: JavaObject?) -> Int32 - - /// Java method `charValue`. - /// - /// ### Java method signature - /// ```java - /// public char java.lang.Character.charValue() - /// ``` - @JavaMethod - open func charValue() -> UInt16 -} -extension JavaCharacter { - @JavaClass("java.lang.Character$Subset") - open class Subset: JavaObject { - /// Java method `equals`. - /// - /// ### Java method signature - /// ```java - /// public final boolean java.lang.Character$Subset.equals(java.lang.Object) - /// ``` - @JavaMethod - open override func equals(_ arg0: JavaObject?) -> Bool - - /// Java method `toString`. - /// - /// ### Java method signature - /// ```java - /// public final java.lang.String java.lang.Character$Subset.toString() - /// ``` - @JavaMethod - open override func toString() -> String - - /// Java method `hashCode`. - /// - /// ### Java method signature - /// ```java - /// public final int java.lang.Character$Subset.hashCode() - /// ``` - @JavaMethod - open override func hashCode() -> Int32 - } -} -extension JavaCharacter { - @JavaClass("java.lang.Character$UnicodeBlock") - open class UnicodeBlock: JavaCharacter.Subset { - - } -} -extension JavaClass { - @JavaStaticField(isFinal: true) - public var BASIC_LATIN: JavaCharacter.UnicodeBlock! - - @JavaStaticField(isFinal: true) - public var LATIN_1_SUPPLEMENT: JavaCharacter.UnicodeBlock! - +extension JavaClass { @JavaStaticField(isFinal: true) - public var LATIN_EXTENDED_A: JavaCharacter.UnicodeBlock! + public var BYTES: Int32 @JavaStaticField(isFinal: true) - public var LATIN_EXTENDED_B: JavaCharacter.UnicodeBlock! + public var COMBINING_SPACING_MARK: Int8 @JavaStaticField(isFinal: true) - public var IPA_EXTENSIONS: JavaCharacter.UnicodeBlock! + public var CONNECTOR_PUNCTUATION: Int8 @JavaStaticField(isFinal: true) - public var SPACING_MODIFIER_LETTERS: JavaCharacter.UnicodeBlock! + public var CONTROL: Int8 @JavaStaticField(isFinal: true) - public var COMBINING_DIACRITICAL_MARKS: JavaCharacter.UnicodeBlock! + public var CURRENCY_SYMBOL: Int8 @JavaStaticField(isFinal: true) - public var GREEK: JavaCharacter.UnicodeBlock! + public var DASH_PUNCTUATION: Int8 @JavaStaticField(isFinal: true) - public var CYRILLIC: JavaCharacter.UnicodeBlock! + public var DECIMAL_DIGIT_NUMBER: Int8 @JavaStaticField(isFinal: true) - public var ARMENIAN: JavaCharacter.UnicodeBlock! + public var DIRECTIONALITY_ARABIC_NUMBER: Int8 @JavaStaticField(isFinal: true) - public var HEBREW: JavaCharacter.UnicodeBlock! + public var DIRECTIONALITY_BOUNDARY_NEUTRAL: Int8 @JavaStaticField(isFinal: true) - public var ARABIC: JavaCharacter.UnicodeBlock! + public var DIRECTIONALITY_COMMON_NUMBER_SEPARATOR: Int8 @JavaStaticField(isFinal: true) - public var DEVANAGARI: JavaCharacter.UnicodeBlock! + public var DIRECTIONALITY_EUROPEAN_NUMBER: Int8 @JavaStaticField(isFinal: true) - public var BENGALI: JavaCharacter.UnicodeBlock! + public var DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR: Int8 @JavaStaticField(isFinal: true) - public var GURMUKHI: JavaCharacter.UnicodeBlock! + public var DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR: Int8 @JavaStaticField(isFinal: true) - public var GUJARATI: JavaCharacter.UnicodeBlock! + public var DIRECTIONALITY_FIRST_STRONG_ISOLATE: Int8 @JavaStaticField(isFinal: true) - public var ORIYA: JavaCharacter.UnicodeBlock! + public var DIRECTIONALITY_LEFT_TO_RIGHT: Int8 @JavaStaticField(isFinal: true) - public var TAMIL: JavaCharacter.UnicodeBlock! + public var DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING: Int8 @JavaStaticField(isFinal: true) - public var TELUGU: JavaCharacter.UnicodeBlock! + public var DIRECTIONALITY_LEFT_TO_RIGHT_ISOLATE: Int8 @JavaStaticField(isFinal: true) - public var KANNADA: JavaCharacter.UnicodeBlock! + public var DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE: Int8 @JavaStaticField(isFinal: true) - public var MALAYALAM: JavaCharacter.UnicodeBlock! + public var DIRECTIONALITY_NONSPACING_MARK: Int8 @JavaStaticField(isFinal: true) - public var THAI: JavaCharacter.UnicodeBlock! + public var DIRECTIONALITY_OTHER_NEUTRALS: Int8 @JavaStaticField(isFinal: true) - public var LAO: JavaCharacter.UnicodeBlock! + public var DIRECTIONALITY_PARAGRAPH_SEPARATOR: Int8 @JavaStaticField(isFinal: true) - public var TIBETAN: JavaCharacter.UnicodeBlock! + public var DIRECTIONALITY_POP_DIRECTIONAL_FORMAT: Int8 @JavaStaticField(isFinal: true) - public var GEORGIAN: JavaCharacter.UnicodeBlock! + public var DIRECTIONALITY_POP_DIRECTIONAL_ISOLATE: Int8 @JavaStaticField(isFinal: true) - public var HANGUL_JAMO: JavaCharacter.UnicodeBlock! + public var DIRECTIONALITY_RIGHT_TO_LEFT: Int8 @JavaStaticField(isFinal: true) - public var LATIN_EXTENDED_ADDITIONAL: JavaCharacter.UnicodeBlock! + public var DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC: Int8 @JavaStaticField(isFinal: true) - public var GREEK_EXTENDED: JavaCharacter.UnicodeBlock! + public var DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING: Int8 @JavaStaticField(isFinal: true) - public var GENERAL_PUNCTUATION: JavaCharacter.UnicodeBlock! + public var DIRECTIONALITY_RIGHT_TO_LEFT_ISOLATE: Int8 @JavaStaticField(isFinal: true) - public var SUPERSCRIPTS_AND_SUBSCRIPTS: JavaCharacter.UnicodeBlock! + public var DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE: Int8 @JavaStaticField(isFinal: true) - public var CURRENCY_SYMBOLS: JavaCharacter.UnicodeBlock! + public var DIRECTIONALITY_SEGMENT_SEPARATOR: Int8 @JavaStaticField(isFinal: true) - public var COMBINING_MARKS_FOR_SYMBOLS: JavaCharacter.UnicodeBlock! + public var DIRECTIONALITY_UNDEFINED: Int8 @JavaStaticField(isFinal: true) - public var LETTERLIKE_SYMBOLS: JavaCharacter.UnicodeBlock! + public var DIRECTIONALITY_WHITESPACE: Int8 @JavaStaticField(isFinal: true) - public var NUMBER_FORMS: JavaCharacter.UnicodeBlock! + public var ENCLOSING_MARK: Int8 @JavaStaticField(isFinal: true) - public var ARROWS: JavaCharacter.UnicodeBlock! + public var END_PUNCTUATION: Int8 @JavaStaticField(isFinal: true) - public var MATHEMATICAL_OPERATORS: JavaCharacter.UnicodeBlock! + public var FINAL_QUOTE_PUNCTUATION: Int8 @JavaStaticField(isFinal: true) - public var MISCELLANEOUS_TECHNICAL: JavaCharacter.UnicodeBlock! + public var FORMAT: Int8 @JavaStaticField(isFinal: true) - public var CONTROL_PICTURES: JavaCharacter.UnicodeBlock! + public var INITIAL_QUOTE_PUNCTUATION: Int8 @JavaStaticField(isFinal: true) - public var OPTICAL_CHARACTER_RECOGNITION: JavaCharacter.UnicodeBlock! + public var LETTER_NUMBER: Int8 @JavaStaticField(isFinal: true) - public var ENCLOSED_ALPHANUMERICS: JavaCharacter.UnicodeBlock! + public var LINE_SEPARATOR: Int8 @JavaStaticField(isFinal: true) - public var BOX_DRAWING: JavaCharacter.UnicodeBlock! + public var LOWERCASE_LETTER: Int8 @JavaStaticField(isFinal: true) - public var BLOCK_ELEMENTS: JavaCharacter.UnicodeBlock! + public var MATH_SYMBOL: Int8 @JavaStaticField(isFinal: true) - public var GEOMETRIC_SHAPES: JavaCharacter.UnicodeBlock! + public var MAX_CODE_POINT: Int32 @JavaStaticField(isFinal: true) - public var MISCELLANEOUS_SYMBOLS: JavaCharacter.UnicodeBlock! + public var MAX_HIGH_SURROGATE: UInt16 @JavaStaticField(isFinal: true) - public var DINGBATS: JavaCharacter.UnicodeBlock! + public var MAX_LOW_SURROGATE: UInt16 @JavaStaticField(isFinal: true) - public var CJK_SYMBOLS_AND_PUNCTUATION: JavaCharacter.UnicodeBlock! + public var MAX_RADIX: Int32 @JavaStaticField(isFinal: true) - public var HIRAGANA: JavaCharacter.UnicodeBlock! + public var MAX_SURROGATE: UInt16 @JavaStaticField(isFinal: true) - public var KATAKANA: JavaCharacter.UnicodeBlock! + public var MAX_VALUE: UInt16 @JavaStaticField(isFinal: true) - public var BOPOMOFO: JavaCharacter.UnicodeBlock! + public var MIN_CODE_POINT: Int32 @JavaStaticField(isFinal: true) - public var HANGUL_COMPATIBILITY_JAMO: JavaCharacter.UnicodeBlock! + public var MIN_HIGH_SURROGATE: UInt16 @JavaStaticField(isFinal: true) - public var KANBUN: JavaCharacter.UnicodeBlock! + public var MIN_LOW_SURROGATE: UInt16 @JavaStaticField(isFinal: true) - public var ENCLOSED_CJK_LETTERS_AND_MONTHS: JavaCharacter.UnicodeBlock! + public var MIN_RADIX: Int32 @JavaStaticField(isFinal: true) - public var CJK_COMPATIBILITY: JavaCharacter.UnicodeBlock! + public var MIN_SUPPLEMENTARY_CODE_POINT: Int32 @JavaStaticField(isFinal: true) - public var CJK_UNIFIED_IDEOGRAPHS: JavaCharacter.UnicodeBlock! + public var MIN_SURROGATE: UInt16 @JavaStaticField(isFinal: true) - public var HANGUL_SYLLABLES: JavaCharacter.UnicodeBlock! + public var MIN_VALUE: UInt16 @JavaStaticField(isFinal: true) - public var PRIVATE_USE_AREA: JavaCharacter.UnicodeBlock! + public var MODIFIER_LETTER: Int8 @JavaStaticField(isFinal: true) - public var CJK_COMPATIBILITY_IDEOGRAPHS: JavaCharacter.UnicodeBlock! + public var MODIFIER_SYMBOL: Int8 @JavaStaticField(isFinal: true) - public var ALPHABETIC_PRESENTATION_FORMS: JavaCharacter.UnicodeBlock! + public var NON_SPACING_MARK: Int8 @JavaStaticField(isFinal: true) - public var ARABIC_PRESENTATION_FORMS_A: JavaCharacter.UnicodeBlock! + public var OTHER_LETTER: Int8 @JavaStaticField(isFinal: true) - public var COMBINING_HALF_MARKS: JavaCharacter.UnicodeBlock! + public var OTHER_NUMBER: Int8 @JavaStaticField(isFinal: true) - public var CJK_COMPATIBILITY_FORMS: JavaCharacter.UnicodeBlock! + public var OTHER_PUNCTUATION: Int8 @JavaStaticField(isFinal: true) - public var SMALL_FORM_VARIANTS: JavaCharacter.UnicodeBlock! + public var OTHER_SYMBOL: Int8 @JavaStaticField(isFinal: true) - public var ARABIC_PRESENTATION_FORMS_B: JavaCharacter.UnicodeBlock! + public var PARAGRAPH_SEPARATOR: Int8 @JavaStaticField(isFinal: true) - public var HALFWIDTH_AND_FULLWIDTH_FORMS: JavaCharacter.UnicodeBlock! + public var PRIVATE_USE: Int8 @JavaStaticField(isFinal: true) - public var SPECIALS: JavaCharacter.UnicodeBlock! + public var SIZE: Int32 - @available(*, deprecated) @JavaStaticField(isFinal: true) - public var SURROGATES_AREA: JavaCharacter.UnicodeBlock! + public var SPACE_SEPARATOR: Int8 @JavaStaticField(isFinal: true) - public var SYRIAC: JavaCharacter.UnicodeBlock! + public var START_PUNCTUATION: Int8 @JavaStaticField(isFinal: true) - public var THAANA: JavaCharacter.UnicodeBlock! + public var SURROGATE: Int8 @JavaStaticField(isFinal: true) - public var SINHALA: JavaCharacter.UnicodeBlock! + public var TITLECASE_LETTER: Int8 @JavaStaticField(isFinal: true) - public var MYANMAR: JavaCharacter.UnicodeBlock! + public var TYPE: JavaClass! @JavaStaticField(isFinal: true) - public var ETHIOPIC: JavaCharacter.UnicodeBlock! + public var UNASSIGNED: Int8 @JavaStaticField(isFinal: true) - public var CHEROKEE: JavaCharacter.UnicodeBlock! + public var UPPERCASE_LETTER: Int8 - @JavaStaticField(isFinal: true) - public var UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS: JavaCharacter.UnicodeBlock! + /// Java method `isAlphabetic`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isAlphabetic(int) + /// ``` + @JavaStaticMethod + public func isAlphabetic(_ arg0: Int32) -> Bool - @JavaStaticField(isFinal: true) - public var OGHAM: JavaCharacter.UnicodeBlock! + /// Java method `isBmpCodePoint`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isBmpCodePoint(int) + /// ``` + @JavaStaticMethod + public func isBmpCodePoint(_ arg0: Int32) -> Bool - @JavaStaticField(isFinal: true) - public var RUNIC: JavaCharacter.UnicodeBlock! + /// Java method `charCount`. + /// + /// ### Java method signature + /// ```java + /// public static int java.lang.Character.charCount(int) + /// ``` + @JavaStaticMethod + public func charCount(_ arg0: Int32) -> Int32 - @JavaStaticField(isFinal: true) - public var KHMER: JavaCharacter.UnicodeBlock! + /// Java method `codePointAt`. + /// + /// ### Java method signature + /// ```java + /// public static int java.lang.Character.codePointAt(char[],int) + /// ``` + @JavaStaticMethod + public func codePointAt(_ arg0: [UInt16], _ arg1: Int32) -> Int32 - @JavaStaticField(isFinal: true) - public var MONGOLIAN: JavaCharacter.UnicodeBlock! + /// Java method `codePointAt`. + /// + /// ### Java method signature + /// ```java + /// public static int java.lang.Character.codePointAt(char[],int,int) + /// ``` + @JavaStaticMethod + public func codePointAt(_ arg0: [UInt16], _ arg1: Int32, _ arg2: Int32) -> Int32 - @JavaStaticField(isFinal: true) - public var BRAILLE_PATTERNS: JavaCharacter.UnicodeBlock! + /// Java method `codePointAt`. + /// + /// ### Java method signature + /// ```java + /// public static int java.lang.Character.codePointAt(java.lang.CharSequence,int) + /// ``` + @JavaStaticMethod + public func codePointAt(_ arg0: CharSequence?, _ arg1: Int32) -> Int32 - @JavaStaticField(isFinal: true) - public var CJK_RADICALS_SUPPLEMENT: JavaCharacter.UnicodeBlock! + /// Java method `codePointBefore`. + /// + /// ### Java method signature + /// ```java + /// public static int java.lang.Character.codePointBefore(char[],int) + /// ``` + @JavaStaticMethod + public func codePointBefore(_ arg0: [UInt16], _ arg1: Int32) -> Int32 - @JavaStaticField(isFinal: true) - public var KANGXI_RADICALS: JavaCharacter.UnicodeBlock! + /// Java method `codePointBefore`. + /// + /// ### Java method signature + /// ```java + /// public static int java.lang.Character.codePointBefore(char[],int,int) + /// ``` + @JavaStaticMethod + public func codePointBefore(_ arg0: [UInt16], _ arg1: Int32, _ arg2: Int32) -> Int32 - @JavaStaticField(isFinal: true) - public var IDEOGRAPHIC_DESCRIPTION_CHARACTERS: JavaCharacter.UnicodeBlock! + /// Java method `codePointBefore`. + /// + /// ### Java method signature + /// ```java + /// public static int java.lang.Character.codePointBefore(java.lang.CharSequence,int) + /// ``` + @JavaStaticMethod + public func codePointBefore(_ arg0: CharSequence?, _ arg1: Int32) -> Int32 - @JavaStaticField(isFinal: true) - public var BOPOMOFO_EXTENDED: JavaCharacter.UnicodeBlock! + /// Java method `codePointCount`. + /// + /// ### Java method signature + /// ```java + /// public static int java.lang.Character.codePointCount(char[],int,int) + /// ``` + @JavaStaticMethod + public func codePointCount(_ arg0: [UInt16], _ arg1: Int32, _ arg2: Int32) -> Int32 - @JavaStaticField(isFinal: true) - public var CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A: JavaCharacter.UnicodeBlock! + /// Java method `codePointCount`. + /// + /// ### Java method signature + /// ```java + /// public static int java.lang.Character.codePointCount(java.lang.CharSequence,int,int) + /// ``` + @JavaStaticMethod + public func codePointCount(_ arg0: CharSequence?, _ arg1: Int32, _ arg2: Int32) -> Int32 - @JavaStaticField(isFinal: true) - public var YI_SYLLABLES: JavaCharacter.UnicodeBlock! + /// Java method `codePointOf`. + /// + /// ### Java method signature + /// ```java + /// public static int java.lang.Character.codePointOf(java.lang.String) + /// ``` + @JavaStaticMethod + public func codePointOf(_ arg0: String) -> Int32 - @JavaStaticField(isFinal: true) - public var YI_RADICALS: JavaCharacter.UnicodeBlock! + /// Java method `compare`. + /// + /// ### Java method signature + /// ```java + /// public static int java.lang.Character.compare(char,char) + /// ``` + @JavaStaticMethod + public func compare(_ arg0: UInt16, _ arg1: UInt16) -> Int32 - @JavaStaticField(isFinal: true) - public var CYRILLIC_SUPPLEMENTARY: JavaCharacter.UnicodeBlock! + /// Java method `isDefined`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isDefined(char) + /// ``` + @JavaStaticMethod + public func isDefined(_ arg0: UInt16) -> Bool - @JavaStaticField(isFinal: true) - public var TAGALOG: JavaCharacter.UnicodeBlock! + /// Java method `isDefined`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isDefined(int) + /// ``` + @JavaStaticMethod + public func isDefined(_ arg0: Int32) -> Bool - @JavaStaticField(isFinal: true) - public var HANUNOO: JavaCharacter.UnicodeBlock! + /// Java method `digit`. + /// + /// ### Java method signature + /// ```java + /// public static int java.lang.Character.digit(char,int) + /// ``` + @JavaStaticMethod + public func digit(_ arg0: UInt16, _ arg1: Int32) -> Int32 - @JavaStaticField(isFinal: true) - public var BUHID: JavaCharacter.UnicodeBlock! + /// Java method `digit`. + /// + /// ### Java method signature + /// ```java + /// public static int java.lang.Character.digit(int,int) + /// ``` + @JavaStaticMethod + public func digit(_ arg0: Int32, _ arg1: Int32) -> Int32 - @JavaStaticField(isFinal: true) - public var TAGBANWA: JavaCharacter.UnicodeBlock! + /// Java method `isDigit`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isDigit(char) + /// ``` + @JavaStaticMethod + public func isDigit(_ arg0: UInt16) -> Bool - @JavaStaticField(isFinal: true) - public var LIMBU: JavaCharacter.UnicodeBlock! + /// Java method `isDigit`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isDigit(int) + /// ``` + @JavaStaticMethod + public func isDigit(_ arg0: Int32) -> Bool - @JavaStaticField(isFinal: true) - public var TAI_LE: JavaCharacter.UnicodeBlock! + /// Java method `getDirectionality`. + /// + /// ### Java method signature + /// ```java + /// public static byte java.lang.Character.getDirectionality(char) + /// ``` + @JavaStaticMethod + public func getDirectionality(_ arg0: UInt16) -> Int8 - @JavaStaticField(isFinal: true) - public var KHMER_SYMBOLS: JavaCharacter.UnicodeBlock! + /// Java method `getDirectionality`. + /// + /// ### Java method signature + /// ```java + /// public static byte java.lang.Character.getDirectionality(int) + /// ``` + @JavaStaticMethod + public func getDirectionality(_ arg0: Int32) -> Int8 - @JavaStaticField(isFinal: true) - public var PHONETIC_EXTENSIONS: JavaCharacter.UnicodeBlock! + /// Java method `isEmoji`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isEmoji(int) + /// ``` + @JavaStaticMethod + public func isEmoji(_ arg0: Int32) -> Bool - @JavaStaticField(isFinal: true) - public var MISCELLANEOUS_MATHEMATICAL_SYMBOLS_A: JavaCharacter.UnicodeBlock! + /// Java method `isEmojiComponent`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isEmojiComponent(int) + /// ``` + @JavaStaticMethod + public func isEmojiComponent(_ arg0: Int32) -> Bool - @JavaStaticField(isFinal: true) - public var SUPPLEMENTAL_ARROWS_A: JavaCharacter.UnicodeBlock! + /// Java method `isEmojiModifier`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isEmojiModifier(int) + /// ``` + @JavaStaticMethod + public func isEmojiModifier(_ arg0: Int32) -> Bool - @JavaStaticField(isFinal: true) - public var SUPPLEMENTAL_ARROWS_B: JavaCharacter.UnicodeBlock! + /// Java method `isEmojiModifierBase`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isEmojiModifierBase(int) + /// ``` + @JavaStaticMethod + public func isEmojiModifierBase(_ arg0: Int32) -> Bool - @JavaStaticField(isFinal: true) - public var MISCELLANEOUS_MATHEMATICAL_SYMBOLS_B: JavaCharacter.UnicodeBlock! + /// Java method `isEmojiPresentation`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isEmojiPresentation(int) + /// ``` + @JavaStaticMethod + public func isEmojiPresentation(_ arg0: Int32) -> Bool - @JavaStaticField(isFinal: true) - public var SUPPLEMENTAL_MATHEMATICAL_OPERATORS: JavaCharacter.UnicodeBlock! + /// Java method `isExtendedPictographic`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isExtendedPictographic(int) + /// ``` + @JavaStaticMethod + public func isExtendedPictographic(_ arg0: Int32) -> Bool + + /// Java method `forDigit`. + /// + /// ### Java method signature + /// ```java + /// public static char java.lang.Character.forDigit(int,int) + /// ``` + @JavaStaticMethod + public func forDigit(_ arg0: Int32, _ arg1: Int32) -> UInt16 + + /// Java method `highSurrogate`. + /// + /// ### Java method signature + /// ```java + /// public static char java.lang.Character.highSurrogate(int) + /// ``` + @JavaStaticMethod + public func highSurrogate(_ arg0: Int32) -> UInt16 + + /// Java method `isHighSurrogate`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isHighSurrogate(char) + /// ``` + @JavaStaticMethod + public func isHighSurrogate(_ arg0: UInt16) -> Bool + + /// Java method `isIdentifierIgnorable`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isIdentifierIgnorable(char) + /// ``` + @JavaStaticMethod + public func isIdentifierIgnorable(_ arg0: UInt16) -> Bool + + /// Java method `isIdentifierIgnorable`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isIdentifierIgnorable(int) + /// ``` + @JavaStaticMethod + public func isIdentifierIgnorable(_ arg0: Int32) -> Bool + + /// Java method `isIdeographic`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isIdeographic(int) + /// ``` + @JavaStaticMethod + public func isIdeographic(_ arg0: Int32) -> Bool + + /// Java method `isISOControl`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isISOControl(char) + /// ``` + @JavaStaticMethod + public func isISOControl(_ arg0: UInt16) -> Bool + + /// Java method `isISOControl`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isISOControl(int) + /// ``` + @JavaStaticMethod + public func isISOControl(_ arg0: Int32) -> Bool + + /// Java method `isJavaIdentifierPart`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isJavaIdentifierPart(char) + /// ``` + @JavaStaticMethod + public func isJavaIdentifierPart(_ arg0: UInt16) -> Bool + + /// Java method `isJavaIdentifierPart`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isJavaIdentifierPart(int) + /// ``` + @JavaStaticMethod + public func isJavaIdentifierPart(_ arg0: Int32) -> Bool - @JavaStaticField(isFinal: true) - public var MISCELLANEOUS_SYMBOLS_AND_ARROWS: JavaCharacter.UnicodeBlock! + /// Java method `isJavaIdentifierStart`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isJavaIdentifierStart(char) + /// ``` + @JavaStaticMethod + public func isJavaIdentifierStart(_ arg0: UInt16) -> Bool - @JavaStaticField(isFinal: true) - public var KATAKANA_PHONETIC_EXTENSIONS: JavaCharacter.UnicodeBlock! + /// Java method `isJavaIdentifierStart`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isJavaIdentifierStart(int) + /// ``` + @JavaStaticMethod + public func isJavaIdentifierStart(_ arg0: Int32) -> Bool - @JavaStaticField(isFinal: true) - public var YIJING_HEXAGRAM_SYMBOLS: JavaCharacter.UnicodeBlock! + /// Java method `isJavaLetter`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isJavaLetter(char) + /// ``` + @available(*, deprecated) + @JavaStaticMethod + public func isJavaLetter(_ arg0: UInt16) -> Bool - @JavaStaticField(isFinal: true) - public var VARIATION_SELECTORS: JavaCharacter.UnicodeBlock! + /// Java method `isJavaLetterOrDigit`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isJavaLetterOrDigit(char) + /// ``` + @available(*, deprecated) + @JavaStaticMethod + public func isJavaLetterOrDigit(_ arg0: UInt16) -> Bool - @JavaStaticField(isFinal: true) - public var LINEAR_B_SYLLABARY: JavaCharacter.UnicodeBlock! + /// Java method `isLetter`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isLetter(char) + /// ``` + @JavaStaticMethod + public func isLetter(_ arg0: UInt16) -> Bool - @JavaStaticField(isFinal: true) - public var LINEAR_B_IDEOGRAMS: JavaCharacter.UnicodeBlock! + /// Java method `isLetter`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isLetter(int) + /// ``` + @JavaStaticMethod + public func isLetter(_ arg0: Int32) -> Bool - @JavaStaticField(isFinal: true) - public var AEGEAN_NUMBERS: JavaCharacter.UnicodeBlock! + /// Java method `isLetterOrDigit`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isLetterOrDigit(char) + /// ``` + @JavaStaticMethod + public func isLetterOrDigit(_ arg0: UInt16) -> Bool - @JavaStaticField(isFinal: true) - public var OLD_ITALIC: JavaCharacter.UnicodeBlock! + /// Java method `isLetterOrDigit`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isLetterOrDigit(int) + /// ``` + @JavaStaticMethod + public func isLetterOrDigit(_ arg0: Int32) -> Bool - @JavaStaticField(isFinal: true) - public var GOTHIC: JavaCharacter.UnicodeBlock! + /// Java method `isLowerCase`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isLowerCase(char) + /// ``` + @JavaStaticMethod + public func isLowerCase(_ arg0: UInt16) -> Bool - @JavaStaticField(isFinal: true) - public var UGARITIC: JavaCharacter.UnicodeBlock! + /// Java method `isLowerCase`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isLowerCase(int) + /// ``` + @JavaStaticMethod + public func isLowerCase(_ arg0: Int32) -> Bool - @JavaStaticField(isFinal: true) - public var DESERET: JavaCharacter.UnicodeBlock! + /// Java method `isLowSurrogate`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isLowSurrogate(char) + /// ``` + @JavaStaticMethod + public func isLowSurrogate(_ arg0: UInt16) -> Bool - @JavaStaticField(isFinal: true) - public var SHAVIAN: JavaCharacter.UnicodeBlock! + /// Java method `lowSurrogate`. + /// + /// ### Java method signature + /// ```java + /// public static char java.lang.Character.lowSurrogate(int) + /// ``` + @JavaStaticMethod + public func lowSurrogate(_ arg0: Int32) -> UInt16 - @JavaStaticField(isFinal: true) - public var OSMANYA: JavaCharacter.UnicodeBlock! + /// Java method `isMirrored`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isMirrored(char) + /// ``` + @JavaStaticMethod + public func isMirrored(_ arg0: UInt16) -> Bool - @JavaStaticField(isFinal: true) - public var CYPRIOT_SYLLABARY: JavaCharacter.UnicodeBlock! + /// Java method `isMirrored`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isMirrored(int) + /// ``` + @JavaStaticMethod + public func isMirrored(_ arg0: Int32) -> Bool - @JavaStaticField(isFinal: true) - public var BYZANTINE_MUSICAL_SYMBOLS: JavaCharacter.UnicodeBlock! + /// Java method `getName`. + /// + /// ### Java method signature + /// ```java + /// public static java.lang.String java.lang.Character.getName(int) + /// ``` + @JavaStaticMethod + public func getName(_ arg0: Int32) -> String - @JavaStaticField(isFinal: true) - public var MUSICAL_SYMBOLS: JavaCharacter.UnicodeBlock! + /// Java method `getNumericValue`. + /// + /// ### Java method signature + /// ```java + /// public static int java.lang.Character.getNumericValue(char) + /// ``` + @JavaStaticMethod + public func getNumericValue(_ arg0: UInt16) -> Int32 - @JavaStaticField(isFinal: true) - public var TAI_XUAN_JING_SYMBOLS: JavaCharacter.UnicodeBlock! + /// Java method `getNumericValue`. + /// + /// ### Java method signature + /// ```java + /// public static int java.lang.Character.getNumericValue(int) + /// ``` + @JavaStaticMethod + public func getNumericValue(_ arg0: Int32) -> Int32 - @JavaStaticField(isFinal: true) - public var MATHEMATICAL_ALPHANUMERIC_SYMBOLS: JavaCharacter.UnicodeBlock! + /// Java method `offsetByCodePoints`. + /// + /// ### Java method signature + /// ```java + /// public static int java.lang.Character.offsetByCodePoints(char[],int,int,int,int) + /// ``` + @JavaStaticMethod + public func offsetByCodePoints(_ arg0: [UInt16], _ arg1: Int32, _ arg2: Int32, _ arg3: Int32, _ arg4: Int32) -> Int32 - @JavaStaticField(isFinal: true) - public var CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B: JavaCharacter.UnicodeBlock! + /// Java method `offsetByCodePoints`. + /// + /// ### Java method signature + /// ```java + /// public static int java.lang.Character.offsetByCodePoints(java.lang.CharSequence,int,int) + /// ``` + @JavaStaticMethod + public func offsetByCodePoints(_ arg0: CharSequence?, _ arg1: Int32, _ arg2: Int32) -> Int32 - @JavaStaticField(isFinal: true) - public var CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT: JavaCharacter.UnicodeBlock! + /// Java method `reverseBytes`. + /// + /// ### Java method signature + /// ```java + /// public static char java.lang.Character.reverseBytes(char) + /// ``` + @JavaStaticMethod + public func reverseBytes(_ arg0: UInt16) -> UInt16 - @JavaStaticField(isFinal: true) - public var TAGS: JavaCharacter.UnicodeBlock! + /// Java method `isSpace`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isSpace(char) + /// ``` + @available(*, deprecated) + @JavaStaticMethod + public func isSpace(_ arg0: UInt16) -> Bool - @JavaStaticField(isFinal: true) - public var VARIATION_SELECTORS_SUPPLEMENT: JavaCharacter.UnicodeBlock! + /// Java method `isSpaceChar`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isSpaceChar(char) + /// ``` + @JavaStaticMethod + public func isSpaceChar(_ arg0: UInt16) -> Bool - @JavaStaticField(isFinal: true) - public var SUPPLEMENTARY_PRIVATE_USE_AREA_A: JavaCharacter.UnicodeBlock! + /// Java method `isSpaceChar`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isSpaceChar(int) + /// ``` + @JavaStaticMethod + public func isSpaceChar(_ arg0: Int32) -> Bool - @JavaStaticField(isFinal: true) - public var SUPPLEMENTARY_PRIVATE_USE_AREA_B: JavaCharacter.UnicodeBlock! + /// Java method `isSupplementaryCodePoint`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isSupplementaryCodePoint(int) + /// ``` + @JavaStaticMethod + public func isSupplementaryCodePoint(_ arg0: Int32) -> Bool - @JavaStaticField(isFinal: true) - public var HIGH_SURROGATES: JavaCharacter.UnicodeBlock! + /// Java method `isSurrogate`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isSurrogate(char) + /// ``` + @JavaStaticMethod + public func isSurrogate(_ arg0: UInt16) -> Bool - @JavaStaticField(isFinal: true) - public var HIGH_PRIVATE_USE_SURROGATES: JavaCharacter.UnicodeBlock! + /// Java method `isSurrogatePair`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isSurrogatePair(char,char) + /// ``` + @JavaStaticMethod + public func isSurrogatePair(_ arg0: UInt16, _ arg1: UInt16) -> Bool - @JavaStaticField(isFinal: true) - public var LOW_SURROGATES: JavaCharacter.UnicodeBlock! + /// Java method `isTitleCase`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isTitleCase(char) + /// ``` + @JavaStaticMethod + public func isTitleCase(_ arg0: UInt16) -> Bool - @JavaStaticField(isFinal: true) - public var ARABIC_SUPPLEMENT: JavaCharacter.UnicodeBlock! + /// Java method `isTitleCase`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isTitleCase(int) + /// ``` + @JavaStaticMethod + public func isTitleCase(_ arg0: Int32) -> Bool - @JavaStaticField(isFinal: true) - public var NKO: JavaCharacter.UnicodeBlock! + /// Java method `toChars`. + /// + /// ### Java method signature + /// ```java + /// public static char[] java.lang.Character.toChars(int) + /// ``` + @JavaStaticMethod + public func toChars(_ arg0: Int32) -> [UInt16] - @JavaStaticField(isFinal: true) - public var SAMARITAN: JavaCharacter.UnicodeBlock! + /// Java method `toChars`. + /// + /// ### Java method signature + /// ```java + /// public static int java.lang.Character.toChars(int,char[],int) + /// ``` + @JavaStaticMethod + public func toChars(_ arg0: Int32, _ arg1: [UInt16], _ arg2: Int32) -> Int32 - @JavaStaticField(isFinal: true) - public var MANDAIC: JavaCharacter.UnicodeBlock! + /// Java method `toCodePoint`. + /// + /// ### Java method signature + /// ```java + /// public static int java.lang.Character.toCodePoint(char,char) + /// ``` + @JavaStaticMethod + public func toCodePoint(_ arg0: UInt16, _ arg1: UInt16) -> Int32 - @JavaStaticField(isFinal: true) - public var ETHIOPIC_SUPPLEMENT: JavaCharacter.UnicodeBlock! + /// Java method `toLowerCase`. + /// + /// ### Java method signature + /// ```java + /// public static char java.lang.Character.toLowerCase(char) + /// ``` + @JavaStaticMethod + public func toLowerCase(_ arg0: UInt16) -> UInt16 - @JavaStaticField(isFinal: true) - public var UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED: JavaCharacter.UnicodeBlock! + /// Java method `toLowerCase`. + /// + /// ### Java method signature + /// ```java + /// public static int java.lang.Character.toLowerCase(int) + /// ``` + @JavaStaticMethod + public func toLowerCase(_ arg0: Int32) -> Int32 - @JavaStaticField(isFinal: true) - public var NEW_TAI_LUE: JavaCharacter.UnicodeBlock! + /// Java method `toTitleCase`. + /// + /// ### Java method signature + /// ```java + /// public static char java.lang.Character.toTitleCase(char) + /// ``` + @JavaStaticMethod + public func toTitleCase(_ arg0: UInt16) -> UInt16 - @JavaStaticField(isFinal: true) - public var BUGINESE: JavaCharacter.UnicodeBlock! + /// Java method `toTitleCase`. + /// + /// ### Java method signature + /// ```java + /// public static int java.lang.Character.toTitleCase(int) + /// ``` + @JavaStaticMethod + public func toTitleCase(_ arg0: Int32) -> Int32 - @JavaStaticField(isFinal: true) - public var TAI_THAM: JavaCharacter.UnicodeBlock! + /// Java method `toUpperCase`. + /// + /// ### Java method signature + /// ```java + /// public static char java.lang.Character.toUpperCase(char) + /// ``` + @JavaStaticMethod + public func toUpperCase(_ arg0: UInt16) -> UInt16 - @JavaStaticField(isFinal: true) - public var BALINESE: JavaCharacter.UnicodeBlock! + /// Java method `toUpperCase`. + /// + /// ### Java method signature + /// ```java + /// public static int java.lang.Character.toUpperCase(int) + /// ``` + @JavaStaticMethod + public func toUpperCase(_ arg0: Int32) -> Int32 - @JavaStaticField(isFinal: true) - public var SUNDANESE: JavaCharacter.UnicodeBlock! + /// Java method `getType`. + /// + /// ### Java method signature + /// ```java + /// public static int java.lang.Character.getType(char) + /// ``` + @JavaStaticMethod + public func getType(_ arg0: UInt16) -> Int32 - @JavaStaticField(isFinal: true) - public var BATAK: JavaCharacter.UnicodeBlock! + /// Java method `getType`. + /// + /// ### Java method signature + /// ```java + /// public static int java.lang.Character.getType(int) + /// ``` + @JavaStaticMethod + public func getType(_ arg0: Int32) -> Int32 - @JavaStaticField(isFinal: true) - public var LEPCHA: JavaCharacter.UnicodeBlock! + /// Java method `isUnicodeIdentifierPart`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isUnicodeIdentifierPart(char) + /// ``` + @JavaStaticMethod + public func isUnicodeIdentifierPart(_ arg0: UInt16) -> Bool - @JavaStaticField(isFinal: true) - public var OL_CHIKI: JavaCharacter.UnicodeBlock! + /// Java method `isUnicodeIdentifierPart`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isUnicodeIdentifierPart(int) + /// ``` + @JavaStaticMethod + public func isUnicodeIdentifierPart(_ arg0: Int32) -> Bool - @JavaStaticField(isFinal: true) - public var VEDIC_EXTENSIONS: JavaCharacter.UnicodeBlock! + /// Java method `isUnicodeIdentifierStart`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isUnicodeIdentifierStart(char) + /// ``` + @JavaStaticMethod + public func isUnicodeIdentifierStart(_ arg0: UInt16) -> Bool - @JavaStaticField(isFinal: true) - public var PHONETIC_EXTENSIONS_SUPPLEMENT: JavaCharacter.UnicodeBlock! + /// Java method `isUnicodeIdentifierStart`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isUnicodeIdentifierStart(int) + /// ``` + @JavaStaticMethod + public func isUnicodeIdentifierStart(_ arg0: Int32) -> Bool - @JavaStaticField(isFinal: true) - public var COMBINING_DIACRITICAL_MARKS_SUPPLEMENT: JavaCharacter.UnicodeBlock! + /// Java method `isUpperCase`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isUpperCase(char) + /// ``` + @JavaStaticMethod + public func isUpperCase(_ arg0: UInt16) -> Bool - @JavaStaticField(isFinal: true) - public var GLAGOLITIC: JavaCharacter.UnicodeBlock! + /// Java method `isUpperCase`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isUpperCase(int) + /// ``` + @JavaStaticMethod + public func isUpperCase(_ arg0: Int32) -> Bool - @JavaStaticField(isFinal: true) - public var LATIN_EXTENDED_C: JavaCharacter.UnicodeBlock! + /// Java method `isValidCodePoint`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isValidCodePoint(int) + /// ``` + @JavaStaticMethod + public func isValidCodePoint(_ arg0: Int32) -> Bool - @JavaStaticField(isFinal: true) - public var COPTIC: JavaCharacter.UnicodeBlock! + /// Java method `valueOf`. + /// + /// ### Java method signature + /// ```java + /// public static java.lang.Character java.lang.Character.valueOf(char) + /// ``` + @JavaStaticMethod + public func valueOf(_ arg0: UInt16) -> JavaCharacter! - @JavaStaticField(isFinal: true) - public var GEORGIAN_SUPPLEMENT: JavaCharacter.UnicodeBlock! + /// Java method `isWhitespace`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isWhitespace(char) + /// ``` + @JavaStaticMethod + public func isWhitespace(_ arg0: UInt16) -> Bool - @JavaStaticField(isFinal: true) - public var TIFINAGH: JavaCharacter.UnicodeBlock! + /// Java method `isWhitespace`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Character.isWhitespace(int) + /// ``` + @JavaStaticMethod + public func isWhitespace(_ arg0: Int32) -> Bool - @JavaStaticField(isFinal: true) - public var ETHIOPIC_EXTENDED: JavaCharacter.UnicodeBlock! + /// Java method `hashCode`. + /// + /// ### Java method signature + /// ```java + /// public static int java.lang.Character.hashCode(char) + /// ``` + @JavaStaticMethod + public func hashCode(_ arg0: UInt16) -> Int32 - @JavaStaticField(isFinal: true) - public var CYRILLIC_EXTENDED_A: JavaCharacter.UnicodeBlock! + /// Java method `toString`. + /// + /// ### Java method signature + /// ```java + /// public static java.lang.String java.lang.Character.toString(char) + /// ``` + @JavaStaticMethod + public func toString(_ arg0: UInt16) -> String - @JavaStaticField(isFinal: true) - public var SUPPLEMENTAL_PUNCTUATION: JavaCharacter.UnicodeBlock! + /// Java method `toString`. + /// + /// ### Java method signature + /// ```java + /// public static java.lang.String java.lang.Character.toString(int) + /// ``` + @JavaStaticMethod + public func toString(_ arg0: Int32) -> String +} +@JavaClass("java.lang.Character") +open class JavaCharacter: JavaObject { + @available(*, deprecated) + @JavaMethod + @_nonoverride public convenience init(_ arg0: UInt16, environment: JNIEnvironment? = nil) - @JavaStaticField(isFinal: true) - public var CJK_STROKES: JavaCharacter.UnicodeBlock! + /// Java method `charValue`. + /// + /// ### Java method signature + /// ```java + /// public char java.lang.Character.charValue() + /// ``` + @JavaMethod + open func charValue() -> UInt16 - @JavaStaticField(isFinal: true) - public var LISU: JavaCharacter.UnicodeBlock! + /// Java method `compareTo`. + /// + /// ### Java method signature + /// ```java + /// public int java.lang.Character.compareTo(java.lang.Character) + /// ``` + @JavaMethod + open func compareTo(_ arg0: JavaCharacter?) -> Int32 - @JavaStaticField(isFinal: true) - public var VAI: JavaCharacter.UnicodeBlock! + /// Java method `compareTo`. + /// + /// ### Java method signature + /// ```java + /// public int java.lang.Character.compareTo(java.lang.Object) + /// ``` + @JavaMethod + open func compareTo(_ arg0: JavaObject?) -> Int32 - @JavaStaticField(isFinal: true) - public var CYRILLIC_EXTENDED_B: JavaCharacter.UnicodeBlock! + /// Java method `equals`. + /// + /// ### Java method signature + /// ```java + /// public boolean java.lang.Character.equals(java.lang.Object) + /// ``` + @JavaMethod + open override func equals(_ arg0: JavaObject?) -> Bool - @JavaStaticField(isFinal: true) - public var BAMUM: JavaCharacter.UnicodeBlock! + /// Java method `hashCode`. + /// + /// ### Java method signature + /// ```java + /// public int java.lang.Character.hashCode() + /// ``` + @JavaMethod + open override func hashCode() -> Int32 - @JavaStaticField(isFinal: true) - public var MODIFIER_TONE_LETTERS: JavaCharacter.UnicodeBlock! + /// Java method `toString`. + /// + /// ### Java method signature + /// ```java + /// public java.lang.String java.lang.Character.toString() + /// ``` + @JavaMethod + open override func toString() -> String +} +extension JavaCharacter { + @JavaClass("java.lang.Character$Subset") + open class Subset: JavaObject { + /// Java method `equals`. + /// + /// ### Java method signature + /// ```java + /// public final boolean java.lang.Character$Subset.equals(java.lang.Object) + /// ``` + @JavaMethod + open override func equals(_ arg0: JavaObject?) -> Bool - @JavaStaticField(isFinal: true) - public var LATIN_EXTENDED_D: JavaCharacter.UnicodeBlock! + /// Java method `hashCode`. + /// + /// ### Java method signature + /// ```java + /// public final int java.lang.Character$Subset.hashCode() + /// ``` + @JavaMethod + open override func hashCode() -> Int32 + /// Java method `toString`. + /// + /// ### Java method signature + /// ```java + /// public final java.lang.String java.lang.Character$Subset.toString() + /// ``` + @JavaMethod + open override func toString() -> String + } +} +extension JavaClass { @JavaStaticField(isFinal: true) - public var SYLOTI_NAGRI: JavaCharacter.UnicodeBlock! + public var ADLAM: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var COMMON_INDIC_NUMBER_FORMS: JavaCharacter.UnicodeBlock! + public var AEGEAN_NUMBERS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var PHAGS_PA: JavaCharacter.UnicodeBlock! + public var AHOM: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var SAURASHTRA: JavaCharacter.UnicodeBlock! + public var ALCHEMICAL_SYMBOLS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DEVANAGARI_EXTENDED: JavaCharacter.UnicodeBlock! + public var ALPHABETIC_PRESENTATION_FORMS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var KAYAH_LI: JavaCharacter.UnicodeBlock! + public var ANATOLIAN_HIEROGLYPHS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var REJANG: JavaCharacter.UnicodeBlock! + public var ANCIENT_GREEK_MUSICAL_NOTATION: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var HANGUL_JAMO_EXTENDED_A: JavaCharacter.UnicodeBlock! + public var ANCIENT_GREEK_NUMBERS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var JAVANESE: JavaCharacter.UnicodeBlock! + public var ANCIENT_SYMBOLS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var CHAM: JavaCharacter.UnicodeBlock! + public var ARABIC: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MYANMAR_EXTENDED_A: JavaCharacter.UnicodeBlock! + public var ARABIC_EXTENDED_A: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var TAI_VIET: JavaCharacter.UnicodeBlock! + public var ARABIC_EXTENDED_B: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var ETHIOPIC_EXTENDED_A: JavaCharacter.UnicodeBlock! + public var ARABIC_EXTENDED_C: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MEETEI_MAYEK: JavaCharacter.UnicodeBlock! + public var ARABIC_MATHEMATICAL_ALPHABETIC_SYMBOLS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var HANGUL_JAMO_EXTENDED_B: JavaCharacter.UnicodeBlock! + public var ARABIC_PRESENTATION_FORMS_A: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var VERTICAL_FORMS: JavaCharacter.UnicodeBlock! + public var ARABIC_PRESENTATION_FORMS_B: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var ANCIENT_GREEK_NUMBERS: JavaCharacter.UnicodeBlock! + public var ARABIC_SUPPLEMENT: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var ANCIENT_SYMBOLS: JavaCharacter.UnicodeBlock! + public var ARMENIAN: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var PHAISTOS_DISC: JavaCharacter.UnicodeBlock! + public var ARROWS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var LYCIAN: JavaCharacter.UnicodeBlock! + public var AVESTAN: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var CARIAN: JavaCharacter.UnicodeBlock! + public var BALINESE: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var OLD_PERSIAN: JavaCharacter.UnicodeBlock! + public var BAMUM: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var IMPERIAL_ARAMAIC: JavaCharacter.UnicodeBlock! + public var BAMUM_SUPPLEMENT: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var PHOENICIAN: JavaCharacter.UnicodeBlock! + public var BASIC_LATIN: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var LYDIAN: JavaCharacter.UnicodeBlock! + public var BASSA_VAH: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var KHAROSHTHI: JavaCharacter.UnicodeBlock! + public var BATAK: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var OLD_SOUTH_ARABIAN: JavaCharacter.UnicodeBlock! + public var BENGALI: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var AVESTAN: JavaCharacter.UnicodeBlock! + public var BHAIKSUKI: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var INSCRIPTIONAL_PARTHIAN: JavaCharacter.UnicodeBlock! + public var BLOCK_ELEMENTS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var INSCRIPTIONAL_PAHLAVI: JavaCharacter.UnicodeBlock! + public var BOPOMOFO: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var OLD_TURKIC: JavaCharacter.UnicodeBlock! + public var BOPOMOFO_EXTENDED: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var RUMI_NUMERAL_SYMBOLS: JavaCharacter.UnicodeBlock! + public var BOX_DRAWING: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) public var BRAHMI: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var KAITHI: JavaCharacter.UnicodeBlock! + public var BRAILLE_PATTERNS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var CUNEIFORM: JavaCharacter.UnicodeBlock! + public var BUGINESE: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var CUNEIFORM_NUMBERS_AND_PUNCTUATION: JavaCharacter.UnicodeBlock! + public var BUHID: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var EGYPTIAN_HIEROGLYPHS: JavaCharacter.UnicodeBlock! + public var BYZANTINE_MUSICAL_SYMBOLS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var BAMUM_SUPPLEMENT: JavaCharacter.UnicodeBlock! + public var CARIAN: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var KANA_SUPPLEMENT: JavaCharacter.UnicodeBlock! + public var CAUCASIAN_ALBANIAN: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var ANCIENT_GREEK_MUSICAL_NOTATION: JavaCharacter.UnicodeBlock! + public var CHAKMA: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var COUNTING_ROD_NUMERALS: JavaCharacter.UnicodeBlock! + public var CHAM: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MAHJONG_TILES: JavaCharacter.UnicodeBlock! + public var CHEROKEE: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DOMINO_TILES: JavaCharacter.UnicodeBlock! + public var CHEROKEE_SUPPLEMENT: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var PLAYING_CARDS: JavaCharacter.UnicodeBlock! + public var CHESS_SYMBOLS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var ENCLOSED_ALPHANUMERIC_SUPPLEMENT: JavaCharacter.UnicodeBlock! + public var CHORASMIAN: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var ENCLOSED_IDEOGRAPHIC_SUPPLEMENT: JavaCharacter.UnicodeBlock! + public var CJK_COMPATIBILITY: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MISCELLANEOUS_SYMBOLS_AND_PICTOGRAPHS: JavaCharacter.UnicodeBlock! + public var CJK_COMPATIBILITY_FORMS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var EMOTICONS: JavaCharacter.UnicodeBlock! + public var CJK_COMPATIBILITY_IDEOGRAPHS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var TRANSPORT_AND_MAP_SYMBOLS: JavaCharacter.UnicodeBlock! + public var CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var ALCHEMICAL_SYMBOLS: JavaCharacter.UnicodeBlock! + public var CJK_RADICALS_SUPPLEMENT: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C: JavaCharacter.UnicodeBlock! + public var CJK_STROKES: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var CJK_UNIFIED_IDEOGRAPHS_EXTENSION_D: JavaCharacter.UnicodeBlock! + public var CJK_SYMBOLS_AND_PUNCTUATION: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var ARABIC_EXTENDED_A: JavaCharacter.UnicodeBlock! + public var CJK_UNIFIED_IDEOGRAPHS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var SUNDANESE_SUPPLEMENT: JavaCharacter.UnicodeBlock! + public var CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MEETEI_MAYEK_EXTENSIONS: JavaCharacter.UnicodeBlock! + public var CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MEROITIC_HIEROGLYPHS: JavaCharacter.UnicodeBlock! + public var CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MEROITIC_CURSIVE: JavaCharacter.UnicodeBlock! + public var CJK_UNIFIED_IDEOGRAPHS_EXTENSION_D: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var SORA_SOMPENG: JavaCharacter.UnicodeBlock! + public var CJK_UNIFIED_IDEOGRAPHS_EXTENSION_E: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var CHAKMA: JavaCharacter.UnicodeBlock! + public var CJK_UNIFIED_IDEOGRAPHS_EXTENSION_F: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var SHARADA: JavaCharacter.UnicodeBlock! + public var CJK_UNIFIED_IDEOGRAPHS_EXTENSION_G: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var TAKRI: JavaCharacter.UnicodeBlock! + public var CJK_UNIFIED_IDEOGRAPHS_EXTENSION_H: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MIAO: JavaCharacter.UnicodeBlock! + public var CJK_UNIFIED_IDEOGRAPHS_EXTENSION_I: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var ARABIC_MATHEMATICAL_ALPHABETIC_SYMBOLS: JavaCharacter.UnicodeBlock! + public var COMBINING_DIACRITICAL_MARKS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) public var COMBINING_DIACRITICAL_MARKS_EXTENDED: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MYANMAR_EXTENDED_B: JavaCharacter.UnicodeBlock! - - @JavaStaticField(isFinal: true) - public var LATIN_EXTENDED_E: JavaCharacter.UnicodeBlock! - - @JavaStaticField(isFinal: true) - public var COPTIC_EPACT_NUMBERS: JavaCharacter.UnicodeBlock! + public var COMBINING_DIACRITICAL_MARKS_SUPPLEMENT: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var OLD_PERMIC: JavaCharacter.UnicodeBlock! + public var COMBINING_HALF_MARKS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var ELBASAN: JavaCharacter.UnicodeBlock! + public var COMBINING_MARKS_FOR_SYMBOLS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var CAUCASIAN_ALBANIAN: JavaCharacter.UnicodeBlock! + public var COMMON_INDIC_NUMBER_FORMS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var LINEAR_A: JavaCharacter.UnicodeBlock! + public var CONTROL_PICTURES: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var PALMYRENE: JavaCharacter.UnicodeBlock! + public var COPTIC: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var NABATAEAN: JavaCharacter.UnicodeBlock! + public var COPTIC_EPACT_NUMBERS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var OLD_NORTH_ARABIAN: JavaCharacter.UnicodeBlock! + public var COUNTING_ROD_NUMERALS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MANICHAEAN: JavaCharacter.UnicodeBlock! + public var CUNEIFORM: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var PSALTER_PAHLAVI: JavaCharacter.UnicodeBlock! + public var CUNEIFORM_NUMBERS_AND_PUNCTUATION: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MAHAJANI: JavaCharacter.UnicodeBlock! + public var CURRENCY_SYMBOLS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var SINHALA_ARCHAIC_NUMBERS: JavaCharacter.UnicodeBlock! + public var CYPRIOT_SYLLABARY: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var KHOJKI: JavaCharacter.UnicodeBlock! + public var CYPRO_MINOAN: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var KHUDAWADI: JavaCharacter.UnicodeBlock! + public var CYRILLIC: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var GRANTHA: JavaCharacter.UnicodeBlock! + public var CYRILLIC_EXTENDED_A: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var TIRHUTA: JavaCharacter.UnicodeBlock! + public var CYRILLIC_EXTENDED_B: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var SIDDHAM: JavaCharacter.UnicodeBlock! + public var CYRILLIC_EXTENDED_C: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MODI: JavaCharacter.UnicodeBlock! + public var CYRILLIC_EXTENDED_D: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var WARANG_CITI: JavaCharacter.UnicodeBlock! + public var CYRILLIC_SUPPLEMENTARY: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var PAU_CIN_HAU: JavaCharacter.UnicodeBlock! + public var DESERET: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MRO: JavaCharacter.UnicodeBlock! + public var DEVANAGARI: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var BASSA_VAH: JavaCharacter.UnicodeBlock! + public var DEVANAGARI_EXTENDED: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var PAHAWH_HMONG: JavaCharacter.UnicodeBlock! + public var DEVANAGARI_EXTENDED_A: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DUPLOYAN: JavaCharacter.UnicodeBlock! + public var DINGBATS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var SHORTHAND_FORMAT_CONTROLS: JavaCharacter.UnicodeBlock! + public var DIVES_AKURU: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MENDE_KIKAKUI: JavaCharacter.UnicodeBlock! + public var DOGRA: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var ORNAMENTAL_DINGBATS: JavaCharacter.UnicodeBlock! + public var DOMINO_TILES: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var GEOMETRIC_SHAPES_EXTENDED: JavaCharacter.UnicodeBlock! + public var DUPLOYAN: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var SUPPLEMENTAL_ARROWS_C: JavaCharacter.UnicodeBlock! + public var EARLY_DYNASTIC_CUNEIFORM: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var CHEROKEE_SUPPLEMENT: JavaCharacter.UnicodeBlock! + public var EGYPTIAN_HIEROGLYPHS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var HATRAN: JavaCharacter.UnicodeBlock! + public var EGYPTIAN_HIEROGLYPHS_EXTENDED_A: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var OLD_HUNGARIAN: JavaCharacter.UnicodeBlock! + public var EGYPTIAN_HIEROGLYPH_FORMAT_CONTROLS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MULTANI: JavaCharacter.UnicodeBlock! + public var ELBASAN: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var AHOM: JavaCharacter.UnicodeBlock! + public var ELYMAIC: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var EARLY_DYNASTIC_CUNEIFORM: JavaCharacter.UnicodeBlock! + public var EMOTICONS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var ANATOLIAN_HIEROGLYPHS: JavaCharacter.UnicodeBlock! + public var ENCLOSED_ALPHANUMERICS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var SUTTON_SIGNWRITING: JavaCharacter.UnicodeBlock! + public var ENCLOSED_ALPHANUMERIC_SUPPLEMENT: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var SUPPLEMENTAL_SYMBOLS_AND_PICTOGRAPHS: JavaCharacter.UnicodeBlock! + public var ENCLOSED_CJK_LETTERS_AND_MONTHS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var CJK_UNIFIED_IDEOGRAPHS_EXTENSION_E: JavaCharacter.UnicodeBlock! + public var ENCLOSED_IDEOGRAPHIC_SUPPLEMENT: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var SYRIAC_SUPPLEMENT: JavaCharacter.UnicodeBlock! + public var ETHIOPIC: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var CYRILLIC_EXTENDED_C: JavaCharacter.UnicodeBlock! + public var ETHIOPIC_EXTENDED: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var OSAGE: JavaCharacter.UnicodeBlock! + public var ETHIOPIC_EXTENDED_A: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var NEWA: JavaCharacter.UnicodeBlock! + public var ETHIOPIC_EXTENDED_B: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MONGOLIAN_SUPPLEMENT: JavaCharacter.UnicodeBlock! + public var ETHIOPIC_SUPPLEMENT: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MARCHEN: JavaCharacter.UnicodeBlock! + public var GARAY: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var IDEOGRAPHIC_SYMBOLS_AND_PUNCTUATION: JavaCharacter.UnicodeBlock! + public var GENERAL_PUNCTUATION: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var TANGUT: JavaCharacter.UnicodeBlock! + public var GEOMETRIC_SHAPES: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var TANGUT_COMPONENTS: JavaCharacter.UnicodeBlock! + public var GEOMETRIC_SHAPES_EXTENDED: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var KANA_EXTENDED_A: JavaCharacter.UnicodeBlock! + public var GEORGIAN: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var GLAGOLITIC_SUPPLEMENT: JavaCharacter.UnicodeBlock! + public var GEORGIAN_EXTENDED: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var ADLAM: JavaCharacter.UnicodeBlock! + public var GEORGIAN_SUPPLEMENT: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MASARAM_GONDI: JavaCharacter.UnicodeBlock! + public var GLAGOLITIC: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var ZANABAZAR_SQUARE: JavaCharacter.UnicodeBlock! + public var GLAGOLITIC_SUPPLEMENT: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var NUSHU: JavaCharacter.UnicodeBlock! + public var GOTHIC: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var SOYOMBO: JavaCharacter.UnicodeBlock! + public var GRANTHA: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var BHAIKSUKI: JavaCharacter.UnicodeBlock! + public var GREEK: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var CJK_UNIFIED_IDEOGRAPHS_EXTENSION_F: JavaCharacter.UnicodeBlock! + public var GREEK_EXTENDED: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var GEORGIAN_EXTENDED: JavaCharacter.UnicodeBlock! + public var GUJARATI: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var HANIFI_ROHINGYA: JavaCharacter.UnicodeBlock! + public var GUNJALA_GONDI: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var OLD_SOGDIAN: JavaCharacter.UnicodeBlock! + public var GURMUKHI: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var SOGDIAN: JavaCharacter.UnicodeBlock! + public var GURUNG_KHEMA: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DOGRA: JavaCharacter.UnicodeBlock! + public var HALFWIDTH_AND_FULLWIDTH_FORMS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var GUNJALA_GONDI: JavaCharacter.UnicodeBlock! + public var HANGUL_COMPATIBILITY_JAMO: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MAKASAR: JavaCharacter.UnicodeBlock! + public var HANGUL_JAMO: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MEDEFAIDRIN: JavaCharacter.UnicodeBlock! + public var HANGUL_JAMO_EXTENDED_A: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MAYAN_NUMERALS: JavaCharacter.UnicodeBlock! + public var HANGUL_JAMO_EXTENDED_B: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var INDIC_SIYAQ_NUMBERS: JavaCharacter.UnicodeBlock! + public var HANGUL_SYLLABLES: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var CHESS_SYMBOLS: JavaCharacter.UnicodeBlock! + public var HANIFI_ROHINGYA: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var ELYMAIC: JavaCharacter.UnicodeBlock! + public var HANUNOO: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var NANDINAGARI: JavaCharacter.UnicodeBlock! + public var HATRAN: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var TAMIL_SUPPLEMENT: JavaCharacter.UnicodeBlock! + public var HEBREW: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var EGYPTIAN_HIEROGLYPH_FORMAT_CONTROLS: JavaCharacter.UnicodeBlock! + public var HIGH_PRIVATE_USE_SURROGATES: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var SMALL_KANA_EXTENSION: JavaCharacter.UnicodeBlock! + public var HIGH_SURROGATES: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var NYIAKENG_PUACHUE_HMONG: JavaCharacter.UnicodeBlock! + public var HIRAGANA: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var WANCHO: JavaCharacter.UnicodeBlock! + public var IDEOGRAPHIC_DESCRIPTION_CHARACTERS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var OTTOMAN_SIYAQ_NUMBERS: JavaCharacter.UnicodeBlock! + public var IDEOGRAPHIC_SYMBOLS_AND_PUNCTUATION: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var SYMBOLS_AND_PICTOGRAPHS_EXTENDED_A: JavaCharacter.UnicodeBlock! + public var IMPERIAL_ARAMAIC: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var YEZIDI: JavaCharacter.UnicodeBlock! + public var INDIC_SIYAQ_NUMBERS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var CHORASMIAN: JavaCharacter.UnicodeBlock! + public var INSCRIPTIONAL_PAHLAVI: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DIVES_AKURU: JavaCharacter.UnicodeBlock! + public var INSCRIPTIONAL_PARTHIAN: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var LISU_SUPPLEMENT: JavaCharacter.UnicodeBlock! + public var IPA_EXTENSIONS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var KHITAN_SMALL_SCRIPT: JavaCharacter.UnicodeBlock! + public var JAVANESE: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var TANGUT_SUPPLEMENT: JavaCharacter.UnicodeBlock! + public var KAITHI: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var SYMBOLS_FOR_LEGACY_COMPUTING: JavaCharacter.UnicodeBlock! + public var KAKTOVIK_NUMERALS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var CJK_UNIFIED_IDEOGRAPHS_EXTENSION_G: JavaCharacter.UnicodeBlock! + public var KANA_EXTENDED_A: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var ARABIC_EXTENDED_B: JavaCharacter.UnicodeBlock! + public var KANA_EXTENDED_B: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var VITHKUQI: JavaCharacter.UnicodeBlock! + public var KANA_SUPPLEMENT: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var LATIN_EXTENDED_F: JavaCharacter.UnicodeBlock! + public var KANBUN: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var OLD_UYGHUR: JavaCharacter.UnicodeBlock! + public var KANGXI_RADICALS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED_A: JavaCharacter.UnicodeBlock! + public var KANNADA: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var CYPRO_MINOAN: JavaCharacter.UnicodeBlock! + public var KATAKANA: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var TANGSA: JavaCharacter.UnicodeBlock! + public var KATAKANA_PHONETIC_EXTENSIONS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var KANA_EXTENDED_B: JavaCharacter.UnicodeBlock! + public var KAWI: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var ZNAMENNY_MUSICAL_NOTATION: JavaCharacter.UnicodeBlock! + public var KAYAH_LI: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var LATIN_EXTENDED_G: JavaCharacter.UnicodeBlock! + public var KHAROSHTHI: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var TOTO: JavaCharacter.UnicodeBlock! + public var KHITAN_SMALL_SCRIPT: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var ETHIOPIC_EXTENDED_B: JavaCharacter.UnicodeBlock! + public var KHMER: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var ARABIC_EXTENDED_C: JavaCharacter.UnicodeBlock! + public var KHMER_SYMBOLS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DEVANAGARI_EXTENDED_A: JavaCharacter.UnicodeBlock! + public var KHOJKI: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var KAWI: JavaCharacter.UnicodeBlock! + public var KHUDAWADI: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var KAKTOVIK_NUMERALS: JavaCharacter.UnicodeBlock! + public var KIRAT_RAI: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var CYRILLIC_EXTENDED_D: JavaCharacter.UnicodeBlock! + public var LAO: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var NAG_MUNDARI: JavaCharacter.UnicodeBlock! + public var LATIN_1_SUPPLEMENT: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var CJK_UNIFIED_IDEOGRAPHS_EXTENSION_H: JavaCharacter.UnicodeBlock! + public var LATIN_EXTENDED_A: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var CJK_UNIFIED_IDEOGRAPHS_EXTENSION_I: JavaCharacter.UnicodeBlock! + public var LATIN_EXTENDED_ADDITIONAL: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var TODHRI: JavaCharacter.UnicodeBlock! + public var LATIN_EXTENDED_B: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var GARAY: JavaCharacter.UnicodeBlock! + public var LATIN_EXTENDED_C: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var TULU_TIGALARI: JavaCharacter.UnicodeBlock! + public var LATIN_EXTENDED_D: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MYANMAR_EXTENDED_C: JavaCharacter.UnicodeBlock! + public var LATIN_EXTENDED_E: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var SUNUWAR: JavaCharacter.UnicodeBlock! + public var LATIN_EXTENDED_F: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var EGYPTIAN_HIEROGLYPHS_EXTENDED_A: JavaCharacter.UnicodeBlock! + public var LATIN_EXTENDED_G: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var GURUNG_KHEMA: JavaCharacter.UnicodeBlock! + public var LEPCHA: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var KIRAT_RAI: JavaCharacter.UnicodeBlock! + public var LETTERLIKE_SYMBOLS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var SYMBOLS_FOR_LEGACY_COMPUTING_SUPPLEMENT: JavaCharacter.UnicodeBlock! + public var LIMBU: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var OL_ONAL: JavaCharacter.UnicodeBlock! + public var LINEAR_A: JavaCharacter.UnicodeBlock! - /// Java method `forName`. - /// - /// ### Java method signature - /// ```java - /// public static final java.lang.Character$UnicodeBlock java.lang.Character$UnicodeBlock.forName(java.lang.String) - /// ``` - @JavaStaticMethod - public func forName(_ arg0: String) -> JavaCharacter.UnicodeBlock! + @JavaStaticField(isFinal: true) + public var LINEAR_B_IDEOGRAMS: JavaCharacter.UnicodeBlock! - /// Java method `of`. - /// - /// ### Java method signature - /// ```java - /// public static java.lang.Character$UnicodeBlock java.lang.Character$UnicodeBlock.of(int) - /// ``` - @JavaStaticMethod - public func of(_ arg0: Int32) -> JavaCharacter.UnicodeBlock! + @JavaStaticField(isFinal: true) + public var LINEAR_B_SYLLABARY: JavaCharacter.UnicodeBlock! - /// Java method `of`. - /// - /// ### Java method signature - /// ```java - /// public static java.lang.Character$UnicodeBlock java.lang.Character$UnicodeBlock.of(char) - /// ``` - @JavaStaticMethod - public func of(_ arg0: UInt16) -> JavaCharacter.UnicodeBlock! -} -extension JavaClass { @JavaStaticField(isFinal: true) - public var MIN_RADIX: Int32 + public var LISU: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MAX_RADIX: Int32 + public var LISU_SUPPLEMENT: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MIN_VALUE: UInt16 + public var LOW_SURROGATES: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MAX_VALUE: UInt16 + public var LYCIAN: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var TYPE: JavaClass! + public var LYDIAN: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var UNASSIGNED: Int8 + public var MAHAJANI: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var UPPERCASE_LETTER: Int8 + public var MAHJONG_TILES: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var LOWERCASE_LETTER: Int8 + public var MAKASAR: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var TITLECASE_LETTER: Int8 + public var MALAYALAM: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MODIFIER_LETTER: Int8 + public var MANDAIC: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var OTHER_LETTER: Int8 + public var MANICHAEAN: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var NON_SPACING_MARK: Int8 + public var MARCHEN: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var ENCLOSING_MARK: Int8 + public var MASARAM_GONDI: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var COMBINING_SPACING_MARK: Int8 + public var MATHEMATICAL_ALPHANUMERIC_SYMBOLS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DECIMAL_DIGIT_NUMBER: Int8 + public var MATHEMATICAL_OPERATORS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var LETTER_NUMBER: Int8 + public var MAYAN_NUMERALS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var OTHER_NUMBER: Int8 + public var MEDEFAIDRIN: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var SPACE_SEPARATOR: Int8 + public var MEETEI_MAYEK: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var LINE_SEPARATOR: Int8 + public var MEETEI_MAYEK_EXTENSIONS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var PARAGRAPH_SEPARATOR: Int8 + public var MENDE_KIKAKUI: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var CONTROL: Int8 + public var MEROITIC_CURSIVE: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var FORMAT: Int8 + public var MEROITIC_HIEROGLYPHS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var PRIVATE_USE: Int8 + public var MIAO: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var SURROGATE: Int8 + public var MISCELLANEOUS_MATHEMATICAL_SYMBOLS_A: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DASH_PUNCTUATION: Int8 + public var MISCELLANEOUS_MATHEMATICAL_SYMBOLS_B: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var START_PUNCTUATION: Int8 + public var MISCELLANEOUS_SYMBOLS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var END_PUNCTUATION: Int8 + public var MISCELLANEOUS_SYMBOLS_AND_ARROWS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var CONNECTOR_PUNCTUATION: Int8 + public var MISCELLANEOUS_SYMBOLS_AND_PICTOGRAPHS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var OTHER_PUNCTUATION: Int8 + public var MISCELLANEOUS_TECHNICAL: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MATH_SYMBOL: Int8 + public var MODI: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var CURRENCY_SYMBOL: Int8 + public var MODIFIER_TONE_LETTERS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MODIFIER_SYMBOL: Int8 + public var MONGOLIAN: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var OTHER_SYMBOL: Int8 + public var MONGOLIAN_SUPPLEMENT: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var INITIAL_QUOTE_PUNCTUATION: Int8 + public var MRO: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var FINAL_QUOTE_PUNCTUATION: Int8 + public var MULTANI: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DIRECTIONALITY_UNDEFINED: Int8 + public var MUSICAL_SYMBOLS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DIRECTIONALITY_LEFT_TO_RIGHT: Int8 + public var MYANMAR: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DIRECTIONALITY_RIGHT_TO_LEFT: Int8 + public var MYANMAR_EXTENDED_A: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC: Int8 + public var MYANMAR_EXTENDED_B: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DIRECTIONALITY_EUROPEAN_NUMBER: Int8 + public var MYANMAR_EXTENDED_C: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR: Int8 + public var NABATAEAN: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR: Int8 + public var NAG_MUNDARI: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DIRECTIONALITY_ARABIC_NUMBER: Int8 + public var NANDINAGARI: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DIRECTIONALITY_COMMON_NUMBER_SEPARATOR: Int8 + public var NEWA: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DIRECTIONALITY_NONSPACING_MARK: Int8 + public var NEW_TAI_LUE: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DIRECTIONALITY_BOUNDARY_NEUTRAL: Int8 + public var NKO: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DIRECTIONALITY_PARAGRAPH_SEPARATOR: Int8 + public var NUMBER_FORMS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DIRECTIONALITY_SEGMENT_SEPARATOR: Int8 + public var NUSHU: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DIRECTIONALITY_WHITESPACE: Int8 + public var NYIAKENG_PUACHUE_HMONG: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DIRECTIONALITY_OTHER_NEUTRALS: Int8 + public var OGHAM: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING: Int8 + public var OLD_HUNGARIAN: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE: Int8 + public var OLD_ITALIC: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING: Int8 + public var OLD_NORTH_ARABIAN: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE: Int8 + public var OLD_PERMIC: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DIRECTIONALITY_POP_DIRECTIONAL_FORMAT: Int8 + public var OLD_PERSIAN: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DIRECTIONALITY_LEFT_TO_RIGHT_ISOLATE: Int8 + public var OLD_SOGDIAN: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DIRECTIONALITY_RIGHT_TO_LEFT_ISOLATE: Int8 + public var OLD_SOUTH_ARABIAN: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DIRECTIONALITY_FIRST_STRONG_ISOLATE: Int8 + public var OLD_TURKIC: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var DIRECTIONALITY_POP_DIRECTIONAL_ISOLATE: Int8 + public var OLD_UYGHUR: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MIN_HIGH_SURROGATE: UInt16 + public var OL_CHIKI: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MAX_HIGH_SURROGATE: UInt16 + public var OL_ONAL: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MIN_LOW_SURROGATE: UInt16 + public var OPTICAL_CHARACTER_RECOGNITION: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MAX_LOW_SURROGATE: UInt16 + public var ORIYA: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MIN_SURROGATE: UInt16 + public var ORNAMENTAL_DINGBATS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MAX_SURROGATE: UInt16 + public var OSAGE: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MIN_SUPPLEMENTARY_CODE_POINT: Int32 + public var OSMANYA: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MIN_CODE_POINT: Int32 + public var OTTOMAN_SIYAQ_NUMBERS: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var MAX_CODE_POINT: Int32 + public var PAHAWH_HMONG: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var SIZE: Int32 + public var PALMYRENE: JavaCharacter.UnicodeBlock! @JavaStaticField(isFinal: true) - public var BYTES: Int32 - - /// Java method `getName`. - /// - /// ### Java method signature - /// ```java - /// public static java.lang.String java.lang.Character.getName(int) - /// ``` - @JavaStaticMethod - public func getName(_ arg0: Int32) -> String + public var PAU_CIN_HAU: JavaCharacter.UnicodeBlock! - /// Java method `isJavaIdentifierStart`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isJavaIdentifierStart(char) - /// ``` - @JavaStaticMethod - public func isJavaIdentifierStart(_ arg0: UInt16) -> Bool + @JavaStaticField(isFinal: true) + public var PHAGS_PA: JavaCharacter.UnicodeBlock! - /// Java method `isJavaIdentifierStart`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isJavaIdentifierStart(int) - /// ``` - @JavaStaticMethod - public func isJavaIdentifierStart(_ arg0: Int32) -> Bool + @JavaStaticField(isFinal: true) + public var PHAISTOS_DISC: JavaCharacter.UnicodeBlock! - /// Java method `isJavaIdentifierPart`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isJavaIdentifierPart(char) - /// ``` - @JavaStaticMethod - public func isJavaIdentifierPart(_ arg0: UInt16) -> Bool + @JavaStaticField(isFinal: true) + public var PHOENICIAN: JavaCharacter.UnicodeBlock! - /// Java method `isJavaIdentifierPart`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isJavaIdentifierPart(int) - /// ``` - @JavaStaticMethod - public func isJavaIdentifierPart(_ arg0: Int32) -> Bool + @JavaStaticField(isFinal: true) + public var PHONETIC_EXTENSIONS: JavaCharacter.UnicodeBlock! - /// Java method `toString`. - /// - /// ### Java method signature - /// ```java - /// public static java.lang.String java.lang.Character.toString(int) - /// ``` - @JavaStaticMethod - public func toString(_ arg0: Int32) -> String + @JavaStaticField(isFinal: true) + public var PHONETIC_EXTENSIONS_SUPPLEMENT: JavaCharacter.UnicodeBlock! - /// Java method `toString`. - /// - /// ### Java method signature - /// ```java - /// public static java.lang.String java.lang.Character.toString(char) - /// ``` - @JavaStaticMethod - public func toString(_ arg0: UInt16) -> String + @JavaStaticField(isFinal: true) + public var PLAYING_CARDS: JavaCharacter.UnicodeBlock! - /// Java method `hashCode`. - /// - /// ### Java method signature - /// ```java - /// public static int java.lang.Character.hashCode(char) - /// ``` - @JavaStaticMethod - public func hashCode(_ arg0: UInt16) -> Int32 + @JavaStaticField(isFinal: true) + public var PRIVATE_USE_AREA: JavaCharacter.UnicodeBlock! - /// Java method `reverseBytes`. - /// - /// ### Java method signature - /// ```java - /// public static char java.lang.Character.reverseBytes(char) - /// ``` - @JavaStaticMethod - public func reverseBytes(_ arg0: UInt16) -> UInt16 + @JavaStaticField(isFinal: true) + public var PSALTER_PAHLAVI: JavaCharacter.UnicodeBlock! - /// Java method `isDigit`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isDigit(char) - /// ``` - @JavaStaticMethod - public func isDigit(_ arg0: UInt16) -> Bool + @JavaStaticField(isFinal: true) + public var REJANG: JavaCharacter.UnicodeBlock! - /// Java method `isDigit`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isDigit(int) - /// ``` - @JavaStaticMethod - public func isDigit(_ arg0: Int32) -> Bool + @JavaStaticField(isFinal: true) + public var RUMI_NUMERAL_SYMBOLS: JavaCharacter.UnicodeBlock! - /// Java method `isLowerCase`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isLowerCase(char) - /// ``` - @JavaStaticMethod - public func isLowerCase(_ arg0: UInt16) -> Bool + @JavaStaticField(isFinal: true) + public var RUNIC: JavaCharacter.UnicodeBlock! - /// Java method `isLowerCase`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isLowerCase(int) - /// ``` - @JavaStaticMethod - public func isLowerCase(_ arg0: Int32) -> Bool + @JavaStaticField(isFinal: true) + public var SAMARITAN: JavaCharacter.UnicodeBlock! - /// Java method `isUpperCase`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isUpperCase(int) - /// ``` - @JavaStaticMethod - public func isUpperCase(_ arg0: Int32) -> Bool + @JavaStaticField(isFinal: true) + public var SAURASHTRA: JavaCharacter.UnicodeBlock! - /// Java method `isUpperCase`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isUpperCase(char) - /// ``` - @JavaStaticMethod - public func isUpperCase(_ arg0: UInt16) -> Bool + @JavaStaticField(isFinal: true) + public var SHARADA: JavaCharacter.UnicodeBlock! - /// Java method `isWhitespace`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isWhitespace(char) - /// ``` - @JavaStaticMethod - public func isWhitespace(_ arg0: UInt16) -> Bool + @JavaStaticField(isFinal: true) + public var SHAVIAN: JavaCharacter.UnicodeBlock! - /// Java method `isWhitespace`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isWhitespace(int) - /// ``` - @JavaStaticMethod - public func isWhitespace(_ arg0: Int32) -> Bool + @JavaStaticField(isFinal: true) + public var SHORTHAND_FORMAT_CONTROLS: JavaCharacter.UnicodeBlock! - /// Java method `compare`. - /// - /// ### Java method signature - /// ```java - /// public static int java.lang.Character.compare(char,char) - /// ``` - @JavaStaticMethod - public func compare(_ arg0: UInt16, _ arg1: UInt16) -> Int32 + @JavaStaticField(isFinal: true) + public var SIDDHAM: JavaCharacter.UnicodeBlock! - /// Java method `valueOf`. - /// - /// ### Java method signature - /// ```java - /// public static java.lang.Character java.lang.Character.valueOf(char) - /// ``` - @JavaStaticMethod - public func valueOf(_ arg0: UInt16) -> JavaCharacter! + @JavaStaticField(isFinal: true) + public var SINHALA: JavaCharacter.UnicodeBlock! - /// Java method `toChars`. - /// - /// ### Java method signature - /// ```java - /// public static char[] java.lang.Character.toChars(int) - /// ``` - @JavaStaticMethod - public func toChars(_ arg0: Int32) -> [UInt16] + @JavaStaticField(isFinal: true) + public var SINHALA_ARCHAIC_NUMBERS: JavaCharacter.UnicodeBlock! - /// Java method `toChars`. - /// - /// ### Java method signature - /// ```java - /// public static int java.lang.Character.toChars(int,char[],int) - /// ``` - @JavaStaticMethod - public func toChars(_ arg0: Int32, _ arg1: [UInt16], _ arg2: Int32) -> Int32 + @JavaStaticField(isFinal: true) + public var SMALL_FORM_VARIANTS: JavaCharacter.UnicodeBlock! - /// Java method `isHighSurrogate`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isHighSurrogate(char) - /// ``` - @JavaStaticMethod - public func isHighSurrogate(_ arg0: UInt16) -> Bool + @JavaStaticField(isFinal: true) + public var SMALL_KANA_EXTENSION: JavaCharacter.UnicodeBlock! - /// Java method `isLowSurrogate`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isLowSurrogate(char) - /// ``` - @JavaStaticMethod - public func isLowSurrogate(_ arg0: UInt16) -> Bool + @JavaStaticField(isFinal: true) + public var SOGDIAN: JavaCharacter.UnicodeBlock! - /// Java method `isSurrogate`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isSurrogate(char) - /// ``` - @JavaStaticMethod - public func isSurrogate(_ arg0: UInt16) -> Bool + @JavaStaticField(isFinal: true) + public var SORA_SOMPENG: JavaCharacter.UnicodeBlock! - /// Java method `isSupplementaryCodePoint`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isSupplementaryCodePoint(int) - /// ``` - @JavaStaticMethod - public func isSupplementaryCodePoint(_ arg0: Int32) -> Bool + @JavaStaticField(isFinal: true) + public var SOYOMBO: JavaCharacter.UnicodeBlock! - /// Java method `highSurrogate`. - /// - /// ### Java method signature - /// ```java - /// public static char java.lang.Character.highSurrogate(int) - /// ``` - @JavaStaticMethod - public func highSurrogate(_ arg0: Int32) -> UInt16 + @JavaStaticField(isFinal: true) + public var SPACING_MODIFIER_LETTERS: JavaCharacter.UnicodeBlock! - /// Java method `lowSurrogate`. - /// - /// ### Java method signature - /// ```java - /// public static char java.lang.Character.lowSurrogate(int) - /// ``` - @JavaStaticMethod - public func lowSurrogate(_ arg0: Int32) -> UInt16 + @JavaStaticField(isFinal: true) + public var SPECIALS: JavaCharacter.UnicodeBlock! - /// Java method `toCodePoint`. - /// - /// ### Java method signature - /// ```java - /// public static int java.lang.Character.toCodePoint(char,char) - /// ``` - @JavaStaticMethod - public func toCodePoint(_ arg0: UInt16, _ arg1: UInt16) -> Int32 + @JavaStaticField(isFinal: true) + public var SUNDANESE: JavaCharacter.UnicodeBlock! - /// Java method `codePointAt`. - /// - /// ### Java method signature - /// ```java - /// public static int java.lang.Character.codePointAt(java.lang.CharSequence,int) - /// ``` - @JavaStaticMethod - public func codePointAt(_ arg0: CharSequence?, _ arg1: Int32) -> Int32 + @JavaStaticField(isFinal: true) + public var SUNDANESE_SUPPLEMENT: JavaCharacter.UnicodeBlock! - /// Java method `codePointAt`. - /// - /// ### Java method signature - /// ```java - /// public static int java.lang.Character.codePointAt(char[],int,int) - /// ``` - @JavaStaticMethod - public func codePointAt(_ arg0: [UInt16], _ arg1: Int32, _ arg2: Int32) -> Int32 + @JavaStaticField(isFinal: true) + public var SUNUWAR: JavaCharacter.UnicodeBlock! - /// Java method `codePointAt`. - /// - /// ### Java method signature - /// ```java - /// public static int java.lang.Character.codePointAt(char[],int) - /// ``` - @JavaStaticMethod - public func codePointAt(_ arg0: [UInt16], _ arg1: Int32) -> Int32 + @JavaStaticField(isFinal: true) + public var SUPERSCRIPTS_AND_SUBSCRIPTS: JavaCharacter.UnicodeBlock! - /// Java method `codePointBefore`. - /// - /// ### Java method signature - /// ```java - /// public static int java.lang.Character.codePointBefore(java.lang.CharSequence,int) - /// ``` - @JavaStaticMethod - public func codePointBefore(_ arg0: CharSequence?, _ arg1: Int32) -> Int32 + @JavaStaticField(isFinal: true) + public var SUPPLEMENTAL_ARROWS_A: JavaCharacter.UnicodeBlock! - /// Java method `codePointBefore`. - /// - /// ### Java method signature - /// ```java - /// public static int java.lang.Character.codePointBefore(char[],int) - /// ``` - @JavaStaticMethod - public func codePointBefore(_ arg0: [UInt16], _ arg1: Int32) -> Int32 + @JavaStaticField(isFinal: true) + public var SUPPLEMENTAL_ARROWS_B: JavaCharacter.UnicodeBlock! - /// Java method `codePointBefore`. - /// - /// ### Java method signature - /// ```java - /// public static int java.lang.Character.codePointBefore(char[],int,int) - /// ``` - @JavaStaticMethod - public func codePointBefore(_ arg0: [UInt16], _ arg1: Int32, _ arg2: Int32) -> Int32 + @JavaStaticField(isFinal: true) + public var SUPPLEMENTAL_ARROWS_C: JavaCharacter.UnicodeBlock! - /// Java method `codePointCount`. - /// - /// ### Java method signature - /// ```java - /// public static int java.lang.Character.codePointCount(java.lang.CharSequence,int,int) - /// ``` - @JavaStaticMethod - public func codePointCount(_ arg0: CharSequence?, _ arg1: Int32, _ arg2: Int32) -> Int32 + @JavaStaticField(isFinal: true) + public var SUPPLEMENTAL_MATHEMATICAL_OPERATORS: JavaCharacter.UnicodeBlock! - /// Java method `codePointCount`. - /// - /// ### Java method signature - /// ```java - /// public static int java.lang.Character.codePointCount(char[],int,int) - /// ``` - @JavaStaticMethod - public func codePointCount(_ arg0: [UInt16], _ arg1: Int32, _ arg2: Int32) -> Int32 + @JavaStaticField(isFinal: true) + public var SUPPLEMENTAL_PUNCTUATION: JavaCharacter.UnicodeBlock! - /// Java method `offsetByCodePoints`. - /// - /// ### Java method signature - /// ```java - /// public static int java.lang.Character.offsetByCodePoints(char[],int,int,int,int) - /// ``` - @JavaStaticMethod - public func offsetByCodePoints(_ arg0: [UInt16], _ arg1: Int32, _ arg2: Int32, _ arg3: Int32, _ arg4: Int32) -> Int32 + @JavaStaticField(isFinal: true) + public var SUPPLEMENTAL_SYMBOLS_AND_PICTOGRAPHS: JavaCharacter.UnicodeBlock! - /// Java method `offsetByCodePoints`. - /// - /// ### Java method signature - /// ```java - /// public static int java.lang.Character.offsetByCodePoints(java.lang.CharSequence,int,int) - /// ``` - @JavaStaticMethod - public func offsetByCodePoints(_ arg0: CharSequence?, _ arg1: Int32, _ arg2: Int32) -> Int32 + @JavaStaticField(isFinal: true) + public var SUPPLEMENTARY_PRIVATE_USE_AREA_A: JavaCharacter.UnicodeBlock! + + @JavaStaticField(isFinal: true) + public var SUPPLEMENTARY_PRIVATE_USE_AREA_B: JavaCharacter.UnicodeBlock! + + @available(*, deprecated) + @JavaStaticField(isFinal: true) + public var SURROGATES_AREA: JavaCharacter.UnicodeBlock! - /// Java method `toLowerCase`. - /// - /// ### Java method signature - /// ```java - /// public static char java.lang.Character.toLowerCase(char) - /// ``` - @JavaStaticMethod - public func toLowerCase(_ arg0: UInt16) -> UInt16 + @JavaStaticField(isFinal: true) + public var SUTTON_SIGNWRITING: JavaCharacter.UnicodeBlock! - /// Java method `toLowerCase`. - /// - /// ### Java method signature - /// ```java - /// public static int java.lang.Character.toLowerCase(int) - /// ``` - @JavaStaticMethod - public func toLowerCase(_ arg0: Int32) -> Int32 + @JavaStaticField(isFinal: true) + public var SYLOTI_NAGRI: JavaCharacter.UnicodeBlock! - /// Java method `toUpperCase`. - /// - /// ### Java method signature - /// ```java - /// public static int java.lang.Character.toUpperCase(int) - /// ``` - @JavaStaticMethod - public func toUpperCase(_ arg0: Int32) -> Int32 + @JavaStaticField(isFinal: true) + public var SYMBOLS_AND_PICTOGRAPHS_EXTENDED_A: JavaCharacter.UnicodeBlock! - /// Java method `toUpperCase`. - /// - /// ### Java method signature - /// ```java - /// public static char java.lang.Character.toUpperCase(char) - /// ``` - @JavaStaticMethod - public func toUpperCase(_ arg0: UInt16) -> UInt16 + @JavaStaticField(isFinal: true) + public var SYMBOLS_FOR_LEGACY_COMPUTING: JavaCharacter.UnicodeBlock! - /// Java method `isBmpCodePoint`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isBmpCodePoint(int) - /// ``` - @JavaStaticMethod - public func isBmpCodePoint(_ arg0: Int32) -> Bool + @JavaStaticField(isFinal: true) + public var SYMBOLS_FOR_LEGACY_COMPUTING_SUPPLEMENT: JavaCharacter.UnicodeBlock! - /// Java method `getType`. - /// - /// ### Java method signature - /// ```java - /// public static int java.lang.Character.getType(char) - /// ``` - @JavaStaticMethod - public func getType(_ arg0: UInt16) -> Int32 + @JavaStaticField(isFinal: true) + public var SYRIAC: JavaCharacter.UnicodeBlock! - /// Java method `getType`. - /// - /// ### Java method signature - /// ```java - /// public static int java.lang.Character.getType(int) - /// ``` - @JavaStaticMethod - public func getType(_ arg0: Int32) -> Int32 + @JavaStaticField(isFinal: true) + public var SYRIAC_SUPPLEMENT: JavaCharacter.UnicodeBlock! - /// Java method `isLetter`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isLetter(char) - /// ``` - @JavaStaticMethod - public func isLetter(_ arg0: UInt16) -> Bool + @JavaStaticField(isFinal: true) + public var TAGALOG: JavaCharacter.UnicodeBlock! - /// Java method `isLetter`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isLetter(int) - /// ``` - @JavaStaticMethod - public func isLetter(_ arg0: Int32) -> Bool + @JavaStaticField(isFinal: true) + public var TAGBANWA: JavaCharacter.UnicodeBlock! - /// Java method `isLetterOrDigit`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isLetterOrDigit(int) - /// ``` - @JavaStaticMethod - public func isLetterOrDigit(_ arg0: Int32) -> Bool + @JavaStaticField(isFinal: true) + public var TAGS: JavaCharacter.UnicodeBlock! - /// Java method `isLetterOrDigit`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isLetterOrDigit(char) - /// ``` - @JavaStaticMethod - public func isLetterOrDigit(_ arg0: UInt16) -> Bool + @JavaStaticField(isFinal: true) + public var TAI_LE: JavaCharacter.UnicodeBlock! - /// Java method `isValidCodePoint`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isValidCodePoint(int) - /// ``` - @JavaStaticMethod - public func isValidCodePoint(_ arg0: Int32) -> Bool + @JavaStaticField(isFinal: true) + public var TAI_THAM: JavaCharacter.UnicodeBlock! - /// Java method `isTitleCase`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isTitleCase(int) - /// ``` - @JavaStaticMethod - public func isTitleCase(_ arg0: Int32) -> Bool + @JavaStaticField(isFinal: true) + public var TAI_VIET: JavaCharacter.UnicodeBlock! - /// Java method `isTitleCase`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isTitleCase(char) - /// ``` - @JavaStaticMethod - public func isTitleCase(_ arg0: UInt16) -> Bool + @JavaStaticField(isFinal: true) + public var TAI_XUAN_JING_SYMBOLS: JavaCharacter.UnicodeBlock! - /// Java method `isDefined`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isDefined(char) - /// ``` - @JavaStaticMethod - public func isDefined(_ arg0: UInt16) -> Bool + @JavaStaticField(isFinal: true) + public var TAKRI: JavaCharacter.UnicodeBlock! - /// Java method `isDefined`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isDefined(int) - /// ``` - @JavaStaticMethod - public func isDefined(_ arg0: Int32) -> Bool + @JavaStaticField(isFinal: true) + public var TAMIL: JavaCharacter.UnicodeBlock! - /// Java method `isIdeographic`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isIdeographic(int) - /// ``` - @JavaStaticMethod - public func isIdeographic(_ arg0: Int32) -> Bool + @JavaStaticField(isFinal: true) + public var TAMIL_SUPPLEMENT: JavaCharacter.UnicodeBlock! - /// Java method `isUnicodeIdentifierStart`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isUnicodeIdentifierStart(int) - /// ``` - @JavaStaticMethod - public func isUnicodeIdentifierStart(_ arg0: Int32) -> Bool + @JavaStaticField(isFinal: true) + public var TANGSA: JavaCharacter.UnicodeBlock! - /// Java method `isUnicodeIdentifierStart`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isUnicodeIdentifierStart(char) - /// ``` - @JavaStaticMethod - public func isUnicodeIdentifierStart(_ arg0: UInt16) -> Bool + @JavaStaticField(isFinal: true) + public var TANGUT: JavaCharacter.UnicodeBlock! - /// Java method `isUnicodeIdentifierPart`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isUnicodeIdentifierPart(int) - /// ``` - @JavaStaticMethod - public func isUnicodeIdentifierPart(_ arg0: Int32) -> Bool + @JavaStaticField(isFinal: true) + public var TANGUT_COMPONENTS: JavaCharacter.UnicodeBlock! - /// Java method `isUnicodeIdentifierPart`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isUnicodeIdentifierPart(char) - /// ``` - @JavaStaticMethod - public func isUnicodeIdentifierPart(_ arg0: UInt16) -> Bool + @JavaStaticField(isFinal: true) + public var TANGUT_SUPPLEMENT: JavaCharacter.UnicodeBlock! - /// Java method `isIdentifierIgnorable`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isIdentifierIgnorable(int) - /// ``` - @JavaStaticMethod - public func isIdentifierIgnorable(_ arg0: Int32) -> Bool + @JavaStaticField(isFinal: true) + public var TELUGU: JavaCharacter.UnicodeBlock! - /// Java method `isIdentifierIgnorable`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isIdentifierIgnorable(char) - /// ``` - @JavaStaticMethod - public func isIdentifierIgnorable(_ arg0: UInt16) -> Bool + @JavaStaticField(isFinal: true) + public var THAANA: JavaCharacter.UnicodeBlock! - /// Java method `isEmoji`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isEmoji(int) - /// ``` - @JavaStaticMethod - public func isEmoji(_ arg0: Int32) -> Bool + @JavaStaticField(isFinal: true) + public var THAI: JavaCharacter.UnicodeBlock! - /// Java method `isEmojiPresentation`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isEmojiPresentation(int) - /// ``` - @JavaStaticMethod - public func isEmojiPresentation(_ arg0: Int32) -> Bool + @JavaStaticField(isFinal: true) + public var TIBETAN: JavaCharacter.UnicodeBlock! + + @JavaStaticField(isFinal: true) + public var TIFINAGH: JavaCharacter.UnicodeBlock! + + @JavaStaticField(isFinal: true) + public var TIRHUTA: JavaCharacter.UnicodeBlock! - /// Java method `isEmojiModifier`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isEmojiModifier(int) - /// ``` - @JavaStaticMethod - public func isEmojiModifier(_ arg0: Int32) -> Bool + @JavaStaticField(isFinal: true) + public var TODHRI: JavaCharacter.UnicodeBlock! - /// Java method `isEmojiModifierBase`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isEmojiModifierBase(int) - /// ``` - @JavaStaticMethod - public func isEmojiModifierBase(_ arg0: Int32) -> Bool + @JavaStaticField(isFinal: true) + public var TOTO: JavaCharacter.UnicodeBlock! - /// Java method `isEmojiComponent`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isEmojiComponent(int) - /// ``` - @JavaStaticMethod - public func isEmojiComponent(_ arg0: Int32) -> Bool + @JavaStaticField(isFinal: true) + public var TRANSPORT_AND_MAP_SYMBOLS: JavaCharacter.UnicodeBlock! - /// Java method `isExtendedPictographic`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isExtendedPictographic(int) - /// ``` - @JavaStaticMethod - public func isExtendedPictographic(_ arg0: Int32) -> Bool + @JavaStaticField(isFinal: true) + public var TULU_TIGALARI: JavaCharacter.UnicodeBlock! - /// Java method `toTitleCase`. - /// - /// ### Java method signature - /// ```java - /// public static char java.lang.Character.toTitleCase(char) - /// ``` - @JavaStaticMethod - public func toTitleCase(_ arg0: UInt16) -> UInt16 + @JavaStaticField(isFinal: true) + public var UGARITIC: JavaCharacter.UnicodeBlock! - /// Java method `toTitleCase`. - /// - /// ### Java method signature - /// ```java - /// public static int java.lang.Character.toTitleCase(int) - /// ``` - @JavaStaticMethod - public func toTitleCase(_ arg0: Int32) -> Int32 + @JavaStaticField(isFinal: true) + public var UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS: JavaCharacter.UnicodeBlock! - /// Java method `digit`. - /// - /// ### Java method signature - /// ```java - /// public static int java.lang.Character.digit(char,int) - /// ``` - @JavaStaticMethod - public func digit(_ arg0: UInt16, _ arg1: Int32) -> Int32 + @JavaStaticField(isFinal: true) + public var UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED: JavaCharacter.UnicodeBlock! - /// Java method `digit`. - /// - /// ### Java method signature - /// ```java - /// public static int java.lang.Character.digit(int,int) - /// ``` - @JavaStaticMethod - public func digit(_ arg0: Int32, _ arg1: Int32) -> Int32 + @JavaStaticField(isFinal: true) + public var UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED_A: JavaCharacter.UnicodeBlock! - /// Java method `getNumericValue`. - /// - /// ### Java method signature - /// ```java - /// public static int java.lang.Character.getNumericValue(int) - /// ``` - @JavaStaticMethod - public func getNumericValue(_ arg0: Int32) -> Int32 + @JavaStaticField(isFinal: true) + public var VAI: JavaCharacter.UnicodeBlock! - /// Java method `getNumericValue`. - /// - /// ### Java method signature - /// ```java - /// public static int java.lang.Character.getNumericValue(char) - /// ``` - @JavaStaticMethod - public func getNumericValue(_ arg0: UInt16) -> Int32 + @JavaStaticField(isFinal: true) + public var VARIATION_SELECTORS: JavaCharacter.UnicodeBlock! - /// Java method `isSpaceChar`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isSpaceChar(char) - /// ``` - @JavaStaticMethod - public func isSpaceChar(_ arg0: UInt16) -> Bool + @JavaStaticField(isFinal: true) + public var VARIATION_SELECTORS_SUPPLEMENT: JavaCharacter.UnicodeBlock! - /// Java method `isSpaceChar`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isSpaceChar(int) - /// ``` - @JavaStaticMethod - public func isSpaceChar(_ arg0: Int32) -> Bool + @JavaStaticField(isFinal: true) + public var VEDIC_EXTENSIONS: JavaCharacter.UnicodeBlock! - /// Java method `isISOControl`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isISOControl(int) - /// ``` - @JavaStaticMethod - public func isISOControl(_ arg0: Int32) -> Bool + @JavaStaticField(isFinal: true) + public var VERTICAL_FORMS: JavaCharacter.UnicodeBlock! - /// Java method `isISOControl`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isISOControl(char) - /// ``` - @JavaStaticMethod - public func isISOControl(_ arg0: UInt16) -> Bool + @JavaStaticField(isFinal: true) + public var VITHKUQI: JavaCharacter.UnicodeBlock! - /// Java method `getDirectionality`. - /// - /// ### Java method signature - /// ```java - /// public static byte java.lang.Character.getDirectionality(char) - /// ``` - @JavaStaticMethod - public func getDirectionality(_ arg0: UInt16) -> Int8 + @JavaStaticField(isFinal: true) + public var WANCHO: JavaCharacter.UnicodeBlock! - /// Java method `getDirectionality`. - /// - /// ### Java method signature - /// ```java - /// public static byte java.lang.Character.getDirectionality(int) - /// ``` - @JavaStaticMethod - public func getDirectionality(_ arg0: Int32) -> Int8 + @JavaStaticField(isFinal: true) + public var WARANG_CITI: JavaCharacter.UnicodeBlock! - /// Java method `isMirrored`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isMirrored(char) - /// ``` - @JavaStaticMethod - public func isMirrored(_ arg0: UInt16) -> Bool + @JavaStaticField(isFinal: true) + public var YEZIDI: JavaCharacter.UnicodeBlock! - /// Java method `isMirrored`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isMirrored(int) - /// ``` - @JavaStaticMethod - public func isMirrored(_ arg0: Int32) -> Bool + @JavaStaticField(isFinal: true) + public var YIJING_HEXAGRAM_SYMBOLS: JavaCharacter.UnicodeBlock! - /// Java method `isSurrogatePair`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isSurrogatePair(char,char) - /// ``` - @JavaStaticMethod - public func isSurrogatePair(_ arg0: UInt16, _ arg1: UInt16) -> Bool + @JavaStaticField(isFinal: true) + public var YI_RADICALS: JavaCharacter.UnicodeBlock! - /// Java method `charCount`. - /// - /// ### Java method signature - /// ```java - /// public static int java.lang.Character.charCount(int) - /// ``` - @JavaStaticMethod - public func charCount(_ arg0: Int32) -> Int32 + @JavaStaticField(isFinal: true) + public var YI_SYLLABLES: JavaCharacter.UnicodeBlock! - /// Java method `isJavaLetter`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isJavaLetter(char) - /// ``` - @available(*, deprecated) - @JavaStaticMethod - public func isJavaLetter(_ arg0: UInt16) -> Bool + @JavaStaticField(isFinal: true) + public var ZANABAZAR_SQUARE: JavaCharacter.UnicodeBlock! - /// Java method `isJavaLetterOrDigit`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Character.isJavaLetterOrDigit(char) - /// ``` - @available(*, deprecated) - @JavaStaticMethod - public func isJavaLetterOrDigit(_ arg0: UInt16) -> Bool + @JavaStaticField(isFinal: true) + public var ZNAMENNY_MUSICAL_NOTATION: JavaCharacter.UnicodeBlock! - /// Java method `isAlphabetic`. + /// Java method `forName`. /// /// ### Java method signature /// ```java - /// public static boolean java.lang.Character.isAlphabetic(int) + /// public static final java.lang.Character$UnicodeBlock java.lang.Character$UnicodeBlock.forName(java.lang.String) /// ``` @JavaStaticMethod - public func isAlphabetic(_ arg0: Int32) -> Bool + public func forName(_ arg0: String) -> JavaCharacter.UnicodeBlock! - /// Java method `isSpace`. + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public static boolean java.lang.Character.isSpace(char) + /// public static java.lang.Character$UnicodeBlock java.lang.Character$UnicodeBlock.of(char) /// ``` - @available(*, deprecated) @JavaStaticMethod - public func isSpace(_ arg0: UInt16) -> Bool + public func of(_ arg0: UInt16) -> JavaCharacter.UnicodeBlock! - /// Java method `forDigit`. + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public static char java.lang.Character.forDigit(int,int) + /// public static java.lang.Character$UnicodeBlock java.lang.Character$UnicodeBlock.of(int) /// ``` @JavaStaticMethod - public func forDigit(_ arg0: Int32, _ arg1: Int32) -> UInt16 + public func of(_ arg0: Int32) -> JavaCharacter.UnicodeBlock! +} +extension JavaCharacter { + @JavaClass("java.lang.Character$UnicodeBlock") + open class UnicodeBlock: JavaCharacter.Subset { - /// Java method `codePointOf`. - /// - /// ### Java method signature - /// ```java - /// public static int java.lang.Character.codePointOf(java.lang.String) - /// ``` - @JavaStaticMethod - public func codePointOf(_ arg0: String) -> Int32 + } } diff --git a/Sources/SwiftJava/generated/JavaClass.swift b/Sources/SwiftJava/generated/JavaClass.swift index 7d666cde2..60e8e9891 100644 --- a/Sources/SwiftJava/generated/JavaClass.swift +++ b/Sources/SwiftJava/generated/JavaClass.swift @@ -1,298 +1,298 @@ // Auto-generated by Java-to-Swift wrapper generator. import SwiftJavaJNICore -@JavaClass("java.lang.Class") -open class JavaClass: JavaObject { - public typealias T = JavaClass_T - - /// Java method `getName`. +extension JavaClass { + /// Java method `forName`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.Class.getName() + /// public static java.lang.Class java.lang.Class.forName(java.lang.String) throws java.lang.ClassNotFoundException /// ``` - @JavaMethod - open func getName() -> String + @JavaStaticMethod + public func forName(_ arg0: String) throws -> JavaClass! where ObjectType == JavaClass - /// Java method `toString`. + /// Java method `forName`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.Class.toString() + /// public static java.lang.Class java.lang.Class.forName(java.lang.String,boolean,java.lang.ClassLoader) throws java.lang.ClassNotFoundException /// ``` - @JavaMethod - open override func toString() -> String + @JavaStaticMethod + public func forName(_ arg0: String, _ arg1: Bool, _ arg2: JavaClassLoader?) throws -> JavaClass! where ObjectType == JavaClass - /// Java method `isAssignableFrom`. + /// Java method `forPrimitiveName`. /// /// ### Java method signature /// ```java - /// public native boolean java.lang.Class.isAssignableFrom(java.lang.Class) + /// public static java.lang.Class java.lang.Class.forPrimitiveName(java.lang.String) /// ``` - @JavaMethod - open func isAssignableFrom(_ arg0: JavaClass?) -> Bool + @JavaStaticMethod + public func forPrimitiveName(_ arg0: String) -> JavaClass! where ObjectType == JavaClass +} +@JavaClass("java.lang.Class") +open class JavaClass: JavaObject { + public typealias T = JavaClass_T - /// Java method `isInstance`. + /// Java method `isAnnotation`. /// /// ### Java method signature /// ```java - /// public native boolean java.lang.Class.isInstance(java.lang.Object) + /// public boolean java.lang.Class.isAnnotation() /// ``` @JavaMethod - open func isInstance(_ arg0: JavaObject?) -> Bool + open func isAnnotation() -> Bool - /// Java method `isHidden`. + /// Java method `getAnnotationsByType`. /// /// ### Java method signature /// ```java - /// public native boolean java.lang.Class.isHidden() + /// public A[] java.lang.Class.getAnnotationsByType(java.lang.Class) /// ``` @JavaMethod - open func isHidden() -> Bool + open func getAnnotationsByType(_ arg0: JavaClass?) -> [A?] - /// Java method `getSuperclass`. + /// Java method `isAnonymousClass`. /// /// ### Java method signature /// ```java - /// public native java.lang.Class java.lang.Class.getSuperclass() + /// public boolean java.lang.Class.isAnonymousClass() /// ``` @JavaMethod - open func getSuperclass() -> JavaClass! + open func isAnonymousClass() -> Bool - /// Java method `cast`. + /// Java method `isArray`. /// /// ### Java method signature /// ```java - /// public T java.lang.Class.cast(java.lang.Object) + /// public boolean java.lang.Class.isArray() /// ``` - @JavaMethod(typeErasedResult: "T!") - open func cast(_ arg0: JavaObject?) -> T! + @JavaMethod + open func isArray() -> Bool - /// Java method `componentType`. + /// Java method `arrayType`. /// /// ### Java method signature /// ```java - /// public java.lang.Class java.lang.Class.componentType() + /// public java.lang.Class java.lang.Class.arrayType() /// ``` @JavaMethod - open func componentType() -> JavaClass! + open func arrayType() -> JavaClass! - /// Java method `isInterface`. + /// Java method `isAssignableFrom`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.Class.isInterface() + /// public native boolean java.lang.Class.isAssignableFrom(java.lang.Class) /// ``` @JavaMethod - open func isInterface() -> Bool + open func isAssignableFrom(_ arg0: JavaClass?) -> Bool - /// Java method `isPrimitive`. + /// Java method `asSubclass`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.Class.isPrimitive() + /// public java.lang.Class java.lang.Class.asSubclass(java.lang.Class) /// ``` @JavaMethod - open func isPrimitive() -> Bool + open func asSubclass(_ arg0: JavaClass?) -> JavaClass! - /// Java method `isArray`. + /// Java method `getCanonicalName`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.Class.isArray() + /// public java.lang.String java.lang.Class.getCanonicalName() /// ``` @JavaMethod - open func isArray() -> Bool + open func getCanonicalName() -> String - /// Java method `getComponentType`. + /// Java method `cast`. /// /// ### Java method signature /// ```java - /// public java.lang.Class java.lang.Class.getComponentType() + /// public T java.lang.Class.cast(java.lang.Object) /// ``` - @JavaMethod - open func getComponentType() -> JavaClass! + @JavaMethod(typeErasedResult: "T!") + open func cast(_ arg0: JavaObject?) -> T! - /// Java method `getModifiers`. + /// Java method `getClasses`. /// /// ### Java method signature /// ```java - /// public int java.lang.Class.getModifiers() + /// public java.lang.Class[] java.lang.Class.getClasses() /// ``` @JavaMethod - open func getModifiers() -> Int32 + open func getClasses() -> [JavaClass?] - /// Java method `isAnnotation`. + /// Java method `getClassLoader`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.Class.isAnnotation() + /// public java.lang.ClassLoader java.lang.Class.getClassLoader() /// ``` @JavaMethod - open func isAnnotation() -> Bool + open func getClassLoader() -> JavaClassLoader! - /// Java method `isEnum`. + /// Java method `componentType`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.Class.isEnum() + /// public java.lang.Class java.lang.Class.componentType() /// ``` @JavaMethod - open func isEnum() -> Bool + open func componentType() -> JavaClass! - /// Java method `isRecord`. + /// Java method `getComponentType`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.Class.isRecord() + /// public java.lang.Class java.lang.Class.getComponentType() /// ``` @JavaMethod - open func isRecord() -> Bool + open func getComponentType() -> JavaClass! - /// Java method `isSealed`. + /// Java method `getDeclaredAnnotationsByType`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.Class.isSealed() + /// public A[] java.lang.Class.getDeclaredAnnotationsByType(java.lang.Class) /// ``` @JavaMethod - open func isSealed() -> Bool + open func getDeclaredAnnotationsByType(_ arg0: JavaClass?) -> [A?] - /// Java method `getInterfaces`. + /// Java method `getDeclaredClasses`. /// /// ### Java method signature /// ```java - /// public java.lang.Class[] java.lang.Class.getInterfaces() + /// public java.lang.Class[] java.lang.Class.getDeclaredClasses() /// ``` @JavaMethod - open func getInterfaces() -> [JavaClass?] + open func getDeclaredClasses() -> [JavaClass?] - /// Java method `getClassLoader`. + /// Java method `getDeclaringClass`. /// /// ### Java method signature /// ```java - /// public java.lang.ClassLoader java.lang.Class.getClassLoader() + /// public java.lang.Class java.lang.Class.getDeclaringClass() /// ``` @JavaMethod - open func getClassLoader() -> JavaClassLoader! + open func getDeclaringClass() -> JavaClass! - /// Java method `newInstance`. + /// Java method `descriptorString`. /// /// ### Java method signature /// ```java - /// public T java.lang.Class.newInstance() throws java.lang.InstantiationException,java.lang.IllegalAccessException + /// public java.lang.String java.lang.Class.descriptorString() /// ``` - @available(*, deprecated) - @JavaMethod(typeErasedResult: "T!") - open func newInstance() throws -> T! + @JavaMethod + open func descriptorString() -> String - /// Java method `isMemberClass`. + /// Java method `desiredAssertionStatus`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.Class.isMemberClass() + /// public boolean java.lang.Class.desiredAssertionStatus() /// ``` @JavaMethod - open func isMemberClass() -> Bool + open func desiredAssertionStatus() -> Bool - /// Java method `isLocalClass`. + /// Java method `getEnclosingClass`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.Class.isLocalClass() + /// public java.lang.Class java.lang.Class.getEnclosingClass() /// ``` @JavaMethod - open func isLocalClass() -> Bool + open func getEnclosingClass() -> JavaClass! - /// Java method `isAnonymousClass`. + /// Java method `isEnum`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.Class.isAnonymousClass() + /// public boolean java.lang.Class.isEnum() /// ``` @JavaMethod - open func isAnonymousClass() -> Bool + open func isEnum() -> Bool - /// Java method `getEnclosingClass`. + /// Java method `getEnumConstants`. /// /// ### Java method signature /// ```java - /// public java.lang.Class java.lang.Class.getEnclosingClass() + /// public T[] java.lang.Class.getEnumConstants() /// ``` @JavaMethod - open func getEnclosingClass() -> JavaClass! + open func getEnumConstants() -> [T?] - /// Java method `arrayType`. + /// Java method `isHidden`. /// /// ### Java method signature /// ```java - /// public java.lang.Class java.lang.Class.arrayType() + /// public native boolean java.lang.Class.isHidden() /// ``` @JavaMethod - open func arrayType() -> JavaClass! + open func isHidden() -> Bool - /// Java method `getSimpleName`. + /// Java method `isInstance`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.Class.getSimpleName() + /// public native boolean java.lang.Class.isInstance(java.lang.Object) /// ``` @JavaMethod - open func getSimpleName() -> String + open func isInstance(_ arg0: JavaObject?) -> Bool - /// Java method `getCanonicalName`. + /// Java method `isInterface`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.Class.getCanonicalName() + /// public boolean java.lang.Class.isInterface() /// ``` @JavaMethod - open func getCanonicalName() -> String + open func isInterface() -> Bool - /// Java method `getDeclaredClasses`. + /// Java method `getInterfaces`. /// /// ### Java method signature /// ```java - /// public java.lang.Class[] java.lang.Class.getDeclaredClasses() + /// public java.lang.Class[] java.lang.Class.getInterfaces() /// ``` @JavaMethod - open func getDeclaredClasses() -> [JavaClass?] + open func getInterfaces() -> [JavaClass?] - /// Java method `getResourceAsStream`. + /// Java method `isLocalClass`. /// /// ### Java method signature /// ```java - /// public java.io.InputStream java.lang.Class.getResourceAsStream(java.lang.String) + /// public boolean java.lang.Class.isLocalClass() /// ``` @JavaMethod - open func getResourceAsStream(_ arg0: String) -> InputStream! + open func isLocalClass() -> Bool - /// Java method `getResource`. + /// Java method `isMemberClass`. /// /// ### Java method signature /// ```java - /// public java.net.URL java.lang.Class.getResource(java.lang.String) + /// public boolean java.lang.Class.isMemberClass() /// ``` @JavaMethod - open func getResource(_ arg0: String) -> JavaURL! + open func isMemberClass() -> Bool - /// Java method `getPackageName`. + /// Java method `getModifiers`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.Class.getPackageName() + /// public int java.lang.Class.getModifiers() /// ``` @JavaMethod - open func getPackageName() -> String + open func getModifiers() -> Int32 - /// Java method `desiredAssertionStatus`. + /// Java method `getName`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.Class.desiredAssertionStatus() + /// public java.lang.String java.lang.Class.getName() /// ``` @JavaMethod - open func desiredAssertionStatus() -> Bool + open func getName() -> String /// Java method `getNestHost`. /// @@ -303,157 +303,157 @@ open class JavaClass: JavaObject { @JavaMethod open func getNestHost() -> JavaClass! - /// Java method `descriptorString`. + /// Java method `isNestmateOf`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.Class.descriptorString() + /// public boolean java.lang.Class.isNestmateOf(java.lang.Class) /// ``` @JavaMethod - open func descriptorString() -> String + open func isNestmateOf(_ arg0: JavaClass?) -> Bool - /// Java method `getPermittedSubclasses`. + /// Java method `getNestMembers`. /// /// ### Java method signature /// ```java - /// public java.lang.Class[] java.lang.Class.getPermittedSubclasses() + /// public java.lang.Class[] java.lang.Class.getNestMembers() /// ``` @JavaMethod - open func getPermittedSubclasses() -> [JavaClass?] + open func getNestMembers() -> [JavaClass?] - /// Java method `toGenericString`. + /// Java method `newInstance`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.Class.toGenericString() + /// public T java.lang.Class.newInstance() throws java.lang.InstantiationException,java.lang.IllegalAccessException /// ``` - @JavaMethod - open func toGenericString() -> String + @available(*, deprecated) + @JavaMethod(typeErasedResult: "T!") + open func newInstance() throws -> T! - /// Java method `isSynthetic`. + /// Java method `getPackageName`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.Class.isSynthetic() + /// public java.lang.String java.lang.Class.getPackageName() /// ``` @JavaMethod - open func isSynthetic() -> Bool + open func getPackageName() -> String - /// Java method `getSigners`. + /// Java method `getPermittedSubclasses`. /// /// ### Java method signature /// ```java - /// public java.lang.Object[] java.lang.Class.getSigners() + /// public java.lang.Class[] java.lang.Class.getPermittedSubclasses() /// ``` @JavaMethod - open func getSigners() -> [JavaObject?] + open func getPermittedSubclasses() -> [JavaClass?] - /// Java method `getDeclaringClass`. + /// Java method `isPrimitive`. /// /// ### Java method signature /// ```java - /// public java.lang.Class java.lang.Class.getDeclaringClass() + /// public boolean java.lang.Class.isPrimitive() /// ``` @JavaMethod - open func getDeclaringClass() -> JavaClass! + open func isPrimitive() -> Bool - /// Java method `getTypeName`. + /// Java method `isRecord`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.Class.getTypeName() + /// public boolean java.lang.Class.isRecord() /// ``` @JavaMethod - open func getTypeName() -> String + open func isRecord() -> Bool - /// Java method `getClasses`. + /// Java method `getResource`. /// /// ### Java method signature /// ```java - /// public java.lang.Class[] java.lang.Class.getClasses() + /// public java.net.URL java.lang.Class.getResource(java.lang.String) /// ``` @JavaMethod - open func getClasses() -> [JavaClass?] + open func getResource(_ arg0: String) -> JavaURL! - /// Java method `getEnumConstants`. + /// Java method `getResourceAsStream`. /// /// ### Java method signature /// ```java - /// public T[] java.lang.Class.getEnumConstants() + /// public java.io.InputStream java.lang.Class.getResourceAsStream(java.lang.String) /// ``` @JavaMethod - open func getEnumConstants() -> [T?] + open func getResourceAsStream(_ arg0: String) -> InputStream! - /// Java method `asSubclass`. + /// Java method `isSealed`. /// /// ### Java method signature /// ```java - /// public java.lang.Class java.lang.Class.asSubclass(java.lang.Class) + /// public boolean java.lang.Class.isSealed() /// ``` @JavaMethod - open func asSubclass(_ arg0: JavaClass?) -> JavaClass! + open func isSealed() -> Bool - /// Java method `getAnnotationsByType`. + /// Java method `getSigners`. /// /// ### Java method signature /// ```java - /// public A[] java.lang.Class.getAnnotationsByType(java.lang.Class) + /// public java.lang.Object[] java.lang.Class.getSigners() /// ``` @JavaMethod - open func getAnnotationsByType(_ arg0: JavaClass?) -> [A?] + open func getSigners() -> [JavaObject?] - /// Java method `getDeclaredAnnotationsByType`. + /// Java method `getSimpleName`. /// /// ### Java method signature /// ```java - /// public A[] java.lang.Class.getDeclaredAnnotationsByType(java.lang.Class) + /// public java.lang.String java.lang.Class.getSimpleName() /// ``` @JavaMethod - open func getDeclaredAnnotationsByType(_ arg0: JavaClass?) -> [A?] + open func getSimpleName() -> String - /// Java method `isNestmateOf`. + /// Java method `getSuperclass`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.Class.isNestmateOf(java.lang.Class) + /// public native java.lang.Class java.lang.Class.getSuperclass() /// ``` @JavaMethod - open func isNestmateOf(_ arg0: JavaClass?) -> Bool + open func getSuperclass() -> JavaClass! - /// Java method `getNestMembers`. + /// Java method `isSynthetic`. /// /// ### Java method signature /// ```java - /// public java.lang.Class[] java.lang.Class.getNestMembers() + /// public boolean java.lang.Class.isSynthetic() /// ``` @JavaMethod - open func getNestMembers() -> [JavaClass?] -} -extension JavaClass { - /// Java method `forName`. + open func isSynthetic() -> Bool + + /// Java method `toGenericString`. /// /// ### Java method signature /// ```java - /// public static java.lang.Class java.lang.Class.forName(java.lang.String) throws java.lang.ClassNotFoundException + /// public java.lang.String java.lang.Class.toGenericString() /// ``` - @JavaStaticMethod - public func forName(_ arg0: String) throws -> JavaClass! where ObjectType == JavaClass + @JavaMethod + open func toGenericString() -> String - /// Java method `forName`. + /// Java method `getTypeName`. /// /// ### Java method signature /// ```java - /// public static java.lang.Class java.lang.Class.forName(java.lang.String,boolean,java.lang.ClassLoader) throws java.lang.ClassNotFoundException + /// public java.lang.String java.lang.Class.getTypeName() /// ``` - @JavaStaticMethod - public func forName(_ arg0: String, _ arg1: Bool, _ arg2: JavaClassLoader?) throws -> JavaClass! where ObjectType == JavaClass + @JavaMethod + open func getTypeName() -> String - /// Java method `forPrimitiveName`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public static java.lang.Class java.lang.Class.forPrimitiveName(java.lang.String) + /// public java.lang.String java.lang.Class.toString() /// ``` - @JavaStaticMethod - public func forPrimitiveName(_ arg0: String) -> JavaClass! where ObjectType == JavaClass + @JavaMethod + open override func toString() -> String } diff --git a/Sources/SwiftJava/generated/JavaClassLoader.swift b/Sources/SwiftJava/generated/JavaClassLoader.swift index b8bfb7fbe..e9ff8f57e 100644 --- a/Sources/SwiftJava/generated/JavaClassLoader.swift +++ b/Sources/SwiftJava/generated/JavaClassLoader.swift @@ -1,106 +1,117 @@ // Auto-generated by Java-to-Swift wrapper generator. import SwiftJavaJNICore -@JavaClass("java.lang.ClassLoader") -open class JavaClassLoader: JavaObject { - /// Java method `getName`. +extension JavaClass { + /// Java method `getPlatformClassLoader`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.ClassLoader.getName() + /// public static java.lang.ClassLoader java.lang.ClassLoader.getPlatformClassLoader() /// ``` - @JavaMethod - open func getName() -> String + @JavaStaticMethod + public func getPlatformClassLoader() -> JavaClassLoader! - /// Java method `loadClass`. + /// Java method `registerAsParallelCapable`. /// /// ### Java method signature /// ```java - /// public java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) throws java.lang.ClassNotFoundException + /// protected static boolean java.lang.ClassLoader.registerAsParallelCapable() /// ``` - @JavaMethod - open func loadClass(_ arg0: String) throws -> JavaClass! + @JavaStaticMethod + public func registerAsParallelCapable() -> Bool - /// Java method `loadClass`. + /// Java method `getSystemClassLoader`. /// /// ### Java method signature /// ```java - /// protected java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String,boolean) throws java.lang.ClassNotFoundException + /// public static java.lang.ClassLoader java.lang.ClassLoader.getSystemClassLoader() /// ``` - @JavaMethod - open func loadClass(_ arg0: String, _ arg1: Bool) throws -> JavaClass! + @JavaStaticMethod + public func getSystemClassLoader() -> JavaClassLoader! - /// Java method `findResource`. + /// Java method `getSystemResource`. /// /// ### Java method signature /// ```java - /// protected java.net.URL java.lang.ClassLoader.findResource(java.lang.String,java.lang.String) throws java.io.IOException + /// public static java.net.URL java.lang.ClassLoader.getSystemResource(java.lang.String) /// ``` - @JavaMethod - open func findResource(_ arg0: String, _ arg1: String) throws -> JavaURL! + @JavaStaticMethod + public func getSystemResource(_ arg0: String) -> JavaURL! - /// Java method `findResource`. + /// Java method `getSystemResourceAsStream`. /// /// ### Java method signature /// ```java - /// protected java.net.URL java.lang.ClassLoader.findResource(java.lang.String) + /// public static java.io.InputStream java.lang.ClassLoader.getSystemResourceAsStream(java.lang.String) /// ``` - @JavaMethod - open func findResource(_ arg0: String) -> JavaURL! + @JavaStaticMethod + public func getSystemResourceAsStream(_ arg0: String) -> InputStream! - /// Java method `getResourceAsStream`. + /// Java method `getSystemResources`. /// /// ### Java method signature /// ```java - /// public java.io.InputStream java.lang.ClassLoader.getResourceAsStream(java.lang.String) + /// public static java.util.Enumeration java.lang.ClassLoader.getSystemResources(java.lang.String) throws java.io.IOException + /// ``` + @JavaStaticMethod + public func getSystemResources(_ arg0: String) throws -> Enumeration! +} +@JavaClass("java.lang.ClassLoader") +open class JavaClassLoader: JavaObject { + /// Java method `setClassAssertionStatus`. + /// + /// ### Java method signature + /// ```java + /// public void java.lang.ClassLoader.setClassAssertionStatus(java.lang.String,boolean) /// ``` @JavaMethod - open func getResourceAsStream(_ arg0: String) -> InputStream! + open func setClassAssertionStatus(_ arg0: String, _ arg1: Bool) - /// Java method `getResource`. + /// Java method `getClassLoadingLock`. /// /// ### Java method signature /// ```java - /// public java.net.URL java.lang.ClassLoader.getResource(java.lang.String) + /// protected java.lang.Object java.lang.ClassLoader.getClassLoadingLock(java.lang.String) /// ``` @JavaMethod - open func getResource(_ arg0: String) -> JavaURL! + open func getClassLoadingLock(_ arg0: String) -> JavaObject! - /// Java method `setSigners`. + /// Java method `clearAssertionStatus`. /// /// ### Java method signature /// ```java - /// protected final void java.lang.ClassLoader.setSigners(java.lang.Class,java.lang.Object[]) + /// public void java.lang.ClassLoader.clearAssertionStatus() /// ``` @JavaMethod - open func setSigners(_ arg0: JavaClass?, _ arg1: [JavaObject?]) + open func clearAssertionStatus() - /// Java method `getClassLoadingLock`. + /// Java method `setDefaultAssertionStatus`. /// /// ### Java method signature /// ```java - /// protected java.lang.Object java.lang.ClassLoader.getClassLoadingLock(java.lang.String) + /// public void java.lang.ClassLoader.setDefaultAssertionStatus(boolean) /// ``` @JavaMethod - open func getClassLoadingLock(_ arg0: String) -> JavaObject! + open func setDefaultAssertionStatus(_ arg0: Bool) - /// Java method `findLoadedClass`. + /// Java method `defineClass`. /// /// ### Java method signature /// ```java - /// protected final java.lang.Class java.lang.ClassLoader.findLoadedClass(java.lang.String) + /// protected final java.lang.Class java.lang.ClassLoader.defineClass(byte[],int,int) throws java.lang.ClassFormatError /// ``` + @available(*, deprecated) @JavaMethod - open func findLoadedClass(_ arg0: String) -> JavaClass! + open func defineClass(_ arg0: [Int8], _ arg1: Int32, _ arg2: Int32) throws -> JavaClass! - /// Java method `findClass`. + /// Java method `defineClass`. /// /// ### Java method signature /// ```java - /// protected java.lang.Class java.lang.ClassLoader.findClass(java.lang.String,java.lang.String) + /// protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) throws java.lang.ClassFormatError /// ``` @JavaMethod - open func findClass(_ arg0: String, _ arg1: String) -> JavaClass! + open func defineClass(_ arg0: String, _ arg1: [Int8], _ arg2: Int32, _ arg3: Int32) throws -> JavaClass! /// Java method `findClass`. /// @@ -111,60 +122,59 @@ open class JavaClassLoader: JavaObject { @JavaMethod open func findClass(_ arg0: String) throws -> JavaClass! - /// Java method `resolveClass`. + /// Java method `findClass`. /// /// ### Java method signature /// ```java - /// protected final void java.lang.ClassLoader.resolveClass(java.lang.Class) + /// protected java.lang.Class java.lang.ClassLoader.findClass(java.lang.String,java.lang.String) /// ``` @JavaMethod - open func resolveClass(_ arg0: JavaClass?) + open func findClass(_ arg0: String, _ arg1: String) -> JavaClass! - /// Java method `defineClass`. + /// Java method `findLibrary`. /// /// ### Java method signature /// ```java - /// protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) throws java.lang.ClassFormatError + /// protected java.lang.String java.lang.ClassLoader.findLibrary(java.lang.String) /// ``` @JavaMethod - open func defineClass(_ arg0: String, _ arg1: [Int8], _ arg2: Int32, _ arg3: Int32) throws -> JavaClass! + open func findLibrary(_ arg0: String) -> String - /// Java method `defineClass`. + /// Java method `findLoadedClass`. /// /// ### Java method signature /// ```java - /// protected final java.lang.Class java.lang.ClassLoader.defineClass(byte[],int,int) throws java.lang.ClassFormatError + /// protected final java.lang.Class java.lang.ClassLoader.findLoadedClass(java.lang.String) /// ``` - @available(*, deprecated) @JavaMethod - open func defineClass(_ arg0: [Int8], _ arg1: Int32, _ arg2: Int32) throws -> JavaClass! + open func findLoadedClass(_ arg0: String) -> JavaClass! - /// Java method `getResources`. + /// Java method `findResource`. /// /// ### Java method signature /// ```java - /// public java.util.Enumeration java.lang.ClassLoader.getResources(java.lang.String) throws java.io.IOException + /// protected java.net.URL java.lang.ClassLoader.findResource(java.lang.String) /// ``` @JavaMethod - open func getResources(_ arg0: String) throws -> Enumeration! + open func findResource(_ arg0: String) -> JavaURL! - /// Java method `findResources`. + /// Java method `findResource`. /// /// ### Java method signature /// ```java - /// protected java.util.Enumeration java.lang.ClassLoader.findResources(java.lang.String) throws java.io.IOException + /// protected java.net.URL java.lang.ClassLoader.findResource(java.lang.String,java.lang.String) throws java.io.IOException /// ``` @JavaMethod - open func findResources(_ arg0: String) throws -> Enumeration! + open func findResource(_ arg0: String, _ arg1: String) throws -> JavaURL! - /// Java method `findLibrary`. + /// Java method `findResources`. /// /// ### Java method signature /// ```java - /// protected java.lang.String java.lang.ClassLoader.findLibrary(java.lang.String) + /// protected java.util.Enumeration java.lang.ClassLoader.findResources(java.lang.String) throws java.io.IOException /// ``` @JavaMethod - open func findLibrary(_ arg0: String) -> String + open func findResources(_ arg0: String) throws -> Enumeration! /// Java method `findSystemClass`. /// @@ -175,32 +185,32 @@ open class JavaClassLoader: JavaObject { @JavaMethod open func findSystemClass(_ arg0: String) throws -> JavaClass! - /// Java method `isRegisteredAsParallelCapable`. + /// Java method `loadClass`. /// /// ### Java method signature /// ```java - /// public final boolean java.lang.ClassLoader.isRegisteredAsParallelCapable() + /// protected java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String,boolean) throws java.lang.ClassNotFoundException /// ``` @JavaMethod - open func isRegisteredAsParallelCapable() -> Bool + open func loadClass(_ arg0: String, _ arg1: Bool) throws -> JavaClass! - /// Java method `getParent`. + /// Java method `loadClass`. /// /// ### Java method signature /// ```java - /// public final java.lang.ClassLoader java.lang.ClassLoader.getParent() + /// public java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) throws java.lang.ClassNotFoundException /// ``` @JavaMethod - open func getParent() -> JavaClassLoader! + open func loadClass(_ arg0: String) throws -> JavaClass! - /// Java method `setDefaultAssertionStatus`. + /// Java method `getName`. /// /// ### Java method signature /// ```java - /// public void java.lang.ClassLoader.setDefaultAssertionStatus(boolean) + /// public java.lang.String java.lang.ClassLoader.getName() /// ``` @JavaMethod - open func setDefaultAssertionStatus(_ arg0: Bool) + open func getName() -> String /// Java method `setPackageAssertionStatus`. /// @@ -211,76 +221,66 @@ open class JavaClassLoader: JavaObject { @JavaMethod open func setPackageAssertionStatus(_ arg0: String, _ arg1: Bool) - /// Java method `setClassAssertionStatus`. + /// Java method `getParent`. /// /// ### Java method signature /// ```java - /// public void java.lang.ClassLoader.setClassAssertionStatus(java.lang.String,boolean) + /// public final java.lang.ClassLoader java.lang.ClassLoader.getParent() /// ``` @JavaMethod - open func setClassAssertionStatus(_ arg0: String, _ arg1: Bool) + open func getParent() -> JavaClassLoader! - /// Java method `clearAssertionStatus`. + /// Java method `isRegisteredAsParallelCapable`. /// /// ### Java method signature /// ```java - /// public void java.lang.ClassLoader.clearAssertionStatus() + /// public final boolean java.lang.ClassLoader.isRegisteredAsParallelCapable() /// ``` @JavaMethod - open func clearAssertionStatus() -} -extension JavaClass { - /// Java method `getPlatformClassLoader`. - /// - /// ### Java method signature - /// ```java - /// public static java.lang.ClassLoader java.lang.ClassLoader.getPlatformClassLoader() - /// ``` - @JavaStaticMethod - public func getPlatformClassLoader() -> JavaClassLoader! + open func isRegisteredAsParallelCapable() -> Bool - /// Java method `getSystemClassLoader`. + /// Java method `resolveClass`. /// /// ### Java method signature /// ```java - /// public static java.lang.ClassLoader java.lang.ClassLoader.getSystemClassLoader() + /// protected final void java.lang.ClassLoader.resolveClass(java.lang.Class) /// ``` - @JavaStaticMethod - public func getSystemClassLoader() -> JavaClassLoader! + @JavaMethod + open func resolveClass(_ arg0: JavaClass?) - /// Java method `getSystemResourceAsStream`. + /// Java method `getResource`. /// /// ### Java method signature /// ```java - /// public static java.io.InputStream java.lang.ClassLoader.getSystemResourceAsStream(java.lang.String) + /// public java.net.URL java.lang.ClassLoader.getResource(java.lang.String) /// ``` - @JavaStaticMethod - public func getSystemResourceAsStream(_ arg0: String) -> InputStream! + @JavaMethod + open func getResource(_ arg0: String) -> JavaURL! - /// Java method `getSystemResource`. + /// Java method `getResourceAsStream`. /// /// ### Java method signature /// ```java - /// public static java.net.URL java.lang.ClassLoader.getSystemResource(java.lang.String) + /// public java.io.InputStream java.lang.ClassLoader.getResourceAsStream(java.lang.String) /// ``` - @JavaStaticMethod - public func getSystemResource(_ arg0: String) -> JavaURL! + @JavaMethod + open func getResourceAsStream(_ arg0: String) -> InputStream! - /// Java method `registerAsParallelCapable`. + /// Java method `getResources`. /// /// ### Java method signature /// ```java - /// protected static boolean java.lang.ClassLoader.registerAsParallelCapable() + /// public java.util.Enumeration java.lang.ClassLoader.getResources(java.lang.String) throws java.io.IOException /// ``` - @JavaStaticMethod - public func registerAsParallelCapable() -> Bool + @JavaMethod + open func getResources(_ arg0: String) throws -> Enumeration! - /// Java method `getSystemResources`. + /// Java method `setSigners`. /// /// ### Java method signature /// ```java - /// public static java.util.Enumeration java.lang.ClassLoader.getSystemResources(java.lang.String) throws java.io.IOException + /// protected final void java.lang.ClassLoader.setSigners(java.lang.Class,java.lang.Object[]) /// ``` - @JavaStaticMethod - public func getSystemResources(_ arg0: String) throws -> Enumeration! + @JavaMethod + open func setSigners(_ arg0: JavaClass?, _ arg1: [JavaObject?]) } diff --git a/Sources/SwiftJava/generated/JavaCollection.swift b/Sources/SwiftJava/generated/JavaCollection.swift index 6571af561..a88f5457e 100644 --- a/Sources/SwiftJava/generated/JavaCollection.swift +++ b/Sources/SwiftJava/generated/JavaCollection.swift @@ -5,50 +5,50 @@ import SwiftJavaJNICore public struct JavaCollection { public typealias E = JavaCollection_E - /// Java method `remove`. + /// Java method `add`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.Collection.remove(java.lang.Object) + /// public abstract boolean java.util.Collection.add(E) /// ``` @JavaMethod - public func remove(_ arg0: JavaObject?) -> Bool + public func add(_ arg0: E?) -> Bool - /// Java method `size`. + /// Java method `addAll`. /// /// ### Java method signature /// ```java - /// public abstract int java.util.Collection.size() + /// public abstract boolean java.util.Collection.addAll(java.util.Collection) /// ``` @JavaMethod - public func size() -> Int32 + public func addAll(_ arg0: JavaCollection?) -> Bool - /// Java method `equals`. + /// Java method `clear`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.Collection.equals(java.lang.Object) + /// public abstract void java.util.Collection.clear() /// ``` @JavaMethod - public func equals(_ arg0: JavaObject?) -> Bool + public func clear() - /// Java method `hashCode`. + /// Java method `contains`. /// /// ### Java method signature /// ```java - /// public abstract int java.util.Collection.hashCode() + /// public abstract boolean java.util.Collection.contains(java.lang.Object) /// ``` @JavaMethod - public func hashCode() -> Int32 + public func contains(_ arg0: JavaObject?) -> Bool - /// Java method `clear`. + /// Java method `containsAll`. /// /// ### Java method signature /// ```java - /// public abstract void java.util.Collection.clear() + /// public abstract boolean java.util.Collection.containsAll(java.util.Collection) /// ``` @JavaMethod - public func clear() + public func containsAll(_ arg0: JavaCollection?) -> Bool /// Java method `isEmpty`. /// @@ -59,84 +59,84 @@ public struct JavaCollection { @JavaMethod public func isEmpty() -> Bool - /// Java method `add`. + /// Java method `iterator`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.Collection.add(E) + /// public abstract java.util.Iterator java.util.Collection.iterator() /// ``` @JavaMethod - public func add(_ arg0: E?) -> Bool + public func iterator() -> JavaIterator! - /// Java method `toArray`. + /// Java method `remove`. /// /// ### Java method signature /// ```java - /// public abstract T[] java.util.Collection.toArray(T[]) + /// public abstract boolean java.util.Collection.remove(java.lang.Object) /// ``` @JavaMethod - public func toArray(_ arg0: [T?]) -> [T?] + public func remove(_ arg0: JavaObject?) -> Bool - /// Java method `toArray`. + /// Java method `removeAll`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.Object[] java.util.Collection.toArray() + /// public abstract boolean java.util.Collection.removeAll(java.util.Collection) /// ``` @JavaMethod - public func toArray() -> [JavaObject?] + public func removeAll(_ arg0: JavaCollection?) -> Bool - /// Java method `iterator`. + /// Java method `retainAll`. /// /// ### Java method signature /// ```java - /// public abstract java.util.Iterator java.util.Collection.iterator() + /// public abstract boolean java.util.Collection.retainAll(java.util.Collection) /// ``` @JavaMethod - public func iterator() -> JavaIterator! + public func retainAll(_ arg0: JavaCollection?) -> Bool - /// Java method `contains`. + /// Java method `size`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.Collection.contains(java.lang.Object) + /// public abstract int java.util.Collection.size() /// ``` @JavaMethod - public func contains(_ arg0: JavaObject?) -> Bool + public func size() -> Int32 - /// Java method `addAll`. + /// Java method `toArray`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.Collection.addAll(java.util.Collection) + /// public abstract T[] java.util.Collection.toArray(T[]) /// ``` @JavaMethod - public func addAll(_ arg0: JavaCollection?) -> Bool + public func toArray(_ arg0: [T?]) -> [T?] - /// Java method `removeAll`. + /// Java method `toArray`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.Collection.removeAll(java.util.Collection) + /// public abstract java.lang.Object[] java.util.Collection.toArray() /// ``` @JavaMethod - public func removeAll(_ arg0: JavaCollection?) -> Bool + public func toArray() -> [JavaObject?] - /// Java method `retainAll`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.Collection.retainAll(java.util.Collection) + /// public abstract boolean java.util.Collection.equals(java.lang.Object) /// ``` @JavaMethod - public func retainAll(_ arg0: JavaCollection?) -> Bool + public func equals(_ arg0: JavaObject?) -> Bool - /// Java method `containsAll`. + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.Collection.containsAll(java.util.Collection) + /// public abstract int java.util.Collection.hashCode() /// ``` @JavaMethod - public func containsAll(_ arg0: JavaCollection?) -> Bool + public func hashCode() -> Int32 } diff --git a/Sources/SwiftJava/generated/JavaDouble.swift b/Sources/SwiftJava/generated/JavaDouble.swift index 4054ce43f..b395a6510 100644 --- a/Sources/SwiftJava/generated/JavaDouble.swift +++ b/Sources/SwiftJava/generated/JavaDouble.swift @@ -1,191 +1,168 @@ // Auto-generated by Java-to-Swift wrapper generator. import SwiftJavaJNICore -@JavaClass("java.lang.Double") -open class JavaDouble: JavaNumber { - @available(*, deprecated) - @JavaMethod - @_nonoverride public convenience init(_ arg0: Double, environment: JNIEnvironment? = nil) +extension JavaClass { + @JavaStaticField(isFinal: true) + public var BYTES: Int32 - @available(*, deprecated) - @JavaMethod - @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) throws + @JavaStaticField(isFinal: true) + public var MAX_EXPONENT: Int32 - /// Java method `equals`. - /// - /// ### Java method signature - /// ```java - /// public boolean java.lang.Double.equals(java.lang.Object) - /// ``` - @JavaMethod - open override func equals(_ arg0: JavaObject?) -> Bool + @JavaStaticField(isFinal: true) + public var MAX_VALUE: Double - /// Java method `toString`. + @JavaStaticField(isFinal: true) + public var MIN_EXPONENT: Int32 + + @JavaStaticField(isFinal: true) + public var MIN_NORMAL: Double + + @JavaStaticField(isFinal: true) + public var MIN_VALUE: Double + + @JavaStaticField(isFinal: true) + public var NEGATIVE_INFINITY: Double + + @JavaStaticField(isFinal: true) + public var NaN: Double + + @JavaStaticField(isFinal: true) + public var POSITIVE_INFINITY: Double + + @JavaStaticField(isFinal: true) + public var PRECISION: Int32 + + @JavaStaticField(isFinal: true) + public var SIZE: Int32 + + @JavaStaticField(isFinal: true) + public var TYPE: JavaClass! + + /// Java method `compare`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.Double.toString() + /// public static int java.lang.Double.compare(double,double) /// ``` - @JavaMethod - open override func toString() -> String + @JavaStaticMethod + public func compare(_ arg0: Double, _ arg1: Double) -> Int32 - /// Java method `hashCode`. + /// Java method `doubleToLongBits`. /// /// ### Java method signature /// ```java - /// public int java.lang.Double.hashCode() + /// public static long java.lang.Double.doubleToLongBits(double) /// ``` - @JavaMethod - open override func hashCode() -> Int32 + @JavaStaticMethod + public func doubleToLongBits(_ arg0: Double) -> Int64 - /// Java method `isInfinite`. + /// Java method `doubleToRawLongBits`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.Double.isInfinite() + /// public static native long java.lang.Double.doubleToRawLongBits(double) /// ``` - @JavaMethod - open func isInfinite() -> Bool + @JavaStaticMethod + public func doubleToRawLongBits(_ arg0: Double) -> Int64 - /// Java method `compareTo`. + /// Java method `isFinite`. /// /// ### Java method signature /// ```java - /// public int java.lang.Double.compareTo(java.lang.Double) + /// public static boolean java.lang.Double.isFinite(double) /// ``` - @JavaMethod - open func compareTo(_ arg0: JavaDouble?) -> Int32 + @JavaStaticMethod + public func isFinite(_ arg0: Double) -> Bool - /// Java method `compareTo`. + /// Java method `isInfinite`. /// /// ### Java method signature /// ```java - /// public int java.lang.Double.compareTo(java.lang.Object) + /// public static boolean java.lang.Double.isInfinite(double) /// ``` - @JavaMethod - open func compareTo(_ arg0: JavaObject?) -> Int32 + @JavaStaticMethod + public func isInfinite(_ arg0: Double) -> Bool - /// Java method `byteValue`. + /// Java method `longBitsToDouble`. /// /// ### Java method signature /// ```java - /// public byte java.lang.Double.byteValue() + /// public static native double java.lang.Double.longBitsToDouble(long) /// ``` - @JavaMethod - open override func byteValue() -> Int8 + @JavaStaticMethod + public func longBitsToDouble(_ arg0: Int64) -> Double - /// Java method `shortValue`. + /// Java method `max`. /// /// ### Java method signature /// ```java - /// public short java.lang.Double.shortValue() + /// public static double java.lang.Double.max(double,double) /// ``` - @JavaMethod - open override func shortValue() -> Int16 + @JavaStaticMethod + public func max(_ arg0: Double, _ arg1: Double) -> Double - /// Java method `intValue`. + /// Java method `min`. /// /// ### Java method signature /// ```java - /// public int java.lang.Double.intValue() + /// public static double java.lang.Double.min(double,double) /// ``` - @JavaMethod - open override func intValue() -> Int32 + @JavaStaticMethod + public func min(_ arg0: Double, _ arg1: Double) -> Double - /// Java method `longValue`. + /// Java method `isNaN`. /// /// ### Java method signature /// ```java - /// public long java.lang.Double.longValue() + /// public static boolean java.lang.Double.isNaN(double) /// ``` - @JavaMethod - open override func longValue() -> Int64 + @JavaStaticMethod + public func isNaN(_ arg0: Double) -> Bool - /// Java method `floatValue`. + /// Java method `parseDouble`. /// /// ### Java method signature /// ```java - /// public float java.lang.Double.floatValue() + /// public static double java.lang.Double.parseDouble(java.lang.String) throws java.lang.NumberFormatException /// ``` - @JavaMethod - open override func floatValue() -> Float + @JavaStaticMethod + public func parseDouble(_ arg0: String) throws -> Double - /// Java method `doubleValue`. + /// Java method `sum`. /// /// ### Java method signature /// ```java - /// public double java.lang.Double.doubleValue() + /// public static double java.lang.Double.sum(double,double) /// ``` - @JavaMethod - open override func doubleValue() -> Double + @JavaStaticMethod + public func sum(_ arg0: Double, _ arg1: Double) -> Double - /// Java method `describeConstable`. + /// Java method `toHexString`. /// /// ### Java method signature /// ```java - /// public java.util.Optional java.lang.Double.describeConstable() + /// public static java.lang.String java.lang.Double.toHexString(double) /// ``` - @JavaMethod - open func describeConstable() -> JavaOptional! - - open func describeConstableOptional() -> JavaDouble? { - Optional(javaOptional: describeConstable()) - } + @JavaStaticMethod + public func toHexString(_ arg0: Double) -> String - /// Java method `isNaN`. + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.Double.isNaN() + /// public static java.lang.Double java.lang.Double.valueOf(double) /// ``` - @JavaMethod - open func isNaN() -> Bool -} -extension JavaClass { - @JavaStaticField(isFinal: true) - public var POSITIVE_INFINITY: Double - - @JavaStaticField(isFinal: true) - public var NEGATIVE_INFINITY: Double - - @JavaStaticField(isFinal: true) - public var NaN: Double - - @JavaStaticField(isFinal: true) - public var MAX_VALUE: Double - - @JavaStaticField(isFinal: true) - public var MIN_NORMAL: Double - - @JavaStaticField(isFinal: true) - public var MIN_VALUE: Double - - @JavaStaticField(isFinal: true) - public var SIZE: Int32 - - @JavaStaticField(isFinal: true) - public var PRECISION: Int32 - - @JavaStaticField(isFinal: true) - public var MAX_EXPONENT: Int32 - - @JavaStaticField(isFinal: true) - public var MIN_EXPONENT: Int32 - - @JavaStaticField(isFinal: true) - public var BYTES: Int32 - - @JavaStaticField(isFinal: true) - public var TYPE: JavaClass! + @JavaStaticMethod + public func valueOf(_ arg0: Double) -> JavaDouble! - /// Java method `toString`. + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.Double.toString(double) + /// public static java.lang.Double java.lang.Double.valueOf(java.lang.String) throws java.lang.NumberFormatException /// ``` @JavaStaticMethod - public func toString(_ arg0: Double) -> String + public func valueOf(_ arg0: String) throws -> JavaDouble! /// Java method `hashCode`. /// @@ -196,129 +173,152 @@ extension JavaClass { @JavaStaticMethod public func hashCode(_ arg0: Double) -> Int32 - /// Java method `min`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public static double java.lang.Double.min(double,double) + /// public static java.lang.String java.lang.Double.toString(double) /// ``` @JavaStaticMethod - public func min(_ arg0: Double, _ arg1: Double) -> Double + public func toString(_ arg0: Double) -> String +} +@JavaClass("java.lang.Double") +open class JavaDouble: JavaNumber { + @available(*, deprecated) + @JavaMethod + @_nonoverride public convenience init(_ arg0: Double, environment: JNIEnvironment? = nil) - /// Java method `max`. + @available(*, deprecated) + @JavaMethod + @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) throws + + /// Java method `byteValue`. /// /// ### Java method signature /// ```java - /// public static double java.lang.Double.max(double,double) + /// public byte java.lang.Double.byteValue() /// ``` - @JavaStaticMethod - public func max(_ arg0: Double, _ arg1: Double) -> Double + @JavaMethod + open override func byteValue() -> Int8 - /// Java method `isInfinite`. + /// Java method `compareTo`. /// /// ### Java method signature /// ```java - /// public static boolean java.lang.Double.isInfinite(double) + /// public int java.lang.Double.compareTo(java.lang.Double) /// ``` - @JavaStaticMethod - public func isInfinite(_ arg0: Double) -> Bool + @JavaMethod + open func compareTo(_ arg0: JavaDouble?) -> Int32 - /// Java method `isFinite`. + /// Java method `compareTo`. /// /// ### Java method signature /// ```java - /// public static boolean java.lang.Double.isFinite(double) + /// public int java.lang.Double.compareTo(java.lang.Object) /// ``` - @JavaStaticMethod - public func isFinite(_ arg0: Double) -> Bool + @JavaMethod + open func compareTo(_ arg0: JavaObject?) -> Int32 - /// Java method `doubleToRawLongBits`. + /// Java method `describeConstable`. /// /// ### Java method signature /// ```java - /// public static native long java.lang.Double.doubleToRawLongBits(double) + /// public java.util.Optional java.lang.Double.describeConstable() /// ``` - @JavaStaticMethod - public func doubleToRawLongBits(_ arg0: Double) -> Int64 + @JavaMethod + open func describeConstable() -> JavaOptional! - /// Java method `doubleToLongBits`. + open func describeConstableOptional() -> JavaDouble? { + Optional(javaOptional: describeConstable()) + } + + /// Java method `doubleValue`. /// /// ### Java method signature /// ```java - /// public static long java.lang.Double.doubleToLongBits(double) + /// public double java.lang.Double.doubleValue() /// ``` - @JavaStaticMethod - public func doubleToLongBits(_ arg0: Double) -> Int64 + @JavaMethod + open override func doubleValue() -> Double - /// Java method `longBitsToDouble`. + /// Java method `floatValue`. /// /// ### Java method signature /// ```java - /// public static native double java.lang.Double.longBitsToDouble(long) + /// public float java.lang.Double.floatValue() /// ``` - @JavaStaticMethod - public func longBitsToDouble(_ arg0: Int64) -> Double + @JavaMethod + open override func floatValue() -> Float - /// Java method `compare`. + /// Java method `isInfinite`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Double.compare(double,double) + /// public boolean java.lang.Double.isInfinite() /// ``` - @JavaStaticMethod - public func compare(_ arg0: Double, _ arg1: Double) -> Int32 + @JavaMethod + open func isInfinite() -> Bool - /// Java method `valueOf`. + /// Java method `intValue`. /// /// ### Java method signature /// ```java - /// public static java.lang.Double java.lang.Double.valueOf(java.lang.String) throws java.lang.NumberFormatException + /// public int java.lang.Double.intValue() /// ``` - @JavaStaticMethod - public func valueOf(_ arg0: String) throws -> JavaDouble! + @JavaMethod + open override func intValue() -> Int32 - /// Java method `valueOf`. + /// Java method `longValue`. /// /// ### Java method signature /// ```java - /// public static java.lang.Double java.lang.Double.valueOf(double) + /// public long java.lang.Double.longValue() /// ``` - @JavaStaticMethod - public func valueOf(_ arg0: Double) -> JavaDouble! + @JavaMethod + open override func longValue() -> Int64 - /// Java method `toHexString`. + /// Java method `isNaN`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.Double.toHexString(double) + /// public boolean java.lang.Double.isNaN() /// ``` - @JavaStaticMethod - public func toHexString(_ arg0: Double) -> String + @JavaMethod + open func isNaN() -> Bool - /// Java method `isNaN`. + /// Java method `shortValue`. /// /// ### Java method signature /// ```java - /// public static boolean java.lang.Double.isNaN(double) + /// public short java.lang.Double.shortValue() /// ``` - @JavaStaticMethod - public func isNaN(_ arg0: Double) -> Bool + @JavaMethod + open override func shortValue() -> Int16 - /// Java method `sum`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public static double java.lang.Double.sum(double,double) + /// public boolean java.lang.Double.equals(java.lang.Object) /// ``` - @JavaStaticMethod - public func sum(_ arg0: Double, _ arg1: Double) -> Double + @JavaMethod + open override func equals(_ arg0: JavaObject?) -> Bool - /// Java method `parseDouble`. + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public static double java.lang.Double.parseDouble(java.lang.String) throws java.lang.NumberFormatException + /// public int java.lang.Double.hashCode() /// ``` - @JavaStaticMethod - public func parseDouble(_ arg0: String) throws -> Double + @JavaMethod + open override func hashCode() -> Int32 + + /// Java method `toString`. + /// + /// ### Java method signature + /// ```java + /// public java.lang.String java.lang.Double.toString() + /// ``` + @JavaMethod + open override func toString() -> String } diff --git a/Sources/SwiftJava/generated/JavaError.swift b/Sources/SwiftJava/generated/JavaError.swift index 0badf98dc..673e6e79b 100644 --- a/Sources/SwiftJava/generated/JavaError.swift +++ b/Sources/SwiftJava/generated/JavaError.swift @@ -4,14 +4,14 @@ import SwiftJavaJNICore @JavaClass("java.lang.Error") open class JavaError: Throwable { @JavaMethod - @_nonoverride public convenience init(_ arg0: Throwable?, environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(environment: JNIEnvironment? = nil) @JavaMethod - @_nonoverride public convenience init(_ arg0: String, _ arg1: Throwable?, environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) @JavaMethod - @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(_ arg0: String, _ arg1: Throwable?, environment: JNIEnvironment? = nil) @JavaMethod - @_nonoverride public convenience init(environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(_ arg0: Throwable?, environment: JNIEnvironment? = nil) } diff --git a/Sources/SwiftJava/generated/JavaFloat.swift b/Sources/SwiftJava/generated/JavaFloat.swift index 57fe2c8bd..98b372b99 100644 --- a/Sources/SwiftJava/generated/JavaFloat.swift +++ b/Sources/SwiftJava/generated/JavaFloat.swift @@ -1,346 +1,346 @@ // Auto-generated by Java-to-Swift wrapper generator. import SwiftJavaJNICore -@JavaClass("java.lang.Float") -open class JavaFloat: JavaNumber { - @available(*, deprecated) - @JavaMethod - @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) throws +extension JavaClass { + @JavaStaticField(isFinal: true) + public var BYTES: Int32 - @available(*, deprecated) - @JavaMethod - @_nonoverride public convenience init(_ arg0: Double, environment: JNIEnvironment? = nil) + @JavaStaticField(isFinal: true) + public var MAX_EXPONENT: Int32 - @available(*, deprecated) - @JavaMethod - @_nonoverride public convenience init(_ arg0: Float, environment: JNIEnvironment? = nil) + @JavaStaticField(isFinal: true) + public var MAX_VALUE: Float - /// Java method `equals`. + @JavaStaticField(isFinal: true) + public var MIN_EXPONENT: Int32 + + @JavaStaticField(isFinal: true) + public var MIN_NORMAL: Float + + @JavaStaticField(isFinal: true) + public var MIN_VALUE: Float + + @JavaStaticField(isFinal: true) + public var NEGATIVE_INFINITY: Float + + @JavaStaticField(isFinal: true) + public var NaN: Float + + @JavaStaticField(isFinal: true) + public var POSITIVE_INFINITY: Float + + @JavaStaticField(isFinal: true) + public var PRECISION: Int32 + + @JavaStaticField(isFinal: true) + public var SIZE: Int32 + + @JavaStaticField(isFinal: true) + public var TYPE: JavaClass! + + /// Java method `compare`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.Float.equals(java.lang.Object) + /// public static int java.lang.Float.compare(float,float) /// ``` - @JavaMethod - open override func equals(_ arg0: JavaObject?) -> Bool + @JavaStaticMethod + public func compare(_ arg0: Float, _ arg1: Float) -> Int32 - /// Java method `toString`. + /// Java method `isFinite`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.Float.toString() + /// public static boolean java.lang.Float.isFinite(float) /// ``` - @JavaMethod - open override func toString() -> String + @JavaStaticMethod + public func isFinite(_ arg0: Float) -> Bool - /// Java method `hashCode`. + /// Java method `float16ToFloat`. /// /// ### Java method signature /// ```java - /// public int java.lang.Float.hashCode() + /// public static float java.lang.Float.float16ToFloat(short) /// ``` - @JavaMethod - open override func hashCode() -> Int32 + @JavaStaticMethod + public func float16ToFloat(_ arg0: Int16) -> Float - /// Java method `isInfinite`. + /// Java method `floatToFloat16`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.Float.isInfinite() + /// public static short java.lang.Float.floatToFloat16(float) /// ``` - @JavaMethod - open func isInfinite() -> Bool + @JavaStaticMethod + public func floatToFloat16(_ arg0: Float) -> Int16 - /// Java method `compareTo`. + /// Java method `floatToIntBits`. /// /// ### Java method signature /// ```java - /// public int java.lang.Float.compareTo(java.lang.Object) + /// public static int java.lang.Float.floatToIntBits(float) /// ``` - @JavaMethod - open func compareTo(_ arg0: JavaObject?) -> Int32 + @JavaStaticMethod + public func floatToIntBits(_ arg0: Float) -> Int32 - /// Java method `compareTo`. + /// Java method `floatToRawIntBits`. /// /// ### Java method signature /// ```java - /// public int java.lang.Float.compareTo(java.lang.Float) + /// public static native int java.lang.Float.floatToRawIntBits(float) /// ``` - @JavaMethod - open func compareTo(_ arg0: JavaFloat?) -> Int32 + @JavaStaticMethod + public func floatToRawIntBits(_ arg0: Float) -> Int32 - /// Java method `byteValue`. + /// Java method `isInfinite`. /// /// ### Java method signature /// ```java - /// public byte java.lang.Float.byteValue() + /// public static boolean java.lang.Float.isInfinite(float) /// ``` - @JavaMethod - open override func byteValue() -> Int8 + @JavaStaticMethod + public func isInfinite(_ arg0: Float) -> Bool - /// Java method `shortValue`. + /// Java method `intBitsToFloat`. /// /// ### Java method signature /// ```java - /// public short java.lang.Float.shortValue() + /// public static native float java.lang.Float.intBitsToFloat(int) /// ``` - @JavaMethod - open override func shortValue() -> Int16 + @JavaStaticMethod + public func intBitsToFloat(_ arg0: Int32) -> Float - /// Java method `intValue`. + /// Java method `max`. /// /// ### Java method signature /// ```java - /// public int java.lang.Float.intValue() + /// public static float java.lang.Float.max(float,float) /// ``` - @JavaMethod - open override func intValue() -> Int32 + @JavaStaticMethod + public func max(_ arg0: Float, _ arg1: Float) -> Float - /// Java method `longValue`. + /// Java method `min`. /// /// ### Java method signature /// ```java - /// public long java.lang.Float.longValue() + /// public static float java.lang.Float.min(float,float) /// ``` - @JavaMethod - open override func longValue() -> Int64 + @JavaStaticMethod + public func min(_ arg0: Float, _ arg1: Float) -> Float - /// Java method `floatValue`. + /// Java method `isNaN`. /// /// ### Java method signature /// ```java - /// public float java.lang.Float.floatValue() + /// public static boolean java.lang.Float.isNaN(float) /// ``` - @JavaMethod - open override func floatValue() -> Float + @JavaStaticMethod + public func isNaN(_ arg0: Float) -> Bool - /// Java method `doubleValue`. + /// Java method `parseFloat`. /// /// ### Java method signature /// ```java - /// public double java.lang.Float.doubleValue() + /// public static float java.lang.Float.parseFloat(java.lang.String) throws java.lang.NumberFormatException /// ``` - @JavaMethod - open override func doubleValue() -> Double + @JavaStaticMethod + public func parseFloat(_ arg0: String) throws -> Float - /// Java method `describeConstable`. + /// Java method `sum`. /// /// ### Java method signature /// ```java - /// public java.util.Optional java.lang.Float.describeConstable() + /// public static float java.lang.Float.sum(float,float) /// ``` - @JavaMethod - open func describeConstable() -> JavaOptional! - - open func describeConstableOptional() -> JavaFloat? { - Optional(javaOptional: describeConstable()) - } + @JavaStaticMethod + public func sum(_ arg0: Float, _ arg1: Float) -> Float - /// Java method `isNaN`. + /// Java method `toHexString`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.Float.isNaN() + /// public static java.lang.String java.lang.Float.toHexString(float) /// ``` - @JavaMethod - open func isNaN() -> Bool -} -extension JavaClass { - @JavaStaticField(isFinal: true) - public var POSITIVE_INFINITY: Float - - @JavaStaticField(isFinal: true) - public var NEGATIVE_INFINITY: Float - - @JavaStaticField(isFinal: true) - public var NaN: Float - - @JavaStaticField(isFinal: true) - public var MAX_VALUE: Float - - @JavaStaticField(isFinal: true) - public var MIN_NORMAL: Float - - @JavaStaticField(isFinal: true) - public var MIN_VALUE: Float - - @JavaStaticField(isFinal: true) - public var SIZE: Int32 - - @JavaStaticField(isFinal: true) - public var PRECISION: Int32 - - @JavaStaticField(isFinal: true) - public var MAX_EXPONENT: Int32 - - @JavaStaticField(isFinal: true) - public var MIN_EXPONENT: Int32 - - @JavaStaticField(isFinal: true) - public var BYTES: Int32 - - @JavaStaticField(isFinal: true) - public var TYPE: JavaClass! + @JavaStaticMethod + public func toHexString(_ arg0: Float) -> String - /// Java method `toString`. + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.Float.toString(float) + /// public static java.lang.Float java.lang.Float.valueOf(float) /// ``` @JavaStaticMethod - public func toString(_ arg0: Float) -> String + public func valueOf(_ arg0: Float) -> JavaFloat! - /// Java method `hashCode`. + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Float.hashCode(float) + /// public static java.lang.Float java.lang.Float.valueOf(java.lang.String) throws java.lang.NumberFormatException /// ``` @JavaStaticMethod - public func hashCode(_ arg0: Float) -> Int32 + public func valueOf(_ arg0: String) throws -> JavaFloat! - /// Java method `min`. + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public static float java.lang.Float.min(float,float) + /// public static int java.lang.Float.hashCode(float) /// ``` @JavaStaticMethod - public func min(_ arg0: Float, _ arg1: Float) -> Float + public func hashCode(_ arg0: Float) -> Int32 - /// Java method `max`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public static float java.lang.Float.max(float,float) + /// public static java.lang.String java.lang.Float.toString(float) /// ``` @JavaStaticMethod - public func max(_ arg0: Float, _ arg1: Float) -> Float + public func toString(_ arg0: Float) -> String +} +@JavaClass("java.lang.Float") +open class JavaFloat: JavaNumber { + @available(*, deprecated) + @JavaMethod + @_nonoverride public convenience init(_ arg0: Double, environment: JNIEnvironment? = nil) - /// Java method `isInfinite`. + @available(*, deprecated) + @JavaMethod + @_nonoverride public convenience init(_ arg0: Float, environment: JNIEnvironment? = nil) + + @available(*, deprecated) + @JavaMethod + @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) throws + + /// Java method `byteValue`. /// /// ### Java method signature /// ```java - /// public static boolean java.lang.Float.isInfinite(float) + /// public byte java.lang.Float.byteValue() /// ``` - @JavaStaticMethod - public func isInfinite(_ arg0: Float) -> Bool + @JavaMethod + open override func byteValue() -> Int8 - /// Java method `isFinite`. + /// Java method `compareTo`. /// /// ### Java method signature /// ```java - /// public static boolean java.lang.Float.isFinite(float) + /// public int java.lang.Float.compareTo(java.lang.Float) /// ``` - @JavaStaticMethod - public func isFinite(_ arg0: Float) -> Bool + @JavaMethod + open func compareTo(_ arg0: JavaFloat?) -> Int32 - /// Java method `floatToRawIntBits`. + /// Java method `compareTo`. /// /// ### Java method signature /// ```java - /// public static native int java.lang.Float.floatToRawIntBits(float) + /// public int java.lang.Float.compareTo(java.lang.Object) /// ``` - @JavaStaticMethod - public func floatToRawIntBits(_ arg0: Float) -> Int32 + @JavaMethod + open func compareTo(_ arg0: JavaObject?) -> Int32 - /// Java method `floatToIntBits`. + /// Java method `describeConstable`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Float.floatToIntBits(float) + /// public java.util.Optional java.lang.Float.describeConstable() /// ``` - @JavaStaticMethod - public func floatToIntBits(_ arg0: Float) -> Int32 + @JavaMethod + open func describeConstable() -> JavaOptional! - /// Java method `intBitsToFloat`. + open func describeConstableOptional() -> JavaFloat? { + Optional(javaOptional: describeConstable()) + } + + /// Java method `doubleValue`. /// /// ### Java method signature /// ```java - /// public static native float java.lang.Float.intBitsToFloat(int) + /// public double java.lang.Float.doubleValue() /// ``` - @JavaStaticMethod - public func intBitsToFloat(_ arg0: Int32) -> Float + @JavaMethod + open override func doubleValue() -> Double - /// Java method `float16ToFloat`. + /// Java method `floatValue`. /// /// ### Java method signature /// ```java - /// public static float java.lang.Float.float16ToFloat(short) + /// public float java.lang.Float.floatValue() /// ``` - @JavaStaticMethod - public func float16ToFloat(_ arg0: Int16) -> Float + @JavaMethod + open override func floatValue() -> Float - /// Java method `floatToFloat16`. + /// Java method `isInfinite`. /// /// ### Java method signature /// ```java - /// public static short java.lang.Float.floatToFloat16(float) + /// public boolean java.lang.Float.isInfinite() /// ``` - @JavaStaticMethod - public func floatToFloat16(_ arg0: Float) -> Int16 + @JavaMethod + open func isInfinite() -> Bool - /// Java method `compare`. + /// Java method `intValue`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Float.compare(float,float) + /// public int java.lang.Float.intValue() /// ``` - @JavaStaticMethod - public func compare(_ arg0: Float, _ arg1: Float) -> Int32 + @JavaMethod + open override func intValue() -> Int32 - /// Java method `valueOf`. + /// Java method `longValue`. /// /// ### Java method signature /// ```java - /// public static java.lang.Float java.lang.Float.valueOf(float) + /// public long java.lang.Float.longValue() /// ``` - @JavaStaticMethod - public func valueOf(_ arg0: Float) -> JavaFloat! + @JavaMethod + open override func longValue() -> Int64 - /// Java method `valueOf`. + /// Java method `isNaN`. /// /// ### Java method signature /// ```java - /// public static java.lang.Float java.lang.Float.valueOf(java.lang.String) throws java.lang.NumberFormatException + /// public boolean java.lang.Float.isNaN() /// ``` - @JavaStaticMethod - public func valueOf(_ arg0: String) throws -> JavaFloat! + @JavaMethod + open func isNaN() -> Bool - /// Java method `toHexString`. + /// Java method `shortValue`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.Float.toHexString(float) + /// public short java.lang.Float.shortValue() /// ``` - @JavaStaticMethod - public func toHexString(_ arg0: Float) -> String + @JavaMethod + open override func shortValue() -> Int16 - /// Java method `isNaN`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public static boolean java.lang.Float.isNaN(float) + /// public boolean java.lang.Float.equals(java.lang.Object) /// ``` - @JavaStaticMethod - public func isNaN(_ arg0: Float) -> Bool + @JavaMethod + open override func equals(_ arg0: JavaObject?) -> Bool - /// Java method `sum`. + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public static float java.lang.Float.sum(float,float) + /// public int java.lang.Float.hashCode() /// ``` - @JavaStaticMethod - public func sum(_ arg0: Float, _ arg1: Float) -> Float + @JavaMethod + open override func hashCode() -> Int32 - /// Java method `parseFloat`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public static float java.lang.Float.parseFloat(java.lang.String) throws java.lang.NumberFormatException + /// public java.lang.String java.lang.Float.toString() /// ``` - @JavaStaticMethod - public func parseFloat(_ arg0: String) throws -> Float + @JavaMethod + open override func toString() -> String } diff --git a/Sources/SwiftJava/generated/JavaInteger.swift b/Sources/SwiftJava/generated/JavaInteger.swift index b857b8505..c74f1379b 100644 --- a/Sources/SwiftJava/generated/JavaInteger.swift +++ b/Sources/SwiftJava/generated/JavaInteger.swift @@ -1,251 +1,219 @@ // Auto-generated by Java-to-Swift wrapper generator. import SwiftJavaJNICore -@JavaClass("java.lang.Integer") -open class JavaInteger: JavaNumber { - @available(*, deprecated) - @JavaMethod - @_nonoverride public convenience init(_ arg0: Int32, environment: JNIEnvironment? = nil) +extension JavaClass { + @JavaStaticField(isFinal: true) + public var BYTES: Int32 - @available(*, deprecated) - @JavaMethod - @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) throws + @JavaStaticField(isFinal: true) + public var MAX_VALUE: Int32 - /// Java method `equals`. - /// - /// ### Java method signature - /// ```java - /// public boolean java.lang.Integer.equals(java.lang.Object) - /// ``` - @JavaMethod - open override func equals(_ arg0: JavaObject?) -> Bool + @JavaStaticField(isFinal: true) + public var MIN_VALUE: Int32 - /// Java method `toString`. - /// - /// ### Java method signature - /// ```java - /// public java.lang.String java.lang.Integer.toString() - /// ``` - @JavaMethod - open override func toString() -> String + @JavaStaticField(isFinal: true) + public var SIZE: Int32 - /// Java method `hashCode`. + @JavaStaticField(isFinal: true) + public var TYPE: JavaClass! + + /// Java method `bitCount`. /// /// ### Java method signature /// ```java - /// public int java.lang.Integer.hashCode() + /// public static int java.lang.Integer.bitCount(int) /// ``` - @JavaMethod - open override func hashCode() -> Int32 + @JavaStaticMethod + public func bitCount(_ arg0: Int32) -> Int32 - /// Java method `compareTo`. + /// Java method `compare`. /// /// ### Java method signature /// ```java - /// public int java.lang.Integer.compareTo(java.lang.Object) + /// public static int java.lang.Integer.compare(int,int) /// ``` - @JavaMethod - open func compareTo(_ arg0: JavaObject?) -> Int32 + @JavaStaticMethod + public func compare(_ arg0: Int32, _ arg1: Int32) -> Int32 - /// Java method `compareTo`. + /// Java method `compareUnsigned`. /// /// ### Java method signature /// ```java - /// public int java.lang.Integer.compareTo(java.lang.Integer) + /// public static int java.lang.Integer.compareUnsigned(int,int) /// ``` - @JavaMethod - open func compareTo(_ arg0: JavaInteger?) -> Int32 + @JavaStaticMethod + public func compareUnsigned(_ arg0: Int32, _ arg1: Int32) -> Int32 - /// Java method `byteValue`. + /// Java method `compress`. /// /// ### Java method signature /// ```java - /// public byte java.lang.Integer.byteValue() + /// public static int java.lang.Integer.compress(int,int) /// ``` - @JavaMethod - open override func byteValue() -> Int8 + @JavaStaticMethod + public func compress(_ arg0: Int32, _ arg1: Int32) -> Int32 - /// Java method `shortValue`. + /// Java method `decode`. /// /// ### Java method signature /// ```java - /// public short java.lang.Integer.shortValue() + /// public static java.lang.Integer java.lang.Integer.decode(java.lang.String) throws java.lang.NumberFormatException /// ``` - @JavaMethod - open override func shortValue() -> Int16 + @JavaStaticMethod + public func decode(_ arg0: String) throws -> JavaInteger! - /// Java method `intValue`. + /// Java method `divideUnsigned`. /// /// ### Java method signature /// ```java - /// public int java.lang.Integer.intValue() + /// public static int java.lang.Integer.divideUnsigned(int,int) /// ``` - @JavaMethod - open override func intValue() -> Int32 + @JavaStaticMethod + public func divideUnsigned(_ arg0: Int32, _ arg1: Int32) -> Int32 - /// Java method `longValue`. + /// Java method `expand`. /// /// ### Java method signature /// ```java - /// public long java.lang.Integer.longValue() + /// public static int java.lang.Integer.expand(int,int) /// ``` - @JavaMethod - open override func longValue() -> Int64 + @JavaStaticMethod + public func expand(_ arg0: Int32, _ arg1: Int32) -> Int32 - /// Java method `floatValue`. + /// Java method `highestOneBit`. /// /// ### Java method signature /// ```java - /// public float java.lang.Integer.floatValue() + /// public static int java.lang.Integer.highestOneBit(int) /// ``` - @JavaMethod - open override func floatValue() -> Float + @JavaStaticMethod + public func highestOneBit(_ arg0: Int32) -> Int32 - /// Java method `doubleValue`. + /// Java method `getInteger`. /// /// ### Java method signature /// ```java - /// public double java.lang.Integer.doubleValue() + /// public static java.lang.Integer java.lang.Integer.getInteger(java.lang.String) /// ``` - @JavaMethod - open override func doubleValue() -> Double + @JavaStaticMethod + public func getInteger(_ arg0: String) -> JavaInteger! - /// Java method `describeConstable`. + /// Java method `getInteger`. /// /// ### Java method signature /// ```java - /// public java.util.Optional java.lang.Integer.describeConstable() + /// public static java.lang.Integer java.lang.Integer.getInteger(java.lang.String,int) /// ``` - @JavaMethod - open func describeConstable() -> JavaOptional! - - open func describeConstableOptional() -> JavaInteger? { - Optional(javaOptional: describeConstable()) - } -} -extension JavaClass { - @JavaStaticField(isFinal: true) - public var MIN_VALUE: Int32 - - @JavaStaticField(isFinal: true) - public var MAX_VALUE: Int32 - - @JavaStaticField(isFinal: true) - public var TYPE: JavaClass! - - @JavaStaticField(isFinal: true) - public var SIZE: Int32 - - @JavaStaticField(isFinal: true) - public var BYTES: Int32 + @JavaStaticMethod + public func getInteger(_ arg0: String, _ arg1: Int32) -> JavaInteger! - /// Java method `numberOfLeadingZeros`. + /// Java method `getInteger`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Integer.numberOfLeadingZeros(int) + /// public static java.lang.Integer java.lang.Integer.getInteger(java.lang.String,java.lang.Integer) /// ``` @JavaStaticMethod - public func numberOfLeadingZeros(_ arg0: Int32) -> Int32 + public func getInteger(_ arg0: String, _ arg1: JavaInteger?) -> JavaInteger! - /// Java method `numberOfTrailingZeros`. + /// Java method `lowestOneBit`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Integer.numberOfTrailingZeros(int) + /// public static int java.lang.Integer.lowestOneBit(int) /// ``` @JavaStaticMethod - public func numberOfTrailingZeros(_ arg0: Int32) -> Int32 + public func lowestOneBit(_ arg0: Int32) -> Int32 - /// Java method `bitCount`. + /// Java method `max`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Integer.bitCount(int) + /// public static int java.lang.Integer.max(int,int) /// ``` @JavaStaticMethod - public func bitCount(_ arg0: Int32) -> Int32 + public func max(_ arg0: Int32, _ arg1: Int32) -> Int32 - /// Java method `toString`. + /// Java method `min`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.Integer.toString(int) + /// public static int java.lang.Integer.min(int,int) /// ``` @JavaStaticMethod - public func toString(_ arg0: Int32) -> String + public func min(_ arg0: Int32, _ arg1: Int32) -> Int32 - /// Java method `toString`. + /// Java method `numberOfLeadingZeros`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.Integer.toString(int,int) + /// public static int java.lang.Integer.numberOfLeadingZeros(int) /// ``` @JavaStaticMethod - public func toString(_ arg0: Int32, _ arg1: Int32) -> String + public func numberOfLeadingZeros(_ arg0: Int32) -> Int32 - /// Java method `hashCode`. + /// Java method `numberOfTrailingZeros`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Integer.hashCode(int) + /// public static int java.lang.Integer.numberOfTrailingZeros(int) /// ``` @JavaStaticMethod - public func hashCode(_ arg0: Int32) -> Int32 + public func numberOfTrailingZeros(_ arg0: Int32) -> Int32 - /// Java method `min`. + /// Java method `parseInt`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Integer.min(int,int) + /// public static int java.lang.Integer.parseInt(java.lang.CharSequence,int,int,int) throws java.lang.NumberFormatException /// ``` @JavaStaticMethod - public func min(_ arg0: Int32, _ arg1: Int32) -> Int32 + public func parseInt(_ arg0: CharSequence?, _ arg1: Int32, _ arg2: Int32, _ arg3: Int32) throws -> Int32 - /// Java method `max`. + /// Java method `parseInt`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Integer.max(int,int) + /// public static int java.lang.Integer.parseInt(java.lang.String) throws java.lang.NumberFormatException /// ``` @JavaStaticMethod - public func max(_ arg0: Int32, _ arg1: Int32) -> Int32 + public func parseInt(_ arg0: String) throws -> Int32 - /// Java method `signum`. + /// Java method `parseInt`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Integer.signum(int) + /// public static int java.lang.Integer.parseInt(java.lang.String,int) throws java.lang.NumberFormatException /// ``` @JavaStaticMethod - public func signum(_ arg0: Int32) -> Int32 + public func parseInt(_ arg0: String, _ arg1: Int32) throws -> Int32 - /// Java method `expand`. + /// Java method `parseUnsignedInt`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Integer.expand(int,int) + /// public static int java.lang.Integer.parseUnsignedInt(java.lang.CharSequence,int,int,int) throws java.lang.NumberFormatException /// ``` @JavaStaticMethod - public func expand(_ arg0: Int32, _ arg1: Int32) -> Int32 + public func parseUnsignedInt(_ arg0: CharSequence?, _ arg1: Int32, _ arg2: Int32, _ arg3: Int32) throws -> Int32 - /// Java method `compareUnsigned`. + /// Java method `parseUnsignedInt`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Integer.compareUnsigned(int,int) + /// public static int java.lang.Integer.parseUnsignedInt(java.lang.String) throws java.lang.NumberFormatException /// ``` @JavaStaticMethod - public func compareUnsigned(_ arg0: Int32, _ arg1: Int32) -> Int32 + public func parseUnsignedInt(_ arg0: String) throws -> Int32 - /// Java method `divideUnsigned`. + /// Java method `parseUnsignedInt`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Integer.divideUnsigned(int,int) + /// public static int java.lang.Integer.parseUnsignedInt(java.lang.String,int) throws java.lang.NumberFormatException /// ``` @JavaStaticMethod - public func divideUnsigned(_ arg0: Int32, _ arg1: Int32) -> Int32 + public func parseUnsignedInt(_ arg0: String, _ arg1: Int32) throws -> Int32 /// Java method `remainderUnsigned`. /// @@ -274,50 +242,50 @@ extension JavaClass { @JavaStaticMethod public func reverseBytes(_ arg0: Int32) -> Int32 - /// Java method `compress`. + /// Java method `rotateLeft`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Integer.compress(int,int) + /// public static int java.lang.Integer.rotateLeft(int,int) /// ``` @JavaStaticMethod - public func compress(_ arg0: Int32, _ arg1: Int32) -> Int32 + public func rotateLeft(_ arg0: Int32, _ arg1: Int32) -> Int32 - /// Java method `compare`. + /// Java method `rotateRight`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Integer.compare(int,int) + /// public static int java.lang.Integer.rotateRight(int,int) /// ``` @JavaStaticMethod - public func compare(_ arg0: Int32, _ arg1: Int32) -> Int32 + public func rotateRight(_ arg0: Int32, _ arg1: Int32) -> Int32 - /// Java method `valueOf`. + /// Java method `signum`. /// /// ### Java method signature /// ```java - /// public static java.lang.Integer java.lang.Integer.valueOf(java.lang.String) throws java.lang.NumberFormatException + /// public static int java.lang.Integer.signum(int) /// ``` @JavaStaticMethod - public func valueOf(_ arg0: String) throws -> JavaInteger! + public func signum(_ arg0: Int32) -> Int32 - /// Java method `valueOf`. + /// Java method `sum`. /// /// ### Java method signature /// ```java - /// public static java.lang.Integer java.lang.Integer.valueOf(int) + /// public static int java.lang.Integer.sum(int,int) /// ``` @JavaStaticMethod - public func valueOf(_ arg0: Int32) -> JavaInteger! + public func sum(_ arg0: Int32, _ arg1: Int32) -> Int32 - /// Java method `valueOf`. + /// Java method `toBinaryString`. /// /// ### Java method signature /// ```java - /// public static java.lang.Integer java.lang.Integer.valueOf(java.lang.String,int) throws java.lang.NumberFormatException + /// public static java.lang.String java.lang.Integer.toBinaryString(int) /// ``` @JavaStaticMethod - public func valueOf(_ arg0: String, _ arg1: Int32) throws -> JavaInteger! + public func toBinaryString(_ arg0: Int32) -> String /// Java method `toHexString`. /// @@ -328,183 +296,215 @@ extension JavaClass { @JavaStaticMethod public func toHexString(_ arg0: Int32) -> String - /// Java method `decode`. + /// Java method `toOctalString`. /// /// ### Java method signature /// ```java - /// public static java.lang.Integer java.lang.Integer.decode(java.lang.String) throws java.lang.NumberFormatException + /// public static java.lang.String java.lang.Integer.toOctalString(int) /// ``` @JavaStaticMethod - public func decode(_ arg0: String) throws -> JavaInteger! + public func toOctalString(_ arg0: Int32) -> String - /// Java method `parseInt`. + /// Java method `toUnsignedLong`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Integer.parseInt(java.lang.CharSequence,int,int,int) throws java.lang.NumberFormatException + /// public static long java.lang.Integer.toUnsignedLong(int) /// ``` @JavaStaticMethod - public func parseInt(_ arg0: CharSequence?, _ arg1: Int32, _ arg2: Int32, _ arg3: Int32) throws -> Int32 + public func toUnsignedLong(_ arg0: Int32) -> Int64 - /// Java method `parseInt`. + /// Java method `toUnsignedString`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Integer.parseInt(java.lang.String) throws java.lang.NumberFormatException + /// public static java.lang.String java.lang.Integer.toUnsignedString(int) /// ``` @JavaStaticMethod - public func parseInt(_ arg0: String) throws -> Int32 + public func toUnsignedString(_ arg0: Int32) -> String - /// Java method `parseInt`. + /// Java method `toUnsignedString`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Integer.parseInt(java.lang.String,int) throws java.lang.NumberFormatException + /// public static java.lang.String java.lang.Integer.toUnsignedString(int,int) /// ``` @JavaStaticMethod - public func parseInt(_ arg0: String, _ arg1: Int32) throws -> Int32 + public func toUnsignedString(_ arg0: Int32, _ arg1: Int32) -> String - /// Java method `toUnsignedLong`. + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public static long java.lang.Integer.toUnsignedLong(int) + /// public static java.lang.Integer java.lang.Integer.valueOf(int) /// ``` @JavaStaticMethod - public func toUnsignedLong(_ arg0: Int32) -> Int64 + public func valueOf(_ arg0: Int32) -> JavaInteger! - /// Java method `sum`. + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Integer.sum(int,int) + /// public static java.lang.Integer java.lang.Integer.valueOf(java.lang.String) throws java.lang.NumberFormatException /// ``` @JavaStaticMethod - public func sum(_ arg0: Int32, _ arg1: Int32) -> Int32 + public func valueOf(_ arg0: String) throws -> JavaInteger! - /// Java method `toUnsignedString`. + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.Integer.toUnsignedString(int) + /// public static java.lang.Integer java.lang.Integer.valueOf(java.lang.String,int) throws java.lang.NumberFormatException /// ``` @JavaStaticMethod - public func toUnsignedString(_ arg0: Int32) -> String + public func valueOf(_ arg0: String, _ arg1: Int32) throws -> JavaInteger! - /// Java method `toUnsignedString`. + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.Integer.toUnsignedString(int,int) + /// public static int java.lang.Integer.hashCode(int) /// ``` @JavaStaticMethod - public func toUnsignedString(_ arg0: Int32, _ arg1: Int32) -> String + public func hashCode(_ arg0: Int32) -> Int32 - /// Java method `parseUnsignedInt`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Integer.parseUnsignedInt(java.lang.String,int) throws java.lang.NumberFormatException + /// public static java.lang.String java.lang.Integer.toString(int) /// ``` @JavaStaticMethod - public func parseUnsignedInt(_ arg0: String, _ arg1: Int32) throws -> Int32 + public func toString(_ arg0: Int32) -> String - /// Java method `parseUnsignedInt`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Integer.parseUnsignedInt(java.lang.String) throws java.lang.NumberFormatException + /// public static java.lang.String java.lang.Integer.toString(int,int) /// ``` @JavaStaticMethod - public func parseUnsignedInt(_ arg0: String) throws -> Int32 + public func toString(_ arg0: Int32, _ arg1: Int32) -> String +} +@JavaClass("java.lang.Integer") +open class JavaInteger: JavaNumber { + @available(*, deprecated) + @JavaMethod + @_nonoverride public convenience init(_ arg0: Int32, environment: JNIEnvironment? = nil) - /// Java method `parseUnsignedInt`. + @available(*, deprecated) + @JavaMethod + @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) throws + + /// Java method `byteValue`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Integer.parseUnsignedInt(java.lang.CharSequence,int,int,int) throws java.lang.NumberFormatException + /// public byte java.lang.Integer.byteValue() /// ``` - @JavaStaticMethod - public func parseUnsignedInt(_ arg0: CharSequence?, _ arg1: Int32, _ arg2: Int32, _ arg3: Int32) throws -> Int32 + @JavaMethod + open override func byteValue() -> Int8 - /// Java method `getInteger`. + /// Java method `compareTo`. /// /// ### Java method signature /// ```java - /// public static java.lang.Integer java.lang.Integer.getInteger(java.lang.String,java.lang.Integer) + /// public int java.lang.Integer.compareTo(java.lang.Integer) /// ``` - @JavaStaticMethod - public func getInteger(_ arg0: String, _ arg1: JavaInteger?) -> JavaInteger! + @JavaMethod + open func compareTo(_ arg0: JavaInteger?) -> Int32 - /// Java method `getInteger`. + /// Java method `compareTo`. /// /// ### Java method signature /// ```java - /// public static java.lang.Integer java.lang.Integer.getInteger(java.lang.String) + /// public int java.lang.Integer.compareTo(java.lang.Object) /// ``` - @JavaStaticMethod - public func getInteger(_ arg0: String) -> JavaInteger! + @JavaMethod + open func compareTo(_ arg0: JavaObject?) -> Int32 - /// Java method `getInteger`. + /// Java method `describeConstable`. /// /// ### Java method signature /// ```java - /// public static java.lang.Integer java.lang.Integer.getInteger(java.lang.String,int) + /// public java.util.Optional java.lang.Integer.describeConstable() /// ``` - @JavaStaticMethod - public func getInteger(_ arg0: String, _ arg1: Int32) -> JavaInteger! + @JavaMethod + open func describeConstable() -> JavaOptional! - /// Java method `toOctalString`. + open func describeConstableOptional() -> JavaInteger? { + Optional(javaOptional: describeConstable()) + } + + /// Java method `doubleValue`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.Integer.toOctalString(int) + /// public double java.lang.Integer.doubleValue() /// ``` - @JavaStaticMethod - public func toOctalString(_ arg0: Int32) -> String + @JavaMethod + open override func doubleValue() -> Double - /// Java method `toBinaryString`. + /// Java method `floatValue`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.Integer.toBinaryString(int) + /// public float java.lang.Integer.floatValue() /// ``` - @JavaStaticMethod - public func toBinaryString(_ arg0: Int32) -> String + @JavaMethod + open override func floatValue() -> Float - /// Java method `highestOneBit`. + /// Java method `intValue`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Integer.highestOneBit(int) + /// public int java.lang.Integer.intValue() /// ``` - @JavaStaticMethod - public func highestOneBit(_ arg0: Int32) -> Int32 + @JavaMethod + open override func intValue() -> Int32 - /// Java method `lowestOneBit`. + /// Java method `longValue`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Integer.lowestOneBit(int) + /// public long java.lang.Integer.longValue() /// ``` - @JavaStaticMethod - public func lowestOneBit(_ arg0: Int32) -> Int32 + @JavaMethod + open override func longValue() -> Int64 - /// Java method `rotateLeft`. + /// Java method `shortValue`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Integer.rotateLeft(int,int) + /// public short java.lang.Integer.shortValue() /// ``` - @JavaStaticMethod - public func rotateLeft(_ arg0: Int32, _ arg1: Int32) -> Int32 + @JavaMethod + open override func shortValue() -> Int16 - /// Java method `rotateRight`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Integer.rotateRight(int,int) + /// public boolean java.lang.Integer.equals(java.lang.Object) /// ``` - @JavaStaticMethod - public func rotateRight(_ arg0: Int32, _ arg1: Int32) -> Int32 + @JavaMethod + open override func equals(_ arg0: JavaObject?) -> Bool + + /// Java method `hashCode`. + /// + /// ### Java method signature + /// ```java + /// public int java.lang.Integer.hashCode() + /// ``` + @JavaMethod + open override func hashCode() -> Int32 + + /// Java method `toString`. + /// + /// ### Java method signature + /// ```java + /// public java.lang.String java.lang.Integer.toString() + /// ``` + @JavaMethod + open override func toString() -> String } diff --git a/Sources/SwiftJava/generated/JavaIterator.swift b/Sources/SwiftJava/generated/JavaIterator.swift index 6e0a99b50..1a80b30ee 100644 --- a/Sources/SwiftJava/generated/JavaIterator.swift +++ b/Sources/SwiftJava/generated/JavaIterator.swift @@ -5,15 +5,6 @@ import SwiftJavaJNICore public struct JavaIterator { public typealias E = JavaIterator_E - /// Java method `remove`. - /// - /// ### Java method signature - /// ```java - /// public default void java.util.Iterator.remove() - /// ``` - @JavaMethod - public func remove() - /// Java method `hasNext`. /// /// ### Java method signature @@ -31,4 +22,13 @@ public struct JavaIterator { /// ``` @JavaMethod(typeErasedResult: "E!") public func next() -> E! + + /// Java method `remove`. + /// + /// ### Java method signature + /// ```java + /// public default void java.util.Iterator.remove() + /// ``` + @JavaMethod + public func remove() } diff --git a/Sources/SwiftJava/generated/JavaLong.swift b/Sources/SwiftJava/generated/JavaLong.swift index 5f555f151..40a10404d 100644 --- a/Sources/SwiftJava/generated/JavaLong.swift +++ b/Sources/SwiftJava/generated/JavaLong.swift @@ -1,251 +1,219 @@ // Auto-generated by Java-to-Swift wrapper generator. import SwiftJavaJNICore -@JavaClass("java.lang.Long") -open class JavaLong: JavaNumber { - @available(*, deprecated) - @JavaMethod - @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) throws +extension JavaClass { + @JavaStaticField(isFinal: true) + public var BYTES: Int32 - @available(*, deprecated) - @JavaMethod - @_nonoverride public convenience init(_ arg0: Int64, environment: JNIEnvironment? = nil) + @JavaStaticField(isFinal: true) + public var MAX_VALUE: Int64 - /// Java method `equals`. - /// - /// ### Java method signature - /// ```java - /// public boolean java.lang.Long.equals(java.lang.Object) - /// ``` - @JavaMethod - open override func equals(_ arg0: JavaObject?) -> Bool + @JavaStaticField(isFinal: true) + public var MIN_VALUE: Int64 - /// Java method `toString`. - /// - /// ### Java method signature - /// ```java - /// public java.lang.String java.lang.Long.toString() - /// ``` - @JavaMethod - open override func toString() -> String + @JavaStaticField(isFinal: true) + public var SIZE: Int32 - /// Java method `hashCode`. + @JavaStaticField(isFinal: true) + public var TYPE: JavaClass! + + /// Java method `bitCount`. /// /// ### Java method signature /// ```java - /// public int java.lang.Long.hashCode() + /// public static int java.lang.Long.bitCount(long) /// ``` - @JavaMethod - open override func hashCode() -> Int32 + @JavaStaticMethod + public func bitCount(_ arg0: Int64) -> Int32 - /// Java method `compareTo`. + /// Java method `compare`. /// /// ### Java method signature /// ```java - /// public int java.lang.Long.compareTo(java.lang.Object) + /// public static int java.lang.Long.compare(long,long) /// ``` - @JavaMethod - open func compareTo(_ arg0: JavaObject?) -> Int32 + @JavaStaticMethod + public func compare(_ arg0: Int64, _ arg1: Int64) -> Int32 - /// Java method `compareTo`. + /// Java method `compareUnsigned`. /// /// ### Java method signature /// ```java - /// public int java.lang.Long.compareTo(java.lang.Long) + /// public static int java.lang.Long.compareUnsigned(long,long) /// ``` - @JavaMethod - open func compareTo(_ arg0: JavaLong?) -> Int32 + @JavaStaticMethod + public func compareUnsigned(_ arg0: Int64, _ arg1: Int64) -> Int32 - /// Java method `byteValue`. + /// Java method `compress`. /// /// ### Java method signature /// ```java - /// public byte java.lang.Long.byteValue() + /// public static long java.lang.Long.compress(long,long) /// ``` - @JavaMethod - open override func byteValue() -> Int8 + @JavaStaticMethod + public func compress(_ arg0: Int64, _ arg1: Int64) -> Int64 - /// Java method `shortValue`. + /// Java method `decode`. /// /// ### Java method signature /// ```java - /// public short java.lang.Long.shortValue() + /// public static java.lang.Long java.lang.Long.decode(java.lang.String) throws java.lang.NumberFormatException /// ``` - @JavaMethod - open override func shortValue() -> Int16 + @JavaStaticMethod + public func decode(_ arg0: String) throws -> JavaLong! - /// Java method `intValue`. + /// Java method `divideUnsigned`. /// /// ### Java method signature /// ```java - /// public int java.lang.Long.intValue() + /// public static long java.lang.Long.divideUnsigned(long,long) /// ``` - @JavaMethod - open override func intValue() -> Int32 + @JavaStaticMethod + public func divideUnsigned(_ arg0: Int64, _ arg1: Int64) -> Int64 - /// Java method `longValue`. + /// Java method `expand`. /// /// ### Java method signature /// ```java - /// public long java.lang.Long.longValue() + /// public static long java.lang.Long.expand(long,long) /// ``` - @JavaMethod - open override func longValue() -> Int64 + @JavaStaticMethod + public func expand(_ arg0: Int64, _ arg1: Int64) -> Int64 - /// Java method `floatValue`. + /// Java method `highestOneBit`. /// /// ### Java method signature /// ```java - /// public float java.lang.Long.floatValue() + /// public static long java.lang.Long.highestOneBit(long) /// ``` - @JavaMethod - open override func floatValue() -> Float + @JavaStaticMethod + public func highestOneBit(_ arg0: Int64) -> Int64 - /// Java method `doubleValue`. + /// Java method `getLong`. /// /// ### Java method signature /// ```java - /// public double java.lang.Long.doubleValue() + /// public static java.lang.Long java.lang.Long.getLong(java.lang.String) /// ``` - @JavaMethod - open override func doubleValue() -> Double + @JavaStaticMethod + public func getLong(_ arg0: String) -> JavaLong! - /// Java method `describeConstable`. + /// Java method `getLong`. /// /// ### Java method signature /// ```java - /// public java.util.Optional java.lang.Long.describeConstable() + /// public static java.lang.Long java.lang.Long.getLong(java.lang.String,java.lang.Long) /// ``` - @JavaMethod - open func describeConstable() -> JavaOptional! - - open func describeConstableOptional() -> JavaLong? { - Optional(javaOptional: describeConstable()) - } -} -extension JavaClass { - @JavaStaticField(isFinal: true) - public var MIN_VALUE: Int64 - - @JavaStaticField(isFinal: true) - public var MAX_VALUE: Int64 - - @JavaStaticField(isFinal: true) - public var TYPE: JavaClass! - - @JavaStaticField(isFinal: true) - public var SIZE: Int32 - - @JavaStaticField(isFinal: true) - public var BYTES: Int32 + @JavaStaticMethod + public func getLong(_ arg0: String, _ arg1: JavaLong?) -> JavaLong! - /// Java method `numberOfLeadingZeros`. + /// Java method `getLong`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Long.numberOfLeadingZeros(long) + /// public static java.lang.Long java.lang.Long.getLong(java.lang.String,long) /// ``` @JavaStaticMethod - public func numberOfLeadingZeros(_ arg0: Int64) -> Int32 + public func getLong(_ arg0: String, _ arg1: Int64) -> JavaLong! - /// Java method `numberOfTrailingZeros`. + /// Java method `lowestOneBit`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Long.numberOfTrailingZeros(long) + /// public static long java.lang.Long.lowestOneBit(long) /// ``` @JavaStaticMethod - public func numberOfTrailingZeros(_ arg0: Int64) -> Int32 + public func lowestOneBit(_ arg0: Int64) -> Int64 - /// Java method `bitCount`. + /// Java method `max`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Long.bitCount(long) + /// public static long java.lang.Long.max(long,long) /// ``` @JavaStaticMethod - public func bitCount(_ arg0: Int64) -> Int32 + public func max(_ arg0: Int64, _ arg1: Int64) -> Int64 - /// Java method `toString`. + /// Java method `min`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.Long.toString(long) + /// public static long java.lang.Long.min(long,long) /// ``` @JavaStaticMethod - public func toString(_ arg0: Int64) -> String + public func min(_ arg0: Int64, _ arg1: Int64) -> Int64 - /// Java method `toString`. + /// Java method `numberOfLeadingZeros`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.Long.toString(long,int) + /// public static int java.lang.Long.numberOfLeadingZeros(long) /// ``` @JavaStaticMethod - public func toString(_ arg0: Int64, _ arg1: Int32) -> String + public func numberOfLeadingZeros(_ arg0: Int64) -> Int32 - /// Java method `hashCode`. + /// Java method `numberOfTrailingZeros`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Long.hashCode(long) + /// public static int java.lang.Long.numberOfTrailingZeros(long) /// ``` @JavaStaticMethod - public func hashCode(_ arg0: Int64) -> Int32 + public func numberOfTrailingZeros(_ arg0: Int64) -> Int32 - /// Java method `min`. + /// Java method `parseLong`. /// /// ### Java method signature /// ```java - /// public static long java.lang.Long.min(long,long) + /// public static long java.lang.Long.parseLong(java.lang.CharSequence,int,int,int) throws java.lang.NumberFormatException /// ``` @JavaStaticMethod - public func min(_ arg0: Int64, _ arg1: Int64) -> Int64 + public func parseLong(_ arg0: CharSequence?, _ arg1: Int32, _ arg2: Int32, _ arg3: Int32) throws -> Int64 - /// Java method `max`. + /// Java method `parseLong`. /// /// ### Java method signature /// ```java - /// public static long java.lang.Long.max(long,long) + /// public static long java.lang.Long.parseLong(java.lang.String) throws java.lang.NumberFormatException /// ``` @JavaStaticMethod - public func max(_ arg0: Int64, _ arg1: Int64) -> Int64 + public func parseLong(_ arg0: String) throws -> Int64 - /// Java method `signum`. + /// Java method `parseLong`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Long.signum(long) + /// public static long java.lang.Long.parseLong(java.lang.String,int) throws java.lang.NumberFormatException /// ``` @JavaStaticMethod - public func signum(_ arg0: Int64) -> Int32 + public func parseLong(_ arg0: String, _ arg1: Int32) throws -> Int64 - /// Java method `expand`. + /// Java method `parseUnsignedLong`. /// /// ### Java method signature /// ```java - /// public static long java.lang.Long.expand(long,long) + /// public static long java.lang.Long.parseUnsignedLong(java.lang.CharSequence,int,int,int) throws java.lang.NumberFormatException /// ``` @JavaStaticMethod - public func expand(_ arg0: Int64, _ arg1: Int64) -> Int64 + public func parseUnsignedLong(_ arg0: CharSequence?, _ arg1: Int32, _ arg2: Int32, _ arg3: Int32) throws -> Int64 - /// Java method `compareUnsigned`. + /// Java method `parseUnsignedLong`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Long.compareUnsigned(long,long) + /// public static long java.lang.Long.parseUnsignedLong(java.lang.String) throws java.lang.NumberFormatException /// ``` @JavaStaticMethod - public func compareUnsigned(_ arg0: Int64, _ arg1: Int64) -> Int32 + public func parseUnsignedLong(_ arg0: String) throws -> Int64 - /// Java method `divideUnsigned`. + /// Java method `parseUnsignedLong`. /// /// ### Java method signature /// ```java - /// public static long java.lang.Long.divideUnsigned(long,long) + /// public static long java.lang.Long.parseUnsignedLong(java.lang.String,int) throws java.lang.NumberFormatException /// ``` @JavaStaticMethod - public func divideUnsigned(_ arg0: Int64, _ arg1: Int64) -> Int64 + public func parseUnsignedLong(_ arg0: String, _ arg1: Int32) throws -> Int64 /// Java method `remainderUnsigned`. /// @@ -274,228 +242,260 @@ extension JavaClass { @JavaStaticMethod public func reverseBytes(_ arg0: Int64) -> Int64 - /// Java method `compress`. + /// Java method `rotateLeft`. /// /// ### Java method signature /// ```java - /// public static long java.lang.Long.compress(long,long) + /// public static long java.lang.Long.rotateLeft(long,int) /// ``` @JavaStaticMethod - public func compress(_ arg0: Int64, _ arg1: Int64) -> Int64 + public func rotateLeft(_ arg0: Int64, _ arg1: Int32) -> Int64 - /// Java method `getLong`. + /// Java method `rotateRight`. /// /// ### Java method signature /// ```java - /// public static java.lang.Long java.lang.Long.getLong(java.lang.String,java.lang.Long) + /// public static long java.lang.Long.rotateRight(long,int) /// ``` @JavaStaticMethod - public func getLong(_ arg0: String, _ arg1: JavaLong?) -> JavaLong! + public func rotateRight(_ arg0: Int64, _ arg1: Int32) -> Int64 - /// Java method `getLong`. + /// Java method `signum`. /// /// ### Java method signature /// ```java - /// public static java.lang.Long java.lang.Long.getLong(java.lang.String) + /// public static int java.lang.Long.signum(long) /// ``` @JavaStaticMethod - public func getLong(_ arg0: String) -> JavaLong! + public func signum(_ arg0: Int64) -> Int32 - /// Java method `getLong`. + /// Java method `sum`. /// /// ### Java method signature /// ```java - /// public static java.lang.Long java.lang.Long.getLong(java.lang.String,long) + /// public static long java.lang.Long.sum(long,long) /// ``` @JavaStaticMethod - public func getLong(_ arg0: String, _ arg1: Int64) -> JavaLong! + public func sum(_ arg0: Int64, _ arg1: Int64) -> Int64 - /// Java method `compare`. + /// Java method `toBinaryString`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Long.compare(long,long) + /// public static java.lang.String java.lang.Long.toBinaryString(long) /// ``` @JavaStaticMethod - public func compare(_ arg0: Int64, _ arg1: Int64) -> Int32 + public func toBinaryString(_ arg0: Int64) -> String - /// Java method `valueOf`. + /// Java method `toHexString`. /// /// ### Java method signature /// ```java - /// public static java.lang.Long java.lang.Long.valueOf(long) + /// public static java.lang.String java.lang.Long.toHexString(long) /// ``` @JavaStaticMethod - public func valueOf(_ arg0: Int64) -> JavaLong! + public func toHexString(_ arg0: Int64) -> String - /// Java method `valueOf`. + /// Java method `toOctalString`. /// /// ### Java method signature /// ```java - /// public static java.lang.Long java.lang.Long.valueOf(java.lang.String) throws java.lang.NumberFormatException + /// public static java.lang.String java.lang.Long.toOctalString(long) /// ``` @JavaStaticMethod - public func valueOf(_ arg0: String) throws -> JavaLong! + public func toOctalString(_ arg0: Int64) -> String - /// Java method `valueOf`. + /// Java method `toUnsignedString`. /// /// ### Java method signature /// ```java - /// public static java.lang.Long java.lang.Long.valueOf(java.lang.String,int) throws java.lang.NumberFormatException + /// public static java.lang.String java.lang.Long.toUnsignedString(long) /// ``` @JavaStaticMethod - public func valueOf(_ arg0: String, _ arg1: Int32) throws -> JavaLong! + public func toUnsignedString(_ arg0: Int64) -> String - /// Java method `toHexString`. + /// Java method `toUnsignedString`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.Long.toHexString(long) + /// public static java.lang.String java.lang.Long.toUnsignedString(long,int) /// ``` @JavaStaticMethod - public func toHexString(_ arg0: Int64) -> String + public func toUnsignedString(_ arg0: Int64, _ arg1: Int32) -> String - /// Java method `decode`. + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public static java.lang.Long java.lang.Long.decode(java.lang.String) throws java.lang.NumberFormatException + /// public static java.lang.Long java.lang.Long.valueOf(java.lang.String) throws java.lang.NumberFormatException /// ``` @JavaStaticMethod - public func decode(_ arg0: String) throws -> JavaLong! + public func valueOf(_ arg0: String) throws -> JavaLong! - /// Java method `sum`. + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public static long java.lang.Long.sum(long,long) + /// public static java.lang.Long java.lang.Long.valueOf(java.lang.String,int) throws java.lang.NumberFormatException /// ``` @JavaStaticMethod - public func sum(_ arg0: Int64, _ arg1: Int64) -> Int64 + public func valueOf(_ arg0: String, _ arg1: Int32) throws -> JavaLong! - /// Java method `toUnsignedString`. + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.Long.toUnsignedString(long) + /// public static java.lang.Long java.lang.Long.valueOf(long) /// ``` @JavaStaticMethod - public func toUnsignedString(_ arg0: Int64) -> String + public func valueOf(_ arg0: Int64) -> JavaLong! - /// Java method `toUnsignedString`. + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.Long.toUnsignedString(long,int) + /// public static int java.lang.Long.hashCode(long) /// ``` @JavaStaticMethod - public func toUnsignedString(_ arg0: Int64, _ arg1: Int32) -> String + public func hashCode(_ arg0: Int64) -> Int32 - /// Java method `toOctalString`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.Long.toOctalString(long) + /// public static java.lang.String java.lang.Long.toString(long) /// ``` @JavaStaticMethod - public func toOctalString(_ arg0: Int64) -> String + public func toString(_ arg0: Int64) -> String - /// Java method `toBinaryString`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.Long.toBinaryString(long) + /// public static java.lang.String java.lang.Long.toString(long,int) /// ``` @JavaStaticMethod - public func toBinaryString(_ arg0: Int64) -> String + public func toString(_ arg0: Int64, _ arg1: Int32) -> String +} +@JavaClass("java.lang.Long") +open class JavaLong: JavaNumber { + @available(*, deprecated) + @JavaMethod + @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) throws - /// Java method `highestOneBit`. + @available(*, deprecated) + @JavaMethod + @_nonoverride public convenience init(_ arg0: Int64, environment: JNIEnvironment? = nil) + + /// Java method `byteValue`. /// /// ### Java method signature /// ```java - /// public static long java.lang.Long.highestOneBit(long) + /// public byte java.lang.Long.byteValue() /// ``` - @JavaStaticMethod - public func highestOneBit(_ arg0: Int64) -> Int64 + @JavaMethod + open override func byteValue() -> Int8 - /// Java method `lowestOneBit`. + /// Java method `compareTo`. /// /// ### Java method signature /// ```java - /// public static long java.lang.Long.lowestOneBit(long) + /// public int java.lang.Long.compareTo(java.lang.Long) /// ``` - @JavaStaticMethod - public func lowestOneBit(_ arg0: Int64) -> Int64 + @JavaMethod + open func compareTo(_ arg0: JavaLong?) -> Int32 - /// Java method `rotateLeft`. + /// Java method `compareTo`. /// /// ### Java method signature /// ```java - /// public static long java.lang.Long.rotateLeft(long,int) + /// public int java.lang.Long.compareTo(java.lang.Object) /// ``` - @JavaStaticMethod - public func rotateLeft(_ arg0: Int64, _ arg1: Int32) -> Int64 + @JavaMethod + open func compareTo(_ arg0: JavaObject?) -> Int32 - /// Java method `rotateRight`. + /// Java method `describeConstable`. /// /// ### Java method signature /// ```java - /// public static long java.lang.Long.rotateRight(long,int) + /// public java.util.Optional java.lang.Long.describeConstable() /// ``` - @JavaStaticMethod - public func rotateRight(_ arg0: Int64, _ arg1: Int32) -> Int64 + @JavaMethod + open func describeConstable() -> JavaOptional! - /// Java method `parseLong`. + open func describeConstableOptional() -> JavaLong? { + Optional(javaOptional: describeConstable()) + } + + /// Java method `doubleValue`. /// /// ### Java method signature /// ```java - /// public static long java.lang.Long.parseLong(java.lang.String) throws java.lang.NumberFormatException + /// public double java.lang.Long.doubleValue() /// ``` - @JavaStaticMethod - public func parseLong(_ arg0: String) throws -> Int64 + @JavaMethod + open override func doubleValue() -> Double - /// Java method `parseLong`. + /// Java method `floatValue`. /// /// ### Java method signature /// ```java - /// public static long java.lang.Long.parseLong(java.lang.String,int) throws java.lang.NumberFormatException + /// public float java.lang.Long.floatValue() /// ``` - @JavaStaticMethod - public func parseLong(_ arg0: String, _ arg1: Int32) throws -> Int64 + @JavaMethod + open override func floatValue() -> Float - /// Java method `parseLong`. + /// Java method `intValue`. /// /// ### Java method signature /// ```java - /// public static long java.lang.Long.parseLong(java.lang.CharSequence,int,int,int) throws java.lang.NumberFormatException + /// public int java.lang.Long.intValue() /// ``` - @JavaStaticMethod - public func parseLong(_ arg0: CharSequence?, _ arg1: Int32, _ arg2: Int32, _ arg3: Int32) throws -> Int64 + @JavaMethod + open override func intValue() -> Int32 - /// Java method `parseUnsignedLong`. + /// Java method `longValue`. /// /// ### Java method signature /// ```java - /// public static long java.lang.Long.parseUnsignedLong(java.lang.String) throws java.lang.NumberFormatException + /// public long java.lang.Long.longValue() /// ``` - @JavaStaticMethod - public func parseUnsignedLong(_ arg0: String) throws -> Int64 + @JavaMethod + open override func longValue() -> Int64 - /// Java method `parseUnsignedLong`. + /// Java method `shortValue`. /// /// ### Java method signature /// ```java - /// public static long java.lang.Long.parseUnsignedLong(java.lang.String,int) throws java.lang.NumberFormatException + /// public short java.lang.Long.shortValue() /// ``` - @JavaStaticMethod - public func parseUnsignedLong(_ arg0: String, _ arg1: Int32) throws -> Int64 + @JavaMethod + open override func shortValue() -> Int16 - /// Java method `parseUnsignedLong`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public static long java.lang.Long.parseUnsignedLong(java.lang.CharSequence,int,int,int) throws java.lang.NumberFormatException + /// public boolean java.lang.Long.equals(java.lang.Object) /// ``` - @JavaStaticMethod - public func parseUnsignedLong(_ arg0: CharSequence?, _ arg1: Int32, _ arg2: Int32, _ arg3: Int32) throws -> Int64 + @JavaMethod + open override func equals(_ arg0: JavaObject?) -> Bool + + /// Java method `hashCode`. + /// + /// ### Java method signature + /// ```java + /// public int java.lang.Long.hashCode() + /// ``` + @JavaMethod + open override func hashCode() -> Int32 + + /// Java method `toString`. + /// + /// ### Java method signature + /// ```java + /// public java.lang.String java.lang.Long.toString() + /// ``` + @JavaMethod + open override func toString() -> String } diff --git a/Sources/SwiftJava/generated/JavaMap.swift b/Sources/SwiftJava/generated/JavaMap.swift new file mode 100644 index 000000000..20cba7edf --- /dev/null +++ b/Sources/SwiftJava/generated/JavaMap.swift @@ -0,0 +1,233 @@ +// Auto-generated by Java-to-Swift wrapper generator. +import SwiftJavaJNICore + +@JavaInterface("java.util.Map") +public struct JavaMap { + public typealias K = JavaMap_K + + public typealias V = JavaMap_V + + /// Java method `clear`. + /// + /// ### Java method signature + /// ```java + /// public abstract void java.util.Map.clear() + /// ``` + @JavaMethod + public func clear() + + /// Java method `containsKey`. + /// + /// ### Java method signature + /// ```java + /// public abstract boolean java.util.Map.containsKey(java.lang.Object) + /// ``` + @JavaMethod + public func containsKey(_ arg0: JavaObject?) -> Bool + + /// Java method `containsValue`. + /// + /// ### Java method signature + /// ```java + /// public abstract boolean java.util.Map.containsValue(java.lang.Object) + /// ``` + @JavaMethod + public func containsValue(_ arg0: JavaObject?) -> Bool + + /// Java method `isEmpty`. + /// + /// ### Java method signature + /// ```java + /// public abstract boolean java.util.Map.isEmpty() + /// ``` + @JavaMethod + public func isEmpty() -> Bool + + /// Java method `entrySet`. + /// + /// ### Java method signature + /// ```java + /// public abstract java.util.Set> java.util.Map.entrySet() + /// ``` + @JavaMethod + public func entrySet() -> JavaSet.Entry>! + + /// Java method `get`. + /// + /// ### Java method signature + /// ```java + /// public abstract V java.util.Map.get(java.lang.Object) + /// ``` + @JavaMethod(typeErasedResult: "V!") + public func get(_ arg0: JavaObject?) -> V! + + /// Java method `keySet`. + /// + /// ### Java method signature + /// ```java + /// public abstract java.util.Set java.util.Map.keySet() + /// ``` + @JavaMethod + public func keySet() -> JavaSet! + + /// Java method `getOrDefault`. + /// + /// ### Java method signature + /// ```java + /// public default V java.util.Map.getOrDefault(java.lang.Object,V) + /// ``` + @JavaMethod(typeErasedResult: "V!") + public func getOrDefault(_ arg0: JavaObject?, _ arg1: V?) -> V! + + /// Java method `put`. + /// + /// ### Java method signature + /// ```java + /// public abstract V java.util.Map.put(K,V) + /// ``` + @JavaMethod(typeErasedResult: "V!") + public func put(_ arg0: K?, _ arg1: V?) -> V! + + /// Java method `putAll`. + /// + /// ### Java method signature + /// ```java + /// public abstract void java.util.Map.putAll(java.util.Map) + /// ``` + @JavaMethod + public func putAll(_ arg0: JavaMap?) + + /// Java method `putIfAbsent`. + /// + /// ### Java method signature + /// ```java + /// public default V java.util.Map.putIfAbsent(K,V) + /// ``` + @JavaMethod(typeErasedResult: "V!") + public func putIfAbsent(_ arg0: K?, _ arg1: V?) -> V! + + /// Java method `remove`. + /// + /// ### Java method signature + /// ```java + /// public abstract V java.util.Map.remove(java.lang.Object) + /// ``` + @JavaMethod(typeErasedResult: "V!") + public func remove(_ arg0: JavaObject?) -> V! + + /// Java method `remove`. + /// + /// ### Java method signature + /// ```java + /// public default boolean java.util.Map.remove(java.lang.Object,java.lang.Object) + /// ``` + @JavaMethod + public func remove(_ arg0: JavaObject?, _ arg1: JavaObject?) -> Bool + + /// Java method `replace`. + /// + /// ### Java method signature + /// ```java + /// public default V java.util.Map.replace(K,V) + /// ``` + @JavaMethod(typeErasedResult: "V!") + public func replace(_ arg0: K?, _ arg1: V?) -> V! + + /// Java method `replace`. + /// + /// ### Java method signature + /// ```java + /// public default boolean java.util.Map.replace(K,V,V) + /// ``` + @JavaMethod + public func replace(_ arg0: K?, _ arg1: V?, _ arg2: V?) -> Bool + + /// Java method `size`. + /// + /// ### Java method signature + /// ```java + /// public abstract int java.util.Map.size() + /// ``` + @JavaMethod + public func size() -> Int32 + + /// Java method `values`. + /// + /// ### Java method signature + /// ```java + /// public abstract java.util.Collection java.util.Map.values() + /// ``` + @JavaMethod + public func values() -> JavaCollection! + + /// Java method `equals`. + /// + /// ### Java method signature + /// ```java + /// public abstract boolean java.util.Map.equals(java.lang.Object) + /// ``` + @JavaMethod + public func equals(_ arg0: JavaObject?) -> Bool + + /// Java method `hashCode`. + /// + /// ### Java method signature + /// ```java + /// public abstract int java.util.Map.hashCode() + /// ``` + @JavaMethod + public func hashCode() -> Int32 +} +extension JavaMap { + @JavaInterface("java.util.Map$Entry") + public struct Entry { + public typealias K = Entry_K + + public typealias V = Entry_V + + /// Java method `getKey`. + /// + /// ### Java method signature + /// ```java + /// public abstract K java.util.Map$Entry.getKey() + /// ``` + @JavaMethod(typeErasedResult: "K!") + public func getKey() -> K! + + /// Java method `getValue`. + /// + /// ### Java method signature + /// ```java + /// public abstract V java.util.Map$Entry.getValue() + /// ``` + @JavaMethod(typeErasedResult: "V!") + public func getValue() -> V! + + /// Java method `setValue`. + /// + /// ### Java method signature + /// ```java + /// public abstract V java.util.Map$Entry.setValue(V) + /// ``` + @JavaMethod(typeErasedResult: "V!") + public func setValue(_ arg0: V?) -> V! + + /// Java method `equals`. + /// + /// ### Java method signature + /// ```java + /// public abstract boolean java.util.Map$Entry.equals(java.lang.Object) + /// ``` + @JavaMethod + public func equals(_ arg0: JavaObject?) -> Bool + + /// Java method `hashCode`. + /// + /// ### Java method signature + /// ```java + /// public abstract int java.util.Map$Entry.hashCode() + /// ``` + @JavaMethod + public func hashCode() -> Int32 + } +} diff --git a/Sources/SwiftJava/generated/JavaNumber.swift b/Sources/SwiftJava/generated/JavaNumber.swift index 17eef07bb..49c313050 100644 --- a/Sources/SwiftJava/generated/JavaNumber.swift +++ b/Sources/SwiftJava/generated/JavaNumber.swift @@ -15,48 +15,48 @@ open class JavaNumber: JavaObject { @JavaMethod open func byteValue() -> Int8 - /// Java method `shortValue`. + /// Java method `doubleValue`. /// /// ### Java method signature /// ```java - /// public short java.lang.Number.shortValue() + /// public abstract double java.lang.Number.doubleValue() /// ``` @JavaMethod - open func shortValue() -> Int16 + open func doubleValue() -> Double - /// Java method `intValue`. + /// Java method `floatValue`. /// /// ### Java method signature /// ```java - /// public abstract int java.lang.Number.intValue() + /// public abstract float java.lang.Number.floatValue() /// ``` @JavaMethod - open func intValue() -> Int32 + open func floatValue() -> Float - /// Java method `longValue`. + /// Java method `intValue`. /// /// ### Java method signature /// ```java - /// public abstract long java.lang.Number.longValue() + /// public abstract int java.lang.Number.intValue() /// ``` @JavaMethod - open func longValue() -> Int64 + open func intValue() -> Int32 - /// Java method `floatValue`. + /// Java method `longValue`. /// /// ### Java method signature /// ```java - /// public abstract float java.lang.Number.floatValue() + /// public abstract long java.lang.Number.longValue() /// ``` @JavaMethod - open func floatValue() -> Float + open func longValue() -> Int64 - /// Java method `doubleValue`. + /// Java method `shortValue`. /// /// ### Java method signature /// ```java - /// public abstract double java.lang.Number.doubleValue() + /// public short java.lang.Number.shortValue() /// ``` @JavaMethod - open func doubleValue() -> Double + open func shortValue() -> Int16 } diff --git a/Sources/SwiftJava/generated/JavaObject.swift b/Sources/SwiftJava/generated/JavaObject.swift index 5a01956db..62c27ed71 100644 --- a/Sources/SwiftJava/generated/JavaObject.swift +++ b/Sources/SwiftJava/generated/JavaObject.swift @@ -6,15 +6,23 @@ open class JavaObject { @JavaMethod @_nonoverride public convenience init(environment: JNIEnvironment? = nil) - /// Java method `finalize`. + /// Java method `getClass`. /// /// ### Java method signature /// ```java - /// protected void java.lang.Object.finalize() throws java.lang.Throwable + /// public final native java.lang.Class java.lang.Object.getClass() /// ``` - @available(*, deprecated) @JavaMethod - open func finalize() throws + open func getClass() -> JavaClass! + + /// Java method `clone`. + /// + /// ### Java method signature + /// ```java + /// protected native java.lang.Object java.lang.Object.clone() throws java.lang.CloneNotSupportedException + /// ``` + @JavaMethod + open func clone() throws -> JavaObject! /// Java method `equals`. /// @@ -25,14 +33,15 @@ open class JavaObject { @JavaMethod open func equals(_ arg0: JavaObject?) -> Bool - /// Java method `toString`. + /// Java method `finalize`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.Object.toString() + /// protected void java.lang.Object.finalize() throws java.lang.Throwable /// ``` + @available(*, deprecated) @JavaMethod - open func toString() -> String + open func finalize() throws /// Java method `hashCode`. /// @@ -43,41 +52,41 @@ open class JavaObject { @JavaMethod open func hashCode() -> Int32 - /// Java method `getClass`. + /// Java method `notify`. /// /// ### Java method signature /// ```java - /// public final native java.lang.Class java.lang.Object.getClass() + /// public final native void java.lang.Object.notify() /// ``` @JavaMethod - open func getClass() -> JavaClass! + open func notify() - /// Java method `clone`. + /// Java method `notifyAll`. /// /// ### Java method signature /// ```java - /// protected native java.lang.Object java.lang.Object.clone() throws java.lang.CloneNotSupportedException + /// public final native void java.lang.Object.notifyAll() /// ``` @JavaMethod - open func clone() throws -> JavaObject! + open func notifyAll() - /// Java method `notify`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public final native void java.lang.Object.notify() + /// public java.lang.String java.lang.Object.toString() /// ``` @JavaMethod - open func notify() + open func toString() -> String - /// Java method `notifyAll`. + /// Java method `wait`. /// /// ### Java method signature /// ```java - /// public final native void java.lang.Object.notifyAll() + /// public final void java.lang.Object.wait() throws java.lang.InterruptedException /// ``` @JavaMethod - open func notifyAll() + open func wait() throws /// Java method `wait`. /// @@ -96,13 +105,4 @@ open class JavaObject { /// ``` @JavaMethod open func wait(_ arg0: Int64, _ arg1: Int32) throws - - /// Java method `wait`. - /// - /// ### Java method signature - /// ```java - /// public final void java.lang.Object.wait() throws java.lang.InterruptedException - /// ``` - @JavaMethod - open func wait() throws } diff --git a/Sources/SwiftJava/generated/JavaOptional.swift b/Sources/SwiftJava/generated/JavaOptional.swift index 1738c5527..6d4f558b8 100644 --- a/Sources/SwiftJava/generated/JavaOptional.swift +++ b/Sources/SwiftJava/generated/JavaOptional.swift @@ -1,45 +1,49 @@ // Auto-generated by Java-to-Swift wrapper generator. import SwiftJavaJNICore -@JavaClass("java.util.Optional") -open class JavaOptional: JavaObject { - public typealias T = JavaOptional_T - - /// Java method `get`. +extension JavaClass { + /// Java method `empty`. /// /// ### Java method signature /// ```java - /// public T java.util.Optional.get() + /// public static java.util.Optional java.util.Optional.empty() /// ``` - @JavaMethod(typeErasedResult: "T!") - open func get() -> T! + @JavaStaticMethod + public func empty() -> JavaOptional! where ObjectType == JavaOptional - /// Java method `equals`. - /// - /// ### Java method signature - /// ```java - /// public boolean java.util.Optional.equals(java.lang.Object) - /// ``` - @JavaMethod - open override func equals(_ arg0: JavaObject?) -> Bool + public func emptyOptional() -> T? where ObjectType == JavaOptional { + Optional(javaOptional: empty()) + } - /// Java method `toString`. + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.util.Optional.toString() + /// public static java.util.Optional java.util.Optional.of(T) /// ``` - @JavaMethod - open override func toString() -> String + @JavaStaticMethod + public func of(_ arg0: T?) -> JavaOptional! where ObjectType == JavaOptional - /// Java method `hashCode`. + public func ofOptional(_ arg0: T?) -> T? where ObjectType == JavaOptional { + Optional(javaOptional: of(arg0)) + } + + /// Java method `ofNullable`. /// /// ### Java method signature /// ```java - /// public int java.util.Optional.hashCode() + /// public static java.util.Optional java.util.Optional.ofNullable(T) /// ``` - @JavaMethod - open override func hashCode() -> Int32 + @JavaStaticMethod + public func ofNullable(_ arg0: T?) -> JavaOptional! where ObjectType == JavaOptional + + public func ofNullableOptional(_ arg0: T?) -> T? where ObjectType == JavaOptional { + Optional(javaOptional: ofNullable(arg0)) + } +} +@JavaClass("java.util.Optional") +open class JavaOptional: JavaObject { + public typealias T = JavaOptional_T /// Java method `isEmpty`. /// @@ -50,23 +54,23 @@ open class JavaOptional: JavaObject { @JavaMethod open func isEmpty() -> Bool - /// Java method `orElse`. + /// Java method `get`. /// /// ### Java method signature /// ```java - /// public T java.util.Optional.orElse(T) + /// public T java.util.Optional.get() /// ``` @JavaMethod(typeErasedResult: "T!") - open func orElse(_ arg0: T?) -> T! + open func get() -> T! - /// Java method `isPresent`. + /// Java method `orElse`. /// /// ### Java method signature /// ```java - /// public boolean java.util.Optional.isPresent() + /// public T java.util.Optional.orElse(T) /// ``` - @JavaMethod - open func isPresent() -> Bool + @JavaMethod(typeErasedResult: "T!") + open func orElse(_ arg0: T?) -> T! /// Java method `orElseThrow`. /// @@ -76,44 +80,40 @@ open class JavaOptional: JavaObject { /// ``` @JavaMethod(typeErasedResult: "T!") open func orElseThrow() -> T! -} -extension JavaClass { - /// Java method `of`. + + /// Java method `isPresent`. /// /// ### Java method signature /// ```java - /// public static java.util.Optional java.util.Optional.of(T) + /// public boolean java.util.Optional.isPresent() /// ``` - @JavaStaticMethod - public func of(_ arg0: T?) -> JavaOptional! where ObjectType == JavaOptional - - public func ofOptional(_ arg0: T?) -> T? where ObjectType == JavaOptional { - Optional(javaOptional: of(arg0)) - } + @JavaMethod + open func isPresent() -> Bool - /// Java method `empty`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public static java.util.Optional java.util.Optional.empty() + /// public boolean java.util.Optional.equals(java.lang.Object) /// ``` - @JavaStaticMethod - public func empty() -> JavaOptional! where ObjectType == JavaOptional - - public func emptyOptional() -> T? where ObjectType == JavaOptional { - Optional(javaOptional: empty()) - } + @JavaMethod + open override func equals(_ arg0: JavaObject?) -> Bool - /// Java method `ofNullable`. + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public static java.util.Optional java.util.Optional.ofNullable(T) + /// public int java.util.Optional.hashCode() /// ``` - @JavaStaticMethod - public func ofNullable(_ arg0: T?) -> JavaOptional! where ObjectType == JavaOptional + @JavaMethod + open override func hashCode() -> Int32 - public func ofNullableOptional(_ arg0: T?) -> T? where ObjectType == JavaOptional { - Optional(javaOptional: ofNullable(arg0)) - } + /// Java method `toString`. + /// + /// ### Java method signature + /// ```java + /// public java.lang.String java.util.Optional.toString() + /// ``` + @JavaMethod + open override func toString() -> String } diff --git a/Sources/SwiftJava/generated/JavaOptionalDouble.swift b/Sources/SwiftJava/generated/JavaOptionalDouble.swift index c569e4314..89320916c 100644 --- a/Sources/SwiftJava/generated/JavaOptionalDouble.swift +++ b/Sources/SwiftJava/generated/JavaOptionalDouble.swift @@ -1,34 +1,43 @@ // Auto-generated by Java-to-Swift wrapper generator. import SwiftJavaJNICore -@JavaClass("java.util.OptionalDouble") -open class JavaOptionalDouble: JavaObject { - /// Java method `equals`. +extension JavaClass { + /// Java method `empty`. /// /// ### Java method signature /// ```java - /// public boolean java.util.OptionalDouble.equals(java.lang.Object) + /// public static java.util.OptionalDouble java.util.OptionalDouble.empty() /// ``` - @JavaMethod - open override func equals(_ arg0: JavaObject?) -> Bool + @JavaStaticMethod + public func empty() -> JavaOptionalDouble! - /// Java method `toString`. + public func emptyOptional() -> Double? { + Optional(javaOptional: empty()) + } + + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.util.OptionalDouble.toString() + /// public static java.util.OptionalDouble java.util.OptionalDouble.of(double) /// ``` - @JavaMethod - open override func toString() -> String + @JavaStaticMethod + public func of(_ arg0: Double) -> JavaOptionalDouble! - /// Java method `hashCode`. + public func ofOptional(_ arg0: Double) -> Double? { + Optional(javaOptional: of(arg0)) + } +} +@JavaClass("java.util.OptionalDouble") +open class JavaOptionalDouble: JavaObject { + /// Java method `getAsDouble`. /// /// ### Java method signature /// ```java - /// public int java.util.OptionalDouble.hashCode() + /// public double java.util.OptionalDouble.getAsDouble() /// ``` @JavaMethod - open override func hashCode() -> Int32 + open func getAsDouble() -> Double /// Java method `isEmpty`. /// @@ -48,57 +57,48 @@ open class JavaOptionalDouble: JavaObject { @JavaMethod open func orElse(_ arg0: Double) -> Double - /// Java method `isPresent`. + /// Java method `orElseThrow`. /// /// ### Java method signature /// ```java - /// public boolean java.util.OptionalDouble.isPresent() + /// public double java.util.OptionalDouble.orElseThrow() /// ``` @JavaMethod - open func isPresent() -> Bool + open func orElseThrow() -> Double - /// Java method `orElseThrow`. + /// Java method `isPresent`. /// /// ### Java method signature /// ```java - /// public double java.util.OptionalDouble.orElseThrow() + /// public boolean java.util.OptionalDouble.isPresent() /// ``` @JavaMethod - open func orElseThrow() -> Double + open func isPresent() -> Bool - /// Java method `getAsDouble`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public double java.util.OptionalDouble.getAsDouble() + /// public boolean java.util.OptionalDouble.equals(java.lang.Object) /// ``` @JavaMethod - open func getAsDouble() -> Double -} -extension JavaClass { - /// Java method `of`. + open override func equals(_ arg0: JavaObject?) -> Bool + + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public static java.util.OptionalDouble java.util.OptionalDouble.of(double) + /// public int java.util.OptionalDouble.hashCode() /// ``` - @JavaStaticMethod - public func of(_ arg0: Double) -> JavaOptionalDouble! - - public func ofOptional(_ arg0: Double) -> Double? { - Optional(javaOptional: of(arg0)) - } + @JavaMethod + open override func hashCode() -> Int32 - /// Java method `empty`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public static java.util.OptionalDouble java.util.OptionalDouble.empty() + /// public java.lang.String java.util.OptionalDouble.toString() /// ``` - @JavaStaticMethod - public func empty() -> JavaOptionalDouble! - - public func emptyOptional() -> Double? { - Optional(javaOptional: empty()) - } + @JavaMethod + open override func toString() -> String } diff --git a/Sources/SwiftJava/generated/JavaOptionalInt.swift b/Sources/SwiftJava/generated/JavaOptionalInt.swift index ccc1a16d9..4e275afd9 100644 --- a/Sources/SwiftJava/generated/JavaOptionalInt.swift +++ b/Sources/SwiftJava/generated/JavaOptionalInt.swift @@ -1,34 +1,43 @@ // Auto-generated by Java-to-Swift wrapper generator. import SwiftJavaJNICore -@JavaClass("java.util.OptionalInt") -open class JavaOptionalInt: JavaObject { - /// Java method `equals`. +extension JavaClass { + /// Java method `empty`. /// /// ### Java method signature /// ```java - /// public boolean java.util.OptionalInt.equals(java.lang.Object) + /// public static java.util.OptionalInt java.util.OptionalInt.empty() /// ``` - @JavaMethod - open override func equals(_ arg0: JavaObject?) -> Bool + @JavaStaticMethod + public func empty() -> JavaOptionalInt! - /// Java method `toString`. + public func emptyOptional() -> Int32? { + Optional(javaOptional: empty()) + } + + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.util.OptionalInt.toString() + /// public static java.util.OptionalInt java.util.OptionalInt.of(int) /// ``` - @JavaMethod - open override func toString() -> String + @JavaStaticMethod + public func of(_ arg0: Int32) -> JavaOptionalInt! - /// Java method `hashCode`. + public func ofOptional(_ arg0: Int32) -> Int32? { + Optional(javaOptional: of(arg0)) + } +} +@JavaClass("java.util.OptionalInt") +open class JavaOptionalInt: JavaObject { + /// Java method `getAsInt`. /// /// ### Java method signature /// ```java - /// public int java.util.OptionalInt.hashCode() + /// public int java.util.OptionalInt.getAsInt() /// ``` @JavaMethod - open override func hashCode() -> Int32 + open func getAsInt() -> Int32 /// Java method `isEmpty`. /// @@ -48,57 +57,48 @@ open class JavaOptionalInt: JavaObject { @JavaMethod open func orElse(_ arg0: Int32) -> Int32 - /// Java method `isPresent`. + /// Java method `orElseThrow`. /// /// ### Java method signature /// ```java - /// public boolean java.util.OptionalInt.isPresent() + /// public int java.util.OptionalInt.orElseThrow() /// ``` @JavaMethod - open func isPresent() -> Bool + open func orElseThrow() -> Int32 - /// Java method `orElseThrow`. + /// Java method `isPresent`. /// /// ### Java method signature /// ```java - /// public int java.util.OptionalInt.orElseThrow() + /// public boolean java.util.OptionalInt.isPresent() /// ``` @JavaMethod - open func orElseThrow() -> Int32 + open func isPresent() -> Bool - /// Java method `getAsInt`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public int java.util.OptionalInt.getAsInt() + /// public boolean java.util.OptionalInt.equals(java.lang.Object) /// ``` @JavaMethod - open func getAsInt() -> Int32 -} -extension JavaClass { - /// Java method `of`. + open override func equals(_ arg0: JavaObject?) -> Bool + + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public static java.util.OptionalInt java.util.OptionalInt.of(int) + /// public int java.util.OptionalInt.hashCode() /// ``` - @JavaStaticMethod - public func of(_ arg0: Int32) -> JavaOptionalInt! - - public func ofOptional(_ arg0: Int32) -> Int32? { - Optional(javaOptional: of(arg0)) - } + @JavaMethod + open override func hashCode() -> Int32 - /// Java method `empty`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public static java.util.OptionalInt java.util.OptionalInt.empty() + /// public java.lang.String java.util.OptionalInt.toString() /// ``` - @JavaStaticMethod - public func empty() -> JavaOptionalInt! - - public func emptyOptional() -> Int32? { - Optional(javaOptional: empty()) - } + @JavaMethod + open override func toString() -> String } diff --git a/Sources/SwiftJava/generated/JavaOptionalLong.swift b/Sources/SwiftJava/generated/JavaOptionalLong.swift index 694c17376..de64b0fe6 100644 --- a/Sources/SwiftJava/generated/JavaOptionalLong.swift +++ b/Sources/SwiftJava/generated/JavaOptionalLong.swift @@ -1,34 +1,43 @@ // Auto-generated by Java-to-Swift wrapper generator. import SwiftJavaJNICore -@JavaClass("java.util.OptionalLong") -open class JavaOptionalLong: JavaObject { - /// Java method `equals`. +extension JavaClass { + /// Java method `empty`. /// /// ### Java method signature /// ```java - /// public boolean java.util.OptionalLong.equals(java.lang.Object) + /// public static java.util.OptionalLong java.util.OptionalLong.empty() /// ``` - @JavaMethod - open override func equals(_ arg0: JavaObject?) -> Bool + @JavaStaticMethod + public func empty() -> JavaOptionalLong! - /// Java method `toString`. + public func emptyOptional() -> Int64? { + Optional(javaOptional: empty()) + } + + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.util.OptionalLong.toString() + /// public static java.util.OptionalLong java.util.OptionalLong.of(long) /// ``` - @JavaMethod - open override func toString() -> String + @JavaStaticMethod + public func of(_ arg0: Int64) -> JavaOptionalLong! - /// Java method `hashCode`. + public func ofOptional(_ arg0: Int64) -> Int64? { + Optional(javaOptional: of(arg0)) + } +} +@JavaClass("java.util.OptionalLong") +open class JavaOptionalLong: JavaObject { + /// Java method `getAsLong`. /// /// ### Java method signature /// ```java - /// public int java.util.OptionalLong.hashCode() + /// public long java.util.OptionalLong.getAsLong() /// ``` @JavaMethod - open override func hashCode() -> Int32 + open func getAsLong() -> Int64 /// Java method `isEmpty`. /// @@ -48,57 +57,48 @@ open class JavaOptionalLong: JavaObject { @JavaMethod open func orElse(_ arg0: Int64) -> Int64 - /// Java method `isPresent`. + /// Java method `orElseThrow`. /// /// ### Java method signature /// ```java - /// public boolean java.util.OptionalLong.isPresent() + /// public long java.util.OptionalLong.orElseThrow() /// ``` @JavaMethod - open func isPresent() -> Bool + open func orElseThrow() -> Int64 - /// Java method `orElseThrow`. + /// Java method `isPresent`. /// /// ### Java method signature /// ```java - /// public long java.util.OptionalLong.orElseThrow() + /// public boolean java.util.OptionalLong.isPresent() /// ``` @JavaMethod - open func orElseThrow() -> Int64 + open func isPresent() -> Bool - /// Java method `getAsLong`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public long java.util.OptionalLong.getAsLong() + /// public boolean java.util.OptionalLong.equals(java.lang.Object) /// ``` @JavaMethod - open func getAsLong() -> Int64 -} -extension JavaClass { - /// Java method `of`. + open override func equals(_ arg0: JavaObject?) -> Bool + + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public static java.util.OptionalLong java.util.OptionalLong.of(long) + /// public int java.util.OptionalLong.hashCode() /// ``` - @JavaStaticMethod - public func of(_ arg0: Int64) -> JavaOptionalLong! - - public func ofOptional(_ arg0: Int64) -> Int64? { - Optional(javaOptional: of(arg0)) - } + @JavaMethod + open override func hashCode() -> Int32 - /// Java method `empty`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public static java.util.OptionalLong java.util.OptionalLong.empty() + /// public java.lang.String java.util.OptionalLong.toString() /// ``` - @JavaStaticMethod - public func empty() -> JavaOptionalLong! - - public func emptyOptional() -> Int64? { - Optional(javaOptional: empty()) - } + @JavaMethod + open override func toString() -> String } diff --git a/Sources/SwiftJava/generated/JavaSet.swift b/Sources/SwiftJava/generated/JavaSet.swift index 8ec89becd..0ba71e1a4 100644 --- a/Sources/SwiftJava/generated/JavaSet.swift +++ b/Sources/SwiftJava/generated/JavaSet.swift @@ -1,262 +1,262 @@ // Auto-generated by Java-to-Swift wrapper generator. import SwiftJavaJNICore -@JavaInterface("java.util.Set", extends: JavaCollection.self) -public struct JavaSet { - public typealias E = JavaSet_E - - /// Java method `remove`. +extension JavaClass { + /// Java method `copyOf`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.Set.remove(java.lang.Object) + /// public static java.util.Set java.util.Set.copyOf(java.util.Collection) /// ``` - @JavaMethod - public func remove(_ arg0: JavaObject?) -> Bool + @JavaStaticMethod + public func copyOf(_ arg0: JavaCollection?) -> JavaSet! where ObjectType == JavaSet - /// Java method `size`. + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public abstract int java.util.Set.size() + /// public static java.util.Set java.util.Set.of() /// ``` - @JavaMethod - public func size() -> Int32 + @JavaStaticMethod + public func of() -> JavaSet! where ObjectType == JavaSet - /// Java method `equals`. + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.Set.equals(java.lang.Object) + /// public static java.util.Set java.util.Set.of(E) /// ``` - @JavaMethod - public func equals(_ arg0: JavaObject?) -> Bool + @JavaStaticMethod + public func of(_ arg0: E?) -> JavaSet! where ObjectType == JavaSet - /// Java method `hashCode`. + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public abstract int java.util.Set.hashCode() + /// public static java.util.Set java.util.Set.of(E,E) /// ``` - @JavaMethod - public func hashCode() -> Int32 + @JavaStaticMethod + public func of(_ arg0: E?, _ arg1: E?) -> JavaSet! where ObjectType == JavaSet - /// Java method `clear`. + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public abstract void java.util.Set.clear() + /// public static java.util.Set java.util.Set.of(E,E,E) /// ``` - @JavaMethod - public func clear() + @JavaStaticMethod + public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?) -> JavaSet! where ObjectType == JavaSet - /// Java method `isEmpty`. + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.Set.isEmpty() + /// public static java.util.Set java.util.Set.of(E,E,E,E) /// ``` - @JavaMethod - public func isEmpty() -> Bool + @JavaStaticMethod + public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?, _ arg3: E?) -> JavaSet! where ObjectType == JavaSet - /// Java method `add`. + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.Set.add(E) + /// public static java.util.Set java.util.Set.of(E,E,E,E,E) /// ``` - @JavaMethod - public func add(_ arg0: E?) -> Bool + @JavaStaticMethod + public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?, _ arg3: E?, _ arg4: E?) -> JavaSet! where ObjectType == JavaSet - /// Java method `toArray`. + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public abstract T[] java.util.Set.toArray(T[]) + /// public static java.util.Set java.util.Set.of(E,E,E,E,E,E) /// ``` - @JavaMethod - public func toArray(_ arg0: [T?]) -> [T?] + @JavaStaticMethod + public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?, _ arg3: E?, _ arg4: E?, _ arg5: E?) -> JavaSet! where ObjectType == JavaSet - /// Java method `toArray`. + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.Object[] java.util.Set.toArray() + /// public static java.util.Set java.util.Set.of(E,E,E,E,E,E,E) /// ``` - @JavaMethod - public func toArray() -> [JavaObject?] + @JavaStaticMethod + public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?, _ arg3: E?, _ arg4: E?, _ arg5: E?, _ arg6: E?) -> JavaSet! where ObjectType == JavaSet - /// Java method `iterator`. + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public abstract java.util.Iterator java.util.Set.iterator() + /// public static java.util.Set java.util.Set.of(E,E,E,E,E,E,E,E) /// ``` - @JavaMethod - public func iterator() -> JavaIterator! + @JavaStaticMethod + public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?, _ arg3: E?, _ arg4: E?, _ arg5: E?, _ arg6: E?, _ arg7: E?) -> JavaSet! where ObjectType == JavaSet - /// Java method `contains`. + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.Set.contains(java.lang.Object) + /// public static java.util.Set java.util.Set.of(E,E,E,E,E,E,E,E,E) /// ``` - @JavaMethod - public func contains(_ arg0: JavaObject?) -> Bool + @JavaStaticMethod + public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?, _ arg3: E?, _ arg4: E?, _ arg5: E?, _ arg6: E?, _ arg7: E?, _ arg8: E?) -> JavaSet! + where ObjectType == JavaSet - /// Java method `addAll`. + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.Set.addAll(java.util.Collection) + /// public static java.util.Set java.util.Set.of(E,E,E,E,E,E,E,E,E,E) /// ``` - @JavaMethod - public func addAll(_ arg0: JavaCollection?) -> Bool + @JavaStaticMethod + public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?, _ arg3: E?, _ arg4: E?, _ arg5: E?, _ arg6: E?, _ arg7: E?, _ arg8: E?, _ arg9: E?) -> JavaSet! + where ObjectType == JavaSet - /// Java method `removeAll`. + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.Set.removeAll(java.util.Collection) + /// public static java.util.Set java.util.Set.of(E...) /// ``` - @JavaMethod - public func removeAll(_ arg0: JavaCollection?) -> Bool + @JavaStaticMethod + public func of(_ arg0: [E?]) -> JavaSet! where ObjectType == JavaSet +} +@JavaInterface("java.util.Set", extends: JavaCollection.self) +public struct JavaSet { + public typealias E = JavaSet_E - /// Java method `retainAll`. + /// Java method `add`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.Set.retainAll(java.util.Collection) + /// public abstract boolean java.util.Set.add(E) /// ``` @JavaMethod - public func retainAll(_ arg0: JavaCollection?) -> Bool + public func add(_ arg0: E?) -> Bool - /// Java method `containsAll`. + /// Java method `addAll`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.Set.containsAll(java.util.Collection) + /// public abstract boolean java.util.Set.addAll(java.util.Collection) /// ``` @JavaMethod - public func containsAll(_ arg0: JavaCollection?) -> Bool -} -extension JavaClass { - /// Java method `copyOf`. + public func addAll(_ arg0: JavaCollection?) -> Bool + + /// Java method `clear`. /// /// ### Java method signature /// ```java - /// public static java.util.Set java.util.Set.copyOf(java.util.Collection) + /// public abstract void java.util.Set.clear() /// ``` - @JavaStaticMethod - public func copyOf(_ arg0: JavaCollection?) -> JavaSet! where ObjectType == JavaSet + @JavaMethod + public func clear() - /// Java method `of`. + /// Java method `contains`. /// /// ### Java method signature /// ```java - /// public static java.util.Set java.util.Set.of(E,E,E,E,E) + /// public abstract boolean java.util.Set.contains(java.lang.Object) /// ``` - @JavaStaticMethod - public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?, _ arg3: E?, _ arg4: E?) -> JavaSet! where ObjectType == JavaSet + @JavaMethod + public func contains(_ arg0: JavaObject?) -> Bool - /// Java method `of`. + /// Java method `containsAll`. /// /// ### Java method signature /// ```java - /// public static java.util.Set java.util.Set.of(E,E,E,E) + /// public abstract boolean java.util.Set.containsAll(java.util.Collection) /// ``` - @JavaStaticMethod - public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?, _ arg3: E?) -> JavaSet! where ObjectType == JavaSet + @JavaMethod + public func containsAll(_ arg0: JavaCollection?) -> Bool - /// Java method `of`. + /// Java method `isEmpty`. /// /// ### Java method signature /// ```java - /// public static java.util.Set java.util.Set.of(E,E,E) + /// public abstract boolean java.util.Set.isEmpty() /// ``` - @JavaStaticMethod - public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?) -> JavaSet! where ObjectType == JavaSet + @JavaMethod + public func isEmpty() -> Bool - /// Java method `of`. + /// Java method `iterator`. /// /// ### Java method signature /// ```java - /// public static java.util.Set java.util.Set.of(E,E) + /// public abstract java.util.Iterator java.util.Set.iterator() /// ``` - @JavaStaticMethod - public func of(_ arg0: E?, _ arg1: E?) -> JavaSet! where ObjectType == JavaSet + @JavaMethod + public func iterator() -> JavaIterator! - /// Java method `of`. + /// Java method `remove`. /// /// ### Java method signature /// ```java - /// public static java.util.Set java.util.Set.of(E) + /// public abstract boolean java.util.Set.remove(java.lang.Object) /// ``` - @JavaStaticMethod - public func of(_ arg0: E?) -> JavaSet! where ObjectType == JavaSet + @JavaMethod + public func remove(_ arg0: JavaObject?) -> Bool - /// Java method `of`. + /// Java method `removeAll`. /// /// ### Java method signature /// ```java - /// public static java.util.Set java.util.Set.of(E...) + /// public abstract boolean java.util.Set.removeAll(java.util.Collection) /// ``` - @JavaStaticMethod - public func of(_ arg0: [E?]) -> JavaSet! where ObjectType == JavaSet + @JavaMethod + public func removeAll(_ arg0: JavaCollection?) -> Bool - /// Java method `of`. + /// Java method `retainAll`. /// /// ### Java method signature /// ```java - /// public static java.util.Set java.util.Set.of(E,E,E,E,E,E,E,E,E,E) + /// public abstract boolean java.util.Set.retainAll(java.util.Collection) /// ``` - @JavaStaticMethod - public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?, _ arg3: E?, _ arg4: E?, _ arg5: E?, _ arg6: E?, _ arg7: E?, _ arg8: E?, _ arg9: E?) -> JavaSet! - where ObjectType == JavaSet + @JavaMethod + public func retainAll(_ arg0: JavaCollection?) -> Bool - /// Java method `of`. + /// Java method `size`. /// /// ### Java method signature /// ```java - /// public static java.util.Set java.util.Set.of(E,E,E,E,E,E,E,E,E) + /// public abstract int java.util.Set.size() /// ``` - @JavaStaticMethod - public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?, _ arg3: E?, _ arg4: E?, _ arg5: E?, _ arg6: E?, _ arg7: E?, _ arg8: E?) -> JavaSet! - where ObjectType == JavaSet + @JavaMethod + public func size() -> Int32 - /// Java method `of`. + /// Java method `toArray`. /// /// ### Java method signature /// ```java - /// public static java.util.Set java.util.Set.of(E,E,E,E,E,E,E,E) + /// public abstract T[] java.util.Set.toArray(T[]) /// ``` - @JavaStaticMethod - public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?, _ arg3: E?, _ arg4: E?, _ arg5: E?, _ arg6: E?, _ arg7: E?) -> JavaSet! where ObjectType == JavaSet + @JavaMethod + public func toArray(_ arg0: [T?]) -> [T?] - /// Java method `of`. + /// Java method `toArray`. /// /// ### Java method signature /// ```java - /// public static java.util.Set java.util.Set.of(E,E,E,E,E,E,E) + /// public abstract java.lang.Object[] java.util.Set.toArray() /// ``` - @JavaStaticMethod - public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?, _ arg3: E?, _ arg4: E?, _ arg5: E?, _ arg6: E?) -> JavaSet! where ObjectType == JavaSet + @JavaMethod + public func toArray() -> [JavaObject?] - /// Java method `of`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public static java.util.Set java.util.Set.of(E,E,E,E,E,E) + /// public abstract boolean java.util.Set.equals(java.lang.Object) /// ``` - @JavaStaticMethod - public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?, _ arg3: E?, _ arg4: E?, _ arg5: E?) -> JavaSet! where ObjectType == JavaSet + @JavaMethod + public func equals(_ arg0: JavaObject?) -> Bool - /// Java method `of`. + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public static java.util.Set java.util.Set.of() + /// public abstract int java.util.Set.hashCode() /// ``` - @JavaStaticMethod - public func of() -> JavaSet! where ObjectType == JavaSet + @JavaMethod + public func hashCode() -> Int32 } diff --git a/Sources/SwiftJava/generated/JavaShort.swift b/Sources/SwiftJava/generated/JavaShort.swift index f7d5e5e7a..f42a8a122 100644 --- a/Sources/SwiftJava/generated/JavaShort.swift +++ b/Sources/SwiftJava/generated/JavaShort.swift @@ -1,139 +1,120 @@ // Auto-generated by Java-to-Swift wrapper generator. import SwiftJavaJNICore -@JavaClass("java.lang.Short") -open class JavaShort: JavaNumber { - @available(*, deprecated) - @JavaMethod - @_nonoverride public convenience init(_ arg0: Int16, environment: JNIEnvironment? = nil) +extension JavaClass { + @JavaStaticField(isFinal: true) + public var BYTES: Int32 - @available(*, deprecated) - @JavaMethod - @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) throws + @JavaStaticField(isFinal: true) + public var MAX_VALUE: Int16 - /// Java method `equals`. - /// - /// ### Java method signature - /// ```java - /// public boolean java.lang.Short.equals(java.lang.Object) - /// ``` - @JavaMethod - open override func equals(_ arg0: JavaObject?) -> Bool + @JavaStaticField(isFinal: true) + public var MIN_VALUE: Int16 - /// Java method `toString`. + @JavaStaticField(isFinal: true) + public var SIZE: Int32 + + @JavaStaticField(isFinal: true) + public var TYPE: JavaClass! + + /// Java method `compare`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.Short.toString() + /// public static int java.lang.Short.compare(short,short) /// ``` - @JavaMethod - open override func toString() -> String + @JavaStaticMethod + public func compare(_ arg0: Int16, _ arg1: Int16) -> Int32 - /// Java method `hashCode`. + /// Java method `compareUnsigned`. /// /// ### Java method signature /// ```java - /// public int java.lang.Short.hashCode() + /// public static int java.lang.Short.compareUnsigned(short,short) /// ``` - @JavaMethod - open override func hashCode() -> Int32 + @JavaStaticMethod + public func compareUnsigned(_ arg0: Int16, _ arg1: Int16) -> Int32 - /// Java method `compareTo`. + /// Java method `decode`. /// /// ### Java method signature /// ```java - /// public int java.lang.Short.compareTo(java.lang.Short) + /// public static java.lang.Short java.lang.Short.decode(java.lang.String) throws java.lang.NumberFormatException /// ``` - @JavaMethod - open func compareTo(_ arg0: JavaShort?) -> Int32 + @JavaStaticMethod + public func decode(_ arg0: String) throws -> JavaShort! - /// Java method `compareTo`. + /// Java method `parseShort`. /// /// ### Java method signature /// ```java - /// public int java.lang.Short.compareTo(java.lang.Object) + /// public static short java.lang.Short.parseShort(java.lang.String) throws java.lang.NumberFormatException /// ``` - @JavaMethod - open func compareTo(_ arg0: JavaObject?) -> Int32 + @JavaStaticMethod + public func parseShort(_ arg0: String) throws -> Int16 - /// Java method `byteValue`. + /// Java method `parseShort`. /// /// ### Java method signature /// ```java - /// public byte java.lang.Short.byteValue() + /// public static short java.lang.Short.parseShort(java.lang.String,int) throws java.lang.NumberFormatException /// ``` - @JavaMethod - open override func byteValue() -> Int8 + @JavaStaticMethod + public func parseShort(_ arg0: String, _ arg1: Int32) throws -> Int16 - /// Java method `shortValue`. + /// Java method `reverseBytes`. /// /// ### Java method signature /// ```java - /// public short java.lang.Short.shortValue() + /// public static short java.lang.Short.reverseBytes(short) /// ``` - @JavaMethod - open override func shortValue() -> Int16 + @JavaStaticMethod + public func reverseBytes(_ arg0: Int16) -> Int16 - /// Java method `intValue`. + /// Java method `toUnsignedInt`. /// /// ### Java method signature /// ```java - /// public int java.lang.Short.intValue() + /// public static int java.lang.Short.toUnsignedInt(short) /// ``` - @JavaMethod - open override func intValue() -> Int32 + @JavaStaticMethod + public func toUnsignedInt(_ arg0: Int16) -> Int32 - /// Java method `longValue`. + /// Java method `toUnsignedLong`. /// /// ### Java method signature /// ```java - /// public long java.lang.Short.longValue() + /// public static long java.lang.Short.toUnsignedLong(short) /// ``` - @JavaMethod - open override func longValue() -> Int64 + @JavaStaticMethod + public func toUnsignedLong(_ arg0: Int16) -> Int64 - /// Java method `floatValue`. + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public float java.lang.Short.floatValue() + /// public static java.lang.Short java.lang.Short.valueOf(java.lang.String) throws java.lang.NumberFormatException /// ``` - @JavaMethod - open override func floatValue() -> Float + @JavaStaticMethod + public func valueOf(_ arg0: String) throws -> JavaShort! - /// Java method `doubleValue`. + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public double java.lang.Short.doubleValue() + /// public static java.lang.Short java.lang.Short.valueOf(java.lang.String,int) throws java.lang.NumberFormatException /// ``` - @JavaMethod - open override func doubleValue() -> Double -} -extension JavaClass { - @JavaStaticField(isFinal: true) - public var MIN_VALUE: Int16 - - @JavaStaticField(isFinal: true) - public var MAX_VALUE: Int16 - - @JavaStaticField(isFinal: true) - public var TYPE: JavaClass! - - @JavaStaticField(isFinal: true) - public var SIZE: Int32 - - @JavaStaticField(isFinal: true) - public var BYTES: Int32 + @JavaStaticMethod + public func valueOf(_ arg0: String, _ arg1: Int32) throws -> JavaShort! - /// Java method `toString`. + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.Short.toString(short) + /// public static java.lang.Short java.lang.Short.valueOf(short) /// ``` @JavaStaticMethod - public func toString(_ arg0: Int16) -> String + public func valueOf(_ arg0: Int16) -> JavaShort! /// Java method `hashCode`. /// @@ -144,102 +125,121 @@ extension JavaClass { @JavaStaticMethod public func hashCode(_ arg0: Int16) -> Int32 - /// Java method `compareUnsigned`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Short.compareUnsigned(short,short) + /// public static java.lang.String java.lang.Short.toString(short) /// ``` @JavaStaticMethod - public func compareUnsigned(_ arg0: Int16, _ arg1: Int16) -> Int32 + public func toString(_ arg0: Int16) -> String +} +@JavaClass("java.lang.Short") +open class JavaShort: JavaNumber { + @available(*, deprecated) + @JavaMethod + @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) throws - /// Java method `reverseBytes`. + @available(*, deprecated) + @JavaMethod + @_nonoverride public convenience init(_ arg0: Int16, environment: JNIEnvironment? = nil) + + /// Java method `byteValue`. /// /// ### Java method signature /// ```java - /// public static short java.lang.Short.reverseBytes(short) + /// public byte java.lang.Short.byteValue() /// ``` - @JavaStaticMethod - public func reverseBytes(_ arg0: Int16) -> Int16 + @JavaMethod + open override func byteValue() -> Int8 - /// Java method `compare`. + /// Java method `compareTo`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Short.compare(short,short) + /// public int java.lang.Short.compareTo(java.lang.Object) /// ``` - @JavaStaticMethod - public func compare(_ arg0: Int16, _ arg1: Int16) -> Int32 + @JavaMethod + open func compareTo(_ arg0: JavaObject?) -> Int32 - /// Java method `valueOf`. + /// Java method `compareTo`. /// /// ### Java method signature /// ```java - /// public static java.lang.Short java.lang.Short.valueOf(java.lang.String,int) throws java.lang.NumberFormatException + /// public int java.lang.Short.compareTo(java.lang.Short) /// ``` - @JavaStaticMethod - public func valueOf(_ arg0: String, _ arg1: Int32) throws -> JavaShort! + @JavaMethod + open func compareTo(_ arg0: JavaShort?) -> Int32 - /// Java method `valueOf`. + /// Java method `doubleValue`. /// /// ### Java method signature /// ```java - /// public static java.lang.Short java.lang.Short.valueOf(java.lang.String) throws java.lang.NumberFormatException + /// public double java.lang.Short.doubleValue() /// ``` - @JavaStaticMethod - public func valueOf(_ arg0: String) throws -> JavaShort! + @JavaMethod + open override func doubleValue() -> Double - /// Java method `valueOf`. + /// Java method `floatValue`. /// /// ### Java method signature /// ```java - /// public static java.lang.Short java.lang.Short.valueOf(short) + /// public float java.lang.Short.floatValue() /// ``` - @JavaStaticMethod - public func valueOf(_ arg0: Int16) -> JavaShort! + @JavaMethod + open override func floatValue() -> Float - /// Java method `decode`. + /// Java method `intValue`. /// /// ### Java method signature /// ```java - /// public static java.lang.Short java.lang.Short.decode(java.lang.String) throws java.lang.NumberFormatException + /// public int java.lang.Short.intValue() /// ``` - @JavaStaticMethod - public func decode(_ arg0: String) throws -> JavaShort! + @JavaMethod + open override func intValue() -> Int32 - /// Java method `toUnsignedLong`. + /// Java method `longValue`. /// /// ### Java method signature /// ```java - /// public static long java.lang.Short.toUnsignedLong(short) + /// public long java.lang.Short.longValue() /// ``` - @JavaStaticMethod - public func toUnsignedLong(_ arg0: Int16) -> Int64 + @JavaMethod + open override func longValue() -> Int64 - /// Java method `toUnsignedInt`. + /// Java method `shortValue`. /// /// ### Java method signature /// ```java - /// public static int java.lang.Short.toUnsignedInt(short) + /// public short java.lang.Short.shortValue() /// ``` - @JavaStaticMethod - public func toUnsignedInt(_ arg0: Int16) -> Int32 + @JavaMethod + open override func shortValue() -> Int16 - /// Java method `parseShort`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public static short java.lang.Short.parseShort(java.lang.String) throws java.lang.NumberFormatException + /// public boolean java.lang.Short.equals(java.lang.Object) /// ``` - @JavaStaticMethod - public func parseShort(_ arg0: String) throws -> Int16 + @JavaMethod + open override func equals(_ arg0: JavaObject?) -> Bool - /// Java method `parseShort`. + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public static short java.lang.Short.parseShort(java.lang.String,int) throws java.lang.NumberFormatException + /// public int java.lang.Short.hashCode() /// ``` - @JavaStaticMethod - public func parseShort(_ arg0: String, _ arg1: Int32) throws -> Int16 + @JavaMethod + open override func hashCode() -> Int32 + + /// Java method `toString`. + /// + /// ### Java method signature + /// ```java + /// public java.lang.String java.lang.Short.toString() + /// ``` + @JavaMethod + open override func toString() -> String } diff --git a/Sources/SwiftJava/generated/JavaString.swift b/Sources/SwiftJava/generated/JavaString.swift index 0da5fa20f..e9d2f7d8e 100644 --- a/Sources/SwiftJava/generated/JavaString.swift +++ b/Sources/SwiftJava/generated/JavaString.swift @@ -1,736 +1,736 @@ // Auto-generated by Java-to-Swift wrapper generator. import SwiftJavaJNICore -@JavaClass("java.lang.String", implements: CharSequence.self) -open class JavaString: JavaObject { - @JavaMethod - @_nonoverride public convenience init(_ arg0: [Int8], _ arg1: Int32, _ arg2: Int32, _ arg3: Charset?, environment: JNIEnvironment? = nil) - - @JavaMethod - @_nonoverride public convenience init(_ arg0: [Int8], _ arg1: String, environment: JNIEnvironment? = nil) throws - - @JavaMethod - @_nonoverride public convenience init(_ arg0: [Int8], _ arg1: Charset?, environment: JNIEnvironment? = nil) - - @JavaMethod - @_nonoverride public convenience init(_ arg0: [Int8], _ arg1: Int32, _ arg2: Int32, environment: JNIEnvironment? = nil) - - @JavaMethod - @_nonoverride public convenience init(_ arg0: [Int8], environment: JNIEnvironment? = nil) - - @JavaMethod - @_nonoverride public convenience init(_ arg0: [UInt16], _ arg1: Int32, _ arg2: Int32, environment: JNIEnvironment? = nil) - - @JavaMethod - @_nonoverride public convenience init(_ arg0: [UInt16], environment: JNIEnvironment? = nil) - - @JavaMethod - @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) - - @JavaMethod - @_nonoverride public convenience init(environment: JNIEnvironment? = nil) - - @JavaMethod - @_nonoverride public convenience init(_ arg0: [Int8], _ arg1: Int32, _ arg2: Int32, _ arg3: String, environment: JNIEnvironment? = nil) throws - - @available(*, deprecated) - @JavaMethod - @_nonoverride public convenience init(_ arg0: [Int8], _ arg1: Int32, environment: JNIEnvironment? = nil) - - @available(*, deprecated) - @JavaMethod - @_nonoverride public convenience init(_ arg0: [Int8], _ arg1: Int32, _ arg2: Int32, _ arg3: Int32, environment: JNIEnvironment? = nil) - - @JavaMethod - @_nonoverride public convenience init(_ arg0: [Int32], _ arg1: Int32, _ arg2: Int32, environment: JNIEnvironment? = nil) - - /// Java method `equals`. +extension JavaClass { + /// Java method `copyValueOf`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.String.equals(java.lang.Object) + /// public static java.lang.String java.lang.String.copyValueOf(char[]) /// ``` - @JavaMethod - open override func equals(_ arg0: JavaObject?) -> Bool + @JavaStaticMethod + public func copyValueOf(_ arg0: [UInt16]) -> String - /// Java method `length`. + /// Java method `copyValueOf`. /// /// ### Java method signature /// ```java - /// public int java.lang.String.length() + /// public static java.lang.String java.lang.String.copyValueOf(char[],int,int) /// ``` - @JavaMethod - open func length() -> Int32 + @JavaStaticMethod + public func copyValueOf(_ arg0: [UInt16], _ arg1: Int32, _ arg2: Int32) -> String - /// Java method `toString`. + /// Java method `format`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.String.toString() + /// public static java.lang.String java.lang.String.format(java.lang.String,java.lang.Object...) /// ``` - @JavaMethod - open override func toString() -> String + @JavaStaticMethod + public func format(_ arg0: String, _ arg1: [JavaObject?]) -> String - /// Java method `hashCode`. + /// Java method `join`. /// /// ### Java method signature /// ```java - /// public int java.lang.String.hashCode() + /// public static java.lang.String java.lang.String.join(java.lang.CharSequence,java.lang.CharSequence...) /// ``` - @JavaMethod - open override func hashCode() -> Int32 + @JavaStaticMethod + public func join(_ arg0: CharSequence?, _ arg1: [CharSequence?]) -> String - /// Java method `getChars`. + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public void java.lang.String.getChars(int,int,char[],int) + /// public static java.lang.String java.lang.String.valueOf(boolean) /// ``` - @JavaMethod - open func getChars(_ arg0: Int32, _ arg1: Int32, _ arg2: [UInt16], _ arg3: Int32) + @JavaStaticMethod + public func valueOf(_ arg0: Bool) -> String - /// Java method `compareTo`. + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public int java.lang.String.compareTo(java.lang.String) + /// public static java.lang.String java.lang.String.valueOf(char) /// ``` - @JavaMethod - open func compareTo(_ arg0: String) -> Int32 + @JavaStaticMethod + public func valueOf(_ arg0: UInt16) -> String - /// Java method `compareTo`. + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public int java.lang.String.compareTo(java.lang.Object) + /// public static java.lang.String java.lang.String.valueOf(char[]) /// ``` - @JavaMethod - open func compareTo(_ arg0: JavaObject?) -> Int32 + @JavaStaticMethod + public func valueOf(_ arg0: [UInt16]) -> String - /// Java method `indexOf`. + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public int java.lang.String.indexOf(java.lang.String,int) + /// public static java.lang.String java.lang.String.valueOf(char[],int,int) /// ``` - @JavaMethod - open func indexOf(_ arg0: String, _ arg1: Int32) -> Int32 + @JavaStaticMethod + public func valueOf(_ arg0: [UInt16], _ arg1: Int32, _ arg2: Int32) -> String - /// Java method `indexOf`. + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public int java.lang.String.indexOf(java.lang.String,int,int) + /// public static java.lang.String java.lang.String.valueOf(double) /// ``` - @JavaMethod - open func indexOf(_ arg0: String, _ arg1: Int32, _ arg2: Int32) -> Int32 + @JavaStaticMethod + public func valueOf(_ arg0: Double) -> String - /// Java method `indexOf`. + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public int java.lang.String.indexOf(int) + /// public static java.lang.String java.lang.String.valueOf(float) /// ``` - @JavaMethod - open func indexOf(_ arg0: Int32) -> Int32 + @JavaStaticMethod + public func valueOf(_ arg0: Float) -> String - /// Java method `indexOf`. + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public int java.lang.String.indexOf(int,int) + /// public static java.lang.String java.lang.String.valueOf(int) /// ``` - @JavaMethod - open func indexOf(_ arg0: Int32, _ arg1: Int32) -> Int32 + @JavaStaticMethod + public func valueOf(_ arg0: Int32) -> String - /// Java method `indexOf`. + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public int java.lang.String.indexOf(int,int,int) + /// public static java.lang.String java.lang.String.valueOf(java.lang.Object) /// ``` - @JavaMethod - open func indexOf(_ arg0: Int32, _ arg1: Int32, _ arg2: Int32) -> Int32 + @JavaStaticMethod + public func valueOf(_ arg0: JavaObject?) -> String - /// Java method `indexOf`. + /// Java method `valueOf`. /// /// ### Java method signature /// ```java - /// public int java.lang.String.indexOf(java.lang.String) + /// public static java.lang.String java.lang.String.valueOf(long) /// ``` + @JavaStaticMethod + public func valueOf(_ arg0: Int64) -> String +} +@JavaClass("java.lang.String", implements: CharSequence.self) +open class JavaString: JavaObject { @JavaMethod - open func indexOf(_ arg0: String) -> Int32 + @_nonoverride public convenience init(environment: JNIEnvironment? = nil) - /// Java method `charAt`. + @JavaMethod + @_nonoverride public convenience init(_ arg0: [Int8], environment: JNIEnvironment? = nil) + + @available(*, deprecated) + @JavaMethod + @_nonoverride public convenience init(_ arg0: [Int8], _ arg1: Int32, environment: JNIEnvironment? = nil) + + @JavaMethod + @_nonoverride public convenience init(_ arg0: [Int8], _ arg1: Int32, _ arg2: Int32, environment: JNIEnvironment? = nil) + + @available(*, deprecated) + @JavaMethod + @_nonoverride public convenience init(_ arg0: [Int8], _ arg1: Int32, _ arg2: Int32, _ arg3: Int32, environment: JNIEnvironment? = nil) + + @JavaMethod + @_nonoverride public convenience init(_ arg0: [Int8], _ arg1: Int32, _ arg2: Int32, _ arg3: String, environment: JNIEnvironment? = nil) throws + + @JavaMethod + @_nonoverride public convenience init(_ arg0: [Int8], _ arg1: Int32, _ arg2: Int32, _ arg3: Charset?, environment: JNIEnvironment? = nil) + + @JavaMethod + @_nonoverride public convenience init(_ arg0: [Int8], _ arg1: String, environment: JNIEnvironment? = nil) throws + + @JavaMethod + @_nonoverride public convenience init(_ arg0: [Int8], _ arg1: Charset?, environment: JNIEnvironment? = nil) + + @JavaMethod + @_nonoverride public convenience init(_ arg0: [UInt16], environment: JNIEnvironment? = nil) + + @JavaMethod + @_nonoverride public convenience init(_ arg0: [UInt16], _ arg1: Int32, _ arg2: Int32, environment: JNIEnvironment? = nil) + + @JavaMethod + @_nonoverride public convenience init(_ arg0: [Int32], _ arg1: Int32, _ arg2: Int32, environment: JNIEnvironment? = nil) + + @JavaMethod + @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) + + /// Java method `isBlank`. /// /// ### Java method signature /// ```java - /// public char java.lang.String.charAt(int) + /// public boolean java.lang.String.isBlank() /// ``` @JavaMethod - open func charAt(_ arg0: Int32) -> UInt16 + open func isBlank() -> Bool - /// Java method `codePointAt`. + /// Java method `getBytes`. /// /// ### Java method signature /// ```java - /// public int java.lang.String.codePointAt(int) + /// public byte[] java.lang.String.getBytes() /// ``` @JavaMethod - open func codePointAt(_ arg0: Int32) -> Int32 + open func getBytes() -> [Int8] - /// Java method `codePointBefore`. + /// Java method `getBytes`. /// /// ### Java method signature /// ```java - /// public int java.lang.String.codePointBefore(int) + /// public byte[] java.lang.String.getBytes(java.lang.String) throws java.io.UnsupportedEncodingException /// ``` @JavaMethod - open func codePointBefore(_ arg0: Int32) -> Int32 + open func getBytes(_ arg0: String) throws -> [Int8] - /// Java method `codePointCount`. + /// Java method `getBytes`. /// /// ### Java method signature /// ```java - /// public int java.lang.String.codePointCount(int,int) + /// public byte[] java.lang.String.getBytes(java.nio.charset.Charset) /// ``` @JavaMethod - open func codePointCount(_ arg0: Int32, _ arg1: Int32) -> Int32 + open func getBytes(_ arg0: Charset?) -> [Int8] - /// Java method `offsetByCodePoints`. + /// Java method `getBytes`. /// /// ### Java method signature /// ```java - /// public int java.lang.String.offsetByCodePoints(int,int) + /// public void java.lang.String.getBytes(int,int,byte[],int) /// ``` + @available(*, deprecated) @JavaMethod - open func offsetByCodePoints(_ arg0: Int32, _ arg1: Int32) -> Int32 + open func getBytes(_ arg0: Int32, _ arg1: Int32, _ arg2: [Int8], _ arg3: Int32) - /// Java method `getBytes`. + /// Java method `charAt`. /// /// ### Java method signature /// ```java - /// public byte[] java.lang.String.getBytes(java.lang.String) throws java.io.UnsupportedEncodingException + /// public char java.lang.String.charAt(int) /// ``` @JavaMethod - open func getBytes(_ arg0: String) throws -> [Int8] + open func charAt(_ arg0: Int32) -> UInt16 - /// Java method `getBytes`. + /// Java method `getChars`. /// /// ### Java method signature /// ```java - /// public void java.lang.String.getBytes(int,int,byte[],int) + /// public void java.lang.String.getChars(int,int,char[],int) /// ``` - @available(*, deprecated) @JavaMethod - open func getBytes(_ arg0: Int32, _ arg1: Int32, _ arg2: [Int8], _ arg3: Int32) + open func getChars(_ arg0: Int32, _ arg1: Int32, _ arg2: [UInt16], _ arg3: Int32) - /// Java method `getBytes`. + /// Java method `codePointAt`. /// /// ### Java method signature /// ```java - /// public byte[] java.lang.String.getBytes() + /// public int java.lang.String.codePointAt(int) /// ``` @JavaMethod - open func getBytes() -> [Int8] + open func codePointAt(_ arg0: Int32) -> Int32 - /// Java method `getBytes`. + /// Java method `codePointBefore`. /// /// ### Java method signature /// ```java - /// public byte[] java.lang.String.getBytes(java.nio.charset.Charset) + /// public int java.lang.String.codePointBefore(int) /// ``` @JavaMethod - open func getBytes(_ arg0: Charset?) -> [Int8] + open func codePointBefore(_ arg0: Int32) -> Int32 - /// Java method `contentEquals`. + /// Java method `codePointCount`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.String.contentEquals(java.lang.CharSequence) + /// public int java.lang.String.codePointCount(int,int) /// ``` @JavaMethod - open func contentEquals(_ arg0: CharSequence?) -> Bool + open func codePointCount(_ arg0: Int32, _ arg1: Int32) -> Int32 - /// Java method `regionMatches`. + /// Java method `compareTo`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.String.regionMatches(int,java.lang.String,int,int) + /// public int java.lang.String.compareTo(java.lang.Object) /// ``` @JavaMethod - open func regionMatches(_ arg0: Int32, _ arg1: String, _ arg2: Int32, _ arg3: Int32) -> Bool + open func compareTo(_ arg0: JavaObject?) -> Int32 - /// Java method `regionMatches`. + /// Java method `compareTo`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.String.regionMatches(boolean,int,java.lang.String,int,int) + /// public int java.lang.String.compareTo(java.lang.String) /// ``` @JavaMethod - open func regionMatches(_ arg0: Bool, _ arg1: Int32, _ arg2: String, _ arg3: Int32, _ arg4: Int32) -> Bool + open func compareTo(_ arg0: String) -> Int32 - /// Java method `startsWith`. + /// Java method `compareToIgnoreCase`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.String.startsWith(java.lang.String) + /// public int java.lang.String.compareToIgnoreCase(java.lang.String) /// ``` @JavaMethod - open func startsWith(_ arg0: String) -> Bool + open func compareToIgnoreCase(_ arg0: String) -> Int32 - /// Java method `startsWith`. + /// Java method `concat`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.String.startsWith(java.lang.String,int) + /// public java.lang.String java.lang.String.concat(java.lang.String) /// ``` @JavaMethod - open func startsWith(_ arg0: String, _ arg1: Int32) -> Bool + open func concat(_ arg0: String) -> String - /// Java method `lastIndexOf`. + /// Java method `contains`. /// /// ### Java method signature /// ```java - /// public int java.lang.String.lastIndexOf(int) + /// public boolean java.lang.String.contains(java.lang.CharSequence) /// ``` @JavaMethod - open func lastIndexOf(_ arg0: Int32) -> Int32 + open func contains(_ arg0: CharSequence?) -> Bool - /// Java method `lastIndexOf`. + /// Java method `contentEquals`. /// /// ### Java method signature /// ```java - /// public int java.lang.String.lastIndexOf(java.lang.String) + /// public boolean java.lang.String.contentEquals(java.lang.CharSequence) /// ``` @JavaMethod - open func lastIndexOf(_ arg0: String) -> Int32 + open func contentEquals(_ arg0: CharSequence?) -> Bool - /// Java method `lastIndexOf`. + /// Java method `describeConstable`. /// /// ### Java method signature /// ```java - /// public int java.lang.String.lastIndexOf(java.lang.String,int) + /// public java.util.Optional java.lang.String.describeConstable() /// ``` @JavaMethod - open func lastIndexOf(_ arg0: String, _ arg1: Int32) -> Int32 + open func describeConstable() -> JavaOptional! - /// Java method `lastIndexOf`. + open func describeConstableOptional() -> JavaString? { + Optional(javaOptional: describeConstable()) + } + + /// Java method `isEmpty`. /// /// ### Java method signature /// ```java - /// public int java.lang.String.lastIndexOf(int,int) + /// public boolean java.lang.String.isEmpty() /// ``` @JavaMethod - open func lastIndexOf(_ arg0: Int32, _ arg1: Int32) -> Int32 + open func isEmpty() -> Bool - /// Java method `substring`. + /// Java method `endsWith`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.String.substring(int,int) + /// public boolean java.lang.String.endsWith(java.lang.String) /// ``` @JavaMethod - open func substring(_ arg0: Int32, _ arg1: Int32) -> String + open func endsWith(_ arg0: String) -> Bool - /// Java method `substring`. + /// Java method `equalsIgnoreCase`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.String.substring(int) + /// public boolean java.lang.String.equalsIgnoreCase(java.lang.String) /// ``` @JavaMethod - open func substring(_ arg0: Int32) -> String + open func equalsIgnoreCase(_ arg0: String) -> Bool - /// Java method `isEmpty`. + /// Java method `formatted`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.String.isEmpty() + /// public java.lang.String java.lang.String.formatted(java.lang.Object...) /// ``` @JavaMethod - open func isEmpty() -> Bool + open func formatted(_ arg0: [JavaObject?]) -> String - /// Java method `replace`. + /// Java method `indent`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.String.replace(java.lang.CharSequence,java.lang.CharSequence) + /// public java.lang.String java.lang.String.indent(int) /// ``` @JavaMethod - open func replace(_ arg0: CharSequence?, _ arg1: CharSequence?) -> String + open func indent(_ arg0: Int32) -> String - /// Java method `replace`. + /// Java method `indexOf`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.String.replace(char,char) + /// public int java.lang.String.indexOf(int) /// ``` @JavaMethod - open func replace(_ arg0: UInt16, _ arg1: UInt16) -> String + open func indexOf(_ arg0: Int32) -> Int32 - /// Java method `matches`. + /// Java method `indexOf`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.String.matches(java.lang.String) + /// public int java.lang.String.indexOf(int,int) /// ``` @JavaMethod - open func matches(_ arg0: String) -> Bool + open func indexOf(_ arg0: Int32, _ arg1: Int32) -> Int32 - /// Java method `replaceFirst`. + /// Java method `indexOf`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.String.replaceFirst(java.lang.String,java.lang.String) + /// public int java.lang.String.indexOf(int,int,int) /// ``` @JavaMethod - open func replaceFirst(_ arg0: String, _ arg1: String) -> String + open func indexOf(_ arg0: Int32, _ arg1: Int32, _ arg2: Int32) -> Int32 - /// Java method `replaceAll`. + /// Java method `indexOf`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.String.replaceAll(java.lang.String,java.lang.String) + /// public int java.lang.String.indexOf(java.lang.String) /// ``` @JavaMethod - open func replaceAll(_ arg0: String, _ arg1: String) -> String + open func indexOf(_ arg0: String) -> Int32 - /// Java method `split`. + /// Java method `indexOf`. /// /// ### Java method signature /// ```java - /// public java.lang.String[] java.lang.String.split(java.lang.String) + /// public int java.lang.String.indexOf(java.lang.String,int) /// ``` @JavaMethod - open func split(_ arg0: String) -> [String] + open func indexOf(_ arg0: String, _ arg1: Int32) -> Int32 - /// Java method `split`. + /// Java method `indexOf`. /// /// ### Java method signature /// ```java - /// public java.lang.String[] java.lang.String.split(java.lang.String,int) + /// public int java.lang.String.indexOf(java.lang.String,int,int) /// ``` @JavaMethod - open func split(_ arg0: String, _ arg1: Int32) -> [String] + open func indexOf(_ arg0: String, _ arg1: Int32, _ arg2: Int32) -> Int32 - /// Java method `splitWithDelimiters`. + /// Java method `intern`. /// /// ### Java method signature /// ```java - /// public java.lang.String[] java.lang.String.splitWithDelimiters(java.lang.String,int) + /// public native java.lang.String java.lang.String.intern() /// ``` @JavaMethod - open func splitWithDelimiters(_ arg0: String, _ arg1: Int32) -> [String] + open func intern() -> String - /// Java method `toLowerCase`. + /// Java method `lastIndexOf`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.String.toLowerCase() + /// public int java.lang.String.lastIndexOf(int) /// ``` @JavaMethod - open func toLowerCase() -> String + open func lastIndexOf(_ arg0: Int32) -> Int32 - /// Java method `toUpperCase`. + /// Java method `lastIndexOf`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.String.toUpperCase() + /// public int java.lang.String.lastIndexOf(int,int) /// ``` @JavaMethod - open func toUpperCase() -> String + open func lastIndexOf(_ arg0: Int32, _ arg1: Int32) -> Int32 - /// Java method `trim`. + /// Java method `lastIndexOf`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.String.trim() + /// public int java.lang.String.lastIndexOf(java.lang.String) /// ``` @JavaMethod - open func trim() -> String + open func lastIndexOf(_ arg0: String) -> Int32 - /// Java method `strip`. + /// Java method `lastIndexOf`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.String.strip() + /// public int java.lang.String.lastIndexOf(java.lang.String,int) /// ``` @JavaMethod - open func strip() -> String + open func lastIndexOf(_ arg0: String, _ arg1: Int32) -> Int32 - /// Java method `stripLeading`. + /// Java method `length`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.String.stripLeading() + /// public int java.lang.String.length() /// ``` @JavaMethod - open func stripLeading() -> String + open func length() -> Int32 - /// Java method `stripTrailing`. + /// Java method `matches`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.String.stripTrailing() + /// public boolean java.lang.String.matches(java.lang.String) /// ``` @JavaMethod - open func stripTrailing() -> String + open func matches(_ arg0: String) -> Bool - /// Java method `repeat`. + /// Java method `offsetByCodePoints`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.String.repeat(int) + /// public int java.lang.String.offsetByCodePoints(int,int) /// ``` - @JavaMethod("repeat") - open func `repeat`(_ arg0: Int32) -> String + @JavaMethod + open func offsetByCodePoints(_ arg0: Int32, _ arg1: Int32) -> Int32 - /// Java method `isBlank`. + /// Java method `regionMatches`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.String.isBlank() + /// public boolean java.lang.String.regionMatches(boolean,int,java.lang.String,int,int) /// ``` @JavaMethod - open func isBlank() -> Bool + open func regionMatches(_ arg0: Bool, _ arg1: Int32, _ arg2: String, _ arg3: Int32, _ arg4: Int32) -> Bool - /// Java method `toCharArray`. + /// Java method `regionMatches`. /// /// ### Java method signature /// ```java - /// public char[] java.lang.String.toCharArray() + /// public boolean java.lang.String.regionMatches(int,java.lang.String,int,int) /// ``` @JavaMethod - open func toCharArray() -> [UInt16] + open func regionMatches(_ arg0: Int32, _ arg1: String, _ arg2: Int32, _ arg3: Int32) -> Bool - /// Java method `equalsIgnoreCase`. + /// Java method `repeat`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.String.equalsIgnoreCase(java.lang.String) + /// public java.lang.String java.lang.String.repeat(int) /// ``` - @JavaMethod - open func equalsIgnoreCase(_ arg0: String) -> Bool + @JavaMethod("repeat") + open func `repeat`(_ arg0: Int32) -> String - /// Java method `compareToIgnoreCase`. + /// Java method `replace`. /// /// ### Java method signature /// ```java - /// public int java.lang.String.compareToIgnoreCase(java.lang.String) + /// public java.lang.String java.lang.String.replace(char,char) /// ``` @JavaMethod - open func compareToIgnoreCase(_ arg0: String) -> Int32 + open func replace(_ arg0: UInt16, _ arg1: UInt16) -> String - /// Java method `endsWith`. + /// Java method `replace`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.String.endsWith(java.lang.String) + /// public java.lang.String java.lang.String.replace(java.lang.CharSequence,java.lang.CharSequence) /// ``` @JavaMethod - open func endsWith(_ arg0: String) -> Bool + open func replace(_ arg0: CharSequence?, _ arg1: CharSequence?) -> String - /// Java method `subSequence`. + /// Java method `replaceAll`. /// /// ### Java method signature /// ```java - /// public java.lang.CharSequence java.lang.String.subSequence(int,int) + /// public java.lang.String java.lang.String.replaceAll(java.lang.String,java.lang.String) /// ``` @JavaMethod - open func subSequence(_ arg0: Int32, _ arg1: Int32) -> CharSequence! + open func replaceAll(_ arg0: String, _ arg1: String) -> String - /// Java method `concat`. + /// Java method `replaceFirst`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.String.concat(java.lang.String) + /// public java.lang.String java.lang.String.replaceFirst(java.lang.String,java.lang.String) /// ``` @JavaMethod - open func concat(_ arg0: String) -> String + open func replaceFirst(_ arg0: String, _ arg1: String) -> String - /// Java method `contains`. + /// Java method `split`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.String.contains(java.lang.CharSequence) + /// public java.lang.String[] java.lang.String.split(java.lang.String) /// ``` @JavaMethod - open func contains(_ arg0: CharSequence?) -> Bool + open func split(_ arg0: String) -> [String] - /// Java method `indent`. + /// Java method `split`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.String.indent(int) + /// public java.lang.String[] java.lang.String.split(java.lang.String,int) /// ``` @JavaMethod - open func indent(_ arg0: Int32) -> String + open func split(_ arg0: String, _ arg1: Int32) -> [String] - /// Java method `stripIndent`. + /// Java method `splitWithDelimiters`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.String.stripIndent() + /// public java.lang.String[] java.lang.String.splitWithDelimiters(java.lang.String,int) /// ``` @JavaMethod - open func stripIndent() -> String + open func splitWithDelimiters(_ arg0: String, _ arg1: Int32) -> [String] - /// Java method `translateEscapes`. + /// Java method `startsWith`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.String.translateEscapes() + /// public boolean java.lang.String.startsWith(java.lang.String) /// ``` @JavaMethod - open func translateEscapes() -> String + open func startsWith(_ arg0: String) -> Bool - /// Java method `formatted`. + /// Java method `startsWith`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.String.formatted(java.lang.Object...) + /// public boolean java.lang.String.startsWith(java.lang.String,int) /// ``` @JavaMethod - open func formatted(_ arg0: [JavaObject?]) -> String + open func startsWith(_ arg0: String, _ arg1: Int32) -> Bool - /// Java method `intern`. + /// Java method `strip`. /// /// ### Java method signature /// ```java - /// public native java.lang.String java.lang.String.intern() + /// public java.lang.String java.lang.String.strip() /// ``` @JavaMethod - open func intern() -> String + open func strip() -> String - /// Java method `describeConstable`. + /// Java method `stripIndent`. /// /// ### Java method signature /// ```java - /// public java.util.Optional java.lang.String.describeConstable() + /// public java.lang.String java.lang.String.stripIndent() /// ``` @JavaMethod - open func describeConstable() -> JavaOptional! + open func stripIndent() -> String - open func describeConstableOptional() -> JavaString? { - Optional(javaOptional: describeConstable()) - } -} -extension JavaClass { - /// Java method `valueOf`. + /// Java method `stripLeading`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.String.valueOf(java.lang.Object) + /// public java.lang.String java.lang.String.stripLeading() /// ``` - @JavaStaticMethod - public func valueOf(_ arg0: JavaObject?) -> String + @JavaMethod + open func stripLeading() -> String - /// Java method `valueOf`. + /// Java method `stripTrailing`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.String.valueOf(long) + /// public java.lang.String java.lang.String.stripTrailing() /// ``` - @JavaStaticMethod - public func valueOf(_ arg0: Int64) -> String + @JavaMethod + open func stripTrailing() -> String - /// Java method `valueOf`. + /// Java method `subSequence`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.String.valueOf(int) + /// public java.lang.CharSequence java.lang.String.subSequence(int,int) /// ``` - @JavaStaticMethod - public func valueOf(_ arg0: Int32) -> String + @JavaMethod + open func subSequence(_ arg0: Int32, _ arg1: Int32) -> CharSequence! - /// Java method `valueOf`. + /// Java method `substring`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.String.valueOf(char) + /// public java.lang.String java.lang.String.substring(int) /// ``` - @JavaStaticMethod - public func valueOf(_ arg0: UInt16) -> String + @JavaMethod + open func substring(_ arg0: Int32) -> String - /// Java method `valueOf`. + /// Java method `substring`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.String.valueOf(char[],int,int) + /// public java.lang.String java.lang.String.substring(int,int) /// ``` - @JavaStaticMethod - public func valueOf(_ arg0: [UInt16], _ arg1: Int32, _ arg2: Int32) -> String + @JavaMethod + open func substring(_ arg0: Int32, _ arg1: Int32) -> String - /// Java method `valueOf`. + /// Java method `toCharArray`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.String.valueOf(boolean) + /// public char[] java.lang.String.toCharArray() /// ``` - @JavaStaticMethod - public func valueOf(_ arg0: Bool) -> String + @JavaMethod + open func toCharArray() -> [UInt16] - /// Java method `valueOf`. + /// Java method `toLowerCase`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.String.valueOf(double) + /// public java.lang.String java.lang.String.toLowerCase() /// ``` - @JavaStaticMethod - public func valueOf(_ arg0: Double) -> String + @JavaMethod + open func toLowerCase() -> String - /// Java method `valueOf`. + /// Java method `toUpperCase`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.String.valueOf(char[]) + /// public java.lang.String java.lang.String.toUpperCase() /// ``` - @JavaStaticMethod - public func valueOf(_ arg0: [UInt16]) -> String + @JavaMethod + open func toUpperCase() -> String - /// Java method `valueOf`. + /// Java method `translateEscapes`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.String.valueOf(float) + /// public java.lang.String java.lang.String.translateEscapes() /// ``` - @JavaStaticMethod - public func valueOf(_ arg0: Float) -> String + @JavaMethod + open func translateEscapes() -> String - /// Java method `join`. + /// Java method `trim`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.String.join(java.lang.CharSequence,java.lang.CharSequence...) + /// public java.lang.String java.lang.String.trim() /// ``` - @JavaStaticMethod - public func join(_ arg0: CharSequence?, _ arg1: [CharSequence?]) -> String + @JavaMethod + open func trim() -> String - /// Java method `format`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.String.format(java.lang.String,java.lang.Object...) + /// public boolean java.lang.String.equals(java.lang.Object) /// ``` - @JavaStaticMethod - public func format(_ arg0: String, _ arg1: [JavaObject?]) -> String + @JavaMethod + open override func equals(_ arg0: JavaObject?) -> Bool - /// Java method `copyValueOf`. + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.String.copyValueOf(char[],int,int) + /// public int java.lang.String.hashCode() /// ``` - @JavaStaticMethod - public func copyValueOf(_ arg0: [UInt16], _ arg1: Int32, _ arg2: Int32) -> String + @JavaMethod + open override func hashCode() -> Int32 - /// Java method `copyValueOf`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public static java.lang.String java.lang.String.copyValueOf(char[]) + /// public java.lang.String java.lang.String.toString() /// ``` - @JavaStaticMethod - public func copyValueOf(_ arg0: [UInt16]) -> String + @JavaMethod + open override func toString() -> String } diff --git a/Sources/SwiftJava/generated/JavaThread.swift b/Sources/SwiftJava/generated/JavaThread.swift index 03c1b1097..6d4319c79 100644 --- a/Sources/SwiftJava/generated/JavaThread.swift +++ b/Sources/SwiftJava/generated/JavaThread.swift @@ -1,85 +1,186 @@ // Auto-generated by Java-to-Swift wrapper generator. import SwiftJavaJNICore -@JavaClass("java.lang.Thread") -open class JavaThread: JavaObject { - @JavaMethod - @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) +extension JavaClass { + @JavaStaticField(isFinal: true) + public var MAX_PRIORITY: Int32 - @JavaMethod - @_nonoverride public convenience init(environment: JNIEnvironment? = nil) + @JavaStaticField(isFinal: true) + public var MIN_PRIORITY: Int32 - /// Java method `getName`. + @JavaStaticField(isFinal: true) + public var NORM_PRIORITY: Int32 + + /// Java method `activeCount`. /// /// ### Java method signature /// ```java - /// public final java.lang.String java.lang.Thread.getName() + /// public static int java.lang.Thread.activeCount() /// ``` - @JavaMethod - open func getName() -> String + @JavaStaticMethod + public func activeCount() -> Int32 - /// Java method `run`. + /// Java method `getAllStackTraces`. /// /// ### Java method signature /// ```java - /// public void java.lang.Thread.run() + /// public static java.util.Map java.lang.Thread.getAllStackTraces() /// ``` - @JavaMethod - open func run() + @JavaStaticMethod + public func getAllStackTraces() -> JavaMap! - /// Java method `interrupt`. + /// Java method `currentThread`. /// /// ### Java method signature /// ```java - /// public void java.lang.Thread.interrupt() + /// public static native java.lang.Thread java.lang.Thread.currentThread() /// ``` - @JavaMethod - open func interrupt() + @JavaStaticMethod + public func currentThread() -> JavaThread! - /// Java method `toString`. + /// Java method `getDefaultUncaughtExceptionHandler`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.Thread.toString() + /// public static java.lang.Thread$UncaughtExceptionHandler java.lang.Thread.getDefaultUncaughtExceptionHandler() /// ``` - @JavaMethod - open override func toString() -> String + @JavaStaticMethod + public func getDefaultUncaughtExceptionHandler() -> JavaThread.UncaughtExceptionHandler! - /// Java method `clone`. + /// Java method `setDefaultUncaughtExceptionHandler`. /// /// ### Java method signature /// ```java - /// protected java.lang.Object java.lang.Thread.clone() throws java.lang.CloneNotSupportedException + /// public static void java.lang.Thread.setDefaultUncaughtExceptionHandler(java.lang.Thread$UncaughtExceptionHandler) + /// ``` + @JavaStaticMethod + public func setDefaultUncaughtExceptionHandler(_ arg0: JavaThread.UncaughtExceptionHandler?) + + /// Java method `dumpStack`. + /// + /// ### Java method signature + /// ```java + /// public static void java.lang.Thread.dumpStack() + /// ``` + @JavaStaticMethod + public func dumpStack() + + /// Java method `enumerate`. + /// + /// ### Java method signature + /// ```java + /// public static int java.lang.Thread.enumerate(java.lang.Thread[]) + /// ``` + @JavaStaticMethod + public func enumerate(_ arg0: [JavaThread?]) -> Int32 + + /// Java method `holdsLock`. + /// + /// ### Java method signature + /// ```java + /// public static native boolean java.lang.Thread.holdsLock(java.lang.Object) + /// ``` + @JavaStaticMethod + public func holdsLock(_ arg0: JavaObject?) -> Bool + + /// Java method `interrupted`. + /// + /// ### Java method signature + /// ```java + /// public static boolean java.lang.Thread.interrupted() + /// ``` + @JavaStaticMethod + public func interrupted() -> Bool + + /// Java method `ofPlatform`. + /// + /// ### Java method signature + /// ```java + /// public static java.lang.Thread$Builder$OfPlatform java.lang.Thread.ofPlatform() + /// ``` + @JavaStaticMethod + public func ofPlatform() -> JavaThread.Builder.OfPlatform! + + /// Java method `ofVirtual`. + /// + /// ### Java method signature + /// ```java + /// public static java.lang.Thread$Builder$OfVirtual java.lang.Thread.ofVirtual() + /// ``` + @JavaStaticMethod + public func ofVirtual() -> JavaThread.Builder.OfVirtual! + + /// Java method `onSpinWait`. + /// + /// ### Java method signature + /// ```java + /// public static void java.lang.Thread.onSpinWait() + /// ``` + @JavaStaticMethod + public func onSpinWait() + + /// Java method `sleep`. + /// + /// ### Java method signature + /// ```java + /// public static void java.lang.Thread.sleep(long) throws java.lang.InterruptedException + /// ``` + @JavaStaticMethod + public func sleep(_ arg0: Int64) throws + + /// Java method `sleep`. + /// + /// ### Java method signature + /// ```java + /// public static void java.lang.Thread.sleep(long,int) throws java.lang.InterruptedException /// ``` + @JavaStaticMethod + public func sleep(_ arg0: Int64, _ arg1: Int32) throws + + /// Java method `yield`. + /// + /// ### Java method signature + /// ```java + /// public static void java.lang.Thread.yield() + /// ``` + @JavaStaticMethod + public func yield() +} +@JavaClass("java.lang.Thread") +open class JavaThread: JavaObject { @JavaMethod - open override func clone() throws -> JavaObject! + @_nonoverride public convenience init(environment: JNIEnvironment? = nil) - /// Java method `join`. + @JavaMethod + @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) + + /// Java method `isAlive`. /// /// ### Java method signature /// ```java - /// public final void java.lang.Thread.join(long,int) throws java.lang.InterruptedException + /// public final boolean java.lang.Thread.isAlive() /// ``` @JavaMethod - open func join(_ arg0: Int64, _ arg1: Int32) throws + open func isAlive() -> Bool - /// Java method `join`. + /// Java method `checkAccess`. /// /// ### Java method signature /// ```java - /// public final void java.lang.Thread.join() throws java.lang.InterruptedException + /// public final void java.lang.Thread.checkAccess() /// ``` + @available(*, deprecated) @JavaMethod - open func join() throws + open func checkAccess() - /// Java method `join`. + /// Java method `getContextClassLoader`. /// /// ### Java method signature /// ```java - /// public final void java.lang.Thread.join(long) throws java.lang.InterruptedException + /// public java.lang.ClassLoader java.lang.Thread.getContextClassLoader() /// ``` @JavaMethod - open func join(_ arg0: Int64) throws + open func getContextClassLoader() -> JavaClassLoader! /// Java method `setContextClassLoader`. /// @@ -90,14 +191,14 @@ open class JavaThread: JavaObject { @JavaMethod open func setContextClassLoader(_ arg0: JavaClassLoader?) - /// Java method `setPriority`. + /// Java method `isDaemon`. /// /// ### Java method signature /// ```java - /// public final void java.lang.Thread.setPriority(int) + /// public final boolean java.lang.Thread.isDaemon() /// ``` @JavaMethod - open func setPriority(_ arg0: Int32) + open func isDaemon() -> Bool /// Java method `setDaemon`. /// @@ -108,125 +209,142 @@ open class JavaThread: JavaObject { @JavaMethod open func setDaemon(_ arg0: Bool) - /// Java method `start`. + /// Java method `getId`. /// /// ### Java method signature /// ```java - /// public void java.lang.Thread.start() + /// public long java.lang.Thread.getId() /// ``` + @available(*, deprecated) @JavaMethod - open func start() + open func getId() -> Int64 - /// Java method `getPriority`. + /// Java method `interrupt`. /// /// ### Java method signature /// ```java - /// public final int java.lang.Thread.getPriority() + /// public void java.lang.Thread.interrupt() /// ``` @JavaMethod - open func getPriority() -> Int32 + open func interrupt() - /// Java method `isDaemon`. + /// Java method `isInterrupted`. /// /// ### Java method signature /// ```java - /// public final boolean java.lang.Thread.isDaemon() + /// public boolean java.lang.Thread.isInterrupted() /// ``` @JavaMethod - open func isDaemon() -> Bool + open func isInterrupted() -> Bool - /// Java method `getContextClassLoader`. + /// Java method `join`. /// /// ### Java method signature /// ```java - /// public java.lang.ClassLoader java.lang.Thread.getContextClassLoader() + /// public final void java.lang.Thread.join() throws java.lang.InterruptedException /// ``` @JavaMethod - open func getContextClassLoader() -> JavaClassLoader! + open func join() throws - /// Java method `isVirtual`. + /// Java method `join`. /// /// ### Java method signature /// ```java - /// public final boolean java.lang.Thread.isVirtual() + /// public final void java.lang.Thread.join(long) throws java.lang.InterruptedException /// ``` @JavaMethod - open func isVirtual() -> Bool + open func join(_ arg0: Int64) throws - /// Java method `isAlive`. + /// Java method `join`. /// /// ### Java method signature /// ```java - /// public final boolean java.lang.Thread.isAlive() + /// public final void java.lang.Thread.join(long,int) throws java.lang.InterruptedException /// ``` @JavaMethod - open func isAlive() -> Bool + open func join(_ arg0: Int64, _ arg1: Int32) throws - /// Java method `threadId`. + /// Java method `getName`. /// /// ### Java method signature /// ```java - /// public final long java.lang.Thread.threadId() + /// public final java.lang.String java.lang.Thread.getName() /// ``` @JavaMethod - open func threadId() -> Int64 + open func getName() -> String - /// Java method `getUncaughtExceptionHandler`. + /// Java method `setName`. /// /// ### Java method signature /// ```java - /// public java.lang.Thread$UncaughtExceptionHandler java.lang.Thread.getUncaughtExceptionHandler() + /// public final synchronized void java.lang.Thread.setName(java.lang.String) /// ``` @JavaMethod - open func getUncaughtExceptionHandler() -> JavaThread.UncaughtExceptionHandler! + open func setName(_ arg0: String) - /// Java method `stop`. + /// Java method `getPriority`. /// /// ### Java method signature /// ```java - /// public final void java.lang.Thread.stop() + /// public final int java.lang.Thread.getPriority() /// ``` - @available(*, deprecated) @JavaMethod - open func stop() + open func getPriority() -> Int32 - /// Java method `isInterrupted`. + /// Java method `setPriority`. /// /// ### Java method signature /// ```java - /// public boolean java.lang.Thread.isInterrupted() + /// public final void java.lang.Thread.setPriority(int) /// ``` @JavaMethod - open func isInterrupted() -> Bool + open func setPriority(_ arg0: Int32) - /// Java method `setName`. + /// Java method `run`. /// /// ### Java method signature /// ```java - /// public final synchronized void java.lang.Thread.setName(java.lang.String) + /// public void java.lang.Thread.run() /// ``` @JavaMethod - open func setName(_ arg0: String) + open func run() - /// Java method `checkAccess`. + /// Java method `start`. /// /// ### Java method signature /// ```java - /// public final void java.lang.Thread.checkAccess() + /// public void java.lang.Thread.start() /// ``` - @available(*, deprecated) @JavaMethod - open func checkAccess() + open func start() - /// Java method `getId`. + /// Java method `stop`. /// /// ### Java method signature /// ```java - /// public long java.lang.Thread.getId() + /// public final void java.lang.Thread.stop() /// ``` @available(*, deprecated) @JavaMethod - open func getId() -> Int64 + open func stop() + + /// Java method `threadId`. + /// + /// ### Java method signature + /// ```java + /// public final long java.lang.Thread.threadId() + /// ``` + @JavaMethod + open func threadId() -> Int64 + + /// Java method `getUncaughtExceptionHandler`. + /// + /// ### Java method signature + /// ```java + /// public java.lang.Thread$UncaughtExceptionHandler java.lang.Thread.getUncaughtExceptionHandler() + /// ``` + @JavaMethod + open func getUncaughtExceptionHandler() -> JavaThread.UncaughtExceptionHandler! /// Java method `setUncaughtExceptionHandler`. /// @@ -236,10 +354,46 @@ open class JavaThread: JavaObject { /// ``` @JavaMethod open func setUncaughtExceptionHandler(_ arg0: JavaThread.UncaughtExceptionHandler?) + + /// Java method `isVirtual`. + /// + /// ### Java method signature + /// ```java + /// public final boolean java.lang.Thread.isVirtual() + /// ``` + @JavaMethod + open func isVirtual() -> Bool + + /// Java method `clone`. + /// + /// ### Java method signature + /// ```java + /// protected java.lang.Object java.lang.Thread.clone() throws java.lang.CloneNotSupportedException + /// ``` + @JavaMethod + open override func clone() throws -> JavaObject! + + /// Java method `toString`. + /// + /// ### Java method signature + /// ```java + /// public java.lang.String java.lang.Thread.toString() + /// ``` + @JavaMethod + open override func toString() -> String } extension JavaThread { @JavaInterface("java.lang.Thread$Builder") public struct Builder { + /// Java method `inheritInheritableThreadLocals`. + /// + /// ### Java method signature + /// ```java + /// public abstract java.lang.Thread$Builder java.lang.Thread$Builder.inheritInheritableThreadLocals(boolean) + /// ``` + @JavaMethod + public func inheritInheritableThreadLocals(_ arg0: Bool) -> JavaThread.Builder! + /// Java method `name`. /// /// ### Java method signature @@ -266,73 +420,64 @@ extension JavaThread { /// ``` @JavaMethod public func uncaughtExceptionHandler(_ arg0: JavaThread.UncaughtExceptionHandler?) -> JavaThread.Builder! - - /// Java method `inheritInheritableThreadLocals`. - /// - /// ### Java method signature - /// ```java - /// public abstract java.lang.Thread$Builder java.lang.Thread$Builder.inheritInheritableThreadLocals(boolean) - /// ``` - @JavaMethod - public func inheritInheritableThreadLocals(_ arg0: Bool) -> JavaThread.Builder! } } extension JavaThread.Builder { @JavaInterface("java.lang.Thread$Builder$OfPlatform", extends: JavaThread.Builder.self) public struct OfPlatform { - /// Java method `name`. + /// Java method `daemon`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.Thread$Builder$OfPlatform java.lang.Thread$Builder$OfPlatform.name(java.lang.String,long) + /// public abstract java.lang.Thread$Builder$OfPlatform java.lang.Thread$Builder$OfPlatform.daemon(boolean) /// ``` @JavaMethod - public func name(_ arg0: String, _ arg1: Int64) -> JavaThread.Builder.OfPlatform! + public func daemon(_ arg0: Bool) -> JavaThread.Builder.OfPlatform! - /// Java method `name`. + /// Java method `daemon`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.Thread$Builder$OfPlatform java.lang.Thread$Builder$OfPlatform.name(java.lang.String) + /// public default java.lang.Thread$Builder$OfPlatform java.lang.Thread$Builder$OfPlatform.daemon() /// ``` @JavaMethod - public func name(_ arg0: String) -> JavaThread.Builder.OfPlatform! + public func daemon() -> JavaThread.Builder.OfPlatform! - /// Java method `priority`. + /// Java method `inheritInheritableThreadLocals`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.Thread$Builder$OfPlatform java.lang.Thread$Builder$OfPlatform.priority(int) + /// public abstract java.lang.Thread$Builder$OfPlatform java.lang.Thread$Builder$OfPlatform.inheritInheritableThreadLocals(boolean) /// ``` @JavaMethod - public func priority(_ arg0: Int32) -> JavaThread.Builder.OfPlatform! + public func inheritInheritableThreadLocals(_ arg0: Bool) -> JavaThread.Builder.OfPlatform! - /// Java method `daemon`. + /// Java method `name`. /// /// ### Java method signature /// ```java - /// public default java.lang.Thread$Builder$OfPlatform java.lang.Thread$Builder$OfPlatform.daemon() + /// public abstract java.lang.Thread$Builder$OfPlatform java.lang.Thread$Builder$OfPlatform.name(java.lang.String) /// ``` @JavaMethod - public func daemon() -> JavaThread.Builder.OfPlatform! + public func name(_ arg0: String) -> JavaThread.Builder.OfPlatform! - /// Java method `daemon`. + /// Java method `name`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.Thread$Builder$OfPlatform java.lang.Thread$Builder$OfPlatform.daemon(boolean) + /// public abstract java.lang.Thread$Builder$OfPlatform java.lang.Thread$Builder$OfPlatform.name(java.lang.String,long) /// ``` @JavaMethod - public func daemon(_ arg0: Bool) -> JavaThread.Builder.OfPlatform! + public func name(_ arg0: String, _ arg1: Int64) -> JavaThread.Builder.OfPlatform! - /// Java method `uncaughtExceptionHandler`. + /// Java method `priority`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.Thread$Builder$OfPlatform java.lang.Thread$Builder$OfPlatform.uncaughtExceptionHandler(java.lang.Thread$UncaughtExceptionHandler) + /// public abstract java.lang.Thread$Builder$OfPlatform java.lang.Thread$Builder$OfPlatform.priority(int) /// ``` @JavaMethod - public func uncaughtExceptionHandler(_ arg0: JavaThread.UncaughtExceptionHandler?) -> JavaThread.Builder.OfPlatform! + public func priority(_ arg0: Int32) -> JavaThread.Builder.OfPlatform! /// Java method `stackSize`. /// @@ -343,27 +488,27 @@ extension JavaThread.Builder { @JavaMethod public func stackSize(_ arg0: Int64) -> JavaThread.Builder.OfPlatform! - /// Java method `inheritInheritableThreadLocals`. + /// Java method `uncaughtExceptionHandler`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.Thread$Builder$OfPlatform java.lang.Thread$Builder$OfPlatform.inheritInheritableThreadLocals(boolean) + /// public abstract java.lang.Thread$Builder$OfPlatform java.lang.Thread$Builder$OfPlatform.uncaughtExceptionHandler(java.lang.Thread$UncaughtExceptionHandler) /// ``` @JavaMethod - public func inheritInheritableThreadLocals(_ arg0: Bool) -> JavaThread.Builder.OfPlatform! + public func uncaughtExceptionHandler(_ arg0: JavaThread.UncaughtExceptionHandler?) -> JavaThread.Builder.OfPlatform! } } extension JavaThread.Builder { @JavaInterface("java.lang.Thread$Builder$OfVirtual", extends: JavaThread.Builder.self) public struct OfVirtual { - /// Java method `name`. + /// Java method `inheritInheritableThreadLocals`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.Thread$Builder$OfVirtual java.lang.Thread$Builder$OfVirtual.name(java.lang.String,long) + /// public abstract java.lang.Thread$Builder$OfVirtual java.lang.Thread$Builder$OfVirtual.inheritInheritableThreadLocals(boolean) /// ``` @JavaMethod - public func name(_ arg0: String, _ arg1: Int64) -> JavaThread.Builder.OfVirtual! + public func inheritInheritableThreadLocals(_ arg0: Bool) -> JavaThread.Builder.OfVirtual! /// Java method `name`. /// @@ -374,23 +519,23 @@ extension JavaThread.Builder { @JavaMethod public func name(_ arg0: String) -> JavaThread.Builder.OfVirtual! - /// Java method `uncaughtExceptionHandler`. + /// Java method `name`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.Thread$Builder$OfVirtual java.lang.Thread$Builder$OfVirtual.uncaughtExceptionHandler(java.lang.Thread$UncaughtExceptionHandler) + /// public abstract java.lang.Thread$Builder$OfVirtual java.lang.Thread$Builder$OfVirtual.name(java.lang.String,long) /// ``` @JavaMethod - public func uncaughtExceptionHandler(_ arg0: JavaThread.UncaughtExceptionHandler?) -> JavaThread.Builder.OfVirtual! + public func name(_ arg0: String, _ arg1: Int64) -> JavaThread.Builder.OfVirtual! - /// Java method `inheritInheritableThreadLocals`. + /// Java method `uncaughtExceptionHandler`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.Thread$Builder$OfVirtual java.lang.Thread$Builder$OfVirtual.inheritInheritableThreadLocals(boolean) + /// public abstract java.lang.Thread$Builder$OfVirtual java.lang.Thread$Builder$OfVirtual.uncaughtExceptionHandler(java.lang.Thread$UncaughtExceptionHandler) /// ``` @JavaMethod - public func inheritInheritableThreadLocals(_ arg0: Bool) -> JavaThread.Builder.OfVirtual! + public func uncaughtExceptionHandler(_ arg0: JavaThread.UncaughtExceptionHandler?) -> JavaThread.Builder.OfVirtual! } } extension JavaThread { @@ -406,139 +551,3 @@ extension JavaThread { public func uncaughtException(_ arg0: JavaThread?, _ arg1: Throwable?) } } -extension JavaClass { - @JavaStaticField(isFinal: true) - public var MIN_PRIORITY: Int32 - - @JavaStaticField(isFinal: true) - public var NORM_PRIORITY: Int32 - - @JavaStaticField(isFinal: true) - public var MAX_PRIORITY: Int32 - - /// Java method `currentThread`. - /// - /// ### Java method signature - /// ```java - /// public static native java.lang.Thread java.lang.Thread.currentThread() - /// ``` - @JavaStaticMethod - public func currentThread() -> JavaThread! - - /// Java method `onSpinWait`. - /// - /// ### Java method signature - /// ```java - /// public static void java.lang.Thread.onSpinWait() - /// ``` - @JavaStaticMethod - public func onSpinWait() - - /// Java method `holdsLock`. - /// - /// ### Java method signature - /// ```java - /// public static native boolean java.lang.Thread.holdsLock(java.lang.Object) - /// ``` - @JavaStaticMethod - public func holdsLock(_ arg0: JavaObject?) -> Bool - - /// Java method `interrupted`. - /// - /// ### Java method signature - /// ```java - /// public static boolean java.lang.Thread.interrupted() - /// ``` - @JavaStaticMethod - public func interrupted() -> Bool - - /// Java method `activeCount`. - /// - /// ### Java method signature - /// ```java - /// public static int java.lang.Thread.activeCount() - /// ``` - @JavaStaticMethod - public func activeCount() -> Int32 - - /// Java method `enumerate`. - /// - /// ### Java method signature - /// ```java - /// public static int java.lang.Thread.enumerate(java.lang.Thread[]) - /// ``` - @JavaStaticMethod - public func enumerate(_ arg0: [JavaThread?]) -> Int32 - - /// Java method `yield`. - /// - /// ### Java method signature - /// ```java - /// public static void java.lang.Thread.yield() - /// ``` - @JavaStaticMethod - public func yield() - - /// Java method `sleep`. - /// - /// ### Java method signature - /// ```java - /// public static void java.lang.Thread.sleep(long) throws java.lang.InterruptedException - /// ``` - @JavaStaticMethod - public func sleep(_ arg0: Int64) throws - - /// Java method `sleep`. - /// - /// ### Java method signature - /// ```java - /// public static void java.lang.Thread.sleep(long,int) throws java.lang.InterruptedException - /// ``` - @JavaStaticMethod - public func sleep(_ arg0: Int64, _ arg1: Int32) throws - - /// Java method `ofPlatform`. - /// - /// ### Java method signature - /// ```java - /// public static java.lang.Thread$Builder$OfPlatform java.lang.Thread.ofPlatform() - /// ``` - @JavaStaticMethod - public func ofPlatform() -> JavaThread.Builder.OfPlatform! - - /// Java method `ofVirtual`. - /// - /// ### Java method signature - /// ```java - /// public static java.lang.Thread$Builder$OfVirtual java.lang.Thread.ofVirtual() - /// ``` - @JavaStaticMethod - public func ofVirtual() -> JavaThread.Builder.OfVirtual! - - /// Java method `dumpStack`. - /// - /// ### Java method signature - /// ```java - /// public static void java.lang.Thread.dumpStack() - /// ``` - @JavaStaticMethod - public func dumpStack() - - /// Java method `setDefaultUncaughtExceptionHandler`. - /// - /// ### Java method signature - /// ```java - /// public static void java.lang.Thread.setDefaultUncaughtExceptionHandler(java.lang.Thread$UncaughtExceptionHandler) - /// ``` - @JavaStaticMethod - public func setDefaultUncaughtExceptionHandler(_ arg0: JavaThread.UncaughtExceptionHandler?) - - /// Java method `getDefaultUncaughtExceptionHandler`. - /// - /// ### Java method signature - /// ```java - /// public static java.lang.Thread$UncaughtExceptionHandler java.lang.Thread.getDefaultUncaughtExceptionHandler() - /// ``` - @JavaStaticMethod - public func getDefaultUncaughtExceptionHandler() -> JavaThread.UncaughtExceptionHandler! -} diff --git a/Sources/SwiftJava/generated/JavaURL.swift b/Sources/SwiftJava/generated/JavaURL.swift index 54b94aea7..a1ab7756d 100644 --- a/Sources/SwiftJava/generated/JavaURL.swift +++ b/Sources/SwiftJava/generated/JavaURL.swift @@ -3,10 +3,6 @@ import SwiftJavaJNICore @JavaClass("java.net.URL") open class JavaURL: JavaObject { - @available(*, deprecated) - @JavaMethod - @_nonoverride public convenience init(_ arg0: JavaURL?, _ arg1: String, environment: JNIEnvironment? = nil) throws - @available(*, deprecated) @JavaMethod @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) throws @@ -19,165 +15,169 @@ open class JavaURL: JavaObject { @JavaMethod @_nonoverride public convenience init(_ arg0: String, _ arg1: String, _ arg2: String, environment: JNIEnvironment? = nil) throws - /// Java method `equals`. + @available(*, deprecated) + @JavaMethod + @_nonoverride public convenience init(_ arg0: JavaURL?, _ arg1: String, environment: JNIEnvironment? = nil) throws + + /// Java method `getAuthority`. /// /// ### Java method signature /// ```java - /// public boolean java.net.URL.equals(java.lang.Object) + /// public java.lang.String java.net.URL.getAuthority() /// ``` @JavaMethod - open override func equals(_ arg0: JavaObject?) -> Bool + open func getAuthority() -> String - /// Java method `toString`. + /// Java method `getContent`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URL.toString() + /// public final java.lang.Object java.net.URL.getContent() throws java.io.IOException /// ``` @JavaMethod - open override func toString() -> String + open func getContent() throws -> JavaObject! - /// Java method `hashCode`. + /// Java method `getContent`. /// /// ### Java method signature /// ```java - /// public synchronized int java.net.URL.hashCode() + /// public final java.lang.Object java.net.URL.getContent(java.lang.Class[]) throws java.io.IOException /// ``` @JavaMethod - open override func hashCode() -> Int32 + open func getContent(_ arg0: [JavaClass?]) throws -> JavaObject! - /// Java method `openStream`. + /// Java method `getDefaultPort`. /// /// ### Java method signature /// ```java - /// public final java.io.InputStream java.net.URL.openStream() throws java.io.IOException + /// public int java.net.URL.getDefaultPort() /// ``` @JavaMethod - open func openStream() throws -> InputStream! + open func getDefaultPort() -> Int32 - /// Java method `getHost`. + /// Java method `getFile`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URL.getHost() + /// public java.lang.String java.net.URL.getFile() /// ``` @JavaMethod - open func getHost() -> String + open func getFile() -> String - /// Java method `getPort`. + /// Java method `getHost`. /// /// ### Java method signature /// ```java - /// public int java.net.URL.getPort() + /// public java.lang.String java.net.URL.getHost() /// ``` @JavaMethod - open func getPort() -> Int32 + open func getHost() -> String - /// Java method `getDefaultPort`. + /// Java method `openStream`. /// /// ### Java method signature /// ```java - /// public int java.net.URL.getDefaultPort() + /// public final java.io.InputStream java.net.URL.openStream() throws java.io.IOException /// ``` @JavaMethod - open func getDefaultPort() -> Int32 + open func openStream() throws -> InputStream! - /// Java method `sameFile`. + /// Java method `getPath`. /// /// ### Java method signature /// ```java - /// public boolean java.net.URL.sameFile(java.net.URL) + /// public java.lang.String java.net.URL.getPath() /// ``` @JavaMethod - open func sameFile(_ arg0: JavaURL?) -> Bool + open func getPath() -> String - /// Java method `toExternalForm`. + /// Java method `getPort`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URL.toExternalForm() + /// public int java.net.URL.getPort() /// ``` @JavaMethod - open func toExternalForm() -> String + open func getPort() -> Int32 - /// Java method `getContent`. + /// Java method `getProtocol`. /// /// ### Java method signature /// ```java - /// public final java.lang.Object java.net.URL.getContent(java.lang.Class[]) throws java.io.IOException + /// public java.lang.String java.net.URL.getProtocol() /// ``` @JavaMethod - open func getContent(_ arg0: [JavaClass?]) throws -> JavaObject! + open func getProtocol() -> String - /// Java method `getContent`. + /// Java method `getQuery`. /// /// ### Java method signature /// ```java - /// public final java.lang.Object java.net.URL.getContent() throws java.io.IOException + /// public java.lang.String java.net.URL.getQuery() /// ``` @JavaMethod - open func getContent() throws -> JavaObject! + open func getQuery() -> String - /// Java method `getProtocol`. + /// Java method `getRef`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URL.getProtocol() + /// public java.lang.String java.net.URL.getRef() /// ``` @JavaMethod - open func getProtocol() -> String + open func getRef() -> String - /// Java method `getAuthority`. + /// Java method `sameFile`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URL.getAuthority() + /// public boolean java.net.URL.sameFile(java.net.URL) /// ``` @JavaMethod - open func getAuthority() -> String + open func sameFile(_ arg0: JavaURL?) -> Bool - /// Java method `getFile`. + /// Java method `toExternalForm`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URL.getFile() + /// public java.lang.String java.net.URL.toExternalForm() /// ``` @JavaMethod - open func getFile() -> String + open func toExternalForm() -> String - /// Java method `getRef`. + /// Java method `getUserInfo`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URL.getRef() + /// public java.lang.String java.net.URL.getUserInfo() /// ``` @JavaMethod - open func getRef() -> String + open func getUserInfo() -> String - /// Java method `getQuery`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URL.getQuery() + /// public boolean java.net.URL.equals(java.lang.Object) /// ``` @JavaMethod - open func getQuery() -> String + open override func equals(_ arg0: JavaObject?) -> Bool - /// Java method `getPath`. + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URL.getPath() + /// public synchronized int java.net.URL.hashCode() /// ``` @JavaMethod - open func getPath() -> String + open override func hashCode() -> Int32 - /// Java method `getUserInfo`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.net.URL.getUserInfo() + /// public java.lang.String java.net.URL.toString() /// ``` @JavaMethod - open func getUserInfo() -> String + open override func toString() -> String } diff --git a/Sources/SwiftJava/generated/JavaVoid.swift b/Sources/SwiftJava/generated/JavaVoid.swift index d1d1b5460..06138ba79 100644 --- a/Sources/SwiftJava/generated/JavaVoid.swift +++ b/Sources/SwiftJava/generated/JavaVoid.swift @@ -1,11 +1,11 @@ // Auto-generated by Java-to-Swift wrapper generator. import SwiftJavaJNICore -@JavaClass("java.lang.Void") -open class JavaVoid: JavaObject { - -} extension JavaClass { @JavaStaticField(isFinal: true) public var TYPE: JavaClass! } +@JavaClass("java.lang.Void") +open class JavaVoid: JavaObject { + +} diff --git a/Sources/SwiftJava/generated/List.swift b/Sources/SwiftJava/generated/List.swift index 4eb9542f5..52b5f8abf 100644 --- a/Sources/SwiftJava/generated/List.swift +++ b/Sources/SwiftJava/generated/List.swift @@ -1,108 +1,129 @@ // Auto-generated by Java-to-Swift wrapper generator. import SwiftJavaJNICore -@JavaInterface("java.util.List") -public struct List { - public typealias E = List_E +extension JavaClass { + /// Java method `copyOf`. + /// + /// ### Java method signature + /// ```java + /// public static java.util.List java.util.List.copyOf(java.util.Collection) + /// ``` + @JavaStaticMethod + public func copyOf(_ arg0: JavaCollection?) -> List! where ObjectType == List - /// Java method `remove`. + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public abstract E java.util.List.remove(int) + /// public static java.util.List java.util.List.of() /// ``` - @JavaMethod(typeErasedResult: "E!") - public func remove(_ arg0: Int32) -> E! + @JavaStaticMethod + public func of() -> List! where ObjectType == List - /// Java method `remove`. + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.List.remove(java.lang.Object) + /// public static java.util.List java.util.List.of(E) /// ``` - @JavaMethod - public func remove(_ arg0: JavaObject?) -> Bool + @JavaStaticMethod + public func of(_ arg0: E?) -> List! where ObjectType == List - /// Java method `size`. + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public abstract int java.util.List.size() + /// public static java.util.List java.util.List.of(E,E) /// ``` - @JavaMethod - public func size() -> Int32 + @JavaStaticMethod + public func of(_ arg0: E?, _ arg1: E?) -> List! where ObjectType == List - /// Java method `get`. + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public abstract E java.util.List.get(int) + /// public static java.util.List java.util.List.of(E,E,E) /// ``` - @JavaMethod(typeErasedResult: "E!") - public func get(_ arg0: Int32) -> E! + @JavaStaticMethod + public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?) -> List! where ObjectType == List - /// Java method `equals`. + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.List.equals(java.lang.Object) + /// public static java.util.List java.util.List.of(E,E,E,E) /// ``` - @JavaMethod - public func equals(_ arg0: JavaObject?) -> Bool + @JavaStaticMethod + public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?, _ arg3: E?) -> List! where ObjectType == List - /// Java method `hashCode`. + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public abstract int java.util.List.hashCode() + /// public static java.util.List java.util.List.of(E,E,E,E,E) /// ``` - @JavaMethod - public func hashCode() -> Int32 + @JavaStaticMethod + public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?, _ arg3: E?, _ arg4: E?) -> List! where ObjectType == List - /// Java method `indexOf`. + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public abstract int java.util.List.indexOf(java.lang.Object) + /// public static java.util.List java.util.List.of(E,E,E,E,E,E) /// ``` - @JavaMethod - public func indexOf(_ arg0: JavaObject?) -> Int32 + @JavaStaticMethod + public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?, _ arg3: E?, _ arg4: E?, _ arg5: E?) -> List! where ObjectType == List - /// Java method `clear`. + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public abstract void java.util.List.clear() + /// public static java.util.List java.util.List.of(E,E,E,E,E,E,E) /// ``` - @JavaMethod - public func clear() + @JavaStaticMethod + public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?, _ arg3: E?, _ arg4: E?, _ arg5: E?, _ arg6: E?) -> List! where ObjectType == List - /// Java method `lastIndexOf`. + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public abstract int java.util.List.lastIndexOf(java.lang.Object) + /// public static java.util.List java.util.List.of(E,E,E,E,E,E,E,E) /// ``` - @JavaMethod - public func lastIndexOf(_ arg0: JavaObject?) -> Int32 + @JavaStaticMethod + public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?, _ arg3: E?, _ arg4: E?, _ arg5: E?, _ arg6: E?, _ arg7: E?) -> List! where ObjectType == List - /// Java method `isEmpty`. + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.List.isEmpty() + /// public static java.util.List java.util.List.of(E,E,E,E,E,E,E,E,E) /// ``` - @JavaMethod - public func isEmpty() -> Bool + @JavaStaticMethod + public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?, _ arg3: E?, _ arg4: E?, _ arg5: E?, _ arg6: E?, _ arg7: E?, _ arg8: E?) -> List! + where ObjectType == List - /// Java method `add`. + /// Java method `of`. /// /// ### Java method signature /// ```java - /// public abstract void java.util.List.add(int,E) + /// public static java.util.List java.util.List.of(E,E,E,E,E,E,E,E,E,E) /// ``` - @JavaMethod - public func add(_ arg0: Int32, _ arg1: E?) + @JavaStaticMethod + public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?, _ arg3: E?, _ arg4: E?, _ arg5: E?, _ arg6: E?, _ arg7: E?, _ arg8: E?, _ arg9: E?) -> List! + where ObjectType == List + + /// Java method `of`. + /// + /// ### Java method signature + /// ```java + /// public static java.util.List java.util.List.of(E...) + /// ``` + @JavaStaticMethod + public func of(_ arg0: [E?]) -> List! where ObjectType == List +} +@JavaInterface("java.util.List") +public struct List { + public typealias E = List_E /// Java method `add`. /// @@ -113,149 +134,140 @@ public struct List { @JavaMethod public func add(_ arg0: E?) -> Bool - /// Java method `subList`. + /// Java method `add`. /// /// ### Java method signature /// ```java - /// public abstract java.util.List java.util.List.subList(int,int) + /// public abstract void java.util.List.add(int,E) /// ``` @JavaMethod - public func subList(_ arg0: Int32, _ arg1: Int32) -> List! + public func add(_ arg0: Int32, _ arg1: E?) - /// Java method `toArray`. + /// Java method `addAll`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.Object[] java.util.List.toArray() + /// public abstract boolean java.util.List.addAll(int,java.util.Collection) /// ``` @JavaMethod - public func toArray() -> [JavaObject?] + public func addAll(_ arg0: Int32, _ arg1: JavaCollection?) -> Bool - /// Java method `toArray`. + /// Java method `addAll`. /// /// ### Java method signature /// ```java - /// public abstract T[] java.util.List.toArray(T[]) + /// public abstract boolean java.util.List.addAll(java.util.Collection) /// ``` @JavaMethod - public func toArray(_ arg0: [T?]) -> [T?] + public func addAll(_ arg0: JavaCollection?) -> Bool - /// Java method `iterator`. + /// Java method `addFirst`. /// /// ### Java method signature /// ```java - /// public abstract java.util.Iterator java.util.List.iterator() + /// public default void java.util.List.addFirst(E) /// ``` @JavaMethod - public func iterator() -> JavaIterator! + public func addFirst(_ arg0: E?) - /// Java method `contains`. + /// Java method `addLast`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.List.contains(java.lang.Object) + /// public default void java.util.List.addLast(E) /// ``` @JavaMethod - public func contains(_ arg0: JavaObject?) -> Bool + public func addLast(_ arg0: E?) - /// Java method `addAll`. + /// Java method `clear`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.List.addAll(java.util.Collection) + /// public abstract void java.util.List.clear() /// ``` @JavaMethod - public func addAll(_ arg0: JavaCollection?) -> Bool + public func clear() - /// Java method `addAll`. + /// Java method `contains`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.List.addAll(int,java.util.Collection) + /// public abstract boolean java.util.List.contains(java.lang.Object) /// ``` @JavaMethod - public func addAll(_ arg0: Int32, _ arg1: JavaCollection?) -> Bool + public func contains(_ arg0: JavaObject?) -> Bool - /// Java method `set`. + /// Java method `containsAll`. /// /// ### Java method signature /// ```java - /// public abstract E java.util.List.set(int,E) + /// public abstract boolean java.util.List.containsAll(java.util.Collection) /// ``` - @JavaMethod(typeErasedResult: "E!") - public func set(_ arg0: Int32, _ arg1: E?) -> E! + @JavaMethod + public func containsAll(_ arg0: JavaCollection?) -> Bool - /// Java method `getFirst`. + /// Java method `isEmpty`. /// /// ### Java method signature /// ```java - /// public default E java.util.List.getFirst() + /// public abstract boolean java.util.List.isEmpty() /// ``` - @JavaMethod(typeErasedResult: "E!") - public func getFirst() -> E! + @JavaMethod + public func isEmpty() -> Bool - /// Java method `getLast`. + /// Java method `getFirst`. /// /// ### Java method signature /// ```java - /// public default E java.util.List.getLast() + /// public default E java.util.List.getFirst() /// ``` @JavaMethod(typeErasedResult: "E!") - public func getLast() -> E! + public func getFirst() -> E! - /// Java method `addFirst`. + /// Java method `get`. /// /// ### Java method signature /// ```java - /// public default void java.util.List.addFirst(E) + /// public abstract E java.util.List.get(int) /// ``` - @JavaMethod - public func addFirst(_ arg0: E?) + @JavaMethod(typeErasedResult: "E!") + public func get(_ arg0: Int32) -> E! - /// Java method `addLast`. + /// Java method `indexOf`. /// /// ### Java method signature /// ```java - /// public default void java.util.List.addLast(E) + /// public abstract int java.util.List.indexOf(java.lang.Object) /// ``` @JavaMethod - public func addLast(_ arg0: E?) + public func indexOf(_ arg0: JavaObject?) -> Int32 - /// Java method `removeFirst`. + /// Java method `iterator`. /// /// ### Java method signature /// ```java - /// public default E java.util.List.removeFirst() + /// public abstract java.util.Iterator java.util.List.iterator() /// ``` - @JavaMethod(typeErasedResult: "E!") - public func removeFirst() -> E! + @JavaMethod + public func iterator() -> JavaIterator! - /// Java method `removeLast`. + /// Java method `getLast`. /// /// ### Java method signature /// ```java - /// public default E java.util.List.removeLast() + /// public default E java.util.List.getLast() /// ``` @JavaMethod(typeErasedResult: "E!") - public func removeLast() -> E! - - /// Java method `removeAll`. - /// - /// ### Java method signature - /// ```java - /// public abstract boolean java.util.List.removeAll(java.util.Collection) - /// ``` - @JavaMethod - public func removeAll(_ arg0: JavaCollection?) -> Bool + public func getLast() -> E! - /// Java method `retainAll`. + /// Java method `lastIndexOf`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.List.retainAll(java.util.Collection) + /// public abstract int java.util.List.lastIndexOf(java.lang.Object) /// ``` @JavaMethod - public func retainAll(_ arg0: JavaCollection?) -> Bool + public func lastIndexOf(_ arg0: JavaObject?) -> Int32 /// Java method `listIterator`. /// @@ -275,141 +287,129 @@ public struct List { @JavaMethod public func listIterator(_ arg0: Int32) -> ListIterator! - /// Java method `reversed`. + /// Java method `remove`. /// /// ### Java method signature /// ```java - /// public default java.util.List java.util.List.reversed() + /// public abstract E java.util.List.remove(int) /// ``` - @JavaMethod - public func reversed() -> List! + @JavaMethod(typeErasedResult: "E!") + public func remove(_ arg0: Int32) -> E! - /// Java method `containsAll`. + /// Java method `remove`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.List.containsAll(java.util.Collection) + /// public abstract boolean java.util.List.remove(java.lang.Object) /// ``` @JavaMethod - public func containsAll(_ arg0: JavaCollection?) -> Bool -} -extension JavaClass { - /// Java method `copyOf`. - /// - /// ### Java method signature - /// ```java - /// public static java.util.List java.util.List.copyOf(java.util.Collection) - /// ``` - @JavaStaticMethod - public func copyOf(_ arg0: JavaCollection?) -> List! where ObjectType == List + public func remove(_ arg0: JavaObject?) -> Bool - /// Java method `of`. + /// Java method `removeAll`. /// /// ### Java method signature /// ```java - /// public static java.util.List java.util.List.of(E) + /// public abstract boolean java.util.List.removeAll(java.util.Collection) /// ``` - @JavaStaticMethod - public func of(_ arg0: E?) -> List! where ObjectType == List + @JavaMethod + public func removeAll(_ arg0: JavaCollection?) -> Bool - /// Java method `of`. + /// Java method `removeFirst`. /// /// ### Java method signature /// ```java - /// public static java.util.List java.util.List.of(E,E) + /// public default E java.util.List.removeFirst() /// ``` - @JavaStaticMethod - public func of(_ arg0: E?, _ arg1: E?) -> List! where ObjectType == List + @JavaMethod(typeErasedResult: "E!") + public func removeFirst() -> E! - /// Java method `of`. + /// Java method `removeLast`. /// /// ### Java method signature /// ```java - /// public static java.util.List java.util.List.of(E,E,E) + /// public default E java.util.List.removeLast() /// ``` - @JavaStaticMethod - public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?) -> List! where ObjectType == List + @JavaMethod(typeErasedResult: "E!") + public func removeLast() -> E! - /// Java method `of`. + /// Java method `retainAll`. /// /// ### Java method signature /// ```java - /// public static java.util.List java.util.List.of(E,E,E,E,E,E,E,E,E) + /// public abstract boolean java.util.List.retainAll(java.util.Collection) /// ``` - @JavaStaticMethod - public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?, _ arg3: E?, _ arg4: E?, _ arg5: E?, _ arg6: E?, _ arg7: E?, _ arg8: E?) -> List! - where ObjectType == List + @JavaMethod + public func retainAll(_ arg0: JavaCollection?) -> Bool - /// Java method `of`. + /// Java method `reversed`. /// /// ### Java method signature /// ```java - /// public static java.util.List java.util.List.of(E,E,E,E,E,E,E,E,E,E) + /// public default java.util.List java.util.List.reversed() /// ``` - @JavaStaticMethod - public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?, _ arg3: E?, _ arg4: E?, _ arg5: E?, _ arg6: E?, _ arg7: E?, _ arg8: E?, _ arg9: E?) -> List! - where ObjectType == List + @JavaMethod + public func reversed() -> List! - /// Java method `of`. + /// Java method `set`. /// /// ### Java method signature /// ```java - /// public static java.util.List java.util.List.of(E...) + /// public abstract E java.util.List.set(int,E) /// ``` - @JavaStaticMethod - public func of(_ arg0: [E?]) -> List! where ObjectType == List + @JavaMethod(typeErasedResult: "E!") + public func set(_ arg0: Int32, _ arg1: E?) -> E! - /// Java method `of`. + /// Java method `size`. /// /// ### Java method signature /// ```java - /// public static java.util.List java.util.List.of() + /// public abstract int java.util.List.size() /// ``` - @JavaStaticMethod - public func of() -> List! where ObjectType == List + @JavaMethod + public func size() -> Int32 - /// Java method `of`. + /// Java method `subList`. /// /// ### Java method signature /// ```java - /// public static java.util.List java.util.List.of(E,E,E,E,E) + /// public abstract java.util.List java.util.List.subList(int,int) /// ``` - @JavaStaticMethod - public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?, _ arg3: E?, _ arg4: E?) -> List! where ObjectType == List + @JavaMethod + public func subList(_ arg0: Int32, _ arg1: Int32) -> List! - /// Java method `of`. + /// Java method `toArray`. /// /// ### Java method signature /// ```java - /// public static java.util.List java.util.List.of(E,E,E,E,E,E,E,E) + /// public abstract T[] java.util.List.toArray(T[]) /// ``` - @JavaStaticMethod - public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?, _ arg3: E?, _ arg4: E?, _ arg5: E?, _ arg6: E?, _ arg7: E?) -> List! where ObjectType == List + @JavaMethod + public func toArray(_ arg0: [T?]) -> [T?] - /// Java method `of`. + /// Java method `toArray`. /// /// ### Java method signature /// ```java - /// public static java.util.List java.util.List.of(E,E,E,E,E,E) + /// public abstract java.lang.Object[] java.util.List.toArray() /// ``` - @JavaStaticMethod - public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?, _ arg3: E?, _ arg4: E?, _ arg5: E?) -> List! where ObjectType == List + @JavaMethod + public func toArray() -> [JavaObject?] - /// Java method `of`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public static java.util.List java.util.List.of(E,E,E,E,E,E,E) + /// public abstract boolean java.util.List.equals(java.lang.Object) /// ``` - @JavaStaticMethod - public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?, _ arg3: E?, _ arg4: E?, _ arg5: E?, _ arg6: E?) -> List! where ObjectType == List + @JavaMethod + public func equals(_ arg0: JavaObject?) -> Bool - /// Java method `of`. + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public static java.util.List java.util.List.of(E,E,E,E) + /// public abstract int java.util.List.hashCode() /// ``` - @JavaStaticMethod - public func of(_ arg0: E?, _ arg1: E?, _ arg2: E?, _ arg3: E?) -> List! where ObjectType == List + @JavaMethod + public func hashCode() -> Int32 } diff --git a/Sources/SwiftJava/generated/ListIterator.swift b/Sources/SwiftJava/generated/ListIterator.swift index 13e59cd53..327ef95df 100644 --- a/Sources/SwiftJava/generated/ListIterator.swift +++ b/Sources/SwiftJava/generated/ListIterator.swift @@ -5,15 +5,6 @@ import SwiftJavaJNICore public struct ListIterator { public typealias E = ListIterator_E - /// Java method `remove`. - /// - /// ### Java method signature - /// ```java - /// public abstract void java.util.ListIterator.remove() - /// ``` - @JavaMethod - public func remove() - /// Java method `add`. /// /// ### Java method signature @@ -32,6 +23,15 @@ public struct ListIterator { @JavaMethod public func hasNext() -> Bool + /// Java method `hasPrevious`. + /// + /// ### Java method signature + /// ```java + /// public abstract boolean java.util.ListIterator.hasPrevious() + /// ``` + @JavaMethod + public func hasPrevious() -> Bool + /// Java method `next`. /// /// ### Java method signature @@ -41,23 +41,23 @@ public struct ListIterator { @JavaMethod(typeErasedResult: "E!") public func next() -> E! - /// Java method `set`. + /// Java method `nextIndex`. /// /// ### Java method signature /// ```java - /// public abstract void java.util.ListIterator.set(E) + /// public abstract int java.util.ListIterator.nextIndex() /// ``` @JavaMethod - public func set(_ arg0: E?) + public func nextIndex() -> Int32 - /// Java method `nextIndex`. + /// Java method `previous`. /// /// ### Java method signature /// ```java - /// public abstract int java.util.ListIterator.nextIndex() + /// public abstract E java.util.ListIterator.previous() /// ``` - @JavaMethod - public func nextIndex() -> Int32 + @JavaMethod(typeErasedResult: "E!") + public func previous() -> E! /// Java method `previousIndex`. /// @@ -68,21 +68,21 @@ public struct ListIterator { @JavaMethod public func previousIndex() -> Int32 - /// Java method `hasPrevious`. + /// Java method `remove`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.util.ListIterator.hasPrevious() + /// public abstract void java.util.ListIterator.remove() /// ``` @JavaMethod - public func hasPrevious() -> Bool + public func remove() - /// Java method `previous`. + /// Java method `set`. /// /// ### Java method signature /// ```java - /// public abstract E java.util.ListIterator.previous() + /// public abstract void java.util.ListIterator.set(E) /// ``` - @JavaMethod(typeErasedResult: "E!") - public func previous() -> E! + @JavaMethod + public func set(_ arg0: E?) } diff --git a/Sources/SwiftJava/generated/OutputStream.swift b/Sources/SwiftJava/generated/OutputStream.swift index 20661e451..84b946693 100644 --- a/Sources/SwiftJava/generated/OutputStream.swift +++ b/Sources/SwiftJava/generated/OutputStream.swift @@ -1,37 +1,38 @@ // Auto-generated by Java-to-Swift wrapper generator. import SwiftJavaJNICore -@JavaClass("java.io.OutputStream", implements: Closeable.self, Flushable.self) -open class OutputStream: JavaObject { - @JavaMethod - @_nonoverride public convenience init(environment: JNIEnvironment? = nil) - - /// Java method `flush`. +extension JavaClass { + /// Java method `nullOutputStream`. /// /// ### Java method signature /// ```java - /// public void java.io.OutputStream.flush() throws java.io.IOException + /// public static java.io.OutputStream java.io.OutputStream.nullOutputStream() /// ``` + @JavaStaticMethod + public func nullOutputStream() -> OutputStream! +} +@JavaClass("java.io.OutputStream", implements: Closeable.self, Flushable.self) +open class OutputStream: JavaObject { @JavaMethod - open func flush() throws + @_nonoverride public convenience init(environment: JNIEnvironment? = nil) - /// Java method `write`. + /// Java method `close`. /// /// ### Java method signature /// ```java - /// public void java.io.OutputStream.write(byte[]) throws java.io.IOException + /// public void java.io.OutputStream.close() throws java.io.IOException /// ``` @JavaMethod - open func write(_ arg0: [Int8]) throws + open func close() throws - /// Java method `write`. + /// Java method `flush`. /// /// ### Java method signature /// ```java - /// public void java.io.OutputStream.write(byte[],int,int) throws java.io.IOException + /// public void java.io.OutputStream.flush() throws java.io.IOException /// ``` @JavaMethod - open func write(_ arg0: [Int8], _ arg1: Int32, _ arg2: Int32) throws + open func flush() throws /// Java method `write`. /// @@ -42,22 +43,21 @@ open class OutputStream: JavaObject { @JavaMethod open func write(_ arg0: Int32) throws - /// Java method `close`. + /// Java method `write`. /// /// ### Java method signature /// ```java - /// public void java.io.OutputStream.close() throws java.io.IOException + /// public void java.io.OutputStream.write(byte[]) throws java.io.IOException /// ``` @JavaMethod - open func close() throws -} -extension JavaClass { - /// Java method `nullOutputStream`. + open func write(_ arg0: [Int8]) throws + + /// Java method `write`. /// /// ### Java method signature /// ```java - /// public static java.io.OutputStream java.io.OutputStream.nullOutputStream() + /// public void java.io.OutputStream.write(byte[],int,int) throws java.io.IOException /// ``` - @JavaStaticMethod - public func nullOutputStream() -> OutputStream! + @JavaMethod + open func write(_ arg0: [Int8], _ arg1: Int32, _ arg2: Int32) throws } diff --git a/Sources/SwiftJava/generated/Path.swift b/Sources/SwiftJava/generated/Path.swift index 1495bf896..92290ef1c 100644 --- a/Sources/SwiftJava/generated/Path.swift +++ b/Sources/SwiftJava/generated/Path.swift @@ -1,205 +1,215 @@ // Auto-generated by Java-to-Swift wrapper generator. import SwiftJavaJNICore +extension JavaClass { + /// Java method `of`. + /// + /// ### Java method signature + /// ```java + /// public static java.nio.file.Path java.nio.file.Path.of(java.lang.String,java.lang.String...) + /// ``` + @JavaStaticMethod + public func of(_ arg0: String, _ arg1: [String]) -> Path! +} @JavaInterface("java.nio.file.Path") public struct Path { - /// Java method `getName`. + /// Java method `isAbsolute`. /// /// ### Java method signature /// ```java - /// public abstract java.nio.file.Path java.nio.file.Path.getName(int) + /// public abstract boolean java.nio.file.Path.isAbsolute() /// ``` @JavaMethod - public func getName(_ arg0: Int32) -> Path! + public func isAbsolute() -> Bool - /// Java method `equals`. + /// Java method `compareTo`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.nio.file.Path.equals(java.lang.Object) + /// public abstract int java.nio.file.Path.compareTo(java.nio.file.Path) /// ``` @JavaMethod - public func equals(_ arg0: JavaObject?) -> Bool + public func compareTo(_ arg0: Path?) -> Int32 - /// Java method `toString`. + /// Java method `compareTo`. /// /// ### Java method signature /// ```java - /// public abstract java.lang.String java.nio.file.Path.toString() + /// public default int java.nio.file.Path.compareTo(java.lang.Object) /// ``` @JavaMethod - public func toString() -> String + public func compareTo(_ arg0: JavaObject?) -> Int32 - /// Java method `hashCode`. + /// Java method `endsWith`. /// /// ### Java method signature /// ```java - /// public abstract int java.nio.file.Path.hashCode() + /// public abstract boolean java.nio.file.Path.endsWith(java.nio.file.Path) /// ``` @JavaMethod - public func hashCode() -> Int32 + public func endsWith(_ arg0: Path?) -> Bool - /// Java method `compareTo`. + /// Java method `endsWith`. /// /// ### Java method signature /// ```java - /// public default int java.nio.file.Path.compareTo(java.lang.Object) + /// public default boolean java.nio.file.Path.endsWith(java.lang.String) /// ``` @JavaMethod - public func compareTo(_ arg0: JavaObject?) -> Int32 + public func endsWith(_ arg0: String) -> Bool - /// Java method `compareTo`. + /// Java method `getFileName`. /// /// ### Java method signature /// ```java - /// public abstract int java.nio.file.Path.compareTo(java.nio.file.Path) + /// public abstract java.nio.file.Path java.nio.file.Path.getFileName() /// ``` @JavaMethod - public func compareTo(_ arg0: Path?) -> Int32 + public func getFileName() -> Path! - /// Java method `startsWith`. + /// Java method `iterator`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.nio.file.Path.startsWith(java.nio.file.Path) + /// public default java.util.Iterator java.nio.file.Path.iterator() /// ``` @JavaMethod - public func startsWith(_ arg0: Path?) -> Bool + public func iterator() -> JavaIterator! - /// Java method `startsWith`. + /// Java method `getName`. /// /// ### Java method signature /// ```java - /// public default boolean java.nio.file.Path.startsWith(java.lang.String) + /// public abstract java.nio.file.Path java.nio.file.Path.getName(int) /// ``` @JavaMethod - public func startsWith(_ arg0: String) -> Bool + public func getName(_ arg0: Int32) -> Path! - /// Java method `iterator`. + /// Java method `getNameCount`. /// /// ### Java method signature /// ```java - /// public default java.util.Iterator java.nio.file.Path.iterator() + /// public abstract int java.nio.file.Path.getNameCount() /// ``` @JavaMethod - public func iterator() -> JavaIterator! + public func getNameCount() -> Int32 - /// Java method `endsWith`. + /// Java method `normalize`. /// /// ### Java method signature /// ```java - /// public default boolean java.nio.file.Path.endsWith(java.lang.String) + /// public abstract java.nio.file.Path java.nio.file.Path.normalize() /// ``` @JavaMethod - public func endsWith(_ arg0: String) -> Bool + public func normalize() -> Path! - /// Java method `endsWith`. + /// Java method `getParent`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.nio.file.Path.endsWith(java.nio.file.Path) + /// public abstract java.nio.file.Path java.nio.file.Path.getParent() /// ``` @JavaMethod - public func endsWith(_ arg0: Path?) -> Bool + public func getParent() -> Path! - /// Java method `isAbsolute`. + /// Java method `relativize`. /// /// ### Java method signature /// ```java - /// public abstract boolean java.nio.file.Path.isAbsolute() + /// public abstract java.nio.file.Path java.nio.file.Path.relativize(java.nio.file.Path) /// ``` @JavaMethod - public func isAbsolute() -> Bool + public func relativize(_ arg0: Path?) -> Path! /// Java method `resolve`. /// /// ### Java method signature /// ```java - /// public default java.nio.file.Path java.nio.file.Path.resolve(java.lang.String,java.lang.String...) + /// public abstract java.nio.file.Path java.nio.file.Path.resolve(java.nio.file.Path) /// ``` @JavaMethod - public func resolve(_ arg0: String, _ arg1: [String]) -> Path! + public func resolve(_ arg0: Path?) -> Path! /// Java method `resolve`. /// /// ### Java method signature /// ```java - /// public default java.nio.file.Path java.nio.file.Path.resolve(java.nio.file.Path,java.nio.file.Path...) + /// public default java.nio.file.Path java.nio.file.Path.resolve(java.lang.String) /// ``` @JavaMethod - public func resolve(_ arg0: Path?, _ arg1: [Path?]) -> Path! + public func resolve(_ arg0: String) -> Path! /// Java method `resolve`. /// /// ### Java method signature /// ```java - /// public default java.nio.file.Path java.nio.file.Path.resolve(java.lang.String) + /// public default java.nio.file.Path java.nio.file.Path.resolve(java.lang.String,java.lang.String...) /// ``` @JavaMethod - public func resolve(_ arg0: String) -> Path! + public func resolve(_ arg0: String, _ arg1: [String]) -> Path! /// Java method `resolve`. /// /// ### Java method signature /// ```java - /// public abstract java.nio.file.Path java.nio.file.Path.resolve(java.nio.file.Path) + /// public default java.nio.file.Path java.nio.file.Path.resolve(java.nio.file.Path,java.nio.file.Path...) /// ``` @JavaMethod - public func resolve(_ arg0: Path?) -> Path! + public func resolve(_ arg0: Path?, _ arg1: [Path?]) -> Path! - /// Java method `getParent`. + /// Java method `resolveSibling`. /// /// ### Java method signature /// ```java - /// public abstract java.nio.file.Path java.nio.file.Path.getParent() + /// public default java.nio.file.Path java.nio.file.Path.resolveSibling(java.lang.String) /// ``` @JavaMethod - public func getParent() -> Path! + public func resolveSibling(_ arg0: String) -> Path! - /// Java method `getRoot`. + /// Java method `resolveSibling`. /// /// ### Java method signature /// ```java - /// public abstract java.nio.file.Path java.nio.file.Path.getRoot() + /// public default java.nio.file.Path java.nio.file.Path.resolveSibling(java.nio.file.Path) /// ``` @JavaMethod - public func getRoot() -> Path! + public func resolveSibling(_ arg0: Path?) -> Path! - /// Java method `toFile`. + /// Java method `getRoot`. /// /// ### Java method signature /// ```java - /// public default java.io.File java.nio.file.Path.toFile() + /// public abstract java.nio.file.Path java.nio.file.Path.getRoot() /// ``` @JavaMethod - public func toFile() -> File! + public func getRoot() -> Path! - /// Java method `getFileName`. + /// Java method `startsWith`. /// /// ### Java method signature /// ```java - /// public abstract java.nio.file.Path java.nio.file.Path.getFileName() + /// public abstract boolean java.nio.file.Path.startsWith(java.nio.file.Path) /// ``` @JavaMethod - public func getFileName() -> Path! + public func startsWith(_ arg0: Path?) -> Bool - /// Java method `normalize`. + /// Java method `startsWith`. /// /// ### Java method signature /// ```java - /// public abstract java.nio.file.Path java.nio.file.Path.normalize() + /// public default boolean java.nio.file.Path.startsWith(java.lang.String) /// ``` @JavaMethod - public func normalize() -> Path! + public func startsWith(_ arg0: String) -> Bool - /// Java method `relativize`. + /// Java method `subpath`. /// /// ### Java method signature /// ```java - /// public abstract java.nio.file.Path java.nio.file.Path.relativize(java.nio.file.Path) + /// public abstract java.nio.file.Path java.nio.file.Path.subpath(int,int) /// ``` @JavaMethod - public func relativize(_ arg0: Path?) -> Path! + public func subpath(_ arg0: Int32, _ arg1: Int32) -> Path! /// Java method `toAbsolutePath`. /// @@ -210,49 +220,39 @@ public struct Path { @JavaMethod public func toAbsolutePath() -> Path! - /// Java method `resolveSibling`. + /// Java method `toFile`. /// /// ### Java method signature /// ```java - /// public default java.nio.file.Path java.nio.file.Path.resolveSibling(java.nio.file.Path) + /// public default java.io.File java.nio.file.Path.toFile() /// ``` @JavaMethod - public func resolveSibling(_ arg0: Path?) -> Path! + public func toFile() -> File! - /// Java method `resolveSibling`. + /// Java method `equals`. /// /// ### Java method signature /// ```java - /// public default java.nio.file.Path java.nio.file.Path.resolveSibling(java.lang.String) + /// public abstract boolean java.nio.file.Path.equals(java.lang.Object) /// ``` @JavaMethod - public func resolveSibling(_ arg0: String) -> Path! + public func equals(_ arg0: JavaObject?) -> Bool - /// Java method `getNameCount`. + /// Java method `hashCode`. /// /// ### Java method signature /// ```java - /// public abstract int java.nio.file.Path.getNameCount() + /// public abstract int java.nio.file.Path.hashCode() /// ``` @JavaMethod - public func getNameCount() -> Int32 + public func hashCode() -> Int32 - /// Java method `subpath`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public abstract java.nio.file.Path java.nio.file.Path.subpath(int,int) + /// public abstract java.lang.String java.nio.file.Path.toString() /// ``` @JavaMethod - public func subpath(_ arg0: Int32, _ arg1: Int32) -> Path! -} -extension JavaClass { - /// Java method `of`. - /// - /// ### Java method signature - /// ```java - /// public static java.nio.file.Path java.nio.file.Path.of(java.lang.String,java.lang.String...) - /// ``` - @JavaStaticMethod - public func of(_ arg0: String, _ arg1: [String]) -> Path! + public func toString() -> String } diff --git a/Sources/SwiftJava/generated/PrintWriter.swift b/Sources/SwiftJava/generated/PrintWriter.swift index 8fd28b6f9..afa726829 100644 --- a/Sources/SwiftJava/generated/PrintWriter.swift +++ b/Sources/SwiftJava/generated/PrintWriter.swift @@ -4,22 +4,22 @@ import SwiftJavaJNICore @JavaClass("java.io.PrintWriter") open class PrintWriter: Writer { @JavaMethod - @_nonoverride public convenience init(_ arg0: String, _ arg1: String, environment: JNIEnvironment? = nil) throws + @_nonoverride public convenience init(_ arg0: File?, environment: JNIEnvironment? = nil) throws @JavaMethod - @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) throws + @_nonoverride public convenience init(_ arg0: File?, _ arg1: String, environment: JNIEnvironment? = nil) throws @JavaMethod - @_nonoverride public convenience init(_ arg0: String, _ arg1: Charset?, environment: JNIEnvironment? = nil) throws + @_nonoverride public convenience init(_ arg0: File?, _ arg1: Charset?, environment: JNIEnvironment? = nil) throws @JavaMethod - @_nonoverride public convenience init(_ arg0: File?, environment: JNIEnvironment? = nil) throws + @_nonoverride public convenience init(_ arg0: OutputStream?, environment: JNIEnvironment? = nil) @JavaMethod - @_nonoverride public convenience init(_ arg0: File?, _ arg1: Charset?, environment: JNIEnvironment? = nil) throws + @_nonoverride public convenience init(_ arg0: OutputStream?, _ arg1: Bool, environment: JNIEnvironment? = nil) @JavaMethod - @_nonoverride public convenience init(_ arg0: File?, _ arg1: String, environment: JNIEnvironment? = nil) throws + @_nonoverride public convenience init(_ arg0: OutputStream?, _ arg1: Bool, _ arg2: Charset?, environment: JNIEnvironment? = nil) @JavaMethod @_nonoverride public convenience init(_ arg0: Writer?, environment: JNIEnvironment? = nil) @@ -28,317 +28,317 @@ open class PrintWriter: Writer { @_nonoverride public convenience init(_ arg0: Writer?, _ arg1: Bool, environment: JNIEnvironment? = nil) @JavaMethod - @_nonoverride public convenience init(_ arg0: OutputStream?, _ arg1: Bool, _ arg2: Charset?, environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) throws @JavaMethod - @_nonoverride public convenience init(_ arg0: OutputStream?, _ arg1: Bool, environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(_ arg0: String, _ arg1: String, environment: JNIEnvironment? = nil) throws @JavaMethod - @_nonoverride public convenience init(_ arg0: OutputStream?, environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(_ arg0: String, _ arg1: Charset?, environment: JNIEnvironment? = nil) throws - /// Java method `println`. + /// Java method `append`. /// /// ### Java method signature /// ```java - /// public void java.io.PrintWriter.println(double) + /// public java.io.PrintWriter java.io.PrintWriter.append(char) /// ``` @JavaMethod - open func println(_ arg0: Double) + open override func append(_ arg0: UInt16) -> PrintWriter! - /// Java method `println`. + /// Java method `append`. /// /// ### Java method signature /// ```java - /// public void java.io.PrintWriter.println(float) + /// public java.io.PrintWriter java.io.PrintWriter.append(java.lang.CharSequence) /// ``` @JavaMethod - open func println(_ arg0: Float) + open override func append(_ arg0: CharSequence?) -> PrintWriter! - /// Java method `println`. + /// Java method `append`. /// /// ### Java method signature /// ```java - /// public void java.io.PrintWriter.println(long) + /// public java.io.PrintWriter java.io.PrintWriter.append(java.lang.CharSequence,int,int) /// ``` @JavaMethod - open func println(_ arg0: Int64) + open override func append(_ arg0: CharSequence?, _ arg1: Int32, _ arg2: Int32) -> PrintWriter! - /// Java method `println`. + /// Java method `checkError`. /// /// ### Java method signature /// ```java - /// public void java.io.PrintWriter.println(char[]) + /// public boolean java.io.PrintWriter.checkError() /// ``` @JavaMethod - open func println(_ arg0: [UInt16]) + open func checkError() -> Bool - /// Java method `println`. + /// Java method `clearError`. /// /// ### Java method signature /// ```java - /// public void java.io.PrintWriter.println(java.lang.String) + /// protected void java.io.PrintWriter.clearError() /// ``` @JavaMethod - open func println(_ arg0: String) + open func clearError() - /// Java method `println`. + /// Java method `close`. /// /// ### Java method signature /// ```java - /// public void java.io.PrintWriter.println(java.lang.Object) + /// public void java.io.PrintWriter.close() /// ``` @JavaMethod - open func println(_ arg0: JavaObject?) + open override func close() - /// Java method `println`. + /// Java method `setError`. /// /// ### Java method signature /// ```java - /// public void java.io.PrintWriter.println() + /// protected void java.io.PrintWriter.setError() /// ``` @JavaMethod - open func println() + open func setError() - /// Java method `println`. + /// Java method `flush`. /// /// ### Java method signature /// ```java - /// public void java.io.PrintWriter.println(boolean) + /// public void java.io.PrintWriter.flush() /// ``` @JavaMethod - open func println(_ arg0: Bool) + open override func flush() - /// Java method `println`. + /// Java method `format`. /// /// ### Java method signature /// ```java - /// public void java.io.PrintWriter.println(char) + /// public java.io.PrintWriter java.io.PrintWriter.format(java.lang.String,java.lang.Object...) /// ``` @JavaMethod - open func println(_ arg0: UInt16) + open func format(_ arg0: String, _ arg1: [JavaObject?]) -> PrintWriter! - /// Java method `println`. + /// Java method `print`. /// /// ### Java method signature /// ```java - /// public void java.io.PrintWriter.println(int) + /// public void java.io.PrintWriter.print(boolean) /// ``` @JavaMethod - open func println(_ arg0: Int32) + open func print(_ arg0: Bool) - /// Java method `append`. + /// Java method `print`. /// /// ### Java method signature /// ```java - /// public java.io.PrintWriter java.io.PrintWriter.append(java.lang.CharSequence) + /// public void java.io.PrintWriter.print(char) /// ``` @JavaMethod - open override func append(_ arg0: CharSequence?) -> PrintWriter! + open func print(_ arg0: UInt16) - /// Java method `append`. + /// Java method `print`. /// /// ### Java method signature /// ```java - /// public java.io.PrintWriter java.io.PrintWriter.append(char) + /// public void java.io.PrintWriter.print(char[]) /// ``` @JavaMethod - open override func append(_ arg0: UInt16) -> PrintWriter! + open func print(_ arg0: [UInt16]) - /// Java method `append`. + /// Java method `print`. /// /// ### Java method signature /// ```java - /// public java.io.PrintWriter java.io.PrintWriter.append(java.lang.CharSequence,int,int) + /// public void java.io.PrintWriter.print(double) /// ``` @JavaMethod - open override func append(_ arg0: CharSequence?, _ arg1: Int32, _ arg2: Int32) -> PrintWriter! + open func print(_ arg0: Double) - /// Java method `flush`. + /// Java method `print`. /// /// ### Java method signature /// ```java - /// public void java.io.PrintWriter.flush() + /// public void java.io.PrintWriter.print(float) /// ``` @JavaMethod - open override func flush() + open func print(_ arg0: Float) - /// Java method `format`. + /// Java method `print`. /// /// ### Java method signature /// ```java - /// public java.io.PrintWriter java.io.PrintWriter.format(java.lang.String,java.lang.Object...) + /// public void java.io.PrintWriter.print(int) /// ``` @JavaMethod - open func format(_ arg0: String, _ arg1: [JavaObject?]) -> PrintWriter! + open func print(_ arg0: Int32) /// Java method `print`. /// /// ### Java method signature /// ```java - /// public void java.io.PrintWriter.print(float) + /// public void java.io.PrintWriter.print(java.lang.Object) /// ``` @JavaMethod - open func print(_ arg0: Float) + open func print(_ arg0: JavaObject?) /// Java method `print`. /// /// ### Java method signature /// ```java - /// public void java.io.PrintWriter.print(long) + /// public void java.io.PrintWriter.print(java.lang.String) /// ``` @JavaMethod - open func print(_ arg0: Int64) + open func print(_ arg0: String) /// Java method `print`. /// /// ### Java method signature /// ```java - /// public void java.io.PrintWriter.print(int) + /// public void java.io.PrintWriter.print(long) /// ``` @JavaMethod - open func print(_ arg0: Int32) + open func print(_ arg0: Int64) - /// Java method `print`. + /// Java method `printf`. /// /// ### Java method signature /// ```java - /// public void java.io.PrintWriter.print(char) + /// public java.io.PrintWriter java.io.PrintWriter.printf(java.lang.String,java.lang.Object...) /// ``` @JavaMethod - open func print(_ arg0: UInt16) + open func printf(_ arg0: String, _ arg1: [JavaObject?]) -> PrintWriter! - /// Java method `print`. + /// Java method `println`. /// /// ### Java method signature /// ```java - /// public void java.io.PrintWriter.print(boolean) + /// public void java.io.PrintWriter.println() /// ``` @JavaMethod - open func print(_ arg0: Bool) + open func println() - /// Java method `print`. + /// Java method `println`. /// /// ### Java method signature /// ```java - /// public void java.io.PrintWriter.print(java.lang.Object) + /// public void java.io.PrintWriter.println(boolean) /// ``` @JavaMethod - open func print(_ arg0: JavaObject?) + open func println(_ arg0: Bool) - /// Java method `print`. + /// Java method `println`. /// /// ### Java method signature /// ```java - /// public void java.io.PrintWriter.print(java.lang.String) + /// public void java.io.PrintWriter.println(char) /// ``` @JavaMethod - open func print(_ arg0: String) + open func println(_ arg0: UInt16) - /// Java method `print`. + /// Java method `println`. /// /// ### Java method signature /// ```java - /// public void java.io.PrintWriter.print(char[]) + /// public void java.io.PrintWriter.println(char[]) /// ``` @JavaMethod - open func print(_ arg0: [UInt16]) + open func println(_ arg0: [UInt16]) - /// Java method `print`. + /// Java method `println`. /// /// ### Java method signature /// ```java - /// public void java.io.PrintWriter.print(double) + /// public void java.io.PrintWriter.println(double) /// ``` @JavaMethod - open func print(_ arg0: Double) + open func println(_ arg0: Double) - /// Java method `write`. + /// Java method `println`. /// /// ### Java method signature /// ```java - /// public void java.io.PrintWriter.write(java.lang.String,int,int) + /// public void java.io.PrintWriter.println(float) /// ``` @JavaMethod - open override func write(_ arg0: String, _ arg1: Int32, _ arg2: Int32) + open func println(_ arg0: Float) - /// Java method `write`. + /// Java method `println`. /// /// ### Java method signature /// ```java - /// public void java.io.PrintWriter.write(java.lang.String) + /// public void java.io.PrintWriter.println(int) /// ``` @JavaMethod - open override func write(_ arg0: String) + open func println(_ arg0: Int32) - /// Java method `write`. + /// Java method `println`. /// /// ### Java method signature /// ```java - /// public void java.io.PrintWriter.write(char[]) + /// public void java.io.PrintWriter.println(java.lang.Object) /// ``` @JavaMethod - open override func write(_ arg0: [UInt16]) + open func println(_ arg0: JavaObject?) - /// Java method `write`. + /// Java method `println`. /// /// ### Java method signature /// ```java - /// public void java.io.PrintWriter.write(int) + /// public void java.io.PrintWriter.println(java.lang.String) /// ``` @JavaMethod - open override func write(_ arg0: Int32) + open func println(_ arg0: String) - /// Java method `write`. + /// Java method `println`. /// /// ### Java method signature /// ```java - /// public void java.io.PrintWriter.write(char[],int,int) + /// public void java.io.PrintWriter.println(long) /// ``` @JavaMethod - open override func write(_ arg0: [UInt16], _ arg1: Int32, _ arg2: Int32) + open func println(_ arg0: Int64) - /// Java method `close`. + /// Java method `write`. /// /// ### Java method signature /// ```java - /// public void java.io.PrintWriter.close() + /// public void java.io.PrintWriter.write(char[]) /// ``` @JavaMethod - open override func close() + open override func write(_ arg0: [UInt16]) - /// Java method `printf`. + /// Java method `write`. /// /// ### Java method signature /// ```java - /// public java.io.PrintWriter java.io.PrintWriter.printf(java.lang.String,java.lang.Object...) + /// public void java.io.PrintWriter.write(char[],int,int) /// ``` @JavaMethod - open func printf(_ arg0: String, _ arg1: [JavaObject?]) -> PrintWriter! + open override func write(_ arg0: [UInt16], _ arg1: Int32, _ arg2: Int32) - /// Java method `checkError`. + /// Java method `write`. /// /// ### Java method signature /// ```java - /// public boolean java.io.PrintWriter.checkError() + /// public void java.io.PrintWriter.write(int) /// ``` @JavaMethod - open func checkError() -> Bool + open override func write(_ arg0: Int32) - /// Java method `setError`. + /// Java method `write`. /// /// ### Java method signature /// ```java - /// protected void java.io.PrintWriter.setError() + /// public void java.io.PrintWriter.write(java.lang.String) /// ``` @JavaMethod - open func setError() + open override func write(_ arg0: String) - /// Java method `clearError`. + /// Java method `write`. /// /// ### Java method signature /// ```java - /// protected void java.io.PrintWriter.clearError() + /// public void java.io.PrintWriter.write(java.lang.String,int,int) /// ``` @JavaMethod - open func clearError() + open override func write(_ arg0: String, _ arg1: Int32, _ arg2: Int32) } diff --git a/Sources/SwiftJava/generated/RuntimeException.swift b/Sources/SwiftJava/generated/RuntimeException.swift index d27b10ea5..5539ed65b 100644 --- a/Sources/SwiftJava/generated/RuntimeException.swift +++ b/Sources/SwiftJava/generated/RuntimeException.swift @@ -4,14 +4,14 @@ import SwiftJavaJNICore @JavaClass("java.lang.RuntimeException") open class RuntimeException: Exception { @JavaMethod - @_nonoverride public convenience init(_ arg0: Throwable?, environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(environment: JNIEnvironment? = nil) @JavaMethod - @_nonoverride public convenience init(_ arg0: String, _ arg1: Throwable?, environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) @JavaMethod - @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(_ arg0: String, _ arg1: Throwable?, environment: JNIEnvironment? = nil) @JavaMethod - @_nonoverride public convenience init(environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(_ arg0: Throwable?, environment: JNIEnvironment? = nil) } diff --git a/Sources/SwiftJava/generated/StringWriter.swift b/Sources/SwiftJava/generated/StringWriter.swift index 238d6e623..190cb8f08 100644 --- a/Sources/SwiftJava/generated/StringWriter.swift +++ b/Sources/SwiftJava/generated/StringWriter.swift @@ -9,41 +9,41 @@ open class StringWriter: Writer { @JavaMethod @_nonoverride public convenience init(_ arg0: Int32, environment: JNIEnvironment? = nil) - /// Java method `toString`. + /// Java method `append`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.io.StringWriter.toString() + /// public java.io.StringWriter java.io.StringWriter.append(char) /// ``` @JavaMethod - open override func toString() -> String + open override func append(_ arg0: UInt16) -> StringWriter! /// Java method `append`. /// /// ### Java method signature /// ```java - /// public java.io.StringWriter java.io.StringWriter.append(java.lang.CharSequence,int,int) + /// public java.io.StringWriter java.io.StringWriter.append(java.lang.CharSequence) /// ``` @JavaMethod - open override func append(_ arg0: CharSequence?, _ arg1: Int32, _ arg2: Int32) -> StringWriter! + open override func append(_ arg0: CharSequence?) -> StringWriter! /// Java method `append`. /// /// ### Java method signature /// ```java - /// public java.io.StringWriter java.io.StringWriter.append(char) + /// public java.io.StringWriter java.io.StringWriter.append(java.lang.CharSequence,int,int) /// ``` @JavaMethod - open override func append(_ arg0: UInt16) -> StringWriter! + open override func append(_ arg0: CharSequence?, _ arg1: Int32, _ arg2: Int32) -> StringWriter! - /// Java method `append`. + /// Java method `close`. /// /// ### Java method signature /// ```java - /// public java.io.StringWriter java.io.StringWriter.append(java.lang.CharSequence) + /// public void java.io.StringWriter.close() throws java.io.IOException /// ``` @JavaMethod - open override func append(_ arg0: CharSequence?) -> StringWriter! + open override func close() throws /// Java method `flush`. /// @@ -67,10 +67,10 @@ open class StringWriter: Writer { /// /// ### Java method signature /// ```java - /// public void java.io.StringWriter.write(java.lang.String,int,int) + /// public void java.io.StringWriter.write(int) /// ``` @JavaMethod - open override func write(_ arg0: String, _ arg1: Int32, _ arg2: Int32) + open override func write(_ arg0: Int32) /// Java method `write`. /// @@ -85,17 +85,17 @@ open class StringWriter: Writer { /// /// ### Java method signature /// ```java - /// public void java.io.StringWriter.write(int) + /// public void java.io.StringWriter.write(java.lang.String,int,int) /// ``` @JavaMethod - open override func write(_ arg0: Int32) + open override func write(_ arg0: String, _ arg1: Int32, _ arg2: Int32) - /// Java method `close`. + /// Java method `toString`. /// /// ### Java method signature /// ```java - /// public void java.io.StringWriter.close() throws java.io.IOException + /// public java.lang.String java.io.StringWriter.toString() /// ``` @JavaMethod - open override func close() throws + open override func toString() -> String } diff --git a/Sources/SwiftJava/generated/Throwable.swift b/Sources/SwiftJava/generated/Throwable.swift index 97139fabd..7fc3796e7 100644 --- a/Sources/SwiftJava/generated/Throwable.swift +++ b/Sources/SwiftJava/generated/Throwable.swift @@ -4,34 +4,34 @@ import SwiftJavaJNICore @JavaClass("java.lang.Throwable") open class Throwable: JavaObject { @JavaMethod - @_nonoverride public convenience init(_ arg0: Throwable?, environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(environment: JNIEnvironment? = nil) @JavaMethod - @_nonoverride public convenience init(_ arg0: String, _ arg1: Throwable?, environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) @JavaMethod - @_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(_ arg0: String, _ arg1: Throwable?, environment: JNIEnvironment? = nil) @JavaMethod - @_nonoverride public convenience init(environment: JNIEnvironment? = nil) + @_nonoverride public convenience init(_ arg0: Throwable?, environment: JNIEnvironment? = nil) - /// Java method `printStackTrace`. + /// Java method `addSuppressed`. /// /// ### Java method signature /// ```java - /// public void java.lang.Throwable.printStackTrace() + /// public final synchronized void java.lang.Throwable.addSuppressed(java.lang.Throwable) /// ``` @JavaMethod - open func printStackTrace() + open func addSuppressed(_ arg0: Throwable?) - /// Java method `printStackTrace`. + /// Java method `getCause`. /// /// ### Java method signature /// ```java - /// public void java.lang.Throwable.printStackTrace(java.io.PrintWriter) + /// public synchronized java.lang.Throwable java.lang.Throwable.getCause() /// ``` @JavaMethod - open func printStackTrace(_ arg0: PrintWriter?) + open func getCause() -> Throwable! /// Java method `fillInStackTrace`. /// @@ -42,15 +42,6 @@ open class Throwable: JavaObject { @JavaMethod open func fillInStackTrace() -> Throwable! - /// Java method `getCause`. - /// - /// ### Java method signature - /// ```java - /// public synchronized java.lang.Throwable java.lang.Throwable.getCause() - /// ``` - @JavaMethod - open func getCause() -> Throwable! - /// Java method `initCause`. /// /// ### Java method signature @@ -60,14 +51,14 @@ open class Throwable: JavaObject { @JavaMethod open func initCause(_ arg0: Throwable?) -> Throwable! - /// Java method `toString`. + /// Java method `getLocalizedMessage`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.Throwable.toString() + /// public java.lang.String java.lang.Throwable.getLocalizedMessage() /// ``` @JavaMethod - open override func toString() -> String + open func getLocalizedMessage() -> String /// Java method `getMessage`. /// @@ -78,30 +69,39 @@ open class Throwable: JavaObject { @JavaMethod open func getMessage() -> String - /// Java method `getSuppressed`. + /// Java method `printStackTrace`. /// /// ### Java method signature /// ```java - /// public final synchronized java.lang.Throwable[] java.lang.Throwable.getSuppressed() + /// public void java.lang.Throwable.printStackTrace() /// ``` @JavaMethod - open func getSuppressed() -> [Throwable?] + open func printStackTrace() - /// Java method `getLocalizedMessage`. + /// Java method `printStackTrace`. /// /// ### Java method signature /// ```java - /// public java.lang.String java.lang.Throwable.getLocalizedMessage() + /// public void java.lang.Throwable.printStackTrace(java.io.PrintWriter) /// ``` @JavaMethod - open func getLocalizedMessage() -> String + open func printStackTrace(_ arg0: PrintWriter?) - /// Java method `addSuppressed`. + /// Java method `getSuppressed`. /// /// ### Java method signature /// ```java - /// public final synchronized void java.lang.Throwable.addSuppressed(java.lang.Throwable) + /// public final synchronized java.lang.Throwable[] java.lang.Throwable.getSuppressed() /// ``` @JavaMethod - open func addSuppressed(_ arg0: Throwable?) + open func getSuppressed() -> [Throwable?] + + /// Java method `toString`. + /// + /// ### Java method signature + /// ```java + /// public java.lang.String java.lang.Throwable.toString() + /// ``` + @JavaMethod + open override func toString() -> String } diff --git a/Sources/SwiftJava/generated/Writer.swift b/Sources/SwiftJava/generated/Writer.swift index 3522dfb61..1a66236e2 100644 --- a/Sources/SwiftJava/generated/Writer.swift +++ b/Sources/SwiftJava/generated/Writer.swift @@ -1,17 +1,18 @@ // Auto-generated by Java-to-Swift wrapper generator. import SwiftJavaJNICore -@JavaClass("java.io.Writer", implements: Appendable.self, Closeable.self, Flushable.self) -open class Writer: JavaObject { - /// Java method `append`. +extension JavaClass { + /// Java method `nullWriter`. /// /// ### Java method signature /// ```java - /// public java.io.Writer java.io.Writer.append(java.lang.CharSequence,int,int) throws java.io.IOException + /// public static java.io.Writer java.io.Writer.nullWriter() /// ``` - @JavaMethod - open func append(_ arg0: CharSequence?, _ arg1: Int32, _ arg2: Int32) throws -> Writer! - + @JavaStaticMethod + public func nullWriter() -> Writer! +} +@JavaClass("java.io.Writer", implements: Appendable.self, Closeable.self, Flushable.self) +open class Writer: JavaObject { /// Java method `append`. /// /// ### Java method signature @@ -30,76 +31,75 @@ open class Writer: JavaObject { @JavaMethod open func append(_ arg0: CharSequence?) throws -> Writer! - /// Java method `flush`. + /// Java method `append`. /// /// ### Java method signature /// ```java - /// public abstract void java.io.Writer.flush() throws java.io.IOException + /// public java.io.Writer java.io.Writer.append(java.lang.CharSequence,int,int) throws java.io.IOException /// ``` @JavaMethod - open func flush() throws + open func append(_ arg0: CharSequence?, _ arg1: Int32, _ arg2: Int32) throws -> Writer! - /// Java method `write`. + /// Java method `close`. /// /// ### Java method signature /// ```java - /// public void java.io.Writer.write(java.lang.String,int,int) throws java.io.IOException + /// public abstract void java.io.Writer.close() throws java.io.IOException /// ``` @JavaMethod - open func write(_ arg0: String, _ arg1: Int32, _ arg2: Int32) throws + open func close() throws - /// Java method `write`. + /// Java method `flush`. /// /// ### Java method signature /// ```java - /// public void java.io.Writer.write(int) throws java.io.IOException + /// public abstract void java.io.Writer.flush() throws java.io.IOException /// ``` @JavaMethod - open func write(_ arg0: Int32) throws + open func flush() throws /// Java method `write`. /// /// ### Java method signature /// ```java - /// public void java.io.Writer.write(java.lang.String) throws java.io.IOException + /// public abstract void java.io.Writer.write(char[],int,int) throws java.io.IOException /// ``` @JavaMethod - open func write(_ arg0: String) throws + open func write(_ arg0: [UInt16], _ arg1: Int32, _ arg2: Int32) throws /// Java method `write`. /// /// ### Java method signature /// ```java - /// public abstract void java.io.Writer.write(char[],int,int) throws java.io.IOException + /// public void java.io.Writer.write(char[]) throws java.io.IOException /// ``` @JavaMethod - open func write(_ arg0: [UInt16], _ arg1: Int32, _ arg2: Int32) throws + open func write(_ arg0: [UInt16]) throws /// Java method `write`. /// /// ### Java method signature /// ```java - /// public void java.io.Writer.write(char[]) throws java.io.IOException + /// public void java.io.Writer.write(int) throws java.io.IOException /// ``` @JavaMethod - open func write(_ arg0: [UInt16]) throws + open func write(_ arg0: Int32) throws - /// Java method `close`. + /// Java method `write`. /// /// ### Java method signature /// ```java - /// public abstract void java.io.Writer.close() throws java.io.IOException + /// public void java.io.Writer.write(java.lang.String) throws java.io.IOException /// ``` @JavaMethod - open func close() throws -} -extension JavaClass { - /// Java method `nullWriter`. + open func write(_ arg0: String) throws + + /// Java method `write`. /// /// ### Java method signature /// ```java - /// public static java.io.Writer java.io.Writer.nullWriter() + /// public void java.io.Writer.write(java.lang.String,int,int) throws java.io.IOException /// ``` - @JavaStaticMethod - public func nullWriter() -> Writer! + @JavaMethod + open func write(_ arg0: String, _ arg1: Int32, _ arg2: Int32) throws } diff --git a/Sources/SwiftJava/swift-java.config b/Sources/SwiftJava/swift-java.config index 848b8b28a..a38ad32fc 100644 --- a/Sources/SwiftJava/swift-java.config +++ b/Sources/SwiftJava/swift-java.config @@ -34,6 +34,7 @@ "java.util.List" : "List", "java.util.Iterator": "JavaIterator", "java.util.ListIterator": "ListIterator", + "java.util.Map": "JavaMap", "java.util.Set": "JavaSet", // requirements for Throwable APIs we need @@ -51,5 +52,13 @@ // requirements for java.lang.ClassLoader "java.net.URL": "JavaURL", - } + }, + "javaFilterExclude": [ + // Workaround for https://github.com/swiftlang/swift-java/issues/783 + "java.util.Map#of", + "java.util.Map#ofEntries", + "java.util.Map#entry", + "java.util.Map#copyOf", + "java.util.Map$Entry#copyOf", + ] } diff --git a/Sources/SwiftJavaRuntimeSupport/generated/JavaJNISwiftInstance.swift b/Sources/SwiftJavaRuntimeSupport/generated/JavaJNISwiftInstance.swift index 746a23b23..93bd97f52 100644 --- a/Sources/SwiftJavaRuntimeSupport/generated/JavaJNISwiftInstance.swift +++ b/Sources/SwiftJavaRuntimeSupport/generated/JavaJNISwiftInstance.swift @@ -4,14 +4,14 @@ import SwiftJavaJNICore @JavaInterface("org.swift.swiftkit.core.JNISwiftInstance", extends: JavaSwiftInstance.self) public struct JavaJNISwiftInstance { - /// Java method `$typeMetadataAddress`. + /// Java method `$ensureAlive`. /// /// ### Java method signature /// ```java - /// public abstract long org.swift.swiftkit.core.JNISwiftInstance.$typeMetadataAddress() + /// public default void org.swift.swiftkit.core.SwiftInstance.$ensureAlive() /// ``` - @JavaMethod("$typeMetadataAddress") - public func _typeMetadataAddress() -> Int64 + @JavaMethod("$ensureAlive") + public func _ensureAlive() /// Java method `$memoryAddress`. /// @@ -22,12 +22,12 @@ public struct JavaJNISwiftInstance { @JavaMethod("$memoryAddress") public func _memoryAddress() -> Int64 - /// Java method `$ensureAlive`. + /// Java method `$typeMetadataAddress`. /// /// ### Java method signature /// ```java - /// public default void org.swift.swiftkit.core.SwiftInstance.$ensureAlive() + /// public abstract long org.swift.swiftkit.core.JNISwiftInstance.$typeMetadataAddress() /// ``` - @JavaMethod("$ensureAlive") - public func _ensureAlive() + @JavaMethod("$typeMetadataAddress") + public func _typeMetadataAddress() -> Int64 } diff --git a/Sources/SwiftJavaRuntimeSupport/generated/JavaSwiftArena.swift b/Sources/SwiftJavaRuntimeSupport/generated/JavaSwiftArena.swift index a50cbbc9a..67775b956 100644 --- a/Sources/SwiftJavaRuntimeSupport/generated/JavaSwiftArena.swift +++ b/Sources/SwiftJavaRuntimeSupport/generated/JavaSwiftArena.swift @@ -2,6 +2,16 @@ import SwiftJava import SwiftJavaJNICore +extension JavaClass { + /// Java method `ofAuto`. + /// + /// ### Java method signature + /// ```java + /// public static org.swift.swiftkit.core.SwiftArena org.swift.swiftkit.core.SwiftArena.ofAuto() + /// ``` + @JavaStaticMethod + public func ofAuto() -> JavaSwiftArena! +} @JavaInterface("org.swift.swiftkit.core.SwiftArena") public struct JavaSwiftArena { /// Java method `register`. @@ -13,13 +23,3 @@ public struct JavaSwiftArena { @JavaMethod public func register(_ arg0: JavaSwiftInstance?) } -extension JavaClass { - /// Java method `ofAuto`. - /// - /// ### Java method signature - /// ```java - /// public static org.swift.swiftkit.core.SwiftArena org.swift.swiftkit.core.SwiftArena.ofAuto() - /// ``` - @JavaStaticMethod - public func ofAuto() -> JavaSwiftArena! -} diff --git a/Sources/SwiftJavaRuntimeSupport/generated/JavaSwiftInstance.swift b/Sources/SwiftJavaRuntimeSupport/generated/JavaSwiftInstance.swift index 90a64c9a8..b7c1e454c 100644 --- a/Sources/SwiftJavaRuntimeSupport/generated/JavaSwiftInstance.swift +++ b/Sources/SwiftJavaRuntimeSupport/generated/JavaSwiftInstance.swift @@ -4,21 +4,21 @@ import SwiftJavaJNICore @JavaInterface("org.swift.swiftkit.core.SwiftInstance") public struct JavaSwiftInstance { - /// Java method `$memoryAddress`. + /// Java method `$ensureAlive`. /// /// ### Java method signature /// ```java - /// public abstract long org.swift.swiftkit.core.SwiftInstance.$memoryAddress() + /// public default void org.swift.swiftkit.core.SwiftInstance.$ensureAlive() /// ``` - @JavaMethod("$memoryAddress") - public func _memoryAddress() -> Int64 + @JavaMethod("$ensureAlive") + public func _ensureAlive() - /// Java method `$ensureAlive`. + /// Java method `$memoryAddress`. /// /// ### Java method signature /// ```java - /// public default void org.swift.swiftkit.core.SwiftInstance.$ensureAlive() + /// public abstract long org.swift.swiftkit.core.SwiftInstance.$memoryAddress() /// ``` - @JavaMethod("$ensureAlive") - public func _ensureAlive() + @JavaMethod("$memoryAddress") + public func _memoryAddress() -> Int64 } diff --git a/Sources/SwiftJavaToolLib/JavaClassTranslator.swift b/Sources/SwiftJavaToolLib/JavaClassTranslator.swift index e2f6ab81d..37e631a91 100644 --- a/Sources/SwiftJavaToolLib/JavaClassTranslator.swift +++ b/Sources/SwiftJavaToolLib/JavaClassTranslator.swift @@ -298,8 +298,6 @@ extension JavaClassTranslator { let className = split.first! let excludedName = split.dropFirst().first! - self.log.warning("Exclude filter: \(exclude) ||| \(javaClassName) / \(javaMemberName)") - if javaClassName.starts(with: className) { if excludedName.hasSuffix("*"), javaMemberName.starts(with: excludedName.dropLast()) { log.info("Skip Java member '\(javaClassName)#\(javaMemberName)', prefix exclude matched: \(exclude)") @@ -371,11 +369,11 @@ extension JavaClassTranslator { /// Render the Swift declarations that will express this Java class in Swift. package func render() -> [DeclSyntax] { var allDecls: [DeclSyntax] = [] - allDecls.append(renderPrimaryType()) - allDecls.append(contentsOf: renderNestedClasses()) if let staticMemberExtension = renderStaticMemberExtension() { allDecls.append(staticMemberExtension) } + allDecls.append(renderPrimaryType()) + allDecls.append(contentsOf: renderNestedClasses()) if let nativeMethodsProtocol = renderNativeMethodsProtocol() { allDecls.append(nativeMethodsProtocol) } @@ -387,7 +385,7 @@ extension JavaClassTranslator { /// includes the constructors, non-static fields, and non-static methods. private func renderPrimaryType() -> DeclSyntax { // Render all of the instance fields as Swift properties. - let properties = fields.compactMap { field in + let properties = fields.sortedForEmission().compactMap { field in do { return try renderField(field) } catch { @@ -402,7 +400,7 @@ extension JavaClassTranslator { let enumDecls: [DeclSyntax] = renderEnum(name: "\(swiftInnermostTypeName)Cases") // Render all of the constructors as Swift initializers. - let initializers = constructors.compactMap { constructor in + let initializers = constructors.sortedForEmission().compactMap { constructor in do { return try renderConstructor(constructor) } catch { @@ -412,7 +410,7 @@ extension JavaClassTranslator { } // Render all of the instance methods in Swift. - let instanceMethods = methods.methods.compactMap { method in + let instanceMethods = methods.methods.sortedForEmission().compactMap { method in do { return try renderMethod(method, implementedInSwift: false) } catch { @@ -432,7 +430,7 @@ extension JavaClassTranslator { } // Collect all of the members of this type. - let members = genericParameterTypeAliases + properties + enumDecls + initializers + instanceMethods + let members = genericParameterTypeAliases + initializers + properties + enumDecls + instanceMethods // Compute the "extends" clause for the superclass (of the struct // formulation) or the inheritance clause (for the class @@ -540,7 +538,7 @@ extension JavaClassTranslator { } // Render static fields. - let properties = staticFields.compactMap { field in + let properties = staticFields.sortedForEmission().compactMap { field in // Translate each static field. do { return try renderField(field) @@ -551,7 +549,7 @@ extension JavaClassTranslator { } // Render static methods. - let methods = staticMethods.methods.compactMap { method in + let methods = staticMethods.methods.sortedForEmission().compactMap { method in // Translate each static method. do { return try renderMethod( @@ -600,7 +598,7 @@ extension JavaClassTranslator { return nil } - let nativeMembers = nativeMethods.compactMap { method in + let nativeMembers = nativeMethods.sortedForEmission().compactMap { method in do { return try renderMethod( method, diff --git a/Sources/SwiftJavaToolLib/JavaMember+Sorting.swift b/Sources/SwiftJavaToolLib/JavaMember+Sorting.swift new file mode 100644 index 000000000..635d6953c --- /dev/null +++ b/Sources/SwiftJavaToolLib/JavaMember+Sorting.swift @@ -0,0 +1,70 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2024-2026 Apple Inc. and the Swift.org project authors +// Licensed under Apache License v2.0 +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of Swift.org project authors +// +// SPDX-License-Identifier: Apache-2.0 +// +//===----------------------------------------------------------------------===// + +import JavaLangReflect +import SwiftJava + +private let wellKnownJavaMemberNames: Set = [ + "equals", + "hashCode", + "toString", + "clone", + "finalize", + "wait", + "notify", + "notifyAll", + "getClass", +] + +private func primaryName(forMethodNamed name: String) -> String { + func dropPrefix(_ name: String, _ prefix: String) -> String? { + guard name.count > prefix.count, name.hasPrefix(prefix) else { return nil } + let next = name[name.index(name.startIndex, offsetBy: prefix.count)] + guard next.isUppercase else { return nil } + return String(name.dropFirst(prefix.count)) + } + if let stripped = dropPrefix(name, "get") { return stripped.lowercased() } + if let stripped = dropPrefix(name, "set") { return stripped.lowercased() } + if let stripped = dropPrefix(name, "is") { return stripped.lowercased() } + return name.lowercased() +} + +extension Swift.Array where Element == JavaLangReflect.Method { + func sortedForEmission() -> [JavaLangReflect.Method] { + sorted { lhs, rhs in + let lhsName = lhs.getName() + let rhsName = rhs.getName() + let lhsBucket = wellKnownJavaMemberNames.contains(lhsName) ? 1 : 0 + let rhsBucket = wellKnownJavaMemberNames.contains(rhsName) ? 1 : 0 + if lhsBucket != rhsBucket { return lhsBucket < rhsBucket } + let lhsPrimary = primaryName(forMethodNamed: lhsName) + let rhsPrimary = primaryName(forMethodNamed: rhsName) + if lhsPrimary != rhsPrimary { return lhsPrimary < rhsPrimary } + if lhsName != rhsName { return lhsName < rhsName } + return lhs.toGenericString() < rhs.toGenericString() + } + } +} + +extension Swift.Array where Element == JavaLangReflect.Field { + func sortedForEmission() -> [JavaLangReflect.Field] { + sorted { $0.getName() < $1.getName() } + } +} + +extension Swift.Array where Element == Constructor { + func sortedForEmission() -> [Constructor] { + sorted { $0.toGenericString() < $1.toGenericString() } + } +}