public class org.jruby.RubyDir extends org.jruby.RubyObject implements java.io.Closeable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.RubyDir
super_class: org.jruby.RubyObject
{
private org.jruby.RubyString path;
descriptor: Lorg/jruby/RubyString;
flags: (0x0002) ACC_PRIVATE
protected org.jruby.util.FileResource dir;
descriptor: Lorg/jruby/util/FileResource;
flags: (0x0004) ACC_PROTECTED
private long lastModified;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private java.lang.String[] snapshot;
descriptor: [Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private int pos;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private boolean isOpen;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private org.jcodings.Encoding encoding;
descriptor: Lorg/jcodings/Encoding;
flags: (0x0002) ACC_PRIVATE
private static final java.util.regex.Pattern PROTOCOL_PATTERN;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.jruby.runtime.ObjectAllocator DIR_ALLOCATOR;
descriptor: Lorg/jruby/runtime/ObjectAllocator;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String[] BASE;
descriptor: [Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String[] BASE_FLAGS;
descriptor: [Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String[] NO_FILES;
descriptor: [Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static final org.jruby.util.ByteList HOME;
descriptor: Lorg/jruby/util/ByteList;
flags: (0x0018) ACC_STATIC, ACC_FINAL
private static final org.jruby.util.ByteList user_home;
descriptor: Lorg/jruby/util/ByteList;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=0, args_size=0
0: ldc "^(uri|jar|file|classpath):([^:]*:)?//?.*"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic org.jruby.RubyDir.PROTOCOL_PATTERN:Ljava/util/regex/Pattern;
1: new org.jruby.RubyDir$1
dup
invokespecial org.jruby.RubyDir$1.<init>:()V
putstatic org.jruby.RubyDir.DIR_ALLOCATOR:Lorg/jruby/runtime/ObjectAllocator;
2: iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "base"
aastore
putstatic org.jruby.RubyDir.BASE:[Ljava/lang/String;
3: iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "base"
aastore
dup
iconst_1
ldc "flags"
aastore
putstatic org.jruby.RubyDir.BASE_FLAGS:[Ljava/lang/String;
4: getstatic org.jruby.util.StringSupport.EMPTY_STRING_ARRAY:[Ljava/lang/String;
putstatic org.jruby.RubyDir.NO_FILES:[Ljava/lang/String;
5: new org.jruby.util.ByteList
dup
iconst_4
newarray 8
dup
iconst_0
bipush 72
bastore
dup
iconst_1
bipush 79
bastore
dup
iconst_2
bipush 77
bastore
dup
iconst_3
bipush 69
bastore
iconst_0
invokespecial org.jruby.util.ByteList.<init>:([BZ)V
putstatic org.jruby.RubyDir.HOME:Lorg/jruby/util/ByteList;
6: new org.jruby.util.ByteList
dup
bipush 9
newarray 8
dup
iconst_0
bipush 117
bastore
dup
iconst_1
bipush 115
bastore
dup
iconst_2
bipush 101
bastore
dup
iconst_3
bipush 114
bastore
dup
iconst_4
bipush 46
bastore
dup
iconst_5
bipush 104
bastore
dup
bipush 6
bipush 111
bastore
dup
bipush 7
bipush 109
bastore
dup
bipush 8
bipush 101
bastore
iconst_0
invokespecial org.jruby.util.ByteList.<init>:([BZ)V
putstatic org.jruby.RubyDir.user_home:Lorg/jruby/util/ByteList;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.jruby.Ruby, org.jruby.RubyClass);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)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 org.jruby.RubyObject.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
1: aload 0
ldc -9223372036854775808
putfield org.jruby.RubyDir.lastModified:J
2: aload 0
iconst_1
putfield org.jruby.RubyDir.isOpen:Z
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/RubyDir;
0 4 1 runtime Lorg/jruby/Ruby;
0 4 2 type Lorg/jruby/RubyClass;
MethodParameters:
Name Flags
runtime
type
public static org.jruby.RubyClass createDirClass(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)Lorg/jruby/RubyClass;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
ldc "Dir"
aload 0
invokevirtual org.jruby.Ruby.getObject:()Lorg/jruby/RubyClass;
getstatic org.jruby.RubyDir.DIR_ALLOCATOR:Lorg/jruby/runtime/ObjectAllocator;
invokevirtual org.jruby.Ruby.defineClass:(Ljava/lang/String;Lorg/jruby/RubyClass;Lorg/jruby/runtime/ObjectAllocator;)Lorg/jruby/RubyClass;
astore 1
start local 1 1: aload 1
getstatic org.jruby.runtime.ClassIndex.DIR:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.RubyClass.setClassIndex:(Lorg/jruby/runtime/ClassIndex;)V
2: aload 1
ldc Lorg/jruby/RubyDir;
invokevirtual org.jruby.RubyClass.setReifiedClass:(Ljava/lang/Class;)V
3: aload 1
aload 0
invokevirtual org.jruby.Ruby.getEnumerable:()Lorg/jruby/RubyModule;
invokevirtual org.jruby.RubyClass.includeModule:(Lorg/jruby/runtime/builtin/IRubyObject;)V
4: aload 1
ldc Lorg/jruby/RubyDir;
invokevirtual org.jruby.RubyClass.defineAnnotatedMethods:(Ljava/lang/Class;)V
5: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 runtime Lorg/jruby/Ruby;
1 6 1 dirClass Lorg/jruby/RubyClass;
MethodParameters:
Name Flags
runtime
private final void checkDir();
descriptor: ()V
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyDir.checkDirIgnoreClosed:()V
1: aload 0
getfield org.jruby.RubyDir.isOpen:Z
ifne 2
aload 0
invokevirtual org.jruby.RubyDir.getRuntime:()Lorg/jruby/Ruby;
ldc "closed directory"
invokevirtual org.jruby.Ruby.newIOError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/RubyDir;
private final void checkDirIgnoreClosed();
descriptor: ()V
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
ldc "Dir"
invokevirtual org.jruby.RubyDir.testFrozen:(Ljava/lang/String;)V
1: aload 0
getfield org.jruby.RubyDir.snapshot:[Ljava/lang/String;
ifnull 2
aload 0
getfield org.jruby.RubyDir.dir:Lorg/jruby/util/FileResource;
invokeinterface org.jruby.util.FileResource.exists:()Z
ifeq 4
aload 0
getfield org.jruby.RubyDir.dir:Lorg/jruby/util/FileResource;
invokeinterface org.jruby.util.FileResource.lastModified:()J
aload 0
getfield org.jruby.RubyDir.lastModified:J
lcmp
ifle 4
2: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.jruby.RubyDir.dir:Lorg/jruby/util/FileResource;
invokeinterface org.jruby.util.FileResource.lastModified:()J
putfield org.jruby.RubyDir.lastModified:J
3: aload 0
aload 0
getfield org.jruby.RubyDir.dir:Lorg/jruby/util/FileResource;
invokestatic org.jruby.RubyDir.list:(Lorg/jruby/util/FileResource;)[Ljava/lang/String;
putfield org.jruby.RubyDir.snapshot:[Ljava/lang/String;
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/RubyDir;
public org.jruby.runtime.builtin.IRubyObject initialize(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 3
start local 3 1: aload 0
aload 1
aload 2
aload 3
invokevirtual org.jruby.Ruby.getDefaultFilesystemEncoding:()Lorg/jcodings/Encoding;
aload 3
invokevirtual org.jruby.RubyDir.initializeCommon:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jcodings/Encoding;Lorg/jruby/Ruby;)Lorg/jruby/RubyDir;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/RubyDir;
0 2 1 context Lorg/jruby/runtime/ThreadContext;
0 2 2 path Lorg/jruby/runtime/builtin/IRubyObject;
1 2 3 runtime Lorg/jruby/Ruby;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"initialize"})
MethodParameters:
Name Flags
context
path
public org.jruby.runtime.builtin.IRubyObject initialize(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 4
start local 4 1: aconst_null
astore 5
start local 5 2: aload 3
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 7
3: aload 3
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToHash:()Lorg/jruby/RubyHash;
astore 6
start local 6 4: aload 1
aload 6
ldc "encoding"
invokestatic org.jruby.ast.util.ArgsUtil.extractKeywordArg:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyHash;Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 7
start local 7 5: aload 7
ifnull 7
aload 7
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 7
6: aload 4
invokevirtual org.jruby.Ruby.getEncodingService:()Lorg/jruby/runtime/encoding/EncodingService;
aload 7
invokevirtual org.jruby.runtime.encoding.EncodingService.getEncodingFromObject:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jcodings/Encoding;
astore 5
end local 7 end local 6 7: StackMap locals: org.jruby.Ruby org.jcodings.Encoding
StackMap stack:
aload 5
ifnonnull 8
aload 4
invokevirtual org.jruby.Ruby.getDefaultFilesystemEncoding:()Lorg/jcodings/Encoding;
astore 5
8: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
aload 5
aload 4
invokevirtual org.jruby.RubyDir.initializeCommon:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jcodings/Encoding;Lorg/jruby/Ruby;)Lorg/jruby/RubyDir;
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 9 0 this Lorg/jruby/RubyDir;
0 9 1 context Lorg/jruby/runtime/ThreadContext;
0 9 2 path Lorg/jruby/runtime/builtin/IRubyObject;
0 9 3 encOpts Lorg/jruby/runtime/builtin/IRubyObject;
1 9 4 runtime Lorg/jruby/Ruby;
2 9 5 encoding Lorg/jcodings/Encoding;
4 7 6 opts Lorg/jruby/RubyHash;
5 7 7 encodingArg Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"initialize"})
MethodParameters:
Name Flags
context
path
encOpts
private org.jruby.RubyDir initializeCommon(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jcodings.Encoding, org.jruby.Ruby);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jcodings/Encoding;Lorg/jruby/Ruby;)Lorg/jruby/RubyDir;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 4
aload 1
aload 2
invokestatic org.jruby.RubyFile.get_path:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
invokestatic org.jruby.util.StringSupport.checkEmbeddedNulls:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
astore 5
start local 5 1: aload 0
aload 5
putfield org.jruby.RubyDir.path:Lorg/jruby/RubyString;
2: aload 0
iconst_0
putfield org.jruby.RubyDir.pos:I
3: aload 0
aload 3
putfield org.jruby.RubyDir.encoding:Lorg/jcodings/Encoding;
4: aload 4
aload 5
invokevirtual org.jruby.RubyString.toString:()Ljava/lang/String;
aconst_null
invokestatic org.jruby.RubyFile.adjustRootPathOnWindows:(Lorg/jruby/Ruby;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 6
start local 6 5: aload 0
invokevirtual org.jruby.RubyDir.getRuntime:()Lorg/jruby/Ruby;
aload 6
invokestatic org.jruby.RubyDir.checkDirIsTwoSlashesOnWindows:(Lorg/jruby/Ruby;Ljava/lang/String;)V
6: aload 0
aload 1
aload 6
invokestatic org.jruby.util.JRubyFile.createResource:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;)Lorg/jruby/util/FileResource;
putfield org.jruby.RubyDir.dir:Lorg/jruby/util/FileResource;
7: aload 0
aload 1
aload 0
getfield org.jruby.RubyDir.dir:Lorg/jruby/util/FileResource;
aload 6
invokestatic org.jruby.RubyDir.getEntries:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/util/FileResource;Ljava/lang/String;)[Ljava/lang/String;
putfield org.jruby.RubyDir.snapshot:[Ljava/lang/String;
8: aload 0
areturn
end local 6 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 Lorg/jruby/RubyDir;
0 9 1 context Lorg/jruby/runtime/ThreadContext;
0 9 2 pathArg Lorg/jruby/runtime/builtin/IRubyObject;
0 9 3 encoding Lorg/jcodings/Encoding;
0 9 4 runtime Lorg/jruby/Ruby;
1 9 5 newPath Lorg/jruby/RubyString;
5 9 6 adjustedPath Ljava/lang/String;
MethodParameters:
Name Flags
context
pathArg
encoding
runtime
public org.jruby.runtime.builtin.IRubyObject initialize19(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
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
invokevirtual org.jruby.RubyDir.initialize:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyDir;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 arg Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
context
arg
private static java.util.ArrayList<org.jruby.util.ByteList> dirGlobs(org.jruby.runtime.ThreadContext, java.lang.String, org.jruby.runtime.builtin.IRubyObject[], int);
descriptor: (Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;I)Ljava/util/ArrayList;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 4
start local 4 1: iconst_0
istore 5
start local 5 2: goto 5
3: StackMap locals: java.util.ArrayList int
StackMap stack:
aload 4
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 1
aload 0
aload 2
iload 5
aaload
invokestatic org.jruby.RubyDir.globArgumentAsByteList:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/util/ByteList;
iload 3
invokestatic org.jruby.util.Dir.push_glob:(Lorg/jruby/Ruby;Ljava/lang/String;Lorg/jruby/util/ByteList;I)Ljava/util/List;
invokevirtual java.util.ArrayList.addAll:(Ljava/util/Collection;)Z
pop
4: iinc 5 1
StackMap locals:
StackMap stack:
5: iload 5
aload 2
arraylength
if_icmplt 3
end local 5 6: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 context Lorg/jruby/runtime/ThreadContext;
0 7 1 cwd Ljava/lang/String;
0 7 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
0 7 3 flags I
1 7 4 dirs Ljava/util/ArrayList<Lorg/jruby/util/ByteList;>;
2 6 5 i I
Signature: (Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;I)Ljava/util/ArrayList<Lorg/jruby/util/ByteList;>;
MethodParameters:
Name Flags
context
cwd
args
flags
private static org.jruby.RubyArray asRubyStringList(org.jruby.Ruby, java.util.List<org.jruby.util.ByteList>);
descriptor: (Lorg/jruby/Ruby;Ljava/util/List;)Lorg/jruby/RubyArray;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.List.size:()I
istore 2
start local 2 1: iload 2
ifne 2
aload 0
invokestatic org.jruby.RubyArray.newEmptyArray:(Lorg/jruby/Ruby;)Lorg/jruby/RubyArray;
areturn
2: StackMap locals: int
StackMap stack:
iload 2
anewarray org.jruby.runtime.builtin.IRubyObject
astore 3
start local 3 3: iconst_0
istore 4
start local 4 4: goto 7
5: StackMap locals: org.jruby.runtime.builtin.IRubyObject[] int
StackMap stack:
aload 3
iload 4
aload 0
aload 1
iload 4
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.jruby.util.ByteList
invokestatic org.jruby.RubyString.newStringNoCopy:(Lorg/jruby/Ruby;Lorg/jruby/util/ByteList;)Lorg/jruby/RubyString;
aastore
6: iinc 4 1
StackMap locals:
StackMap stack:
7: iload 4
iload 2
if_icmplt 5
end local 4 8: aload 0
aload 3
invokestatic org.jruby.RubyArray.newArrayMayCopy:(Lorg/jruby/Ruby;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 runtime Lorg/jruby/Ruby;
0 9 1 dirs Ljava/util/List<Lorg/jruby/util/ByteList;>;
1 9 2 size I
3 9 3 dirStrings [Lorg/jruby/runtime/builtin/IRubyObject;
4 8 4 i I
Signature: (Lorg/jruby/Ruby;Ljava/util/List<Lorg/jruby/util/ByteList;>;)Lorg/jruby/RubyArray;
MethodParameters:
Name Flags
runtime
dirs
private static java.lang.String getCWD(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.Ruby.getCurrentDirectory:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
ldc "uri:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 2
aload 1
ldc "jar:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 2
aload 1
ldc "file:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 3
2: StackMap locals: java.lang.String
StackMap stack:
aload 1
areturn
3: StackMap locals:
StackMap stack:
new org.jruby.util.JRubyFile
dup
aload 1
invokespecial org.jruby.util.JRubyFile.<init>:(Ljava/lang/String;)V
invokevirtual org.jruby.util.JRubyFile.getCanonicalPath:()Ljava/lang/String;
4: areturn
5: StackMap locals:
StackMap stack: java.io.IOException
pop
6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 runtime Lorg/jruby/Ruby;
1 7 1 cwd Ljava/lang/String;
Exception table:
from to target type
3 4 5 Class java.io.IOException
MethodParameters:
Name Flags
runtime
private static java.lang.String globOptions(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[], int[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;[I)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=10, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 3
start local 3 1: aload 1
arraylength
iconst_1
if_icmple 22
2: aload 3
aload 1
aload 1
arraylength
iconst_1
isub
aaload
invokestatic org.jruby.util.TypeConverter.checkHashType:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 4
start local 4 3: aload 4
aload 0
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
if_acmpne 7
4: aload 2
ifnull 22
5: aload 2
iconst_0
aload 1
iconst_1
aaload
invokestatic org.jruby.RubyNumeric.num2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
iastore
6: goto 22
7: StackMap locals: org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 2
ifnull 8
getstatic org.jruby.RubyDir.BASE_FLAGS:[Ljava/lang/String;
goto 9
StackMap locals:
StackMap stack:
8: getstatic org.jruby.RubyDir.BASE:[Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String[]
9: astore 5
start local 5 10: aload 0
aload 4
checkcast org.jruby.RubyHash
aload 5
invokestatic org.jruby.ast.util.ArgsUtil.extractKeywordArgs:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyHash;[Ljava/lang/String;)[Lorg/jruby/runtime/builtin/IRubyObject;
astore 6
start local 6 11: aload 6
iconst_0
aaload
ifnull 12
aload 6
iconst_0
aaload
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifeq 13
StackMap locals: java.lang.String[] org.jruby.runtime.builtin.IRubyObject[]
StackMap stack:
12: ldc ""
areturn
13: StackMap locals:
StackMap stack:
aload 0
aload 6
iconst_0
aaload
invokestatic org.jruby.RubyFile.get_path:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
astore 7
start local 7 14: iconst_1
anewarray org.jcodings.Encoding
dup
iconst_0
aload 7
invokevirtual org.jruby.RubyString.getEncoding:()Lorg/jcodings/Encoding;
aastore
astore 8
start local 8 15: aload 7
invokevirtual org.jruby.RubyString.getUnicodeValue:()Ljava/lang/String;
astore 9
start local 9 16: aload 9
invokevirtual java.lang.String.isEmpty:()Z
ifne 18
17: aload 0
aload 9
aload 8
aload 3
invokevirtual org.jruby.Ruby.getCurrentDirectory:()Ljava/lang/String;
iconst_1
iconst_0
invokestatic org.jruby.RubyFile.expandPath:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;[Lorg/jcodings/Encoding;Ljava/lang/String;ZZ)Ljava/lang/String;
astore 9
18: StackMap locals: org.jruby.RubyString org.jcodings.Encoding[] java.lang.String
StackMap stack:
aload 2
ifnull 21
aload 2
iconst_0
aload 6
iconst_1
aaload
ifnonnull 19
iconst_0
goto 20
StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] int[] org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject java.lang.String[] org.jruby.runtime.builtin.IRubyObject[] org.jruby.RubyString org.jcodings.Encoding[] java.lang.String
StackMap stack: int[] int
19: aload 6
iconst_1
aaload
invokestatic org.jruby.RubyNumeric.num2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] int[] org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject java.lang.String[] org.jruby.runtime.builtin.IRubyObject[] org.jruby.RubyString org.jcodings.Encoding[] java.lang.String
StackMap stack: int[] int int
20: iastore
21: StackMap locals:
StackMap stack:
aload 9
areturn
end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 22: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] int[] org.jruby.Ruby
StackMap stack:
aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 context Lorg/jruby/runtime/ThreadContext;
0 23 1 args [Lorg/jruby/runtime/builtin/IRubyObject;
0 23 2 flags [I
1 23 3 runtime Lorg/jruby/Ruby;
3 22 4 tmp Lorg/jruby/runtime/builtin/IRubyObject;
10 22 5 keys [Ljava/lang/String;
11 22 6 rets [Lorg/jruby/runtime/builtin/IRubyObject;
14 22 7 path Lorg/jruby/RubyString;
15 22 8 enc [Lorg/jcodings/Encoding;
16 22 9 base Ljava/lang/String;
MethodParameters:
Name Flags
context
args
flags
public static org.jruby.runtime.builtin.IRubyObject aref(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 3
start local 3 1: aload 0
aload 2
aconst_null
invokestatic org.jruby.RubyDir.globOptions:(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;[I)Ljava/lang/String;
astore 4
start local 4 2: aload 2
arraylength
iconst_1
if_icmpne 9
3: aload 4
ifnull 4
aload 4
invokevirtual java.lang.String.isEmpty:()Z
ifeq 5
StackMap locals: org.jruby.Ruby java.lang.String
StackMap stack:
4: aload 3
invokevirtual org.jruby.Ruby.getCurrentDirectory:()Ljava/lang/String;
goto 6
StackMap locals:
StackMap stack:
5: aload 4
StackMap locals:
StackMap stack: java.lang.String
6: astore 6
start local 6 7: aload 3
aload 6
aload 0
aload 2
iconst_0
aaload
invokestatic org.jruby.RubyDir.globArgumentAsByteList:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/util/ByteList;
iconst_0
invokestatic org.jruby.util.Dir.push_glob:(Lorg/jruby/Ruby;Ljava/lang/String;Lorg/jruby/util/ByteList;I)Ljava/util/List;
astore 5
end local 6 start local 5 8: goto 18
end local 5 9: StackMap locals:
StackMap stack:
aload 4
ifnull 12
10: aload 2
aload 2
arraylength
iconst_1
isub
invokestatic org.jruby.util.ArraySupport.newCopy:([Lorg/jruby/runtime/builtin/IRubyObject;I)[Lorg/jruby/runtime/builtin/IRubyObject;
astore 6
start local 6 11: goto 14
end local 6 12: StackMap locals:
StackMap stack:
aload 2
astore 6
start local 6 13: ldc ""
astore 4
14: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby java.lang.String top org.jruby.runtime.builtin.IRubyObject[]
StackMap stack:
aload 4
invokevirtual java.lang.String.isEmpty:()Z
ifeq 15
aload 3
invokevirtual org.jruby.Ruby.getCurrentDirectory:()Ljava/lang/String;
goto 16
StackMap locals:
StackMap stack:
15: aload 4
StackMap locals:
StackMap stack: java.lang.String
16: astore 7
start local 7 17: aload 0
aload 7
aload 6
iconst_0
invokestatic org.jruby.RubyDir.dirGlobs:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;I)Ljava/util/ArrayList;
astore 5
end local 7 end local 6 start local 5 18: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby java.lang.String java.util.List
StackMap stack:
aload 3
aload 5
invokestatic org.jruby.RubyDir.asRubyStringList:(Lorg/jruby/Ruby;Ljava/util/List;)Lorg/jruby/RubyArray;
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 19 0 context Lorg/jruby/runtime/ThreadContext;
0 19 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 19 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
1 19 3 runtime Lorg/jruby/Ruby;
2 19 4 base Ljava/lang/String;
8 9 5 dirs Ljava/util/List<Lorg/jruby/util/ByteList;>;
18 19 5 dirs Ljava/util/List<Lorg/jruby/util/ByteList;>;
7 8 6 dir Ljava/lang/String;
11 12 6 arefArgs [Lorg/jruby/runtime/builtin/IRubyObject;
13 18 6 arefArgs [Lorg/jruby/runtime/builtin/IRubyObject;
17 18 7 dir Ljava/lang/String;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"[]"}, rest = true, meta = true)
MethodParameters:
Name Flags
context
recv
args
private static org.jruby.util.ByteList globArgumentAsByteList(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/util/ByteList;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic org.jruby.RubyFile.get_path:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 arg Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
context
arg
public static org.jruby.runtime.builtin.IRubyObject glob(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject[], org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 4
start local 4 1: iconst_1
newarray 10
astore 5
start local 5 2: aload 0
aload 2
aload 5
invokestatic org.jruby.RubyDir.globOptions:(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;[I)Ljava/lang/String;
astore 6
start local 6 3: aload 6
ifnull 6
aload 6
invokevirtual java.lang.String.isEmpty:()Z
ifne 6
aload 0
aload 6
invokestatic org.jruby.util.JRubyFile.createResource:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;)Lorg/jruby/util/FileResource;
invokeinterface org.jruby.util.FileResource.exists:()Z
ifne 6
4: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 7
start local 7 5: goto 15
end local 7 6: StackMap locals: org.jruby.Ruby int[] java.lang.String
StackMap stack:
aload 2
iconst_0
aaload
invokeinterface org.jruby.runtime.builtin.IRubyObject.checkArrayType:()Lorg/jruby/runtime/builtin/IRubyObject;
astore 8
start local 8 7: aload 6
ifnull 8
aload 6
invokevirtual java.lang.String.isEmpty:()Z
ifeq 9
StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject[] org.jruby.runtime.Block org.jruby.Ruby int[] java.lang.String top org.jruby.runtime.builtin.IRubyObject
StackMap stack:
8: aload 4
invokevirtual org.jruby.Ruby.getCurrentDirectory:()Ljava/lang/String;
goto 10
StackMap locals:
StackMap stack:
9: aload 6
StackMap locals:
StackMap stack: java.lang.String
10: astore 9
start local 9 11: aload 8
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifeq 14
12: aload 4
aload 9
aload 0
aload 2
iconst_0
aaload
invokestatic org.jruby.RubyDir.globArgumentAsByteList:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/util/ByteList;
aload 5
iconst_0
iaload
invokestatic org.jruby.util.Dir.push_glob:(Lorg/jruby/Ruby;Ljava/lang/String;Lorg/jruby/util/ByteList;I)Ljava/util/List;
astore 7
start local 7 13: goto 15
end local 7 14: StackMap locals: java.lang.String
StackMap stack:
aload 0
aload 9
aload 8
checkcast org.jruby.RubyArray
invokevirtual org.jruby.RubyArray.toJavaArray:()[Lorg/jruby/runtime/builtin/IRubyObject;
aload 5
iconst_0
iaload
invokestatic org.jruby.RubyDir.dirGlobs:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;I)Ljava/util/ArrayList;
astore 7
end local 9 end local 8 start local 7 15: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject[] org.jruby.runtime.Block org.jruby.Ruby int[] java.lang.String java.util.List
StackMap stack:
aload 3
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifeq 22
16: iconst_0
istore 8
start local 8 17: goto 20
18: StackMap locals: int
StackMap stack:
aload 3
aload 0
aload 4
aload 7
iload 8
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.jruby.util.ByteList
invokestatic org.jruby.RubyString.newString:(Lorg/jruby/Ruby;Lorg/jruby/util/ByteList;)Lorg/jruby/RubyString;
invokevirtual org.jruby.runtime.Block.yield:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
19: iinc 8 1
StackMap locals:
StackMap stack:
20: iload 8
aload 7
invokeinterface java.util.List.size:()I
if_icmplt 18
end local 8 21: aload 4
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
22: StackMap locals:
StackMap stack:
aload 4
aload 7
invokestatic org.jruby.RubyDir.asRubyStringList:(Lorg/jruby/Ruby;Ljava/util/List;)Lorg/jruby/RubyArray;
areturn
end local 7 end local 6 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 23 0 context Lorg/jruby/runtime/ThreadContext;
0 23 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 23 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
0 23 3 block Lorg/jruby/runtime/Block;
1 23 4 runtime Lorg/jruby/Ruby;
2 23 5 flags [I
3 23 6 base Ljava/lang/String;
5 6 7 dirs Ljava/util/List<Lorg/jruby/util/ByteList;>;
13 14 7 dirs Ljava/util/List<Lorg/jruby/util/ByteList;>;
15 23 7 dirs Ljava/util/List<Lorg/jruby/util/ByteList;>;
7 15 8 tmp Lorg/jruby/runtime/builtin/IRubyObject;
11 15 9 dir Ljava/lang/String;
17 21 8 i I
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(required = 1, optional = 2, meta = true)
MethodParameters:
Name Flags
context
recv
args
block
public org.jruby.RubyArray entries();
descriptor: ()Lorg/jruby/RubyArray;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: new org.jruby.javasupport.JavaUtil$StringConverter
dup
aload 0
getfield org.jruby.RubyDir.encoding:Lorg/jcodings/Encoding;
invokespecial org.jruby.javasupport.JavaUtil$StringConverter.<init>:(Lorg/jcodings/Encoding;)V
astore 1
start local 1 1: aload 0
invokevirtual org.jruby.RubyDir.getRuntime:()Lorg/jruby/Ruby;
aload 0
invokevirtual org.jruby.RubyDir.getRuntime:()Lorg/jruby/Ruby;
aload 0
getfield org.jruby.RubyDir.snapshot:[Ljava/lang/String;
aload 1
invokestatic org.jruby.javasupport.JavaUtil.convertStringArrayToRuby:(Lorg/jruby/Ruby;[Ljava/lang/String;Lorg/jruby/javasupport/JavaUtil$StringConverter;)[Lorg/jruby/runtime/builtin/IRubyObject;
invokestatic org.jruby.RubyArray.newArrayMayCopy:(Lorg/jruby/Ruby;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/RubyDir;
1 2 1 converter Lorg/jruby/javasupport/JavaUtil$StringConverter;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"entries"})
public static org.jruby.RubyArray entries(org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
aload 0
aload 1
invokestatic org.jruby.RubyDir.entries:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 1 path Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
recv
path
public static org.jruby.RubyArray entries(org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
aload 0
aload 1
aload 3
invokestatic org.jruby.RubyDir.entries:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 1 path Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 arg Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 opts Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
recv
path
arg
opts
public static org.jruby.RubyArray entries(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 3
start local 3 1: aload 3
aload 0
aload 2
invokestatic org.jruby.RubyFile.get_path:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
invokestatic org.jruby.util.StringSupport.checkEmbeddedNulls:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
astore 4
start local 4 2: aload 0
aload 4
invokevirtual org.jruby.RubyString.asJavaString:()Ljava/lang/String;
aload 3
invokevirtual org.jruby.Ruby.getDefaultEncoding:()Lorg/jcodings/Encoding;
iconst_0
invokestatic org.jruby.RubyDir.entriesCommon:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;Lorg/jcodings/Encoding;Z)Lorg/jruby/RubyArray;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 context Lorg/jruby/runtime/ThreadContext;
0 3 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 3 2 arg Lorg/jruby/runtime/builtin/IRubyObject;
1 3 3 runtime Lorg/jruby/Ruby;
2 3 4 path Lorg/jruby/RubyString;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"entries"}, meta = true)
MethodParameters:
Name Flags
context
recv
arg
public static org.jruby.RubyArray entries(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 4
start local 4 1: aconst_null
astore 5
start local 5 2: aload 4
aload 0
aload 2
invokestatic org.jruby.RubyFile.get_path:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
invokestatic org.jruby.util.StringSupport.checkEmbeddedNulls:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
astore 6
start local 6 3: aload 3
instanceof org.jruby.RubyHash
ifeq 7
4: aload 0
aload 3
checkcast org.jruby.RubyHash
ldc "encoding"
invokestatic org.jruby.ast.util.ArgsUtil.extractKeywordArg:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyHash;Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 7
start local 7 5: aload 7
ifnull 7
aload 7
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 7
6: aload 4
invokevirtual org.jruby.Ruby.getEncodingService:()Lorg/jruby/runtime/encoding/EncodingService;
aload 7
invokevirtual org.jruby.runtime.encoding.EncodingService.getEncodingFromObject:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jcodings/Encoding;
astore 5
end local 7 7: StackMap locals: org.jruby.Ruby org.jcodings.Encoding org.jruby.RubyString
StackMap stack:
aload 5
ifnonnull 8
aload 4
invokevirtual org.jruby.Ruby.getDefaultEncoding:()Lorg/jcodings/Encoding;
astore 5
8: StackMap locals:
StackMap stack:
aload 0
aload 6
invokevirtual org.jruby.RubyString.asJavaString:()Ljava/lang/String;
aload 5
iconst_0
invokestatic org.jruby.RubyDir.entriesCommon:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;Lorg/jcodings/Encoding;Z)Lorg/jruby/RubyArray;
areturn
end local 6 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 context Lorg/jruby/runtime/ThreadContext;
0 9 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 9 2 arg Lorg/jruby/runtime/builtin/IRubyObject;
0 9 3 opts Lorg/jruby/runtime/builtin/IRubyObject;
1 9 4 runtime Lorg/jruby/Ruby;
2 9 5 encoding Lorg/jcodings/Encoding;
3 9 6 path Lorg/jruby/RubyString;
5 7 7 encodingArg Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"entries"}, meta = true)
MethodParameters:
Name Flags
context
recv
arg
opts
private static org.jruby.RubyArray entriesCommon(org.jruby.runtime.ThreadContext, java.lang.String, org.jcodings.Encoding, boolean);
descriptor: (Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;Lorg/jcodings/Encoding;Z)Lorg/jruby/RubyArray;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=14, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 4
start local 4 1: aload 4
aload 1
aconst_null
invokestatic org.jruby.RubyFile.adjustRootPathOnWindows:(Lorg/jruby/Ruby;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 5
start local 5 2: aload 4
aload 5
invokestatic org.jruby.RubyDir.checkDirIsTwoSlashesOnWindows:(Lorg/jruby/Ruby;Ljava/lang/String;)V
3: aload 0
aload 1
invokestatic org.jruby.util.JRubyFile.createResource:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;)Lorg/jruby/util/FileResource;
astore 6
start local 6 4: aload 0
aload 6
aload 5
invokestatic org.jruby.RubyDir.getEntries:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/util/FileResource;Ljava/lang/String;)[Ljava/lang/String;
astore 7
start local 7 5: aload 4
aload 7
arraylength
invokestatic org.jruby.RubyArray.newArray:(Lorg/jruby/Ruby;I)Lorg/jruby/RubyArray;
astore 8
start local 8 6: aload 7
dup
astore 12
arraylength
istore 11
iconst_0
istore 10
goto 14
StackMap locals: org.jruby.runtime.ThreadContext java.lang.String org.jcodings.Encoding int org.jruby.Ruby java.lang.String org.jruby.util.FileResource java.lang.String[] org.jruby.RubyArray top int int java.lang.String[]
StackMap stack:
7: aload 12
iload 10
aaload
astore 9
start local 9 8: iload 3
ifeq 12
9: aload 9
invokevirtual java.lang.String.length:()I
istore 13
start local 13 10: iload 13
iconst_1
if_icmpne 11
aload 9
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 46
if_icmpne 11
goto 13
11: StackMap locals: org.jruby.runtime.ThreadContext java.lang.String org.jcodings.Encoding int org.jruby.Ruby java.lang.String org.jruby.util.FileResource java.lang.String[] org.jruby.RubyArray java.lang.String int int java.lang.String[] int
StackMap stack:
iload 13
iconst_2
if_icmpne 12
aload 9
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 46
if_icmpne 12
aload 9
iconst_1
invokevirtual java.lang.String.charAt:(I)C
bipush 46
if_icmpne 12
goto 13
end local 13 12: StackMap locals:
StackMap stack:
aload 8
aload 4
aload 9
aload 2
invokestatic org.jruby.RubyString.newString:(Lorg/jruby/Ruby;Ljava/lang/String;Lorg/jcodings/Encoding;)Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyArray.append:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
pop
end local 9 13: StackMap locals: org.jruby.runtime.ThreadContext java.lang.String org.jcodings.Encoding int org.jruby.Ruby java.lang.String org.jruby.util.FileResource java.lang.String[] org.jruby.RubyArray top int int java.lang.String[]
StackMap stack:
iinc 10 1
StackMap locals:
StackMap stack:
14: iload 10
iload 11
if_icmplt 7
15: aload 8
areturn
end local 8 end local 7 end local 6 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 16 0 context Lorg/jruby/runtime/ThreadContext;
0 16 1 path Ljava/lang/String;
0 16 2 encoding Lorg/jcodings/Encoding;
0 16 3 childrenOnly Z
1 16 4 runtime Lorg/jruby/Ruby;
2 16 5 adjustedPath Ljava/lang/String;
4 16 6 directory Lorg/jruby/util/FileResource;
5 16 7 files [Ljava/lang/String;
6 16 8 result Lorg/jruby/RubyArray;
8 13 9 file Ljava/lang/String;
10 12 13 len I
MethodParameters:
Name Flags
context
path
encoding
childrenOnly final
private static java.lang.String[] getEntries(org.jruby.runtime.ThreadContext, org.jruby.util.FileResource, java.lang.String);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/util/FileResource;Ljava/lang/String;)[Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokeinterface org.jruby.util.FileResource.isDirectory:()Z
ifne 4
1: aload 1
invokeinterface org.jruby.util.FileResource.exists:()Z
ifeq 3
2: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 2
invokevirtual org.jruby.Ruby.newErrnoENOTDIRError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
3: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 2
invokevirtual org.jruby.Ruby.newErrnoENOENTError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
4: StackMap locals:
StackMap stack:
aload 1
invokeinterface org.jruby.util.FileResource.canRead:()Z
ifne 5
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 2
invokevirtual org.jruby.Ruby.newErrnoEACCESError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
5: StackMap locals:
StackMap stack:
aload 1
invokeinterface org.jruby.util.FileResource.list:()[Ljava/lang/String;
astore 3
start local 3 6: aload 3
ifnonnull 7
getstatic org.jruby.RubyDir.NO_FILES:[Ljava/lang/String;
goto 8
StackMap locals: java.lang.String[]
StackMap stack:
7: aload 3
StackMap locals:
StackMap stack: java.lang.String[]
8: areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 context Lorg/jruby/runtime/ThreadContext;
0 9 1 dir Lorg/jruby/util/FileResource;
0 9 2 path Ljava/lang/String;
6 9 3 list [Ljava/lang/String;
MethodParameters:
Name Flags
context
dir
path
private static void checkDirIsTwoSlashesOnWindows(org.jruby.Ruby, java.lang.String);
descriptor: (Lorg/jruby/Ruby;Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: getstatic jnr.posix.util.Platform.IS_WINDOWS:Z
ifeq 2
ldc "//"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 1
ldc "\\\\"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 2
1: StackMap locals:
StackMap stack:
aload 0
new java.lang.StringBuilder
dup
ldc "Invalid argument - "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newErrnoEINVALError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 runtime Lorg/jruby/Ruby;
0 3 1 path Ljava/lang/String;
MethodParameters:
Name Flags
runtime
path
public static org.jruby.runtime.builtin.IRubyObject chdir(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject[], org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 4
start local 4 1: aload 2
arraylength
iconst_1
if_icmpne 3
2: aload 4
aload 0
aload 2
iconst_0
aaload
invokestatic org.jruby.RubyFile.get_path:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
invokestatic org.jruby.util.StringSupport.checkEmbeddedNulls:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
goto 4
3: StackMap locals: org.jruby.Ruby
StackMap stack:
aload 0
invokestatic org.jruby.RubyDir.getHomeDirectoryPath:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyString;
4: StackMap locals:
StackMap stack: org.jruby.RubyString
astore 5
start local 5 5: aload 4
aload 5
invokevirtual org.jruby.RubyString.asJavaString:()Ljava/lang/String;
aconst_null
invokestatic org.jruby.RubyFile.adjustRootPathOnWindows:(Lorg/jruby/Ruby;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 6
start local 6 6: aload 4
aload 6
invokestatic org.jruby.RubyDir.checkDirIsTwoSlashesOnWindows:(Lorg/jruby/Ruby;Ljava/lang/String;)V
7: aload 4
aload 6
invokestatic org.jruby.RubyDir.getExistingDir:(Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/jruby/util/FileResource;
invokeinterface org.jruby.util.FileResource.canonicalPath:()Ljava/lang/String;
astore 6
8: aload 3
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifeq 20
9: aload 4
invokevirtual org.jruby.Ruby.getCurrentDirectory:()Ljava/lang/String;
astore 8
start local 8 10: aload 4
aload 6
invokevirtual org.jruby.Ruby.setCurrentDirectory:(Ljava/lang/String;)V
11: aload 3
aload 0
aload 5
invokevirtual org.jruby.runtime.Block.yield:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 7
start local 7 12: goto 17
end local 7 StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject[] org.jruby.runtime.Block org.jruby.Ruby org.jruby.RubyString java.lang.String top java.lang.String
StackMap stack: java.lang.Throwable
13: astore 9
14: aload 4
aload 8
invokestatic org.jruby.RubyDir.getExistingDir:(Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/jruby/util/FileResource;
pop
15: aload 4
aload 8
invokevirtual org.jruby.Ruby.setCurrentDirectory:(Ljava/lang/String;)V
16: aload 9
athrow
start local 7 17: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject[] org.jruby.runtime.Block org.jruby.Ruby org.jruby.RubyString java.lang.String org.jruby.runtime.builtin.IRubyObject java.lang.String
StackMap stack:
aload 4
aload 8
invokestatic org.jruby.RubyDir.getExistingDir:(Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/jruby/util/FileResource;
pop
18: aload 4
aload 8
invokevirtual org.jruby.Ruby.setCurrentDirectory:(Ljava/lang/String;)V
end local 8 19: goto 22
end local 7 20: StackMap locals:
StackMap stack:
aload 4
aload 6
invokevirtual org.jruby.Ruby.setCurrentDirectory:(Ljava/lang/String;)V
21: aload 4
iconst_0
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
astore 7
start local 7 22: StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 7
areturn
end local 7 end local 6 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 23 0 context Lorg/jruby/runtime/ThreadContext;
0 23 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 23 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
0 23 3 block Lorg/jruby/runtime/Block;
1 23 4 runtime Lorg/jruby/Ruby;
5 23 5 path Lorg/jruby/RubyString;
6 23 6 adjustedPath Ljava/lang/String;
12 13 7 result Lorg/jruby/runtime/builtin/IRubyObject;
17 20 7 result Lorg/jruby/runtime/builtin/IRubyObject;
22 23 7 result Lorg/jruby/runtime/builtin/IRubyObject;
10 19 8 oldCwd Ljava/lang/String;
Exception table:
from to target type
11 13 13 any
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(optional = 1, meta = true)
MethodParameters:
Name Flags
context
recv
args
block
public static org.jruby.runtime.builtin.IRubyObject chroot(org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
ldc "chroot not implemented: chroot is non-portable and is not supported."
invokevirtual org.jruby.Ruby.newNotImplementedError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 1 path Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"chroot"}, required = 1, meta = true)
MethodParameters:
Name Flags
recv
path
public static org.jruby.RubyArray children(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
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
aload 0
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
invokestatic org.jruby.RubyDir.children:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 arg Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"children"}, meta = true)
MethodParameters:
Name Flags
context
recv
arg
public static org.jruby.RubyArray children(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aconst_null
astore 4
start local 4 1: aload 3
instanceof org.jruby.RubyHash
ifeq 5
2: aload 0
aload 3
checkcast org.jruby.RubyHash
ldc "encoding"
invokestatic org.jruby.ast.util.ArgsUtil.extractKeywordArg:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyHash;Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 5
start local 5 3: aload 5
ifnull 5
aload 5
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 5
4: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getEncodingService:()Lorg/jruby/runtime/encoding/EncodingService;
aload 5
invokevirtual org.jruby.runtime.encoding.EncodingService.getEncodingFromObject:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jcodings/Encoding;
astore 4
end local 5 5: StackMap locals: org.jcodings.Encoding
StackMap stack:
aload 4
ifnonnull 6
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getDefaultEncoding:()Lorg/jcodings/Encoding;
astore 4
6: StackMap locals:
StackMap stack:
aload 0
aload 0
aload 2
invokestatic org.jruby.RubyFile.get_path:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.asJavaString:()Ljava/lang/String;
aload 4
iconst_1
invokestatic org.jruby.RubyDir.entriesCommon:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;Lorg/jcodings/Encoding;Z)Lorg/jruby/RubyArray;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 context Lorg/jruby/runtime/ThreadContext;
0 7 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 7 2 arg Lorg/jruby/runtime/builtin/IRubyObject;
0 7 3 opts Lorg/jruby/runtime/builtin/IRubyObject;
1 7 4 encoding Lorg/jcodings/Encoding;
3 5 5 encodingArg Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"children"}, meta = true)
MethodParameters:
Name Flags
context
recv
arg
opts
public static org.jruby.runtime.builtin.IRubyObject rmdir(org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
aload 0
aload 1
invokestatic org.jruby.RubyDir.rmdir19:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 1 path Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
recv
path
public static org.jruby.runtime.builtin.IRubyObject rmdir19(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 3
start local 3 1: aload 3
aload 0
aload 2
invokestatic org.jruby.RubyFile.get_path:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
invokestatic org.jruby.util.StringSupport.checkEmbeddedNulls:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
astore 4
start local 4 2: aload 3
aload 4
invokevirtual org.jruby.RubyString.asJavaString:()Ljava/lang/String;
invokestatic org.jruby.RubyDir.rmdirCommon:(Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/jruby/RubyFixnum;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 context Lorg/jruby/runtime/ThreadContext;
0 3 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 3 2 path Lorg/jruby/runtime/builtin/IRubyObject;
1 3 3 runtime Lorg/jruby/Ruby;
2 3 4 cleanPath Lorg/jruby/RubyString;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"rmdir", "unlink", "delete"}, required = 1, meta = true)
MethodParameters:
Name Flags
context
recv
path
private static org.jruby.RubyFixnum rmdirCommon(org.jruby.Ruby, java.lang.String);
descriptor: (Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/jruby/RubyFixnum;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic org.jruby.RubyDir.getDirForRmdir:(Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/jruby/util/JRubyFile;
astore 2
start local 2 1: aload 0
invokevirtual org.jruby.Ruby.getPosix:()Ljnr/posix/POSIX;
aload 2
invokevirtual org.jruby.util.JRubyFile.toString:()Ljava/lang/String;
invokeinterface jnr.posix.POSIX.rmdir:(Ljava/lang/String;)I
ifge 3
2: aload 0
aload 1
invokevirtual org.jruby.Ruby.newErrnoENOTEMPTYError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
3: StackMap locals: org.jruby.util.JRubyFile
StackMap stack:
aload 0
iconst_0
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 runtime Lorg/jruby/Ruby;
0 4 1 path Ljava/lang/String;
1 4 2 directory Lorg/jruby/util/JRubyFile;
MethodParameters:
Name Flags
runtime
path
public static org.jruby.runtime.builtin.IRubyObject each_child(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 0
aload 2
invokestatic org.jruby.RubyFile.get_path:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
aconst_null
aload 3
invokestatic org.jruby.RubyDir.eachChildCommon:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyString;Lorg/jruby/RubyEncoding;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 arg Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"each_child"}, meta = true)
MethodParameters:
Name Flags
context
recv
arg
block
public static org.jruby.runtime.builtin.IRubyObject each_child(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 3
instanceof org.jruby.RubyEncoding
ifeq 3
1: aload 3
checkcast org.jruby.RubyEncoding
astore 5
start local 5 2: goto 4
end local 5 3: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 3
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getEncoding:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.Ruby.newTypeError:(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyClass;)Lorg/jruby/exceptions/RaiseException;
athrow
start local 5 4: StackMap locals: org.jruby.RubyEncoding
StackMap stack:
aload 0
aload 1
aload 0
aload 2
invokestatic org.jruby.RubyFile.get_path:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
aload 5
aload 4
invokestatic org.jruby.RubyDir.eachChildCommon:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyString;Lorg/jruby/RubyEncoding;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
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 5 0 context Lorg/jruby/runtime/ThreadContext;
0 5 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 5 2 arg Lorg/jruby/runtime/builtin/IRubyObject;
0 5 3 enc Lorg/jruby/runtime/builtin/IRubyObject;
0 5 4 block Lorg/jruby/runtime/Block;
2 3 5 encoding Lorg/jruby/RubyEncoding;
4 5 5 encoding Lorg/jruby/RubyEncoding;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"each_child"}, meta = true)
MethodParameters:
Name Flags
context
recv
arg
enc
block
public static org.jruby.runtime.builtin.IRubyObject foreach(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 0
aload 2
invokestatic org.jruby.RubyFile.get_path:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
aconst_null
aload 3
invokestatic org.jruby.RubyDir.foreachCommon:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyString;Lorg/jcodings/Encoding;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 path Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"foreach"}, meta = true)
MethodParameters:
Name Flags
context
recv
path
block
public static org.jruby.runtime.builtin.IRubyObject foreach(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aconst_null
astore 5
start local 5 1: aload 3
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 6
2: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 3
invokestatic org.jruby.util.TypeConverter.checkHashType:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 6
start local 6 3: aload 0
aload 6
checkcast org.jruby.RubyHash
ldc "encoding"
invokestatic org.jruby.ast.util.ArgsUtil.extractKeywordArg:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyHash;Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 7
start local 7 4: aload 7
ifnull 6
aload 7
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 6
5: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getEncodingService:()Lorg/jruby/runtime/encoding/EncodingService;
aload 7
invokevirtual org.jruby.runtime.encoding.EncodingService.getEncodingFromObject:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jcodings/Encoding;
astore 5
end local 7 end local 6 6: StackMap locals: org.jcodings.Encoding
StackMap stack:
aload 5
ifnonnull 7
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getDefaultFilesystemEncoding:()Lorg/jcodings/Encoding;
astore 5
7: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 0
aload 2
invokestatic org.jruby.RubyFile.get_path:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
aload 5
aload 4
invokestatic org.jruby.RubyDir.foreachCommon:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyString;Lorg/jcodings/Encoding;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
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 8 0 context Lorg/jruby/runtime/ThreadContext;
0 8 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 8 2 path Lorg/jruby/runtime/builtin/IRubyObject;
0 8 3 encOpts Lorg/jruby/runtime/builtin/IRubyObject;
0 8 4 block Lorg/jruby/runtime/Block;
1 8 5 encoding Lorg/jcodings/Encoding;
3 6 6 opts Lorg/jruby/runtime/builtin/IRubyObject;
4 6 7 encodingArg Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"foreach"}, meta = true)
MethodParameters:
Name Flags
context
recv
path
encOpts
block
public static org.jruby.runtime.builtin.IRubyObject foreach19(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 0
aload 2
invokestatic org.jruby.RubyFile.get_path:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
aconst_null
aload 3
invokestatic org.jruby.RubyDir.foreachCommon:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyString;Lorg/jcodings/Encoding;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 path Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
context
recv
path
block
public static org.jruby.runtime.builtin.IRubyObject foreach19(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 0
aload 2
invokestatic org.jruby.RubyFile.get_path:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getEncodingService:()Lorg/jruby/runtime/encoding/EncodingService;
aload 3
invokevirtual org.jruby.runtime.encoding.EncodingService.getEncodingFromObject:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jcodings/Encoding;
aload 4
invokestatic org.jruby.RubyDir.foreachCommon:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyString;Lorg/jcodings/Encoding;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 path Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 enc Lorg/jruby/runtime/builtin/IRubyObject;
0 1 4 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
context
recv
path
enc
block
private static org.jruby.runtime.builtin.IRubyObject eachChildCommon(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.RubyString, org.jruby.RubyEncoding, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyString;Lorg/jruby/RubyEncoding;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 5
start local 5 1: aload 4
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifeq 7
2: aload 5
invokevirtual org.jruby.Ruby.getDir:()Lorg/jruby/RubyClass;
aload 0
aload 2
getstatic org.jruby.runtime.Block.NULL_BLOCK:Lorg/jruby/runtime/Block;
invokevirtual org.jruby.RubyClass.newInstance:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.RubyDir
astore 6
start local 6 3: aload 6
aload 0
aload 3
ifnonnull 4
aload 5
invokevirtual org.jruby.Ruby.getDefaultEncoding:()Lorg/jcodings/Encoding;
goto 5
StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.RubyString org.jruby.RubyEncoding org.jruby.runtime.Block org.jruby.Ruby org.jruby.RubyDir
StackMap stack: org.jruby.RubyDir org.jruby.runtime.ThreadContext
4: aload 3
invokevirtual org.jruby.RubyEncoding.getEncoding:()Lorg/jcodings/Encoding;
StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.RubyString org.jruby.RubyEncoding org.jruby.runtime.Block org.jruby.Ruby org.jruby.RubyDir
StackMap stack: org.jruby.RubyDir org.jruby.runtime.ThreadContext org.jcodings.Encoding
5: aload 4
invokevirtual org.jruby.RubyDir.each_child:(Lorg/jruby/runtime/ThreadContext;Lorg/jcodings/Encoding;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
6: aload 0
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 6 7: StackMap locals:
StackMap stack:
aload 3
ifnonnull 9
8: aload 5
aload 1
ldc "each_child"
aload 2
invokestatic org.jruby.RubyEnumerator.enumeratorize:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
9: StackMap locals:
StackMap stack:
aload 5
aload 1
ldc "each_child"
iconst_2
anewarray org.jruby.runtime.builtin.IRubyObject
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 3
aastore
invokestatic org.jruby.RubyEnumerator.enumeratorize:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
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 10 0 context Lorg/jruby/runtime/ThreadContext;
0 10 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 10 2 path Lorg/jruby/RubyString;
0 10 3 encoding Lorg/jruby/RubyEncoding;
0 10 4 block Lorg/jruby/runtime/Block;
1 10 5 runtime Lorg/jruby/Ruby;
3 7 6 dir Lorg/jruby/RubyDir;
MethodParameters:
Name Flags
context
recv
path
encoding
block
private static org.jruby.runtime.builtin.IRubyObject foreachCommon(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.RubyString, org.jcodings.Encoding, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyString;Lorg/jcodings/Encoding;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 5
start local 5 1: aload 4
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifeq 7
2: aload 5
invokevirtual org.jruby.Ruby.getDir:()Lorg/jruby/RubyClass;
aload 0
aload 2
getstatic org.jruby.runtime.Block.NULL_BLOCK:Lorg/jruby/runtime/Block;
invokevirtual org.jruby.RubyClass.newInstance:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.RubyDir
astore 6
start local 6 3: aload 6
aload 0
aload 3
ifnonnull 4
aload 5
invokevirtual org.jruby.Ruby.getDefaultEncoding:()Lorg/jcodings/Encoding;
goto 5
StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.RubyString org.jcodings.Encoding org.jruby.runtime.Block org.jruby.Ruby org.jruby.RubyDir
StackMap stack: org.jruby.RubyDir org.jruby.runtime.ThreadContext
4: aload 3
StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.RubyString org.jcodings.Encoding org.jruby.runtime.Block org.jruby.Ruby org.jruby.RubyDir
StackMap stack: org.jruby.RubyDir org.jruby.runtime.ThreadContext org.jcodings.Encoding
5: aload 4
invokevirtual org.jruby.RubyDir.each:(Lorg/jruby/runtime/ThreadContext;Lorg/jcodings/Encoding;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
6: aload 0
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 6 7: StackMap locals:
StackMap stack:
aload 3
ifnonnull 9
8: aload 5
aload 1
ldc "foreach"
aload 2
invokestatic org.jruby.RubyEnumerator.enumeratorize:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
9: StackMap locals:
StackMap stack:
aload 5
invokevirtual org.jruby.Ruby.getEncodingService:()Lorg/jruby/runtime/encoding/EncodingService;
aload 3
invokevirtual org.jruby.runtime.encoding.EncodingService.getEncoding:(Lorg/jcodings/Encoding;)Lorg/jruby/RubyEncoding;
astore 6
start local 6 10: aload 5
aload 1
ldc "foreach"
iconst_2
anewarray org.jruby.runtime.builtin.IRubyObject
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 6
aastore
invokestatic org.jruby.RubyEnumerator.enumeratorize:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 6 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 11 0 context Lorg/jruby/runtime/ThreadContext;
0 11 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 11 2 path Lorg/jruby/RubyString;
0 11 3 encoding Lorg/jcodings/Encoding;
0 11 4 block Lorg/jruby/runtime/Block;
1 11 5 runtime Lorg/jruby/Ruby;
3 7 6 dir Lorg/jruby/RubyDir;
10 11 6 rubyEncoding Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
context
recv
path
encoding
block
public static org.jruby.RubyString getwd(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
astore 1
start local 1 1: aload 1
aload 1
invokestatic org.jruby.RubyDir.getCWD:(Lorg/jruby/Ruby;)Ljava/lang/String;
invokestatic org.jruby.RubyString.newUnicodeString:(Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/jruby/RubyString;
astore 2
start local 2 2: aload 2
iconst_1
invokevirtual org.jruby.RubyString.setTaint:(Z)V
3: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 recv Lorg/jruby/runtime/builtin/IRubyObject;
1 4 1 runtime Lorg/jruby/Ruby;
2 4 2 pwd Lorg/jruby/RubyString;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"getwd", "pwd"}, meta = true)
MethodParameters:
Name Flags
recv
public static org.jruby.runtime.builtin.IRubyObject home(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
arraylength
ifle 1
aload 2
iconst_0
aaload
aload 0
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
if_acmpeq 1
aload 0
aload 2
iconst_0
aaload
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokestatic org.jruby.RubyDir.getHomeDirectoryPath:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
1: StackMap locals:
StackMap stack:
aload 0
invokestatic org.jruby.RubyDir.getHomeDirectoryPath:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyString;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 context Lorg/jruby/runtime/ThreadContext;
0 2 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 2 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"home"}, optional = 1, meta = true)
MethodParameters:
Name Flags
context
recv
args
public static org.jruby.runtime.builtin.IRubyObject mkdir(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 3
start local 3 1: aload 3
aload 0
aload 2
iconst_0
aaload
invokestatic org.jruby.RubyFile.get_path:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
invokestatic org.jruby.util.StringSupport.checkEmbeddedNulls:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
astore 4
start local 4 2: aload 3
aload 4
invokevirtual org.jruby.RubyString.asJavaString:()Ljava/lang/String;
aload 2
invokestatic org.jruby.RubyDir.mkdirCommon:(Lorg/jruby/Ruby;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 context Lorg/jruby/runtime/ThreadContext;
0 3 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 3 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
1 3 3 runtime Lorg/jruby/Ruby;
2 3 4 path Lorg/jruby/RubyString;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"mkdir"}, required = 1, optional = 1, meta = true)
MethodParameters:
Name Flags
context
recv
args
public static org.jruby.runtime.builtin.IRubyObject mkdir(org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
aload 0
aload 1
invokestatic org.jruby.RubyDir.mkdir:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 1 args [Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
recv
args
public static org.jruby.runtime.builtin.IRubyObject mkdir19(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokestatic org.jruby.RubyDir.mkdir:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
context
recv
args
private static org.jruby.runtime.builtin.IRubyObject mkdirCommon(org.jruby.Ruby, java.lang.String, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/Ruby;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ldc "uri:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 1
aload 0
aload 1
invokevirtual org.jruby.Ruby.newErrnoEACCESError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
1: StackMap locals:
StackMap stack:
aload 1
aload 0
invokestatic org.jruby.RubyDir.dirFromPath:(Ljava/lang/String;Lorg/jruby/Ruby;)Ljava/lang/String;
astore 1
2: aload 0
aload 1
invokestatic org.jruby.util.JRubyFile.createResource:(Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/jruby/util/FileResource;
astore 3
start local 3 3: aload 3
invokeinterface org.jruby.util.FileResource.isDirectory:()Z
ifeq 4
aload 0
aload 1
invokevirtual org.jruby.Ruby.newErrnoEEXISTError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
4: StackMap locals: org.jruby.util.FileResource
StackMap stack:
aload 1
bipush 92
bipush 47
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
astore 4
start local 4 5: aload 4
invokestatic org.jruby.RubyFile.startsWithDriveLetterOnWindows:(Ljava/lang/String;)Z
istore 5
start local 5 6: iload 5
ifeq 11
7: aload 1
invokevirtual java.lang.String.length:()I
iconst_2
if_icmpne 8
aload 0
invokestatic org.jruby.RubyFixnum.zero:(Lorg/jruby/Ruby;)Lorg/jruby/RubyFixnum;
areturn
8: StackMap locals: java.lang.String int
StackMap stack:
aload 1
invokevirtual java.lang.String.length:()I
iconst_3
if_icmpne 10
aload 1
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 47
if_icmpeq 9
aload 1
iconst_2
invokevirtual java.lang.String.charAt:(I)C
bipush 47
if_icmpne 10
StackMap locals:
StackMap stack:
9: aload 0
invokestatic org.jruby.RubyFixnum.zero:(Lorg/jruby/Ruby;)Lorg/jruby/RubyFixnum;
areturn
10: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.String.length:()I
iconst_4
if_icmpne 11
aload 1
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 47
if_icmpne 11
aload 1
iconst_3
invokevirtual java.lang.String.charAt:(I)C
bipush 47
if_icmpne 11
aload 0
invokestatic org.jruby.RubyFixnum.zero:(Lorg/jruby/Ruby;)Lorg/jruby/RubyFixnum;
areturn
11: StackMap locals:
StackMap stack:
aload 3
ldc Ljava/io/File;
invokeinterface org.jruby.util.FileResource.unwrap:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast java.io.File
astore 6
start local 6 12: getstatic java.io.File.separatorChar:C
bipush 92
if_icmpne 13
new java.io.File
dup
aload 6
invokevirtual java.io.File.getPath:()Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 6
13: StackMap locals: java.io.File
StackMap stack:
aload 2
arraylength
iconst_2
if_icmpne 14
aload 2
iconst_1
aaload
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToInteger:()Lorg/jruby/RubyInteger;
invokevirtual org.jruby.RubyInteger.getLongValue:()J
l2i
goto 15
StackMap locals:
StackMap stack:
14: sipush 511
StackMap locals:
StackMap stack: int
15: istore 7
start local 7 16: aload 0
invokevirtual org.jruby.Ruby.getPosix:()Ljnr/posix/POSIX;
aload 6
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
iload 7
invokeinterface jnr.posix.POSIX.mkdir:(Ljava/lang/String;I)I
ifge 18
17: aload 0
ldc "mkdir failed"
invokevirtual org.jruby.Ruby.newSystemCallError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
18: StackMap locals: int
StackMap stack:
aload 0
invokestatic org.jruby.RubyFixnum.zero:(Lorg/jruby/Ruby;)Lorg/jruby/RubyFixnum;
areturn
end local 7 end local 6 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 19 0 runtime Lorg/jruby/Ruby;
0 19 1 path Ljava/lang/String;
0 19 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
3 19 3 res Lorg/jruby/util/FileResource;
5 19 4 name Ljava/lang/String;
6 19 5 startsWithDriveLetterOnWindows Z
12 19 6 newDir Ljava/io/File;
16 19 7 mode I
MethodParameters:
Name Flags
runtime
path
args
public static org.jruby.runtime.builtin.IRubyObject open(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getDir:()Lorg/jruby/RubyClass;
aload 0
aload 2
getstatic org.jruby.runtime.Block.NULL_BLOCK:Lorg/jruby/runtime/Block;
invokevirtual org.jruby.RubyClass.newInstance:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.RubyDir
astore 4
start local 4 1: aload 3
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifne 2
aload 4
areturn
2: StackMap locals: org.jruby.RubyDir
StackMap stack:
aload 3
aload 0
aload 4
invokevirtual org.jruby.runtime.Block.yield:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 6
3: aload 4
invokevirtual org.jruby.RubyDir.close:()V
4: aload 6
areturn
5: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
6: aload 4
invokevirtual org.jruby.RubyDir.close:()V
7: aload 5
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 context Lorg/jruby/runtime/ThreadContext;
0 8 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 8 2 path Lorg/jruby/runtime/builtin/IRubyObject;
0 8 3 block Lorg/jruby/runtime/Block;
1 8 4 directory Lorg/jruby/RubyDir;
Exception table:
from to target type
2 3 5 any
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"open"}, meta = true)
MethodParameters:
Name Flags
context
recv
path
block
public static org.jruby.runtime.builtin.IRubyObject open(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getDir:()Lorg/jruby/RubyClass;
aload 0
aload 2
aload 3
getstatic org.jruby.runtime.Block.NULL_BLOCK:Lorg/jruby/runtime/Block;
invokevirtual org.jruby.RubyClass.newInstance:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.RubyDir
astore 5
start local 5 1: aload 4
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifne 2
aload 5
areturn
2: StackMap locals: org.jruby.RubyDir
StackMap stack:
aload 4
aload 0
aload 5
invokevirtual org.jruby.runtime.Block.yield:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 7
3: aload 5
invokevirtual org.jruby.RubyDir.close:()V
4: aload 7
areturn
5: StackMap locals:
StackMap stack: java.lang.Throwable
astore 6
6: aload 5
invokevirtual org.jruby.RubyDir.close:()V
7: aload 6
athrow
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 8 0 context Lorg/jruby/runtime/ThreadContext;
0 8 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 8 2 path Lorg/jruby/runtime/builtin/IRubyObject;
0 8 3 encOpts Lorg/jruby/runtime/builtin/IRubyObject;
0 8 4 block Lorg/jruby/runtime/Block;
1 8 5 directory Lorg/jruby/RubyDir;
Exception table:
from to target type
2 3 5 any
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"open"}, meta = true)
MethodParameters:
Name Flags
context
recv
path
encOpts
block
public static org.jruby.runtime.builtin.IRubyObject open19(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
invokestatic org.jruby.RubyDir.open:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 path Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
context
recv
path
block
public org.jruby.runtime.builtin.IRubyObject close(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.RubyDir.close:()V
1: aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/RubyDir;
0 2 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"close"})
MethodParameters:
Name Flags
context
public final void close();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyDir.checkDirIgnoreClosed:()V
1: aload 0
iconst_0
putfield org.jruby.RubyDir.isOpen:Z
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/RubyDir;
public org.jruby.runtime.builtin.IRubyObject each(org.jruby.runtime.ThreadContext, org.jcodings.Encoding, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jcodings/Encoding;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual org.jruby.RubyDir.checkDir:()V
1: aload 0
getfield org.jruby.RubyDir.snapshot:[Ljava/lang/String;
astore 4
start local 4 2: aload 0
iconst_0
putfield org.jruby.RubyDir.pos:I
goto 5
3: StackMap locals: java.lang.String[]
StackMap stack:
aload 3
aload 1
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 4
aload 0
getfield org.jruby.RubyDir.pos:I
aaload
aload 2
invokestatic org.jruby.RubyString.newString:(Lorg/jruby/Ruby;Ljava/lang/String;Lorg/jcodings/Encoding;)Lorg/jruby/RubyString;
invokevirtual org.jruby.runtime.Block.yield:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
4: aload 0
dup
getfield org.jruby.RubyDir.pos:I
iconst_1
iadd
putfield org.jruby.RubyDir.pos:I
StackMap locals:
StackMap stack:
5: aload 0
getfield org.jruby.RubyDir.pos:I
aload 4
arraylength
if_icmplt 3
6: aload 0
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/RubyDir;
0 7 1 context Lorg/jruby/runtime/ThreadContext;
0 7 2 enc Lorg/jcodings/Encoding;
0 7 3 block Lorg/jruby/runtime/Block;
2 7 4 contents [Ljava/lang/String;
MethodParameters:
Name Flags
context
enc
block
public org.jruby.runtime.builtin.IRubyObject each(org.jruby.runtime.ThreadContext, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifeq 1
aload 0
aload 1
aload 0
getfield org.jruby.RubyDir.encoding:Lorg/jcodings/Encoding;
aload 2
invokevirtual org.jruby.RubyDir.each:(Lorg/jruby/runtime/ThreadContext;Lorg/jcodings/Encoding;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
goto 2
StackMap locals:
StackMap stack:
1: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
ldc "each"
invokestatic org.jruby.RubyEnumerator.enumeratorize:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
StackMap locals:
StackMap stack: org.jruby.runtime.builtin.IRubyObject
2: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/RubyDir;
0 3 1 context Lorg/jruby/runtime/ThreadContext;
0 3 2 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"each"})
MethodParameters:
Name Flags
context
block
public org.jruby.runtime.builtin.IRubyObject each(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
instanceof org.jruby.RubyEncoding
ifne 1
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 2
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getEncoding:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.Ruby.newTypeError:(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyClass;)Lorg/jruby/exceptions/RaiseException;
athrow
1: StackMap locals:
StackMap stack:
aload 3
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifeq 2
aload 0
aload 1
aload 2
checkcast org.jruby.RubyEncoding
invokevirtual org.jruby.RubyEncoding.getEncoding:()Lorg/jcodings/Encoding;
aload 3
invokevirtual org.jruby.RubyDir.each:(Lorg/jruby/runtime/ThreadContext;Lorg/jcodings/Encoding;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
goto 3
StackMap locals:
StackMap stack:
2: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
ldc "each"
aload 2
invokestatic org.jruby.RubyEnumerator.enumeratorize:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
StackMap locals:
StackMap stack: org.jruby.runtime.builtin.IRubyObject
3: areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/RubyDir;
0 4 1 context Lorg/jruby/runtime/ThreadContext;
0 4 2 encoding Lorg/jruby/runtime/builtin/IRubyObject;
0 4 3 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"each"})
MethodParameters:
Name Flags
context
encoding
block
public org.jruby.runtime.builtin.IRubyObject each19(org.jruby.runtime.ThreadContext, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
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
invokevirtual org.jruby.RubyDir.each:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyDir;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
context
block
public org.jruby.runtime.builtin.IRubyObject each19(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
invokevirtual org.jruby.RubyDir.each:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyDir;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 encoding Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
context
encoding
block
public org.jruby.runtime.builtin.IRubyObject each_child(org.jruby.runtime.ThreadContext, org.jcodings.Encoding, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jcodings/Encoding;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual org.jruby.RubyDir.checkDir:()V
1: aload 0
getfield org.jruby.RubyDir.snapshot:[Ljava/lang/String;
astore 4
start local 4 2: aload 0
iconst_0
putfield org.jruby.RubyDir.pos:I
goto 7
3: StackMap locals: java.lang.String[]
StackMap stack:
aload 4
aload 0
getfield org.jruby.RubyDir.pos:I
aaload
bipush 46
invokestatic org.jruby.util.StringSupport.contentEquals:(Ljava/lang/CharSequence;I)Z
ifeq 4
goto 6
4: StackMap locals:
StackMap stack:
aload 4
aload 0
getfield org.jruby.RubyDir.pos:I
aaload
bipush 46
bipush 46
invokestatic org.jruby.util.StringSupport.contentEquals:(Ljava/lang/CharSequence;II)Z
ifeq 5
goto 6
5: StackMap locals:
StackMap stack:
aload 3
aload 1
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 4
aload 0
getfield org.jruby.RubyDir.pos:I
aaload
aload 2
invokestatic org.jruby.RubyString.newString:(Lorg/jruby/Ruby;Ljava/lang/String;Lorg/jcodings/Encoding;)Lorg/jruby/RubyString;
invokevirtual org.jruby.runtime.Block.yield:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
6: StackMap locals:
StackMap stack:
aload 0
dup
getfield org.jruby.RubyDir.pos:I
iconst_1
iadd
putfield org.jruby.RubyDir.pos:I
StackMap locals:
StackMap stack:
7: aload 0
getfield org.jruby.RubyDir.pos:I
aload 4
arraylength
if_icmplt 3
8: aload 0
areturn
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 Lorg/jruby/RubyDir;
0 9 1 context Lorg/jruby/runtime/ThreadContext;
0 9 2 enc Lorg/jcodings/Encoding;
0 9 3 block Lorg/jruby/runtime/Block;
2 9 4 contents [Ljava/lang/String;
MethodParameters:
Name Flags
context
enc
block
public org.jruby.runtime.builtin.IRubyObject each_child(org.jruby.runtime.ThreadContext, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 0
getfield org.jruby.RubyDir.encoding:Lorg/jcodings/Encoding;
aload 2
invokevirtual org.jruby.RubyDir.each_child:(Lorg/jruby/runtime/ThreadContext;Lorg/jcodings/Encoding;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyDir;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 block Lorg/jruby/runtime/Block;
MethodParameters:
Name Flags
context
block
public org.jruby.runtime.builtin.IRubyObject inspect();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyDir.getRuntime:()Lorg/jruby/Ruby;
astore 1
start local 1 1: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 2: aload 0
invokevirtual org.jruby.RubyDir.getMetaClass:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.RubyClass.getRealClass:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.RubyClass.getName:()Ljava/lang/String;
astore 3
start local 3 3: aload 2
ldc "#<"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 58
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
4: aload 0
getfield org.jruby.RubyDir.path:Lorg/jruby/RubyString;
ifnull 5
aload 2
aload 0
getfield org.jruby.RubyDir.path:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.asJavaString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
5: StackMap locals: org.jruby.Ruby java.lang.StringBuilder java.lang.String
StackMap stack:
aload 2
bipush 62
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
6: aload 1
aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/RubyDir;
1 7 1 runtime Lorg/jruby/Ruby;
2 7 2 part Ljava/lang/StringBuilder;
3 7 3 cname Ljava/lang/String;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
public org.jruby.RubyInteger tell();
descriptor: ()Lorg/jruby/RubyInteger;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyDir.checkDir:()V
1: aload 0
invokevirtual org.jruby.RubyDir.getRuntime:()Lorg/jruby/Ruby;
aload 0
getfield org.jruby.RubyDir.pos:I
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/RubyDir;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"tell", "pos"})
public org.jruby.runtime.builtin.IRubyObject seek(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.RubyDir.checkDir:()V
1: aload 0
aload 1
invokevirtual org.jruby.RubyDir.set_pos:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
2: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/RubyDir;
0 3 1 newPos Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"seek"}, required = 1)
MethodParameters:
Name Flags
newPos
public org.jruby.runtime.builtin.IRubyObject set_pos(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.jruby.RubyNumeric.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
istore 2
start local 2 1: iload 2
iflt 2
aload 0
iload 2
putfield org.jruby.RubyDir.pos:I
2: StackMap locals: int
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/RubyDir;
0 3 1 newPos Lorg/jruby/runtime/builtin/IRubyObject;
1 3 2 pos2 I
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"pos="}, required = 1)
MethodParameters:
Name Flags
newPos
public org.jruby.runtime.builtin.IRubyObject path(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.RubyDir.path:Lorg/jruby/RubyString;
ifnonnull 1
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield org.jruby.RubyDir.path:Lorg/jruby/RubyString;
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.RubyString.strDup:(Lorg/jruby/Ruby;)Lorg/jruby/RubyString;
StackMap locals:
StackMap stack: org.jruby.runtime.builtin.IRubyObject
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/RubyDir;
0 3 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"path", "to_path"})
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject to_path(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.jruby.RubyDir.path:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyDir;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
context
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 org.jruby.RubyDir.path:Lorg/jruby/RubyString;
ifnonnull 1
aconst_null
areturn
1: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.RubyDir.path:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.asJavaString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/RubyDir;
public org.jruby.runtime.builtin.IRubyObject read();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyDir.checkDir:()V
1: aload 0
getfield org.jruby.RubyDir.snapshot:[Ljava/lang/String;
astore 1
start local 1 2: aload 0
getfield org.jruby.RubyDir.pos:I
aload 1
arraylength
if_icmplt 3
aload 0
invokevirtual org.jruby.RubyDir.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
3: StackMap locals: java.lang.String[]
StackMap stack:
aload 0
invokevirtual org.jruby.RubyDir.getRuntime:()Lorg/jruby/Ruby;
aload 1
aload 0
getfield org.jruby.RubyDir.pos:I
aaload
aload 0
getfield org.jruby.RubyDir.encoding:Lorg/jcodings/Encoding;
invokestatic org.jruby.RubyString.newString:(Lorg/jruby/Ruby;Ljava/lang/String;Lorg/jcodings/Encoding;)Lorg/jruby/RubyString;
astore 2
start local 2 4: aload 0
dup
getfield org.jruby.RubyDir.pos:I
iconst_1
iadd
putfield org.jruby.RubyDir.pos:I
5: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/RubyDir;
2 6 1 snapshot [Ljava/lang/String;
4 6 2 result Lorg/jruby/RubyString;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"read"})
public org.jruby.runtime.builtin.IRubyObject rewind();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyDir.checkDir:()V
1: aload 0
iconst_0
putfield org.jruby.RubyDir.pos:I
2: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/RubyDir;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"rewind"})
public static org.jruby.runtime.builtin.IRubyObject empty_p(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 3
start local 3 1: aload 3
aload 0
aload 2
invokestatic org.jruby.RubyFile.get_path:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
invokestatic org.jruby.util.StringSupport.checkEmbeddedNulls:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
astore 4
start local 4 2: aload 3
aload 4
invokevirtual org.jruby.RubyString.asJavaString:()Ljava/lang/String;
iconst_0
invokevirtual org.jruby.Ruby.newFileStat:(Ljava/lang/String;Z)Lorg/jruby/RubyFileStat;
astore 5
start local 5 3: aload 5
invokevirtual org.jruby.RubyFileStat.directory_p:()Lorg/jruby/RubyBoolean;
invokevirtual org.jruby.RubyBoolean.isTrue:()Z
istore 6
start local 6 4: aload 3
iload 6
ifeq 5
aload 0
aload 1
aload 2
invokestatic org.jruby.RubyDir.entries:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
invokevirtual org.jruby.RubyArray.getLength:()I
iconst_2
if_icmpgt 5
iconst_1
goto 6
StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby org.jruby.RubyString org.jruby.RubyFileStat int
StackMap stack: org.jruby.Ruby
5: iconst_0
StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby org.jruby.RubyString org.jruby.RubyFileStat int
StackMap stack: org.jruby.Ruby int
6: invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
areturn
end local 6 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 7 0 context Lorg/jruby/runtime/ThreadContext;
0 7 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 7 2 arg Lorg/jruby/runtime/builtin/IRubyObject;
1 7 3 runtime Lorg/jruby/Ruby;
2 7 4 path Lorg/jruby/RubyString;
3 7 5 fileStat Lorg/jruby/RubyFileStat;
4 7 6 isDirectory Z
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"empty?"}, meta = true)
MethodParameters:
Name Flags
context
recv
arg
public static org.jruby.runtime.builtin.IRubyObject exist(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 3
start local 3 1: aload 3
invokevirtual org.jruby.Ruby.getGlobalVariables:()Lorg/jruby/internal/runtime/GlobalVariables;
ldc "$!"
invokevirtual org.jruby.internal.runtime.GlobalVariables.get:(Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 4
start local 4 2: aload 3
aload 0
aload 2
invokestatic org.jruby.RubyFile.get_path:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
invokestatic org.jruby.util.StringSupport.checkEmbeddedNulls:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
astore 5
start local 5 3: aload 3
aload 5
invokevirtual org.jruby.RubyString.asJavaString:()Ljava/lang/String;
iconst_0
invokevirtual org.jruby.Ruby.newFileStat:(Ljava/lang/String;Z)Lorg/jruby/RubyFileStat;
invokevirtual org.jruby.RubyFileStat.directory_p:()Lorg/jruby/RubyBoolean;
4: areturn
5: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject org.jruby.RubyString
StackMap stack: java.lang.Exception
pop
6: aload 3
invokevirtual org.jruby.Ruby.getGlobalVariables:()Lorg/jruby/internal/runtime/GlobalVariables;
ldc "$!"
aload 4
invokevirtual org.jruby.internal.runtime.GlobalVariables.set:(Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
7: aload 3
iconst_0
invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
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 8 0 context Lorg/jruby/runtime/ThreadContext;
0 8 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 8 2 arg Lorg/jruby/runtime/builtin/IRubyObject;
1 8 3 runtime Lorg/jruby/Ruby;
2 8 4 exception Lorg/jruby/runtime/builtin/IRubyObject;
3 8 5 path Lorg/jruby/RubyString;
Exception table:
from to target type
3 4 5 Class java.lang.Exception
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"exist?"}, meta = true)
MethodParameters:
Name Flags
context
recv
arg
public static org.jruby.runtime.builtin.IRubyObject exists_p(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.warningsEnabled:()Z
ifeq 2
1: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getWarnings:()Lorg/jruby/common/RubyWarnings;
ldc "Dir.exists? is a deprecated name, use Dir.exist? instead"
invokevirtual org.jruby.common.RubyWarnings.warn:(Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokestatic org.jruby.RubyDir.exist:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 context Lorg/jruby/runtime/ThreadContext;
0 3 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 3 2 arg Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"exists?"}, meta = true)
MethodParameters:
Name Flags
context
recv
arg
public org.jruby.runtime.builtin.IRubyObject fileno(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
ldc "Dir#fileno"
invokevirtual org.jruby.Ruby.newNotImplementedError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyDir;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"fileno"}, notImplemented = true)
MethodParameters:
Name Flags
context
protected static org.jruby.util.FileResource getDir(org.jruby.Ruby, java.lang.String, boolean);
descriptor: (Lorg/jruby/Ruby;Ljava/lang/String;Z)Lorg/jruby/util/FileResource;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=2, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 0
invokestatic org.jruby.RubyDir.dirFromPath:(Ljava/lang/String;Lorg/jruby/Ruby;)Ljava/lang/String;
astore 3
start local 3 1: aload 0
aload 3
invokestatic org.jruby.util.JRubyFile.createResource:(Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/jruby/util/FileResource;
astore 4
start local 4 2: iload 2
ifeq 4
aload 4
ifnull 3
aload 4
invokeinterface org.jruby.util.FileResource.exists:()Z
ifne 4
3: StackMap locals: java.lang.String org.jruby.util.FileResource
StackMap stack:
aload 0
aload 3
invokevirtual org.jruby.Ruby.newErrnoENOENTError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
4: StackMap locals:
StackMap stack:
aload 4
invokeinterface org.jruby.util.FileResource.isDirectory:()Z
istore 5
start local 5 5: iload 2
ifeq 7
iload 5
ifne 7
6: aload 0
aload 1
invokevirtual org.jruby.Ruby.newErrnoENOTDIRError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
7: StackMap locals: int
StackMap stack:
iload 2
ifne 9
iload 5
ifeq 9
8: aload 0
aload 3
invokevirtual org.jruby.Ruby.newErrnoEEXISTError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
9: StackMap locals:
StackMap stack:
aload 4
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 10 0 runtime Lorg/jruby/Ruby;
0 10 1 path Ljava/lang/String;
0 10 2 mustExist Z
1 10 3 dir Ljava/lang/String;
2 10 4 result Lorg/jruby/util/FileResource;
5 10 5 isDirectory Z
MethodParameters:
Name Flags
runtime final
path final
mustExist final
private static org.jruby.util.FileResource getExistingDir(org.jruby.Ruby, java.lang.String);
descriptor: (Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/jruby/util/FileResource;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic org.jruby.util.JRubyFile.createResource:(Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/jruby/util/FileResource;
astore 2
start local 2 1: aload 2
ifnull 2
aload 2
invokeinterface org.jruby.util.FileResource.exists:()Z
ifne 3
2: StackMap locals: org.jruby.util.FileResource
StackMap stack:
aload 0
aload 1
invokevirtual org.jruby.Ruby.newErrnoENOENTError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
3: StackMap locals:
StackMap stack:
aload 2
invokeinterface org.jruby.util.FileResource.isDirectory:()Z
ifne 5
4: aload 0
aload 1
invokevirtual org.jruby.Ruby.newErrnoENOTDIRError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
5: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 runtime Lorg/jruby/Ruby;
0 6 1 path Ljava/lang/String;
1 6 2 result Lorg/jruby/util/FileResource;
MethodParameters:
Name Flags
runtime final
path final
protected static org.jruby.util.JRubyFile getDirForRmdir(org.jruby.Ruby, java.lang.String);
descriptor: (Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/jruby/util/JRubyFile;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokestatic org.jruby.RubyDir.dirFromPath:(Ljava/lang/String;Lorg/jruby/Ruby;)Ljava/lang/String;
astore 2
start local 2 1: aload 0
invokevirtual org.jruby.Ruby.getCurrentDirectory:()Ljava/lang/String;
aload 2
invokestatic org.jruby.util.JRubyFile.create:(Ljava/lang/String;Ljava/lang/String;)Lorg/jruby/util/JRubyFile;
astore 3
start local 3 2: aload 3
invokevirtual org.jruby.util.JRubyFile.getParentFile:()Ljava/io/File;
astore 4
start local 4 3: aload 4
invokevirtual java.io.File.exists:()Z
ifeq 5
aload 4
invokevirtual java.io.File.canWrite:()Z
ifne 5
4: aload 0
aload 1
invokevirtual org.jruby.Ruby.newErrnoEACCESError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
5: StackMap locals: java.lang.String org.jruby.util.JRubyFile java.io.File
StackMap stack:
aload 0
invokevirtual org.jruby.Ruby.getPosix:()Ljnr/posix/POSIX;
aload 3
invokevirtual org.jruby.util.JRubyFile.toString:()Ljava/lang/String;
invokeinterface jnr.posix.POSIX.stat:(Ljava/lang/String;)Ljnr/posix/FileStat;
astore 5
start local 5 6: aload 5
invokeinterface jnr.posix.FileStat.isDirectory:()Z
ifne 7
aload 0
aload 1
invokevirtual org.jruby.Ruby.newErrnoENOTDIRError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
7: StackMap locals: jnr.posix.FileStat
StackMap stack:
aload 3
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 8 0 runtime Lorg/jruby/Ruby;
0 8 1 path Ljava/lang/String;
1 8 2 dir Ljava/lang/String;
2 8 3 directory Lorg/jruby/util/JRubyFile;
3 8 4 parentFile Ljava/io/File;
6 8 5 stat Ljnr/posix/FileStat;
MethodParameters:
Name Flags
runtime final
path final
private static java.lang.String dirFromPath(java.lang.String, org.jruby.Ruby);
descriptor: (Ljava/lang/String;Lorg/jruby/Ruby;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
astore 2
start local 2 1: aload 0
invokestatic org.jruby.RubyFile.splitURI:(Ljava/lang/String;)[Ljava/lang/String;
astore 3
start local 3 2: aload 3
ifnull 7
3: aload 3
iconst_0
aaload
ldc "file:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 6
aload 3
iconst_1
aaload
invokevirtual java.lang.String.length:()I
ifle 6
aload 3
iconst_1
aaload
ldc ".jar!/"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
iconst_m1
if_icmpne 6
4: aload 3
iconst_1
aaload
astore 2
5: goto 7
6: StackMap locals: java.lang.String java.lang.String[]
StackMap stack:
aload 1
aload 2
invokevirtual org.jruby.Ruby.newErrnoENOTDIRError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
7: StackMap locals:
StackMap stack:
aload 2
areturn
end local 3 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 runtime Lorg/jruby/Ruby;
1 8 2 dir Ljava/lang/String;
2 8 3 pathParts [Ljava/lang/String;
Exceptions:
throws org.jruby.exceptions.RaiseException
MethodParameters:
Name Flags
path final
runtime final
private static java.lang.String[] list(org.jruby.util.FileResource);
descriptor: (Lorg/jruby/util/FileResource;)[Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokeinterface org.jruby.util.FileResource.list:()[Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnonnull 2
getstatic org.jruby.RubyDir.NO_FILES:[Ljava/lang/String;
goto 3
StackMap locals: java.lang.String[]
StackMap stack:
2: aload 1
StackMap locals:
StackMap stack: java.lang.String[]
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 directory Lorg/jruby/util/FileResource;
1 4 1 contents [Ljava/lang/String;
MethodParameters:
Name Flags
directory
protected static java.util.List<java.lang.String> getContents(org.jruby.util.FileResource);
descriptor: (Lorg/jruby/util/FileResource;)Ljava/util/List;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
invokeinterface org.jruby.util.FileResource.list:()[Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnull 4
2: aload 1
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
astore 2
start local 2 3: goto 5
end local 2 4: StackMap locals: java.lang.String[]
StackMap stack:
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
astore 2
start local 2 5: StackMap locals: java.util.List
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 directory Lorg/jruby/util/FileResource;
1 6 1 contents [Ljava/lang/String;
3 4 2 result Ljava/util/List<Ljava/lang/String;>;
5 6 2 result Ljava/util/List<Ljava/lang/String;>;
Signature: (Lorg/jruby/util/FileResource;)Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
directory
protected static java.util.List<org.jruby.RubyString> getContents(org.jruby.util.FileResource, org.jruby.Ruby);
descriptor: (Lorg/jruby/util/FileResource;Lorg/jruby/Ruby;)Ljava/util/List;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface org.jruby.util.FileResource.list:()[Ljava/lang/String;
astore 2
start local 2 1: aload 2
ifnull 9
2: new java.util.ArrayList
dup
aload 2
arraylength
invokespecial java.util.ArrayList.<init>:(I)V
astore 3
start local 3 3: iconst_0
istore 4
start local 4 4: goto 7
5: StackMap locals: java.lang.String[] java.util.List int
StackMap stack:
aload 3
aload 1
aload 2
iload 4
aaload
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
6: iinc 4 1
StackMap locals:
StackMap stack:
7: iload 4
aload 2
arraylength
if_icmplt 5
end local 4 8: goto 10
end local 3 9: StackMap locals:
StackMap stack:
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
astore 3
start local 3 10: StackMap locals: java.util.List
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 directory Lorg/jruby/util/FileResource;
0 11 1 runtime Lorg/jruby/Ruby;
1 11 2 contents [Ljava/lang/String;
3 9 3 result Ljava/util/List<Lorg/jruby/RubyString;>;
10 11 3 result Ljava/util/List<Lorg/jruby/RubyString;>;
4 8 4 i I
Signature: (Lorg/jruby/util/FileResource;Lorg/jruby/Ruby;)Ljava/util/List<Lorg/jruby/RubyString;>;
MethodParameters:
Name Flags
directory
runtime
public static org.jruby.runtime.builtin.IRubyObject getHomeDirectoryPath(org.jruby.runtime.ThreadContext, java.lang.String);
descriptor: (Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 2
start local 2 1: aload 2
aload 2
invokevirtual org.jruby.Ruby.getPosix:()Ljnr/posix/POSIX;
aload 1
invokeinterface jnr.posix.POSIX.getpwnam:(Ljava/lang/String;)Ljnr/posix/Passwd;
invokeinterface jnr.posix.Passwd.getHome:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
2: areturn
3: StackMap locals: org.jruby.runtime.ThreadContext java.lang.String org.jruby.Ruby
StackMap stack: java.lang.Exception
pop
4: new java.io.FileInputStream
dup
ldc "/etc/passwd"
invokespecial java.io.FileInputStream.<init>:(Ljava/lang/String;)V
astore 4
start local 4 5: aload 4
invokevirtual java.io.FileInputStream.available:()I
istore 5
start local 5 6: iload 5
newarray 8
astore 6
start local 6 7: aload 4
aload 6
invokevirtual java.io.FileInputStream.read:([B)I
istore 5
8: aload 4
invokevirtual java.io.FileInputStream.close:()V
9: new java.lang.String
dup
aload 6
iconst_0
iload 5
invokespecial java.lang.String.<init>:([BII)V
astore 3
end local 6 end local 5 end local 4 start local 3 10: goto 13
end local 3 StackMap locals:
StackMap stack: java.io.IOException
11: pop
12: aload 2
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
start local 3 13: StackMap locals: java.lang.String
StackMap stack:
aload 3
bipush 10
invokestatic org.jruby.util.StringSupport.split:(Ljava/lang/String;C)Ljava/util/List;
astore 4
start local 4 14: iconst_0
istore 5
start local 5 15: goto 20
16: StackMap locals: java.util.List int
StackMap stack:
aload 4
iload 5
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
bipush 58
invokestatic org.jruby.util.StringSupport.split:(Ljava/lang/String;C)Ljava/util/List;
astore 6
start local 6 17: aload 6
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 19
18: aload 2
aload 6
iconst_5
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
areturn
end local 6 19: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
20: iload 5
aload 4
invokeinterface java.util.List.size:()I
if_icmplt 16
end local 5 end local 4 end local 3 21: aload 2
new java.lang.StringBuilder
dup
ldc "user "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " doesn't exist"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 context Lorg/jruby/runtime/ThreadContext;
0 22 1 user Ljava/lang/String;
1 22 2 runtime Lorg/jruby/Ruby;
10 11 3 passwd Ljava/lang/String;
13 21 3 passwd Ljava/lang/String;
5 10 4 stream Ljava/io/FileInputStream;
6 10 5 readBytes I
7 10 6 bytes [B
14 21 4 rows Ljava/util/List<Ljava/lang/String;>;
15 21 5 i I
17 19 6 fields Ljava/util/List<Ljava/lang/String;>;
Exception table:
from to target type
1 2 3 Class java.lang.Exception
4 10 11 Class java.io.IOException
MethodParameters:
Name Flags
context
user
public static org.jruby.RubyString getHomeDirectoryPath(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyString;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
getstatic org.jruby.RubyDir.HOME:Lorg/jruby/util/ByteList;
invokestatic org.jruby.RubyString.newStringShared:(Lorg/jruby/Ruby;Lorg/jruby/util/ByteList;)Lorg/jruby/RubyString;
astore 1
start local 1 1: aload 0
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getENV:()Lorg/jruby/RubyHash;
aload 0
aload 1
invokevirtual org.jruby.RubyHash.op_aref:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
invokestatic org.jruby.RubyDir.getHomeDirectoryPath:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 context Lorg/jruby/runtime/ThreadContext;
1 2 1 homeKey Lorg/jruby/RubyString;
MethodParameters:
Name Flags
context
static org.jruby.RubyString getHomeDirectoryPath(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 2
start local 2 1: aload 1
ifnull 2
aload 1
aload 0
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
if_acmpne 4
2: StackMap locals: org.jruby.Ruby
StackMap stack:
aload 2
invokevirtual org.jruby.Ruby.getObject:()Lorg/jruby/RubyClass;
ldc "ENV_JAVA"
invokevirtual org.jruby.RubyClass.getConstant:(Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 3
start local 3 3: aload 3
aload 0
ldc "[]"
aload 2
getstatic org.jruby.RubyDir.user_home:Lorg/jruby/util/ByteList;
getstatic org.jruby.RubyString.UTF8:Lorg/jcodings/specific/UTF8Encoding;
invokestatic org.jruby.RubyString.newString:(Lorg/jruby/Ruby;Lorg/jruby/util/ByteList;Lorg/jcodings/Encoding;)Lorg/jruby/RubyString;
invokeinterface org.jruby.runtime.builtin.IRubyObject.callMethod:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 1
end local 3 4: StackMap locals:
StackMap stack:
aload 1
ifnull 5
aload 1
aload 0
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
if_acmpne 6
5: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getENV:()Lorg/jruby/RubyHash;
aload 0
aload 2
ldc "LOGDIR"
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyHash.op_aref:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 1
6: StackMap locals:
StackMap stack:
aload 1
ifnull 7
aload 1
aload 0
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
if_acmpne 8
7: StackMap locals:
StackMap stack:
aload 2
ldc "user.home/LOGDIR not set"
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
8: StackMap locals:
StackMap stack:
aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.dup:()Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.RubyString
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 context Lorg/jruby/runtime/ThreadContext;
0 9 1 home Lorg/jruby/runtime/builtin/IRubyObject;
1 9 2 runtime Lorg/jruby/Ruby;
3 4 3 ENV_JAVA Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
context
home
public <T> T toJava(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ldc Ljava/io/File;
if_acmpne 5
1: aload 0
invokevirtual org.jruby.RubyDir.getPath:()Ljava/lang/String;
astore 2
start local 2 2: aload 2
ifnonnull 3
aconst_null
goto 4
StackMap locals: java.lang.String
StackMap stack:
3: new java.io.File
dup
aload 2
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
StackMap locals:
StackMap stack: java.io.File
4: areturn
end local 2 5: StackMap locals:
StackMap stack:
aload 1
ldc Ljava/nio/file/Path;
if_acmpeq 6
aload 1
ldc Ljava/nio/file/Watchable;
if_acmpne 10
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.RubyDir.getPath:()Ljava/lang/String;
astore 2
start local 2 7: aload 2
ifnonnull 8
aconst_null
goto 9
StackMap locals: java.lang.String
StackMap stack:
8: invokestatic java.nio.file.FileSystems.getDefault:()Ljava/nio/file/FileSystem;
aload 2
iconst_0
anewarray java.lang.String
invokevirtual java.nio.file.FileSystem.getPath:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
StackMap locals:
StackMap stack: java.nio.file.Path
9: areturn
end local 2 10: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial org.jruby.RubyObject.toJava:(Ljava/lang/Class;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/jruby/RubyDir;
0 11 1 target Ljava/lang/Class<TT;>;
2 5 2 path Ljava/lang/String;
7 10 2 path Ljava/lang/String;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
target
public static org.jruby.RubyArray entries19(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokestatic org.jruby.RubyDir.entries:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 arg Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
context
recv
arg
public static org.jruby.RubyArray entries19(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
invokestatic org.jruby.RubyDir.entries:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 arg Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 opts Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
context
recv
arg
opts
}
SourceFile: "RubyDir.java"
NestMembers:
org.jruby.RubyDir$1
InnerClasses:
org.jruby.RubyDir$1
public StringConverter = org.jruby.javasupport.JavaUtil$StringConverter of org.jruby.javasupport.JavaUtil
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyClass(name = {"Dir"}, include = {"Enumerable"})