class jdk.nashorn.internal.runtime.CommandExecutor
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.nashorn.internal.runtime.CommandExecutor
super_class: java.lang.Object
{
private static final int BUFFER_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1024
private static final boolean IS_WINDOWS;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String CYGDRIVE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "/cygdrive/"
private static final java.lang.String HOME_DIRECTORY;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String[] redirectPrefixes;
descriptor: [Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final jdk.nashorn.internal.runtime.CommandExecutor$RedirectType[] redirects;
descriptor: [Ljdk/nashorn/internal/runtime/CommandExecutor$RedirectType;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static final int EXIT_SUCCESS;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 0
static final int EXIT_FAILURE;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 1
private java.util.Map<java.lang.String, java.lang.String> environment;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
private java.lang.String inputString;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String outputString;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String errorString;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private int exitCode;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.io.InputStream inputStream;
descriptor: Ljava/io/InputStream;
flags: (0x0002) ACC_PRIVATE
private java.io.OutputStream outputStream;
descriptor: Ljava/io/OutputStream;
flags: (0x0002) ACC_PRIVATE
private java.io.OutputStream errorStream;
descriptor: Ljava/io/OutputStream;
flags: (0x0002) ACC_PRIVATE
private java.util.List<java.lang.ProcessBuilder> processBuilders;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Ljava/lang/ProcessBuilder;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: invokedynamic run()Ljava/security/PrivilegedAction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
jdk/nashorn/internal/runtime/CommandExecutor.lambda$0()Ljava/lang/Boolean; (6)
()Ljava/lang/Boolean;
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
1: putstatic jdk.nashorn.internal.runtime.CommandExecutor.IS_WINDOWS:Z
2: invokedynamic run()Ljava/security/PrivilegedAction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
jdk/nashorn/internal/runtime/CommandExecutor.lambda$1()Ljava/lang/String; (6)
()Ljava/lang/String;
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
3: putstatic jdk.nashorn.internal.runtime.CommandExecutor.HOME_DIRECTORY:Ljava/lang/String;
4: bipush 10
anewarray java.lang.String
dup
iconst_0
5: ldc "<"
aastore
dup
iconst_1
6: ldc "0<"
aastore
dup
iconst_2
7: ldc ">"
aastore
dup
iconst_3
8: ldc "1>"
aastore
dup
iconst_4
9: ldc ">>"
aastore
dup
iconst_5
10: ldc "1>>"
aastore
dup
bipush 6
11: ldc "2>"
aastore
dup
bipush 7
12: ldc "2>>"
aastore
dup
bipush 8
13: ldc "&>"
aastore
dup
bipush 9
14: ldc "2>&1"
aastore
15: putstatic jdk.nashorn.internal.runtime.CommandExecutor.redirectPrefixes:[Ljava/lang/String;
16: bipush 10
anewarray jdk.nashorn.internal.runtime.CommandExecutor$RedirectType
dup
iconst_0
17: getstatic jdk.nashorn.internal.runtime.CommandExecutor$RedirectType.REDIRECT_INPUT:Ljdk/nashorn/internal/runtime/CommandExecutor$RedirectType;
aastore
dup
iconst_1
18: getstatic jdk.nashorn.internal.runtime.CommandExecutor$RedirectType.REDIRECT_INPUT:Ljdk/nashorn/internal/runtime/CommandExecutor$RedirectType;
aastore
dup
iconst_2
19: getstatic jdk.nashorn.internal.runtime.CommandExecutor$RedirectType.REDIRECT_OUTPUT:Ljdk/nashorn/internal/runtime/CommandExecutor$RedirectType;
aastore
dup
iconst_3
20: getstatic jdk.nashorn.internal.runtime.CommandExecutor$RedirectType.REDIRECT_OUTPUT:Ljdk/nashorn/internal/runtime/CommandExecutor$RedirectType;
aastore
dup
iconst_4
21: getstatic jdk.nashorn.internal.runtime.CommandExecutor$RedirectType.REDIRECT_OUTPUT_APPEND:Ljdk/nashorn/internal/runtime/CommandExecutor$RedirectType;
aastore
dup
iconst_5
22: getstatic jdk.nashorn.internal.runtime.CommandExecutor$RedirectType.REDIRECT_OUTPUT_APPEND:Ljdk/nashorn/internal/runtime/CommandExecutor$RedirectType;
aastore
dup
bipush 6
23: getstatic jdk.nashorn.internal.runtime.CommandExecutor$RedirectType.REDIRECT_ERROR:Ljdk/nashorn/internal/runtime/CommandExecutor$RedirectType;
aastore
dup
bipush 7
24: getstatic jdk.nashorn.internal.runtime.CommandExecutor$RedirectType.REDIRECT_ERROR_APPEND:Ljdk/nashorn/internal/runtime/CommandExecutor$RedirectType;
aastore
dup
bipush 8
25: getstatic jdk.nashorn.internal.runtime.CommandExecutor$RedirectType.REDIRECT_OUTPUT_ERROR_APPEND:Ljdk/nashorn/internal/runtime/CommandExecutor$RedirectType;
aastore
dup
bipush 9
26: getstatic jdk.nashorn.internal.runtime.CommandExecutor$RedirectType.REDIRECT_ERROR_TO_OUTPUT:Ljdk/nashorn/internal/runtime/CommandExecutor$RedirectType;
aastore
27: putstatic jdk.nashorn.internal.runtime.CommandExecutor.redirects:[Ljdk/nashorn/internal/runtime/CommandExecutor$RedirectType;
28: return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield jdk.nashorn.internal.runtime.CommandExecutor.processBuilders:Ljava/util/List;
2: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield jdk.nashorn.internal.runtime.CommandExecutor.environment:Ljava/util/Map;
3: aload 0
ldc ""
putfield jdk.nashorn.internal.runtime.CommandExecutor.inputString:Ljava/lang/String;
4: aload 0
ldc ""
putfield jdk.nashorn.internal.runtime.CommandExecutor.outputString:Ljava/lang/String;
5: aload 0
ldc ""
putfield jdk.nashorn.internal.runtime.CommandExecutor.errorString:Ljava/lang/String;
6: aload 0
iconst_0
putfield jdk.nashorn.internal.runtime.CommandExecutor.exitCode:I
7: aload 0
aconst_null
putfield jdk.nashorn.internal.runtime.CommandExecutor.inputStream:Ljava/io/InputStream;
8: aload 0
aconst_null
putfield jdk.nashorn.internal.runtime.CommandExecutor.outputStream:Ljava/io/OutputStream;
9: aload 0
aconst_null
putfield jdk.nashorn.internal.runtime.CommandExecutor.errorStream:Ljava/io/OutputStream;
10: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield jdk.nashorn.internal.runtime.CommandExecutor.processBuilders:Ljava/util/List;
11: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljdk/nashorn/internal/runtime/CommandExecutor;
private java.lang.String envVarValue(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.environment:Ljava/util/Map;
aload 1
aload 2
invokeinterface java.util.Map.getOrDefault:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/runtime/CommandExecutor;
0 1 1 key Ljava/lang/String;
0 1 2 deflt Ljava/lang/String;
MethodParameters:
Name Flags
key final
deflt final
private long envVarLongValue(java.lang.String);
descriptor: (Ljava/lang/String;)J
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
ldc "0"
invokevirtual jdk.nashorn.internal.runtime.CommandExecutor.envVarValue:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.Long.parseLong:(Ljava/lang/String;)J
1: lreturn
2: StackMap locals:
StackMap stack: java.lang.NumberFormatException
pop
3: lconst_0
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/nashorn/internal/runtime/CommandExecutor;
0 4 1 key Ljava/lang/String;
Exception table:
from to target type
0 1 2 Class java.lang.NumberFormatException
MethodParameters:
Name Flags
key final
private boolean envVarBooleanValue(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual jdk.nashorn.internal.runtime.CommandExecutor.envVarLongValue:(Ljava/lang/String;)J
lconst_0
lcmp
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/runtime/CommandExecutor;
0 2 1 key Ljava/lang/String;
MethodParameters:
Name Flags
key final
private static java.lang.String stripQuotes(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
ldc "\""
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 1
aload 0
ldc "\""
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 2
1: StackMap locals:
StackMap stack:
aload 0
ldc "'"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 3
aload 0
ldc "'"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 3
2: StackMap locals:
StackMap stack:
aload 0
iconst_1
aload 0
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 0
3: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 token Ljava/lang/String;
MethodParameters:
Name Flags
token
private static java.nio.file.Path resolvePath(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/nio/file/Path;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokestatic jdk.nashorn.internal.runtime.CommandExecutor.sanitizePath:(Ljava/lang/String;)Ljava/lang/String;
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
aload 1
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.normalize:()Ljava/nio/file/Path;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 cwd Ljava/lang/String;
0 1 1 fileName Ljava/lang/String;
MethodParameters:
Name Flags
cwd final
fileName final
private boolean builtIn(java.util.List<java.lang.String>, java.lang.String);
descriptor: (Ljava/util/List;Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=11, args_size=3
start local 0 start local 1 start local 2 0: aload 1
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
dup
astore 3
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 3
-905782965: 1
-19279580: 2
3169: 3
default: 33
}
StackMap locals: java.lang.String
StackMap stack:
1: aload 3
ldc "setenv"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 24
goto 33
StackMap locals:
StackMap stack:
2: aload 3
ldc "unsetenv"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 29
goto 33
StackMap locals:
StackMap stack:
3: aload 3
ldc "cd"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 4
goto 33
4: StackMap locals:
StackMap stack:
getstatic jdk.nashorn.internal.runtime.CommandExecutor.IS_WINDOWS:Z
ifeq 5
aload 2
ldc "/cygdrive/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 5
iconst_1
goto 6
StackMap locals:
StackMap stack:
5: iconst_0
StackMap locals:
StackMap stack: int
6: istore 4
start local 4 7: aload 1
invokeinterface java.util.List.size:()I
iconst_2
if_icmpge 8
getstatic jdk.nashorn.internal.runtime.CommandExecutor.HOME_DIRECTORY:Ljava/lang/String;
goto 9
StackMap locals: int
StackMap stack:
8: aload 1
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
StackMap locals:
StackMap stack: java.lang.String
9: astore 5
start local 5 10: aload 2
aload 5
invokestatic jdk.nashorn.internal.runtime.CommandExecutor.resolvePath:(Ljava/lang/String;Ljava/lang/String;)Ljava/nio/file/Path;
astore 6
start local 6 11: aload 6
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
astore 7
start local 7 12: aload 7
invokevirtual java.io.File.exists:()Z
ifne 15
13: aload 0
ldc "file.not.exist"
aload 7
invokevirtual java.io.File.toString:()Ljava/lang/String;
invokevirtual jdk.nashorn.internal.runtime.CommandExecutor.reportError:(Ljava/lang/String;Ljava/lang/String;)V
14: iconst_1
ireturn
15: StackMap locals: java.lang.String java.nio.file.Path java.io.File
StackMap stack:
aload 7
invokevirtual java.io.File.isDirectory:()Z
ifne 18
16: aload 0
ldc "not.directory"
aload 7
invokevirtual java.io.File.toString:()Ljava/lang/String;
invokevirtual jdk.nashorn.internal.runtime.CommandExecutor.reportError:(Ljava/lang/String;Ljava/lang/String;)V
17: iconst_1
ireturn
18: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
astore 8
start local 8 19: iload 4
ifeq 22
aload 8
invokevirtual java.lang.String.length:()I
iconst_2
if_icmplt 22
20: aload 8
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.isLetter:(C)Z
ifeq 22
aload 8
iconst_1
invokevirtual java.lang.String.charAt:(I)C
bipush 58
if_icmpne 22
21: new java.lang.StringBuilder
dup
ldc "/cygdrive/"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 8
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.toLowerCase:(C)C
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
ldc "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 8
iconst_2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 8
22: StackMap locals: java.lang.String
StackMap stack:
aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.environment:Ljava/util/Map;
ldc "PWD"
aload 8
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
23: iconst_1
ireturn
end local 8 end local 7 end local 6 end local 5 end local 4 24: StackMap locals: jdk.nashorn.internal.runtime.CommandExecutor java.util.List java.lang.String java.lang.String
StackMap stack:
iconst_3
aload 1
invokeinterface java.util.List.size:()I
if_icmpgt 28
25: aload 1
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
astore 9
start local 9 26: aload 1
iconst_2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
astore 10
start local 10 27: aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.environment:Ljava/util/Map;
aload 9
aload 10
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 10 end local 9 28: StackMap locals:
StackMap stack:
iconst_1
ireturn
29: StackMap locals:
StackMap stack:
iconst_2
aload 1
invokeinterface java.util.List.size:()I
if_icmpgt 32
30: aload 1
iconst_1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
astore 9
start local 9 31: aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.environment:Ljava/util/Map;
aload 9
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 9 32: StackMap locals:
StackMap stack:
iconst_1
ireturn
33: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 34 0 this Ljdk/nashorn/internal/runtime/CommandExecutor;
0 34 1 cmd Ljava/util/List<Ljava/lang/String;>;
0 34 2 cwd Ljava/lang/String;
7 24 4 cygpath Z
10 24 5 newCWD Ljava/lang/String;
11 24 6 cwdPath Ljava/nio/file/Path;
12 24 7 file Ljava/io/File;
19 24 8 scwd Ljava/lang/String;
26 28 9 key Ljava/lang/String;
27 28 10 value Ljava/lang/String;
31 32 9 key Ljava/lang/String;
Signature: (Ljava/util/List<Ljava/lang/String;>;Ljava/lang/String;)Z
MethodParameters:
Name Flags
cmd final
cwd final
private java.util.List<java.lang.String> preprocessCommand(java.util.List<java.lang.String>, java.lang.String, jdk.nashorn.internal.runtime.CommandExecutor$RedirectInfo);
descriptor: (Ljava/util/List;Ljava/lang/String;Ljdk/nashorn/internal/runtime/CommandExecutor$RedirectInfo;)Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 4
start local 4 1: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
start local 5 2: goto 7
3: StackMap locals: java.util.List java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 6
start local 6 4: aload 3
aload 6
aload 5
aload 2
invokevirtual jdk.nashorn.internal.runtime.CommandExecutor$RedirectInfo.check:(Ljava/lang/String;Ljava/util/Iterator;Ljava/lang/String;)Z
ifeq 6
5: goto 7
6: StackMap locals: java.lang.String
StackMap stack:
aload 4
aload 6
invokestatic jdk.nashorn.internal.runtime.CommandExecutor.stripQuotes:(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 6 7: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
8: aload 4
invokeinterface java.util.List.size:()I
ifle 10
9: aload 4
iconst_0
aload 4
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
invokestatic jdk.nashorn.internal.runtime.CommandExecutor.sanitizePath:(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.util.List.set:(ILjava/lang/Object;)Ljava/lang/Object;
pop
10: StackMap locals:
StackMap stack:
aload 4
areturn
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 11 0 this Ljdk/nashorn/internal/runtime/CommandExecutor;
0 11 1 tokens Ljava/util/List<Ljava/lang/String;>;
0 11 2 cwd Ljava/lang/String;
0 11 3 redirectInfo Ljdk/nashorn/internal/runtime/CommandExecutor$RedirectInfo;
1 11 4 command Ljava/util/List<Ljava/lang/String;>;
2 11 5 iterator Ljava/util/Iterator<Ljava/lang/String;>;
4 7 6 token Ljava/lang/String;
Signature: (Ljava/util/List<Ljava/lang/String;>;Ljava/lang/String;Ljdk/nashorn/internal/runtime/CommandExecutor$RedirectInfo;)Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
tokens final
cwd final
redirectInfo final
private static java.lang.String sanitizePath(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: getstatic jdk.nashorn.internal.runtime.CommandExecutor.IS_WINDOWS:Z
ifeq 1
getstatic jdk.nashorn.internal.runtime.CommandExecutor.IS_WINDOWS:Z
ifeq 2
aload 0
ldc "/cygdrive/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 2
1: StackMap locals:
StackMap stack:
aload 0
areturn
2: StackMap locals:
StackMap stack:
aload 0
ldc "/cygdrive/"
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 1
start local 1 3: aload 1
invokevirtual java.lang.String.length:()I
iconst_2
if_icmplt 5
aload 1
iconst_1
invokevirtual java.lang.String.charAt:(I)C
bipush 47
if_icmpne 5
4: new java.lang.StringBuilder
dup
aload 1
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.String.valueOf:(C)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
5: StackMap locals: java.lang.String
StackMap stack:
aload 1
invokevirtual java.lang.String.length:()I
iconst_1
if_icmpne 7
6: new java.lang.StringBuilder
dup
aload 1
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.String.valueOf:(C)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;
areturn
7: StackMap locals:
StackMap stack:
aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 d Ljava/lang/String;
3 8 1 pd Ljava/lang/String;
MethodParameters:
Name Flags
d final
private void createProcessBuilder(java.util.List<java.lang.String>, java.lang.String, jdk.nashorn.internal.runtime.CommandExecutor$RedirectInfo);
descriptor: (Ljava/util/List;Ljava/lang/String;Ljdk/nashorn/internal/runtime/CommandExecutor$RedirectInfo;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new java.lang.ProcessBuilder
dup
aload 1
invokespecial java.lang.ProcessBuilder.<init>:(Ljava/util/List;)V
astore 4
start local 4 1: aload 4
new java.io.File
dup
aload 2
invokestatic jdk.nashorn.internal.runtime.CommandExecutor.sanitizePath:(Ljava/lang/String;)Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.lang.ProcessBuilder.directory:(Ljava/io/File;)Ljava/lang/ProcessBuilder;
pop
2: aload 4
invokevirtual java.lang.ProcessBuilder.environment:()Ljava/util/Map;
astore 5
start local 5 3: aload 5
invokeinterface java.util.Map.clear:()V
4: aload 5
aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.environment:Ljava/util/Map;
invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
5: aload 3
aload 4
invokevirtual jdk.nashorn.internal.runtime.CommandExecutor$RedirectInfo.apply:(Ljava/lang/ProcessBuilder;)V
6: aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.processBuilders:Ljava/util/List;
aload 4
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
7: return
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 8 0 this Ljdk/nashorn/internal/runtime/CommandExecutor;
0 8 1 command Ljava/util/List<Ljava/lang/String;>;
0 8 2 cwd Ljava/lang/String;
0 8 3 redirectInfo Ljdk/nashorn/internal/runtime/CommandExecutor$RedirectInfo;
1 8 4 pb Ljava/lang/ProcessBuilder;
3 8 5 processEnvironment Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Signature: (Ljava/util/List<Ljava/lang/String;>;Ljava/lang/String;Ljdk/nashorn/internal/runtime/CommandExecutor$RedirectInfo;)V
MethodParameters:
Name Flags
command final
cwd final
redirectInfo final
private void command(java.util.List<java.lang.String>, );
descriptor: (Ljava/util/List;Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=22, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ldc "JJS_ECHO"
invokevirtual jdk.nashorn.internal.runtime.CommandExecutor.envVarBooleanValue:(Ljava/lang/String;)Z
ifeq 2
1: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " "
aload 1
invokestatic java.lang.String.join:(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
aload 0
ldc "PWD"
getstatic jdk.nashorn.internal.runtime.CommandExecutor.HOME_DIRECTORY:Ljava/lang/String;
invokevirtual jdk.nashorn.internal.runtime.CommandExecutor.envVarValue:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 3: new jdk.nashorn.internal.runtime.CommandExecutor$RedirectInfo
dup
invokespecial jdk.nashorn.internal.runtime.CommandExecutor$RedirectInfo.<init>:()V
astore 4
start local 4 4: aload 0
aload 1
aload 3
aload 4
invokevirtual jdk.nashorn.internal.runtime.CommandExecutor.preprocessCommand:(Ljava/util/List;Ljava/lang/String;Ljdk/nashorn/internal/runtime/CommandExecutor$RedirectInfo;)Ljava/util/List;
astore 5
start local 5 5: aload 5
invokeinterface java.util.List.isEmpty:()Z
ifne 6
aload 0
aload 5
aload 3
invokevirtual jdk.nashorn.internal.runtime.CommandExecutor.builtIn:(Ljava/util/List;Ljava/lang/String;)Z
ifeq 7
6: StackMap locals: java.lang.String jdk.nashorn.internal.runtime.CommandExecutor$RedirectInfo java.util.List
StackMap stack:
return
7: StackMap locals:
StackMap stack:
aload 0
aload 5
aload 3
aload 4
invokevirtual jdk.nashorn.internal.runtime.CommandExecutor.createProcessBuilder:(Ljava/util/List;Ljava/lang/String;Ljdk/nashorn/internal/runtime/CommandExecutor$RedirectInfo;)V
8: iload 2
ifeq 10
9: return
10: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.processBuilders:Ljava/util/List;
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.ProcessBuilder
astore 6
start local 6 11: aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.processBuilders:Ljava/util/List;
aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.processBuilders:Ljava/util/List;
invokeinterface java.util.List.size:()I
iconst_1
isub
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.ProcessBuilder
astore 7
start local 7 12: aload 6
invokevirtual java.lang.ProcessBuilder.redirectInput:()Ljava/lang/ProcessBuilder$Redirect;
getstatic java.lang.ProcessBuilder$Redirect.PIPE:Ljava/lang/ProcessBuilder$Redirect;
if_acmpne 13
iconst_1
goto 14
StackMap locals: java.lang.ProcessBuilder java.lang.ProcessBuilder
StackMap stack:
13: iconst_0
StackMap locals:
StackMap stack: int
14: istore 8
start local 8 15: aload 7
invokevirtual java.lang.ProcessBuilder.redirectOutput:()Ljava/lang/ProcessBuilder$Redirect;
getstatic java.lang.ProcessBuilder$Redirect.PIPE:Ljava/lang/ProcessBuilder$Redirect;
if_acmpne 16
iconst_1
goto 17
StackMap locals: int
StackMap stack:
16: iconst_0
StackMap locals:
StackMap stack: int
17: istore 9
start local 9 18: aload 7
invokevirtual java.lang.ProcessBuilder.redirectError:()Ljava/lang/ProcessBuilder$Redirect;
getstatic java.lang.ProcessBuilder$Redirect.PIPE:Ljava/lang/ProcessBuilder$Redirect;
if_acmpne 19
iconst_1
goto 20
StackMap locals: int
StackMap stack:
19: iconst_0
StackMap locals:
StackMap stack: int
20: istore 10
start local 10 21: aload 0
ldc "JJS_INHERIT_IO"
invokevirtual jdk.nashorn.internal.runtime.CommandExecutor.envVarBooleanValue:(Ljava/lang/String;)Z
istore 11
start local 11 22: iload 8
ifeq 25
iload 11
ifne 23
aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.inputStream:Ljava/io/InputStream;
getstatic java.lang.System.in:Ljava/io/InputStream;
if_acmpne 25
23: StackMap locals: int int
StackMap stack:
aload 6
getstatic java.lang.ProcessBuilder$Redirect.INHERIT:Ljava/lang/ProcessBuilder$Redirect;
invokevirtual java.lang.ProcessBuilder.redirectInput:(Ljava/lang/ProcessBuilder$Redirect;)Ljava/lang/ProcessBuilder;
pop
24: iconst_0
istore 8
25: StackMap locals:
StackMap stack:
iload 9
ifeq 28
iload 11
ifne 26
aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.outputStream:Ljava/io/OutputStream;
getstatic java.lang.System.out:Ljava/io/PrintStream;
if_acmpne 28
26: StackMap locals:
StackMap stack:
aload 7
getstatic java.lang.ProcessBuilder$Redirect.INHERIT:Ljava/lang/ProcessBuilder$Redirect;
invokevirtual java.lang.ProcessBuilder.redirectOutput:(Ljava/lang/ProcessBuilder$Redirect;)Ljava/lang/ProcessBuilder;
pop
27: iconst_0
istore 9
28: StackMap locals:
StackMap stack:
iload 10
ifeq 31
iload 11
ifne 29
aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.errorStream:Ljava/io/OutputStream;
getstatic java.lang.System.err:Ljava/io/PrintStream;
if_acmpne 31
29: StackMap locals:
StackMap stack:
aload 7
getstatic java.lang.ProcessBuilder$Redirect.INHERIT:Ljava/lang/ProcessBuilder$Redirect;
invokevirtual java.lang.ProcessBuilder.redirectError:(Ljava/lang/ProcessBuilder$Redirect;)Ljava/lang/ProcessBuilder;
pop
30: iconst_0
istore 10
31: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 12
start local 12 32: aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.processBuilders:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 14
goto 39
StackMap locals: jdk.nashorn.internal.runtime.CommandExecutor java.util.List int java.lang.String jdk.nashorn.internal.runtime.CommandExecutor$RedirectInfo java.util.List java.lang.ProcessBuilder java.lang.ProcessBuilder int int int int java.util.List top java.util.Iterator
StackMap stack:
33: aload 14
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.ProcessBuilder
astore 13
start local 13 34: aload 12
aload 13
invokevirtual java.lang.ProcessBuilder.start:()Ljava/lang/Process;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
35: goto 39
StackMap locals: jdk.nashorn.internal.runtime.CommandExecutor java.util.List int java.lang.String jdk.nashorn.internal.runtime.CommandExecutor$RedirectInfo java.util.List java.lang.ProcessBuilder java.lang.ProcessBuilder int int int int java.util.List java.lang.ProcessBuilder java.util.Iterator
StackMap stack: java.io.IOException
36: pop
37: aload 0
ldc "unknown.command"
ldc " "
aload 13
invokevirtual java.lang.ProcessBuilder.command:()Ljava/util/List;
invokestatic java.lang.String.join:(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Ljava/lang/String;
invokevirtual jdk.nashorn.internal.runtime.CommandExecutor.reportError:(Ljava/lang/String;Ljava/lang/String;)V
38: return
end local 13 39: StackMap locals: jdk.nashorn.internal.runtime.CommandExecutor java.util.List int java.lang.String jdk.nashorn.internal.runtime.CommandExecutor$RedirectInfo java.util.List java.lang.ProcessBuilder java.lang.ProcessBuilder int int int int java.util.List top java.util.Iterator
StackMap stack:
aload 14
invokeinterface java.util.Iterator.hasNext:()Z
ifne 33
40: aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.processBuilders:Ljava/util/List;
invokeinterface java.util.List.clear:()V
41: aload 12
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.Process
astore 13
start local 13 42: aload 12
aload 12
invokeinterface java.util.List.size:()I
iconst_1
isub
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.Process
astore 14
start local 14 43: aconst_null
astore 15
start local 15 44: aconst_null
astore 16
start local 16 45: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 17
start local 17 46: iload 8
ifeq 51
47: aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.inputStream:Ljava/io/InputStream;
ifnull 50
48: aload 17
new jdk.nashorn.internal.runtime.CommandExecutor$Piper
dup
aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.inputStream:Ljava/io/InputStream;
aload 13
invokevirtual java.lang.Process.getOutputStream:()Ljava/io/OutputStream;
invokespecial jdk.nashorn.internal.runtime.CommandExecutor$Piper.<init>:(Ljava/io/InputStream;Ljava/io/OutputStream;)V
invokevirtual jdk.nashorn.internal.runtime.CommandExecutor$Piper.start:()Ljdk/nashorn/internal/runtime/CommandExecutor$Piper;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
49: goto 51
50: StackMap locals: jdk.nashorn.internal.runtime.CommandExecutor java.util.List int java.lang.String jdk.nashorn.internal.runtime.CommandExecutor$RedirectInfo java.util.List java.lang.ProcessBuilder java.lang.ProcessBuilder int int int int java.util.List java.lang.Process java.lang.Process java.io.ByteArrayOutputStream java.io.ByteArrayOutputStream java.util.List
StackMap stack:
aload 17
new jdk.nashorn.internal.runtime.CommandExecutor$Piper
dup
new java.io.ByteArrayInputStream
dup
aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.inputString:Ljava/lang/String;
invokevirtual java.lang.String.getBytes:()[B
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
aload 13
invokevirtual java.lang.Process.getOutputStream:()Ljava/io/OutputStream;
invokespecial jdk.nashorn.internal.runtime.CommandExecutor$Piper.<init>:(Ljava/io/InputStream;Ljava/io/OutputStream;)V
invokevirtual jdk.nashorn.internal.runtime.CommandExecutor$Piper.start:()Ljdk/nashorn/internal/runtime/CommandExecutor$Piper;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
51: StackMap locals:
StackMap stack:
iload 9
ifeq 57
52: aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.outputStream:Ljava/io/OutputStream;
ifnull 55
53: aload 17
new jdk.nashorn.internal.runtime.CommandExecutor$Piper
dup
aload 14
invokevirtual java.lang.Process.getInputStream:()Ljava/io/InputStream;
aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.outputStream:Ljava/io/OutputStream;
invokespecial jdk.nashorn.internal.runtime.CommandExecutor$Piper.<init>:(Ljava/io/InputStream;Ljava/io/OutputStream;)V
invokevirtual jdk.nashorn.internal.runtime.CommandExecutor$Piper.start:()Ljdk/nashorn/internal/runtime/CommandExecutor$Piper;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
54: goto 57
55: StackMap locals:
StackMap stack:
new java.io.ByteArrayOutputStream
dup
sipush 1024
invokespecial java.io.ByteArrayOutputStream.<init>:(I)V
astore 15
56: aload 17
new jdk.nashorn.internal.runtime.CommandExecutor$Piper
dup
aload 14
invokevirtual java.lang.Process.getInputStream:()Ljava/io/InputStream;
aload 15
invokespecial jdk.nashorn.internal.runtime.CommandExecutor$Piper.<init>:(Ljava/io/InputStream;Ljava/io/OutputStream;)V
invokevirtual jdk.nashorn.internal.runtime.CommandExecutor$Piper.start:()Ljdk/nashorn/internal/runtime/CommandExecutor$Piper;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
57: StackMap locals:
StackMap stack:
iload 10
ifeq 63
58: aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.errorStream:Ljava/io/OutputStream;
ifnull 61
59: aload 17
new jdk.nashorn.internal.runtime.CommandExecutor$Piper
dup
aload 14
invokevirtual java.lang.Process.getErrorStream:()Ljava/io/InputStream;
aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.errorStream:Ljava/io/OutputStream;
invokespecial jdk.nashorn.internal.runtime.CommandExecutor$Piper.<init>:(Ljava/io/InputStream;Ljava/io/OutputStream;)V
invokevirtual jdk.nashorn.internal.runtime.CommandExecutor$Piper.start:()Ljdk/nashorn/internal/runtime/CommandExecutor$Piper;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
60: goto 63
61: StackMap locals:
StackMap stack:
new java.io.ByteArrayOutputStream
dup
sipush 1024
invokespecial java.io.ByteArrayOutputStream.<init>:(I)V
astore 16
62: aload 17
new jdk.nashorn.internal.runtime.CommandExecutor$Piper
dup
aload 14
invokevirtual java.lang.Process.getErrorStream:()Ljava/io/InputStream;
aload 16
invokespecial jdk.nashorn.internal.runtime.CommandExecutor$Piper.<init>:(Ljava/io/InputStream;Ljava/io/OutputStream;)V
invokevirtual jdk.nashorn.internal.runtime.CommandExecutor$Piper.start:()Ljdk/nashorn/internal/runtime/CommandExecutor$Piper;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
63: StackMap locals:
StackMap stack:
iconst_0
istore 18
start local 18 64: aload 12
invokeinterface java.util.List.size:()I
iconst_1
isub
istore 19
start local 19 65: goto 70
66: StackMap locals: int int
StackMap stack:
aload 12
iload 18
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.Process
astore 20
start local 20 67: aload 12
iload 18
iconst_1
iadd
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.Process
astore 21
start local 21 68: aload 17
new jdk.nashorn.internal.runtime.CommandExecutor$Piper
dup
aload 20
invokevirtual java.lang.Process.getInputStream:()Ljava/io/InputStream;
aload 21
invokevirtual java.lang.Process.getOutputStream:()Ljava/io/OutputStream;
invokespecial jdk.nashorn.internal.runtime.CommandExecutor$Piper.<init>:(Ljava/io/InputStream;Ljava/io/OutputStream;)V
invokevirtual jdk.nashorn.internal.runtime.CommandExecutor$Piper.start:()Ljdk/nashorn/internal/runtime/CommandExecutor$Piper;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 21 end local 20 69: iinc 18 1
StackMap locals:
StackMap stack:
70: iload 18
iload 19
if_icmplt 66
end local 19 end local 18 71: aload 0
ldc "JJS_TIMEOUT"
invokevirtual jdk.nashorn.internal.runtime.CommandExecutor.envVarLongValue:(Ljava/lang/String;)J
lstore 18
start local 18 72: lload 18
lconst_0
lcmp
ifeq 78
73: aload 14
lload 18
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual java.lang.Process.waitFor:(JLjava/util/concurrent/TimeUnit;)Z
ifeq 76
74: aload 0
aload 14
invokevirtual java.lang.Process.exitValue:()I
putfield jdk.nashorn.internal.runtime.CommandExecutor.exitCode:I
75: goto 79
76: StackMap locals: jdk.nashorn.internal.runtime.CommandExecutor java.util.List int java.lang.String jdk.nashorn.internal.runtime.CommandExecutor$RedirectInfo java.util.List java.lang.ProcessBuilder java.lang.ProcessBuilder int int int int java.util.List java.lang.Process java.lang.Process java.io.ByteArrayOutputStream java.io.ByteArrayOutputStream java.util.List long
StackMap stack:
aload 0
ldc "timeout"
lload 18
invokestatic java.lang.Long.toString:(J)Ljava/lang/String;
invokevirtual jdk.nashorn.internal.runtime.CommandExecutor.reportError:(Ljava/lang/String;Ljava/lang/String;)V
77: goto 79
78: StackMap locals:
StackMap stack:
aload 0
aload 14
invokevirtual java.lang.Process.waitFor:()I
putfield jdk.nashorn.internal.runtime.CommandExecutor.exitCode:I
79: StackMap locals:
StackMap stack:
aload 17
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 21
goto 82
StackMap locals: jdk.nashorn.internal.runtime.CommandExecutor java.util.List int java.lang.String jdk.nashorn.internal.runtime.CommandExecutor$RedirectInfo java.util.List java.lang.ProcessBuilder java.lang.ProcessBuilder int int int int java.util.List java.lang.Process java.lang.Process java.io.ByteArrayOutputStream java.io.ByteArrayOutputStream java.util.List long top java.util.Iterator
StackMap stack:
80: aload 21
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.nashorn.internal.runtime.CommandExecutor$Piper
astore 20
start local 20 81: aload 20
invokevirtual jdk.nashorn.internal.runtime.CommandExecutor$Piper.join:()V
end local 20 82: StackMap locals:
StackMap stack:
aload 21
invokeinterface java.util.Iterator.hasNext:()Z
ifne 80
83: aload 0
dup
getfield jdk.nashorn.internal.runtime.CommandExecutor.outputString:Ljava/lang/String;
new java.lang.StringBuilder
dup_x1
swap
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 15
ifnull 84
aload 15
invokevirtual java.io.ByteArrayOutputStream.toString:()Ljava/lang/String;
goto 85
StackMap locals: jdk.nashorn.internal.runtime.CommandExecutor java.util.List int java.lang.String jdk.nashorn.internal.runtime.CommandExecutor$RedirectInfo java.util.List java.lang.ProcessBuilder java.lang.ProcessBuilder int int int int java.util.List java.lang.Process java.lang.Process java.io.ByteArrayOutputStream java.io.ByteArrayOutputStream java.util.List long
StackMap stack: jdk.nashorn.internal.runtime.CommandExecutor java.lang.StringBuilder
84: ldc ""
StackMap locals: jdk.nashorn.internal.runtime.CommandExecutor java.util.List int java.lang.String jdk.nashorn.internal.runtime.CommandExecutor$RedirectInfo java.util.List java.lang.ProcessBuilder java.lang.ProcessBuilder int int int int java.util.List java.lang.Process java.lang.Process java.io.ByteArrayOutputStream java.io.ByteArrayOutputStream java.util.List long
StackMap stack: jdk.nashorn.internal.runtime.CommandExecutor java.lang.StringBuilder java.lang.String
85: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield jdk.nashorn.internal.runtime.CommandExecutor.outputString:Ljava/lang/String;
86: aload 0
dup
getfield jdk.nashorn.internal.runtime.CommandExecutor.errorString:Ljava/lang/String;
new java.lang.StringBuilder
dup_x1
swap
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 16
ifnull 87
aload 16
invokevirtual java.io.ByteArrayOutputStream.toString:()Ljava/lang/String;
goto 88
StackMap locals: jdk.nashorn.internal.runtime.CommandExecutor java.util.List int java.lang.String jdk.nashorn.internal.runtime.CommandExecutor$RedirectInfo java.util.List java.lang.ProcessBuilder java.lang.ProcessBuilder int int int int java.util.List java.lang.Process java.lang.Process java.io.ByteArrayOutputStream java.io.ByteArrayOutputStream java.util.List long
StackMap stack: jdk.nashorn.internal.runtime.CommandExecutor java.lang.StringBuilder
87: ldc ""
StackMap locals: jdk.nashorn.internal.runtime.CommandExecutor java.util.List int java.lang.String jdk.nashorn.internal.runtime.CommandExecutor$RedirectInfo java.util.List java.lang.ProcessBuilder java.lang.ProcessBuilder int int int int java.util.List java.lang.Process java.lang.Process java.io.ByteArrayOutputStream java.io.ByteArrayOutputStream java.util.List long
StackMap stack: jdk.nashorn.internal.runtime.CommandExecutor java.lang.StringBuilder java.lang.String
88: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield jdk.nashorn.internal.runtime.CommandExecutor.errorString:Ljava/lang/String;
end local 18 89: goto 92
StackMap locals: jdk.nashorn.internal.runtime.CommandExecutor java.util.List int java.lang.String jdk.nashorn.internal.runtime.CommandExecutor$RedirectInfo java.util.List java.lang.ProcessBuilder java.lang.ProcessBuilder int int int int java.util.List java.lang.Process java.lang.Process java.io.ByteArrayOutputStream java.io.ByteArrayOutputStream java.util.List
StackMap stack: java.lang.InterruptedException
90: pop
91: aload 12
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
aload 0
invokedynamic accept(Ljdk/nashorn/internal/runtime/CommandExecutor;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
jdk/nashorn/internal/runtime/CommandExecutor.lambda$2(Ljava/lang/Process;)V (7)
(Ljava/lang/Process;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
92: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.exitCode:I
ifeq 94
aload 0
ldc "JJS_THROW_ON_EXIT"
invokevirtual jdk.nashorn.internal.runtime.CommandExecutor.envVarBooleanValue:(Ljava/lang/String;)Z
ifeq 94
93: ldc "exec.returned.non.zero"
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.exitCode:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokestatic jdk.nashorn.internal.runtime.ScriptRuntime.safeToString:(Ljava/lang/Object;)Ljava/lang/String;
aastore
invokestatic jdk.nashorn.internal.runtime.ECMAErrors.rangeError:(Ljava/lang/String;[Ljava/lang/String;)Ljdk/nashorn/internal/runtime/ECMAException;
athrow
94: StackMap locals:
StackMap stack:
return
end local 17 end local 16 end local 15 end local 14 end local 13 end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 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 95 0 this Ljdk/nashorn/internal/runtime/CommandExecutor;
0 95 1 tokens Ljava/util/List<Ljava/lang/String;>;
0 95 2 isPiped Z
3 95 3 cwd Ljava/lang/String;
4 95 4 redirectInfo Ljdk/nashorn/internal/runtime/CommandExecutor$RedirectInfo;
5 95 5 command Ljava/util/List<Ljava/lang/String;>;
11 95 6 firstProcessBuilder Ljava/lang/ProcessBuilder;
12 95 7 lastProcessBuilder Ljava/lang/ProcessBuilder;
15 95 8 inputIsPipe Z
18 95 9 outputIsPipe Z
21 95 10 errorIsPipe Z
22 95 11 inheritIO Z
32 95 12 processes Ljava/util/List<Ljava/lang/Process;>;
34 39 13 pb Ljava/lang/ProcessBuilder;
42 95 13 firstProcess Ljava/lang/Process;
43 95 14 lastProcess Ljava/lang/Process;
44 95 15 byteOutputStream Ljava/io/ByteArrayOutputStream;
45 95 16 byteErrorStream Ljava/io/ByteArrayOutputStream;
46 95 17 piperThreads Ljava/util/List<Ljdk/nashorn/internal/runtime/CommandExecutor$Piper;>;
64 71 18 i I
65 71 19 n I
67 69 20 prev Ljava/lang/Process;
68 69 21 next Ljava/lang/Process;
72 89 18 timeout J
81 82 20 piper Ljdk/nashorn/internal/runtime/CommandExecutor$Piper;
Exception table:
from to target type
34 35 36 Class java.io.IOException
71 89 90 Class java.lang.InterruptedException
Signature: (Ljava/util/List<Ljava/lang/String;>;Z)V
MethodParameters:
Name Flags
tokens final
isPiped final
private static java.io.StreamTokenizer createTokenizer(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/io/StreamTokenizer;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: new java.io.StreamTokenizer
dup
new java.io.StringReader
dup
aload 0
invokespecial java.io.StringReader.<init>:(Ljava/lang/String;)V
invokespecial java.io.StreamTokenizer.<init>:(Ljava/io/Reader;)V
astore 1
start local 1 1: aload 1
invokevirtual java.io.StreamTokenizer.resetSyntax:()V
2: aload 1
iconst_0
sipush 255
invokevirtual java.io.StreamTokenizer.wordChars:(II)V
3: aload 1
iconst_0
bipush 32
invokevirtual java.io.StreamTokenizer.whitespaceChars:(II)V
4: aload 1
bipush 35
invokevirtual java.io.StreamTokenizer.commentChar:(I)V
5: aload 1
bipush 34
invokevirtual java.io.StreamTokenizer.quoteChar:(I)V
6: aload 1
bipush 39
invokevirtual java.io.StreamTokenizer.quoteChar:(I)V
7: aload 1
iconst_1
invokevirtual java.io.StreamTokenizer.eolIsSignificant:(Z)V
8: aload 1
bipush 59
invokevirtual java.io.StreamTokenizer.ordinaryChar:(I)V
9: aload 1
bipush 124
invokevirtual java.io.StreamTokenizer.ordinaryChar:(I)V
10: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 script Ljava/lang/String;
1 11 1 tokenizer Ljava/io/StreamTokenizer;
MethodParameters:
Name Flags
script final
void process(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokestatic jdk.nashorn.internal.runtime.CommandExecutor.createTokenizer:(Ljava/lang/String;)Ljava/io/StreamTokenizer;
astore 2
start local 2 1: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 3
start local 3 2: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 4
start local 4 3: goto 30
4: StackMap locals: java.io.StreamTokenizer java.util.List java.lang.StringBuilder
StackMap stack:
aload 2
getfield java.io.StreamTokenizer.sval:Ljava/lang/String;
astore 5
start local 5 5: aload 5
ifnonnull 16
6: aload 4
invokevirtual java.lang.StringBuilder.length:()I
ifeq 9
7: aload 3
aload 4
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
8: aload 4
iconst_0
invokevirtual java.lang.StringBuilder.setLength:(I)V
9: StackMap locals: java.lang.String
StackMap stack:
aload 0
aload 3
aload 2
getfield java.io.StreamTokenizer.ttype:I
bipush 124
if_icmpne 10
iconst_1
goto 11
StackMap locals: jdk.nashorn.internal.runtime.CommandExecutor java.lang.String java.io.StreamTokenizer java.util.List java.lang.StringBuilder java.lang.String
StackMap stack: jdk.nashorn.internal.runtime.CommandExecutor java.util.List
10: iconst_0
StackMap locals: jdk.nashorn.internal.runtime.CommandExecutor java.lang.String java.io.StreamTokenizer java.util.List java.lang.StringBuilder java.lang.String
StackMap stack: jdk.nashorn.internal.runtime.CommandExecutor java.util.List int
11: invokevirtual jdk.nashorn.internal.runtime.CommandExecutor.command:(Ljava/util/List;Z)V
12: aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.exitCode:I
ifeq 14
13: return
14: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.List.clear:()V
15: goto 30
StackMap locals:
StackMap stack:
16: aload 5
ldc "\\"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 19
17: aload 4
aload 5
iconst_0
aload 5
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 32
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
18: goto 30
StackMap locals:
StackMap stack:
19: aload 4
invokevirtual java.lang.StringBuilder.length:()I
ifne 28
20: aload 2
getfield java.io.StreamTokenizer.ttype:I
bipush -3
if_icmpeq 26
21: aload 4
aload 2
getfield java.io.StreamTokenizer.ttype:I
i2c
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
22: aload 4
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
23: aload 4
aload 2
getfield java.io.StreamTokenizer.ttype:I
i2c
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
24: aload 4
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 5
25: aload 4
iconst_0
invokevirtual java.lang.StringBuilder.setLength:(I)V
26: StackMap locals:
StackMap stack:
aload 3
aload 5
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
27: goto 30
28: StackMap locals:
StackMap stack:
aload 3
aload 4
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
29: aload 4
iconst_0
invokevirtual java.lang.StringBuilder.setLength:(I)V
end local 5 30: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.io.StreamTokenizer.nextToken:()I
iconst_m1
if_icmpne 4
31: goto 33
StackMap locals:
StackMap stack: java.io.IOException
32: pop
33: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.lang.StringBuilder.length:()I
ifeq 35
34: aload 3
aload 4
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
35: StackMap locals:
StackMap stack:
aload 0
aload 3
iconst_0
invokevirtual jdk.nashorn.internal.runtime.CommandExecutor.command:(Ljava/util/List;Z)V
36: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 37 0 this Ljdk/nashorn/internal/runtime/CommandExecutor;
0 37 1 script Ljava/lang/String;
1 37 2 tokenizer Ljava/io/StreamTokenizer;
2 37 3 command Ljava/util/List<Ljava/lang/String;>;
3 37 4 sb Ljava/lang/StringBuilder;
5 30 5 token Ljava/lang/String;
Exception table:
from to target type
3 13 32 Class java.io.IOException
14 31 32 Class java.io.IOException
MethodParameters:
Name Flags
script final
void process(java.util.List<java.lang.String>);
descriptor: (Ljava/util/List;)V
flags: (0x0000)
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 1: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
start local 3 2: goto 16
3: StackMap locals: java.util.List java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 4: aload 4
ifnonnull 6
5: goto 16
6: StackMap locals: java.lang.String
StackMap stack:
aload 4
dup
astore 5
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 2
59: 7
124: 8
default: 15
}
StackMap locals: java.lang.String
StackMap stack:
7: aload 5
ldc ";"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 12
goto 15
StackMap locals:
StackMap stack:
8: aload 5
ldc "|"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 9
goto 15
9: StackMap locals:
StackMap stack:
aload 0
aload 2
iconst_1
invokevirtual jdk.nashorn.internal.runtime.CommandExecutor.command:(Ljava/util/List;Z)V
10: aload 2
invokeinterface java.util.List.clear:()V
11: goto 16
12: StackMap locals:
StackMap stack:
aload 0
aload 2
iconst_0
invokevirtual jdk.nashorn.internal.runtime.CommandExecutor.command:(Ljava/util/List;Z)V
13: aload 2
invokeinterface java.util.List.clear:()V
14: goto 16
15: StackMap locals:
StackMap stack:
aload 2
aload 4
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 16: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 17
aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.exitCode:I
ifeq 3
17: StackMap locals:
StackMap stack:
aload 0
aload 2
iconst_0
invokevirtual jdk.nashorn.internal.runtime.CommandExecutor.command:(Ljava/util/List;Z)V
18: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Ljdk/nashorn/internal/runtime/CommandExecutor;
0 19 1 tokens Ljava/util/List<Ljava/lang/String;>;
1 19 2 command Ljava/util/List<Ljava/lang/String;>;
2 19 3 iterator Ljava/util/Iterator<Ljava/lang/String;>;
4 16 4 token Ljava/lang/String;
Signature: (Ljava/util/List<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
tokens final
void reportError(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=7, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
dup
getfield jdk.nashorn.internal.runtime.CommandExecutor.errorString:Ljava/lang/String;
new java.lang.StringBuilder
dup_x1
swap
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
new java.lang.StringBuilder
dup
ldc "range.error.exec."
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;
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 2
aastore
invokestatic jdk.nashorn.internal.runtime.ECMAErrors.getMessage:(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;
putfield jdk.nashorn.internal.runtime.CommandExecutor.errorString:Ljava/lang/String;
1: aload 0
iconst_1
putfield jdk.nashorn.internal.runtime.CommandExecutor.exitCode:I
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/nashorn/internal/runtime/CommandExecutor;
0 3 1 msg Ljava/lang/String;
0 3 2 object Ljava/lang/String;
MethodParameters:
Name Flags
msg final
object final
java.lang.String getOutputString();
descriptor: ()Ljava/lang/String;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.outputString:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/runtime/CommandExecutor;
java.lang.String getErrorString();
descriptor: ()Ljava/lang/String;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.errorString:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/runtime/CommandExecutor;
int getExitCode();
descriptor: ()I
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.exitCode:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/runtime/CommandExecutor;
void setEnvironment(java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljava/util/Map;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield jdk.nashorn.internal.runtime.CommandExecutor.environment:Ljava/util/Map;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/runtime/CommandExecutor;
0 2 1 environment Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)V
MethodParameters:
Name Flags
environment final
void setInputStream(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield jdk.nashorn.internal.runtime.CommandExecutor.inputStream:Ljava/io/InputStream;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/runtime/CommandExecutor;
0 2 1 inputStream Ljava/io/InputStream;
MethodParameters:
Name Flags
inputStream final
void setInputString(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield jdk.nashorn.internal.runtime.CommandExecutor.inputString:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/runtime/CommandExecutor;
0 2 1 inputString Ljava/lang/String;
MethodParameters:
Name Flags
inputString final
void setOutputStream(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield jdk.nashorn.internal.runtime.CommandExecutor.outputStream:Ljava/io/OutputStream;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/runtime/CommandExecutor;
0 2 1 outputStream Ljava/io/OutputStream;
MethodParameters:
Name Flags
outputStream final
void setErrorStream(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield jdk.nashorn.internal.runtime.CommandExecutor.errorStream:Ljava/io/OutputStream;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/runtime/CommandExecutor;
0 2 1 errorStream Ljava/io/OutputStream;
MethodParameters:
Name Flags
errorStream final
private static java.lang.Boolean lambda$0();
descriptor: ()Ljava/lang/Boolean;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=0, args_size=0
0: ldc "os.name"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
ldc "Windows"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.String lambda$1();
descriptor: ()Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=0, args_size=0
0: ldc "user.home"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
private void lambda$2(java.lang.Process);
descriptor: (Ljava/lang/Process;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.Process.isAlive:()Z
ifeq 2
1: aload 1
invokevirtual java.lang.Process.destroy:()V
2: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.exitCode:I
ifne 3
aload 1
invokevirtual java.lang.Process.exitValue:()I
goto 4
StackMap locals:
StackMap stack: jdk.nashorn.internal.runtime.CommandExecutor
3: aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor.exitCode:I
StackMap locals: jdk.nashorn.internal.runtime.CommandExecutor java.lang.Process
StackMap stack: jdk.nashorn.internal.runtime.CommandExecutor int
4: putfield jdk.nashorn.internal.runtime.CommandExecutor.exitCode:I
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/nashorn/internal/runtime/CommandExecutor;
0 6 1 p Ljava/lang/Process;
}
SourceFile: "CommandExecutor.java"
NestMembers:
jdk.nashorn.internal.runtime.CommandExecutor$Piper jdk.nashorn.internal.runtime.CommandExecutor$RedirectInfo jdk.nashorn.internal.runtime.CommandExecutor$RedirectType
InnerClasses:
public abstract Redirect = java.lang.ProcessBuilder$Redirect of java.lang.ProcessBuilder
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
private Piper = jdk.nashorn.internal.runtime.CommandExecutor$Piper of jdk.nashorn.internal.runtime.CommandExecutor
private RedirectInfo = jdk.nashorn.internal.runtime.CommandExecutor$RedirectInfo of jdk.nashorn.internal.runtime.CommandExecutor
final RedirectType = jdk.nashorn.internal.runtime.CommandExecutor$RedirectType of jdk.nashorn.internal.runtime.CommandExecutor