public abstract class jdk.tools.jlink.internal.JarArchive implements jdk.tools.jlink.internal.Archive
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: jdk.tools.jlink.internal.JarArchive
super_class: java.lang.Object
{
private final java.nio.file.Path file;
descriptor: Ljava/nio/file/Path;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String moduleName;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.util.jar.JarFile jarFile;
descriptor: Ljava/util/jar/JarFile;
flags: (0x0002) ACC_PRIVATE
protected void <init>(java.lang.String, java.nio.file.Path);
descriptor: (Ljava/lang/String;Ljava/nio/file/Path;)V
flags: (0x0004) ACC_PROTECTED
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 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
3: aload 0
aload 1
putfield jdk.tools.jlink.internal.JarArchive.moduleName:Ljava/lang/String;
4: aload 0
aload 2
putfield jdk.tools.jlink.internal.JarArchive.file:Ljava/nio/file/Path;
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/tools/jlink/internal/JarArchive;
0 6 1 mn Ljava/lang/String;
0 6 2 file Ljava/nio/file/Path;
MethodParameters:
Name Flags
mn
file
public java.lang.String moduleName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jlink.internal.JarArchive.moduleName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/JarArchive;
public java.nio.file.Path getPath();
descriptor: ()Ljava/nio/file/Path;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jlink.internal.JarArchive.file:Ljava/nio/file/Path;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/JarArchive;
public java.util.stream.Stream<jdk.tools.jlink.internal.Archive$Entry> entries();
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.tools.jlink.internal.JarArchive.jarFile:Ljava/util/jar/JarFile;
ifnonnull 5
1: aload 0
invokevirtual jdk.tools.jlink.internal.JarArchive.open:()V
2: goto 5
StackMap locals:
StackMap stack: java.io.IOException
3: astore 1
start local 1 4: new java.io.UncheckedIOException
dup
aload 1
invokespecial java.io.UncheckedIOException.<init>:(Ljava/io/IOException;)V
athrow
end local 1 5: StackMap locals:
StackMap stack:
aload 0
getfield jdk.tools.jlink.internal.JarArchive.jarFile:Ljava/util/jar/JarFile;
invokestatic jdk.internal.util.jar.VersionedStream.stream:(Ljava/util/jar/JarFile;)Ljava/util/stream/Stream;
6: invokedynamic test()Ljava/util/function/Predicate;
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;)Z
jdk/tools/jlink/internal/JarArchive.lambda$0(Ljava/util/jar/JarEntry;)Z (6)
(Ljava/util/jar/JarEntry;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
7: aload 0
invokedynamic apply(Ljdk/tools/jlink/internal/JarArchive;)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/tools/jlink/internal/JarArchive.toEntry(Ljava/util/zip/ZipEntry;)Ljdk/tools/jlink/internal/Archive$Entry; (5)
(Ljava/util/jar/JarEntry;)Ljdk/tools/jlink/internal/Archive$Entry;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
8: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/tools/jlink/internal/JarArchive;
4 5 1 ioe Ljava/io/IOException;
Exception table:
from to target type
0 2 3 Class java.io.IOException
Signature: ()Ljava/util/stream/Stream<Ljdk/tools/jlink/internal/Archive$Entry;>;
abstract jdk.tools.jlink.internal.Archive$Entry$EntryType toEntryType(java.lang.String);
descriptor: (Ljava/lang/String;)Ljdk/tools/jlink/internal/Archive$Entry$EntryType;
flags: (0x0400) ACC_ABSTRACT
MethodParameters:
Name Flags
entryName
abstract java.lang.String getFileName(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0400) ACC_ABSTRACT
MethodParameters:
Name Flags
entryName
abstract jdk.tools.jlink.internal.Archive$Entry toEntry(java.util.zip.ZipEntry);
descriptor: (Ljava/util/zip/ZipEntry;)Ljdk/tools/jlink/internal/Archive$Entry;
flags: (0x0400) ACC_ABSTRACT
MethodParameters:
Name Flags
ze
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jlink.internal.JarArchive.jarFile:Ljava/util/jar/JarFile;
ifnull 2
1: aload 0
getfield jdk.tools.jlink.internal.JarArchive.jarFile:Ljava/util/jar/JarFile;
invokevirtual java.util.jar.JarFile.close:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/tools/jlink/internal/JarArchive;
Exceptions:
throws java.io.IOException
public void open();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jlink.internal.JarArchive.jarFile:Ljava/util/jar/JarFile;
ifnull 2
1: aload 0
getfield jdk.tools.jlink.internal.JarArchive.jarFile:Ljava/util/jar/JarFile;
invokevirtual java.util.jar.JarFile.close:()V
2: StackMap locals:
StackMap stack:
aload 0
new java.util.jar.JarFile
dup
aload 0
getfield jdk.tools.jlink.internal.JarArchive.file:Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
iconst_1
iconst_1
invokestatic java.util.jar.JarFile.runtimeVersion:()Ljava/lang/Runtime$Version;
invokespecial java.util.jar.JarFile.<init>:(Ljava/io/File;ZILjava/lang/Runtime$Version;)V
putfield jdk.tools.jlink.internal.JarArchive.jarFile:Ljava/util/jar/JarFile;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/tools/jlink/internal/JarArchive;
Exceptions:
throws java.io.IOException
protected java.util.jar.JarFile getJarFile();
descriptor: ()Ljava/util/jar/JarFile;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jlink.internal.JarArchive.jarFile:Ljava/util/jar/JarFile;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/JarArchive;
private static boolean lambda$0(java.util.jar.JarEntry);
descriptor: (Ljava/util/jar/JarEntry;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.util.jar.JarEntry.isDirectory:()Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 je Ljava/util/jar/JarEntry;
}
SourceFile: "JarArchive.java"
NestMembers:
jdk.tools.jlink.internal.JarArchive$JarEntry
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
public abstract Entry = jdk.tools.jlink.internal.Archive$Entry of jdk.tools.jlink.internal.Archive
public final EntryType = jdk.tools.jlink.internal.Archive$Entry$EntryType of jdk.tools.jlink.internal.Archive$Entry
public JarEntry = jdk.tools.jlink.internal.JarArchive$JarEntry of jdk.tools.jlink.internal.JarArchive