class jdk.internal.module.ModuleReferences$JarModuleReader extends jdk.internal.module.ModuleReferences$SafeCloseModuleReader
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.internal.module.ModuleReferences$JarModuleReader
super_class: jdk.internal.module.ModuleReferences$SafeCloseModuleReader
{
private final java.util.jar.JarFile jf;
descriptor: Ljava/util/jar/JarFile;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.net.URI uri;
descriptor: Ljava/net/URI;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static java.util.jar.JarFile newJarFile(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljava/util/jar/JarFile;
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: new java.util.jar.JarFile
dup
new java.io.File
dup
aload 0
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
1: iconst_1
2: iconst_1
3: invokestatic java.util.jar.JarFile.runtimeVersion:()Ljava/lang/Runtime$Version;
4: invokespecial java.util.jar.JarFile.<init>:(Ljava/io/File;ZILjava/lang/Runtime$Version;)V
5: areturn
6: StackMap locals:
StackMap stack: java.io.IOException
astore 1
start local 1 7: new java.io.UncheckedIOException
dup
aload 1
invokespecial java.io.UncheckedIOException.<init>:(Ljava/io/IOException;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 path Ljava/nio/file/Path;
7 8 1 ioe Ljava/io/IOException;
Exception table:
from to target type
0 5 6 Class java.io.IOException
MethodParameters:
Name Flags
path
void <init>(java.nio.file.Path, java.net.URI);
descriptor: (Ljava/nio/file/Path;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 jdk.internal.module.ModuleReferences$SafeCloseModuleReader.<init>:()V
1: aload 0
aload 1
invokestatic jdk.internal.module.ModuleReferences$JarModuleReader.newJarFile:(Ljava/nio/file/Path;)Ljava/util/jar/JarFile;
putfield jdk.internal.module.ModuleReferences$JarModuleReader.jf:Ljava/util/jar/JarFile;
2: aload 0
aload 2
putfield jdk.internal.module.ModuleReferences$JarModuleReader.uri:Ljava/net/URI;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/module/ModuleReferences$JarModuleReader;
0 4 1 path Ljava/nio/file/Path;
0 4 2 uri Ljava/net/URI;
MethodParameters:
Name Flags
path
uri
private java.util.jar.JarEntry getEntry(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/jar/JarEntry;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.module.ModuleReferences$JarModuleReader.jf:Ljava/util/jar/JarFile;
aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
invokevirtual java.util.jar.JarFile.getJarEntry:(Ljava/lang/String;)Ljava/util/jar/JarEntry;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/module/ModuleReferences$JarModuleReader;
0 1 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
java.util.Optional<java.net.URI> implFind(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Optional;
flags: (0x0000)
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual jdk.internal.module.ModuleReferences$JarModuleReader.getEntry:(Ljava/lang/String;)Ljava/util/jar/JarEntry;
astore 2
start local 2 1: aload 2
ifnull 9
2: aload 0
getfield jdk.internal.module.ModuleReferences$JarModuleReader.jf:Ljava/util/jar/JarFile;
invokevirtual java.util.jar.JarFile.isMultiRelease:()Z
ifeq 4
3: aload 2
invokevirtual java.util.jar.JarEntry.getRealName:()Ljava/lang/String;
astore 1
4: StackMap locals: java.util.jar.JarEntry
StackMap stack:
aload 2
invokevirtual java.util.jar.JarEntry.isDirectory:()Z
ifeq 6
aload 1
ldc "/"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 6
5: new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
6: StackMap locals:
StackMap stack:
aload 1
iconst_0
invokestatic sun.net.www.ParseUtil.encodePath:(Ljava/lang/String;Z)Ljava/lang/String;
astore 3
start local 3 7: new java.lang.StringBuilder
dup
ldc "jar:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.internal.module.ModuleReferences$JarModuleReader.uri:Ljava/net/URI;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "!/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 4
start local 4 8: aload 4
invokestatic java.net.URI.create:(Ljava/lang/String;)Ljava/net/URI;
invokestatic java.util.Optional.of:(Ljava/lang/Object;)Ljava/util/Optional;
areturn
end local 4 end local 3 9: StackMap locals:
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 10 0 this Ljdk/internal/module/ModuleReferences$JarModuleReader;
0 10 1 name Ljava/lang/String;
1 10 2 je Ljava/util/jar/JarEntry;
7 9 3 encodedPath Ljava/lang/String;
8 9 4 uris Ljava/lang/String;
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/String;)Ljava/util/Optional<Ljava/net/URI;>;
MethodParameters:
Name Flags
name
java.util.Optional<java.io.InputStream> implOpen(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Optional;
flags: (0x0000)
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual jdk.internal.module.ModuleReferences$JarModuleReader.getEntry:(Ljava/lang/String;)Ljava/util/jar/JarEntry;
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 0
getfield jdk.internal.module.ModuleReferences$JarModuleReader.jf:Ljava/util/jar/JarFile;
aload 2
invokevirtual java.util.jar.JarFile.getInputStream:(Ljava/util/zip/ZipEntry;)Ljava/io/InputStream;
invokestatic java.util.Optional.of:(Ljava/lang/Object;)Ljava/util/Optional;
areturn
3: StackMap locals: java.util.jar.JarEntry
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/ModuleReferences$JarModuleReader;
0 4 1 name Ljava/lang/String;
1 4 2 je Ljava/util/jar/JarEntry;
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/String;)Ljava/util/Optional<Ljava/io/InputStream;>;
MethodParameters:
Name Flags
name
java.util.stream.Stream<java.lang.String> implList();
descriptor: ()Ljava/util/stream/Stream;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.module.ModuleReferences$JarModuleReader.jf:Ljava/util/jar/JarFile;
invokevirtual java.util.jar.JarFile.versionedStream:()Ljava/util/stream/Stream;
1: invokedynamic apply()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;
java/util/zip/ZipEntry.getName()Ljava/lang/String; (5)
(Ljava/util/jar/JarEntry;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
2: invokestatic java.util.stream.Collectors.toList:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.List
3: astore 1
start local 1 4: aload 1
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/module/ModuleReferences$JarModuleReader;
4 5 1 names Ljava/util/List<Ljava/lang/String;>;
Exceptions:
throws java.io.IOException
Signature: ()Ljava/util/stream/Stream<Ljava/lang/String;>;
void implClose();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.module.ModuleReferences$JarModuleReader.jf:Ljava/util/jar/JarFile;
invokevirtual java.util.jar.JarFile.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/module/ModuleReferences$JarModuleReader;
Exceptions:
throws java.io.IOException
}
SourceFile: "ModuleReferences.java"
NestHost: jdk.internal.module.ModuleReferences
InnerClasses:
public final Version = java.lang.Runtime$Version of java.lang.Runtime
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
JarModuleReader = jdk.internal.module.ModuleReferences$JarModuleReader of jdk.internal.module.ModuleReferences
abstract SafeCloseModuleReader = jdk.internal.module.ModuleReferences$SafeCloseModuleReader of jdk.internal.module.ModuleReferences