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 final java.lang.Runtime$Version version;
descriptor: Ljava/lang/Runtime$Version;
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, java.lang.Runtime$Version);
descriptor: (Ljava/lang/String;Ljava/nio/file/Path;Ljava/lang/Runtime$Version;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 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: aload 0
aload 3
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Runtime$Version
putfield jdk.tools.jlink.internal.JarArchive.version:Ljava/lang/Runtime$Version;
6: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/tools/jlink/internal/JarArchive;
0 7 1 mn Ljava/lang/String;
0 7 2 file Ljava/nio/file/Path;
0 7 3 version Ljava/lang/Runtime$Version;
MethodParameters:
Name Flags
mn
file
version
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;
invokevirtual java.util.jar.JarFile.versionedStream:()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
aload 0
getfield jdk.tools.jlink.internal.JarArchive.version: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;
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield jdk.tools.jlink.internal.JarArchive.file:Ljava/nio/file/Path;
aastore
dup
iconst_1
aload 0
getfield jdk.tools.jlink.internal.JarArchive.moduleName:Ljava/lang/String;
aastore
dup
iconst_2
aload 0
getfield jdk.tools.jlink.internal.JarArchive.version:Ljava/lang/Runtime$Version;
aastore
invokestatic java.util.Objects.hash:([Ljava/lang/Object;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/JarArchive;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof jdk.tools.jlink.internal.JarArchive
ifeq 7
1: aload 1
checkcast jdk.tools.jlink.internal.JarArchive
astore 2
start local 2 2: aload 0
getfield jdk.tools.jlink.internal.JarArchive.file:Ljava/nio/file/Path;
aload 2
getfield jdk.tools.jlink.internal.JarArchive.file:Ljava/nio/file/Path;
invokestatic java.util.Objects.equals:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 6
3: aload 0
getfield jdk.tools.jlink.internal.JarArchive.moduleName:Ljava/lang/String;
aload 2
getfield jdk.tools.jlink.internal.JarArchive.moduleName:Ljava/lang/String;
invokestatic java.util.Objects.equals:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 6
4: aload 0
getfield jdk.tools.jlink.internal.JarArchive.version:Ljava/lang/Runtime$Version;
aload 2
getfield jdk.tools.jlink.internal.JarArchive.version:Ljava/lang/Runtime$Version;
invokestatic java.util.Objects.equals:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 6
5: iconst_1
ireturn
StackMap locals: jdk.tools.jlink.internal.JarArchive
StackMap stack:
6: iconst_0
ireturn
end local 2 7: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/tools/jlink/internal/JarArchive;
0 8 1 obj Ljava/lang/Object;
2 7 2 other Ljdk/tools/jlink/internal/JarArchive;
MethodParameters:
Name Flags
obj
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