public class org.jruby.util.JRubyFile extends jnr.posix.JavaSecuredFile
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.util.JRubyFile
super_class: jnr.posix.JavaSecuredFile
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 435364547567567
private static final java.util.regex.Pattern windowsComPattern;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public static org.jruby.util.JRubyFile DUMMY;
descriptor: Lorg/jruby/util/JRubyFile;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: ldc "(?:\\/\\/\\.\\/|\\\\\\\\\\.\\\\)?COM\\d\\d?"
iconst_2
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;I)Ljava/util/regex/Pattern;
putstatic org.jruby.util.JRubyFile.windowsComPattern:Ljava/util/regex/Pattern;
1: new org.jruby.util.JRubyFile$1
dup
ldc ""
invokespecial org.jruby.util.JRubyFile$1.<init>:(Ljava/lang/String;)V
putstatic org.jruby.util.JRubyFile.DUMMY:Lorg/jruby/util/JRubyFile;
2: return
LocalVariableTable:
Start End Slot Name Signature
public static org.jruby.util.JRubyFile create(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Lorg/jruby/util/JRubyFile;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 1
invokevirtual java.lang.String.length:()I
ifeq 1
invokestatic org.jruby.Ruby.isSecurityRestricted:()Z
ifeq 2
1: StackMap locals:
StackMap stack:
getstatic org.jruby.util.JRubyFile.DUMMY:Lorg/jruby/util/JRubyFile;
areturn
2: StackMap locals:
StackMap stack:
aload 1
ldc "file:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 4
3: aload 1
iconst_5
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 1
4: StackMap locals:
StackMap stack:
aload 0
aload 1
new java.io.File
dup
aload 1
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokestatic org.jruby.util.JRubyFile.createNoUnicodeConversion:(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Lorg/jruby/util/JRubyFile;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 cwd Ljava/lang/String;
0 5 1 pathname Ljava/lang/String;
MethodParameters:
Name Flags
cwd
pathname
public static org.jruby.util.FileResource createResource(org.jruby.runtime.ThreadContext, java.lang.String);
descriptor: (Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;)Lorg/jruby/util/FileResource;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 1
invokestatic org.jruby.util.JRubyFile.createResource:(Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/jruby/util/FileResource;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 pathname Ljava/lang/String;
MethodParameters:
Name Flags
context
pathname
public static org.jruby.util.FileResource createResourceAsFile(org.jruby.Ruby, java.lang.String);
descriptor: (Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/jruby/util/FileResource;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
invokevirtual org.jruby.Ruby.getCurrentDirectory:()Ljava/lang/String;
aload 1
iconst_1
invokestatic org.jruby.util.JRubyFile.createResource:(Lorg/jruby/Ruby;Ljava/lang/String;Ljava/lang/String;Z)Lorg/jruby/util/FileResource;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 runtime Lorg/jruby/Ruby;
0 1 1 pathname Ljava/lang/String;
MethodParameters:
Name Flags
runtime
pathname
public static org.jruby.util.FileResource createRestrictedResource(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Lorg/jruby/util/FileResource;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aconst_null
aload 0
aload 1
invokestatic org.jruby.util.JRubyFile.createResource:(Lorg/jruby/Ruby;Ljava/lang/String;Ljava/lang/String;)Lorg/jruby/util/FileResource;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 cwd Ljava/lang/String;
0 1 1 pathname Ljava/lang/String;
MethodParameters:
Name Flags
cwd
pathname
public static org.jruby.util.FileResource createResource(org.jruby.Ruby, java.lang.String);
descriptor: (Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/jruby/util/FileResource;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
invokevirtual org.jruby.Ruby.getCurrentDirectory:()Ljava/lang/String;
aload 1
iconst_0
invokestatic org.jruby.util.JRubyFile.createResource:(Lorg/jruby/Ruby;Ljava/lang/String;Ljava/lang/String;Z)Lorg/jruby/util/FileResource;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 runtime Lorg/jruby/Ruby;
0 1 1 pathname Ljava/lang/String;
MethodParameters:
Name Flags
runtime
pathname
public static org.jruby.util.FileResource createResource(org.jruby.Ruby, java.lang.String, java.lang.String);
descriptor: (Lorg/jruby/Ruby;Ljava/lang/String;Ljava/lang/String;)Lorg/jruby/util/FileResource;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_0
invokestatic org.jruby.util.JRubyFile.createResource:(Lorg/jruby/Ruby;Ljava/lang/String;Ljava/lang/String;Z)Lorg/jruby/util/FileResource;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 runtime Lorg/jruby/Ruby;
0 1 1 cwd Ljava/lang/String;
0 1 2 pathname Ljava/lang/String;
MethodParameters:
Name Flags
runtime
cwd
pathname
private static org.jruby.util.FileResource createResource(org.jruby.Ruby, java.lang.String, java.lang.String, boolean);
descriptor: (Lorg/jruby/Ruby;Ljava/lang/String;Ljava/lang/String;Z)Lorg/jruby/util/FileResource;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokestatic org.jruby.util.EmptyFileResource.create:(Ljava/lang/String;)Lorg/jruby/util/EmptyFileResource;
astore 4
start local 4 1: aload 4
ifnull 2
aload 4
areturn
2: StackMap locals: org.jruby.util.FileResource
StackMap stack:
aload 2
invokestatic org.jruby.util.JarResource.create:(Ljava/lang/String;)Lorg/jruby/util/JarResource;
astore 4
3: aload 4
ifnull 4
aload 4
areturn
4: StackMap locals:
StackMap stack:
getstatic org.jruby.platform.Platform.IS_WINDOWS:Z
ifeq 7
5: aload 2
ldc "nul"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 6
aload 2
ldc "nul:"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 7
6: StackMap locals:
StackMap stack:
new org.jruby.util.NullDeviceResource
dup
invokespecial org.jruby.util.NullDeviceResource.<init>:()V
areturn
7: StackMap locals:
StackMap stack:
aload 2
bipush 58
invokevirtual java.lang.String.indexOf:(I)I
ifle 14
8: aload 2
ldc "classpath:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 10
9: new java.lang.StringBuilder
dup
ldc "uri:classloader:/"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
bipush 10
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
10: StackMap locals:
StackMap stack:
aload 2
ldc "uri:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 11
aload 0
aload 2
iload 3
invokestatic org.jruby.util.URLResource.create:(Lorg/jruby/Ruby;Ljava/lang/String;Z)Lorg/jruby/util/FileResource;
areturn
11: StackMap locals:
StackMap stack:
aload 2
ldc "file:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 14
12: aload 2
iconst_5
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 2
13: aload 2
invokevirtual java.lang.String.length:()I
ifne 14
getstatic org.jruby.util.EmptyFileResource.INSTANCE:Lorg/jruby/util/EmptyFileResource;
areturn
14: StackMap locals:
StackMap stack:
aload 1
ifnull 17
aload 1
ldc "uri:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 15
aload 1
ldc "file:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 17
StackMap locals:
StackMap stack:
15: new java.io.File
dup
aload 2
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.isAbsolute:()Z
ifne 17
16: aload 0
aconst_null
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
bipush 47
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.jruby.util.JRubyFile.createResource:(Lorg/jruby/Ruby;Ljava/lang/String;Ljava/lang/String;)Lorg/jruby/util/FileResource;
areturn
17: StackMap locals:
StackMap stack:
new org.jruby.util.RegularFileResource
dup
aload 0
ifnull 18
aload 0
invokevirtual org.jruby.Ruby.getPosix:()Ljnr/posix/POSIX;
goto 19
StackMap locals: org.jruby.Ruby java.lang.String java.lang.String int org.jruby.util.FileResource
StackMap stack: new 17 new 17
18: aconst_null
StackMap locals: org.jruby.Ruby java.lang.String java.lang.String int org.jruby.util.FileResource
StackMap stack: new 17 new 17 jnr.posix.POSIX
19: aload 1
aload 2
invokestatic org.jruby.util.JRubyFile.create:(Ljava/lang/String;Ljava/lang/String;)Lorg/jruby/util/JRubyFile;
aload 2
invokespecial org.jruby.util.RegularFileResource.<init>:(Ljnr/posix/POSIX;Lorg/jruby/util/JRubyFile;Ljava/lang/String;)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 runtime Lorg/jruby/Ruby;
0 20 1 cwd Ljava/lang/String;
0 20 2 pathname Ljava/lang/String;
0 20 3 isFile Z
1 20 4 resource Lorg/jruby/util/FileResource;
MethodParameters:
Name Flags
runtime
cwd
pathname
isFile
public static java.lang.String normalizeSeps(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: getstatic org.jruby.platform.Platform.IS_WINDOWS:Z
ifeq 1
aload 0
getstatic java.io.File.separatorChar:C
bipush 47
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
StackMap locals:
StackMap stack: java.lang.String
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 path Ljava/lang/String;
MethodParameters:
Name Flags
path
private static org.jruby.util.JRubyFile createNoUnicodeConversion(java.lang.String, java.lang.String, java.io.File);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Lorg/jruby/util/JRubyFile;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokevirtual java.io.File.isAbsolute:()Z
ifeq 2
1: new org.jruby.util.JRubyFile
dup
aload 2
invokespecial org.jruby.util.JRubyFile.<init>:(Ljava/io/File;)V
areturn
2: StackMap locals:
StackMap stack:
getstatic org.jruby.platform.Platform.IS_WINDOWS:Z
ifeq 7
3: aload 1
invokestatic org.jruby.util.JRubyFile.isComPort:(Ljava/lang/String;)Z
ifeq 5
4: new org.jruby.util.JRubyFile
dup
aload 1
invokespecial org.jruby.util.JRubyFile.<init>:(Ljava/lang/String;)V
areturn
5: StackMap locals:
StackMap stack:
aload 1
ldc "/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 6
aload 1
ldc "\\"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 7
6: StackMap locals:
StackMap stack:
new org.jruby.util.JRubyFile
dup
aload 2
invokespecial org.jruby.util.JRubyFile.<init>:(Ljava/io/File;)V
areturn
7: StackMap locals:
StackMap stack:
aload 0
ifnull 9
aload 0
ldc "uri:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 9
aload 1
ldc "uri:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 9
aload 1
ldc "!/"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifne 9
8: new org.jruby.util.JRubyFile
dup
new java.lang.StringBuilder
dup
aload 0
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 47
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.jruby.util.JRubyFile.<init>:(Ljava/lang/String;)V
areturn
9: StackMap locals:
StackMap stack:
new java.io.File
dup
aload 0
aload 1
invokespecial java.io.File.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 2
10: aload 2
invokevirtual java.io.File.isAbsolute:()Z
ifne 12
11: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Neither current working directory ("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ") nor pathname ("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ") led to an absolute path"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
new org.jruby.util.JRubyFile
dup
aload 2
invokespecial org.jruby.util.JRubyFile.<init>:(Ljava/io/File;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 cwd Ljava/lang/String;
0 13 1 pathname Ljava/lang/String;
0 13 2 path Ljava/io/File;
MethodParameters:
Name Flags
cwd
pathname
path
public static java.lang.String getFileProperty(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "/"
invokestatic org.jruby.util.SafePropertyAccessor.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokestatic org.jruby.util.JRubyFile.normalizeSeps:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 property Ljava/lang/String;
MethodParameters:
Name Flags
property
static boolean isComPort(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: getstatic org.jruby.platform.Platform.IS_WINDOWS:Z
ifne 1
iconst_0
ireturn
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.String.length:()I
istore 1
start local 1 2: iload 1
bipush 10
if_icmpge 3
iload 1
iconst_3
if_icmple 3
iload 1
iconst_5
if_icmpeq 3
getstatic org.jruby.util.JRubyFile.windowsComPattern:Ljava/util/regex/Pattern;
aload 0
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
invokevirtual java.util.regex.Matcher.matches:()Z
ifeq 3
iconst_1
ireturn
StackMap locals: int
StackMap stack:
3: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 path Ljava/lang/String;
2 4 1 len I
MethodParameters:
Name Flags
path
private void <init>(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
invokespecial org.jruby.util.JRubyFile.<init>:(Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/util/JRubyFile;
0 2 1 file Ljava/io/File;
MethodParameters:
Name Flags
file
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial jnr.posix.JavaSecuredFile.<init>:(Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/util/JRubyFile;
0 2 1 filename Ljava/lang/String;
MethodParameters:
Name Flags
filename
public void <init>(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial jnr.posix.JavaSecuredFile.<init>:(Ljava/lang/String;Ljava/lang/String;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/util/JRubyFile;
0 2 1 parent Ljava/lang/String;
0 2 2 child Ljava/lang/String;
MethodParameters:
Name Flags
parent
child
public java.lang.String getAbsolutePath();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokespecial jnr.posix.JavaSecuredFile.getPath:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
ldc "uri:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 3
2: aload 1
ldc ":/([^/])"
ldc "://$1"
invokevirtual java.lang.String.replaceFirst:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokestatic org.jruby.util.JRubyFile.normalizeSeps:(Ljava/lang/String;)Ljava/lang/String;
areturn
3: StackMap locals: java.lang.String
StackMap stack:
new java.io.File
dup
aload 1
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
invokestatic org.jruby.util.JRubyFile.normalizeSeps:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/util/JRubyFile;
1 4 1 path Ljava/lang/String;
public java.lang.String getCanonicalPath();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
invokespecial jnr.posix.JavaSecuredFile.getCanonicalPath:()Ljava/lang/String;
invokestatic org.jruby.util.JRubyFile.normalizeSeps:(Ljava/lang/String;)Ljava/lang/String;
1: areturn
2: StackMap locals:
StackMap stack: java.io.IOException
astore 1
start local 1 3: new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "Unable to canonicalize path: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual org.jruby.util.JRubyFile.getAbsolutePath:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokespecial java.io.IOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/util/JRubyFile;
3 4 1 e Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
Exceptions:
throws java.io.IOException
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
invokespecial jnr.posix.JavaSecuredFile.getPath:()Ljava/lang/String;
invokestatic org.jruby.util.JRubyFile.normalizeSeps:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JRubyFile;
final java.lang.String getPathDefault();
descriptor: ()Ljava/lang/String;
flags: (0x0010) ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial jnr.posix.JavaSecuredFile.getPath:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JRubyFile;
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
invokespecial jnr.posix.JavaSecuredFile.toString:()Ljava/lang/String;
invokestatic org.jruby.util.JRubyFile.normalizeSeps:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JRubyFile;
public java.io.File getAbsoluteFile();
descriptor: ()Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.jruby.util.JRubyFile
dup
aload 0
invokevirtual org.jruby.util.JRubyFile.getAbsolutePath:()Ljava/lang/String;
invokespecial org.jruby.util.JRubyFile.<init>:(Ljava/lang/String;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JRubyFile;
public java.io.File getCanonicalFile();
descriptor: ()Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.jruby.util.JRubyFile
dup
aload 0
invokevirtual org.jruby.util.JRubyFile.getCanonicalPath:()Ljava/lang/String;
invokespecial org.jruby.util.JRubyFile.<init>:(Ljava/lang/String;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JRubyFile;
Exceptions:
throws java.io.IOException
public java.lang.String getParent();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokespecial jnr.posix.JavaSecuredFile.getParent:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
invokestatic org.jruby.util.JRubyFile.normalizeSeps:(Ljava/lang/String;)Ljava/lang/String;
astore 1
3: StackMap locals: java.lang.String
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/util/JRubyFile;
1 4 1 parent Ljava/lang/String;
public java.io.File getParentFile();
descriptor: ()Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.util.JRubyFile.getParent:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnonnull 2
aload 0
areturn
2: StackMap locals: java.lang.String
StackMap stack:
new org.jruby.util.JRubyFile
dup
aload 1
invokespecial org.jruby.util.JRubyFile.<init>:(Ljava/lang/String;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/util/JRubyFile;
1 3 1 parent Ljava/lang/String;
public static java.io.File[] listRoots();
descriptor: ()[Ljava/io/File;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=4, args_size=0
0: invokestatic java.io.File.listRoots:()[Ljava/io/File;
astore 0
start local 0 1: aload 0
arraylength
anewarray org.jruby.util.JRubyFile
astore 1
start local 1 2: iconst_0
istore 2
start local 2 3: aload 0
arraylength
istore 3
start local 3 4: goto 7
5: StackMap locals: java.io.File[] org.jruby.util.JRubyFile[] int int
StackMap stack:
aload 1
iload 2
new org.jruby.util.JRubyFile
dup
aload 0
iload 2
aaload
invokevirtual java.io.File.getPath:()Ljava/lang/String;
invokespecial org.jruby.util.JRubyFile.<init>:(Ljava/lang/String;)V
aastore
6: iinc 2 1
StackMap locals:
StackMap stack:
7: iload 2
iload 3
if_icmplt 5
end local 3 end local 2 8: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 9 0 roots [Ljava/io/File;
2 9 1 smartRoots [Lorg/jruby/util/JRubyFile;
3 8 2 i I
4 8 3 j I
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=3, args_size=3
start local 0 start local 1 start local 2 0: new org.jruby.util.JRubyFile
dup
aload 0
aload 1
aload 2
invokestatic java.io.File.createTempFile:(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File;
invokespecial org.jruby.util.JRubyFile.<init>:(Ljava/io/File;)V
areturn
end local 2 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;
0 1 2 directory Ljava/io/File;
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=4, locals=2, args_size=2
start local 0 start local 1 0: new org.jruby.util.JRubyFile
dup
aload 0
aload 1
invokestatic java.io.File.createTempFile:(Ljava/lang/String;Ljava/lang/String;)Ljava/io/File;
invokespecial org.jruby.util.JRubyFile.<init>:(Ljava/io/File;)V
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 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
aload 1
invokespecial jnr.posix.JavaSecuredFile.list:(Ljava/io/FilenameFilter;)[Ljava/lang/String;
astore 2
start local 2 1: aload 2
ifnonnull 3
2: aconst_null
areturn
3: StackMap locals: java.lang.String[]
StackMap stack:
aload 2
arraylength
anewarray java.lang.String
astore 3
start local 3 4: iconst_0
istore 4
start local 4 5: goto 8
6: StackMap locals: java.lang.String[] int
StackMap stack:
aload 3
iload 4
aload 2
iload 4
aaload
invokestatic org.jruby.util.JRubyFile.normalizeSeps:(Ljava/lang/String;)Ljava/lang/String;
aastore
7: iinc 4 1
StackMap locals:
StackMap stack:
8: iload 4
aload 2
arraylength
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 Lorg/jruby/util/JRubyFile;
0 10 1 filter Ljava/io/FilenameFilter;
1 10 2 files [Ljava/lang/String;
4 10 3 smartFiles [Ljava/lang/String;
5 9 4 i I
MethodParameters:
Name Flags
filter
public java.io.File[] listFiles();
descriptor: ()[Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
invokespecial jnr.posix.JavaSecuredFile.listFiles:()[Ljava/io/File;
invokevirtual org.jruby.util.JRubyFile.convertFiles:([Ljava/io/File;)[Lorg/jruby/util/JRubyFile;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JRubyFile;
public java.io.File[] listFiles(java.io.FileFilter);
descriptor: (Ljava/io/FileFilter;)[Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
aload 1
invokespecial jnr.posix.JavaSecuredFile.listFiles:(Ljava/io/FileFilter;)[Ljava/io/File;
invokevirtual org.jruby.util.JRubyFile.convertFiles:([Ljava/io/File;)[Lorg/jruby/util/JRubyFile;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JRubyFile;
0 1 1 filter Ljava/io/FileFilter;
MethodParameters:
Name Flags
filter final
public java.io.File[] listFiles(java.io.FilenameFilter);
descriptor: (Ljava/io/FilenameFilter;)[Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
aload 1
invokespecial jnr.posix.JavaSecuredFile.listFiles:(Ljava/io/FilenameFilter;)[Ljava/io/File;
invokevirtual org.jruby.util.JRubyFile.convertFiles:([Ljava/io/File;)[Lorg/jruby/util/JRubyFile;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JRubyFile;
0 1 1 filter Ljava/io/FilenameFilter;
MethodParameters:
Name Flags
filter final
private org.jruby.util.JRubyFile[] convertFiles(java.io.File[]);
descriptor: ([Ljava/io/File;)[Lorg/jruby/util/JRubyFile;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 1
aconst_null
areturn
1: StackMap locals:
StackMap stack:
aload 0
invokespecial jnr.posix.JavaSecuredFile.getAbsolutePath:()Ljava/lang/String;
astore 2
start local 2 2: aload 1
arraylength
anewarray org.jruby.util.JRubyFile
astore 3
start local 3 3: iconst_0
istore 4
start local 4 4: goto 8
5: StackMap locals: java.lang.String org.jruby.util.JRubyFile[] int
StackMap stack:
aload 1
iload 4
aaload
astore 5
start local 5 6: aload 3
iload 4
aload 2
aload 5
invokevirtual java.io.File.getPath:()Ljava/lang/String;
aload 5
invokestatic org.jruby.util.JRubyFile.createNoUnicodeConversion:(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Lorg/jruby/util/JRubyFile;
aastore
end local 5 7: iinc 4 1
StackMap locals:
StackMap stack:
8: iload 4
aload 1
arraylength
if_icmplt 5
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 Lorg/jruby/util/JRubyFile;
0 10 1 files [Ljava/io/File;
2 10 2 absolutePath Ljava/lang/String;
3 10 3 smartFiles [Lorg/jruby/util/JRubyFile;
4 9 4 i I
6 7 5 file Ljava/io/File;
MethodParameters:
Name Flags
files final
}
SourceFile: "JRubyFile.java"
NestMembers:
org.jruby.util.JRubyFile$1
InnerClasses:
org.jruby.util.JRubyFile$1