class jdk.internal.module.SystemModuleFinders$SystemModuleReader implements java.lang.module.ModuleReader
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.internal.module.SystemModuleFinders$SystemModuleReader
super_class: java.lang.Object
{
private final java.lang.String module;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile boolean closed;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private static void checkPermissionToConnect(java.net.URI);
descriptor: (Ljava/net/URI;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnull 7
2: aload 0
invokevirtual java.net.URI.toURL:()Ljava/net/URL;
invokevirtual java.net.URL.openConnection:()Ljava/net/URLConnection;
astore 2
start local 2 3: aload 1
aload 2
invokevirtual java.net.URLConnection.getPermission:()Ljava/security/Permission;
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
end local 2 4: goto 7
StackMap locals: java.net.URI java.lang.SecurityManager
StackMap stack: java.io.IOException
5: astore 2
start local 2 6: new java.io.UncheckedIOException
dup
aload 2
invokespecial java.io.UncheckedIOException.<init>:(Ljava/io/IOException;)V
athrow
end local 2 7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 uri Ljava/net/URI;
1 8 1 sm Ljava/lang/SecurityManager;
3 4 2 uc Ljava/net/URLConnection;
6 7 2 ioe Ljava/io/IOException;
Exception table:
from to target type
2 4 5 Class java.io.IOException
MethodParameters:
Name Flags
uri
void <init>(java.lang.String, java.net.URI);
descriptor: (Ljava/lang/String;Ljava/net/URI;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 2
invokestatic jdk.internal.module.SystemModuleFinders$SystemModuleReader.checkPermissionToConnect:(Ljava/net/URI;)V
2: aload 0
aload 1
putfield jdk.internal.module.SystemModuleFinders$SystemModuleReader.module:Ljava/lang/String;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/module/SystemModuleFinders$SystemModuleReader;
0 4 1 module Ljava/lang/String;
0 4 2 uri Ljava/net/URI;
MethodParameters:
Name Flags
module
uri
private jdk.internal.jimage.ImageLocation findImageLocation(java.lang.String);
descriptor: (Ljava/lang/String;)Ljdk/internal/jimage/ImageLocation;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
getfield jdk.internal.module.SystemModuleFinders$SystemModuleReader.closed:Z
ifeq 3
2: new java.io.IOException
dup
ldc "ModuleReader is closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
invokestatic jdk.internal.module.SystemModuleFinders$SystemImage.reader:()Ljdk/internal/jimage/ImageReader;
astore 2
start local 2 4: aload 2
ifnull 6
5: aload 2
aload 0
getfield jdk.internal.module.SystemModuleFinders$SystemModuleReader.module:Ljava/lang/String;
aload 1
invokevirtual jdk.internal.jimage.ImageReader.findLocation:(Ljava/lang/String;Ljava/lang/String;)Ljdk/internal/jimage/ImageLocation;
areturn
6: StackMap locals: jdk.internal.jimage.ImageReader
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/module/SystemModuleFinders$SystemModuleReader;
0 7 1 name Ljava/lang/String;
4 7 2 imageReader Ljdk/internal/jimage/ImageReader;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
name
public java.util.Optional<java.net.URI> find(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual jdk.internal.module.SystemModuleFinders$SystemModuleReader.findImageLocation:(Ljava/lang/String;)Ljdk/internal/jimage/ImageLocation;
astore 2
start local 2 1: aload 2
ifnull 4
2: new java.lang.StringBuilder
dup
ldc "jrt:/"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.internal.module.SystemModuleFinders$SystemModuleReader.module:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.net.URI.create:(Ljava/lang/String;)Ljava/net/URI;
astore 3
start local 3 3: aload 3
invokestatic java.util.Optional.of:(Ljava/lang/Object;)Ljava/util/Optional;
areturn
end local 3 4: StackMap locals: jdk.internal.jimage.ImageLocation
StackMap stack:
invokestatic java.util.Optional.empty:()Ljava/util/Optional;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/module/SystemModuleFinders$SystemModuleReader;
0 5 1 name Ljava/lang/String;
1 5 2 location Ljdk/internal/jimage/ImageLocation;
3 4 3 u Ljava/net/URI;
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/String;)Ljava/util/Optional<Ljava/net/URI;>;
MethodParameters:
Name Flags
name
public java.util.Optional<java.io.InputStream> open(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual jdk.internal.module.SystemModuleFinders$SystemModuleReader.read:(Ljava/lang/String;)Ljava/util/Optional;
aload 0
invokedynamic apply(Ljdk/internal/module/SystemModuleFinders$SystemModuleReader;)Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
jdk/internal/module/SystemModuleFinders$SystemModuleReader.toInputStream(Ljava/nio/ByteBuffer;)Ljava/io/InputStream; (7)
(Ljava/nio/ByteBuffer;)Ljava/io/InputStream;
invokevirtual java.util.Optional.map:(Ljava/util/function/Function;)Ljava/util/Optional;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/module/SystemModuleFinders$SystemModuleReader;
0 1 1 name Ljava/lang/String;
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/String;)Ljava/util/Optional<Ljava/io/InputStream;>;
MethodParameters:
Name Flags
name
private java.io.InputStream toInputStream(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Ljava/io/InputStream;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
istore 2
start local 2 1: iload 2
newarray 8
astore 3
start local 3 2: aload 1
aload 3
invokevirtual java.nio.ByteBuffer.get:([B)Ljava/nio/ByteBuffer;
pop
3: new java.io.ByteArrayInputStream
dup
aload 3
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
astore 5
4: aload 0
aload 1
invokevirtual jdk.internal.module.SystemModuleFinders$SystemModuleReader.release:(Ljava/nio/ByteBuffer;)V
5: aload 5
areturn
end local 3 end local 2 6: StackMap locals:
StackMap stack: java.lang.Throwable
astore 4
7: aload 0
aload 1
invokevirtual jdk.internal.module.SystemModuleFinders$SystemModuleReader.release:(Ljava/nio/ByteBuffer;)V
8: aload 4
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/module/SystemModuleFinders$SystemModuleReader;
0 9 1 bb Ljava/nio/ByteBuffer;
1 6 2 rem I
2 6 3 bytes [B
Exception table:
from to target type
0 4 6 any
MethodParameters:
Name Flags
bb
public java.util.Optional<java.nio.ByteBuffer> read(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual jdk.internal.module.SystemModuleFinders$SystemModuleReader.findImageLocation:(Ljava/lang/String;)Ljdk/internal/jimage/ImageLocation;
astore 2
start local 2 1: aload 2
ifnull 3
2: invokestatic jdk.internal.module.SystemModuleFinders$SystemImage.reader:()Ljdk/internal/jimage/ImageReader;
aload 2
invokevirtual jdk.internal.jimage.ImageReader.getResourceBuffer:(Ljdk/internal/jimage/ImageLocation;)Ljava/nio/ByteBuffer;
invokestatic java.util.Optional.of:(Ljava/lang/Object;)Ljava/util/Optional;
areturn
3: StackMap locals: jdk.internal.jimage.ImageLocation
StackMap stack:
invokestatic java.util.Optional.empty:()Ljava/util/Optional;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/module/SystemModuleFinders$SystemModuleReader;
0 4 1 name Ljava/lang/String;
1 4 2 location Ljdk/internal/jimage/ImageLocation;
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/String;)Ljava/util/Optional<Ljava/nio/ByteBuffer;>;
MethodParameters:
Name Flags
name
public void release(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 1
invokestatic jdk.internal.jimage.ImageReader.releaseByteBuffer:(Ljava/nio/ByteBuffer;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/module/SystemModuleFinders$SystemModuleReader;
0 3 1 bb Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
bb
public java.util.stream.Stream<java.lang.String> list();
descriptor: ()Ljava/util/stream/Stream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.module.SystemModuleFinders$SystemModuleReader.closed:Z
ifeq 2
1: new java.io.IOException
dup
ldc "ModuleReader is closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new jdk.internal.module.SystemModuleFinders$ModuleContentSpliterator
dup
aload 0
getfield jdk.internal.module.SystemModuleFinders$SystemModuleReader.module:Ljava/lang/String;
invokespecial jdk.internal.module.SystemModuleFinders$ModuleContentSpliterator.<init>:(Ljava/lang/String;)V
astore 1
start local 1 3: aload 1
iconst_0
invokestatic java.util.stream.StreamSupport.stream:(Ljava/util/Spliterator;Z)Ljava/util/stream/Stream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/module/SystemModuleFinders$SystemModuleReader;
3 4 1 s Ljava/util/Spliterator<Ljava/lang/String;>;
Exceptions:
throws java.io.IOException
Signature: ()Ljava/util/stream/Stream<Ljava/lang/String;>;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield jdk.internal.module.SystemModuleFinders$SystemModuleReader.closed:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/module/SystemModuleFinders$SystemModuleReader;
}
SourceFile: "SystemModuleFinders.java"
NestHost: jdk.internal.module.SystemModuleFinders
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
private ModuleContentSpliterator = jdk.internal.module.SystemModuleFinders$ModuleContentSpliterator of jdk.internal.module.SystemModuleFinders
private SystemImage = jdk.internal.module.SystemModuleFinders$SystemImage of jdk.internal.module.SystemModuleFinders
private SystemModuleReader = jdk.internal.module.SystemModuleFinders$SystemModuleReader of jdk.internal.module.SystemModuleFinders