public class jdk.tools.jaotc.collect.classname.ClassNameSourceProvider implements jdk.tools.jaotc.collect.SourceProvider
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.tools.jaotc.collect.classname.ClassNameSourceProvider
super_class: java.lang.Object
{
public static final java.lang.String TYPE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "class"
private final java.lang.ClassLoader classLoader;
descriptor: Ljava/lang/ClassLoader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(jdk.tools.jaotc.collect.FileSupport);
descriptor: (Ljdk/tools/jaotc/collect/FileSupport;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: ldc "java.class.path"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 2: invokestatic java.lang.ClassLoader.getSystemClassLoader:()Ljava/lang/ClassLoader;
astore 3
start local 3 3: aload 2
ifnull 6
aload 2
invokevirtual java.lang.String.isEmpty:()Z
ifne 6
4: aload 0
aload 3
putfield jdk.tools.jaotc.collect.classname.ClassNameSourceProvider.classLoader:Ljava/lang/ClassLoader;
5: goto 8
6: StackMap locals: jdk.tools.jaotc.collect.classname.ClassNameSourceProvider jdk.tools.jaotc.collect.FileSupport java.lang.String java.lang.ClassLoader
StackMap stack:
ldc "."
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
astore 4
start local 4 7: aload 0
aload 1
aload 4
aload 3
invokevirtual jdk.tools.jaotc.collect.FileSupport.createClassLoader:(Ljava/nio/file/Path;Ljava/lang/ClassLoader;)Ljava/lang/ClassLoader;
putfield jdk.tools.jaotc.collect.classname.ClassNameSourceProvider.classLoader:Ljava/lang/ClassLoader;
end local 4 8: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/tools/jaotc/collect/classname/ClassNameSourceProvider;
0 9 1 fileSupport Ljdk/tools/jaotc/collect/FileSupport;
2 9 2 classPath Ljava/lang/String;
3 9 3 systemClassLoader Ljava/lang/ClassLoader;
7 8 4 path Ljava/nio/file/Path;
MethodParameters:
Name Flags
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=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 3
start local 3 1: aload 3
invokestatic jdk.tools.jaotc.collect.ClassSource.pathIsClassFile:(Ljava/nio/file/Path;)Z
ifeq 3
2: aload 3
invokestatic jdk.tools.jaotc.collect.ClassSource.makeClassName:(Ljava/nio/file/Path;)Ljava/lang/String;
astore 1
3: StackMap locals: java.nio.file.Path
StackMap stack:
aload 0
getfield jdk.tools.jaotc.collect.classname.ClassNameSourceProvider.classLoader:Ljava/lang/ClassLoader;
aload 1
invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
pop
4: new jdk.tools.jaotc.collect.classname.ClassNameSource
dup
aload 1
aload 0
getfield jdk.tools.jaotc.collect.classname.ClassNameSourceProvider.classLoader:Ljava/lang/ClassLoader;
invokespecial jdk.tools.jaotc.collect.classname.ClassNameSource.<init>:(Ljava/lang/String;Ljava/lang/ClassLoader;)V
5: areturn
6: StackMap locals:
StackMap stack: java.lang.ClassNotFoundException
pop
7: aconst_null
areturn
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/classname/ClassNameSourceProvider;
0 8 1 name Ljava/lang/String;
0 8 2 searchPath Ljdk/tools/jaotc/collect/SearchPath;
1 8 3 path Ljava/nio/file/Path;
Exception table:
from to target type
3 5 6 Class java.lang.ClassNotFoundException
MethodParameters:
Name Flags
name
searchPath
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 "class"
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/classname/ClassNameSourceProvider;
0 1 1 type Ljava/lang/String;
MethodParameters:
Name Flags
type
}
SourceFile: "ClassNameSourceProvider.java"