public class jdk.jshell.execution.RemoteExecutionControl extends jdk.jshell.execution.DirectExecutionControl implements jdk.jshell.spi.ExecutionControl
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.jshell.execution.RemoteExecutionControl
super_class: jdk.jshell.execution.DirectExecutionControl
{
private boolean inClientCode;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean expectingStop;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private final jdk.jshell.execution.RemoteExecutionControl$StopExecutionException stopException;
descriptor: Ljdk/jshell/execution/RemoteExecutionControl$StopExecutionException;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=7, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: new java.net.Socket
dup
aload 1
aload 0
iconst_0
aaload
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
invokespecial java.net.Socket.<init>:(Ljava/lang/String;I)V
astore 2
start local 2 2: aload 2
invokevirtual java.net.Socket.getInputStream:()Ljava/io/InputStream;
astore 3
start local 3 3: aload 2
invokevirtual java.net.Socket.getOutputStream:()Ljava/io/OutputStream;
astore 4
start local 4 4: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 5
start local 5 5: aload 5
ldc "out"
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/jshell/execution/RemoteExecutionControl.lambda$0(Ljava/io/OutputStream;)V (6)
(Ljava/io/OutputStream;)V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: aload 5
ldc "err"
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/jshell/execution/RemoteExecutionControl.lambda$1(Ljava/io/OutputStream;)V (6)
(Ljava/io/OutputStream;)V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 6
start local 6 8: aload 6
ldc "in"
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
java/lang/System.setIn(Ljava/io/InputStream;)V (6)
(Ljava/io/InputStream;)V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: new jdk.jshell.execution.RemoteExecutionControl
dup
invokespecial jdk.jshell.execution.RemoteExecutionControl.<init>:()V
aload 3
aload 4
aload 5
aload 6
invokestatic jdk.jshell.execution.Util.forwardExecutionControlAndIO:(Ljdk/jshell/spi/ExecutionControl;Ljava/io/InputStream;Ljava/io/OutputStream;Ljava/util/Map;Ljava/util/Map;)V
10: return
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 11 0 args [Ljava/lang/String;
1 11 1 loopBack Ljava/lang/String;
2 11 2 socket Ljava/net/Socket;
3 11 3 inStream Ljava/io/InputStream;
4 11 4 outStream Ljava/io/OutputStream;
5 11 5 outputs Ljava/util/Map<Ljava/lang/String;Ljava/util/function/Consumer<Ljava/io/OutputStream;>;>;
8 11 6 input Ljava/util/Map<Ljava/lang/String;Ljava/util/function/Consumer<Ljava/io/InputStream;>;>;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
args
public void <init>(jdk.jshell.execution.LoaderDelegate);
descriptor: (Ljdk/jshell/execution/LoaderDelegate;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial jdk.jshell.execution.DirectExecutionControl.<init>:(Ljdk/jshell/execution/LoaderDelegate;)V
1: aload 0
new jdk.jshell.execution.RemoteExecutionControl$StopExecutionException
dup
aload 0
invokespecial jdk.jshell.execution.RemoteExecutionControl$StopExecutionException.<init>:(Ljdk/jshell/execution/RemoteExecutionControl;)V
putfield jdk.jshell.execution.RemoteExecutionControl.stopException:Ljdk/jshell/execution/RemoteExecutionControl$StopExecutionException;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jshell/execution/RemoteExecutionControl;
0 3 1 loaderDelegate Ljdk/jshell/execution/LoaderDelegate;
MethodParameters:
Name Flags
loaderDelegate
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokespecial jdk.jshell.execution.DirectExecutionControl.<init>:()V
1: aload 0
new jdk.jshell.execution.RemoteExecutionControl$StopExecutionException
dup
aload 0
invokespecial jdk.jshell.execution.RemoteExecutionControl$StopExecutionException.<init>:(Ljdk/jshell/execution/RemoteExecutionControl;)V
putfield jdk.jshell.execution.RemoteExecutionControl.stopException:Ljdk/jshell/execution/RemoteExecutionControl$StopExecutionException;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jshell/execution/RemoteExecutionControl;
public void redefine(jdk.jshell.spi.ExecutionControl$ClassBytecodes[]);
descriptor: ([Ljdk/jshell/spi/ExecutionControl$ClassBytecodes;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual jdk.jshell.execution.RemoteExecutionControl.classesRedefined:([Ljdk/jshell/spi/ExecutionControl$ClassBytecodes;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jshell/execution/RemoteExecutionControl;
0 2 1 cbcs [Ljdk/jshell/spi/ExecutionControl$ClassBytecodes;
Exceptions:
throws jdk.jshell.spi.ExecutionControl$ClassInstallException, jdk.jshell.spi.ExecutionControl$NotImplementedException, jdk.jshell.spi.ExecutionControl$EngineTerminationException
MethodParameters:
Name Flags
cbcs
public void stop();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
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 this Ljdk/jshell/execution/RemoteExecutionControl;
Exceptions:
throws jdk.jshell.spi.ExecutionControl$EngineTerminationException, jdk.jshell.spi.ExecutionControl$InternalException
protected java.lang.String invoke(java.lang.reflect.Method);
descriptor: (Ljava/lang/reflect/Method;)Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial jdk.jshell.execution.DirectExecutionControl.invoke:(Ljava/lang/reflect/Method;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/execution/RemoteExecutionControl;
0 1 1 doitMethod Ljava/lang/reflect/Method;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
doitMethod
public java.lang.String varValue(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial jdk.jshell.execution.DirectExecutionControl.varValue:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/execution/RemoteExecutionControl;
0 1 1 className Ljava/lang/String;
0 1 2 varName Ljava/lang/String;
Exceptions:
throws jdk.jshell.spi.ExecutionControl$RunException, jdk.jshell.spi.ExecutionControl$EngineTerminationException, jdk.jshell.spi.ExecutionControl$InternalException
MethodParameters:
Name Flags
className
varName
protected java.lang.String throwConvertedInvocationException(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof jdk.jshell.execution.RemoteExecutionControl$StopExecutionException
ifeq 3
1: aload 0
iconst_0
putfield jdk.jshell.execution.RemoteExecutionControl.expectingStop:Z
2: new jdk.jshell.spi.ExecutionControl$StoppedException
dup
invokespecial jdk.jshell.spi.ExecutionControl$StoppedException.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial jdk.jshell.execution.DirectExecutionControl.throwConvertedInvocationException:(Ljava/lang/Throwable;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/jshell/execution/RemoteExecutionControl;
0 4 1 cause Ljava/lang/Throwable;
Exceptions:
throws jdk.jshell.spi.ExecutionControl$RunException, jdk.jshell.spi.ExecutionControl$InternalException
MethodParameters:
Name Flags
cause
protected java.lang.String throwConvertedOtherException(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof jdk.jshell.execution.RemoteExecutionControl$StopExecutionException
ifne 2
1: aload 1
invokevirtual java.lang.Throwable.getCause:()Ljava/lang/Throwable;
instanceof jdk.jshell.execution.RemoteExecutionControl$StopExecutionException
ifeq 4
2: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield jdk.jshell.execution.RemoteExecutionControl.expectingStop:Z
3: new jdk.jshell.spi.ExecutionControl$StoppedException
dup
invokespecial jdk.jshell.spi.ExecutionControl$StoppedException.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial jdk.jshell.execution.DirectExecutionControl.throwConvertedOtherException:(Ljava/lang/Throwable;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/jshell/execution/RemoteExecutionControl;
0 5 1 ex Ljava/lang/Throwable;
Exceptions:
throws jdk.jshell.spi.ExecutionControl$RunException, jdk.jshell.spi.ExecutionControl$InternalException
MethodParameters:
Name Flags
ex
protected void clientCodeEnter();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
putfield jdk.jshell.execution.RemoteExecutionControl.expectingStop:Z
1: aload 0
iconst_1
putfield jdk.jshell.execution.RemoteExecutionControl.inClientCode:Z
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jshell/execution/RemoteExecutionControl;
protected void clientCodeLeave();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
iconst_0
putfield jdk.jshell.execution.RemoteExecutionControl.inClientCode:Z
1: goto 6
2: StackMap locals:
StackMap stack:
lconst_0
invokestatic java.lang.Thread.sleep:(J)V
3: goto 6
StackMap locals:
StackMap stack: java.lang.InterruptedException
4: astore 1
start local 1 5: new jdk.jshell.spi.ExecutionControl$InternalException
dup
new java.lang.StringBuilder
dup
ldc "*** Sleep interrupted while waiting for stop exception: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial jdk.jshell.spi.ExecutionControl$InternalException.<init>:(Ljava/lang/String;)V
athrow
end local 1 6: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jshell.execution.RemoteExecutionControl.expectingStop:Z
ifne 2
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/jshell/execution/RemoteExecutionControl;
5 6 1 ex Ljava/lang/InterruptedException;
Exception table:
from to target type
2 3 4 Class java.lang.InterruptedException
Exceptions:
throws jdk.jshell.spi.ExecutionControl$InternalException
private static void lambda$0(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new java.io.PrintStream
dup
aload 0
iconst_1
invokespecial java.io.PrintStream.<init>:(Ljava/io/OutputStream;Z)V
invokestatic java.lang.System.setOut:(Ljava/io/PrintStream;)V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 st Ljava/io/OutputStream;
private static void lambda$1(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new java.io.PrintStream
dup
aload 0
iconst_1
invokespecial java.io.PrintStream.<init>:(Ljava/io/OutputStream;Z)V
invokestatic java.lang.System.setErr:(Ljava/io/PrintStream;)V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 st Ljava/io/OutputStream;
}
SourceFile: "RemoteExecutionControl.java"
NestMembers:
jdk.jshell.execution.RemoteExecutionControl$StopExecutionException
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
private StopExecutionException = jdk.jshell.execution.RemoteExecutionControl$StopExecutionException of jdk.jshell.execution.RemoteExecutionControl
public final ClassBytecodes = jdk.jshell.spi.ExecutionControl$ClassBytecodes of jdk.jshell.spi.ExecutionControl
public ClassInstallException = jdk.jshell.spi.ExecutionControl$ClassInstallException of jdk.jshell.spi.ExecutionControl
public EngineTerminationException = jdk.jshell.spi.ExecutionControl$EngineTerminationException of jdk.jshell.spi.ExecutionControl
public InternalException = jdk.jshell.spi.ExecutionControl$InternalException of jdk.jshell.spi.ExecutionControl
public NotImplementedException = jdk.jshell.spi.ExecutionControl$NotImplementedException of jdk.jshell.spi.ExecutionControl
public abstract RunException = jdk.jshell.spi.ExecutionControl$RunException of jdk.jshell.spi.ExecutionControl
public StoppedException = jdk.jshell.spi.ExecutionControl$StoppedException of jdk.jshell.spi.ExecutionControl