public final class jdk.jpackage.internal.Executor
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.jpackage.internal.Executor
super_class: java.lang.Object
{
public static final int INFINITE_TIMEOUT;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: -1
private java.lang.ProcessBuilder pb;
descriptor: Ljava/lang/ProcessBuilder;
flags: (0x0002) ACC_PRIVATE
private boolean saveOutput;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean writeOutputToFile;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean quietCommand;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private long timeout;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private java.util.List<java.lang.String> output;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Ljava/lang/String;>;
private java.util.function.Consumer<java.util.stream.Stream<java.lang.String>> outputConsumer;
descriptor: Ljava/util/function/Consumer;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/function/Consumer<Ljava/util/stream/Stream<Ljava/lang/String;>;>;
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
ldc -1
putfield jdk.jpackage.internal.Executor.timeout:J
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jpackage/internal/Executor;
jdk.jpackage.internal.Executor setOutputConsumer(java.util.function.Consumer<java.util.stream.Stream<java.lang.String>>);
descriptor: (Ljava/util/function/Consumer;)Ljdk/jpackage/internal/Executor;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield jdk.jpackage.internal.Executor.outputConsumer:Ljava/util/function/Consumer;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jpackage/internal/Executor;
0 2 1 v Ljava/util/function/Consumer<Ljava/util/stream/Stream<Ljava/lang/String;>;>;
Signature: (Ljava/util/function/Consumer<Ljava/util/stream/Stream<Ljava/lang/String;>;>;)Ljdk/jpackage/internal/Executor;
MethodParameters:
Name Flags
v
jdk.jpackage.internal.Executor saveOutput(boolean);
descriptor: (Z)Ljdk/jpackage/internal/Executor;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield jdk.jpackage.internal.Executor.saveOutput:Z
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jpackage/internal/Executor;
0 2 1 v Z
MethodParameters:
Name Flags
v
jdk.jpackage.internal.Executor setWriteOutputToFile(boolean);
descriptor: (Z)Ljdk/jpackage/internal/Executor;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield jdk.jpackage.internal.Executor.writeOutputToFile:Z
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jpackage/internal/Executor;
0 2 1 v Z
MethodParameters:
Name Flags
v
jdk.jpackage.internal.Executor setTimeout(long);
descriptor: (J)Ljdk/jpackage/internal/Executor;
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
lload 1
putfield jdk.jpackage.internal.Executor.timeout:J
1: aload 0
getfield jdk.jpackage.internal.Executor.timeout:J
ldc -1
lcmp
ifeq 3
2: aload 0
iconst_1
invokevirtual jdk.jpackage.internal.Executor.setWriteOutputToFile:(Z)Ljdk/jpackage/internal/Executor;
pop
3: StackMap locals:
StackMap stack:
aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/jpackage/internal/Executor;
0 4 1 v J
MethodParameters:
Name Flags
v
jdk.jpackage.internal.Executor setProcessBuilder(java.lang.ProcessBuilder);
descriptor: (Ljava/lang/ProcessBuilder;)Ljdk/jpackage/internal/Executor;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield jdk.jpackage.internal.Executor.pb:Ljava/lang/ProcessBuilder;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jpackage/internal/Executor;
0 2 1 v Ljava/lang/ProcessBuilder;
MethodParameters:
Name Flags
v
jdk.jpackage.internal.Executor setCommandLine(java.lang.String[]);
descriptor: ([Ljava/lang/String;)Ljdk/jpackage/internal/Executor;
flags: (0x0080) ACC_VARARGS
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new java.lang.ProcessBuilder
dup
aload 1
invokespecial java.lang.ProcessBuilder.<init>:([Ljava/lang/String;)V
invokevirtual jdk.jpackage.internal.Executor.setProcessBuilder:(Ljava/lang/ProcessBuilder;)Ljdk/jpackage/internal/Executor;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jpackage/internal/Executor;
0 1 1 cmdline [Ljava/lang/String;
MethodParameters:
Name Flags
cmdline
jdk.jpackage.internal.Executor setQuiet(boolean);
descriptor: (Z)Ljdk/jpackage/internal/Executor;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield jdk.jpackage.internal.Executor.quietCommand:Z
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jpackage/internal/Executor;
0 2 1 v Z
MethodParameters:
Name Flags
v
java.util.List<java.lang.String> getOutput();
descriptor: ()Ljava/util/List;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jpackage.internal.Executor.output:Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jpackage/internal/Executor;
Signature: ()Ljava/util/List<Ljava/lang/String;>;
jdk.jpackage.internal.Executor executeExpectSuccess();
descriptor: ()Ljdk/jpackage/internal/Executor;
flags: (0x0000)
Code:
stack=8, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual jdk.jpackage.internal.Executor.execute:()I
istore 1
start local 1 1: iload 1
ifeq 7
2: new java.io.IOException
dup
3: ldc "Command %s exited with %d code"
iconst_2
anewarray java.lang.Object
dup
iconst_0
4: aload 0
getfield jdk.jpackage.internal.Executor.pb:Ljava/lang/ProcessBuilder;
iconst_0
invokestatic jdk.jpackage.internal.Executor.createLogMessage:(Ljava/lang/ProcessBuilder;Z)Ljava/lang/String;
aastore
dup
iconst_1
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
5: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
6: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: int
StackMap stack:
aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/jpackage/internal/Executor;
1 8 1 ret I
Exceptions:
throws java.io.IOException
int execute();
descriptor: ()I
flags: (0x0000)
Code:
stack=6, locals=10, args_size=1
start local 0 0: aload 0
aconst_null
putfield jdk.jpackage.internal.Executor.output:Ljava/util/List;
1: aload 0
getfield jdk.jpackage.internal.Executor.outputConsumer:Ljava/util/function/Consumer;
ifnonnull 2
invokestatic jdk.jpackage.internal.Log.isVerbose:()Z
ifne 2
aload 0
getfield jdk.jpackage.internal.Executor.saveOutput:Z
ifne 2
iconst_0
goto 3
StackMap locals:
StackMap stack:
2: iconst_1
StackMap locals:
StackMap stack: int
3: istore 1
start local 1 4: aconst_null
astore 2
start local 2 5: iload 1
ifeq 11
6: aload 0
getfield jdk.jpackage.internal.Executor.pb:Ljava/lang/ProcessBuilder;
iconst_1
invokevirtual java.lang.ProcessBuilder.redirectErrorStream:(Z)Ljava/lang/ProcessBuilder;
pop
7: aload 0
getfield jdk.jpackage.internal.Executor.writeOutputToFile:Z
ifeq 13
8: ldc "jpackageOutputTempFile"
ldc ".tmp"
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createTempFile:(Ljava/lang/String;Ljava/lang/String;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
astore 2
9: aload 0
getfield jdk.jpackage.internal.Executor.pb:Ljava/lang/ProcessBuilder;
aload 2
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokevirtual java.lang.ProcessBuilder.redirectOutput:(Ljava/io/File;)Ljava/lang/ProcessBuilder;
pop
10: goto 13
11: StackMap locals: int java.nio.file.Path
StackMap stack:
aload 0
getfield jdk.jpackage.internal.Executor.pb:Ljava/lang/ProcessBuilder;
getstatic java.lang.ProcessBuilder$Redirect.DISCARD:Ljava/lang/ProcessBuilder$Redirect;
invokevirtual java.lang.ProcessBuilder.redirectError:(Ljava/lang/ProcessBuilder$Redirect;)Ljava/lang/ProcessBuilder;
pop
12: aload 0
getfield jdk.jpackage.internal.Executor.pb:Ljava/lang/ProcessBuilder;
getstatic java.lang.ProcessBuilder$Redirect.DISCARD:Ljava/lang/ProcessBuilder$Redirect;
invokevirtual java.lang.ProcessBuilder.redirectOutput:(Ljava/lang/ProcessBuilder$Redirect;)Ljava/lang/ProcessBuilder;
pop
13: StackMap locals:
StackMap stack:
ldc "Running %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield jdk.jpackage.internal.Executor.pb:Ljava/lang/ProcessBuilder;
iconst_1
invokestatic jdk.jpackage.internal.Executor.createLogMessage:(Ljava/lang/ProcessBuilder;Z)Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/String;)V
14: aload 0
getfield jdk.jpackage.internal.Executor.pb:Ljava/lang/ProcessBuilder;
invokevirtual java.lang.ProcessBuilder.start:()Ljava/lang/Process;
astore 3
start local 3 15: iconst_0
istore 4
start local 4 16: aload 0
getfield jdk.jpackage.internal.Executor.writeOutputToFile:Z
ifeq 22
17: aload 0
aload 3
invokevirtual jdk.jpackage.internal.Executor.waitForProcess:(Ljava/lang/Process;)I
istore 4
18: goto 22
StackMap locals: jdk.jpackage.internal.Executor int java.nio.file.Path java.lang.Process int
StackMap stack: java.lang.InterruptedException
19: astore 5
start local 5 20: aload 5
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/Throwable;)V
21: new java.lang.RuntimeException
dup
aload 5
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 22: StackMap locals:
StackMap stack:
iload 1
ifeq 52
23: aload 0
getfield jdk.jpackage.internal.Executor.writeOutputToFile:Z
ifeq 31
24: aload 0
aload 2
invokestatic java.nio.file.Files.readAllLines:(Ljava/nio/file/Path;)Ljava/util/List;
dup
astore 5
start local 5 25: putfield jdk.jpackage.internal.Executor.output:Ljava/util/List;
26: aload 2
invokestatic java.nio.file.Files.delete:(Ljava/nio/file/Path;)V
27: aload 5
invokedynamic get(Ljava/util/List;)Ljava/util/function/Supplier;
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/jpackage/internal/Executor.lambda$0(Ljava/util/List;)Ljava/util/stream/Stream; (6)
()Ljava/util/stream/Stream;
astore 6
start local 6 28: aload 0
getfield jdk.jpackage.internal.Executor.outputConsumer:Ljava/util/function/Consumer;
ifnull 52
29: aload 0
getfield jdk.jpackage.internal.Executor.outputConsumer:Ljava/util/function/Consumer;
aload 6
invokeinterface java.util.function.Supplier.get:()Ljava/lang/Object;
checkcast java.util.stream.Stream
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
30: goto 52
end local 6 end local 5 31: StackMap locals:
StackMap stack:
aconst_null
astore 7
aconst_null
astore 8
32: new java.io.BufferedReader
dup
new java.io.InputStreamReader
dup
33: aload 3
invokevirtual java.lang.Process.getInputStream:()Ljava/io/InputStream;
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
34: invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 9
start local 9 35: aload 0
getfield jdk.jpackage.internal.Executor.outputConsumer:Ljava/util/function/Consumer;
ifnonnull 37
invokestatic jdk.jpackage.internal.Log.isVerbose:()Z
ifne 37
36: aload 0
getfield jdk.jpackage.internal.Executor.saveOutput:Z
ifeq 39
37: StackMap locals: jdk.jpackage.internal.Executor int java.nio.file.Path java.lang.Process int top top java.lang.Throwable java.lang.Throwable java.io.BufferedReader
StackMap stack:
aload 9
invokevirtual java.io.BufferedReader.lines:()Ljava/util/stream/Stream;
invokestatic java.util.stream.Collectors.toList:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.List
astore 5
start local 5 38: goto 40
end local 5 39: StackMap locals:
StackMap stack:
aconst_null
astore 5
start local 5 40: StackMap locals: jdk.jpackage.internal.Executor int java.nio.file.Path java.lang.Process int java.util.List top java.lang.Throwable java.lang.Throwable java.io.BufferedReader
StackMap stack:
aload 0
aload 5
putfield jdk.jpackage.internal.Executor.output:Ljava/util/List;
41: aload 5
aload 9
invokedynamic get(Ljava/util/List;Ljava/io/BufferedReader;)Ljava/util/function/Supplier;
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/jpackage/internal/Executor.lambda$1(Ljava/util/List;Ljava/io/BufferedReader;)Ljava/util/stream/Stream; (6)
()Ljava/util/stream/Stream;
astore 6
start local 6 42: aload 0
getfield jdk.jpackage.internal.Executor.outputConsumer:Ljava/util/function/Consumer;
ifnull 44
43: aload 0
getfield jdk.jpackage.internal.Executor.outputConsumer:Ljava/util/function/Consumer;
aload 6
invokeinterface java.util.function.Supplier.get:()Ljava/lang/Object;
checkcast java.util.stream.Stream
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
44: StackMap locals: jdk.jpackage.internal.Executor int java.nio.file.Path java.lang.Process int java.util.List java.util.function.Supplier java.lang.Throwable java.lang.Throwable java.io.BufferedReader
StackMap stack:
aload 5
ifnonnull 46
45: aload 9
invokevirtual java.io.BufferedReader.lines:()Ljava/util/stream/Stream;
invokedynamic accept()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/jpackage/internal/Executor.lambda$2(Ljava/lang/String;)V (6)
(Ljava/lang/String;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
46: StackMap locals:
StackMap stack:
aload 9
ifnull 52
aload 9
invokevirtual java.io.BufferedReader.close:()V
goto 52
end local 6 end local 5 StackMap locals: jdk.jpackage.internal.Executor int java.nio.file.Path java.lang.Process int top top java.lang.Throwable java.lang.Throwable java.io.BufferedReader
StackMap stack: java.lang.Throwable
47: astore 7
aload 9
ifnull 48
aload 9
invokevirtual java.io.BufferedReader.close:()V
end local 9 StackMap locals:
StackMap stack:
48: aload 7
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
49: astore 8
aload 7
ifnonnull 50
aload 8
astore 7
goto 51
StackMap locals:
StackMap stack:
50: aload 7
aload 8
if_acmpeq 51
aload 7
aload 8
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
51: aload 7
athrow
52: StackMap locals: jdk.jpackage.internal.Executor int java.nio.file.Path java.lang.Process int
StackMap stack:
aload 0
getfield jdk.jpackage.internal.Executor.writeOutputToFile:Z
ifne 54
53: aload 3
invokevirtual java.lang.Process.waitFor:()I
istore 4
54: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jpackage.internal.Executor.quietCommand:Z
ifne 56
55: aload 0
getfield jdk.jpackage.internal.Executor.pb:Ljava/lang/ProcessBuilder;
invokevirtual java.lang.ProcessBuilder.command:()Ljava/util/List;
aload 0
invokevirtual jdk.jpackage.internal.Executor.getOutput:()Ljava/util/List;
iload 4
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/util/List;Ljava/util/List;I)V
56: StackMap locals:
StackMap stack:
iload 4
57: ireturn
58: StackMap locals:
StackMap stack: java.lang.InterruptedException
astore 5
start local 5 59: aload 5
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/Throwable;)V
60: new java.lang.RuntimeException
dup
aload 5
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
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 61 0 this Ljdk/jpackage/internal/Executor;
4 61 1 needProcessOutput Z
5 61 2 outputFile Ljava/nio/file/Path;
15 61 3 p Ljava/lang/Process;
16 61 4 code I
20 22 5 ex Ljava/lang/InterruptedException;
25 31 5 savedOutput Ljava/util/List<Ljava/lang/String;>;
38 39 5 savedOutput Ljava/util/List<Ljava/lang/String;>;
40 47 5 savedOutput Ljava/util/List<Ljava/lang/String;>;
28 31 6 outputStream Ljava/util/function/Supplier<Ljava/util/stream/Stream<Ljava/lang/String;>;>;
42 47 6 outputStream Ljava/util/function/Supplier<Ljava/util/stream/Stream<Ljava/lang/String;>;>;
35 48 9 br Ljava/io/BufferedReader;
59 61 5 ex Ljava/lang/InterruptedException;
Exception table:
from to target type
17 18 19 Class java.lang.InterruptedException
35 46 47 any
32 49 49 any
52 57 58 Class java.lang.InterruptedException
Exceptions:
throws java.io.IOException
private int waitForProcess(java.lang.Process);
descriptor: (Ljava/lang/Process;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.jpackage.internal.Executor.timeout:J
ldc -1
lcmp
ifne 2
1: aload 1
invokevirtual java.lang.Process.waitFor:()I
ireturn
2: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield jdk.jpackage.internal.Executor.timeout:J
getstatic java.util.concurrent.TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual java.lang.Process.waitFor:(JLjava/util/concurrent/TimeUnit;)Z
ifeq 4
3: aload 1
invokevirtual java.lang.Process.exitValue:()I
ireturn
4: StackMap locals:
StackMap stack:
ldc "Command %s timeout after %d seconds"
iconst_2
anewarray java.lang.Object
dup
iconst_0
5: aload 0
getfield jdk.jpackage.internal.Executor.pb:Ljava/lang/ProcessBuilder;
iconst_0
invokestatic jdk.jpackage.internal.Executor.createLogMessage:(Ljava/lang/ProcessBuilder;Z)Ljava/lang/String;
aastore
dup
iconst_1
aload 0
getfield jdk.jpackage.internal.Executor.timeout:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
6: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/String;)V
7: aload 1
invokevirtual java.lang.Process.destroy:()V
8: iconst_m1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/jpackage/internal/Executor;
0 9 1 p Ljava/lang/Process;
Exceptions:
throws java.lang.InterruptedException
MethodParameters:
Name Flags
p
static jdk.jpackage.internal.Executor of(java.lang.String[]);
descriptor: ([Ljava/lang/String;)Ljdk/jpackage/internal/Executor;
flags: (0x0088) ACC_STATIC, ACC_VARARGS
Code:
stack=2, locals=1, args_size=1
start local 0 0: new jdk.jpackage.internal.Executor
dup
invokespecial jdk.jpackage.internal.Executor.<init>:()V
aload 0
invokevirtual jdk.jpackage.internal.Executor.setCommandLine:([Ljava/lang/String;)Ljdk/jpackage/internal/Executor;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 cmdline [Ljava/lang/String;
MethodParameters:
Name Flags
cmdline
static jdk.jpackage.internal.Executor of(java.lang.ProcessBuilder);
descriptor: (Ljava/lang/ProcessBuilder;)Ljdk/jpackage/internal/Executor;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new jdk.jpackage.internal.Executor
dup
invokespecial jdk.jpackage.internal.Executor.<init>:()V
aload 0
invokevirtual jdk.jpackage.internal.Executor.setProcessBuilder:(Ljava/lang/ProcessBuilder;)Ljdk/jpackage/internal/Executor;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 pb Ljava/lang/ProcessBuilder;
MethodParameters:
Name Flags
pb
private static java.lang.String createLogMessage(java.lang.ProcessBuilder, boolean);
descriptor: (Ljava/lang/ProcessBuilder;Z)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 1: aload 2
iload 1
ifeq 2
aload 0
invokevirtual java.lang.ProcessBuilder.command:()Ljava/util/List;
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
goto 3
StackMap locals: java.lang.ProcessBuilder int java.lang.StringBuilder
StackMap stack: java.lang.StringBuilder
2: aload 0
invokevirtual java.lang.ProcessBuilder.command:()Ljava/util/List;
StackMap locals: java.lang.ProcessBuilder int java.lang.StringBuilder
StackMap stack: java.lang.StringBuilder java.lang.Object
3: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
4: aload 0
invokevirtual java.lang.ProcessBuilder.directory:()Ljava/io/File;
ifnull 6
5: aload 2
ldc " in %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
invokevirtual java.lang.ProcessBuilder.directory:()Ljava/io/File;
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
6: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 pb Ljava/lang/ProcessBuilder;
0 7 1 quiet Z
1 7 2 sb Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
pb
quiet
private static java.util.stream.Stream lambda$0(java.util.List);
descriptor: (Ljava/util/List;)Ljava/util/stream/Stream;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
ifnull 2
1: aload 0
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
areturn
2: StackMap locals:
StackMap stack:
aconst_null
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.util.stream.Stream lambda$1(java.util.List, java.io.BufferedReader);
descriptor: (Ljava/util/List;Ljava/io/BufferedReader;)Ljava/util/stream/Stream;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=2, args_size=2
0: aload 0
ifnull 2
1: aload 0
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
areturn
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.io.BufferedReader.lines:()Ljava/util/stream/Stream;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static void lambda$2(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 x Ljava/lang/String;
}
SourceFile: "Executor.java"
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