public class java.io.File implements java.io.Serializable, java.lang.Comparable<java.io.File>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: java.io.File
super_class: java.lang.Object
{
private static final java.io.FileSystem fs;
descriptor: Ljava/io/FileSystem;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.lang.String path;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private transient java.io.File$PathStatus status;
descriptor: Ljava/io/File$PathStatus;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private final transient int prefixLength;
descriptor: I
flags: (0x0092) ACC_PRIVATE, ACC_FINAL, ACC_TRANSIENT
public static final char separatorChar;
descriptor: C
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final java.lang.String separator;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final char pathSeparatorChar;
descriptor: C
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final java.lang.String pathSeparator;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private static final jdk.internal.misc.Unsafe UNSAFE;
descriptor: Ljdk/internal/misc/Unsafe;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final long PATH_OFFSET;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final long PREFIX_LENGTH_OFFSET;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 301077366599181567
private volatile transient java.nio.file.Path filePath;
descriptor: Ljava/nio/file/Path;
flags: (0x00c2) ACC_PRIVATE, ACC_VOLATILE, ACC_TRANSIENT
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: ldc Ljava/io/File;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic java.io.File.$assertionsDisabled:Z
3: invokestatic java.io.DefaultFileSystem.getFileSystem:()Ljava/io/FileSystem;
putstatic java.io.File.fs:Ljava/io/FileSystem;
4: getstatic java.io.File.fs:Ljava/io/FileSystem;
invokevirtual java.io.FileSystem.getSeparator:()C
putstatic java.io.File.separatorChar:C
5: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
getstatic java.io.File.separatorChar:C
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putstatic java.io.File.separator:Ljava/lang/String;
6: getstatic java.io.File.fs:Ljava/io/FileSystem;
invokevirtual java.io.FileSystem.getPathSeparator:()C
putstatic java.io.File.pathSeparatorChar:C
7: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
getstatic java.io.File.pathSeparatorChar:C
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putstatic java.io.File.pathSeparator:Ljava/lang/String;
8: invokestatic jdk.internal.misc.Unsafe.getUnsafe:()Ljdk/internal/misc/Unsafe;
9: putstatic java.io.File.UNSAFE:Ljdk/internal/misc/Unsafe;
10: getstatic java.io.File.UNSAFE:Ljdk/internal/misc/Unsafe;
ldc Ljava/io/File;
ldc "path"
invokevirtual jdk.internal.misc.Unsafe.objectFieldOffset:(Ljava/lang/Class;Ljava/lang/String;)J
11: putstatic java.io.File.PATH_OFFSET:J
12: getstatic java.io.File.UNSAFE:Ljdk/internal/misc/Unsafe;
ldc Ljava/io/File;
ldc "prefixLength"
invokevirtual jdk.internal.misc.Unsafe.objectFieldOffset:(Ljava/lang/Class;Ljava/lang/String;)J
13: putstatic java.io.File.PREFIX_LENGTH_OFFSET:J
14: return
LocalVariableTable:
Start End Slot Name Signature
final boolean isInvalid();
descriptor: ()Z
flags: (0x0010) ACC_FINAL
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield java.io.File.status:Ljava/io/File$PathStatus;
astore 1
start local 1 1: aload 1
ifnonnull 6
2: aload 0
getfield java.io.File.path:Ljava/lang/String;
iconst_0
invokevirtual java.lang.String.indexOf:(I)I
ifge 3
getstatic java.io.File$PathStatus.CHECKED:Ljava/io/File$PathStatus;
goto 4
3: StackMap locals: java.io.File$PathStatus
StackMap stack:
getstatic java.io.File$PathStatus.INVALID:Ljava/io/File$PathStatus;
4: StackMap locals:
StackMap stack: java.io.File$PathStatus
astore 1
5: aload 0
aload 1
putfield java.io.File.status:Ljava/io/File$PathStatus;
6: StackMap locals:
StackMap stack:
aload 1
getstatic java.io.File$PathStatus.INVALID:Ljava/io/File$PathStatus;
if_acmpne 7
iconst_1
ireturn
StackMap locals:
StackMap stack:
7: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljava/io/File;
1 8 1 s Ljava/io/File$PathStatus;
int getPrefixLength();
descriptor: ()I
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.io.File.prefixLength:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/io/File;
private void <init>(java.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0002) ACC_PRIVATE
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
aconst_null
putfield java.io.File.status:Ljava/io/File$PathStatus;
2: aload 0
aload 1
putfield java.io.File.path:Ljava/lang/String;
3: aload 0
iload 2
putfield java.io.File.prefixLength:I
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/io/File;
0 5 1 pathname Ljava/lang/String;
0 5 2 prefixLength I
MethodParameters:
Name Flags
pathname
prefixLength
private void <init>(java.lang.String, java.io.File);
descriptor: (Ljava/lang/String;Ljava/io/File;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, 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
aconst_null
putfield java.io.File.status:Ljava/io/File$PathStatus;
2: getstatic java.io.File.$assertionsDisabled:Z
ifne 3
aload 2
getfield java.io.File.path:Ljava/lang/String;
ifnonnull 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals: java.io.File java.lang.String java.io.File
StackMap stack:
getstatic java.io.File.$assertionsDisabled:Z
ifne 4
aload 2
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.lang.String.isEmpty:()Z
ifeq 4
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 2
getfield java.io.File.path:Ljava/lang/String;
aload 1
invokevirtual java.io.FileSystem.resolve:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
putfield java.io.File.path:Ljava/lang/String;
5: aload 0
aload 2
getfield java.io.File.prefixLength:I
putfield java.io.File.prefixLength:I
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/io/File;
0 7 1 child Ljava/lang/String;
0 7 2 parent Ljava/io/File;
MethodParameters:
Name Flags
child
parent
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
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
aconst_null
putfield java.io.File.status:Ljava/io/File$PathStatus;
2: aload 1
ifnonnull 4
3: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
4: StackMap locals: java.io.File java.lang.String
StackMap stack:
aload 0
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 1
invokevirtual java.io.FileSystem.normalize:(Ljava/lang/String;)Ljava/lang/String;
putfield java.io.File.path:Ljava/lang/String;
5: aload 0
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.io.FileSystem.prefixLength:(Ljava/lang/String;)I
putfield java.io.File.prefixLength:I
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/io/File;
0 7 1 pathname Ljava/lang/String;
MethodParameters:
Name Flags
pathname
public void <init>(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, 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
aconst_null
putfield java.io.File.status:Ljava/io/File$PathStatus;
2: aload 2
ifnonnull 4
3: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
4: StackMap locals: java.io.File java.lang.String java.lang.String
StackMap stack:
aload 1
ifnull 14
5: aload 1
invokevirtual java.lang.String.isEmpty:()Z
ifeq 10
6: aload 0
getstatic java.io.File.fs:Ljava/io/FileSystem;
getstatic java.io.File.fs:Ljava/io/FileSystem;
invokevirtual java.io.FileSystem.getDefaultParent:()Ljava/lang/String;
7: getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 2
invokevirtual java.io.FileSystem.normalize:(Ljava/lang/String;)Ljava/lang/String;
8: invokevirtual java.io.FileSystem.resolve:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
putfield java.io.File.path:Ljava/lang/String;
9: goto 15
10: StackMap locals:
StackMap stack:
aload 0
getstatic java.io.File.fs:Ljava/io/FileSystem;
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 1
invokevirtual java.io.FileSystem.normalize:(Ljava/lang/String;)Ljava/lang/String;
11: getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 2
invokevirtual java.io.FileSystem.normalize:(Ljava/lang/String;)Ljava/lang/String;
12: invokevirtual java.io.FileSystem.resolve:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
putfield java.io.File.path:Ljava/lang/String;
13: goto 15
14: StackMap locals:
StackMap stack:
aload 0
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 2
invokevirtual java.io.FileSystem.normalize:(Ljava/lang/String;)Ljava/lang/String;
putfield java.io.File.path:Ljava/lang/String;
15: StackMap locals:
StackMap stack:
aload 0
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.io.FileSystem.prefixLength:(Ljava/lang/String;)I
putfield java.io.File.prefixLength:I
16: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljava/io/File;
0 17 1 parent Ljava/lang/String;
0 17 2 child Ljava/lang/String;
MethodParameters:
Name Flags
parent
child
public void <init>(java.io.File, java.lang.String);
descriptor: (Ljava/io/File;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, 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
aconst_null
putfield java.io.File.status:Ljava/io/File$PathStatus;
2: aload 2
ifnonnull 4
3: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
4: StackMap locals: java.io.File java.io.File java.lang.String
StackMap stack:
aload 1
ifnull 14
5: aload 1
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.lang.String.isEmpty:()Z
ifeq 10
6: aload 0
getstatic java.io.File.fs:Ljava/io/FileSystem;
getstatic java.io.File.fs:Ljava/io/FileSystem;
invokevirtual java.io.FileSystem.getDefaultParent:()Ljava/lang/String;
7: getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 2
invokevirtual java.io.FileSystem.normalize:(Ljava/lang/String;)Ljava/lang/String;
8: invokevirtual java.io.FileSystem.resolve:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
putfield java.io.File.path:Ljava/lang/String;
9: goto 15
10: StackMap locals:
StackMap stack:
aload 0
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 1
getfield java.io.File.path:Ljava/lang/String;
11: getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 2
invokevirtual java.io.FileSystem.normalize:(Ljava/lang/String;)Ljava/lang/String;
12: invokevirtual java.io.FileSystem.resolve:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
putfield java.io.File.path:Ljava/lang/String;
13: goto 15
14: StackMap locals:
StackMap stack:
aload 0
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 2
invokevirtual java.io.FileSystem.normalize:(Ljava/lang/String;)Ljava/lang/String;
putfield java.io.File.path:Ljava/lang/String;
15: StackMap locals:
StackMap stack:
aload 0
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.io.FileSystem.prefixLength:(Ljava/lang/String;)I
putfield java.io.File.prefixLength:I
16: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljava/io/File;
0 17 1 parent Ljava/io/File;
0 17 2 child Ljava/lang/String;
MethodParameters:
Name Flags
parent
child
public void <init>(java.net.URI);
descriptor: (Ljava/net/URI;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield java.io.File.status:Ljava/io/File$PathStatus;
2: aload 1
invokevirtual java.net.URI.isAbsolute:()Z
ifne 4
3: new java.lang.IllegalArgumentException
dup
ldc "URI is not absolute"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: java.io.File java.net.URI
StackMap stack:
aload 1
invokevirtual java.net.URI.isOpaque:()Z
ifeq 6
5: new java.lang.IllegalArgumentException
dup
ldc "URI is not hierarchical"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.net.URI.getScheme:()Ljava/lang/String;
astore 2
start local 2 7: aload 2
ifnull 8
aload 2
ldc "file"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 9
8: StackMap locals: java.lang.String
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "URI scheme is not \"file\""
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.net.URI.getRawAuthority:()Ljava/lang/String;
ifnull 11
10: new java.lang.IllegalArgumentException
dup
ldc "URI has an authority component"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.net.URI.getRawFragment:()Ljava/lang/String;
ifnull 13
12: new java.lang.IllegalArgumentException
dup
ldc "URI has a fragment component"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.net.URI.getRawQuery:()Ljava/lang/String;
ifnull 15
14: new java.lang.IllegalArgumentException
dup
ldc "URI has a query component"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.net.URI.getPath:()Ljava/lang/String;
astore 3
start local 3 16: aload 3
invokevirtual java.lang.String.isEmpty:()Z
ifeq 18
17: new java.lang.IllegalArgumentException
dup
ldc "URI path component is empty"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
18: StackMap locals: java.lang.String
StackMap stack:
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 3
invokevirtual java.io.FileSystem.fromURIPath:(Ljava/lang/String;)Ljava/lang/String;
astore 3
19: getstatic java.io.File.separatorChar:C
bipush 47
if_icmpeq 21
20: aload 3
bipush 47
getstatic java.io.File.separatorChar:C
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
astore 3
21: StackMap locals:
StackMap stack:
aload 0
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 3
invokevirtual java.io.FileSystem.normalize:(Ljava/lang/String;)Ljava/lang/String;
putfield java.io.File.path:Ljava/lang/String;
22: aload 0
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.io.FileSystem.prefixLength:(Ljava/lang/String;)I
putfield java.io.File.prefixLength:I
23: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Ljava/io/File;
0 24 1 uri Ljava/net/URI;
7 24 2 scheme Ljava/lang/String;
16 24 3 p Ljava/lang/String;
MethodParameters:
Name Flags
uri
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield java.io.File.path:Ljava/lang/String;
getstatic java.io.File.separatorChar:C
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 1
start local 1 1: iload 1
aload 0
getfield java.io.File.prefixLength:I
if_icmpge 2
aload 0
getfield java.io.File.path:Ljava/lang/String;
aload 0
getfield java.io.File.prefixLength:I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
areturn
2: StackMap locals: int
StackMap stack:
aload 0
getfield java.io.File.path:Ljava/lang/String;
iload 1
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/io/File;
1 3 1 index I
public java.lang.String getParent();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield java.io.File.path:Ljava/lang/String;
getstatic java.io.File.separatorChar:C
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 1
start local 1 1: iload 1
aload 0
getfield java.io.File.prefixLength:I
if_icmpge 5
2: aload 0
getfield java.io.File.prefixLength:I
ifle 4
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
aload 0
getfield java.io.File.prefixLength:I
if_icmple 4
3: aload 0
getfield java.io.File.path:Ljava/lang/String;
iconst_0
aload 0
getfield java.io.File.prefixLength:I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
areturn
4: StackMap locals: int
StackMap stack:
aconst_null
areturn
5: StackMap locals:
StackMap stack:
aload 0
getfield java.io.File.path:Ljava/lang/String;
iconst_0
iload 1
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/io/File;
1 6 1 index I
public java.io.File getParentFile();
descriptor: ()Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.io.File.getParent:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnonnull 2
aconst_null
areturn
2: StackMap locals: java.lang.String
StackMap stack:
new java.io.File
dup
aload 1
aload 0
getfield java.io.File.prefixLength:I
invokespecial java.io.File.<init>:(Ljava/lang/String;I)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/io/File;
1 3 1 p Ljava/lang/String;
public java.lang.String getPath();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.io.File.path:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/io/File;
public boolean isAbsolute();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
invokevirtual java.io.FileSystem.isAbsolute:(Ljava/io/File;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/io/File;
public java.lang.String getAbsolutePath();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
invokevirtual java.io.FileSystem.resolve:(Ljava/io/File;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/io/File;
public java.io.File getAbsoluteFile();
descriptor: ()Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
astore 1
start local 1 1: new java.io.File
dup
aload 1
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 1
invokevirtual java.io.FileSystem.prefixLength:(Ljava/lang/String;)I
invokespecial java.io.File.<init>:(Ljava/lang/String;I)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/io/File;
1 2 1 absPath Ljava/lang/String;
public java.lang.String getCanonicalPath();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.io.File.isInvalid:()Z
ifeq 2
1: new java.io.IOException
dup
ldc "Invalid file path"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
getstatic java.io.File.fs:Ljava/io/FileSystem;
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
invokevirtual java.io.FileSystem.resolve:(Ljava/io/File;)Ljava/lang/String;
invokevirtual java.io.FileSystem.canonicalize:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/io/File;
Exceptions:
throws java.io.IOException
public java.io.File getCanonicalFile();
descriptor: ()Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.io.File.getCanonicalPath:()Ljava/lang/String;
astore 1
start local 1 1: new java.io.File
dup
aload 1
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 1
invokevirtual java.io.FileSystem.prefixLength:(Ljava/lang/String;)I
invokespecial java.io.File.<init>:(Ljava/lang/String;I)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/io/File;
1 2 1 canonPath Ljava/lang/String;
Exceptions:
throws java.io.IOException
private static java.lang.String slashify(java.lang.String, boolean);
descriptor: (Ljava/lang/String;Z)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
astore 2
start local 2 1: getstatic java.io.File.separatorChar:C
bipush 47
if_icmpeq 3
2: aload 2
getstatic java.io.File.separatorChar:C
bipush 47
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
astore 2
3: StackMap locals: java.lang.String
StackMap stack:
aload 2
ldc "/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 5
4: new java.lang.StringBuilder
dup
ldc "/"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
5: StackMap locals:
StackMap stack:
aload 2
ldc "/"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 7
iload 1
ifeq 7
6: new java.lang.StringBuilder
dup
aload 2
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;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
7: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 path Ljava/lang/String;
0 8 1 isDirectory Z
1 8 2 p Ljava/lang/String;
MethodParameters:
Name Flags
path
isDirectory
public java.net.URL toURL();
descriptor: ()Ljava/net/URL;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.io.File.isInvalid:()Z
ifeq 2
1: new java.net.MalformedURLException
dup
ldc "Invalid file path"
invokespecial java.net.MalformedURLException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new java.net.URL
dup
ldc "file"
ldc ""
aload 0
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
aload 0
invokevirtual java.io.File.isDirectory:()Z
invokestatic java.io.File.slashify:(Ljava/lang/String;Z)Ljava/lang/String;
invokespecial java.net.URL.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/io/File;
Exceptions:
throws java.net.MalformedURLException
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public java.net.URI toURI();
descriptor: ()Ljava/net/URI;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual java.io.File.getAbsoluteFile:()Ljava/io/File;
astore 1
start local 1 1: aload 1
invokevirtual java.io.File.getPath:()Ljava/lang/String;
aload 1
invokevirtual java.io.File.isDirectory:()Z
invokestatic java.io.File.slashify:(Ljava/lang/String;Z)Ljava/lang/String;
astore 2
start local 2 2: aload 2
ldc "//"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 4
3: new java.lang.StringBuilder
dup
ldc "//"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
4: StackMap locals: java.io.File java.lang.String
StackMap stack:
new java.net.URI
dup
ldc "file"
aconst_null
aload 2
aconst_null
invokespecial java.net.URI.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
5: areturn
end local 2 end local 1 6: StackMap locals: java.io.File
StackMap stack: java.net.URISyntaxException
astore 1
start local 1 7: new java.lang.Error
dup
aload 1
invokespecial java.lang.Error.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljava/io/File;
1 6 1 f Ljava/io/File;
2 6 2 sp Ljava/lang/String;
7 8 1 x Ljava/net/URISyntaxException;
Exception table:
from to target type
0 5 6 Class java.net.URISyntaxException
public boolean canRead();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.lang.SecurityManager.checkRead:(Ljava/lang/String;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
invokevirtual java.io.File.isInvalid:()Z
ifeq 5
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
iconst_4
invokevirtual java.io.FileSystem.checkAccess:(Ljava/io/File;I)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/io/File;
1 6 1 security Ljava/lang/SecurityManager;
public boolean canWrite();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.lang.SecurityManager.checkWrite:(Ljava/lang/String;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
invokevirtual java.io.File.isInvalid:()Z
ifeq 5
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
iconst_2
invokevirtual java.io.FileSystem.checkAccess:(Ljava/io/File;I)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/io/File;
1 6 1 security Ljava/lang/SecurityManager;
public boolean exists();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.lang.SecurityManager.checkRead:(Ljava/lang/String;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
invokevirtual java.io.File.isInvalid:()Z
ifeq 5
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
iconst_1
invokevirtual java.io.FileSystem.hasBooleanAttributes:(Ljava/io/File;I)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/io/File;
1 6 1 security Ljava/lang/SecurityManager;
public boolean isDirectory();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.lang.SecurityManager.checkRead:(Ljava/lang/String;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
invokevirtual java.io.File.isInvalid:()Z
ifeq 5
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
iconst_4
invokevirtual java.io.FileSystem.hasBooleanAttributes:(Ljava/io/File;I)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/io/File;
1 6 1 security Ljava/lang/SecurityManager;
public boolean isFile();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.lang.SecurityManager.checkRead:(Ljava/lang/String;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
invokevirtual java.io.File.isInvalid:()Z
ifeq 5
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
iconst_2
invokevirtual java.io.FileSystem.hasBooleanAttributes:(Ljava/io/File;I)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/io/File;
1 6 1 security Ljava/lang/SecurityManager;
public boolean isHidden();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.lang.SecurityManager.checkRead:(Ljava/lang/String;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
invokevirtual java.io.File.isInvalid:()Z
ifeq 5
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
bipush 8
invokevirtual java.io.FileSystem.hasBooleanAttributes:(Ljava/io/File;I)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/io/File;
1 6 1 security Ljava/lang/SecurityManager;
public long lastModified();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.lang.SecurityManager.checkRead:(Ljava/lang/String;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
invokevirtual java.io.File.isInvalid:()Z
ifeq 5
4: lconst_0
lreturn
5: StackMap locals:
StackMap stack:
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
invokevirtual java.io.FileSystem.getLastModifiedTime:(Ljava/io/File;)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/io/File;
1 6 1 security Ljava/lang/SecurityManager;
public long length();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.lang.SecurityManager.checkRead:(Ljava/lang/String;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
invokevirtual java.io.File.isInvalid:()Z
ifeq 5
4: lconst_0
lreturn
5: StackMap locals:
StackMap stack:
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
invokevirtual java.io.FileSystem.getLength:(Ljava/io/File;)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/io/File;
1 6 1 security Ljava/lang/SecurityManager;
public boolean createNewFile();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.lang.SecurityManager.checkWrite:(Ljava/lang/String;)V
2: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
invokevirtual java.io.File.isInvalid:()Z
ifeq 4
3: new java.io.IOException
dup
ldc "Invalid file path"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.io.FileSystem.createFileExclusively:(Ljava/lang/String;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/io/File;
1 5 1 security Ljava/lang/SecurityManager;
Exceptions:
throws java.io.IOException
public boolean delete();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.lang.SecurityManager.checkDelete:(Ljava/lang/String;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
invokevirtual java.io.File.isInvalid:()Z
ifeq 5
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
invokevirtual java.io.FileSystem.delete:(Ljava/io/File;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/io/File;
1 6 1 security Ljava/lang/SecurityManager;
public void deleteOnExit();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.lang.SecurityManager.checkDelete:(Ljava/lang/String;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
invokevirtual java.io.File.isInvalid:()Z
ifeq 5
4: return
5: StackMap locals:
StackMap stack:
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokestatic java.io.DeleteOnExitHook.add:(Ljava/lang/String;)V
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/io/File;
1 7 1 security Ljava/lang/SecurityManager;
public java.lang.String[] list();
descriptor: ()[Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.lang.SecurityManager.checkRead:(Ljava/lang/String;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
invokevirtual java.io.File.isInvalid:()Z
ifeq 5
4: aconst_null
areturn
5: StackMap locals:
StackMap stack:
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
invokevirtual java.io.FileSystem.list:(Ljava/io/File;)[Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/io/File;
1 6 1 security Ljava/lang/SecurityManager;
public java.lang.String[] list(java.io.FilenameFilter);
descriptor: (Ljava/io/FilenameFilter;)[Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.io.File.list:()[Ljava/lang/String;
astore 2
start local 2 1: aload 2
ifnull 2
aload 1
ifnonnull 3
2: StackMap locals: java.lang.String[]
StackMap stack:
aload 2
areturn
3: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 3
start local 3 4: iconst_0
istore 4
start local 4 5: goto 9
6: StackMap locals: java.util.List int
StackMap stack:
aload 1
aload 0
aload 2
iload 4
aaload
invokeinterface java.io.FilenameFilter.accept:(Ljava/io/File;Ljava/lang/String;)Z
ifeq 8
7: aload 3
aload 2
iload 4
aaload
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
8: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
9: iload 4
aload 2
arraylength
if_icmplt 6
end local 4 10: aload 3
aload 3
invokeinterface java.util.List.size:()I
anewarray java.lang.String
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.lang.String[]
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljava/io/File;
0 11 1 filter Ljava/io/FilenameFilter;
1 11 2 names [Ljava/lang/String;
4 11 3 v Ljava/util/List<Ljava/lang/String;>;
5 10 4 i I
MethodParameters:
Name Flags
filter
public java.io.File[] listFiles();
descriptor: ()[Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=1
start local 0 0: aload 0
invokevirtual java.io.File.list:()[Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnonnull 2
aconst_null
areturn
2: StackMap locals: java.lang.String[]
StackMap stack:
aload 1
arraylength
istore 2
start local 2 3: iload 2
anewarray java.io.File
astore 3
start local 3 4: iconst_0
istore 4
start local 4 5: goto 8
6: StackMap locals: int java.io.File[] int
StackMap stack:
aload 3
iload 4
new java.io.File
dup
aload 1
iload 4
aaload
aload 0
invokespecial java.io.File.<init>:(Ljava/lang/String;Ljava/io/File;)V
aastore
7: iinc 4 1
StackMap locals:
StackMap stack:
8: iload 4
iload 2
if_icmplt 6
end local 4 9: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/io/File;
1 10 1 ss [Ljava/lang/String;
3 10 2 n I
4 10 3 fs [Ljava/io/File;
5 9 4 i I
public java.io.File[] listFiles(java.io.FilenameFilter);
descriptor: (Ljava/io/FilenameFilter;)[Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.io.File.list:()[Ljava/lang/String;
astore 2
start local 2 1: aload 2
ifnonnull 2
aconst_null
areturn
2: StackMap locals: java.lang.String[]
StackMap stack:
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 3
start local 3 3: aload 2
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 8
StackMap locals: java.io.File java.io.FilenameFilter java.lang.String[] java.util.ArrayList top int int java.lang.String[]
StackMap stack:
4: aload 7
iload 5
aaload
astore 4
start local 4 5: aload 1
ifnull 6
aload 1
aload 0
aload 4
invokeinterface java.io.FilenameFilter.accept:(Ljava/io/File;Ljava/lang/String;)Z
ifeq 7
6: StackMap locals: java.io.File java.io.FilenameFilter java.lang.String[] java.util.ArrayList java.lang.String int int java.lang.String[]
StackMap stack:
aload 3
new java.io.File
dup
aload 4
aload 0
invokespecial java.io.File.<init>:(Ljava/lang/String;Ljava/io/File;)V
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
end local 4 7: StackMap locals: java.io.File java.io.FilenameFilter java.lang.String[] java.util.ArrayList top int int java.lang.String[]
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
8: iload 5
iload 6
if_icmplt 4
9: aload 3
aload 3
invokevirtual java.util.ArrayList.size:()I
anewarray java.io.File
invokevirtual java.util.ArrayList.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.io.File[]
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/io/File;
0 10 1 filter Ljava/io/FilenameFilter;
1 10 2 ss [Ljava/lang/String;
3 10 3 files Ljava/util/ArrayList<Ljava/io/File;>;
5 7 4 s Ljava/lang/String;
MethodParameters:
Name Flags
filter
public java.io.File[] listFiles(java.io.FileFilter);
descriptor: (Ljava/io/FileFilter;)[Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=9, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.io.File.list:()[Ljava/lang/String;
astore 2
start local 2 1: aload 2
ifnonnull 2
aconst_null
areturn
2: StackMap locals: java.lang.String[]
StackMap stack:
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 3
start local 3 3: aload 2
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 9
StackMap locals: java.io.File java.io.FileFilter java.lang.String[] java.util.ArrayList top int int java.lang.String[]
StackMap stack:
4: aload 7
iload 5
aaload
astore 4
start local 4 5: new java.io.File
dup
aload 4
aload 0
invokespecial java.io.File.<init>:(Ljava/lang/String;Ljava/io/File;)V
astore 8
start local 8 6: aload 1
ifnull 7
aload 1
aload 8
invokeinterface java.io.FileFilter.accept:(Ljava/io/File;)Z
ifeq 8
7: StackMap locals: java.io.File java.io.FileFilter java.lang.String[] java.util.ArrayList java.lang.String int int java.lang.String[] java.io.File
StackMap stack:
aload 3
aload 8
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
end local 8 end local 4 8: StackMap locals: java.io.File java.io.FileFilter java.lang.String[] java.util.ArrayList top int int java.lang.String[]
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
9: iload 5
iload 6
if_icmplt 4
10: aload 3
aload 3
invokevirtual java.util.ArrayList.size:()I
anewarray java.io.File
invokevirtual java.util.ArrayList.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.io.File[]
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljava/io/File;
0 11 1 filter Ljava/io/FileFilter;
1 11 2 ss [Ljava/lang/String;
3 11 3 files Ljava/util/ArrayList<Ljava/io/File;>;
5 8 4 s Ljava/lang/String;
6 8 8 f Ljava/io/File;
MethodParameters:
Name Flags
filter
public boolean mkdir();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.lang.SecurityManager.checkWrite:(Ljava/lang/String;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
invokevirtual java.io.File.isInvalid:()Z
ifeq 5
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
invokevirtual java.io.FileSystem.createDirectory:(Ljava/io/File;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/io/File;
1 6 1 security Ljava/lang/SecurityManager;
public boolean mkdirs();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual java.io.File.exists:()Z
ifeq 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.io.File.mkdir:()Z
ifeq 4
3: iconst_1
ireturn
4: StackMap locals:
StackMap stack:
aconst_null
astore 1
start local 1 5: aload 0
invokevirtual java.io.File.getCanonicalFile:()Ljava/io/File;
astore 1
6: goto 9
StackMap locals: java.io.File java.io.File
StackMap stack: java.io.IOException
7: pop
8: iconst_0
ireturn
9: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.io.File.getParentFile:()Ljava/io/File;
astore 2
start local 2 10: aload 2
ifnull 13
aload 2
invokevirtual java.io.File.mkdirs:()Z
ifne 11
aload 2
invokevirtual java.io.File.exists:()Z
ifeq 13
11: StackMap locals: java.io.File
StackMap stack:
aload 1
invokevirtual java.io.File.mkdir:()Z
ifeq 13
12: iconst_1
ireturn
StackMap locals:
StackMap stack:
13: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljava/io/File;
5 14 1 canonFile Ljava/io/File;
10 14 2 parent Ljava/io/File;
Exception table:
from to target type
5 6 7 Class java.io.IOException
public boolean renameTo(java.io.File);
descriptor: (Ljava/io/File;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 2
start local 2 3: aload 2
ifnull 6
4: aload 2
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.lang.SecurityManager.checkWrite:(Ljava/lang/String;)V
5: aload 2
aload 1
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.lang.SecurityManager.checkWrite:(Ljava/lang/String;)V
6: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
invokevirtual java.io.File.isInvalid:()Z
ifne 7
aload 1
invokevirtual java.io.File.isInvalid:()Z
ifeq 8
7: StackMap locals:
StackMap stack:
iconst_0
ireturn
8: StackMap locals:
StackMap stack:
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
aload 1
invokevirtual java.io.FileSystem.rename:(Ljava/io/File;Ljava/io/File;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljava/io/File;
0 9 1 dest Ljava/io/File;
3 9 2 security Ljava/lang/SecurityManager;
MethodParameters:
Name Flags
dest
public boolean setLastModified(long);
descriptor: (J)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: lload 1
lconst_0
lcmp
ifge 1
new java.lang.IllegalArgumentException
dup
ldc "Negative time"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
1: StackMap locals:
StackMap stack:
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 3
start local 3 2: aload 3
ifnull 4
3: aload 3
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.lang.SecurityManager.checkWrite:(Ljava/lang/String;)V
4: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
invokevirtual java.io.File.isInvalid:()Z
ifeq 6
5: iconst_0
ireturn
6: StackMap locals:
StackMap stack:
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
lload 1
invokevirtual java.io.FileSystem.setLastModifiedTime:(Ljava/io/File;J)Z
ireturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/io/File;
0 7 1 time J
2 7 3 security Ljava/lang/SecurityManager;
MethodParameters:
Name Flags
time
public boolean setReadOnly();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.lang.SecurityManager.checkWrite:(Ljava/lang/String;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
invokevirtual java.io.File.isInvalid:()Z
ifeq 5
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
invokevirtual java.io.FileSystem.setReadOnly:(Ljava/io/File;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/io/File;
1 6 1 security Ljava/lang/SecurityManager;
public boolean setWritable(boolean, boolean);
descriptor: (ZZ)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 3
start local 3 1: aload 3
ifnull 3
2: aload 3
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.lang.SecurityManager.checkWrite:(Ljava/lang/String;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
invokevirtual java.io.File.isInvalid:()Z
ifeq 5
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
iconst_2
iload 1
iload 2
invokevirtual java.io.FileSystem.setPermission:(Ljava/io/File;IZZ)Z
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/io/File;
0 6 1 writable Z
0 6 2 ownerOnly Z
1 6 3 security Ljava/lang/SecurityManager;
MethodParameters:
Name Flags
writable
ownerOnly
public boolean setWritable(boolean);
descriptor: (Z)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
iconst_1
invokevirtual java.io.File.setWritable:(ZZ)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/io/File;
0 1 1 writable Z
MethodParameters:
Name Flags
writable
public boolean setReadable(boolean, boolean);
descriptor: (ZZ)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 3
start local 3 1: aload 3
ifnull 3
2: aload 3
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.lang.SecurityManager.checkWrite:(Ljava/lang/String;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
invokevirtual java.io.File.isInvalid:()Z
ifeq 5
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
iconst_4
iload 1
iload 2
invokevirtual java.io.FileSystem.setPermission:(Ljava/io/File;IZZ)Z
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/io/File;
0 6 1 readable Z
0 6 2 ownerOnly Z
1 6 3 security Ljava/lang/SecurityManager;
MethodParameters:
Name Flags
readable
ownerOnly
public boolean setReadable(boolean);
descriptor: (Z)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
iconst_1
invokevirtual java.io.File.setReadable:(ZZ)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/io/File;
0 1 1 readable Z
MethodParameters:
Name Flags
readable
public boolean setExecutable(boolean, boolean);
descriptor: (ZZ)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 3
start local 3 1: aload 3
ifnull 3
2: aload 3
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.lang.SecurityManager.checkWrite:(Ljava/lang/String;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
invokevirtual java.io.File.isInvalid:()Z
ifeq 5
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
iconst_1
iload 1
iload 2
invokevirtual java.io.FileSystem.setPermission:(Ljava/io/File;IZZ)Z
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/io/File;
0 6 1 executable Z
0 6 2 ownerOnly Z
1 6 3 security Ljava/lang/SecurityManager;
MethodParameters:
Name Flags
executable
ownerOnly
public boolean setExecutable(boolean);
descriptor: (Z)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
iconst_1
invokevirtual java.io.File.setExecutable:(ZZ)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/io/File;
0 1 1 executable Z
MethodParameters:
Name Flags
executable
public boolean canExecute();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.lang.SecurityManager.checkExec:(Ljava/lang/String;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
invokevirtual java.io.File.isInvalid:()Z
ifeq 5
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
iconst_1
invokevirtual java.io.FileSystem.checkAccess:(Ljava/io/File;I)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/io/File;
1 6 1 security Ljava/lang/SecurityManager;
public static java.io.File[] listRoots();
descriptor: ()[Ljava/io/File;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic java.io.File.fs:Ljava/io/FileSystem;
invokevirtual java.io.FileSystem.listRoots:()[Ljava/io/File;
areturn
LocalVariableTable:
Start End Slot Name Signature
public long getTotalSpace();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnull 4
2: aload 1
new java.lang.RuntimePermission
dup
ldc "getFileSystemAttributes"
invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
3: aload 1
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.lang.SecurityManager.checkRead:(Ljava/lang/String;)V
4: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
invokevirtual java.io.File.isInvalid:()Z
ifeq 6
5: lconst_0
lreturn
6: StackMap locals:
StackMap stack:
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
iconst_0
invokevirtual java.io.FileSystem.getSpace:(Ljava/io/File;I)J
lstore 2
start local 2 7: lload 2
lconst_0
lcmp
iflt 8
lload 2
goto 9
StackMap locals: long
StackMap stack:
8: ldc 9223372036854775807
StackMap locals:
StackMap stack: long
9: lreturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/io/File;
1 10 1 sm Ljava/lang/SecurityManager;
7 10 2 space J
public long getFreeSpace();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnull 4
2: aload 1
new java.lang.RuntimePermission
dup
ldc "getFileSystemAttributes"
invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
3: aload 1
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.lang.SecurityManager.checkRead:(Ljava/lang/String;)V
4: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
invokevirtual java.io.File.isInvalid:()Z
ifeq 6
5: lconst_0
lreturn
6: StackMap locals:
StackMap stack:
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
iconst_1
invokevirtual java.io.FileSystem.getSpace:(Ljava/io/File;I)J
lstore 2
start local 2 7: lload 2
lconst_0
lcmp
iflt 8
lload 2
goto 9
StackMap locals: long
StackMap stack:
8: ldc 9223372036854775807
StackMap locals:
StackMap stack: long
9: lreturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/io/File;
1 10 1 sm Ljava/lang/SecurityManager;
7 10 2 space J
public long getUsableSpace();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnull 4
2: aload 1
new java.lang.RuntimePermission
dup
ldc "getFileSystemAttributes"
invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
3: aload 1
aload 0
getfield java.io.File.path:Ljava/lang/String;
invokevirtual java.lang.SecurityManager.checkRead:(Ljava/lang/String;)V
4: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
invokevirtual java.io.File.isInvalid:()Z
ifeq 6
5: lconst_0
lreturn
6: StackMap locals:
StackMap stack:
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
iconst_2
invokevirtual java.io.FileSystem.getSpace:(Ljava/io/File;I)J
lstore 2
start local 2 7: lload 2
lconst_0
lcmp
iflt 8
lload 2
goto 9
StackMap locals: long
StackMap stack:
8: ldc 9223372036854775807
StackMap locals:
StackMap stack: long
9: lreturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/io/File;
1 10 1 sm Ljava/lang/SecurityManager;
7 10 2 space J
public static java.io.File createTempFile(java.lang.String, java.lang.String, java.io.File);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual java.lang.String.length:()I
iconst_3
if_icmpge 4
1: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Prefix string \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: ldc "\" too short: length must be at least 3"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
3: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 1
ifnonnull 6
5: ldc ".tmp"
astore 1
6: StackMap locals:
StackMap stack:
aload 2
ifnull 7
aload 2
goto 8
7: StackMap locals:
StackMap stack:
invokestatic java.io.File$TempDirectory.location:()Ljava/io/File;
8: StackMap locals:
StackMap stack: java.io.File
astore 3
start local 3 9: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 4
start local 4 10: StackMap locals: java.io.File java.lang.SecurityManager
StackMap stack:
aload 0
aload 1
aload 3
invokestatic java.io.File$TempDirectory.generateFile:(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File;
astore 5
start local 5 11: aload 4
ifnull 18
12: aload 4
aload 5
invokevirtual java.io.File.getPath:()Ljava/lang/String;
invokevirtual java.lang.SecurityManager.checkWrite:(Ljava/lang/String;)V
13: goto 18
StackMap locals: java.lang.String java.lang.String java.io.File java.io.File java.lang.SecurityManager java.io.File
StackMap stack: java.lang.SecurityException
14: astore 6
start local 6 15: aload 2
ifnonnull 17
16: new java.lang.SecurityException
dup
ldc "Unable to create temporary file"
invokespecial java.lang.SecurityException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals: java.lang.SecurityException
StackMap stack:
aload 6
athrow
end local 6 18: StackMap locals:
StackMap stack:
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 5
iconst_1
invokevirtual java.io.FileSystem.hasBooleanAttributes:(Ljava/io/File;I)Z
ifne 10
19: getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 5
invokevirtual java.io.File.getPath:()Ljava/lang/String;
invokevirtual java.io.FileSystem.createFileExclusively:(Ljava/lang/String;)Z
ifne 21
20: new java.io.IOException
dup
ldc "Unable to create temporary file"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
21: StackMap locals:
StackMap stack:
aload 5
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 prefix Ljava/lang/String;
0 22 1 suffix Ljava/lang/String;
0 22 2 directory Ljava/io/File;
9 22 3 tmpdir Ljava/io/File;
10 22 4 sm Ljava/lang/SecurityManager;
11 22 5 f Ljava/io/File;
15 18 6 se Ljava/lang/SecurityException;
Exception table:
from to target type
12 13 14 Class java.lang.SecurityException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
prefix
suffix
directory
public static java.io.File createTempFile(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/io/File;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aconst_null
invokestatic java.io.File.createTempFile:(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 prefix Ljava/lang/String;
0 1 1 suffix Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
prefix
suffix
public int compareTo(java.io.File);
descriptor: (Ljava/io/File;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
aload 1
invokevirtual java.io.FileSystem.compare:(Ljava/io/File;Ljava/io/File;)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/io/File;
0 1 1 pathname Ljava/io/File;
MethodParameters:
Name Flags
pathname
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 3
aload 1
instanceof java.io.File
ifeq 3
1: aload 0
aload 1
checkcast java.io.File
invokevirtual java.io.File.compareTo:(Ljava/io/File;)I
ifne 2
iconst_1
ireturn
StackMap locals:
StackMap stack:
2: iconst_0
ireturn
3: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/io/File;
0 4 1 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 0
invokevirtual java.io.FileSystem.hashCode:(Ljava/io/File;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/io/File;
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
invokevirtual java.io.File.getPath:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/io/File;
private synchronized void writeObject(java.io.ObjectOutputStream);
descriptor: (Ljava/io/ObjectOutputStream;)V
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.io.ObjectOutputStream.defaultWriteObject:()V
1: aload 1
getstatic java.io.File.separatorChar:C
invokevirtual java.io.ObjectOutputStream.writeChar:(I)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/io/File;
0 3 1 s Ljava/io/ObjectOutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
s
private synchronized void readObject(java.io.ObjectInputStream);
descriptor: (Ljava/io/ObjectInputStream;)V
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.io.ObjectInputStream.readFields:()Ljava/io/ObjectInputStream$GetField;
astore 2
start local 2 1: aload 2
ldc "path"
aconst_null
invokevirtual java.io.ObjectInputStream$GetField.get:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 2: aload 1
invokevirtual java.io.ObjectInputStream.readChar:()C
istore 4
start local 4 3: iload 4
getstatic java.io.File.separatorChar:C
if_icmpeq 5
4: aload 3
iload 4
getstatic java.io.File.separatorChar:C
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
astore 3
5: StackMap locals: java.io.ObjectInputStream$GetField java.lang.String int
StackMap stack:
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 3
invokevirtual java.io.FileSystem.normalize:(Ljava/lang/String;)Ljava/lang/String;
astore 5
start local 5 6: getstatic java.io.File.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 0
getstatic java.io.File.PATH_OFFSET:J
aload 5
invokevirtual jdk.internal.misc.Unsafe.putReference:(Ljava/lang/Object;JLjava/lang/Object;)V
7: getstatic java.io.File.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 0
getstatic java.io.File.PREFIX_LENGTH_OFFSET:J
getstatic java.io.File.fs:Ljava/io/FileSystem;
aload 5
invokevirtual java.io.FileSystem.prefixLength:(Ljava/lang/String;)I
invokevirtual jdk.internal.misc.Unsafe.putIntVolatile:(Ljava/lang/Object;JI)V
8: return
end local 5 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 Ljava/io/File;
0 9 1 s Ljava/io/ObjectInputStream;
1 9 2 fields Ljava/io/ObjectInputStream$GetField;
2 9 3 pathField Ljava/lang/String;
3 9 4 sep C
6 9 5 path Ljava/lang/String;
Exceptions:
throws java.io.IOException, java.lang.ClassNotFoundException
MethodParameters:
Name Flags
s
public java.nio.file.Path toPath();
descriptor: ()Ljava/nio/file/Path;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield java.io.File.filePath:Ljava/nio/file/Path;
astore 1
start local 1 1: aload 1
ifnonnull 11
2: aload 0
dup
astore 2
monitorenter
3: aload 0
getfield java.io.File.filePath:Ljava/nio/file/Path;
astore 1
4: aload 1
ifnonnull 7
5: invokestatic java.nio.file.FileSystems.getDefault:()Ljava/nio/file/FileSystem;
aload 0
getfield java.io.File.path:Ljava/lang/String;
iconst_0
anewarray java.lang.String
invokevirtual java.nio.file.FileSystem.getPath:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 1
6: aload 0
aload 1
putfield java.io.File.filePath:Ljava/nio/file/Path;
7: StackMap locals: java.nio.file.Path java.io.File
StackMap stack:
aload 2
monitorexit
8: goto 11
StackMap locals:
StackMap stack: java.lang.Throwable
9: aload 2
monitorexit
10: athrow
11: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljava/io/File;
1 12 1 result Ljava/nio/file/Path;
Exception table:
from to target type
3 8 9 any
9 10 9 any
public int compareTo(java.lang.Object);
descriptor: (Ljava/lang/Object;)I
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.io.File
invokevirtual java.io.File.compareTo:(Ljava/io/File;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Ljava/io/Serializable;Ljava/lang/Comparable<Ljava/io/File;>;
SourceFile: "File.java"
NestMembers:
java.io.File$PathStatus java.io.File$TempDirectory
InnerClasses:
private final PathStatus = java.io.File$PathStatus of java.io.File
private TempDirectory = java.io.File$TempDirectory of java.io.File
public abstract GetField = java.io.ObjectInputStream$GetField of java.io.ObjectInputStream