public class jdk.tools.jaotc.collect.directory.DirectorySource implements jdk.tools.jaotc.collect.ClassSource
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.tools.jaotc.collect.directory.DirectorySource
super_class: java.lang.Object
{
private final java.nio.file.Path directoryPath;
descriptor: Ljava/nio/file/Path;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.ClassLoader classLoader;
descriptor: Ljava/lang/ClassLoader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.nio.file.Path, java.lang.ClassLoader);
descriptor: (Ljava/nio/file/Path;Ljava/lang/ClassLoader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield jdk.tools.jaotc.collect.directory.DirectorySource.directoryPath:Ljava/nio/file/Path;
2: aload 0
aload 2
putfield jdk.tools.jaotc.collect.directory.DirectorySource.classLoader:Ljava/lang/ClassLoader;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/tools/jaotc/collect/directory/DirectorySource;
0 4 1 directoryPath Ljava/nio/file/Path;
0 4 2 classLoader Ljava/lang/ClassLoader;
MethodParameters:
Name Flags
directoryPath
classLoader
public void eachClass(java.util.function.BiConsumer<java.lang.String, java.lang.ClassLoader>);
descriptor: (Ljava/util/function/BiConsumer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: new jdk.tools.jaotc.collect.FileSystemFinder
dup
aload 0
getfield jdk.tools.jaotc.collect.directory.DirectorySource.directoryPath:Ljava/nio/file/Path;
invokedynamic matches()Ljava/nio/file/PathMatcher;
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/nio/file/Path;)Z
jdk/tools/jaotc/collect/ClassSource.pathIsClassFile(Ljava/nio/file/Path;)Z (6 itf)
(Ljava/nio/file/Path;)Z
invokespecial jdk.tools.jaotc.collect.FileSystemFinder.<init>:(Ljava/nio/file/Path;Ljava/nio/file/PathMatcher;)V
astore 2
start local 2 1: aload 2
invokevirtual jdk.tools.jaotc.collect.FileSystemFinder.iterator:()Ljava/util/Iterator;
astore 4
goto 4
StackMap locals: jdk.tools.jaotc.collect.directory.DirectorySource java.util.function.BiConsumer jdk.tools.jaotc.collect.FileSystemFinder top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.nio.file.Path
astore 3
start local 3 3: aload 1
aload 0
getfield jdk.tools.jaotc.collect.directory.DirectorySource.directoryPath:Ljava/nio/file/Path;
aload 3
invokeinterface java.nio.file.Path.relativize:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.normalize:()Ljava/nio/file/Path;
invokestatic jdk.tools.jaotc.collect.ClassSource.makeClassName:(Ljava/nio/file/Path;)Ljava/lang/String;
aload 0
getfield jdk.tools.jaotc.collect.directory.DirectorySource.classLoader:Ljava/lang/ClassLoader;
invokeinterface java.util.function.BiConsumer.accept:(Ljava/lang/Object;Ljava/lang/Object;)V
end local 3 4: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/tools/jaotc/collect/directory/DirectorySource;
0 6 1 consumer Ljava/util/function/BiConsumer<Ljava/lang/String;Ljava/lang/ClassLoader;>;
1 6 2 finder Ljdk/tools/jaotc/collect/FileSystemFinder;
3 4 3 path Ljava/nio/file/Path;
Signature: (Ljava/util/function/BiConsumer<Ljava/lang/String;Ljava/lang/ClassLoader;>;)V
MethodParameters:
Name Flags
consumer
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "directory:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.tools.jaotc.collect.directory.DirectorySource.directoryPath:Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jaotc/collect/directory/DirectorySource;
}
SourceFile: "DirectorySource.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles