public class org.jruby.util.ClasspathLauncher
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.util.ClasspathLauncher
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/ClasspathLauncher;
public static java.lang.String jrubyCommand(java.lang.ClassLoader);
descriptor: (Ljava/lang/ClassLoader;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=9, args_size=1
start local 0 0: ldc "java.home"
ldc ""
invokestatic org.jruby.util.SafePropertyAccessor.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 1
start local 1 1: 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 "/bin/java"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
start local 2 2: new java.io.File
dup
aload 2
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.exists:()Z
ifne 4
3: 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 "/jre/bin/java"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
4: StackMap locals: java.lang.String java.lang.String
StackMap stack:
new java.io.File
dup
aload 2
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.exists:()Z
ifne 6
5: ldc "java"
astore 2
6: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " -cp "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
astore 3
start local 3 7: aload 0
instanceof java.net.URLClassLoader
ifeq 15
8: 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 13
StackMap locals: java.lang.ClassLoader java.lang.String java.lang.String java.lang.StringBuilder top int int java.net.URL[]
StackMap stack:
9: aload 7
iload 5
aaload
astore 4
start local 4 10: aload 4
invokestatic org.jruby.util.URLUtil.getPlatformPath:(Ljava/net/URL;)Ljava/lang/String;
astore 8
start local 8 11: aload 8
ifnull 12
aload 3
getstatic java.io.File.pathSeparatorChar:C
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 8
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 8 end local 4 12: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
13: iload 5
iload 6
if_icmplt 9
14: goto 16
15: StackMap locals: java.lang.ClassLoader java.lang.String java.lang.String java.lang.StringBuilder
StackMap stack:
aload 3
getstatic java.io.File.pathSeparatorChar:C
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
ldc "java.class.path"
invokestatic org.jruby.util.SafePropertyAccessor.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
16: StackMap locals:
StackMap stack:
aload 3
ldc " org.jruby.Main"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
17: aload 3
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 classLoader Ljava/lang/ClassLoader;
1 18 1 javaHome Ljava/lang/String;
2 18 2 javaCmd Ljava/lang/String;
7 18 3 command Ljava/lang/StringBuilder;
10 12 4 url Ljava/net/URL;
11 12 8 path Ljava/lang/String;
MethodParameters:
Name Flags
classLoader
public static java.lang.String jrubyCommand(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.Ruby.getJRubyClassLoader:()Lorg/jruby/util/JRubyClassLoader;
invokevirtual org.jruby.util.JRubyClassLoader.getParent:()Ljava/lang/ClassLoader;
invokestatic org.jruby.util.ClasspathLauncher.jrubyCommand:(Ljava/lang/ClassLoader;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 runtime Lorg/jruby/Ruby;
MethodParameters:
Name Flags
runtime
}
SourceFile: "ClasspathLauncher.java"