public class org.jruby.util.URLResource implements org.jruby.util.FileResource, org.jruby.util.DummyResourceStat$FileResourceExt
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.util.URLResource
super_class: java.lang.Object
{
public static java.lang.String URI;
descriptor: Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
public static java.lang.String CLASSLOADER;
descriptor: Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
public static java.lang.String URI_CLASSLOADER;
descriptor: Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
private final java.lang.String uri;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String[] list;
descriptor: [Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.net.URL url;
descriptor: Ljava/net/URL;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String pathname;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.ClassLoader cl;
descriptor: Ljava/lang/ClassLoader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: ldc "uri:"
putstatic org.jruby.util.URLResource.URI:Ljava/lang/String;
1: ldc "classloader:"
putstatic org.jruby.util.URLResource.CLASSLOADER:Ljava/lang/String;
2: new java.lang.StringBuilder
dup
getstatic org.jruby.util.URLResource.URI:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic org.jruby.util.URLResource.CLASSLOADER:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putstatic org.jruby.util.URLResource.URI_CLASSLOADER:Ljava/lang/String;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.lang.String, java.net.URL, java.lang.String[]);
descriptor: (Ljava/lang/String;Ljava/net/URL;[Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aconst_null
aconst_null
aload 3
invokespecial org.jruby.util.URLResource.<init>:(Ljava/lang/String;Ljava/net/URL;Ljava/lang/ClassLoader;Ljava/lang/String;[Ljava/lang/String;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/util/URLResource;
0 2 1 uri Ljava/lang/String;
0 2 2 url Ljava/net/URL;
0 2 3 files [Ljava/lang/String;
MethodParameters:
Name Flags
uri
url
files
void <init>(java.lang.String, java.lang.ClassLoader, java.lang.String, java.lang.String[]);
descriptor: (Ljava/lang/String;Ljava/lang/ClassLoader;Ljava/lang/String;[Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=6, 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
aconst_null
aload 2
aload 3
aload 4
invokespecial org.jruby.util.URLResource.<init>:(Ljava/lang/String;Ljava/net/URL;Ljava/lang/ClassLoader;Ljava/lang/String;[Ljava/lang/String;)V
1: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/util/URLResource;
0 2 1 uri Ljava/lang/String;
0 2 2 cl Ljava/lang/ClassLoader;
0 2 3 pathname Ljava/lang/String;
0 2 4 files [Ljava/lang/String;
MethodParameters:
Name Flags
uri
cl
pathname
files
private void <init>(java.lang.String, java.net.URL, java.lang.ClassLoader, java.lang.String, java.lang.String[]);
descriptor: (Ljava/lang/String;Ljava/net/URL;Ljava/lang/ClassLoader;Ljava/lang/String;[Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.jruby.util.URLResource.uri:Ljava/lang/String;
2: aload 0
aload 5
putfield org.jruby.util.URLResource.list:[Ljava/lang/String;
3: aload 0
aload 2
putfield org.jruby.util.URLResource.url:Ljava/net/URL;
4: aload 0
aload 3
putfield org.jruby.util.URLResource.cl:Ljava/lang/ClassLoader;
5: aload 0
aload 4
putfield org.jruby.util.URLResource.pathname:Ljava/lang/String;
6: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/util/URLResource;
0 7 1 uri Ljava/lang/String;
0 7 2 url Ljava/net/URL;
0 7 3 cl Ljava/lang/ClassLoader;
0 7 4 pathname Ljava/lang/String;
0 7 5 files [Ljava/lang/String;
MethodParameters:
Name Flags
uri
url
cl
pathname
files
public java.lang.String absolutePath();
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.util.URLResource.uri:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/URLResource;
public java.lang.String canonicalPath();
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.util.URLResource.uri:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/URLResource;
public boolean exists();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.URLResource.url:Ljava/net/URL;
ifnonnull 1
aload 0
getfield org.jruby.util.URLResource.pathname:Ljava/lang/String;
ifnonnull 1
aload 0
getfield org.jruby.util.URLResource.list:[Ljava/lang/String;
ifnonnull 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/util/URLResource;
public boolean isDirectory();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.URLResource.list:[Ljava/lang/String;
ifnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/util/URLResource;
public boolean isFile();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.URLResource.list:[Ljava/lang/String;
ifnonnull 2
aload 0
getfield org.jruby.util.URLResource.url:Ljava/net/URL;
ifnonnull 1
aload 0
getfield org.jruby.util.URLResource.pathname:Ljava/lang/String;
ifnull 2
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
StackMap locals:
StackMap stack:
2: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/util/URLResource;
public long length();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=1
start local 0 0: lconst_0
lstore 1
start local 1 1: aconst_null
astore 3
start local 3 2: aload 0
invokevirtual org.jruby.util.URLResource.openInputStream:()Ljava/io/InputStream;
astore 3
3: sipush 8096
newarray 8
astore 4
start local 4 4: goto 6
start local 5 5: StackMap locals: org.jruby.util.URLResource long java.io.InputStream byte[] int
StackMap stack:
lload 1
iload 5
i2l
ladd
lstore 1
end local 5 6: StackMap locals:
StackMap stack:
aload 3
aload 4
invokevirtual java.io.InputStream.read:([B)I
dup
istore 5
start local 5 7: iconst_m1
if_icmpne 5
8: aload 3
invokevirtual java.io.InputStream.close:()V
end local 5 end local 4 9: goto 11
10: StackMap locals: org.jruby.util.URLResource long java.io.InputStream
StackMap stack: java.io.IOException
pop
aload 3
invokestatic org.jruby.util.URLResource.close:(Ljava/io/Closeable;)V
11: StackMap locals:
StackMap stack:
lload 1
lreturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/jruby/util/URLResource;
1 12 1 totalRead J
2 12 3 is Ljava/io/InputStream;
4 9 4 buf [B
5 6 5 amountRead I
7 9 5 amountRead I
Exception table:
from to target type
2 9 10 Class java.io.IOException
public boolean canRead();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.util.URLResource.exists:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/URLResource;
public boolean canWrite();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/URLResource;
public boolean canExecute();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/URLResource;
public java.lang.String[] list();
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.util.URLResource.list:[Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/URLResource;
public boolean isSymLink();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/URLResource;
public long lastModified();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: lconst_0
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/URLResource;
public java.nio.file.attribute.FileTime lastModifiedTime();
descriptor: ()Ljava/nio/file/attribute/FileTime;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/URLResource;
public java.nio.file.attribute.FileTime lastAccessTime();
descriptor: ()Ljava/nio/file/attribute/FileTime;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/URLResource;
public java.nio.file.attribute.FileTime creationTime();
descriptor: ()Ljava/nio/file/attribute/FileTime;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/URLResource;
public int errno();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic jnr.constants.platform.Errno.ENOENT:Ljnr/constants/platform/Errno;
invokevirtual jnr.constants.platform.Errno.intValue:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/URLResource;
public jnr.posix.FileStat stat();
descriptor: ()Ljnr/posix/FileStat;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.jruby.util.DummyResourceStat
dup
aload 0
invokespecial org.jruby.util.DummyResourceStat.<init>:(Lorg/jruby/util/DummyResourceStat$FileResourceExt;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/URLResource;
public jnr.posix.FileStat lstat();
descriptor: ()Ljnr/posix/FileStat;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.util.URLResource.stat:()Ljnr/posix/FileStat;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/URLResource;
public <T> T unwrap(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/URLResource;
0 1 1 type Ljava/lang/Class<TT;>;
Exceptions:
throws java.lang.UnsupportedOperationException
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
type
public java.io.InputStream openInputStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.URLResource.pathname:Ljava/lang/String;
ifnull 2
1: aload 0
getfield org.jruby.util.URLResource.cl:Ljava/lang/ClassLoader;
aload 0
getfield org.jruby.util.URLResource.pathname:Ljava/lang/String;
invokevirtual java.lang.ClassLoader.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.util.URLResource.url:Ljava/net/URL;
ifnonnull 4
3: new org.jruby.util.ResourceException$NotFound
dup
aload 0
invokevirtual org.jruby.util.URLResource.absolutePath:()Ljava/lang/String;
invokespecial org.jruby.util.ResourceException$NotFound.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.util.URLResource.url:Ljava/net/URL;
invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/util/URLResource;
Exceptions:
throws java.io.IOException
public java.nio.channels.Channel openChannel(int, int);
descriptor: (II)Ljava/nio/channels/Channel;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.jruby.util.URLResource.openInputStream:()Ljava/io/InputStream;
invokestatic java.nio.channels.Channels.newChannel:(Ljava/io/InputStream;)Ljava/nio/channels/ReadableByteChannel;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/URLResource;
0 1 1 flags I
0 1 2 perm I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
flags
perm
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.jruby.util.URLResource
ifeq 2
1: aload 0
getfield org.jruby.util.URLResource.uri:Ljava/lang/String;
aload 1
checkcast org.jruby.util.URLResource
getfield org.jruby.util.URLResource.uri:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ireturn
2: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/util/URLResource;
0 3 1 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: bipush 17
aload 0
getfield org.jruby.util.URLResource.uri:Ljava/lang/String;
invokevirtual java.lang.String.hashCode:()I
imul
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/URLResource;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 123
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 0
invokevirtual org.jruby.util.URLResource.absolutePath:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 125
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/URLResource;
public static org.jruby.util.FileResource createClassloaderURI(org.jruby.Ruby, java.lang.String, boolean);
descriptor: (Lorg/jruby/Ruby;Ljava/lang/String;Z)Lorg/jruby/util/FileResource;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ifnull 1
aload 0
invokevirtual org.jruby.Ruby.getJRubyClassLoader:()Lorg/jruby/util/JRubyClassLoader;
goto 2
StackMap locals:
StackMap stack:
1: invokestatic org.jruby.RubyInstanceConfig.defaultClassLoader:()Ljava/lang/ClassLoader;
StackMap locals:
StackMap stack: java.lang.ClassLoader
2: astore 3
start local 3 3: new java.net.URI
dup
aload 1
ldc "^/*"
ldc "/"
invokevirtual java.lang.String.replaceFirst:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokespecial java.net.URI.<init>:(Ljava/lang/String;)V
4: invokevirtual java.net.URI.normalize:()Ljava/net/URI;
invokevirtual java.net.URI.getPath:()Ljava/lang/String;
ldc "^/([.][.]/)*"
ldc ""
invokevirtual java.lang.String.replaceAll:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
5: astore 1
6: goto 9
7: StackMap locals: org.jruby.Ruby java.lang.String int java.lang.ClassLoader
StackMap stack: java.net.URISyntaxException
pop
8: aload 1
ldc "^[.]?/*"
ldc ""
invokevirtual java.lang.String.replaceAll:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 1
9: StackMap locals:
StackMap stack:
aload 3
aload 1
invokevirtual java.lang.ClassLoader.getResource:(Ljava/lang/String;)Ljava/net/URL;
astore 4
start local 4 10: aconst_null
astore 5
start local 5 11: iload 2
ifne 29
12: aload 3
aload 1
invokestatic org.jruby.util.URLResource.listClassLoaderFiles:(Ljava/lang/ClassLoader;Ljava/lang/String;)[Ljava/lang/String;
astore 5
13: aload 5
ifnonnull 29
14: iconst_0
istore 6
start local 6 15: new java.util.LinkedHashSet
dup
invokespecial java.util.LinkedHashSet.<init>:()V
astore 7
start local 7 16: aload 7
ldc "."
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
aload 7
ldc ".."
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
17: aload 3
aload 1
invokevirtual java.lang.ClassLoader.getResources:(Ljava/lang/String;)Ljava/util/Enumeration;
astore 8
start local 8 18: goto 20
19: StackMap locals: org.jruby.Ruby java.lang.String int java.lang.ClassLoader java.net.URL java.lang.String[] int java.util.Set java.util.Enumeration
StackMap stack:
aload 7
aload 8
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.net.URL
iload 6
invokestatic org.jruby.util.URLResource.addDirectoryEntries:(Ljava/util/Set;Ljava/net/URL;Z)Z
istore 6
20: StackMap locals:
StackMap stack:
aload 8
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 19
21: aload 0
ifnull 25
22: aload 3
aload 7
aload 1
iload 6
invokestatic org.jruby.util.URLResource.addDirectoriesFromClassloader:(Ljava/lang/ClassLoader;Ljava/util/Set;Ljava/lang/String;Z)Z
istore 6
23: aload 3
invokevirtual java.lang.ClassLoader.getParent:()Ljava/lang/ClassLoader;
aload 7
aload 1
iload 6
invokestatic org.jruby.util.URLResource.addDirectoriesFromClassloader:(Ljava/lang/ClassLoader;Ljava/util/Set;Ljava/lang/String;Z)Z
istore 6
24: goto 26
25: StackMap locals:
StackMap stack:
aload 3
aload 7
aload 1
iload 6
invokestatic org.jruby.util.URLResource.addDirectoriesFromClassloader:(Ljava/lang/ClassLoader;Ljava/util/Set;Ljava/lang/String;Z)Z
istore 6
26: StackMap locals:
StackMap stack:
iload 6
ifeq 29
aload 7
aload 7
invokeinterface java.util.Set.size:()I
anewarray java.lang.String
invokeinterface java.util.Set.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.lang.String[]
astore 5
end local 8 27: goto 29
28: StackMap locals: org.jruby.Ruby java.lang.String int java.lang.ClassLoader java.net.URL java.lang.String[] int java.util.Set
StackMap stack: java.io.IOException
pop
end local 7 end local 6 29: StackMap locals:
StackMap stack:
new org.jruby.util.URLResource
dup
new java.lang.StringBuilder
dup
getstatic org.jruby.util.URLResource.URI_CLASSLOADER:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 47
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
aload 4
ifnonnull 30
aconst_null
goto 31
StackMap locals: org.jruby.Ruby java.lang.String int java.lang.ClassLoader java.net.URL java.lang.String[]
StackMap stack: new 29 new 29 java.lang.String java.lang.ClassLoader
30: aload 1
StackMap locals: org.jruby.Ruby java.lang.String int java.lang.ClassLoader java.net.URL java.lang.String[]
StackMap stack: new 29 new 29 java.lang.String java.lang.ClassLoader java.lang.String
31: aload 5
invokespecial org.jruby.util.URLResource.<init>:(Ljava/lang/String;Ljava/lang/ClassLoader;Ljava/lang/String;[Ljava/lang/String;)V
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 runtime Lorg/jruby/Ruby;
0 32 1 pathname Ljava/lang/String;
0 32 2 asFile Z
3 32 3 cl Ljava/lang/ClassLoader;
10 32 4 url Ljava/net/URL;
11 32 5 files [Ljava/lang/String;
15 29 6 isDirectory Z
16 29 7 list Ljava/util/Set<Ljava/lang/String;>;
18 27 8 urls Ljava/util/Enumeration<Ljava/net/URL;>;
Exception table:
from to target type
3 6 7 Class java.net.URISyntaxException
17 27 28 Class java.io.IOException
MethodParameters:
Name Flags
runtime
pathname
asFile
private static boolean addDirectoriesFromClassloader(java.lang.ClassLoader, java.util.Set<java.lang.String>, java.lang.String, );
descriptor: (Ljava/lang/ClassLoader;Ljava/util/Set;Ljava/lang/String;Z)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
instanceof java.net.URLClassLoader
ifeq 8
1: aload 0
checkcast java.net.URLClassLoader
invokevirtual java.net.URLClassLoader.getURLs:()[Ljava/net/URL;
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 7
StackMap locals: java.lang.ClassLoader java.util.Set java.lang.String int top int int java.net.URL[]
StackMap stack:
2: aload 7
iload 5
aaload
astore 4
start local 4 3: aload 4
invokevirtual java.net.URL.getFile:()Ljava/lang/String;
ldc ".jar"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 6
aload 4
invokevirtual java.net.URL.getProtocol:()Ljava/lang/String;
ldc "file"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 6
4: new java.net.URL
dup
new java.lang.StringBuilder
dup
ldc "jar:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "!/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
astore 4
5: aload 1
aload 4
iload 3
invokestatic org.jruby.util.URLResource.addDirectoryEntries:(Ljava/util/Set;Ljava/net/URL;Z)Z
istore 3
end local 4 6: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
7: iload 5
iload 6
if_icmplt 2
8: StackMap locals: java.lang.ClassLoader java.util.Set java.lang.String int
StackMap stack:
iload 3
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 cl Ljava/lang/ClassLoader;
0 9 1 list Ljava/util/Set<Ljava/lang/String;>;
0 9 2 pathname Ljava/lang/String;
0 9 3 isDirectory Z
3 6 4 u Ljava/net/URL;
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/ClassLoader;Ljava/util/Set<Ljava/lang/String;>;Ljava/lang/String;Z)Z
MethodParameters:
Name Flags
cl
list
pathname
isDirectory
private static boolean addDirectoryEntries(java.util.Set<java.lang.String>, java.net.URL, );
descriptor: (Ljava/util/Set;Ljava/net/URL;Z)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual java.net.URL.getProtocol:()Ljava/lang/String;
dup
astore 3
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 2
104987: 1
3143036: 2
default: 12
}
StackMap locals: java.lang.String
StackMap stack:
1: aload 3
ldc "jar"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 3
goto 12
StackMap locals:
StackMap stack:
2: aload 3
ldc "file"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 8
goto 12
3: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.net.URL.toString:()Ljava/lang/String;
invokestatic org.jruby.util.JarResource.create:(Ljava/lang/String;)Lorg/jruby/util/JarResource;
astore 4
start local 4 4: aload 4
ifnull 12
aload 4
invokeinterface org.jruby.util.FileResource.isDirectory:()Z
ifeq 12
5: iload 2
ifne 6
iconst_1
istore 2
6: StackMap locals: org.jruby.util.FileResource
StackMap stack:
aload 0
aload 4
invokeinterface org.jruby.util.FileResource.list:()[Ljava/lang/String;
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokeinterface java.util.Set.addAll:(Ljava/util/Collection;)Z
pop
7: goto 12
end local 4 8: StackMap locals:
StackMap stack:
new java.io.File
dup
aload 1
invokevirtual java.net.URL.getPath:()Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 5
start local 5 9: aload 5
invokevirtual java.io.File.isDirectory:()Z
ifeq 12
10: iload 2
ifne 11
iconst_1
istore 2
11: StackMap locals: java.util.Set java.net.URL int java.lang.String top java.io.File
StackMap stack:
aload 0
aload 5
invokevirtual java.io.File.list:()[Ljava/lang/String;
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokeinterface java.util.Set.addAll:(Ljava/util/Collection;)Z
pop
end local 5 12: StackMap locals: java.util.Set java.net.URL int
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 entries Ljava/util/Set<Ljava/lang/String;>;
0 13 1 url Ljava/net/URL;
0 13 2 isDirectory Z
4 8 4 jar Lorg/jruby/util/FileResource;
9 12 5 file Ljava/io/File;
Signature: (Ljava/util/Set<Ljava/lang/String;>;Ljava/net/URL;Z)Z
MethodParameters:
Name Flags
entries
url
isDirectory
public static org.jruby.util.FileResource create(org.jruby.Ruby, java.lang.String, boolean);
descriptor: (Lorg/jruby/Ruby;Ljava/lang/String;Z)Lorg/jruby/util/FileResource;
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 1
getstatic org.jruby.util.URLResource.URI:Ljava/lang/String;
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 1
getstatic org.jruby.util.URLResource.URI:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
bipush 92
bipush 47
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
astore 1
3: aload 1
getstatic org.jruby.util.URLResource.CLASSLOADER:Ljava/lang/String;
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 5
4: aload 0
aload 1
getstatic org.jruby.util.URLResource.CLASSLOADER:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
iload 2
invokestatic org.jruby.util.URLResource.createClassloaderURI:(Lorg/jruby/Ruby;Ljava/lang/String;Z)Lorg/jruby/util/FileResource;
areturn
5: StackMap locals:
StackMap stack:
aload 1
iload 2
invokestatic org.jruby.util.URLResource.createRegularURI:(Ljava/lang/String;Z)Lorg/jruby/util/FileResource;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 runtime Lorg/jruby/Ruby;
0 6 1 pathname Ljava/lang/String;
0 6 2 asFile Z
MethodParameters:
Name Flags
runtime
pathname
asFile
private static org.jruby.util.FileResource createRegularURI(java.lang.String, boolean);
descriptor: (Ljava/lang/String;Z)Lorg/jruby/util/FileResource;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 0
ldc "file:/([^/])"
ldc "file:///$1"
invokevirtual java.lang.String.replaceFirst:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 0
1: aload 0
ldc ":/([^/])"
ldc "://$1"
invokevirtual java.lang.String.replaceFirst:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 0
2: new java.net.URL
dup
aload 0
invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
astore 2
start local 2 3: aload 2
invokevirtual java.net.URL.getProtocol:()Ljava/lang/String;
ldc "http"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 7
4: aconst_null
areturn
end local 2 5: StackMap locals:
StackMap stack: java.net.MalformedURLException
pop
6: new org.jruby.util.URLResource
dup
new java.lang.StringBuilder
dup
getstatic org.jruby.util.URLResource.URI:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aconst_null
aconst_null
invokespecial org.jruby.util.URLResource.<init>:(Ljava/lang/String;Ljava/net/URL;[Ljava/lang/String;)V
areturn
start local 2 7: StackMap locals: java.net.URL
StackMap stack:
iload 1
ifeq 8
aconst_null
goto 9
StackMap locals:
StackMap stack:
8: aload 0
invokestatic org.jruby.util.URLResource.listFiles:(Ljava/lang/String;)[Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String[]
9: astore 3
start local 3 10: aload 3
ifnull 12
11: new org.jruby.util.URLResource
dup
new java.lang.StringBuilder
dup
getstatic org.jruby.util.URLResource.URI:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aconst_null
aload 3
invokespecial org.jruby.util.URLResource.<init>:(Ljava/lang/String;Ljava/net/URL;[Ljava/lang/String;)V
areturn
12: StackMap locals: java.lang.String[]
StackMap stack:
aload 2
invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
astore 4
start local 4 13: aload 4
ifnull 16
14: aload 4
invokevirtual java.io.InputStream.close:()V
15: goto 17
16: StackMap locals: java.io.InputStream
StackMap stack:
aconst_null
astore 2
17: StackMap locals:
StackMap stack:
new org.jruby.util.URLResource
dup
new java.lang.StringBuilder
dup
getstatic org.jruby.util.URLResource.URI:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
aconst_null
invokespecial org.jruby.util.URLResource.<init>:(Ljava/lang/String;Ljava/net/URL;[Ljava/lang/String;)V
18: areturn
end local 4 19: StackMap locals: java.lang.String int java.net.URL java.lang.String[]
StackMap stack: java.io.IOException
pop
20: new org.jruby.util.URLResource
dup
new java.lang.StringBuilder
dup
getstatic org.jruby.util.URLResource.URI:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aconst_null
aconst_null
invokespecial org.jruby.util.URLResource.<init>:(Ljava/lang/String;Ljava/net/URL;[Ljava/lang/String;)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 pathname Ljava/lang/String;
0 21 1 asFile Z
3 5 2 url Ljava/net/URL;
7 21 2 url Ljava/net/URL;
10 21 3 files [Ljava/lang/String;
13 19 4 is Ljava/io/InputStream;
Exception table:
from to target type
0 4 5 Class java.net.MalformedURLException
12 18 19 Class java.io.IOException
MethodParameters:
Name Flags
pathname
asFile
private static java.lang.String[] listFilesFromInputStream(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)[Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=6, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 2: new java.io.BufferedReader
dup
new java.io.InputStreamReader
dup
aload 0
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 1
3: aload 1
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
astore 3
start local 3 4: goto 7
5: StackMap locals: java.io.BufferedReader java.util.List java.lang.String
StackMap stack:
aload 2
aload 3
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
6: aload 1
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
astore 3
7: StackMap locals:
StackMap stack:
aload 3
ifnonnull 5
8: aload 2
aload 2
invokeinterface java.util.List.size:()I
anewarray java.lang.String
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.lang.String[]
astore 5
9: aload 1
invokestatic org.jruby.util.URLResource.close:(Ljava/io/Closeable;)V
10: aload 5
areturn
end local 3 end local 2 11: StackMap locals: java.io.InputStream java.io.BufferedReader
StackMap stack: java.io.IOException
pop
12: aload 1
invokestatic org.jruby.util.URLResource.close:(Ljava/io/Closeable;)V
13: aconst_null
areturn
14: StackMap locals:
StackMap stack: java.lang.Throwable
astore 4
15: aload 1
invokestatic org.jruby.util.URLResource.close:(Ljava/io/Closeable;)V
16: aload 4
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 is Ljava/io/InputStream;
1 17 1 reader Ljava/io/BufferedReader;
2 11 2 files Ljava/util/List<Ljava/lang/String;>;
4 11 3 line Ljava/lang/String;
Exception table:
from to target type
1 9 11 Class java.io.IOException
1 9 14 any
11 12 14 any
MethodParameters:
Name Flags
is
private static java.lang.String[] listClassLoaderFiles(java.lang.ClassLoader, java.lang.String);
descriptor: (Ljava/lang/ClassLoader;Ljava/lang/String;)[Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=10, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.String.isEmpty:()Z
ifne 1
aload 1
ldc "/"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 2
StackMap locals:
StackMap stack: java.lang.StringBuilder
1: ldc ".jrubydir"
goto 3
StackMap locals:
StackMap stack: java.lang.StringBuilder
2: ldc "/.jrubydir"
StackMap locals: java.lang.ClassLoader java.lang.String
StackMap stack: java.lang.StringBuilder java.lang.String
3: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
start local 2 4: aload 0
aload 2
invokevirtual java.lang.ClassLoader.getResources:(Ljava/lang/String;)Ljava/util/Enumeration;
astore 3
start local 3 5: aload 3
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 7
6: aconst_null
areturn
7: StackMap locals: java.lang.String java.util.Enumeration
StackMap stack:
new java.util.LinkedHashSet
dup
invokespecial java.util.LinkedHashSet.<init>:()V
astore 4
start local 4 8: goto 15
9: StackMap locals: java.util.Set
StackMap stack:
aload 3
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.net.URL
astore 5
start local 5 10: aload 5
invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
invokestatic org.jruby.util.URLResource.listFilesFromInputStream:(Ljava/io/InputStream;)[Ljava/lang/String;
dup
astore 9
arraylength
istore 8
iconst_0
istore 7
goto 14
StackMap locals: java.lang.ClassLoader java.lang.String java.lang.String java.util.Enumeration java.util.Set java.net.URL top int int java.lang.String[]
StackMap stack:
11: aload 9
iload 7
aaload
astore 6
start local 6 12: aload 4
aload 6
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifne 13
aload 4
aload 6
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 6 13: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
14: iload 7
iload 8
if_icmplt 11
end local 5 15: StackMap locals: java.lang.ClassLoader java.lang.String java.lang.String java.util.Enumeration java.util.Set
StackMap stack:
aload 3
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 9
16: aload 4
aload 4
invokeinterface java.util.Set.size:()I
anewarray java.lang.String
invokeinterface java.util.Set.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.lang.String[]
17: areturn
end local 4 end local 3 end local 2 18: StackMap locals: java.lang.ClassLoader java.lang.String
StackMap stack: java.io.IOException
pop
19: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 classloader Ljava/lang/ClassLoader;
0 20 1 pathname Ljava/lang/String;
4 18 2 path Ljava/lang/String;
5 18 3 urls Ljava/util/Enumeration<Ljava/net/URL;>;
8 18 4 result Ljava/util/Set<Ljava/lang/String;>;
10 15 5 url Ljava/net/URL;
12 13 6 entry Ljava/lang/String;
Exception table:
from to target type
0 6 18 Class java.io.IOException
7 17 18 Class java.io.IOException
MethodParameters:
Name Flags
classloader
pathname
private static java.lang.String[] listFiles(java.lang.String);
descriptor: (Ljava/lang/String;)[Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: new java.net.URL
dup
new java.lang.StringBuilder
dup
aload 0
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "/.jrubydir"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
astore 1
start local 1 1: aload 1
ifnull 4
2: aload 1
invokestatic org.jruby.util.URLResource.listFilesFromInputStream:(Ljava/io/InputStream;)[Ljava/lang/String;
3: areturn
4: StackMap locals: java.io.InputStream
StackMap stack:
aconst_null
areturn
end local 1 5: StackMap locals: java.lang.String
StackMap stack: java.io.IOException
pop
6: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 pathname Ljava/lang/String;
1 5 1 is Ljava/io/InputStream;
Exception table:
from to target type
0 3 5 Class java.io.IOException
MethodParameters:
Name Flags
pathname
private static void close(java.io.Closeable);
descriptor: (Ljava/io/Closeable;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
ifnull 4
1: aload 0
invokeinterface java.io.Closeable.close:()V
2: goto 4
StackMap locals:
StackMap stack: java.io.IOException
3: pop
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 resource Ljava/io/Closeable;
Exception table:
from to target type
1 2 3 Class java.io.IOException
MethodParameters:
Name Flags
resource final
public static java.net.URL getResourceURL(org.jruby.Ruby, java.lang.String);
descriptor: (Lorg/jruby/Ruby;Ljava/lang/String;)Ljava/net/URL;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 1
getstatic org.jruby.util.URLResource.URI_CLASSLOADER:Ljava/lang/String;
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 2
1: aload 0
invokevirtual org.jruby.Ruby.getJRubyClassLoader:()Lorg/jruby/util/JRubyClassLoader;
aload 1
getstatic org.jruby.util.URLResource.URI_CLASSLOADER:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual org.jruby.util.JRubyClassLoader.getResource:(Ljava/lang/String;)Ljava/net/URL;
areturn
2: StackMap locals:
StackMap stack:
new java.net.URL
dup
aload 1
new java.lang.StringBuilder
dup
ldc "^"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic org.jruby.util.URLResource.URI:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
ldc ""
invokevirtual java.lang.String.replaceFirst:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
3: areturn
4: StackMap locals:
StackMap stack: java.net.MalformedURLException
astore 2
start local 2 5: new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "BUG in "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc Lorg/jruby/util/URLResource;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
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 location Ljava/lang/String;
5 6 2 e Ljava/net/MalformedURLException;
Exception table:
from to target type
2 3 4 Class java.net.MalformedURLException
MethodParameters:
Name Flags
runtime
location
}
SourceFile: "URLResource.java"
InnerClasses:
abstract FileResourceExt = org.jruby.util.DummyResourceStat$FileResourceExt of org.jruby.util.DummyResourceStat
public NotFound = org.jruby.util.ResourceException$NotFound of org.jruby.util.ResourceException