public class org.jruby.util.ShellLauncher$LaunchConfig
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.util.ShellLauncher$LaunchConfig
super_class: java.lang.Object
{
private org.jruby.Ruby runtime;
descriptor: Lorg/jruby/Ruby;
flags: (0x0002) ACC_PRIVATE
private boolean doExecutableSearch;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private org.jruby.runtime.builtin.IRubyObject[] rawArgs;
descriptor: [Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0002) ACC_PRIVATE
private java.lang.String shell;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String[] args;
descriptor: [Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String[] execArgs;
descriptor: [Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private boolean cmdBuiltin;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.lang.String executable;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.io.File executableFile;
descriptor: Ljava/io/File;
flags: (0x0002) ACC_PRIVATE
public void <init>(org.jruby.Ruby, org.jruby.runtime.builtin.IRubyObject[], boolean);
descriptor: (Lorg/jruby/Ruby;[Lorg/jruby/runtime/builtin/IRubyObject;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield org.jruby.util.ShellLauncher$LaunchConfig.cmdBuiltin:Z
2: aload 0
aload 1
putfield org.jruby.util.ShellLauncher$LaunchConfig.runtime:Lorg/jruby/Ruby;
3: aload 0
aload 2
putfield org.jruby.util.ShellLauncher$LaunchConfig.rawArgs:[Lorg/jruby/runtime/builtin/IRubyObject;
4: aload 0
iload 3
putfield org.jruby.util.ShellLauncher$LaunchConfig.doExecutableSearch:Z
5: aload 0
aload 1
invokestatic org.jruby.util.ShellLauncher.getShell:(Lorg/jruby/Ruby;)Ljava/lang/String;
putfield org.jruby.util.ShellLauncher$LaunchConfig.shell:Ljava/lang/String;
6: aload 0
aload 1
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
aload 1
aload 2
invokestatic org.jruby.util.ShellLauncher.parseCommandLine:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/Ruby;[Lorg/jruby/runtime/builtin/IRubyObject;)[Ljava/lang/String;
putfield org.jruby.util.ShellLauncher$LaunchConfig.args:[Ljava/lang/String;
7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/util/ShellLauncher$LaunchConfig;
0 8 1 runtime Lorg/jruby/Ruby;
0 8 2 rawArgs [Lorg/jruby/runtime/builtin/IRubyObject;
0 8 3 doExecutableSearch Z
MethodParameters:
Name Flags
runtime
rawArgs
doExecutableSearch
public boolean shouldRunInProcess();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getInstanceConfig:()Lorg/jruby/RubyInstanceConfig;
invokevirtual org.jruby.RubyInstanceConfig.isRunRubyInProcess:()Z
ifeq 2
1: invokestatic org.jruby.RubyInstanceConfig.hasLoadedNativeExtensions:()Z
ifeq 3
2: StackMap locals:
StackMap stack:
iconst_0
ireturn
3: StackMap locals:
StackMap stack:
iconst_0
istore 1
start local 1 4: goto 16
5: StackMap locals: int
StackMap stack:
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.args:[Ljava/lang/String;
iload 1
aaload
astore 2
start local 2 6: aload 2
invokevirtual java.lang.String.trim:()Ljava/lang/String;
invokevirtual java.lang.String.length:()I
ifne 7
goto 15
7: StackMap locals: java.lang.String
StackMap stack:
iconst_2
newarray 5
dup
iconst_0
aload 2
iconst_0
invokevirtual java.lang.String.charAt:(I)C
castore
dup
iconst_1
aload 2
aload 2
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.charAt:(I)C
castore
astore 3
start local 3 8: iconst_0
istore 4
start local 4 9: goto 14
10: StackMap locals: char[] int
StackMap stack:
aload 3
iload 4
caload
lookupswitch { // 15
10: 11
34: 11
36: 11
38: 11
39: 11
40: 11
41: 11
50: 12
59: 11
60: 11
62: 11
92: 11
96: 11
124: 11
126: 11
default: 13
}
11: StackMap locals:
StackMap stack:
iconst_0
ireturn
12: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.String.length:()I
iconst_1
if_icmple 13
aload 2
iconst_1
invokevirtual java.lang.String.charAt:(I)C
bipush 62
if_icmpne 13
iconst_0
ireturn
13: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
14: iload 4
aload 3
arraylength
if_icmplt 10
end local 4 end local 3 end local 2 15: StackMap locals:
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
16: iload 1
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.args:[Ljava/lang/String;
arraylength
if_icmplt 5
end local 1 17: aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.args:[Ljava/lang/String;
iconst_0
aaload
astore 1
start local 1 18: getstatic jnr.posix.util.Platform.IS_WINDOWS:Z
ifeq 19
aload 1
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
astore 1
19: StackMap locals: org.jruby.util.ShellLauncher$LaunchConfig java.lang.String
StackMap stack:
aload 1
ldc "[/\\\\]"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 2
start local 2 20: aload 2
aload 2
arraylength
iconst_1
isub
aaload
astore 3
start local 3 21: aload 3
ldc "ruby"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 26
22: getstatic jnr.posix.util.Platform.IS_WINDOWS:Z
ifeq 23
aload 3
ldc "ruby.exe"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 26
23: StackMap locals: java.lang.String[] java.lang.String
StackMap stack:
aload 3
ldc ".rb"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 26
24: aload 3
ldc "irb"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 26
25: iconst_0
goto 27
StackMap locals:
StackMap stack:
26: iconst_1
StackMap locals:
StackMap stack: int
27: istore 4
start local 4 28: iload 4
ifne 29
iconst_0
ireturn
29: StackMap locals: int
StackMap stack:
aload 1
ldc ".rb"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 30
iconst_0
goto 31
StackMap locals:
StackMap stack:
30: iconst_1
StackMap locals:
StackMap stack: int
31: istore 5
start local 5 32: aload 1
invokevirtual java.lang.String.trim:()Ljava/lang/String;
ldc "irb"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 35
33: iconst_0
istore 5
34: aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.args:[Ljava/lang/String;
iconst_0
new java.lang.StringBuilder
dup
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getJRubyHome:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic java.io.File.separator:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "bin"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
getstatic java.io.File.separator:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "jirb"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
35: StackMap locals: int
StackMap stack:
aload 0
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.args:[Ljava/lang/String;
arraylength
iload 5
isub
anewarray java.lang.String
putfield org.jruby.util.ShellLauncher$LaunchConfig.execArgs:[Ljava/lang/String;
36: aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.args:[Ljava/lang/String;
iload 5
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.execArgs:[Ljava/lang/String;
iconst_0
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.execArgs:[Ljava/lang/String;
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
37: iconst_1
ireturn
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 38 0 this Lorg/jruby/util/ShellLauncher$LaunchConfig;
4 17 1 i I
6 15 2 c Ljava/lang/String;
8 15 3 firstLast [C
9 15 4 j I
18 38 1 command Ljava/lang/String;
20 38 2 slashDelimitedTokens [Ljava/lang/String;
21 38 3 finalToken Ljava/lang/String;
28 38 4 inProc Z
32 38 5 startIndex I
public boolean shouldRunInShell();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.rawArgs:[Lorg/jruby/runtime/builtin/IRubyObject;
arraylength
iconst_1
if_icmpeq 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
getstatic jnr.posix.util.Platform.IS_WINDOWS:Z
ifne 3
iconst_1
ireturn
3: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.shell:Ljava/lang/String;
ifnonnull 4
iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.args:[Ljava/lang/String;
dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 9
StackMap locals: org.jruby.util.ShellLauncher$LaunchConfig top int int java.lang.String[]
StackMap stack:
5: aload 4
iload 2
aaload
astore 1
start local 1 6: aload 1
invokevirtual java.lang.String.trim:()Ljava/lang/String;
invokestatic org.jruby.util.ShellLauncher$LaunchConfig.shouldVerifyPathExecutable:(Ljava/lang/String;)Z
ifne 8
7: iconst_1
ireturn
end local 1 8: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
9: iload 2
iload 3
if_icmplt 5
10: aload 0
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.args:[Ljava/lang/String;
iconst_0
aaload
invokevirtual java.lang.String.trim:()Ljava/lang/String;
putfield org.jruby.util.ShellLauncher$LaunchConfig.executable:Ljava/lang/String;
11: aload 0
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.executable:Ljava/lang/String;
invokestatic org.jruby.util.ShellLauncher.findPathExecutable:(Lorg/jruby/Ruby;Ljava/lang/String;)Ljava/io/File;
putfield org.jruby.util.ShellLauncher$LaunchConfig.executableFile:Ljava/io/File;
12: aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.executableFile:Ljava/io/File;
ifnull 18
13: aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.runtime:Lorg/jruby/Ruby;
new java.lang.StringBuilder
dup
ldc "Got it: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.executableFile:Ljava/io/File;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.jruby.util.ShellLauncher.log:(Lorg/jruby/Ruby;Ljava/lang/String;)V
14: aload 0
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.executableFile:Ljava/io/File;
invokevirtual org.jruby.util.ShellLauncher$LaunchConfig.isBatch:(Ljava/io/File;)Z
ifeq 17
15: aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.runtime:Lorg/jruby/Ruby;
ldc "This is a BAT/CMD file, will start in shell"
invokestatic org.jruby.util.ShellLauncher.log:(Lorg/jruby/Ruby;Ljava/lang/String;)V
16: iconst_1
ireturn
17: StackMap locals: org.jruby.util.ShellLauncher$LaunchConfig
StackMap stack:
iconst_0
ireturn
18: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.runtime:Lorg/jruby/Ruby;
new java.lang.StringBuilder
dup
ldc "Didn't find executable: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.executable:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.jruby.util.ShellLauncher.log:(Lorg/jruby/Ruby;Ljava/lang/String;)V
19: aload 0
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.executable:Ljava/lang/String;
invokevirtual org.jruby.util.ShellLauncher$LaunchConfig.isCmdBuiltin:(Ljava/lang/String;)Z
ifeq 22
20: aload 0
iconst_1
putfield org.jruby.util.ShellLauncher$LaunchConfig.cmdBuiltin:Z
21: iconst_1
ireturn
22: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lorg/jruby/util/ShellLauncher$LaunchConfig;
6 8 1 arg Ljava/lang/String;
private boolean isBatch(java.io.File);
descriptor: (Ljava/io/File;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.io.File.getName:()Ljava/lang/String;
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
ldc ".bat"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/ShellLauncher$LaunchConfig;
0 1 1 executableFile Ljava/io/File;
MethodParameters:
Name Flags
executableFile
public void verifyExecutableForShell();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.rawArgs:[Lorg/jruby/runtime/builtin/IRubyObject;
iconst_0
aaload
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 1
start local 1 1: aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.doExecutableSearch:Z
ifeq 3
aload 1
invokestatic org.jruby.util.ShellLauncher$LaunchConfig.shouldVerifyPathExecutable:(Ljava/lang/String;)Z
ifeq 3
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.cmdBuiltin:Z
ifne 3
2: aload 0
invokevirtual org.jruby.util.ShellLauncher$LaunchConfig.verifyExecutable:()V
3: StackMap locals: java.lang.String
StackMap stack:
aload 0
iconst_3
anewarray java.lang.String
putfield org.jruby.util.ShellLauncher$LaunchConfig.execArgs:[Ljava/lang/String;
4: aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.execArgs:[Ljava/lang/String;
iconst_0
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.shell:Ljava/lang/String;
aastore
5: aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.execArgs:[Ljava/lang/String;
iconst_1
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.shell:Ljava/lang/String;
ldc "sh"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 6
ldc "-c"
goto 7
StackMap locals: org.jruby.util.ShellLauncher$LaunchConfig java.lang.String
StackMap stack: java.lang.String[] int
6: ldc "/c"
StackMap locals: org.jruby.util.ShellLauncher$LaunchConfig java.lang.String
StackMap stack: java.lang.String[] int java.lang.String
7: aastore
8: getstatic jnr.posix.util.Platform.IS_WINDOWS:Z
ifeq 11
9: aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.execArgs:[Ljava/lang/String;
iconst_2
new java.lang.StringBuilder
dup
ldc "\""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
10: goto 12
11: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.execArgs:[Ljava/lang/String;
iconst_2
aload 1
aastore
12: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/jruby/util/ShellLauncher$LaunchConfig;
1 13 1 cmdline Ljava/lang/String;
public void verifyExecutableForDirect();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.args:[Ljava/lang/String;
iconst_0
aaload
invokevirtual java.lang.String.trim:()Ljava/lang/String;
invokevirtual org.jruby.util.ShellLauncher$LaunchConfig.isCmdBuiltin:(Ljava/lang/String;)Z
ifeq 7
1: aload 0
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.args:[Ljava/lang/String;
arraylength
iconst_2
iadd
anewarray java.lang.String
putfield org.jruby.util.ShellLauncher$LaunchConfig.execArgs:[Ljava/lang/String;
2: aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.execArgs:[Ljava/lang/String;
iconst_0
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.shell:Ljava/lang/String;
aastore
3: aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.execArgs:[Ljava/lang/String;
iconst_1
ldc "/c"
aastore
4: aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.execArgs:[Ljava/lang/String;
iconst_2
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.args:[Ljava/lang/String;
iconst_0
aaload
invokevirtual java.lang.String.trim:()Ljava/lang/String;
aastore
5: aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.args:[Ljava/lang/String;
iconst_1
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.execArgs:[Ljava/lang/String;
iconst_3
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.args:[Ljava/lang/String;
arraylength
iconst_1
isub
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
6: goto 10
7: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.util.ShellLauncher$LaunchConfig.verifyExecutable:()V
8: aload 0
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.args:[Ljava/lang/String;
putfield org.jruby.util.ShellLauncher$LaunchConfig.execArgs:[Ljava/lang/String;
9: aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.execArgs:[Ljava/lang/String;
iconst_0
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.executableFile:Ljava/io/File;
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
aastore
10: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/jruby/util/ShellLauncher$LaunchConfig;
private void verifyExecutable();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.executableFile:Ljava/io/File;
ifnonnull 4
1: aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.executable:Ljava/lang/String;
ifnonnull 3
2: aload 0
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.args:[Ljava/lang/String;
iconst_0
aaload
invokevirtual java.lang.String.trim:()Ljava/lang/String;
putfield org.jruby.util.ShellLauncher$LaunchConfig.executable:Ljava/lang/String;
3: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.executable:Ljava/lang/String;
invokestatic org.jruby.util.ShellLauncher.findPathExecutable:(Lorg/jruby/Ruby;Ljava/lang/String;)Ljava/io/File;
putfield org.jruby.util.ShellLauncher$LaunchConfig.executableFile:Ljava/io/File;
4: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.executableFile:Ljava/io/File;
ifnonnull 6
5: aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.executable:Ljava/lang/String;
invokevirtual org.jruby.Ruby.newErrnoENOENTError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/util/ShellLauncher$LaunchConfig;
public java.lang.String[] getExecArgs();
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.ShellLauncher$LaunchConfig.execArgs:[Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/ShellLauncher$LaunchConfig;
private boolean isCmdBuiltin(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.shell:Ljava/lang/String;
ldc "sh"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 5
1: getstatic org.jruby.util.ShellLauncher.WINDOWS_INTERNAL_CMDS:[Ljava/lang/String;
aload 1
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
invokestatic java.util.Arrays.binarySearch:([Ljava/lang/Object;Ljava/lang/Object;)I
istore 2
start local 2 2: iload 2
iflt 5
3: aload 0
getfield org.jruby.util.ShellLauncher$LaunchConfig.runtime:Lorg/jruby/Ruby;
new java.lang.StringBuilder
dup
ldc "Found Windows shell's built-in command: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.jruby.util.ShellLauncher.log:(Lorg/jruby/Ruby;Ljava/lang/String;)V
4: iconst_1
ireturn
end local 2 5: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/util/ShellLauncher$LaunchConfig;
0 6 1 cmd Ljava/lang/String;
2 5 2 idx I
MethodParameters:
Name Flags
cmd
private static boolean hasRedirection(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: getstatic jnr.posix.util.Platform.IS_WINDOWS:Z
ifeq 26
1: iconst_0
istore 1
start local 1 2: iconst_0
istore 2
start local 2 3: goto 24
4: StackMap locals: int int
StackMap stack:
aload 0
iload 2
invokevirtual java.lang.String.charAt:(I)C
istore 3
start local 3 5: iload 3
lookupswitch { // 8
10: 13
34: 6
37: 17
39: 6
60: 13
62: 13
92: 22
124: 13
default: 23
}
6: StackMap locals: int
StackMap stack:
iload 1
ifne 9
7: iload 3
istore 1
8: goto 11
StackMap locals:
StackMap stack:
9: iload 1
iload 3
if_icmpne 11
10: iconst_0
istore 1
11: StackMap locals:
StackMap stack:
iinc 2 1
12: goto 24
13: StackMap locals:
StackMap stack:
iload 1
ifne 15
14: iconst_1
ireturn
15: StackMap locals:
StackMap stack:
iinc 2 1
16: goto 24
17: StackMap locals:
StackMap stack:
getstatic org.jruby.util.ShellLauncher.WIN_ENVVAR_PATTERN:Ljava/util/regex/Pattern;
aload 0
iload 2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 4
start local 4 18: aload 4
invokevirtual java.util.regex.Matcher.find:()Z
ifeq 20
19: iconst_1
ireturn
20: StackMap locals: java.util.regex.Matcher
StackMap stack:
iinc 2 1
21: goto 24
end local 4 22: StackMap locals:
StackMap stack:
iinc 2 1
23: StackMap locals:
StackMap stack:
iinc 2 1
end local 3 24: StackMap locals:
StackMap stack:
iload 2
aload 0
invokevirtual java.lang.String.length:()I
if_icmplt 4
end local 2 25: iconst_0
ireturn
end local 1 26: StackMap locals:
StackMap stack:
getstatic org.jruby.util.ShellLauncher.SHELL_METACHARACTER_PATTERN:Ljava/util/regex/Pattern;
aload 0
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 1
start local 1 27: aload 1
invokevirtual java.util.regex.Matcher.find:()Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 cmdline Ljava/lang/String;
2 26 1 quote C
3 25 2 idx I
5 24 3 ptr C
18 22 4 envVarMatcher Ljava/util/regex/Matcher;
27 28 1 metaMatcher Ljava/util/regex/Matcher;
MethodParameters:
Name Flags
cmdline
private static boolean shouldVerifyPathExecutable(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: iconst_1
istore 1
start local 1 1: aload 0
invokestatic org.jruby.util.ShellLauncher$LaunchConfig.hasRedirection:(Ljava/lang/String;)Z
ifeq 3
2: iconst_0
ireturn
3: StackMap locals: int
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 cmdline Ljava/lang/String;
1 4 1 verifyPathExecutable Z
MethodParameters:
Name Flags
cmdline
}
SourceFile: "ShellLauncher.java"
NestHost: org.jruby.util.ShellLauncher
InnerClasses:
public LaunchConfig = org.jruby.util.ShellLauncher$LaunchConfig of org.jruby.util.ShellLauncher