public class jdk.internal.org.jline.terminal.impl.PosixSysTerminal extends jdk.internal.org.jline.terminal.impl.AbstractPosixTerminal
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.org.jline.terminal.impl.PosixSysTerminal
super_class: jdk.internal.org.jline.terminal.impl.AbstractPosixTerminal
{
protected final jdk.internal.org.jline.utils.NonBlockingInputStream input;
descriptor: Ljdk/internal/org/jline/utils/NonBlockingInputStream;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final java.io.OutputStream output;
descriptor: Ljava/io/OutputStream;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final jdk.internal.org.jline.utils.NonBlockingReader reader;
descriptor: Ljdk/internal/org/jline/utils/NonBlockingReader;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final java.io.PrintWriter writer;
descriptor: Ljava/io/PrintWriter;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final java.util.Map<jdk.internal.org.jline.terminal.Terminal$Signal, java.lang.Object> nativeHandlers;
descriptor: Ljava/util/Map;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Ljava/util/Map<Ljdk/internal/org/jline/terminal/Terminal$Signal;Ljava/lang/Object;>;
protected final jdk.internal.org.jline.utils.ShutdownHooks$Task closer;
descriptor: Ljdk/internal/org/jline/utils/ShutdownHooks$Task;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
public void <init>(java.lang.String, java.lang.String, jdk.internal.org.jline.terminal.spi.Pty, java.io.InputStream, java.io.OutputStream, java.nio.charset.Charset, boolean, jdk.internal.org.jline.terminal.Terminal$SignalHandler);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljdk/internal/org/jline/terminal/spi/Pty;Ljava/io/InputStream;Ljava/io/OutputStream;Ljava/nio/charset/Charset;ZLjdk/internal/org/jline/terminal/Terminal$SignalHandler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=13, args_size=9
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 start local 8 0: aload 0
aload 1
aload 2
aload 3
aload 6
aload 8
invokespecial jdk.internal.org.jline.terminal.impl.AbstractPosixTerminal.<init>:(Ljava/lang/String;Ljava/lang/String;Ljdk/internal/org/jline/terminal/spi/Pty;Ljava/nio/charset/Charset;Ljdk/internal/org/jline/terminal/Terminal$SignalHandler;)V
1: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield jdk.internal.org.jline.terminal.impl.PosixSysTerminal.nativeHandlers:Ljava/util/Map;
2: aload 0
aload 0
invokevirtual jdk.internal.org.jline.terminal.impl.PosixSysTerminal.getName:()Ljava/lang/String;
aload 4
invokestatic jdk.internal.org.jline.utils.NonBlocking.nonBlocking:(Ljava/lang/String;Ljava/io/InputStream;)Ljdk/internal/org/jline/utils/NonBlockingInputStream;
putfield jdk.internal.org.jline.terminal.impl.PosixSysTerminal.input:Ljdk/internal/org/jline/utils/NonBlockingInputStream;
3: aload 0
aload 5
putfield jdk.internal.org.jline.terminal.impl.PosixSysTerminal.output:Ljava/io/OutputStream;
4: aload 0
aload 0
invokevirtual jdk.internal.org.jline.terminal.impl.PosixSysTerminal.getName:()Ljava/lang/String;
aload 0
getfield jdk.internal.org.jline.terminal.impl.PosixSysTerminal.input:Ljdk/internal/org/jline/utils/NonBlockingInputStream;
aload 0
invokevirtual jdk.internal.org.jline.terminal.impl.PosixSysTerminal.encoding:()Ljava/nio/charset/Charset;
invokestatic jdk.internal.org.jline.utils.NonBlocking.nonBlocking:(Ljava/lang/String;Ljava/io/InputStream;Ljava/nio/charset/Charset;)Ljdk/internal/org/jline/utils/NonBlockingReader;
putfield jdk.internal.org.jline.terminal.impl.PosixSysTerminal.reader:Ljdk/internal/org/jline/utils/NonBlockingReader;
5: aload 0
new java.io.PrintWriter
dup
new java.io.OutputStreamWriter
dup
aload 0
getfield jdk.internal.org.jline.terminal.impl.PosixSysTerminal.output:Ljava/io/OutputStream;
aload 0
invokevirtual jdk.internal.org.jline.terminal.impl.PosixSysTerminal.encoding:()Ljava/nio/charset/Charset;
invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
invokespecial java.io.PrintWriter.<init>:(Ljava/io/Writer;)V
putfield jdk.internal.org.jline.terminal.impl.PosixSysTerminal.writer:Ljava/io/PrintWriter;
6: aload 0
invokevirtual jdk.internal.org.jline.terminal.impl.PosixSysTerminal.parseInfoCmp:()V
7: iload 7
ifeq 16
8: invokestatic jdk.internal.org.jline.terminal.Terminal$Signal.values:()[Ljdk/internal/org/jline/terminal/Terminal$Signal;
dup
astore 12
arraylength
istore 11
iconst_0
istore 10
goto 15
StackMap locals: jdk.internal.org.jline.terminal.impl.PosixSysTerminal java.lang.String java.lang.String jdk.internal.org.jline.terminal.spi.Pty java.io.InputStream java.io.OutputStream java.nio.charset.Charset int jdk.internal.org.jline.terminal.Terminal$SignalHandler top int int jdk.internal.org.jline.terminal.Terminal$Signal[]
StackMap stack:
9: aload 12
iload 10
aaload
astore 9
start local 9 10: aload 8
getstatic jdk.internal.org.jline.terminal.Terminal$SignalHandler.SIG_DFL:Ljdk/internal/org/jline/terminal/Terminal$SignalHandler;
if_acmpne 13
11: aload 0
getfield jdk.internal.org.jline.terminal.impl.PosixSysTerminal.nativeHandlers:Ljava/util/Map;
aload 9
aload 9
invokevirtual jdk.internal.org.jline.terminal.Terminal$Signal.name:()Ljava/lang/String;
invokestatic jdk.internal.org.jline.utils.Signals.registerDefault:(Ljava/lang/String;)Ljava/lang/Object;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
12: goto 14
13: StackMap locals: jdk.internal.org.jline.terminal.impl.PosixSysTerminal java.lang.String java.lang.String jdk.internal.org.jline.terminal.spi.Pty java.io.InputStream java.io.OutputStream java.nio.charset.Charset int jdk.internal.org.jline.terminal.Terminal$SignalHandler jdk.internal.org.jline.terminal.Terminal$Signal int int jdk.internal.org.jline.terminal.Terminal$Signal[]
StackMap stack:
aload 0
getfield jdk.internal.org.jline.terminal.impl.PosixSysTerminal.nativeHandlers:Ljava/util/Map;
aload 9
aload 9
invokevirtual jdk.internal.org.jline.terminal.Terminal$Signal.name:()Ljava/lang/String;
aload 0
aload 9
invokedynamic run(Ljdk/internal/org/jline/terminal/impl/PosixSysTerminal;Ljdk/internal/org/jline/terminal/Terminal$Signal;)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/PosixSysTerminal.lambda$0(Ljdk/internal/org/jline/terminal/Terminal$Signal;)V (7)
()V
invokestatic jdk.internal.org.jline.utils.Signals.register:(Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 9 14: StackMap locals: jdk.internal.org.jline.terminal.impl.PosixSysTerminal java.lang.String java.lang.String jdk.internal.org.jline.terminal.spi.Pty java.io.InputStream java.io.OutputStream java.nio.charset.Charset int jdk.internal.org.jline.terminal.Terminal$SignalHandler top int int jdk.internal.org.jline.terminal.Terminal$Signal[]
StackMap stack:
iinc 10 1
StackMap locals:
StackMap stack:
15: iload 10
iload 11
if_icmplt 9
16: StackMap locals: jdk.internal.org.jline.terminal.impl.PosixSysTerminal java.lang.String java.lang.String jdk.internal.org.jline.terminal.spi.Pty java.io.InputStream java.io.OutputStream java.nio.charset.Charset int jdk.internal.org.jline.terminal.Terminal$SignalHandler
StackMap stack:
aload 0
aload 0
invokedynamic run(Ljdk/internal/org/jline/terminal/impl/PosixSysTerminal;)Ljdk/internal/org/jline/utils/ShutdownHooks$Task;
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/AbstractTerminal.close()V (5)
()V
putfield jdk.internal.org.jline.terminal.impl.PosixSysTerminal.closer:Ljdk/internal/org/jline/utils/ShutdownHooks$Task;
17: aload 0
getfield jdk.internal.org.jline.terminal.impl.PosixSysTerminal.closer:Ljdk/internal/org/jline/utils/ShutdownHooks$Task;
invokestatic jdk.internal.org.jline.utils.ShutdownHooks.add:(Ljdk/internal/org/jline/utils/ShutdownHooks$Task;)Ljdk/internal/org/jline/utils/ShutdownHooks$Task;
pop
18: return
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 19 0 this Ljdk/internal/org/jline/terminal/impl/PosixSysTerminal;
0 19 1 name Ljava/lang/String;
0 19 2 type Ljava/lang/String;
0 19 3 pty Ljdk/internal/org/jline/terminal/spi/Pty;
0 19 4 in Ljava/io/InputStream;
0 19 5 out Ljava/io/OutputStream;
0 19 6 encoding Ljava/nio/charset/Charset;
0 19 7 nativeSignals Z
0 19 8 signalHandler Ljdk/internal/org/jline/terminal/Terminal$SignalHandler;
10 14 9 signal Ljdk/internal/org/jline/terminal/Terminal$Signal;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
name
type
pty
in
out
encoding
nativeSignals
signalHandler
public jdk.internal.org.jline.terminal.Terminal$SignalHandler handle(jdk.internal.org.jline.terminal.Terminal$Signal, jdk.internal.org.jline.terminal.Terminal$SignalHandler);
descriptor: (Ljdk/internal/org/jline/terminal/Terminal$Signal;Ljdk/internal/org/jline/terminal/Terminal$SignalHandler;)Ljdk/internal/org/jline/terminal/Terminal$SignalHandler;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial jdk.internal.org.jline.terminal.impl.AbstractPosixTerminal.handle:(Ljdk/internal/org/jline/terminal/Terminal$Signal;Ljdk/internal/org/jline/terminal/Terminal$SignalHandler;)Ljdk/internal/org/jline/terminal/Terminal$SignalHandler;
astore 3
start local 3 1: aload 3
aload 2
if_acmpeq 6
2: aload 2
getstatic jdk.internal.org.jline.terminal.Terminal$SignalHandler.SIG_DFL:Ljdk/internal/org/jline/terminal/Terminal$SignalHandler;
if_acmpne 5
3: aload 1
invokevirtual jdk.internal.org.jline.terminal.Terminal$Signal.name:()Ljava/lang/String;
invokestatic jdk.internal.org.jline.utils.Signals.registerDefault:(Ljava/lang/String;)Ljava/lang/Object;
pop
4: goto 6
5: StackMap locals: jdk.internal.org.jline.terminal.Terminal$SignalHandler
StackMap stack:
aload 1
invokevirtual jdk.internal.org.jline.terminal.Terminal$Signal.name:()Ljava/lang/String;
aload 0
aload 1
invokedynamic run(Ljdk/internal/org/jline/terminal/impl/PosixSysTerminal;Ljdk/internal/org/jline/terminal/Terminal$Signal;)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/PosixSysTerminal.lambda$2(Ljdk/internal/org/jline/terminal/Terminal$Signal;)V (7)
()V
invokestatic jdk.internal.org.jline.utils.Signals.register:(Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;
pop
6: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/org/jline/terminal/impl/PosixSysTerminal;
0 7 1 signal Ljdk/internal/org/jline/terminal/Terminal$Signal;
0 7 2 handler Ljdk/internal/org/jline/terminal/Terminal$SignalHandler;
1 7 3 prev Ljdk/internal/org/jline/terminal/Terminal$SignalHandler;
MethodParameters:
Name Flags
signal
handler
public jdk.internal.org.jline.utils.NonBlockingReader reader();
descriptor: ()Ljdk/internal/org/jline/utils/NonBlockingReader;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.org.jline.terminal.impl.PosixSysTerminal.reader:Ljdk/internal/org/jline/utils/NonBlockingReader;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/org/jline/terminal/impl/PosixSysTerminal;
public java.io.PrintWriter writer();
descriptor: ()Ljava/io/PrintWriter;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.org.jline.terminal.impl.PosixSysTerminal.writer:Ljava/io/PrintWriter;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/org/jline/terminal/impl/PosixSysTerminal;
public java.io.InputStream input();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.org.jline.terminal.impl.PosixSysTerminal.input:Ljdk/internal/org/jline/utils/NonBlockingInputStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/org/jline/terminal/impl/PosixSysTerminal;
public java.io.OutputStream output();
descriptor: ()Ljava/io/OutputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.org.jline.terminal.impl.PosixSysTerminal.output:Ljava/io/OutputStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/org/jline/terminal/impl/PosixSysTerminal;
protected void doClose();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield jdk.internal.org.jline.terminal.impl.PosixSysTerminal.closer:Ljdk/internal/org/jline/utils/ShutdownHooks$Task;
invokestatic jdk.internal.org.jline.utils.ShutdownHooks.remove:(Ljdk/internal/org/jline/utils/ShutdownHooks$Task;)V
1: aload 0
getfield jdk.internal.org.jline.terminal.impl.PosixSysTerminal.nativeHandlers:Ljava/util/Map;
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 2
goto 4
StackMap locals: jdk.internal.org.jline.terminal.impl.PosixSysTerminal top java.util.Iterator
StackMap stack:
2: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 1
start local 1 3: aload 1
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast jdk.internal.org.jline.terminal.Terminal$Signal
invokevirtual jdk.internal.org.jline.terminal.Terminal$Signal.name:()Ljava/lang/String;
aload 1
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
invokestatic jdk.internal.org.jline.utils.Signals.unregister:(Ljava/lang/String;Ljava/lang/Object;)V
end local 1 4: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: aload 0
invokespecial jdk.internal.org.jline.terminal.impl.AbstractPosixTerminal.doClose:()V
6: aload 0
getfield jdk.internal.org.jline.terminal.impl.PosixSysTerminal.reader:Ljdk/internal/org/jline/utils/NonBlockingReader;
invokevirtual jdk.internal.org.jline.utils.NonBlockingReader.shutdown:()V
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/internal/org/jline/terminal/impl/PosixSysTerminal;
3 4 1 entry Ljava/util/Map$Entry<Ljdk/internal/org/jline/terminal/Terminal$Signal;Ljava/lang/Object;>;
Exceptions:
throws java.io.IOException
private void lambda$0(jdk.internal.org.jline.terminal.Terminal$Signal);
descriptor: (Ljdk/internal/org/jline/terminal/Terminal$Signal;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 0 0: aload 0
aload 1
invokevirtual jdk.internal.org.jline.terminal.impl.PosixSysTerminal.raise:(Ljdk/internal/org/jline/terminal/Terminal$Signal;)V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/org/jline/terminal/impl/PosixSysTerminal;
private void lambda$2(jdk.internal.org.jline.terminal.Terminal$Signal);
descriptor: (Ljdk/internal/org/jline/terminal/Terminal$Signal;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 0 0: aload 0
aload 1
invokevirtual jdk.internal.org.jline.terminal.impl.PosixSysTerminal.raise:(Ljdk/internal/org/jline/terminal/Terminal$Signal;)V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/org/jline/terminal/impl/PosixSysTerminal;
}
SourceFile: "PosixSysTerminal.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Entry = java.util.Map$Entry of java.util.Map
public final Signal = jdk.internal.org.jline.terminal.Terminal$Signal of jdk.internal.org.jline.terminal.Terminal
public abstract SignalHandler = jdk.internal.org.jline.terminal.Terminal$SignalHandler of jdk.internal.org.jline.terminal.Terminal
public abstract Task = jdk.internal.org.jline.utils.ShutdownHooks$Task of jdk.internal.org.jline.utils.ShutdownHooks