public class jdk.internal.org.jline.terminal.impl.ExecPty extends jdk.internal.org.jline.terminal.impl.AbstractPty implements jdk.internal.org.jline.terminal.spi.Pty
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.org.jline.terminal.impl.ExecPty
super_class: jdk.internal.org.jline.terminal.impl.AbstractPty
{
private final java.lang.String name;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean system;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public static jdk.internal.org.jline.terminal.spi.Pty current();
descriptor: ()Ljdk/internal/org/jline/terminal/spi/Pty;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=0
0: iconst_1
iconst_1
anewarray java.lang.String
dup
iconst_0
getstatic jdk.internal.org.jline.utils.OSUtils.TTY_COMMAND:Ljava/lang/String;
aastore
invokestatic jdk.internal.org.jline.utils.ExecHelper.exec:(Z[Ljava/lang/String;)Ljava/lang/String;
astore 0
start local 0 1: new jdk.internal.org.jline.terminal.impl.ExecPty
dup
aload 0
invokevirtual java.lang.String.trim:()Ljava/lang/String;
iconst_1
invokespecial jdk.internal.org.jline.terminal.impl.ExecPty.<init>:(Ljava/lang/String;Z)V
2: areturn
end local 0 3: StackMap locals:
StackMap stack: java.io.IOException
astore 0
start local 0 4: new java.io.IOException
dup
ldc "Not a tty"
aload 0
invokespecial java.io.IOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 3 0 result Ljava/lang/String;
4 5 0 e Ljava/io/IOException;
Exception table:
from to target type
0 2 3 Class java.io.IOException
Exceptions:
throws java.io.IOException
protected void <init>(java.lang.String, boolean);
descriptor: (Ljava/lang/String;Z)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial jdk.internal.org.jline.terminal.impl.AbstractPty.<init>:()V
1: aload 0
aload 1
putfield jdk.internal.org.jline.terminal.impl.ExecPty.name:Ljava/lang/String;
2: aload 0
iload 2
putfield jdk.internal.org.jline.terminal.impl.ExecPty.system:Z
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/org/jline/terminal/impl/ExecPty;
0 4 1 name Ljava/lang/String;
0 4 2 system Z
MethodParameters:
Name Flags
name
system
public void close();
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/internal/org/jline/terminal/impl/ExecPty;
Exceptions:
throws java.io.IOException
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
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.ExecPty.name:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/org/jline/terminal/impl/ExecPty;
public java.io.InputStream getMasterInput();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/org/jline/terminal/impl/ExecPty;
public java.io.OutputStream getMasterOutput();
descriptor: ()Ljava/io/OutputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/org/jline/terminal/impl/ExecPty;
protected java.io.InputStream doGetSlaveInput();
descriptor: ()Ljava/io/InputStream;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.org.jline.terminal.impl.ExecPty.system:Z
ifeq 2
1: new java.io.FileInputStream
dup
getstatic java.io.FileDescriptor.in:Ljava/io/FileDescriptor;
invokespecial java.io.FileInputStream.<init>:(Ljava/io/FileDescriptor;)V
goto 3
2: StackMap locals:
StackMap stack:
new java.io.FileInputStream
dup
aload 0
invokevirtual jdk.internal.org.jline.terminal.impl.ExecPty.getName:()Ljava/lang/String;
invokespecial java.io.FileInputStream.<init>:(Ljava/lang/String;)V
3: StackMap locals:
StackMap stack: java.io.FileInputStream
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/org/jline/terminal/impl/ExecPty;
Exceptions:
throws java.io.IOException
public java.io.OutputStream getSlaveOutput();
descriptor: ()Ljava/io/OutputStream;
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.ExecPty.system:Z
ifeq 2
1: new java.io.FileOutputStream
dup
getstatic java.io.FileDescriptor.out:Ljava/io/FileDescriptor;
invokespecial java.io.FileOutputStream.<init>:(Ljava/io/FileDescriptor;)V
goto 3
2: StackMap locals:
StackMap stack:
new java.io.FileOutputStream
dup
aload 0
invokevirtual jdk.internal.org.jline.terminal.impl.ExecPty.getName:()Ljava/lang/String;
invokespecial java.io.FileOutputStream.<init>:(Ljava/lang/String;)V
3: StackMap locals:
StackMap stack: java.io.FileOutputStream
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/org/jline/terminal/impl/ExecPty;
Exceptions:
throws java.io.IOException
public jdk.internal.org.jline.terminal.Attributes getAttr();
descriptor: ()Ljdk/internal/org/jline/terminal/Attributes;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual jdk.internal.org.jline.terminal.impl.ExecPty.doGetConfig:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
invokestatic jdk.internal.org.jline.terminal.impl.ExecPty.doGetAttr:(Ljava/lang/String;)Ljdk/internal/org/jline/terminal/Attributes;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/org/jline/terminal/impl/ExecPty;
1 2 1 cfg Ljava/lang/String;
Exceptions:
throws java.io.IOException
protected void doSetAttr(jdk.internal.org.jline.terminal.Attributes);
descriptor: (Ljdk/internal/org/jline/terminal/Attributes;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 0
invokevirtual jdk.internal.org.jline.terminal.impl.ExecPty.getAttr:()Ljdk/internal/org/jline/terminal/Attributes;
invokevirtual jdk.internal.org.jline.terminal.impl.ExecPty.getFlagsToSet:(Ljdk/internal/org/jline/terminal/Attributes;Ljdk/internal/org/jline/terminal/Attributes;)Ljava/util/List;
astore 2
start local 2 1: aload 2
invokeinterface java.util.List.isEmpty:()Z
ifne 14
2: aload 2
iconst_0
getstatic jdk.internal.org.jline.utils.OSUtils.STTY_COMMAND:Ljava/lang/String;
invokeinterface java.util.List.add:(ILjava/lang/Object;)V
3: aload 0
getfield jdk.internal.org.jline.terminal.impl.ExecPty.system:Z
ifne 6
4: aload 2
iconst_1
getstatic jdk.internal.org.jline.utils.OSUtils.STTY_F_OPTION:Ljava/lang/String;
invokeinterface java.util.List.add:(ILjava/lang/Object;)V
5: aload 2
iconst_2
aload 0
invokevirtual jdk.internal.org.jline.terminal.impl.ExecPty.getName:()Ljava/lang/String;
invokeinterface java.util.List.add:(ILjava/lang/Object;)V
6: StackMap locals: java.util.List
StackMap stack:
aload 0
getfield jdk.internal.org.jline.terminal.impl.ExecPty.system:Z
aload 2
aload 2
invokeinterface java.util.List.size:()I
anewarray java.lang.String
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.lang.String[]
invokestatic jdk.internal.org.jline.utils.ExecHelper.exec:(Z[Ljava/lang/String;)Ljava/lang/String;
pop
7: goto 14
StackMap locals:
StackMap stack: java.io.IOException
8: astore 3
start local 3 9: aload 3
invokevirtual java.io.IOException.toString:()Ljava/lang/String;
ldc "unable to perform all requested operations"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 13
10: aload 0
aload 1
aload 0
invokevirtual jdk.internal.org.jline.terminal.impl.ExecPty.getAttr:()Ljdk/internal/org/jline/terminal/Attributes;
invokevirtual jdk.internal.org.jline.terminal.impl.ExecPty.getFlagsToSet:(Ljdk/internal/org/jline/terminal/Attributes;Ljdk/internal/org/jline/terminal/Attributes;)Ljava/util/List;
astore 2
11: aload 2
invokeinterface java.util.List.isEmpty:()Z
ifne 14
12: new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "Could not set the following flags: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ", "
aload 2
invokestatic java.lang.String.join:(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
invokespecial java.io.IOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
13: StackMap locals: java.io.IOException
StackMap stack:
aload 3
athrow
end local 3 14: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljdk/internal/org/jline/terminal/impl/ExecPty;
0 15 1 attr Ljdk/internal/org/jline/terminal/Attributes;
1 15 2 commands Ljava/util/List<Ljava/lang/String;>;
9 14 3 e Ljava/io/IOException;
Exception table:
from to target type
6 7 8 Class java.io.IOException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
attr
protected java.util.List<java.lang.String> getFlagsToSet(jdk.internal.org.jline.terminal.Attributes, jdk.internal.org.jline.terminal.Attributes);
descriptor: (Ljdk/internal/org/jline/terminal/Attributes;Ljdk/internal/org/jline/terminal/Attributes;)Ljava/util/List;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=11, args_size=3
start local 0 start local 1 start local 2 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 3
start local 3 1: invokestatic jdk.internal.org.jline.terminal.Attributes$InputFlag.values:()[Ljdk/internal/org/jline/terminal/Attributes$InputFlag;
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 8
StackMap locals: jdk.internal.org.jline.terminal.impl.ExecPty jdk.internal.org.jline.terminal.Attributes jdk.internal.org.jline.terminal.Attributes java.util.List top int int jdk.internal.org.jline.terminal.Attributes$InputFlag[]
StackMap stack:
2: aload 7
iload 5
aaload
astore 4
start local 4 3: aload 1
aload 4
invokevirtual jdk.internal.org.jline.terminal.Attributes.getInputFlag:(Ljdk/internal/org/jline/terminal/Attributes$InputFlag;)Z
aload 2
aload 4
invokevirtual jdk.internal.org.jline.terminal.Attributes.getInputFlag:(Ljdk/internal/org/jline/terminal/Attributes$InputFlag;)Z
if_icmpeq 7
4: aload 3
aload 1
aload 4
invokevirtual jdk.internal.org.jline.terminal.Attributes.getInputFlag:(Ljdk/internal/org/jline/terminal/Attributes$InputFlag;)Z
ifeq 5
aload 4
invokevirtual jdk.internal.org.jline.terminal.Attributes$InputFlag.name:()Ljava/lang/String;
goto 6
StackMap locals: jdk.internal.org.jline.terminal.impl.ExecPty jdk.internal.org.jline.terminal.Attributes jdk.internal.org.jline.terminal.Attributes java.util.List jdk.internal.org.jline.terminal.Attributes$InputFlag int int jdk.internal.org.jline.terminal.Attributes$InputFlag[]
StackMap stack: java.util.List
5: new java.lang.StringBuilder
dup
ldc "-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual jdk.internal.org.jline.terminal.Attributes$InputFlag.name:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
StackMap locals: jdk.internal.org.jline.terminal.impl.ExecPty jdk.internal.org.jline.terminal.Attributes jdk.internal.org.jline.terminal.Attributes java.util.List jdk.internal.org.jline.terminal.Attributes$InputFlag int int jdk.internal.org.jline.terminal.Attributes$InputFlag[]
StackMap stack: java.util.List java.lang.String
6: invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 7: StackMap locals: jdk.internal.org.jline.terminal.impl.ExecPty jdk.internal.org.jline.terminal.Attributes jdk.internal.org.jline.terminal.Attributes java.util.List top int int jdk.internal.org.jline.terminal.Attributes$InputFlag[]
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
8: iload 5
iload 6
if_icmplt 2
9: invokestatic jdk.internal.org.jline.terminal.Attributes$OutputFlag.values:()[Ljdk/internal/org/jline/terminal/Attributes$OutputFlag;
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 16
StackMap locals: jdk.internal.org.jline.terminal.impl.ExecPty jdk.internal.org.jline.terminal.Attributes jdk.internal.org.jline.terminal.Attributes java.util.List top int int jdk.internal.org.jline.terminal.Attributes$OutputFlag[]
StackMap stack:
10: aload 7
iload 5
aaload
astore 4
start local 4 11: aload 1
aload 4
invokevirtual jdk.internal.org.jline.terminal.Attributes.getOutputFlag:(Ljdk/internal/org/jline/terminal/Attributes$OutputFlag;)Z
aload 2
aload 4
invokevirtual jdk.internal.org.jline.terminal.Attributes.getOutputFlag:(Ljdk/internal/org/jline/terminal/Attributes$OutputFlag;)Z
if_icmpeq 15
12: aload 3
aload 1
aload 4
invokevirtual jdk.internal.org.jline.terminal.Attributes.getOutputFlag:(Ljdk/internal/org/jline/terminal/Attributes$OutputFlag;)Z
ifeq 13
aload 4
invokevirtual jdk.internal.org.jline.terminal.Attributes$OutputFlag.name:()Ljava/lang/String;
goto 14
StackMap locals: jdk.internal.org.jline.terminal.impl.ExecPty jdk.internal.org.jline.terminal.Attributes jdk.internal.org.jline.terminal.Attributes java.util.List jdk.internal.org.jline.terminal.Attributes$OutputFlag int int jdk.internal.org.jline.terminal.Attributes$OutputFlag[]
StackMap stack: java.util.List
13: new java.lang.StringBuilder
dup
ldc "-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual jdk.internal.org.jline.terminal.Attributes$OutputFlag.name:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
StackMap locals: jdk.internal.org.jline.terminal.impl.ExecPty jdk.internal.org.jline.terminal.Attributes jdk.internal.org.jline.terminal.Attributes java.util.List jdk.internal.org.jline.terminal.Attributes$OutputFlag int int jdk.internal.org.jline.terminal.Attributes$OutputFlag[]
StackMap stack: java.util.List java.lang.String
14: invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 15: StackMap locals: jdk.internal.org.jline.terminal.impl.ExecPty jdk.internal.org.jline.terminal.Attributes jdk.internal.org.jline.terminal.Attributes java.util.List top int int jdk.internal.org.jline.terminal.Attributes$OutputFlag[]
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
16: iload 5
iload 6
if_icmplt 10
17: invokestatic jdk.internal.org.jline.terminal.Attributes$ControlFlag.values:()[Ljdk/internal/org/jline/terminal/Attributes$ControlFlag;
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 24
StackMap locals: jdk.internal.org.jline.terminal.impl.ExecPty jdk.internal.org.jline.terminal.Attributes jdk.internal.org.jline.terminal.Attributes java.util.List top int int jdk.internal.org.jline.terminal.Attributes$ControlFlag[]
StackMap stack:
18: aload 7
iload 5
aaload
astore 4
start local 4 19: aload 1
aload 4
invokevirtual jdk.internal.org.jline.terminal.Attributes.getControlFlag:(Ljdk/internal/org/jline/terminal/Attributes$ControlFlag;)Z
aload 2
aload 4
invokevirtual jdk.internal.org.jline.terminal.Attributes.getControlFlag:(Ljdk/internal/org/jline/terminal/Attributes$ControlFlag;)Z
if_icmpeq 23
20: aload 3
aload 1
aload 4
invokevirtual jdk.internal.org.jline.terminal.Attributes.getControlFlag:(Ljdk/internal/org/jline/terminal/Attributes$ControlFlag;)Z
ifeq 21
aload 4
invokevirtual jdk.internal.org.jline.terminal.Attributes$ControlFlag.name:()Ljava/lang/String;
goto 22
StackMap locals: jdk.internal.org.jline.terminal.impl.ExecPty jdk.internal.org.jline.terminal.Attributes jdk.internal.org.jline.terminal.Attributes java.util.List jdk.internal.org.jline.terminal.Attributes$ControlFlag int int jdk.internal.org.jline.terminal.Attributes$ControlFlag[]
StackMap stack: java.util.List
21: new java.lang.StringBuilder
dup
ldc "-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual jdk.internal.org.jline.terminal.Attributes$ControlFlag.name:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
StackMap locals: jdk.internal.org.jline.terminal.impl.ExecPty jdk.internal.org.jline.terminal.Attributes jdk.internal.org.jline.terminal.Attributes java.util.List jdk.internal.org.jline.terminal.Attributes$ControlFlag int int jdk.internal.org.jline.terminal.Attributes$ControlFlag[]
StackMap stack: java.util.List java.lang.String
22: invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 23: StackMap locals: jdk.internal.org.jline.terminal.impl.ExecPty jdk.internal.org.jline.terminal.Attributes jdk.internal.org.jline.terminal.Attributes java.util.List top int int jdk.internal.org.jline.terminal.Attributes$ControlFlag[]
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
24: iload 5
iload 6
if_icmplt 18
25: invokestatic jdk.internal.org.jline.terminal.Attributes$LocalFlag.values:()[Ljdk/internal/org/jline/terminal/Attributes$LocalFlag;
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 32
StackMap locals: jdk.internal.org.jline.terminal.impl.ExecPty jdk.internal.org.jline.terminal.Attributes jdk.internal.org.jline.terminal.Attributes java.util.List top int int jdk.internal.org.jline.terminal.Attributes$LocalFlag[]
StackMap stack:
26: aload 7
iload 5
aaload
astore 4
start local 4 27: aload 1
aload 4
invokevirtual jdk.internal.org.jline.terminal.Attributes.getLocalFlag:(Ljdk/internal/org/jline/terminal/Attributes$LocalFlag;)Z
aload 2
aload 4
invokevirtual jdk.internal.org.jline.terminal.Attributes.getLocalFlag:(Ljdk/internal/org/jline/terminal/Attributes$LocalFlag;)Z
if_icmpeq 31
28: aload 3
aload 1
aload 4
invokevirtual jdk.internal.org.jline.terminal.Attributes.getLocalFlag:(Ljdk/internal/org/jline/terminal/Attributes$LocalFlag;)Z
ifeq 29
aload 4
invokevirtual jdk.internal.org.jline.terminal.Attributes$LocalFlag.name:()Ljava/lang/String;
goto 30
StackMap locals: jdk.internal.org.jline.terminal.impl.ExecPty jdk.internal.org.jline.terminal.Attributes jdk.internal.org.jline.terminal.Attributes java.util.List jdk.internal.org.jline.terminal.Attributes$LocalFlag int int jdk.internal.org.jline.terminal.Attributes$LocalFlag[]
StackMap stack: java.util.List
29: new java.lang.StringBuilder
dup
ldc "-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual jdk.internal.org.jline.terminal.Attributes$LocalFlag.name:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
StackMap locals: jdk.internal.org.jline.terminal.impl.ExecPty jdk.internal.org.jline.terminal.Attributes jdk.internal.org.jline.terminal.Attributes java.util.List jdk.internal.org.jline.terminal.Attributes$LocalFlag int int jdk.internal.org.jline.terminal.Attributes$LocalFlag[]
StackMap stack: java.util.List java.lang.String
30: invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 31: StackMap locals: jdk.internal.org.jline.terminal.impl.ExecPty jdk.internal.org.jline.terminal.Attributes jdk.internal.org.jline.terminal.Attributes java.util.List top int int jdk.internal.org.jline.terminal.Attributes$LocalFlag[]
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
32: iload 5
iload 6
if_icmplt 26
33: ldc "os.name"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
ldc "hp"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 34
ldc "^-"
goto 35
StackMap locals: jdk.internal.org.jline.terminal.impl.ExecPty jdk.internal.org.jline.terminal.Attributes jdk.internal.org.jline.terminal.Attributes java.util.List
StackMap stack:
34: ldc "undef"
StackMap locals:
StackMap stack: java.lang.String
35: astore 4
start local 4 36: invokestatic jdk.internal.org.jline.terminal.Attributes$ControlChar.values:()[Ljdk/internal/org/jline/terminal/Attributes$ControlChar;
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 59
StackMap locals: jdk.internal.org.jline.terminal.impl.ExecPty jdk.internal.org.jline.terminal.Attributes jdk.internal.org.jline.terminal.Attributes java.util.List java.lang.String top int int jdk.internal.org.jline.terminal.Attributes$ControlChar[]
StackMap stack:
37: aload 8
iload 6
aaload
astore 5
start local 5 38: aload 1
aload 5
invokevirtual jdk.internal.org.jline.terminal.Attributes.getControlChar:(Ljdk/internal/org/jline/terminal/Attributes$ControlChar;)I
aload 2
aload 5
invokevirtual jdk.internal.org.jline.terminal.Attributes.getControlChar:(Ljdk/internal/org/jline/terminal/Attributes$ControlChar;)I
if_icmpeq 58
39: ldc ""
astore 9
start local 9 40: aload 1
aload 5
invokevirtual jdk.internal.org.jline.terminal.Attributes.getControlChar:(Ljdk/internal/org/jline/terminal/Attributes$ControlChar;)I
istore 10
start local 10 41: iload 10
iconst_m1
if_icmpne 43
42: goto 58
43: StackMap locals: jdk.internal.org.jline.terminal.impl.ExecPty jdk.internal.org.jline.terminal.Attributes jdk.internal.org.jline.terminal.Attributes java.util.List java.lang.String jdk.internal.org.jline.terminal.Attributes$ControlChar int int jdk.internal.org.jline.terminal.Attributes$ControlChar[] java.lang.String int
StackMap stack:
aload 3
aload 5
invokevirtual jdk.internal.org.jline.terminal.Attributes$ControlChar.name:()Ljava/lang/String;
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
44: aload 5
getstatic jdk.internal.org.jline.terminal.Attributes$ControlChar.VMIN:Ljdk/internal/org/jline/terminal/Attributes$ControlChar;
if_acmpeq 45
aload 5
getstatic jdk.internal.org.jline.terminal.Attributes$ControlChar.VTIME:Ljdk/internal/org/jline/terminal/Attributes$ControlChar;
if_acmpne 47
45: StackMap locals:
StackMap stack:
aload 3
iload 10
invokestatic java.lang.Integer.toBinaryString:(I)Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
46: goto 58
47: StackMap locals:
StackMap stack:
iload 10
ifne 50
48: aload 3
aload 4
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
49: goto 58
50: StackMap locals:
StackMap stack:
iload 10
sipush 128
if_icmplt 53
51: iinc 10 -128
52: new java.lang.StringBuilder
dup
aload 9
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "M-"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 9
53: StackMap locals:
StackMap stack:
iload 10
bipush 32
if_icmplt 54
iload 10
bipush 127
if_icmpne 56
54: StackMap locals:
StackMap stack:
iload 10
bipush 64
ixor
istore 10
55: new java.lang.StringBuilder
dup
aload 9
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)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;
astore 9
56: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 9
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 10
i2c
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 9
57: aload 3
aload 9
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 10 end local 9 end local 5 58: StackMap locals: jdk.internal.org.jline.terminal.impl.ExecPty jdk.internal.org.jline.terminal.Attributes jdk.internal.org.jline.terminal.Attributes java.util.List java.lang.String top int int jdk.internal.org.jline.terminal.Attributes$ControlChar[]
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
59: iload 6
iload 7
if_icmplt 37
60: aload 3
areturn
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/internal/org/jline/terminal/impl/ExecPty;
0 61 1 attr Ljdk/internal/org/jline/terminal/Attributes;
0 61 2 current Ljdk/internal/org/jline/terminal/Attributes;
1 61 3 commands Ljava/util/List<Ljava/lang/String;>;
3 7 4 flag Ljdk/internal/org/jline/terminal/Attributes$InputFlag;
11 15 4 flag Ljdk/internal/org/jline/terminal/Attributes$OutputFlag;
19 23 4 flag Ljdk/internal/org/jline/terminal/Attributes$ControlFlag;
27 31 4 flag Ljdk/internal/org/jline/terminal/Attributes$LocalFlag;
36 61 4 undef Ljava/lang/String;
38 58 5 cchar Ljdk/internal/org/jline/terminal/Attributes$ControlChar;
40 58 9 str Ljava/lang/String;
41 58 10 v I
Signature: (Ljdk/internal/org/jline/terminal/Attributes;Ljdk/internal/org/jline/terminal/Attributes;)Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
attr
current
public jdk.internal.org.jline.terminal.Size getSize();
descriptor: ()Ljdk/internal/org/jline/terminal/Size;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual jdk.internal.org.jline.terminal.impl.ExecPty.doGetConfig:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
invokestatic jdk.internal.org.jline.terminal.impl.ExecPty.doGetSize:(Ljava/lang/String;)Ljdk/internal/org/jline/terminal/Size;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/org/jline/terminal/impl/ExecPty;
1 2 1 cfg Ljava/lang/String;
Exceptions:
throws java.io.IOException
protected java.lang.String doGetConfig();
descriptor: ()Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.org.jline.terminal.impl.ExecPty.system:Z
ifeq 2
1: iconst_1
iconst_2
anewarray java.lang.String
dup
iconst_0
getstatic jdk.internal.org.jline.utils.OSUtils.STTY_COMMAND:Ljava/lang/String;
aastore
dup
iconst_1
ldc "-a"
aastore
invokestatic jdk.internal.org.jline.utils.ExecHelper.exec:(Z[Ljava/lang/String;)Ljava/lang/String;
goto 3
2: StackMap locals:
StackMap stack:
iconst_0
iconst_4
anewarray java.lang.String
dup
iconst_0
getstatic jdk.internal.org.jline.utils.OSUtils.STTY_COMMAND:Ljava/lang/String;
aastore
dup
iconst_1
getstatic jdk.internal.org.jline.utils.OSUtils.STTY_F_OPTION:Ljava/lang/String;
aastore
dup
iconst_2
aload 0
invokevirtual jdk.internal.org.jline.terminal.impl.ExecPty.getName:()Ljava/lang/String;
aastore
dup
iconst_3
ldc "-a"
aastore
invokestatic jdk.internal.org.jline.utils.ExecHelper.exec:(Z[Ljava/lang/String;)Ljava/lang/String;
3: StackMap locals:
StackMap stack: java.lang.String
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/org/jline/terminal/impl/ExecPty;
Exceptions:
throws java.io.IOException
static jdk.internal.org.jline.terminal.Attributes doGetAttr(java.lang.String);
descriptor: (Ljava/lang/String;)Ljdk/internal/org/jline/terminal/Attributes;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=8, args_size=1
start local 0 0: new jdk.internal.org.jline.terminal.Attributes
dup
invokespecial jdk.internal.org.jline.terminal.Attributes.<init>:()V
astore 1
start local 1 1: invokestatic jdk.internal.org.jline.terminal.Attributes$InputFlag.values:()[Ljdk/internal/org/jline/terminal/Attributes$InputFlag;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 7
StackMap locals: java.lang.String jdk.internal.org.jline.terminal.Attributes top int int jdk.internal.org.jline.terminal.Attributes$InputFlag[]
StackMap stack:
2: aload 5
iload 3
aaload
astore 2
start local 2 3: aload 0
aload 2
invokestatic jdk.internal.org.jline.terminal.impl.ExecPty.doGetFlag:(Ljava/lang/String;Ljava/lang/Enum;)Ljava/lang/Boolean;
astore 6
start local 6 4: aload 6
ifnull 6
5: aload 1
aload 2
aload 6
invokevirtual java.lang.Boolean.booleanValue:()Z
invokevirtual jdk.internal.org.jline.terminal.Attributes.setInputFlag:(Ljdk/internal/org/jline/terminal/Attributes$InputFlag;Z)V
end local 6 end local 2 6: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
7: iload 3
iload 4
if_icmplt 2
8: invokestatic jdk.internal.org.jline.terminal.Attributes$OutputFlag.values:()[Ljdk/internal/org/jline/terminal/Attributes$OutputFlag;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 14
StackMap locals: java.lang.String jdk.internal.org.jline.terminal.Attributes top int int jdk.internal.org.jline.terminal.Attributes$OutputFlag[]
StackMap stack:
9: aload 5
iload 3
aaload
astore 2
start local 2 10: aload 0
aload 2
invokestatic jdk.internal.org.jline.terminal.impl.ExecPty.doGetFlag:(Ljava/lang/String;Ljava/lang/Enum;)Ljava/lang/Boolean;
astore 6
start local 6 11: aload 6
ifnull 13
12: aload 1
aload 2
aload 6
invokevirtual java.lang.Boolean.booleanValue:()Z
invokevirtual jdk.internal.org.jline.terminal.Attributes.setOutputFlag:(Ljdk/internal/org/jline/terminal/Attributes$OutputFlag;Z)V
end local 6 end local 2 13: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
14: iload 3
iload 4
if_icmplt 9
15: invokestatic jdk.internal.org.jline.terminal.Attributes$ControlFlag.values:()[Ljdk/internal/org/jline/terminal/Attributes$ControlFlag;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 21
StackMap locals: java.lang.String jdk.internal.org.jline.terminal.Attributes top int int jdk.internal.org.jline.terminal.Attributes$ControlFlag[]
StackMap stack:
16: aload 5
iload 3
aaload
astore 2
start local 2 17: aload 0
aload 2
invokestatic jdk.internal.org.jline.terminal.impl.ExecPty.doGetFlag:(Ljava/lang/String;Ljava/lang/Enum;)Ljava/lang/Boolean;
astore 6
start local 6 18: aload 6
ifnull 20
19: aload 1
aload 2
aload 6
invokevirtual java.lang.Boolean.booleanValue:()Z
invokevirtual jdk.internal.org.jline.terminal.Attributes.setControlFlag:(Ljdk/internal/org/jline/terminal/Attributes$ControlFlag;Z)V
end local 6 end local 2 20: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
21: iload 3
iload 4
if_icmplt 16
22: invokestatic jdk.internal.org.jline.terminal.Attributes$LocalFlag.values:()[Ljdk/internal/org/jline/terminal/Attributes$LocalFlag;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 28
StackMap locals: java.lang.String jdk.internal.org.jline.terminal.Attributes top int int jdk.internal.org.jline.terminal.Attributes$LocalFlag[]
StackMap stack:
23: aload 5
iload 3
aaload
astore 2
start local 2 24: aload 0
aload 2
invokestatic jdk.internal.org.jline.terminal.impl.ExecPty.doGetFlag:(Ljava/lang/String;Ljava/lang/Enum;)Ljava/lang/Boolean;
astore 6
start local 6 25: aload 6
ifnull 27
26: aload 1
aload 2
aload 6
invokevirtual java.lang.Boolean.booleanValue:()Z
invokevirtual jdk.internal.org.jline.terminal.Attributes.setLocalFlag:(Ljdk/internal/org/jline/terminal/Attributes$LocalFlag;Z)V
end local 6 end local 2 27: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
28: iload 3
iload 4
if_icmplt 23
29: invokestatic jdk.internal.org.jline.terminal.Attributes$ControlChar.values:()[Ljdk/internal/org/jline/terminal/Attributes$ControlChar;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 38
StackMap locals: java.lang.String jdk.internal.org.jline.terminal.Attributes top int int jdk.internal.org.jline.terminal.Attributes$ControlChar[]
StackMap stack:
30: aload 5
iload 3
aaload
astore 2
start local 2 31: aload 2
invokevirtual jdk.internal.org.jline.terminal.Attributes$ControlChar.name:()Ljava/lang/String;
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 6
start local 6 32: ldc "reprint"
aload 6
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 34
33: ldc "(?:reprint|rprnt)"
astore 6
34: StackMap locals: java.lang.String jdk.internal.org.jline.terminal.Attributes jdk.internal.org.jline.terminal.Attributes$ControlChar int int jdk.internal.org.jline.terminal.Attributes$ControlChar[] java.lang.String
StackMap stack:
new java.lang.StringBuilder
dup
ldc "[\\s;]"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\\s*=\\s*(.+?)[\\s;]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
aload 0
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 7
start local 7 35: aload 7
invokevirtual java.util.regex.Matcher.find:()Z
ifeq 37
36: aload 1
aload 2
aload 7
iconst_1
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
invokevirtual java.lang.String.toUpperCase:()Ljava/lang/String;
invokestatic jdk.internal.org.jline.terminal.impl.ExecPty.parseControlChar:(Ljava/lang/String;)I
invokevirtual jdk.internal.org.jline.terminal.Attributes.setControlChar:(Ljdk/internal/org/jline/terminal/Attributes$ControlChar;I)V
end local 7 end local 6 end local 2 37: StackMap locals: java.lang.String jdk.internal.org.jline.terminal.Attributes top int int jdk.internal.org.jline.terminal.Attributes$ControlChar[]
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
38: iload 3
iload 4
if_icmplt 30
39: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 40 0 cfg Ljava/lang/String;
1 40 1 attributes Ljdk/internal/org/jline/terminal/Attributes;
3 6 2 flag Ljdk/internal/org/jline/terminal/Attributes$InputFlag;
4 6 6 value Ljava/lang/Boolean;
10 13 2 flag Ljdk/internal/org/jline/terminal/Attributes$OutputFlag;
11 13 6 value Ljava/lang/Boolean;
17 20 2 flag Ljdk/internal/org/jline/terminal/Attributes$ControlFlag;
18 20 6 value Ljava/lang/Boolean;
24 27 2 flag Ljdk/internal/org/jline/terminal/Attributes$LocalFlag;
25 27 6 value Ljava/lang/Boolean;
31 37 2 cchar Ljdk/internal/org/jline/terminal/Attributes$ControlChar;
32 37 6 name Ljava/lang/String;
35 37 7 matcher Ljava/util/regex/Matcher;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
cfg
private static java.lang.Boolean doGetFlag(java.lang.String, java.lang.Enum<?>);
descriptor: (Ljava/lang/String;Ljava/lang/Enum;)Ljava/lang/Boolean;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
ldc "(?:^|[\\s;])(\\-?"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.Enum.name:()Ljava/lang/String;
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ")(?:[\\s;]|$)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
aload 0
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 2
start local 2 1: aload 2
invokevirtual java.util.regex.Matcher.find:()Z
ifeq 4
aload 2
iconst_1
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
ldc "-"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 2
iconst_0
goto 3
StackMap locals: java.util.regex.Matcher
StackMap stack:
2: iconst_1
StackMap locals:
StackMap stack: int
3: invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
goto 5
StackMap locals:
StackMap stack:
4: aconst_null
StackMap locals:
StackMap stack: java.lang.Boolean
5: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 cfg Ljava/lang/String;
0 6 1 flag Ljava/lang/Enum<*>;
1 6 2 matcher Ljava/util/regex/Matcher;
Signature: (Ljava/lang/String;Ljava/lang/Enum<*>;)Ljava/lang/Boolean;
MethodParameters:
Name Flags
cfg
flag
static int parseControlChar(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc "<UNDEF>"
aload 0
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 2
1: iconst_m1
ireturn
2: StackMap locals:
StackMap stack:
ldc "DEL"
aload 0
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 4
3: bipush 127
ireturn
4: StackMap locals:
StackMap stack:
aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 48
if_icmpne 6
5: aload 0
bipush 8
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;I)I
ireturn
6: StackMap locals:
StackMap stack:
aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 49
if_icmplt 8
aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 57
if_icmpgt 8
7: aload 0
bipush 10
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;I)I
ireturn
8: StackMap locals:
StackMap stack:
aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 94
if_icmpne 12
9: aload 0
iconst_1
invokevirtual java.lang.String.charAt:(I)C
bipush 63
if_icmpne 11
10: bipush 127
ireturn
11: StackMap locals:
StackMap stack:
aload 0
iconst_1
invokevirtual java.lang.String.charAt:(I)C
bipush 64
isub
ireturn
12: StackMap locals:
StackMap stack:
aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 77
if_icmpne 18
aload 0
iconst_1
invokevirtual java.lang.String.charAt:(I)C
bipush 45
if_icmpne 18
13: aload 0
iconst_2
invokevirtual java.lang.String.charAt:(I)C
bipush 94
if_icmpne 17
14: aload 0
iconst_3
invokevirtual java.lang.String.charAt:(I)C
bipush 63
if_icmpne 16
15: sipush 255
ireturn
16: StackMap locals:
StackMap stack:
aload 0
iconst_3
invokevirtual java.lang.String.charAt:(I)C
bipush 64
isub
sipush 128
iadd
ireturn
17: StackMap locals:
StackMap stack:
aload 0
iconst_2
invokevirtual java.lang.String.charAt:(I)C
sipush 128
iadd
ireturn
18: StackMap locals:
StackMap stack:
aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 str Ljava/lang/String;
MethodParameters:
Name Flags
str
static jdk.internal.org.jline.terminal.Size doGetSize(java.lang.String);
descriptor: (Ljava/lang/String;)Ljdk/internal/org/jline/terminal/Size;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: new jdk.internal.org.jline.terminal.Size
dup
ldc "columns"
aload 0
invokestatic jdk.internal.org.jline.terminal.impl.ExecPty.doGetInt:(Ljava/lang/String;Ljava/lang/String;)I
ldc "rows"
aload 0
invokestatic jdk.internal.org.jline.terminal.impl.ExecPty.doGetInt:(Ljava/lang/String;Ljava/lang/String;)I
invokespecial jdk.internal.org.jline.terminal.Size.<init>:(II)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 cfg Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
cfg
static int doGetInt(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)I
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=8, args_size=2
start local 0 start local 1 0: iconst_3
anewarray java.lang.String
dup
iconst_0
1: new java.lang.StringBuilder
dup
ldc "\\b([0-9]+)\\s+"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\\b"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
dup
iconst_1
2: new java.lang.StringBuilder
dup
ldc "\\b"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\\s+([0-9]+)\\b"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
dup
iconst_2
3: new java.lang.StringBuilder
dup
ldc "\\b"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\\s*=\\s*([0-9]+)\\b"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
4: astore 2
start local 2 5: aload 2
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 11
StackMap locals: java.lang.String java.lang.String java.lang.String[] top int int java.lang.String[]
StackMap stack:
6: aload 6
iload 4
aaload
astore 3
start local 3 7: aload 3
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
aload 1
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 7
start local 7 8: aload 7
invokevirtual java.util.regex.Matcher.find:()Z
ifeq 10
9: aload 7
iconst_1
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
ireturn
end local 7 end local 3 10: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
11: iload 4
iload 5
if_icmplt 6
12: new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "Unable to parse "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 name Ljava/lang/String;
0 13 1 cfg Ljava/lang/String;
5 13 2 patterns [Ljava/lang/String;
7 10 3 pattern Ljava/lang/String;
8 10 7 matcher Ljava/util/regex/Matcher;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
name
cfg
public void setSize(jdk.internal.org.jline.terminal.Size);
descriptor: (Ljdk/internal/org/jline/terminal/Size;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.org.jline.terminal.impl.ExecPty.system:Z
ifeq 7
1: iconst_1
iconst_5
anewarray java.lang.String
dup
iconst_0
2: getstatic jdk.internal.org.jline.utils.OSUtils.STTY_COMMAND:Ljava/lang/String;
aastore
dup
iconst_1
3: ldc "columns"
aastore
dup
iconst_2
aload 1
invokevirtual jdk.internal.org.jline.terminal.Size.getColumns:()I
invokestatic java.lang.Integer.toString:(I)Ljava/lang/String;
aastore
dup
iconst_3
4: ldc "rows"
aastore
dup
iconst_4
aload 1
invokevirtual jdk.internal.org.jline.terminal.Size.getRows:()I
invokestatic java.lang.Integer.toString:(I)Ljava/lang/String;
aastore
5: invokestatic jdk.internal.org.jline.utils.ExecHelper.exec:(Z[Ljava/lang/String;)Ljava/lang/String;
pop
6: goto 13
7: StackMap locals:
StackMap stack:
iconst_0
bipush 7
anewarray java.lang.String
dup
iconst_0
8: getstatic jdk.internal.org.jline.utils.OSUtils.STTY_COMMAND:Ljava/lang/String;
aastore
dup
iconst_1
9: getstatic jdk.internal.org.jline.utils.OSUtils.STTY_F_OPTION:Ljava/lang/String;
aastore
dup
iconst_2
aload 0
invokevirtual jdk.internal.org.jline.terminal.impl.ExecPty.getName:()Ljava/lang/String;
aastore
dup
iconst_3
10: ldc "columns"
aastore
dup
iconst_4
aload 1
invokevirtual jdk.internal.org.jline.terminal.Size.getColumns:()I
invokestatic java.lang.Integer.toString:(I)Ljava/lang/String;
aastore
dup
iconst_5
11: ldc "rows"
aastore
dup
bipush 6
aload 1
invokevirtual jdk.internal.org.jline.terminal.Size.getRows:()I
invokestatic java.lang.Integer.toString:(I)Ljava/lang/String;
aastore
12: invokestatic jdk.internal.org.jline.utils.ExecHelper.exec:(Z[Ljava/lang/String;)Ljava/lang/String;
pop
13: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljdk/internal/org/jline/terminal/impl/ExecPty;
0 14 1 size Ljdk/internal/org/jline/terminal/Size;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
size
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "ExecPty["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual jdk.internal.org.jline.terminal.impl.ExecPty.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield jdk.internal.org.jline.terminal.impl.ExecPty.system:Z
ifeq 1
ldc ", system]"
goto 2
StackMap locals:
StackMap stack: java.lang.StringBuilder
1: ldc "]"
StackMap locals: jdk.internal.org.jline.terminal.impl.ExecPty
StackMap stack: java.lang.StringBuilder java.lang.String
2: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/org/jline/terminal/impl/ExecPty;
}
SourceFile: "ExecPty.java"
InnerClasses:
public final ControlChar = jdk.internal.org.jline.terminal.Attributes$ControlChar of jdk.internal.org.jline.terminal.Attributes
public final ControlFlag = jdk.internal.org.jline.terminal.Attributes$ControlFlag of jdk.internal.org.jline.terminal.Attributes
public final InputFlag = jdk.internal.org.jline.terminal.Attributes$InputFlag of jdk.internal.org.jline.terminal.Attributes
public final LocalFlag = jdk.internal.org.jline.terminal.Attributes$LocalFlag of jdk.internal.org.jline.terminal.Attributes
public final OutputFlag = jdk.internal.org.jline.terminal.Attributes$OutputFlag of jdk.internal.org.jline.terminal.Attributes