abstract class jdk.internal.module.ModuleReferences$SafeCloseModuleReader implements java.lang.module.ModuleReader
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: jdk.internal.module.ModuleReferences$SafeCloseModuleReader
super_class: java.lang.Object
{
private final java.util.concurrent.locks.ReadWriteLock lock;
descriptor: Ljava/util/concurrent/locks/ReadWriteLock;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.locks.Lock readLock;
descriptor: Ljava/util/concurrent/locks/Lock;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.locks.Lock writeLock;
descriptor: Ljava/util/concurrent/locks/Lock;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean closed;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.locks.ReentrantReadWriteLock
dup
invokespecial java.util.concurrent.locks.ReentrantReadWriteLock.<init>:()V
putfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.lock:Ljava/util/concurrent/locks/ReadWriteLock;
2: aload 0
aload 0
getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
putfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.readLock:Ljava/util/concurrent/locks/Lock;
3: aload 0
aload 0
getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
putfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.writeLock:Ljava/util/concurrent/locks/Lock;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/module/ModuleReferences$SafeCloseModuleReader;
abstract java.util.Optional<java.net.URI> implFind(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Optional;
flags: (0x0400) ACC_ABSTRACT
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/String;)Ljava/util/Optional<Ljava/net/URI;>;
MethodParameters:
Name Flags
name
abstract java.util.Optional<java.io.InputStream> implOpen(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Optional;
flags: (0x0400) ACC_ABSTRACT
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/String;)Ljava/util/Optional<Ljava/io/InputStream;>;
MethodParameters:
Name Flags
name
abstract java.util.stream.Stream<java.lang.String> implList();
descriptor: ()Ljava/util/stream/Stream;
flags: (0x0400) ACC_ABSTRACT
Exceptions:
throws java.io.IOException
Signature: ()Ljava/util/stream/Stream<Ljava/lang/String;>;
abstract void implClose();
descriptor: ()V
flags: (0x0400) ACC_ABSTRACT
Exceptions:
throws java.io.IOException
public final java.util.Optional<java.net.URI> find(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Optional;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.readLock:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: aload 0
getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.closed:Z
ifne 5
2: aload 0
aload 1
invokevirtual jdk.internal.module.ModuleReferences$SafeCloseModuleReader.implFind:(Ljava/lang/String;)Ljava/util/Optional;
astore 3
3: aload 0
getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.readLock:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
4: aload 3
areturn
5: StackMap locals:
StackMap stack:
new java.io.IOException
dup
ldc "ModuleReader is closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
7: aload 0
getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.readLock:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
8: aload 2
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/module/ModuleReferences$SafeCloseModuleReader;
0 9 1 name Ljava/lang/String;
Exception table:
from to target type
1 3 6 any
5 6 6 any
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/String;)Ljava/util/Optional<Ljava/net/URI;>;
MethodParameters:
Name Flags
name
public final java.util.Optional<java.io.InputStream> open(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Optional;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.readLock:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: aload 0
getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.closed:Z
ifne 5
2: aload 0
aload 1
invokevirtual jdk.internal.module.ModuleReferences$SafeCloseModuleReader.implOpen:(Ljava/lang/String;)Ljava/util/Optional;
astore 3
3: aload 0
getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.readLock:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
4: aload 3
areturn
5: StackMap locals:
StackMap stack:
new java.io.IOException
dup
ldc "ModuleReader is closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
7: aload 0
getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.readLock:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
8: aload 2
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/module/ModuleReferences$SafeCloseModuleReader;
0 9 1 name Ljava/lang/String;
Exception table:
from to target type
1 3 6 any
5 6 6 any
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/String;)Ljava/util/Optional<Ljava/io/InputStream;>;
MethodParameters:
Name Flags
name
public final java.util.stream.Stream<java.lang.String> list();
descriptor: ()Ljava/util/stream/Stream;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.readLock:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: aload 0
getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.closed:Z
ifne 5
2: aload 0
invokevirtual jdk.internal.module.ModuleReferences$SafeCloseModuleReader.implList:()Ljava/util/stream/Stream;
astore 2
3: aload 0
getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.readLock:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
4: aload 2
areturn
5: StackMap locals:
StackMap stack:
new java.io.IOException
dup
ldc "ModuleReader is closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
7: aload 0
getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.readLock:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
8: aload 1
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/module/ModuleReferences$SafeCloseModuleReader;
Exception table:
from to target type
1 3 6 any
5 6 6 any
Exceptions:
throws java.io.IOException
Signature: ()Ljava/util/stream/Stream<Ljava/lang/String;>;
public final void close();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.writeLock:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: aload 0
getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.closed:Z
ifne 8
2: aload 0
iconst_1
putfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.closed:Z
3: aload 0
invokevirtual jdk.internal.module.ModuleReferences$SafeCloseModuleReader.implClose:()V
4: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
5: astore 1
6: aload 0
getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.writeLock:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
7: aload 1
athrow
8: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.writeLock:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
9: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/internal/module/ModuleReferences$SafeCloseModuleReader;
Exception table:
from to target type
1 5 5 any
Exceptions:
throws java.io.IOException
}
SourceFile: "ModuleReferences.java"
NestHost: jdk.internal.module.ModuleReferences
InnerClasses:
abstract SafeCloseModuleReader = jdk.internal.module.ModuleReferences$SafeCloseModuleReader of jdk.internal.module.ModuleReferences