public class jdk.tools.jlink.internal.DirArchive implements jdk.tools.jlink.internal.Archive
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.tools.jlink.internal.DirArchive
super_class: java.lang.Object
{
private final java.nio.file.Path dirPath;
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.util.List<java.io.InputStream> open;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljava/io/InputStream;>;
private final int chop;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.function.Consumer<java.lang.String> log;
descriptor: Ljava/util/function/Consumer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/function/Consumer<Ljava/lang/String;>;
private static final java.util.function.Consumer<java.lang.String> noopConsumer;
descriptor: Ljava/util/function/Consumer;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/function/Consumer<Ljava/lang/String;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokedynamic accept()Ljava/util/function/Consumer;
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;)V
jdk/tools/jlink/internal/DirArchive.lambda$0(Ljava/lang/String;)V (6)
(Ljava/lang/String;)V
putstatic jdk.tools.jlink.internal.DirArchive.noopConsumer:Ljava/util/function/Consumer;
1: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.nio.file.Path, java.lang.String);
descriptor: (Ljava/nio/file/Path;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
getstatic jdk.tools.jlink.internal.DirArchive.noopConsumer:Ljava/util/function/Consumer;
invokespecial jdk.tools.jlink.internal.DirArchive.<init>:(Ljava/nio/file/Path;Ljava/lang/String;Ljava/util/function/Consumer;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/tools/jlink/internal/DirArchive;
0 2 1 dirPath Ljava/nio/file/Path;
0 2 2 moduleName Ljava/lang/String;
MethodParameters:
Name Flags
dirPath
moduleName
public void <init>(java.nio.file.Path, java.lang.String, java.util.function.Consumer<java.lang.String>);
descriptor: (Ljava/nio/file/Path;Ljava/lang/String;Ljava/util/function/Consumer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, 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 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield jdk.tools.jlink.internal.DirArchive.open:Ljava/util/List;
2: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
3: aload 1
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.isDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifne 5
4: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " is not a directory"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: jdk.tools.jlink.internal.DirArchive java.nio.file.Path java.lang.String java.util.function.Consumer
StackMap stack:
aload 0
aload 1
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
invokevirtual java.lang.String.length:()I
iconst_1
iadd
putfield jdk.tools.jlink.internal.DirArchive.chop:I
6: aload 0
aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
putfield jdk.tools.jlink.internal.DirArchive.moduleName:Ljava/lang/String;
7: aload 0
aload 1
putfield jdk.tools.jlink.internal.DirArchive.dirPath:Ljava/nio/file/Path;
8: aload 0
aload 3
putfield jdk.tools.jlink.internal.DirArchive.log:Ljava/util/function/Consumer;
9: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/tools/jlink/internal/DirArchive;
0 10 1 dirPath Ljava/nio/file/Path;
0 10 2 moduleName Ljava/lang/String;
0 10 3 log Ljava/util/function/Consumer<Ljava/lang/String;>;
Signature: (Ljava/nio/file/Path;Ljava/lang/String;Ljava/util/function/Consumer<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
dirPath
moduleName
log
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.DirArchive.moduleName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/DirArchive;
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.DirArchive.dirPath:Ljava/nio/file/Path;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/DirArchive;
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.DirArchive.dirPath:Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.FileVisitOption
invokestatic java.nio.file.Files.walk:(Ljava/nio/file/Path;[Ljava/nio/file/FileVisitOption;)Ljava/util/stream/Stream;
aload 0
invokedynamic apply(Ljdk/tools/jlink/internal/DirArchive;)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/DirArchive.toEntry(Ljava/nio/file/Path;)Ljdk/tools/jlink/internal/Archive$Entry; (7)
(Ljava/nio/file/Path;)Ljdk/tools/jlink/internal/Archive$Entry;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
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/DirArchive.lambda$2(Ljdk/tools/jlink/internal/Archive$Entry;)Z (6)
(Ljdk/tools/jlink/internal/Archive$Entry;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
1: areturn
2: StackMap locals:
StackMap stack: java.io.IOException
astore 1
start local 1 3: new java.lang.RuntimeException
dup
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/tools/jlink/internal/DirArchive;
3 4 1 ex Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
Signature: ()Ljava/util/stream/Stream<Ljdk/tools/jlink/internal/Archive$Entry;>;
private jdk.tools.jlink.internal.Archive$Entry toEntry(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljdk/tools/jlink/internal/Archive$Entry;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.isDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 1
invokestatic jdk.tools.jlink.internal.DirArchive.getPathName:(Ljava/nio/file/Path;)Ljava/lang/String;
aload 0
getfield jdk.tools.jlink.internal.DirArchive.chop:I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 2
start local 2 3: aload 0
getfield jdk.tools.jlink.internal.DirArchive.log:Ljava/util/function/Consumer;
new java.lang.StringBuilder
dup
aload 0
getfield jdk.tools.jlink.internal.DirArchive.moduleName:Ljava/lang/String;
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;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
4: new jdk.tools.jlink.internal.DirArchive$FileEntry
dup
aload 0
aload 1
aload 2
invokespecial jdk.tools.jlink.internal.DirArchive$FileEntry.<init>:(Ljdk/tools/jlink/internal/DirArchive;Ljava/nio/file/Path;Ljava/lang/String;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/tools/jlink/internal/DirArchive;
0 5 1 p Ljava/nio/file/Path;
3 5 2 name Ljava/lang/String;
MethodParameters:
Name Flags
p
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
getfield jdk.tools.jlink.internal.DirArchive.open:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 10
StackMap locals: jdk.tools.jlink.internal.DirArchive java.io.IOException top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.io.InputStream
astore 2
start local 2 3: aload 2
invokevirtual java.io.InputStream.close:()V
4: goto 10
StackMap locals: jdk.tools.jlink.internal.DirArchive java.io.IOException java.io.InputStream java.util.Iterator
StackMap stack: java.io.IOException
5: astore 4
start local 4 6: aload 1
ifnonnull 9
7: aload 4
astore 1
8: goto 10
9: StackMap locals: java.io.IOException
StackMap stack:
aload 1
aload 4
invokevirtual java.io.IOException.addSuppressed:(Ljava/lang/Throwable;)V
end local 4 end local 2 10: StackMap locals: jdk.tools.jlink.internal.DirArchive java.io.IOException top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
11: aload 1
ifnull 13
12: aload 1
athrow
13: StackMap locals: jdk.tools.jlink.internal.DirArchive java.io.IOException
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljdk/tools/jlink/internal/DirArchive;
1 14 1 e Ljava/io/IOException;
3 10 2 stream Ljava/io/InputStream;
6 10 4 ex Ljava/io/IOException;
Exception table:
from to target type
3 4 5 Class java.io.IOException
Exceptions:
throws java.io.IOException
public void open();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/DirArchive;
Exceptions:
throws java.io.IOException
private static java.lang.String getPathName(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
getstatic java.io.File.separatorChar:C
bipush 47
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 path Ljava/nio/file/Path;
MethodParameters:
Name Flags
path
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield jdk.tools.jlink.internal.DirArchive.dirPath:Ljava/nio/file/Path;
aastore
dup
iconst_1
aload 0
getfield jdk.tools.jlink.internal.DirArchive.moduleName:Ljava/lang/String;
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/DirArchive;
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.DirArchive
ifeq 6
1: aload 1
checkcast jdk.tools.jlink.internal.DirArchive
astore 2
start local 2 2: aload 0
getfield jdk.tools.jlink.internal.DirArchive.dirPath:Ljava/nio/file/Path;
aload 2
getfield jdk.tools.jlink.internal.DirArchive.dirPath:Ljava/nio/file/Path;
invokestatic java.util.Objects.equals:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 5
3: aload 0
getfield jdk.tools.jlink.internal.DirArchive.moduleName:Ljava/lang/String;
aload 2
getfield jdk.tools.jlink.internal.DirArchive.moduleName:Ljava/lang/String;
invokestatic java.util.Objects.equals:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 5
4: iconst_1
ireturn
StackMap locals: jdk.tools.jlink.internal.DirArchive
StackMap stack:
5: iconst_0
ireturn
end local 2 6: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/tools/jlink/internal/DirArchive;
0 7 1 obj Ljava/lang/Object;
2 6 2 other Ljdk/tools/jlink/internal/DirArchive;
MethodParameters:
Name Flags
obj
private static void lambda$0(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 t Ljava/lang/String;
private static boolean lambda$2(jdk.tools.jlink.internal.Archive$Entry);
descriptor: (Ljdk/tools/jlink/internal/Archive$Entry;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
ifnull 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 n Ljdk/tools/jlink/internal/Archive$Entry;
}
SourceFile: "DirArchive.java"
NestMembers:
jdk.tools.jlink.internal.DirArchive$FileEntry
InnerClasses:
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
private FileEntry = jdk.tools.jlink.internal.DirArchive$FileEntry of jdk.tools.jlink.internal.DirArchive