class com.sun.tools.jdeps.ClassFileReader$DirectoryReader extends com.sun.tools.jdeps.ClassFileReader
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.sun.tools.jdeps.ClassFileReader$DirectoryReader
super_class: com.sun.tools.jdeps.ClassFileReader
{
protected final java.lang.String fsSep;
descriptor: Ljava/lang/String;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
void <init>(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokestatic java.nio.file.FileSystems.getDefault:()Ljava/nio/file/FileSystem;
aload 1
invokespecial com.sun.tools.jdeps.ClassFileReader$DirectoryReader.<init>:(Ljava/nio/file/FileSystem;Ljava/nio/file/Path;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/tools/jdeps/ClassFileReader$DirectoryReader;
0 2 1 path Ljava/nio/file/Path;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
path
void <init>(java.nio.file.FileSystem, java.nio.file.Path);
descriptor: (Ljava/nio/file/FileSystem;Ljava/nio/file/Path;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 2
invokespecial com.sun.tools.jdeps.ClassFileReader.<init>:(Ljava/nio/file/Path;)V
1: aload 0
aload 1
invokevirtual java.nio.file.FileSystem.getSeparator:()Ljava/lang/String;
putfield com.sun.tools.jdeps.ClassFileReader$DirectoryReader.fsSep:Ljava/lang/String;
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/tools/jdeps/ClassFileReader$DirectoryReader;
0 3 1 fs Ljava/nio/file/FileSystem;
0 3 2 path Ljava/nio/file/Path;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
fs
path
protected java.util.Set<java.lang.String> scan();
descriptor: ()Ljava/util/Set;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=1
start local 0 0: aconst_null
astore 1
aconst_null
astore 2
1: aload 0
getfield com.sun.tools.jdeps.ClassFileReader$DirectoryReader.path:Ljava/nio/file/Path;
ldc 2147483647
iconst_0
anewarray java.nio.file.FileVisitOption
invokestatic java.nio.file.Files.walk:(Ljava/nio/file/Path;I[Ljava/nio/file/FileVisitOption;)Ljava/util/stream/Stream;
astore 3
start local 3 2: aload 3
invokedynamic test()Ljava/util/function/Predicate;
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/lang/Object;)Z
com/sun/tools/jdeps/ClassFileReader.isClass(Ljava/nio/file/Path;)Z (6)
(Ljava/nio/file/Path;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
3: aload 0
getfield com.sun.tools.jdeps.ClassFileReader$DirectoryReader.path:Ljava/nio/file/Path;
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic apply(Ljava/nio/file/Path;)Ljava/util/function/Function;
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/lang/Object;)Ljava/lang/Object;
java/nio/file/Path.relativize(Ljava/nio/file/Path;)Ljava/nio/file/Path; (9 itf)
(Ljava/nio/file/Path;)Ljava/nio/file/Path;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
4: invokedynamic apply()Ljava/util/function/Function;
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/lang/Object;)Ljava/lang/Object;
java/nio/file/Path.toString()Ljava/lang/String; (9 itf)
(Ljava/nio/file/Path;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
5: invokedynamic apply()Ljava/util/function/Function;
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/lang/Object;)Ljava/lang/Object;
com/sun/tools/jdeps/ClassFileReader$DirectoryReader.lambda$3(Ljava/lang/String;)Ljava/lang/String; (6)
(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
6: invokestatic java.util.stream.Collectors.toSet:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.Set
7: aload 3
ifnull 8
aload 3
invokeinterface java.util.stream.Stream.close:()V
8: StackMap locals: com.sun.tools.jdeps.ClassFileReader$DirectoryReader java.lang.Throwable java.lang.Throwable java.util.stream.Stream
StackMap stack: java.util.Set
areturn
StackMap locals:
StackMap stack: java.lang.Throwable
9: astore 1
10: aload 3
ifnull 11
aload 3
invokeinterface java.util.stream.Stream.close:()V
end local 3 StackMap locals:
StackMap stack:
11: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
12: astore 2
aload 1
ifnonnull 13
aload 2
astore 1
goto 14
StackMap locals:
StackMap stack:
13: aload 1
aload 2
if_acmpeq 14
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
14: aload 1
athrow
StackMap locals: com.sun.tools.jdeps.ClassFileReader$DirectoryReader
StackMap stack: java.io.IOException
15: astore 1
start local 1 16: new java.io.UncheckedIOException
dup
aload 1
invokespecial java.io.UncheckedIOException.<init>:(Ljava/io/IOException;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lcom/sun/tools/jdeps/ClassFileReader$DirectoryReader;
2 11 3 stream Ljava/util/stream/Stream<Ljava/nio/file/Path;>;
16 17 1 e Ljava/io/IOException;
Exception table:
from to target type
2 7 9 any
1 8 12 any
9 12 12 any
0 8 15 Class java.io.IOException
9 15 15 Class java.io.IOException
Signature: ()Ljava/util/Set<Ljava/lang/String;>;
public com.sun.tools.classfile.ClassFile getClassFile(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/sun/tools/classfile/ClassFile;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=2
start local 0 start local 1 0: aload 1
bipush 46
invokevirtual java.lang.String.indexOf:(I)I
ifle 10
1: aload 1
bipush 46
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 2
start local 2 2: new java.lang.StringBuilder
dup
aload 1
ldc "."
aload 0
getfield com.sun.tools.jdeps.ClassFileReader$DirectoryReader.fsSep:Ljava/lang/String;
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".class"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
start local 3 3: aload 0
getfield com.sun.tools.jdeps.ClassFileReader$DirectoryReader.path:Ljava/nio/file/Path;
aload 3
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 4
start local 4 4: aload 4
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.notExists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 8
5: aload 0
getfield com.sun.tools.jdeps.ClassFileReader$DirectoryReader.path:Ljava/nio/file/Path;
new java.lang.StringBuilder
dup
aload 3
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "$"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
6: aload 3
iload 2
iconst_1
iadd
aload 3
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 4
8: StackMap locals: int java.lang.String java.nio.file.Path
StackMap stack:
aload 4
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 13
9: aload 0
aload 4
invokevirtual com.sun.tools.jdeps.ClassFileReader$DirectoryReader.readClassFile:(Ljava/nio/file/Path;)Lcom/sun/tools/classfile/ClassFile;
areturn
end local 4 end local 3 end local 2 10: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.tools.jdeps.ClassFileReader$DirectoryReader.path:Ljava/nio/file/Path;
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".class"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 2
start local 2 11: aload 2
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 13
12: aload 0
aload 2
invokevirtual com.sun.tools.jdeps.ClassFileReader$DirectoryReader.readClassFile:(Ljava/nio/file/Path;)Lcom/sun/tools/classfile/ClassFile;
areturn
end local 2 13: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/sun/tools/jdeps/ClassFileReader$DirectoryReader;
0 14 1 name Ljava/lang/String;
2 10 2 i I
3 10 3 pathname Ljava/lang/String;
4 10 4 p Ljava/nio/file/Path;
11 13 2 p Ljava/nio/file/Path;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
name
public java.lang.Iterable<com.sun.tools.classfile.ClassFile> getClassFiles();
descriptor: ()Ljava/lang/Iterable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new com.sun.tools.jdeps.ClassFileReader$DirectoryReader$DirectoryIterator
dup
aload 0
invokespecial com.sun.tools.jdeps.ClassFileReader$DirectoryReader$DirectoryIterator.<init>:(Lcom/sun/tools/jdeps/ClassFileReader$DirectoryReader;)V
astore 1
start local 1 1: aload 1
invokedynamic iterator(Ljava/util/Iterator;)Ljava/lang/Iterable;
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/util/Iterator;
com/sun/tools/jdeps/ClassFileReader$DirectoryReader.lambda$4(Ljava/util/Iterator;)Ljava/util/Iterator; (6)
()Ljava/util/Iterator;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/tools/jdeps/ClassFileReader$DirectoryReader;
1 2 1 iter Ljava/util/Iterator<Lcom/sun/tools/classfile/ClassFile;>;
Exceptions:
throws java.io.IOException
Signature: ()Ljava/lang/Iterable<Lcom/sun/tools/classfile/ClassFile;>;
private static java.lang.String lambda$3(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getstatic java.io.File.separatorChar:C
bipush 47
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 p Ljava/lang/String;
private static java.util.Iterator lambda$4(java.util.Iterator);
descriptor: (Ljava/util/Iterator;)Ljava/util/Iterator;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "ClassFileReader.java"
NestHost: com.sun.tools.jdeps.ClassFileReader
InnerClasses:
private DirectoryReader = com.sun.tools.jdeps.ClassFileReader$DirectoryReader of com.sun.tools.jdeps.ClassFileReader
DirectoryIterator = com.sun.tools.jdeps.ClassFileReader$DirectoryReader$DirectoryIterator of com.sun.tools.jdeps.ClassFileReader$DirectoryReader
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles