public class com.sun.tools.jdeps.ClassFileReader implements java.io.Closeable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.tools.jdeps.ClassFileReader
super_class: java.lang.Object
{
protected final java.nio.file.Path path;
descriptor: Ljava/nio/file/Path;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final java.lang.String baseFileName;
descriptor: Ljava/lang/String;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected java.util.Set<java.lang.String> entries;
descriptor: Ljava/util/Set;
flags: (0x0004) ACC_PROTECTED
Signature: Ljava/util/Set<Ljava/lang/String;>;
protected final java.util.List<java.lang.String> skippedEntries;
descriptor: Ljava/util/List;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Ljava/util/List<Ljava/lang/String;>;
private static final java.lang.String MODULE_INFO;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "module-info.class"
public static com.sun.tools.jdeps.ClassFileReader newInstance(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Lcom/sun/tools/jdeps/ClassFileReader;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
invokestatic com.sun.tools.jdeps.ClassFileReader.newInstance:(Ljava/nio/file/Path;Ljava/lang/Runtime$Version;)Lcom/sun/tools/jdeps/ClassFileReader;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 path Ljava/nio/file/Path;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
path
public static com.sun.tools.jdeps.ClassFileReader newInstance(java.nio.file.Path, java.lang.Runtime$Version);
descriptor: (Ljava/nio/file/Path;Ljava/lang/Runtime$Version;)Lcom/sun/tools/jdeps/ClassFileReader;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.notExists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 2
1: new java.io.FileNotFoundException
dup
aload 0
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
invokespecial java.io.FileNotFoundException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.isDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 4
3: new com.sun.tools.jdeps.ClassFileReader$DirectoryReader
dup
aload 0
invokespecial com.sun.tools.jdeps.ClassFileReader$DirectoryReader.<init>:(Ljava/nio/file/Path;)V
areturn
4: StackMap locals:
StackMap stack:
aload 0
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
ldc ".jar"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 6
5: new com.sun.tools.jdeps.ClassFileReader$JarFileReader
dup
aload 0
aload 1
invokespecial com.sun.tools.jdeps.ClassFileReader$JarFileReader.<init>:(Ljava/nio/file/Path;Ljava/lang/Runtime$Version;)V
areturn
6: StackMap locals:
StackMap stack:
new com.sun.tools.jdeps.ClassFileReader
dup
aload 0
invokespecial com.sun.tools.jdeps.ClassFileReader.<init>:(Ljava/nio/file/Path;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 path Ljava/nio/file/Path;
0 7 1 version Ljava/lang/Runtime$Version;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
path
version
public static com.sun.tools.jdeps.ClassFileReader newInstance(java.nio.file.FileSystem, java.nio.file.Path);
descriptor: (Ljava/nio/file/FileSystem;Ljava/nio/file/Path;)Lcom/sun/tools/jdeps/ClassFileReader;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new com.sun.tools.jdeps.ClassFileReader$DirectoryReader
dup
aload 0
aload 1
invokespecial com.sun.tools.jdeps.ClassFileReader$DirectoryReader.<init>:(Ljava/nio/file/FileSystem;Ljava/nio/file/Path;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 fs Ljava/nio/file/FileSystem;
0 1 1 path Ljava/nio/file/Path;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
fs
path
protected void <init>(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield com.sun.tools.jdeps.ClassFileReader.skippedEntries:Ljava/util/List;
2: aload 0
aload 1
putfield com.sun.tools.jdeps.ClassFileReader.path:Ljava/nio/file/Path;
3: aload 0
aload 1
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
ifnull 5
4: aload 1
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
goto 6
5: StackMap locals: com.sun.tools.jdeps.ClassFileReader java.nio.file.Path
StackMap stack: com.sun.tools.jdeps.ClassFileReader
aload 1
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
6: StackMap locals: com.sun.tools.jdeps.ClassFileReader java.nio.file.Path
StackMap stack: com.sun.tools.jdeps.ClassFileReader java.lang.String
putfield com.sun.tools.jdeps.ClassFileReader.baseFileName:Ljava/lang/String;
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/sun/tools/jdeps/ClassFileReader;
0 8 1 path Ljava/nio/file/Path;
MethodParameters:
Name Flags
path
public java.lang.String getFileName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.tools.jdeps.ClassFileReader.baseFileName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/tools/jdeps/ClassFileReader;
public java.util.List<java.lang.String> skippedEntries();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.tools.jdeps.ClassFileReader.skippedEntries:Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/tools/jdeps/ClassFileReader;
Signature: ()Ljava/util/List<Ljava/lang/String;>;
public java.util.Set<java.lang.String> entries();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield com.sun.tools.jdeps.ClassFileReader.entries:Ljava/util/Set;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: aload 0
aload 0
invokevirtual com.sun.tools.jdeps.ClassFileReader.scan:()Ljava/util/Set;
putfield com.sun.tools.jdeps.ClassFileReader.entries:Ljava/util/Set;
3: StackMap locals: java.util.Set
StackMap stack:
aload 0
getfield com.sun.tools.jdeps.ClassFileReader.entries:Ljava/util/Set;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/tools/jdeps/ClassFileReader;
1 4 1 es Ljava/util/Set<Ljava/lang/String;>;
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=4, args_size=2
start local 0 start local 1 0: aload 1
bipush 46
invokevirtual java.lang.String.indexOf:(I)I
ifle 9
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
bipush 46
getstatic java.io.File.separatorChar:C
invokevirtual java.lang.String.replace:(CC)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.baseFileName:Ljava/lang/String;
aload 3
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 8
4: aload 0
getfield com.sun.tools.jdeps.ClassFileReader.baseFileName:Ljava/lang/String;
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;
5: 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;
6: invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
7: ifeq 11
8: StackMap locals: int java.lang.String
StackMap stack:
aload 0
aload 0
getfield com.sun.tools.jdeps.ClassFileReader.path:Ljava/nio/file/Path;
invokevirtual com.sun.tools.jdeps.ClassFileReader.readClassFile:(Ljava/nio/file/Path;)Lcom/sun/tools/classfile/ClassFile;
areturn
end local 3 end local 2 9: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.tools.jdeps.ClassFileReader.baseFileName:Ljava/lang/String;
new java.lang.StringBuilder
dup
aload 1
bipush 47
getstatic java.io.File.separatorChar:C
invokevirtual java.lang.String.replace:(CC)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;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 11
10: aload 0
aload 0
getfield com.sun.tools.jdeps.ClassFileReader.path:Ljava/nio/file/Path;
invokevirtual com.sun.tools.jdeps.ClassFileReader.readClassFile:(Ljava/nio/file/Path;)Lcom/sun/tools/classfile/ClassFile;
areturn
11: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/sun/tools/jdeps/ClassFileReader;
0 12 1 name Ljava/lang/String;
2 9 2 i I
3 9 3 pathname Ljava/lang/String;
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=1, locals=1, args_size=1
start local 0 0: aload 0
invokedynamic iterator(Lcom/sun/tools/jdeps/ClassFileReader;)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$FileIterator.<init>(Lcom/sun/tools/jdeps/ClassFileReader;)V (8)
()Ljava/util/Iterator;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/tools/jdeps/ClassFileReader;
Exceptions:
throws java.io.IOException
Signature: ()Ljava/lang/Iterable<Lcom/sun/tools/classfile/ClassFile;>;
protected com.sun.tools.classfile.ClassFile readClassFile(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Lcom/sun/tools/classfile/ClassFile;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aload 1
iconst_0
anewarray java.nio.file.OpenOption
invokestatic java.nio.file.Files.newInputStream:(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream;
astore 2
2: aload 2
invokestatic com.sun.tools.classfile.ClassFile.read:(Ljava/io/InputStream;)Lcom/sun/tools/classfile/ClassFile;
astore 5
3: aload 2
ifnull 5
4: aload 2
invokevirtual java.io.InputStream.close:()V
5: StackMap locals: com.sun.tools.jdeps.ClassFileReader java.nio.file.Path java.io.InputStream top top com.sun.tools.classfile.ClassFile
StackMap stack:
aload 5
areturn
6: StackMap locals: com.sun.tools.jdeps.ClassFileReader java.nio.file.Path java.io.InputStream
StackMap stack: com.sun.tools.classfile.ConstantPoolException
astore 3
start local 3 7: new com.sun.tools.classfile.Dependencies$ClassFileError
dup
aload 3
invokespecial com.sun.tools.classfile.Dependencies$ClassFileError.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 8: StackMap locals:
StackMap stack: java.lang.Throwable
astore 4
9: aload 2
ifnull 11
10: aload 2
invokevirtual java.io.InputStream.close:()V
11: StackMap locals: com.sun.tools.jdeps.ClassFileReader java.nio.file.Path java.io.InputStream top java.lang.Throwable
StackMap stack:
aload 4
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/sun/tools/jdeps/ClassFileReader;
0 12 1 p Ljava/nio/file/Path;
1 12 2 is Ljava/io/InputStream;
7 8 3 e Lcom/sun/tools/classfile/ConstantPoolException;
Exception table:
from to target type
1 3 6 Class com.sun.tools.classfile.ConstantPoolException
1 3 8 any
6 8 8 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
p
protected java.util.Set<java.lang.String> scan();
descriptor: ()Ljava/util/Set;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield com.sun.tools.jdeps.ClassFileReader.path:Ljava/nio/file/Path;
invokestatic com.sun.tools.classfile.ClassFile.read:(Ljava/nio/file/Path;)Lcom/sun/tools/classfile/ClassFile;
astore 1
start local 1 1: aload 1
getfield com.sun.tools.classfile.ClassFile.access_flags:Lcom/sun/tools/classfile/AccessFlags;
ldc 32768
invokevirtual com.sun.tools.classfile.AccessFlags.is:(I)Z
ifeq 3
2: ldc "module-info"
goto 4
StackMap locals: com.sun.tools.classfile.ClassFile
StackMap stack:
3: aload 1
invokevirtual com.sun.tools.classfile.ClassFile.getName:()Ljava/lang/String;
4: StackMap locals:
StackMap stack: java.lang.String
astore 2
start local 2 5: aload 2
invokestatic java.util.Collections.singleton:(Ljava/lang/Object;)Ljava/util/Set;
6: areturn
end local 2 end local 1 7: StackMap locals: com.sun.tools.jdeps.ClassFileReader
StackMap stack: java.lang.Exception
astore 1
start local 1 8: new com.sun.tools.classfile.Dependencies$ClassFileError
dup
aload 1
invokespecial com.sun.tools.classfile.Dependencies$ClassFileError.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/sun/tools/jdeps/ClassFileReader;
1 7 1 cf Lcom/sun/tools/classfile/ClassFile;
5 7 2 name Ljava/lang/String;
8 9 1 e Ljava/lang/Exception;
Exception table:
from to target type
0 6 7 Class com.sun.tools.classfile.ConstantPoolException
0 6 7 Class java.io.IOException
Signature: ()Ljava/util/Set<Ljava/lang/String;>;
static boolean isClass(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Z
flags: (0x0008) 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
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 file Ljava/nio/file/Path;
1 2 1 fn Ljava/lang/String;
MethodParameters:
Name Flags
file
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/tools/jdeps/ClassFileReader;
Exceptions:
throws java.io.IOException
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.tools.jdeps.ClassFileReader.path:Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/tools/jdeps/ClassFileReader;
}
SourceFile: "ClassFileReader.java"
NestMembers:
com.sun.tools.jdeps.ClassFileReader$DirectoryReader com.sun.tools.jdeps.ClassFileReader$DirectoryReader$DirectoryIterator com.sun.tools.jdeps.ClassFileReader$FileIterator com.sun.tools.jdeps.ClassFileReader$JarFileIterator com.sun.tools.jdeps.ClassFileReader$JarFileReader
InnerClasses:
public ClassFileError = com.sun.tools.classfile.Dependencies$ClassFileError of com.sun.tools.classfile.Dependencies
private DirectoryReader = com.sun.tools.jdeps.ClassFileReader$DirectoryReader of com.sun.tools.jdeps.ClassFileReader
FileIterator = com.sun.tools.jdeps.ClassFileReader$FileIterator of com.sun.tools.jdeps.ClassFileReader
JarFileIterator = com.sun.tools.jdeps.ClassFileReader$JarFileIterator of com.sun.tools.jdeps.ClassFileReader
JarFileReader = com.sun.tools.jdeps.ClassFileReader$JarFileReader of com.sun.tools.jdeps.ClassFileReader
public final Version = java.lang.Runtime$Version of java.lang.Runtime
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles