class jdk.tools.jlink.internal.JlinkTask$ImageHelper implements jdk.tools.jlink.internal.ImagePluginStack$ImageProvider
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.tools.jlink.internal.JlinkTask$ImageHelper
super_class: java.lang.Object
{
final java.nio.ByteOrder order;
descriptor: Ljava/nio/ByteOrder;
flags: (0x0010) ACC_FINAL
final java.nio.file.Path packagedModulesPath;
descriptor: Ljava/nio/file/Path;
flags: (0x0010) ACC_FINAL
final boolean ignoreSigning;
descriptor: Z
flags: (0x0010) ACC_FINAL
final java.util.Set<jdk.tools.jlink.internal.Archive> archives;
descriptor: Ljava/util/Set;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/Set<Ljdk/tools/jlink/internal/Archive;>;
void <init>(java.lang.module.Configuration, java.util.Map<java.lang.String, java.nio.file.Path>, java.nio.ByteOrder, java.nio.file.Path, );
descriptor: (Ljava/lang/module/Configuration;Ljava/util/Map;Ljava/nio/ByteOrder;Ljava/nio/file/Path;Z)V
flags: (0x0000)
Code:
stack=3, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 3
putfield jdk.tools.jlink.internal.JlinkTask$ImageHelper.order:Ljava/nio/ByteOrder;
2: aload 0
aload 4
putfield jdk.tools.jlink.internal.JlinkTask$ImageHelper.packagedModulesPath:Ljava/nio/file/Path;
3: aload 0
iload 5
putfield jdk.tools.jlink.internal.JlinkTask$ImageHelper.ignoreSigning:Z
4: aload 0
aload 2
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
5: aload 0
invokedynamic apply(Ljdk/tools/jlink/internal/JlinkTask$ImageHelper;)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/JlinkTask$ImageHelper.lambda$0(Ljava/util/Map$Entry;)Ljdk/tools/jlink/internal/Archive; (7)
(Ljava/util/Map$Entry;)Ljdk/tools/jlink/internal/Archive;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
6: invokestatic java.util.stream.Collectors.toSet:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.Set
7: putfield jdk.tools.jlink.internal.JlinkTask$ImageHelper.archives:Ljava/util/Set;
8: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/tools/jlink/internal/JlinkTask$ImageHelper;
0 9 1 cf Ljava/lang/module/Configuration;
0 9 2 modsPaths Ljava/util/Map<Ljava/lang/String;Ljava/nio/file/Path;>;
0 9 3 order Ljava/nio/ByteOrder;
0 9 4 packagedModulesPath Ljava/nio/file/Path;
0 9 5 ignoreSigning Z
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/module/Configuration;Ljava/util/Map<Ljava/lang/String;Ljava/nio/file/Path;>;Ljava/nio/ByteOrder;Ljava/nio/file/Path;Z)V
MethodParameters:
Name Flags
cf
modsPaths
order
packagedModulesPath
ignoreSigning
private jdk.tools.jlink.internal.Archive newArchive(java.lang.String, java.nio.file.Path);
descriptor: (Ljava/lang/String;Ljava/nio/file/Path;)Ljdk/tools/jlink/internal/Archive;
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
ldc ".jmod"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 2
1: new jdk.tools.jlink.internal.JmodArchive
dup
aload 1
aload 2
invokespecial jdk.tools.jlink.internal.JmodArchive.<init>:(Ljava/lang/String;Ljava/nio/file/Path;)V
areturn
2: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
ldc ".jar"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 11
3: new jdk.tools.jlink.internal.ModularJarArchive
dup
aload 1
aload 2
invokespecial jdk.tools.jlink.internal.ModularJarArchive.<init>:(Ljava/lang/String;Ljava/nio/file/Path;)V
astore 3
start local 3 4: aload 3
invokevirtual jdk.tools.jlink.internal.ModularJarArchive.entries:()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/JlinkTask$ImageHelper.lambda$1(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;
astore 4
start local 4 5: aload 4
invokeinterface java.util.stream.Stream.count:()J
lconst_0
lcmp
ifeq 10
6: aload 0
getfield jdk.tools.jlink.internal.JlinkTask$ImageHelper.ignoreSigning:Z
ifeq 9
7: getstatic java.lang.System.err:Ljava/io/PrintStream;
getstatic jdk.tools.jlink.internal.JlinkTask.taskHelper:Ljdk/tools/jlink/internal/TaskHelper;
ldc "warn.signing"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokevirtual jdk.tools.jlink.internal.TaskHelper.getMessage:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
8: goto 10
9: StackMap locals: jdk.tools.jlink.internal.ModularJarArchive java.util.stream.Stream
StackMap stack:
new java.lang.IllegalArgumentException
dup
getstatic jdk.tools.jlink.internal.JlinkTask.taskHelper:Ljdk/tools/jlink/internal/TaskHelper;
ldc "err.signing"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokevirtual jdk.tools.jlink.internal.TaskHelper.getMessage:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
aload 3
areturn
end local 4 end local 3 11: StackMap locals:
StackMap stack:
aload 2
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.isDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 13
12: new jdk.tools.jlink.internal.DirArchive
dup
aload 2
invokespecial jdk.tools.jlink.internal.DirArchive.<init>:(Ljava/nio/file/Path;)V
areturn
13: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
14: getstatic jdk.tools.jlink.internal.JlinkTask.taskHelper:Ljdk/tools/jlink/internal/TaskHelper;
ldc "err.not.modular.format"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 2
aastore
invokevirtual jdk.tools.jlink.internal.TaskHelper.getMessage:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
15: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljdk/tools/jlink/internal/JlinkTask$ImageHelper;
0 16 1 module Ljava/lang/String;
0 16 2 path Ljava/nio/file/Path;
4 11 3 modularJarArchive Ljdk/tools/jlink/internal/ModularJarArchive;
5 11 4 signatures Ljava/util/stream/Stream<Ljdk/tools/jlink/internal/Archive$Entry;>;
MethodParameters:
Name Flags
module
path
public jdk.tools.jlink.internal.ExecutableImage retrieve(jdk.tools.jlink.internal.ImagePluginStack);
descriptor: (Ljdk/tools/jlink/internal/ImagePluginStack;)Ljdk/tools/jlink/internal/ExecutableImage;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.tools.jlink.internal.JlinkTask$ImageHelper.archives:Ljava/util/Set;
aload 0
getfield jdk.tools.jlink.internal.JlinkTask$ImageHelper.order:Ljava/nio/ByteOrder;
aload 1
invokestatic jdk.tools.jlink.internal.ImageFileCreator.create:(Ljava/util/Set;Ljava/nio/ByteOrder;Ljdk/tools/jlink/internal/ImagePluginStack;)Ljdk/tools/jlink/internal/ExecutableImage;
astore 2
start local 2 1: aload 0
getfield jdk.tools.jlink.internal.JlinkTask$ImageHelper.packagedModulesPath:Ljava/nio/file/Path;
ifnull 9
2: aload 0
getfield jdk.tools.jlink.internal.JlinkTask$ImageHelper.packagedModulesPath:Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createDirectories:(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
pop
3: aload 0
getfield jdk.tools.jlink.internal.JlinkTask$ImageHelper.archives:Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 8
StackMap locals: jdk.tools.jlink.internal.JlinkTask$ImageHelper jdk.tools.jlink.internal.ImagePluginStack jdk.tools.jlink.internal.ExecutableImage top java.util.Iterator
StackMap stack:
4: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.tools.jlink.internal.Archive
astore 3
start local 3 5: aload 3
invokeinterface jdk.tools.jlink.internal.Archive.getPath:()Ljava/nio/file/Path;
astore 5
start local 5 6: aload 0
getfield jdk.tools.jlink.internal.JlinkTask$ImageHelper.packagedModulesPath:Ljava/nio/file/Path;
aload 5
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.resolve:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
astore 6
start local 6 7: aload 5
aload 6
iconst_0
anewarray java.nio.file.CopyOption
invokestatic java.nio.file.Files.copy:(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)Ljava/nio/file/Path;
pop
end local 6 end local 5 end local 3 8: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
9: StackMap locals: jdk.tools.jlink.internal.JlinkTask$ImageHelper jdk.tools.jlink.internal.ImagePluginStack jdk.tools.jlink.internal.ExecutableImage
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/tools/jlink/internal/JlinkTask$ImageHelper;
0 10 1 stack Ljdk/tools/jlink/internal/ImagePluginStack;
1 10 2 image Ljdk/tools/jlink/internal/ExecutableImage;
5 8 3 a Ljdk/tools/jlink/internal/Archive;
6 8 5 file Ljava/nio/file/Path;
7 8 6 dest Ljava/nio/file/Path;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
stack
private jdk.tools.jlink.internal.Archive lambda$0(java.util.Map$Entry);
descriptor: (Ljava/util/Map$Entry;)Ljdk/tools/jlink/internal/Archive;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
aload 1
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.nio.file.Path
invokevirtual jdk.tools.jlink.internal.JlinkTask$ImageHelper.newArchive:(Ljava/lang/String;Ljava/nio/file/Path;)Ljdk/tools/jlink/internal/Archive;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/JlinkTask$ImageHelper;
0 1 1 e Ljava/util/Map$Entry<Ljava/lang/String;Ljava/nio/file/Path;>;
private static boolean lambda$1(jdk.tools.jlink.internal.Archive$Entry);
descriptor: (Ljdk/tools/jlink/internal/Archive$Entry;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual jdk.tools.jlink.internal.Archive$Entry.name:()Ljava/lang/String;
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toUpperCase:(Ljava/util/Locale;)Ljava/lang/String;
astore 1
start local 1 1: aload 1
ldc "META-INF/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 8
aload 1
bipush 47
bipush 9
invokevirtual java.lang.String.indexOf:(II)I
iconst_m1
if_icmpne 8
2: aload 1
ldc ".SF"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 7
3: aload 1
ldc ".DSA"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 7
4: aload 1
ldc ".RSA"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 7
5: aload 1
ldc ".EC"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 7
6: aload 1
ldc "META-INF/SIG-"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 8
7: StackMap locals: java.lang.String
StackMap stack:
iconst_1
ireturn
StackMap locals:
StackMap stack:
8: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 entry Ljdk/tools/jlink/internal/Archive$Entry;
1 9 1 name Ljava/lang/String;
}
SourceFile: "JlinkTask.java"
NestHost: jdk.tools.jlink.internal.JlinkTask
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Entry = java.util.Map$Entry of java.util.Map
public abstract Entry = jdk.tools.jlink.internal.Archive$Entry of jdk.tools.jlink.internal.Archive
public abstract ImageProvider = jdk.tools.jlink.internal.ImagePluginStack$ImageProvider of jdk.tools.jlink.internal.ImagePluginStack
private ImageHelper = jdk.tools.jlink.internal.JlinkTask$ImageHelper of jdk.tools.jlink.internal.JlinkTask