public final class jdk.tools.jaotc.collect.classname.ClassNameSourceProvider 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.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=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
astore 3
start local 3 1: aload 3
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 4
start local 4 2: aload 4
invokestatic jdk.tools.jaotc.collect.ClassSource.pathIsClassFile:(Ljava/nio/file/Path;)Z
ifeq 4
3: aload 4
invokestatic jdk.tools.jaotc.collect.ClassSource.makeClassName:(Ljava/nio/file/Path;)Ljava/lang/String;
astore 3
4: StackMap locals: java.lang.String java.nio.file.Path
StackMap stack:
aload 0
getfield jdk.tools.jaotc.collect.classname.ClassNameSourceProvider.classLoader:Ljava/lang/ClassLoader;
aload 3
invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
pop
5: new jdk.tools.jaotc.collect.classname.ClassNameSource
dup
aload 3
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
6: areturn
7: StackMap locals:
StackMap stack: java.lang.ClassNotFoundException
pop
8: aconst_null
areturn
end local 4 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 name0 Ljava/lang/String;
0 9 2 searchPath Ljdk/tools/jaotc/collect/SearchPath;
1 9 3 name Ljava/lang/String;
2 9 4 path Ljava/nio/file/Path;
Exception table:
from to target type
4 6 7 Class java.lang.ClassNotFoundException
MethodParameters:
Name Flags
name0
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"