public class jdk.internal.org.jline.terminal.impl.ExternalTerminal extends jdk.internal.org.jline.terminal.impl.LineDisciplineTerminal
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.org.jline.terminal.impl.ExternalTerminal
super_class: jdk.internal.org.jline.terminal.impl.LineDisciplineTerminal
{
protected final java.util.concurrent.atomic.AtomicBoolean closed;
descriptor: Ljava/util/concurrent/atomic/AtomicBoolean;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final java.io.InputStream masterInput;
descriptor: Ljava/io/InputStream;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final java.lang.Object lock;
descriptor: Ljava/lang/Object;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected boolean paused;
descriptor: Z
flags: (0x0004) ACC_PROTECTED
protected java.lang.Thread pumpThread;
descriptor: Ljava/lang/Thread;
flags: (0x0004) ACC_PROTECTED
public void <init>(java.lang.String, java.lang.String, java.io.InputStream, java.io.OutputStream, java.nio.charset.Charset);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/io/InputStream;Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
aload 1
aload 2
aload 3
aload 4
aload 5
getstatic jdk.internal.org.jline.terminal.Terminal$SignalHandler.SIG_DFL:Ljdk/internal/org/jline/terminal/Terminal$SignalHandler;
invokespecial jdk.internal.org.jline.terminal.impl.ExternalTerminal.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/io/InputStream;Ljava/io/OutputStream;Ljava/nio/charset/Charset;Ljdk/internal/org/jline/terminal/Terminal$SignalHandler;)V
1: 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 2 0 this Ljdk/internal/org/jline/terminal/impl/ExternalTerminal;
0 2 1 name Ljava/lang/String;
0 2 2 type Ljava/lang/String;
0 2 3 masterInput Ljava/io/InputStream;
0 2 4 masterOutput Ljava/io/OutputStream;
0 2 5 encoding Ljava/nio/charset/Charset;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
name
type
masterInput
masterOutput
encoding
public void <init>(java.lang.String, java.lang.String, java.io.InputStream, java.io.OutputStream, java.nio.charset.Charset, jdk.internal.org.jline.terminal.Terminal$SignalHandler);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/io/InputStream;Ljava/io/OutputStream;Ljava/nio/charset/Charset;Ljdk/internal/org/jline/terminal/Terminal$SignalHandler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=7, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
aload 1
aload 2
aload 3
aload 4
aload 5
aload 6
iconst_0
invokespecial jdk.internal.org.jline.terminal.impl.ExternalTerminal.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/io/InputStream;Ljava/io/OutputStream;Ljava/nio/charset/Charset;Ljdk/internal/org/jline/terminal/Terminal$SignalHandler;Z)V
1: 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 2 0 this Ljdk/internal/org/jline/terminal/impl/ExternalTerminal;
0 2 1 name Ljava/lang/String;
0 2 2 type Ljava/lang/String;
0 2 3 masterInput Ljava/io/InputStream;
0 2 4 masterOutput Ljava/io/OutputStream;
0 2 5 encoding Ljava/nio/charset/Charset;
0 2 6 signalHandler Ljdk/internal/org/jline/terminal/Terminal$SignalHandler;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
name
type
masterInput
masterOutput
encoding
signalHandler
public void <init>(java.lang.String, java.lang.String, java.io.InputStream, java.io.OutputStream, java.nio.charset.Charset, jdk.internal.org.jline.terminal.Terminal$SignalHandler, boolean);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/io/InputStream;Ljava/io/OutputStream;Ljava/nio/charset/Charset;Ljdk/internal/org/jline/terminal/Terminal$SignalHandler;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=8, args_size=8
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 0: aload 0
aload 1
aload 2
aload 4
aload 5
aload 6
invokespecial jdk.internal.org.jline.terminal.impl.LineDisciplineTerminal.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/io/OutputStream;Ljava/nio/charset/Charset;Ljdk/internal/org/jline/terminal/Terminal$SignalHandler;)V
1: aload 0
new java.util.concurrent.atomic.AtomicBoolean
dup
invokespecial java.util.concurrent.atomic.AtomicBoolean.<init>:()V
putfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.closed:Ljava/util/concurrent/atomic/AtomicBoolean;
2: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.lock:Ljava/lang/Object;
3: aload 0
iconst_1
putfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.paused:Z
4: aload 0
aload 3
putfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.masterInput:Ljava/io/InputStream;
5: iload 7
ifne 7
6: aload 0
invokevirtual jdk.internal.org.jline.terminal.impl.ExternalTerminal.resume:()V
7: StackMap locals: jdk.internal.org.jline.terminal.impl.ExternalTerminal java.lang.String java.lang.String java.io.InputStream java.io.OutputStream java.nio.charset.Charset jdk.internal.org.jline.terminal.Terminal$SignalHandler int
StackMap stack:
return
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 8 0 this Ljdk/internal/org/jline/terminal/impl/ExternalTerminal;
0 8 1 name Ljava/lang/String;
0 8 2 type Ljava/lang/String;
0 8 3 masterInput Ljava/io/InputStream;
0 8 4 masterOutput Ljava/io/OutputStream;
0 8 5 encoding Ljava/nio/charset/Charset;
0 8 6 signalHandler Ljdk/internal/org/jline/terminal/Terminal$SignalHandler;
0 8 7 paused Z
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
name
type
masterInput
masterOutput
encoding
signalHandler
paused
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.closed:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_0
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.compareAndSet:(ZZ)Z
ifeq 3
1: aload 0
invokevirtual jdk.internal.org.jline.terminal.impl.ExternalTerminal.pause:()V
2: aload 0
invokespecial jdk.internal.org.jline.terminal.impl.LineDisciplineTerminal.close:()V
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/org/jline/terminal/impl/ExternalTerminal;
Exceptions:
throws java.io.IOException
public boolean canPauseResume();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/org/jline/terminal/impl/ExternalTerminal;
public void pause();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.lock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
iconst_1
putfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.paused:Z
2: aload 1
monitorexit
3: goto 6
StackMap locals: jdk.internal.org.jline.terminal.impl.ExternalTerminal java.lang.Object
StackMap stack: java.lang.Throwable
4: aload 1
monitorexit
5: athrow
6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/org/jline/terminal/impl/ExternalTerminal;
Exception table:
from to target type
1 3 4 any
4 5 4 any
public void pause(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.lock:Ljava/lang/Object;
dup
astore 3
monitorenter
1: aload 0
iconst_1
putfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.paused:Z
2: aload 0
getfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.pumpThread:Ljava/lang/Thread;
astore 2
start local 2 3: aload 3
monitorexit
4: goto 7
end local 2 StackMap locals: jdk.internal.org.jline.terminal.impl.ExternalTerminal int top java.lang.Object
StackMap stack: java.lang.Throwable
5: aload 3
monitorexit
6: athrow
start local 2 7: StackMap locals: jdk.internal.org.jline.terminal.impl.ExternalTerminal int java.lang.Thread
StackMap stack:
aload 2
ifnull 10
8: aload 2
invokevirtual java.lang.Thread.interrupt:()V
9: aload 2
invokevirtual java.lang.Thread.join:()V
10: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/internal/org/jline/terminal/impl/ExternalTerminal;
0 11 1 wait Z
3 5 2 p Ljava/lang/Thread;
7 11 2 p Ljava/lang/Thread;
Exception table:
from to target type
1 4 5 any
5 6 5 any
Exceptions:
throws java.lang.InterruptedException
MethodParameters:
Name Flags
wait
public void resume();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.lock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
iconst_0
putfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.paused:Z
2: aload 0
getfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.pumpThread:Ljava/lang/Thread;
ifnonnull 6
3: aload 0
new java.lang.Thread
dup
aload 0
invokedynamic run(Ljdk/internal/org/jline/terminal/impl/ExternalTerminal;)Ljava/lang/Runnable;
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:
()V
jdk/internal/org/jline/terminal/impl/ExternalTerminal.pump()V (5)
()V
new java.lang.StringBuilder
dup
aload 0
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " input pump thread"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.Thread.<init>:(Ljava/lang/Runnable;Ljava/lang/String;)V
putfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.pumpThread:Ljava/lang/Thread;
4: aload 0
getfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.pumpThread:Ljava/lang/Thread;
iconst_1
invokevirtual java.lang.Thread.setDaemon:(Z)V
5: aload 0
getfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.pumpThread:Ljava/lang/Thread;
invokevirtual java.lang.Thread.start:()V
6: StackMap locals: java.lang.Object
StackMap stack:
aload 1
monitorexit
7: goto 10
StackMap locals:
StackMap stack: java.lang.Throwable
8: aload 1
monitorexit
9: athrow
10: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/internal/org/jline/terminal/impl/ExternalTerminal;
Exception table:
from to target type
1 7 8 any
8 9 8 any
public boolean paused();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.lock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.paused:Z
aload 1
monitorexit
2: ireturn
3: StackMap locals: jdk.internal.org.jline.terminal.impl.ExternalTerminal java.lang.Object
StackMap stack: java.lang.Throwable
aload 1
monitorexit
4: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/org/jline/terminal/impl/ExternalTerminal;
Exception table:
from to target type
1 2 3 any
3 4 3 any
public void pump();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=1
start local 0 0: sipush 1024
newarray 8
astore 1
start local 1 1: StackMap locals: byte[]
StackMap stack:
aload 0
getfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.masterInput:Ljava/io/InputStream;
aload 1
invokevirtual java.io.InputStream.read:([B)I
istore 2
start local 2 2: iload 2
iflt 4
3: aload 0
aload 1
iconst_0
iload 2
invokevirtual jdk.internal.org.jline.terminal.impl.ExternalTerminal.processInputBytes:([BII)V
4: StackMap locals: int
StackMap stack:
iload 2
iflt 37
aload 0
getfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.closed:Ljava/util/concurrent/atomic/AtomicBoolean;
invokevirtual java.util.concurrent.atomic.AtomicBoolean.get:()Z
ifeq 6
5: goto 37
6: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.lock:Ljava/lang/Object;
dup
astore 3
monitorenter
7: aload 0
getfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.paused:Z
ifeq 17
8: aload 0
aconst_null
putfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.pumpThread:Ljava/lang/Thread;
9: aload 3
monitorexit
10: aload 0
getfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.lock:Ljava/lang/Object;
dup
astore 5
monitorenter
11: aload 0
aconst_null
putfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.pumpThread:Ljava/lang/Thread;
12: aload 5
monitorexit
13: goto 16
StackMap locals: jdk.internal.org.jline.terminal.impl.ExternalTerminal byte[] int java.lang.Object top java.lang.Object
StackMap stack: java.lang.Throwable
14: aload 5
monitorexit
15: athrow
StackMap locals: jdk.internal.org.jline.terminal.impl.ExternalTerminal byte[] int java.lang.Object
StackMap stack:
16: return
17: StackMap locals:
StackMap stack:
aload 3
monitorexit
18: goto 1
StackMap locals:
StackMap stack: java.lang.Throwable
19: aload 3
monitorexit
20: athrow
end local 2 end local 1 21: StackMap locals: jdk.internal.org.jline.terminal.impl.ExternalTerminal
StackMap stack: java.io.IOException
astore 1
start local 1 22: aload 0
aload 1
invokevirtual jdk.internal.org.jline.terminal.impl.ExternalTerminal.processIOException:(Ljava/io/IOException;)V
end local 1 23: aload 0
getfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.lock:Ljava/lang/Object;
dup
astore 5
monitorenter
24: aload 0
aconst_null
putfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.pumpThread:Ljava/lang/Thread;
25: aload 5
monitorexit
26: goto 43
StackMap locals: jdk.internal.org.jline.terminal.impl.ExternalTerminal top top top top java.lang.Object
StackMap stack: java.lang.Throwable
27: aload 5
monitorexit
28: athrow
29: StackMap locals: jdk.internal.org.jline.terminal.impl.ExternalTerminal
StackMap stack: java.lang.Throwable
astore 4
30: aload 0
getfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.lock:Ljava/lang/Object;
dup
astore 5
monitorenter
31: aload 0
aconst_null
putfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.pumpThread:Ljava/lang/Thread;
32: aload 5
monitorexit
33: goto 36
StackMap locals: jdk.internal.org.jline.terminal.impl.ExternalTerminal top top top java.lang.Throwable java.lang.Object
StackMap stack: java.lang.Throwable
34: aload 5
monitorexit
35: athrow
36: StackMap locals:
StackMap stack:
aload 4
athrow
37: StackMap locals: jdk.internal.org.jline.terminal.impl.ExternalTerminal
StackMap stack:
aload 0
getfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.lock:Ljava/lang/Object;
dup
astore 5
monitorenter
38: aload 0
aconst_null
putfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.pumpThread:Ljava/lang/Thread;
39: aload 5
monitorexit
40: goto 43
StackMap locals: jdk.internal.org.jline.terminal.impl.ExternalTerminal top top top top java.lang.Object
StackMap stack: java.lang.Throwable
41: aload 5
monitorexit
42: athrow
43: StackMap locals: jdk.internal.org.jline.terminal.impl.ExternalTerminal
StackMap stack:
aload 0
getfield jdk.internal.org.jline.terminal.impl.ExternalTerminal.slaveInput:Ljdk/internal/org/jline/utils/NonBlockingPumpInputStream;
invokevirtual jdk.internal.org.jline.utils.NonBlockingPumpInputStream.close:()V
44: goto 46
StackMap locals:
StackMap stack: java.io.IOException
45: pop
46: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 47 0 this Ljdk/internal/org/jline/terminal/impl/ExternalTerminal;
1 21 1 buf [B
2 21 2 c I
22 23 1 e Ljava/io/IOException;
Exception table:
from to target type
11 13 14 any
14 15 14 any
7 10 19 any
17 18 19 any
19 20 19 any
0 10 21 Class java.io.IOException
17 21 21 Class java.io.IOException
24 26 27 any
27 28 27 any
0 10 29 any
17 23 29 any
31 33 34 any
34 35 34 any
38 40 41 any
41 42 41 any
43 44 45 Class java.io.IOException
public jdk.internal.org.jline.terminal.Cursor getCursorPosition(java.util.function.IntConsumer);
descriptor: (Ljava/util/function/IntConsumer;)Ljdk/internal/org/jline/terminal/Cursor;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic jdk.internal.org.jline.terminal.impl.CursorSupport.getCursorPosition:(Ljdk/internal/org/jline/terminal/Terminal;Ljava/util/function/IntConsumer;)Ljdk/internal/org/jline/terminal/Cursor;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/org/jline/terminal/impl/ExternalTerminal;
0 1 1 discarded Ljava/util/function/IntConsumer;
MethodParameters:
Name Flags
discarded
}
SourceFile: "ExternalTerminal.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract SignalHandler = jdk.internal.org.jline.terminal.Terminal$SignalHandler of jdk.internal.org.jline.terminal.Terminal