public class org.graalvm.compiler.api.test.ModuleSupport
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.api.test.ModuleSupport
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
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 Lorg/graalvm/compiler/api/test/ModuleSupport;
public static void exportPackageTo(java.lang.Class<?>, java.lang.String, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Class;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
astore 3
start local 3 1: aload 2
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
astore 4
start local 4 2: aload 3
aload 4
if_acmpeq 4
3: aload 3
aload 1
aload 4
invokestatic jdk.internal.module.Modules.addExports:(Ljava/lang/Module;Ljava/lang/String;Ljava/lang/Module;)V
4: StackMap locals: java.lang.Module java.lang.Module
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 moduleMember Ljava/lang/Class<*>;
0 5 1 packageName Ljava/lang/String;
0 5 2 requestor Ljava/lang/Class<*>;
1 5 3 moduleToExport Ljava/lang/Module;
2 5 4 requestorModule Ljava/lang/Module;
Signature: (Ljava/lang/Class<*>;Ljava/lang/String;Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
moduleMember
packageName
requestor
public static void exportAllPackagesTo(java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
astore 2
start local 2 1: aload 1
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
astore 3
start local 3 2: aload 2
aload 3
if_acmpeq 7
3: aload 2
invokevirtual java.lang.Module.getPackages:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 6
StackMap locals: java.lang.Class java.lang.Class java.lang.Module java.lang.Module top java.util.Iterator
StackMap stack:
4: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 5: aload 2
aload 4
aload 3
invokestatic jdk.internal.module.Modules.addExports:(Ljava/lang/Module;Ljava/lang/String;Ljava/lang/Module;)V
end local 4 6: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
7: StackMap locals: java.lang.Class java.lang.Class java.lang.Module java.lang.Module
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 moduleMember Ljava/lang/Class<*>;
0 8 1 requestor Ljava/lang/Class<*>;
1 8 2 moduleToExport Ljava/lang/Module;
2 8 3 requestorModule Ljava/lang/Module;
5 6 4 packageName Ljava/lang/String;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
moduleMember
requestor
public static void exportAllPackagesTo(java.lang.Class<?>, java.lang.ClassLoader);
descriptor: (Ljava/lang/Class;Ljava/lang/ClassLoader;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
astore 2
start local 2 1: aload 1
invokevirtual java.lang.ClassLoader.getUnnamedModule:()Ljava/lang/Module;
astore 3
start local 3 2: aload 2
invokevirtual java.lang.Module.getPackages:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 5
StackMap locals: java.lang.Class java.lang.ClassLoader java.lang.Module java.lang.Module top java.util.Iterator
StackMap stack:
3: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 4: aload 2
aload 4
aload 3
invokestatic jdk.internal.module.Modules.addExports:(Ljava/lang/Module;Ljava/lang/String;Ljava/lang/Module;)V
end local 4 5: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
6: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 moduleMember Ljava/lang/Class<*>;
0 7 1 cl Ljava/lang/ClassLoader;
1 7 2 moduleToExport Ljava/lang/Module;
2 7 3 unnamedModule Ljava/lang/Module;
4 5 4 packageName Ljava/lang/String;
Signature: (Ljava/lang/Class<*>;Ljava/lang/ClassLoader;)V
MethodParameters:
Name Flags
moduleMember
cl
public static void exportAndOpenAllPackagesToUnnamed(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: invokestatic java.lang.ModuleLayer.boot:()Ljava/lang/ModuleLayer;
aload 0
invokevirtual java.lang.ModuleLayer.findModule:(Ljava/lang/String;)Ljava/util/Optional;
invokevirtual java.util.Optional.orElseThrow:()Ljava/lang/Object;
checkcast java.lang.Module
astore 1
start local 1 1: aload 1
invokevirtual java.lang.Module.getPackages:()Ljava/util/Set;
astore 2
start local 2 2: aload 2
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 6
StackMap locals: java.lang.String java.lang.Module java.util.Set top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 4: aload 1
aload 3
invokestatic jdk.internal.module.Modules.addExportsToAllUnnamed:(Ljava/lang/Module;Ljava/lang/String;)V
5: aload 1
aload 3
invokestatic jdk.internal.module.Modules.addOpensToAllUnnamed:(Ljava/lang/Module;Ljava/lang/String;)V
end local 3 6: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 name Ljava/lang/String;
1 8 1 module Ljava/lang/Module;
2 8 2 packages Ljava/util/Set<Ljava/lang/String;>;
4 6 3 pkg Ljava/lang/String;
MethodParameters:
Name Flags
name
public static java.util.List<java.lang.String> getJRTGraalClassNames();
descriptor: ()Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=0
0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 0
start local 0 1: ldc "jrt:/"
invokestatic java.net.URI.create:(Ljava/lang/String;)Ljava/net/URI;
invokestatic java.util.Collections.emptyMap:()Ljava/util/Map;
invokestatic java.nio.file.FileSystems.newFileSystem:(Ljava/net/URI;Ljava/util/Map;)Ljava/nio/file/FileSystem;
astore 1
start local 1 2: ldc Lorg/graalvm/compiler/debug/DebugOptions;
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
astore 2
start local 2 3: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 3
start local 3 4: aload 3
aload 2
invokevirtual java.lang.Module.getName:()Ljava/lang/String;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
5: aload 2
invokevirtual java.lang.Module.getLayer:()Ljava/lang/ModuleLayer;
invokevirtual java.lang.ModuleLayer.modules:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 9
StackMap locals: java.util.List java.nio.file.FileSystem java.lang.Module java.util.Set top java.util.Iterator
StackMap stack:
6: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Module
astore 4
start local 4 7: aload 4
aload 2
invokestatic org.graalvm.compiler.api.test.ModuleSupport.requires:(Ljava/lang/Module;Ljava/lang/Module;)Z
ifeq 9
8: aload 3
aload 4
invokevirtual java.lang.Module.getName:()Ljava/lang/String;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 4 9: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
10: aload 1
ldc "/modules/"
iconst_0
anewarray java.lang.String
invokevirtual java.nio.file.FileSystem.getPath:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 4
start local 4 11: aload 4
ldc 2147483647
12: invokedynamic test()Ljava/util/function/BiPredicate;
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;)Z
org/graalvm/compiler/api/test/ModuleSupport.lambda$0(Ljava/nio/file/Path;Ljava/nio/file/attribute/BasicFileAttributes;)Z (6)
(Ljava/nio/file/Path;Ljava/nio/file/attribute/BasicFileAttributes;)Z
iconst_0
anewarray java.nio.file.FileVisitOption
13: invokestatic java.nio.file.Files.find:(Ljava/nio/file/Path;ILjava/util/function/BiPredicate;[Ljava/nio/file/FileVisitOption;)Ljava/util/stream/Stream;
14: aload 3
aload 0
invokedynamic accept(Ljava/util/Set;Ljava/util/List;)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
org/graalvm/compiler/api/test/ModuleSupport.lambda$1(Ljava/util/Set;Ljava/util/List;Ljava/nio/file/Path;)V (6)
(Ljava/nio/file/Path;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
15: aload 0
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 16 0 classNames Ljava/util/List<Ljava/lang/String;>;
2 16 1 fs Ljava/nio/file/FileSystem;
3 16 2 graalModule Ljava/lang/Module;
4 16 3 graalModuleSet Ljava/util/Set<Ljava/lang/String;>;
7 9 4 module Ljava/lang/Module;
11 16 4 top Ljava/nio/file/Path;
Exceptions:
throws java.io.IOException
Signature: ()Ljava/util/List<Ljava/lang/String;>;
private static boolean requires(java.lang.Module, java.lang.Module);
descriptor: (Ljava/lang/Module;Ljava/lang/Module;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.Module.getLayer:()Ljava/lang/ModuleLayer;
astore 2
start local 2 1: aload 0
invokevirtual java.lang.Module.getDescriptor:()Ljava/lang/module/ModuleDescriptor;
invokevirtual java.lang.module.ModuleDescriptor.requires:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 8
StackMap locals: java.lang.Module java.lang.Module java.lang.ModuleLayer top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.module.ModuleDescriptor$Requires
astore 3
start local 3 3: aload 3
invokevirtual java.lang.module.ModuleDescriptor$Requires.name:()Ljava/lang/String;
aload 1
invokevirtual java.lang.Module.getName:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
4: iconst_1
ireturn
5: StackMap locals: java.lang.Module java.lang.Module java.lang.ModuleLayer java.lang.module.ModuleDescriptor$Requires java.util.Iterator
StackMap stack:
aload 2
aload 3
invokevirtual java.lang.module.ModuleDescriptor$Requires.name:()Ljava/lang/String;
invokevirtual java.lang.ModuleLayer.findModule:(Ljava/lang/String;)Ljava/util/Optional;
invokevirtual java.util.Optional.get:()Ljava/lang/Object;
checkcast java.lang.Module
astore 5
start local 5 6: aload 5
aload 1
invokestatic org.graalvm.compiler.api.test.ModuleSupport.requires:(Ljava/lang/Module;Ljava/lang/Module;)Z
ifeq 8
7: iconst_1
ireturn
end local 5 end local 3 8: StackMap locals: java.lang.Module java.lang.Module java.lang.ModuleLayer top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
9: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 module Ljava/lang/Module;
0 10 1 graalModule Ljava/lang/Module;
1 10 2 graalLayer Ljava/lang/ModuleLayer;
3 8 3 r Ljava/lang/module/ModuleDescriptor$Requires;
6 8 5 dep Ljava/lang/Module;
MethodParameters:
Name Flags
module
graalModule
private static boolean lambda$0(java.nio.file.Path, java.nio.file.attribute.BasicFileAttributes);
descriptor: (Ljava/nio/file/Path;Ljava/nio/file/attribute/BasicFileAttributes;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.nio.file.attribute.BasicFileAttributes.isRegularFile:()Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 path Ljava/nio/file/Path;
0 1 1 attrs Ljava/nio/file/attribute/BasicFileAttributes;
private static void lambda$1(java.util.Set, java.util.List, java.nio.file.Path);
descriptor: (Ljava/util/Set;Ljava/util/List;Ljava/nio/file/Path;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=7, args_size=3
start local 2 0: aload 2
invokeinterface java.nio.file.Path.getNameCount:()I
istore 3
start local 3 1: iload 3
iconst_2
if_icmple 9
2: aload 2
iload 3
iconst_1
isub
invokeinterface java.nio.file.Path.getName:(I)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
astore 4
start local 4 3: aload 4
ldc ".class"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 9
aload 4
ldc "module-info.class"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 9
4: aload 2
iconst_1
invokeinterface java.nio.file.Path.getName:(I)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
astore 5
start local 5 5: aload 0
aload 5
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 9
6: aload 2
iconst_2
iload 3
invokeinterface java.nio.file.Path.subpath:(II)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
bipush 47
bipush 46
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
astore 6
start local 6 7: aload 6
bipush 47
bipush 46
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
iconst_0
aload 6
invokevirtual java.lang.String.length:()I
ldc ".class"
invokevirtual java.lang.String.length:()I
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 6
8: aload 1
aload 6
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 6 end local 5 end local 4 end local 3 9: StackMap locals:
StackMap stack:
return
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 10 2 p Ljava/nio/file/Path;
1 9 3 nameCount I
3 9 4 base Ljava/lang/String;
5 9 5 module Ljava/lang/String;
7 9 6 className Ljava/lang/String;
}
SourceFile: "ModuleSupport.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final Requires = java.lang.module.ModuleDescriptor$Requires of java.lang.module.ModuleDescriptor