public class org.jruby.util.UriLikePathHelper
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.util.UriLikePathHelper
super_class: java.lang.Object
{
private final org.jruby.util.Loader loader;
descriptor: Lorg/jruby/util/Loader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(org.jruby.util.Loader);
descriptor: (Lorg/jruby/util/Loader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.jruby.util.UriLikePathHelper.loader:Lorg/jruby/util/Loader;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/util/UriLikePathHelper;
0 3 1 loader Lorg/jruby/util/Loader;
MethodParameters:
Name Flags
loader
public java.net.URL getResource(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/net/URL;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.jruby.util.UriLikePathHelper.get:(Ljava/lang/String;)Ljava/net/URL;
astore 2
start local 2 1: aload 2
ifnonnull 3
aload 1
ldc "/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 3
2: aload 0
aload 1
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual org.jruby.util.UriLikePathHelper.get:(Ljava/lang/String;)Ljava/net/URL;
astore 2
3: StackMap locals: java.net.URL
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/util/UriLikePathHelper;
0 4 1 ref Ljava/lang/String;
1 4 2 url Ljava/net/URL;
MethodParameters:
Name Flags
ref
private java.net.URL get(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/net/URL;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.util.UriLikePathHelper.loader:Lorg/jruby/util/Loader;
aload 1
invokeinterface org.jruby.util.Loader.getResource:(Ljava/lang/String;)Ljava/net/URL;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/UriLikePathHelper;
0 1 1 ref Ljava/lang/String;
MethodParameters:
Name Flags
ref
public java.lang.String getUriLikePath();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "/.jrubydir"
invokevirtual org.jruby.util.UriLikePathHelper.createUri:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/UriLikePathHelper;
public java.lang.String getUriLikeGemPath();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "/specifications/.jrubydir"
invokevirtual org.jruby.util.UriLikePathHelper.createUri:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/UriLikePathHelper;
private java.lang.String createUri(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.jruby.util.UriLikePathHelper.getResource:(Ljava/lang/String;)Ljava/net/URL;
astore 2
start local 2 1: aload 2
ifnonnull 3
2: aconst_null
areturn
3: StackMap locals: java.net.URL
StackMap stack:
new java.lang.StringBuilder
dup
ldc "uri:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.net.URL.toString:()Ljava/lang/String;
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
ldc "$"
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;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/util/UriLikePathHelper;
0 4 1 ref Ljava/lang/String;
1 4 2 url Ljava/net/URL;
MethodParameters:
Name Flags
ref
}
SourceFile: "UriLikePathHelper.java"