public final class jdk.tools.jaotc.collect.module.ModuleSourceProvider implements jdk.tools.jaotc.collect.SourceProvider
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.tools.jaotc.collect.module.ModuleSourceProvider
super_class: java.lang.Object
{
private final java.nio.file.FileSystem fileSystem;
descriptor: Ljava/nio/file/FileSystem;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.ClassLoader classLoader;
descriptor: Ljava/lang/ClassLoader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.tools.jaotc.collect.FileSupport fileSupport;
descriptor: Ljdk/tools/jaotc/collect/FileSupport;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public static final java.lang.String TYPE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "module"
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
ldc "jrt:/"
invokestatic java.net.URI.create:(Ljava/lang/String;)Ljava/net/URI;
invokestatic java.nio.file.FileSystems.getFileSystem:(Ljava/net/URI;)Ljava/nio/file/FileSystem;
invokestatic java.lang.ClassLoader.getSystemClassLoader:()Ljava/lang/ClassLoader;
new jdk.tools.jaotc.collect.FileSupport
dup
invokespecial jdk.tools.jaotc.collect.FileSupport.<init>:()V
invokespecial jdk.tools.jaotc.collect.module.ModuleSourceProvider.<init>:(Ljava/nio/file/FileSystem;Ljava/lang/ClassLoader;Ljdk/tools/jaotc/collect/FileSupport;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/tools/jaotc/collect/module/ModuleSourceProvider;
public void <init>(java.nio.file.FileSystem, java.lang.ClassLoader, jdk.tools.jaotc.collect.FileSupport);
descriptor: (Ljava/nio/file/FileSystem;Ljava/lang/ClassLoader;Ljdk/tools/jaotc/collect/FileSupport;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, 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
aload 1
putfield jdk.tools.jaotc.collect.module.ModuleSourceProvider.fileSystem:Ljava/nio/file/FileSystem;
2: aload 0
aload 2
putfield jdk.tools.jaotc.collect.module.ModuleSourceProvider.classLoader:Ljava/lang/ClassLoader;
3: aload 0
aload 3
putfield jdk.tools.jaotc.collect.module.ModuleSourceProvider.fileSupport:Ljdk/tools/jaotc/collect/FileSupport;
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/tools/jaotc/collect/module/ModuleSourceProvider;
0 5 1 fileSystem Ljava/nio/file/FileSystem;
0 5 2 classLoader Ljava/lang/ClassLoader;
0 5 3 fileSupport Ljdk/tools/jaotc/collect/FileSupport;
MethodParameters:
Name Flags
fileSystem
classLoader
fileSupport
public jdk.tools.jaotc.collect.ClassSource findSource(java.lang.String, jdk.tools.jaotc.collect.SearchPath);
descriptor: (Ljava/lang/String;Ljdk/tools/jaotc/collect/SearchPath;)Ljdk/tools/jaotc/collect/ClassSource;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.tools.jaotc.collect.module.ModuleSourceProvider.fileSystem:Ljava/nio/file/FileSystem;
aload 1
iconst_0
anewarray java.lang.String
invokevirtual java.nio.file.FileSystem.getPath:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 3
start local 3 1: aload 0
getfield jdk.tools.jaotc.collect.module.ModuleSourceProvider.fileSystem:Ljava/nio/file/FileSystem;
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 2: aload 4
ifnull 3
aload 0
getfield jdk.tools.jaotc.collect.module.ModuleSourceProvider.fileSupport:Ljdk/tools/jaotc/collect/FileSupport;
aload 4
invokevirtual jdk.tools.jaotc.collect.FileSupport.isDirectory:(Ljava/nio/file/Path;)Z
ifne 4
3: StackMap locals: java.nio.file.Path java.nio.file.Path
StackMap stack:
aconst_null
areturn
4: StackMap locals:
StackMap stack:
aload 0
aload 4
aload 3
invokevirtual jdk.tools.jaotc.collect.module.ModuleSourceProvider.findModuleDirectory:(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/nio/file/Path;
astore 5
start local 5 5: aload 5
ifnonnull 7
6: aconst_null
areturn
7: StackMap locals: java.nio.file.Path
StackMap stack:
new jdk.tools.jaotc.collect.module.ModuleSource
dup
aload 5
aload 0
getfield jdk.tools.jaotc.collect.module.ModuleSourceProvider.classLoader:Ljava/lang/ClassLoader;
invokespecial jdk.tools.jaotc.collect.module.ModuleSource.<init>:(Ljava/nio/file/Path;Ljava/lang/ClassLoader;)V
areturn
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 8 0 this Ljdk/tools/jaotc/collect/module/ModuleSourceProvider;
0 8 1 name Ljava/lang/String;
0 8 2 searchPath Ljdk/tools/jaotc/collect/SearchPath;
1 8 3 path Ljava/nio/file/Path;
2 8 4 dir Ljava/nio/file/Path;
5 8 5 found Ljava/nio/file/Path;
MethodParameters:
Name Flags
name
searchPath
private java.nio.file.Path findModuleDirectory(java.nio.file.Path, java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/nio/file/Path;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.tools.jaotc.collect.module.ModuleSourceProvider.fileSupport:Ljdk/tools/jaotc/collect/FileSupport;
aload 0
getfield jdk.tools.jaotc.collect.module.ModuleSourceProvider.fileSystem:Ljava/nio/file/FileSystem;
aload 1
aload 2
invokevirtual jdk.tools.jaotc.collect.FileSupport.getSubDirectory:(Ljava/nio/file/FileSystem;Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/nio/file/Path;
1: areturn
2: StackMap locals:
StackMap stack: java.io.IOException
astore 3
start local 3 3: new java.lang.InternalError
dup
aload 3
invokespecial java.lang.InternalError.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/tools/jaotc/collect/module/ModuleSourceProvider;
0 4 1 root Ljava/nio/file/Path;
0 4 2 path Ljava/nio/file/Path;
3 4 3 e Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
MethodParameters:
Name Flags
root
path
public boolean supports(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: ldc "module"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jaotc/collect/module/ModuleSourceProvider;
0 1 1 type Ljava/lang/String;
MethodParameters:
Name Flags
type
}
SourceFile: "ModuleSourceProvider.java"