-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathInheritableThreadLocal.swift
More file actions
63 lines (41 loc) · 2.55 KB
/
InheritableThreadLocal.swift
File metadata and controls
63 lines (41 loc) · 2.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import java_swift
/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
/// class java.lang.InheritableThreadLocal ///
open class InheritableThreadLocal: ThreadLocal {
public convenience init?( casting object: java_swift.JavaObject, _ file: StaticString = #file, _ line: Int = #line ) {
self.init( javaObject: nil )
object.withJavaObject {
self.javaObject = $0
}
}
private static var InheritableThreadLocalJNIClass: jclass?
/// private static final int java.lang.ThreadLocal.HASH_INCREMENT
/// private static java.util.concurrent.atomic.AtomicInteger java.lang.ThreadLocal.nextHashCode
/// private final int java.lang.ThreadLocal.threadLocalHashCode
/// public java.lang.InheritableThreadLocal()
private static var new_MethodID_1: jmethodID?
public convenience init() {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __object = JNIMethod.NewObject( className: "java/lang/InheritableThreadLocal", classCache: &InheritableThreadLocal.InheritableThreadLocalJNIClass, methodSig: "()V", methodCache: &InheritableThreadLocal.new_MethodID_1, args: &__args, locals: &__locals )
self.init( javaObject: __object )
JNI.DeleteLocalRef( __object )
}
/// protected java.lang.Object java.lang.InheritableThreadLocal.childValue(java.lang.Object)
private static var childValue_MethodID_2: jmethodID?
open func childValue( parentValue: java_swift.JavaObject? ) -> java_swift.JavaObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: parentValue, locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "childValue", methodSig: "(Ljava/lang/Object;)Ljava/lang/Object;", methodCache: &InheritableThreadLocal.childValue_MethodID_2, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? java_swift.JavaObject( javaObject: __return ) : nil
}
open func childValue( _ _parentValue: java_swift.JavaObject? ) -> java_swift.JavaObject! {
return childValue( parentValue: _parentValue )
}
/// void java.lang.InheritableThreadLocal.createMap(java.lang.Thread,java.lang.Object)
// Skipping method: true false false false false
/// java.lang.ThreadLocal$ThreadLocalMap java.lang.InheritableThreadLocal.getMap(java.lang.Thread)
// Skipping method: true false false false false
}