Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ extension JavaClass {
@JavaMethod
public func getFields() -> [Field?]

@JavaMethod
public func getGenericInterfaces() -> [Type?]

@JavaMethod
public func getGenericSuperclass() -> Type!

@JavaMethod
public func getConstructors() -> [Constructor<ObjectType>?]

Expand All @@ -41,9 +47,6 @@ extension JavaClass {
@JavaMethod
public func getTypeParameters() -> [TypeVariable<JavaClass<JavaObject>>?]

@JavaMethod
public func getGenericInterfaces() -> [Type?]

@JavaMethod
public func getAnnotations() -> [Annotation?]
}
198 changes: 198 additions & 0 deletions Sources/JavaStdlib/JavaLangReflect/generated/Array.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
// Auto-generated by Java-to-Swift wrapper generator.
import SwiftJava
import SwiftJavaJNICore

@JavaClass("java.lang.reflect.Array")
open class Array: JavaObject {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should call it JavaArray hmmm


}
extension JavaClass<Array> {
/// 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 signature
/// ```java
/// public static native int java.lang.reflect.Array.getLength(java.lang.Object) throws java.lang.IllegalArgumentException
/// ```
@JavaStaticMethod
public func getLength(_ arg0: JavaObject?) throws -> Int32

/// Java method `getBoolean`.
///
/// ### Java method signature
/// ```java
/// public static native boolean java.lang.reflect.Array.getBoolean(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException
/// ```
@JavaStaticMethod
public func getBoolean(_ arg0: JavaObject?, _ arg1: Int32) throws -> Bool

/// Java method `getByte`.
///
/// ### Java method signature
/// ```java
/// public static native byte java.lang.reflect.Array.getByte(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException
/// ```
@JavaStaticMethod
public func getByte(_ arg0: JavaObject?, _ arg1: Int32) throws -> Int8

/// Java method `getShort`.
///
/// ### Java method signature
/// ```java
/// public static native short java.lang.reflect.Array.getShort(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException
/// ```
@JavaStaticMethod
public func getShort(_ arg0: JavaObject?, _ arg1: Int32) throws -> Int16

/// Java method `getChar`.
///
/// ### Java method signature
/// ```java
/// public static native char java.lang.reflect.Array.getChar(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException
/// ```
@JavaStaticMethod
public func getChar(_ arg0: JavaObject?, _ arg1: Int32) throws -> UInt16

/// Java method `getInt`.
///
/// ### Java method signature
/// ```java
/// public static native int java.lang.reflect.Array.getInt(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException
/// ```
@JavaStaticMethod
public func getInt(_ arg0: JavaObject?, _ arg1: Int32) throws -> Int32

/// Java method `getLong`.
///
/// ### Java method signature
/// ```java
/// public static native long java.lang.reflect.Array.getLong(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException
/// ```
@JavaStaticMethod
public func getLong(_ arg0: JavaObject?, _ arg1: Int32) throws -> Int64

/// Java method `getFloat`.
///
/// ### Java method signature
/// ```java
/// public static native float java.lang.reflect.Array.getFloat(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException
/// ```
@JavaStaticMethod
public func getFloat(_ arg0: JavaObject?, _ arg1: Int32) throws -> Float

/// Java method `getDouble`.
///
/// ### Java method signature
/// ```java
/// public static native double java.lang.reflect.Array.getDouble(java.lang.Object,int) throws java.lang.IllegalArgumentException,java.lang.ArrayIndexOutOfBoundsException
/// ```
@JavaStaticMethod
public func getDouble(_ arg0: JavaObject?, _ arg1: Int32) throws -> Double

/// Java method `newInstance`.
///
/// ### Java method signature
/// ```java
/// public static java.lang.Object java.lang.reflect.Array.newInstance(java.lang.Class<?>,int) throws java.lang.NegativeArraySizeException
/// ```
@JavaStaticMethod
public func newInstance(_ arg0: JavaClass<JavaObject>?, _ arg1: Int32) throws -> JavaObject!

/// Java method `newInstance`.
///
/// ### 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
/// ```
@JavaStaticMethod
public func newInstance(_ arg0: JavaClass<JavaObject>?, _ arg1: [Int32]) throws -> JavaObject!

/// Java method `set`.
///
/// ### 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
/// ```
@JavaStaticMethod
public func set(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: JavaObject?) throws

/// Java method `setBoolean`.
///
/// ### 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
/// ```
@JavaStaticMethod
public func setBoolean(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Bool) throws

/// Java method `setByte`.
///
/// ### 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
/// ```
@JavaStaticMethod
public func setByte(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Int8) throws

/// Java method `setChar`.
///
/// ### 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
/// ```
@JavaStaticMethod
public func setChar(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: UInt16) throws

/// Java method `setShort`.
///
/// ### 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
/// ```
@JavaStaticMethod
public func setShort(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Int16) throws

/// Java method `setInt`.
///
/// ### 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
/// ```
@JavaStaticMethod
public func setInt(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Int32) throws

/// Java method `setLong`.
///
/// ### 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
/// ```
@JavaStaticMethod
public func setLong(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Int64) throws

/// Java method `setFloat`.
///
/// ### 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
/// ```
@JavaStaticMethod
public func setFloat(_ arg0: JavaObject?, _ arg1: Int32, _ arg2: Float) throws

/// 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
}
1 change: 1 addition & 0 deletions Sources/JavaStdlib/JavaLangReflect/swift-java.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"java.lang.annotation.Annotation" : "Annotation",
"java.lang.reflect.AccessibleObject" : "AccessibleObject",
"java.lang.reflect.AnnotatedType" : "AnnotatedType",
"java.lang.reflect.Array" : "Array",
"java.lang.reflect.Constructor" : "Constructor",
"java.lang.reflect.Executable" : "Executable",
"java.lang.reflect.Field" : "Field",
Expand Down
Loading
Loading