final class jdk.tools.jlink.internal.ResourcePoolConfiguration
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.tools.jlink.internal.ResourcePoolConfiguration
super_class: java.lang.Object
{
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/ResourcePoolConfiguration;
private static java.lang.module.ModuleDescriptor descriptorOf(jdk.tools.jlink.plugin.ResourcePoolModule);
descriptor: (Ljdk/tools/jlink/plugin/ResourcePoolModule;)Ljava/lang/module/ModuleDescriptor;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
invokeinterface jdk.tools.jlink.plugin.ResourcePoolModule.descriptor:()Ljava/lang/module/ModuleDescriptor;
astore 1
start local 1 1: aload 1
invokevirtual java.lang.module.ModuleDescriptor.name:()Ljava/lang/String;
invokestatic java.lang.module.ModuleDescriptor.newModule:(Ljava/lang/String;)Ljava/lang/module/ModuleDescriptor$Builder;
astore 2
start local 2 2: aload 1
invokevirtual java.lang.module.ModuleDescriptor.requires:()Ljava/util/Set;
invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
3: aload 2
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljava/lang/module/ModuleDescriptor$Builder;)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
java/lang/module/ModuleDescriptor$Builder.requires(Ljava/lang/module/ModuleDescriptor$Requires;)Ljava/lang/module/ModuleDescriptor$Builder; (5)
(Ljava/lang/module/ModuleDescriptor$Requires;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
4: aload 1
invokevirtual java.lang.module.ModuleDescriptor.exports:()Ljava/util/Set;
invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
5: aload 2
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljava/lang/module/ModuleDescriptor$Builder;)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
java/lang/module/ModuleDescriptor$Builder.exports(Ljava/lang/module/ModuleDescriptor$Exports;)Ljava/lang/module/ModuleDescriptor$Builder; (5)
(Ljava/lang/module/ModuleDescriptor$Exports;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
6: aload 1
invokevirtual java.lang.module.ModuleDescriptor.opens:()Ljava/util/Set;
invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
7: aload 2
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljava/lang/module/ModuleDescriptor$Builder;)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
java/lang/module/ModuleDescriptor$Builder.opens(Ljava/lang/module/ModuleDescriptor$Opens;)Ljava/lang/module/ModuleDescriptor$Builder; (5)
(Ljava/lang/module/ModuleDescriptor$Opens;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
8: aload 1
invokevirtual java.lang.module.ModuleDescriptor.uses:()Ljava/util/Set;
invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
9: aload 2
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljava/lang/module/ModuleDescriptor$Builder;)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
java/lang/module/ModuleDescriptor$Builder.uses(Ljava/lang/String;)Ljava/lang/module/ModuleDescriptor$Builder; (5)
(Ljava/lang/String;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
10: aload 1
invokevirtual java.lang.module.ModuleDescriptor.provides:()Ljava/util/Set;
invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
11: aload 2
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljava/lang/module/ModuleDescriptor$Builder;)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
java/lang/module/ModuleDescriptor$Builder.provides(Ljava/lang/module/ModuleDescriptor$Provides;)Ljava/lang/module/ModuleDescriptor$Builder; (5)
(Ljava/lang/module/ModuleDescriptor$Provides;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
12: aload 2
aload 1
invokevirtual java.lang.module.ModuleDescriptor.packages:()Ljava/util/Set;
invokevirtual java.lang.module.ModuleDescriptor$Builder.packages:(Ljava/util/Set;)Ljava/lang/module/ModuleDescriptor$Builder;
pop
13: aload 1
invokevirtual java.lang.module.ModuleDescriptor.version:()Ljava/util/Optional;
aload 2
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljava/lang/module/ModuleDescriptor$Builder;)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
java/lang/module/ModuleDescriptor$Builder.version(Ljava/lang/module/ModuleDescriptor$Version;)Ljava/lang/module/ModuleDescriptor$Builder; (5)
(Ljava/lang/module/ModuleDescriptor$Version;)V
invokevirtual java.util.Optional.ifPresent:(Ljava/util/function/Consumer;)V
14: aload 1
invokevirtual java.lang.module.ModuleDescriptor.mainClass:()Ljava/util/Optional;
aload 2
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljava/lang/module/ModuleDescriptor$Builder;)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
java/lang/module/ModuleDescriptor$Builder.mainClass(Ljava/lang/String;)Ljava/lang/module/ModuleDescriptor$Builder; (5)
(Ljava/lang/String;)V
invokevirtual java.util.Optional.ifPresent:(Ljava/util/function/Consumer;)V
15: aload 2
invokevirtual java.lang.module.ModuleDescriptor$Builder.build:()Ljava/lang/module/ModuleDescriptor;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 mod Ljdk/tools/jlink/plugin/ResourcePoolModule;
1 16 1 md Ljava/lang/module/ModuleDescriptor;
2 16 2 builder Ljava/lang/module/ModuleDescriptor$Builder;
MethodParameters:
Name Flags
mod
private static java.lang.module.ModuleReference moduleReference(java.lang.module.ModuleDescriptor);
descriptor: (Ljava/lang/module/ModuleDescriptor;)Ljava/lang/module/ModuleReference;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new jdk.tools.jlink.internal.ResourcePoolConfiguration$1
dup
aload 0
aconst_null
invokespecial jdk.tools.jlink.internal.ResourcePoolConfiguration$1.<init>:(Ljava/lang/module/ModuleDescriptor;Ljava/net/URI;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 desc Ljava/lang/module/ModuleDescriptor;
MethodParameters:
Name Flags
desc
private static java.util.Map<java.lang.String, java.lang.module.ModuleReference> allModRefs(jdk.tools.jlink.plugin.ResourcePool);
descriptor: (Ljdk/tools/jlink/plugin/ResourcePool;)Ljava/util/Map;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface jdk.tools.jlink.plugin.ResourcePool.moduleView:()Ljdk/tools/jlink/plugin/ResourcePoolModuleView;
invokeinterface jdk.tools.jlink.plugin.ResourcePoolModuleView.modules:()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;
jdk/tools/jlink/plugin/ResourcePoolModule.name()Ljava/lang/String; (9 itf)
(Ljdk/tools/jlink/plugin/ResourcePoolModule;)Ljava/lang/String;
2: 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;
jdk/tools/jlink/internal/ResourcePoolConfiguration.lambda$8(Ljdk/tools/jlink/plugin/ResourcePoolModule;)Ljava/lang/module/ModuleReference; (6)
(Ljdk/tools/jlink/plugin/ResourcePoolModule;)Ljava/lang/module/ModuleReference;
3: invokestatic java.util.stream.Collectors.toMap:(Ljava/util/function/Function;Ljava/util/function/Function;)Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.Map
4: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 pool Ljdk/tools/jlink/plugin/ResourcePool;
Signature: (Ljdk/tools/jlink/plugin/ResourcePool;)Ljava/util/Map<Ljava/lang/String;Ljava/lang/module/ModuleReference;>;
MethodParameters:
Name Flags
pool
private static void checkPackages(jdk.tools.jlink.plugin.ResourcePool);
descriptor: (Ljdk/tools/jlink/plugin/ResourcePool;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface jdk.tools.jlink.plugin.ResourcePool.moduleView:()Ljdk/tools/jlink/plugin/ResourcePoolModuleView;
invokeinterface jdk.tools.jlink.plugin.ResourcePoolModuleView.modules:()Ljava/util/stream/Stream;
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/ResourcePoolConfiguration.lambda$9(Ljdk/tools/jlink/plugin/ResourcePoolModule;)V (6)
(Ljdk/tools/jlink/plugin/ResourcePoolModule;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 pool Ljdk/tools/jlink/plugin/ResourcePool;
MethodParameters:
Name Flags
pool
static java.lang.module.Configuration validate(jdk.tools.jlink.plugin.ResourcePool);
descriptor: (Ljdk/tools/jlink/plugin/ResourcePool;)Ljava/lang/module/Configuration;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
invokestatic jdk.tools.jlink.internal.ResourcePoolConfiguration.checkPackages:(Ljdk/tools/jlink/plugin/ResourcePool;)V
1: aload 0
invokestatic jdk.tools.jlink.internal.ResourcePoolConfiguration.allModRefs:(Ljdk/tools/jlink/plugin/ResourcePool;)Ljava/util/Map;
astore 1
start local 1 2: new java.util.HashSet
dup
aload 1
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokespecial java.util.HashSet.<init>:(Ljava/util/Collection;)V
astore 2
start local 2 3: new jdk.tools.jlink.internal.ResourcePoolConfiguration$2
dup
aload 1
aload 2
invokespecial jdk.tools.jlink.internal.ResourcePoolConfiguration$2.<init>:(Ljava/util/Map;Ljava/util/Set;)V
astore 3
start local 3 4: invokestatic java.lang.module.Configuration.empty:()Ljava/lang/module/Configuration;
5: aload 3
iconst_0
anewarray java.nio.file.Path
invokestatic java.lang.module.ModuleFinder.of:([Ljava/nio/file/Path;)Ljava/lang/module/ModuleFinder;
aload 1
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
6: invokevirtual java.lang.module.Configuration.resolve:(Ljava/lang/module/ModuleFinder;Ljava/lang/module/ModuleFinder;Ljava/util/Collection;)Ljava/lang/module/Configuration;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 pool Ljdk/tools/jlink/plugin/ResourcePool;
2 7 1 nameToModRef Ljava/util/Map<Ljava/lang/String;Ljava/lang/module/ModuleReference;>;
3 7 2 allRefs Ljava/util/Set<Ljava/lang/module/ModuleReference;>;
4 7 3 finder Ljava/lang/module/ModuleFinder;
MethodParameters:
Name Flags
pool
private static java.lang.module.ModuleReference lambda$8(jdk.tools.jlink.plugin.ResourcePoolModule);
descriptor: (Ljdk/tools/jlink/plugin/ResourcePoolModule;)Ljava/lang/module/ModuleReference;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic jdk.tools.jlink.internal.ResourcePoolConfiguration.descriptorOf:(Ljdk/tools/jlink/plugin/ResourcePoolModule;)Ljava/lang/module/ModuleDescriptor;
invokestatic jdk.tools.jlink.internal.ResourcePoolConfiguration.moduleReference:(Ljava/lang/module/ModuleDescriptor;)Ljava/lang/module/ModuleReference;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 m Ljdk/tools/jlink/plugin/ResourcePoolModule;
private static void lambda$9(jdk.tools.jlink.plugin.ResourcePoolModule);
descriptor: (Ljdk/tools/jlink/plugin/ResourcePoolModule;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
invokeinterface jdk.tools.jlink.plugin.ResourcePoolModule.descriptor:()Ljava/lang/module/ModuleDescriptor;
astore 1
start local 1 1: aload 1
invokevirtual java.lang.module.ModuleDescriptor.packages:()Ljava/util/Set;
aload 0
invokeinterface jdk.tools.jlink.plugin.ResourcePoolModule.packages:()Ljava/util/Set;
invokeinterface java.util.Set.equals:(Ljava/lang/Object;)Z
ifne 7
2: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "Module "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokeinterface jdk.tools.jlink.plugin.ResourcePoolModule.name:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: ldc "'s descriptor indicates the set of packages is : "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: aload 1
invokevirtual java.lang.module.ModuleDescriptor.packages:()Ljava/util/Set;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ", but module contains packages: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: aload 0
invokeinterface jdk.tools.jlink.plugin.ResourcePoolModule.packages:()Ljava/util/Set;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 1 7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 m Ljdk/tools/jlink/plugin/ResourcePoolModule;
1 7 1 desc Ljava/lang/module/ModuleDescriptor;
}
SourceFile: "ResourcePoolConfiguration.java"
NestMembers:
jdk.tools.jlink.internal.ResourcePoolConfiguration$1 jdk.tools.jlink.internal.ResourcePoolConfiguration$2
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final Builder = java.lang.module.ModuleDescriptor$Builder of java.lang.module.ModuleDescriptor
public final Exports = java.lang.module.ModuleDescriptor$Exports of java.lang.module.ModuleDescriptor
public final Opens = java.lang.module.ModuleDescriptor$Opens of java.lang.module.ModuleDescriptor
public final Provides = java.lang.module.ModuleDescriptor$Provides of java.lang.module.ModuleDescriptor
public final Requires = java.lang.module.ModuleDescriptor$Requires of java.lang.module.ModuleDescriptor
jdk.tools.jlink.internal.ResourcePoolConfiguration$1
jdk.tools.jlink.internal.ResourcePoolConfiguration$2