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 // jdk.internal.module.ModuleReferences$SafeCloseModuleReader this
         0: .line 133
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 128
            aload 0 /* this */
            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: .line 129
            aload 0 /* this */
            aload 0 /* this */
            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: .line 130
            aload 0 /* this */
            aload 0 /* this */
            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: .line 133
            return
        end local 0 // jdk.internal.module.ModuleReferences$SafeCloseModuleReader this
      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 // jdk.internal.module.ModuleReferences$SafeCloseModuleReader this
        start local 1 // java.lang.String name
         0: .line 163
            aload 0 /* this */
            getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.readLock:Ljava/util/concurrent/locks/Lock;
            invokeinterface java.util.concurrent.locks.Lock.lock:()V
         1: .line 165
            aload 0 /* this */
            getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.closed:Z
            ifne 5
         2: .line 166
            aload 0 /* this */
            aload 1 /* name */
            invokevirtual jdk.internal.module.ModuleReferences$SafeCloseModuleReader.implFind:(Ljava/lang/String;)Ljava/util/Optional;
            astore 3
         3: .line 171
            aload 0 /* this */
            getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.readLock:Ljava/util/concurrent/locks/Lock;
            invokeinterface java.util.concurrent.locks.Lock.unlock:()V
         4: .line 166
            aload 3
            areturn
         5: .line 168
      StackMap locals:
      StackMap stack:
            new java.io.IOException
            dup
            ldc "ModuleReader is closed"
            invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
            athrow
         6: .line 170
      StackMap locals:
      StackMap stack: java.lang.Throwable
            astore 2
         7: .line 171
            aload 0 /* this */
            getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.readLock:Ljava/util/concurrent/locks/Lock;
            invokeinterface java.util.concurrent.locks.Lock.unlock:()V
         8: .line 172
            aload 2
            athrow
        end local 1 // java.lang.String name
        end local 0 // jdk.internal.module.ModuleReferences$SafeCloseModuleReader this
      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 // jdk.internal.module.ModuleReferences$SafeCloseModuleReader this
        start local 1 // java.lang.String name
         0: .line 178
            aload 0 /* this */
            getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.readLock:Ljava/util/concurrent/locks/Lock;
            invokeinterface java.util.concurrent.locks.Lock.lock:()V
         1: .line 180
            aload 0 /* this */
            getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.closed:Z
            ifne 5
         2: .line 181
            aload 0 /* this */
            aload 1 /* name */
            invokevirtual jdk.internal.module.ModuleReferences$SafeCloseModuleReader.implOpen:(Ljava/lang/String;)Ljava/util/Optional;
            astore 3
         3: .line 186
            aload 0 /* this */
            getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.readLock:Ljava/util/concurrent/locks/Lock;
            invokeinterface java.util.concurrent.locks.Lock.unlock:()V
         4: .line 181
            aload 3
            areturn
         5: .line 183
      StackMap locals:
      StackMap stack:
            new java.io.IOException
            dup
            ldc "ModuleReader is closed"
            invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
            athrow
         6: .line 185
      StackMap locals:
      StackMap stack: java.lang.Throwable
            astore 2
         7: .line 186
            aload 0 /* this */
            getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.readLock:Ljava/util/concurrent/locks/Lock;
            invokeinterface java.util.concurrent.locks.Lock.unlock:()V
         8: .line 187
            aload 2
            athrow
        end local 1 // java.lang.String name
        end local 0 // jdk.internal.module.ModuleReferences$SafeCloseModuleReader this
      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 // jdk.internal.module.ModuleReferences$SafeCloseModuleReader this
         0: .line 192
            aload 0 /* this */
            getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.readLock:Ljava/util/concurrent/locks/Lock;
            invokeinterface java.util.concurrent.locks.Lock.lock:()V
         1: .line 194
            aload 0 /* this */
            getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.closed:Z
            ifne 5
         2: .line 195
            aload 0 /* this */
            invokevirtual jdk.internal.module.ModuleReferences$SafeCloseModuleReader.implList:()Ljava/util/stream/Stream;
            astore 2
         3: .line 200
            aload 0 /* this */
            getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.readLock:Ljava/util/concurrent/locks/Lock;
            invokeinterface java.util.concurrent.locks.Lock.unlock:()V
         4: .line 195
            aload 2
            areturn
         5: .line 197
      StackMap locals:
      StackMap stack:
            new java.io.IOException
            dup
            ldc "ModuleReader is closed"
            invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
            athrow
         6: .line 199
      StackMap locals:
      StackMap stack: java.lang.Throwable
            astore 1
         7: .line 200
            aload 0 /* this */
            getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.readLock:Ljava/util/concurrent/locks/Lock;
            invokeinterface java.util.concurrent.locks.Lock.unlock:()V
         8: .line 201
            aload 1
            athrow
        end local 0 // jdk.internal.module.ModuleReferences$SafeCloseModuleReader this
      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 // jdk.internal.module.ModuleReferences$SafeCloseModuleReader this
         0: .line 206
            aload 0 /* this */
            getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.writeLock:Ljava/util/concurrent/locks/Lock;
            invokeinterface java.util.concurrent.locks.Lock.lock:()V
         1: .line 208
            aload 0 /* this */
            getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.closed:Z
            ifne 8
         2: .line 209
            aload 0 /* this */
            iconst_1
            putfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.closed:Z
         3: .line 210
            aload 0 /* this */
            invokevirtual jdk.internal.module.ModuleReferences$SafeCloseModuleReader.implClose:()V
         4: .line 212
            goto 8
      StackMap locals:
      StackMap stack: java.lang.Throwable
         5: astore 1
         6: .line 213
            aload 0 /* this */
            getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.writeLock:Ljava/util/concurrent/locks/Lock;
            invokeinterface java.util.concurrent.locks.Lock.unlock:()V
         7: .line 214
            aload 1
            athrow
         8: .line 213
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.module.ModuleReferences$SafeCloseModuleReader.writeLock:Ljava/util/concurrent/locks/Lock;
            invokeinterface java.util.concurrent.locks.Lock.unlock:()V
         9: .line 215
            return
        end local 0 // jdk.internal.module.ModuleReferences$SafeCloseModuleReader this
      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