public class org.jruby.ir.persistence.util.IRFileExpert
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.ir.persistence.util.IRFileExpert
super_class: java.lang.Object
{
private static final java.lang.String IR_FILE_EXTENSION;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: ".ir"
private static final java.lang.String IR_FOLDER;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String EXTENSION_SEPARATOR;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "."
private static final java.io.File IR_ROOT_FOLDER;
descriptor: Ljava/io/File;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: getstatic org.jruby.platform.Platform.IS_WINDOWS:Z
ifeq 1
ldc "ir"
goto 2
StackMap locals:
StackMap stack:
1: ldc ".ir"
StackMap locals:
StackMap stack: java.lang.String
2: putstatic org.jruby.ir.persistence.util.IRFileExpert.IR_FOLDER:Ljava/lang/String;
3: new java.io.File
dup
ldc "user.home"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
getstatic org.jruby.ir.persistence.util.IRFileExpert.IR_FOLDER:Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;Ljava/lang/String;)V
putstatic org.jruby.ir.persistence.util.IRFileExpert.IR_ROOT_FOLDER:Ljava/io/File;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/persistence/util/IRFileExpert;
public static java.io.File getIRPersistedFile(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/io/File;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=6, args_size=1
start local 0 0: new java.io.File
dup
aload 0
ldc "file:"
ldc ""
invokevirtual java.lang.String.replaceAll:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
getstatic java.io.File.separator:Ljava/lang/String;
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
istore 2
start local 2 2: iload 2
iconst_m1
if_icmpne 3
getstatic org.jruby.ir.persistence.util.IRFileExpert.IR_ROOT_FOLDER:Ljava/io/File;
goto 4
3: StackMap locals: java.lang.String int
StackMap stack:
new java.io.File
dup
getstatic org.jruby.ir.persistence.util.IRFileExpert.IR_ROOT_FOLDER:Ljava/io/File;
aload 1
iconst_0
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
4: StackMap locals:
StackMap stack: java.io.File
astore 3
start local 3 5: aload 3
invokevirtual java.io.File.mkdirs:()Z
pop
6: aload 1
ldc "."
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
istore 4
start local 4 7: iload 4
iconst_m1
if_icmpeq 8
iload 4
iload 2
if_icmpge 9
8: StackMap locals: java.io.File int
StackMap stack:
aload 1
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
goto 10
StackMap locals:
StackMap stack:
9: aload 1
iload 2
iload 4
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
10: StackMap locals:
StackMap stack: java.lang.String
astore 5
start local 5 11: new java.io.File
dup
aload 3
new java.lang.StringBuilder
dup
aload 5
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".ir"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
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 12 0 fileName Ljava/lang/String;
1 12 1 path Ljava/lang/String;
2 12 2 fileNameIndex I
5 12 3 folder Ljava/io/File;
7 12 4 extensionIndex I
11 12 5 bareFilename Ljava/lang/String;
MethodParameters:
Name Flags
fileName
}
SourceFile: "IRFileExpert.java"