public class org.jruby.util.URLUtil
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.util.URLUtil
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/URLUtil;
public static java.lang.String getPath(java.net.URL);
descriptor: (Ljava/net/URL;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.net.URL.toURI:()Ljava/net/URI;
invokevirtual java.net.URI.getSchemeSpecificPart:()Ljava/lang/String;
1: areturn
2: StackMap locals:
StackMap stack: java.net.URISyntaxException
pop
3: aload 0
invokevirtual java.net.URL.getPath:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 url Ljava/net/URL;
Exception table:
from to target type
0 1 2 Class java.net.URISyntaxException
MethodParameters:
Name Flags
url
public static java.lang.String getPlatformPath(java.net.URL);
descriptor: (Ljava/net/URL;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.net.URL.getProtocol:()Ljava/lang/String;
ldc "file"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
new java.io.File
dup
aload 0
invokestatic org.jruby.util.URLUtil.getPath:(Ljava/net/URL;)Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.getPath:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 url Ljava/net/URL;
MethodParameters:
Name Flags
url
}
SourceFile: "URLUtil.java"