class org.jruby.runtime.load.LibrarySearcher$JarResourceLibrary extends org.jruby.runtime.load.LibrarySearcher$ResourceLibrary
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.jruby.runtime.load.LibrarySearcher$JarResourceLibrary
super_class: org.jruby.runtime.load.LibrarySearcher$ResourceLibrary
{
public void <init>(java.lang.String, java.lang.String, org.jruby.util.FileResource);
descriptor: (Ljava/lang/String;Ljava/lang/String;Lorg/jruby/util/FileResource;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 // org.jruby.runtime.load.LibrarySearcher$JarResourceLibrary this
start local 1 // java.lang.String searchName
start local 2 // java.lang.String scriptName
start local 3 // org.jruby.util.FileResource resource
0: .line 268
aload 0 /* this */
aload 1 /* searchName */
aload 2 /* scriptName */
aload 3 /* resource */
invokespecial org.jruby.runtime.load.LibrarySearcher$ResourceLibrary.<init>:(Ljava/lang/String;Ljava/lang/String;Lorg/jruby/util/FileResource;)V
1: .line 269
return
end local 3 // org.jruby.util.FileResource resource
end local 2 // java.lang.String scriptName
end local 1 // java.lang.String searchName
end local 0 // org.jruby.runtime.load.LibrarySearcher$JarResourceLibrary this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/runtime/load/LibrarySearcher$JarResourceLibrary;
0 2 1 searchName Ljava/lang/String;
0 2 2 scriptName Ljava/lang/String;
0 2 3 resource Lorg/jruby/util/FileResource;
MethodParameters:
Name Flags
searchName
scriptName
resource
public void load(org.jruby.Ruby, boolean);
descriptor: (Lorg/jruby/Ruby;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 // org.jruby.runtime.load.LibrarySearcher$JarResourceLibrary this
start local 1 // org.jruby.Ruby runtime
start local 2 // boolean wrap
0: .line 275
aload 0 /* this */
getfield org.jruby.runtime.load.LibrarySearcher$JarResourceLibrary.location:Ljava/lang/String;
getstatic org.jruby.util.URLResource.URI:Ljava/lang/String;
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 3
1: .line 276
aload 1 /* runtime */
aload 0 /* this */
getfield org.jruby.runtime.load.LibrarySearcher$JarResourceLibrary.location:Ljava/lang/String;
invokestatic org.jruby.util.URLResource.getResourceURL:(Lorg/jruby/Ruby;Ljava/lang/String;)Ljava/net/URL;
astore 3 /* url */
start local 3 // java.net.URL url
2: .line 277
goto 10
end local 3 // java.net.URL url
3: .line 280
StackMap locals:
StackMap stack:
new java.io.File
dup
aload 0 /* this */
getfield org.jruby.runtime.load.LibrarySearcher$JarResourceLibrary.location:Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 4 /* f */
start local 4 // java.io.File f
4: .line 281
aload 4 /* f */
invokevirtual java.io.File.exists:()Z
ifne 5
aload 0 /* this */
getfield org.jruby.runtime.load.LibrarySearcher$JarResourceLibrary.location:Ljava/lang/String;
ldc "!"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 9
5: .line 282
StackMap locals: org.jruby.runtime.load.LibrarySearcher$JarResourceLibrary org.jruby.Ruby int top java.io.File
StackMap stack:
aload 4 /* f */
invokevirtual java.io.File.toURI:()Ljava/net/URI;
invokevirtual java.net.URI.toURL:()Ljava/net/URL;
astore 3 /* url */
start local 3 // java.net.URL url
6: .line 283
aload 0 /* this */
getfield org.jruby.runtime.load.LibrarySearcher$JarResourceLibrary.location:Ljava/lang/String;
ldc "!"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 10
7: .line 284
new java.net.URL
dup
new java.lang.StringBuilder
dup
ldc "jar:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3 /* url */
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
astore 3 /* url */
8: .line 286
goto 10
end local 3 // java.net.URL url
9: .line 287
StackMap locals:
StackMap stack:
new java.net.URL
dup
aload 0 /* this */
getfield org.jruby.runtime.load.LibrarySearcher$JarResourceLibrary.location:Ljava/lang/String;
invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
astore 3 /* url */
end local 4 // java.io.File f
start local 3 // java.net.URL url
10: .line 290
StackMap locals: org.jruby.runtime.load.LibrarySearcher$JarResourceLibrary org.jruby.Ruby int java.net.URL
StackMap stack:
aload 1 /* runtime */
invokevirtual org.jruby.Ruby.getJRubyClassLoader:()Lorg/jruby/util/JRubyClassLoader;
aload 3 /* url */
invokevirtual org.jruby.util.JRubyClassLoader.addURL:(Ljava/net/URL;)V
end local 3 // java.net.URL url
11: .line 291
goto 14
12: .line 292
StackMap locals: org.jruby.runtime.load.LibrarySearcher$JarResourceLibrary org.jruby.Ruby int
StackMap stack: java.net.MalformedURLException
astore 3 /* badUrl */
start local 3 // java.net.MalformedURLException badUrl
13: .line 293
aload 1 /* runtime */
aload 3 /* badUrl */
invokevirtual org.jruby.Ruby.newIOErrorFromException:(Ljava/io/IOException;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 3 // java.net.MalformedURLException badUrl
14: .line 297
StackMap locals:
StackMap stack:
aload 1 /* runtime */
aload 0 /* this */
getfield org.jruby.runtime.load.LibrarySearcher$JarResourceLibrary.searchName:Ljava/lang/String;
invokestatic org.jruby.runtime.load.ClassExtensionLibrary.tryFind:(Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/jruby/runtime/load/ClassExtensionLibrary;
astore 3 /* serviceExtension */
start local 3 // org.jruby.runtime.load.ClassExtensionLibrary serviceExtension
15: .line 298
aload 3 /* serviceExtension */
ifnull 17
16: .line 299
aload 3 /* serviceExtension */
aload 1 /* runtime */
iload 2 /* wrap */
invokevirtual org.jruby.runtime.load.ClassExtensionLibrary.load:(Lorg/jruby/Ruby;Z)V
17: .line 301
StackMap locals: org.jruby.runtime.load.ClassExtensionLibrary
StackMap stack:
return
end local 3 // org.jruby.runtime.load.ClassExtensionLibrary serviceExtension
end local 2 // boolean wrap
end local 1 // org.jruby.Ruby runtime
end local 0 // org.jruby.runtime.load.LibrarySearcher$JarResourceLibrary this
LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/jruby/runtime/load/LibrarySearcher$JarResourceLibrary;
0 18 1 runtime Lorg/jruby/Ruby;
0 18 2 wrap Z
2 3 3 url Ljava/net/URL;
6 9 3 url Ljava/net/URL;
10 11 3 url Ljava/net/URL;
4 10 4 f Ljava/io/File;
13 14 3 badUrl Ljava/net/MalformedURLException;
15 18 3 serviceExtension Lorg/jruby/runtime/load/ClassExtensionLibrary;
Exception table:
from to target type
0 11 12 Class java.net.MalformedURLException
MethodParameters:
Name Flags
runtime
wrap
}
SourceFile: "LibrarySearcher.java"
NestHost: org.jruby.runtime.load.LibrarySearcher
InnerClasses:
JarResourceLibrary = org.jruby.runtime.load.LibrarySearcher$JarResourceLibrary of org.jruby.runtime.load.LibrarySearcher
ResourceLibrary = org.jruby.runtime.load.LibrarySearcher$ResourceLibrary of org.jruby.runtime.load.LibrarySearcher