class jdk.internal.module.ModuleBootstrap$SafeModuleFinder implements java.lang.module.ModuleFinder
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.internal.module.ModuleBootstrap$SafeModuleFinder
super_class: java.lang.Object
{
private final java.util.Set<java.lang.module.ModuleReference> mrefs;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/module/ModuleReference;>;
private volatile java.util.Map<java.lang.String, java.lang.module.ModuleReference> nameToModule;
descriptor: Ljava/util/Map;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/module/ModuleReference;>;
void <init>(java.lang.module.ModuleFinder);
descriptor: (Ljava/lang/module/ModuleFinder;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
invokeinterface java.lang.module.ModuleFinder.findAll:()Ljava/util/Set;
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
putfield jdk.internal.module.ModuleBootstrap$SafeModuleFinder.mrefs:Ljava/util/Set;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/module/ModuleBootstrap$SafeModuleFinder;
0 3 1 finder Ljava/lang/module/ModuleFinder;
MethodParameters:
Name Flags
finder
public java.util.Optional<java.lang.module.ModuleReference> find(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
getfield jdk.internal.module.ModuleBootstrap$SafeModuleFinder.nameToModule:Ljava/util/Map;
astore 2
start local 2 2: aload 2
ifnonnull 8
3: aload 0
aload 0
getfield jdk.internal.module.ModuleBootstrap$SafeModuleFinder.mrefs:Ljava/util/Set;
invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
4: 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/internal/module/ModuleBootstrap$SafeModuleFinder.lambda$0(Ljava/lang/module/ModuleReference;)Ljava/lang/String; (6)
(Ljava/lang/module/ModuleReference;)Ljava/lang/String;
5: invokestatic java.util.function.Function.identity:()Ljava/util/function/Function;
6: 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
dup
astore 2
7: putfield jdk.internal.module.ModuleBootstrap$SafeModuleFinder.nameToModule:Ljava/util/Map;
8: StackMap locals: java.util.Map
StackMap stack:
aload 2
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.module.ModuleReference
invokestatic java.util.Optional.ofNullable:(Ljava/lang/Object;)Ljava/util/Optional;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/module/ModuleBootstrap$SafeModuleFinder;
0 9 1 name Ljava/lang/String;
2 9 2 nameToModule Ljava/util/Map<Ljava/lang/String;Ljava/lang/module/ModuleReference;>;
Signature: (Ljava/lang/String;)Ljava/util/Optional<Ljava/lang/module/ModuleReference;>;
MethodParameters:
Name Flags
name
public java.util.Set<java.lang.module.ModuleReference> findAll();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.module.ModuleBootstrap$SafeModuleFinder.mrefs:Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/module/ModuleBootstrap$SafeModuleFinder;
Signature: ()Ljava/util/Set<Ljava/lang/module/ModuleReference;>;
private static java.lang.String lambda$0(java.lang.module.ModuleReference);
descriptor: (Ljava/lang/module/ModuleReference;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.module.ModuleReference.descriptor:()Ljava/lang/module/ModuleDescriptor;
invokevirtual java.lang.module.ModuleDescriptor.name:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 m Ljava/lang/module/ModuleReference;
}
SourceFile: "ModuleBootstrap.java"
NestHost: jdk.internal.module.ModuleBootstrap
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
SafeModuleFinder = jdk.internal.module.ModuleBootstrap$SafeModuleFinder of jdk.internal.module.ModuleBootstrap