public interface jdk.tools.jaotc.collect.ClassSource
minor version: 0
major version: 59
flags: flags: (0x0601) ACC_PUBLIC, ACC_INTERFACE, ACC_ABSTRACT
this_class: jdk.tools.jaotc.collect.ClassSource
super_class: java.lang.Object
{
public static boolean pathIsClassFile(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
ldc ".class"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 2
aload 1
ldc "module-info.class"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 2
iconst_1
ireturn
StackMap locals: java.lang.String
StackMap stack:
2: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 entry Ljava/nio/file/Path;
1 3 1 fileName Ljava/lang/String;
MethodParameters:
Name Flags
entry
public static java.lang.String stripRoot(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
invokeinterface java.nio.file.Path.getRoot:()Ljava/nio/file/Path;
ifnull 8
1: aload 0
invokeinterface java.nio.file.Path.getRoot:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
astore 1
start local 1 2: aload 0
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
aload 1
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 2
start local 2 3: aload 0
invokeinterface java.nio.file.Path.getFileSystem:()Ljava/nio/file/FileSystem;
invokevirtual java.nio.file.FileSystem.getSeparator:()Ljava/lang/String;
astore 3
start local 3 4: goto 6
5: StackMap locals: java.lang.String java.lang.String java.lang.String
StackMap stack:
aload 2
aload 3
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 2
6: StackMap locals:
StackMap stack:
aload 2
aload 3
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 5
7: aload 2
areturn
end local 3 end local 2 end local 1 8: StackMap locals:
StackMap stack:
aload 0
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 path Ljava/nio/file/Path;
2 8 1 root Ljava/lang/String;
3 8 2 filename Ljava/lang/String;
4 8 3 separator Ljava/lang/String;
MethodParameters:
Name Flags
path
public static java.lang.String makeClassName(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
ldc ".class"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 3
2: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "File doesn't end with .class: '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: java.lang.String
StackMap stack:
aload 0
invokestatic jdk.tools.jaotc.collect.ClassSource.stripRoot:(Ljava/nio/file/Path;)Ljava/lang/String;
astore 1
4: aload 1
iconst_0
aload 1
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 2
start local 2 5: aload 2
aload 0
invokeinterface java.nio.file.Path.getFileSystem:()Ljava/nio/file/FileSystem;
invokevirtual java.nio.file.FileSystem.getSeparator:()Ljava/lang/String;
ldc "."
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
astore 2
6: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 path Ljava/nio/file/Path;
1 7 1 fileName Ljava/lang/String;
5 7 2 className Ljava/lang/String;
MethodParameters:
Name Flags
path
public abstract void eachClass(java.util.function.BiConsumer<java.lang.String, java.lang.ClassLoader>);
descriptor: (Ljava/util/function/BiConsumer;)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Signature: (Ljava/util/function/BiConsumer<Ljava/lang/String;Ljava/lang/ClassLoader;>;)V
MethodParameters:
Name Flags
consumer
}
SourceFile: "ClassSource.java"