final class jdk.internal.jshell.tool.ConsoleIOContext$TestTerminal extends jdk.internal.jline.TerminalSupport
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.internal.jshell.tool.ConsoleIOContext$TestTerminal
super_class: jdk.internal.jline.TerminalSupport
{
private final jdk.internal.jshell.tool.StopDetectingInputStream input;
descriptor: Ljdk/internal/jshell/tool/StopDetectingInputStream;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int height;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(jdk.internal.jshell.tool.StopDetectingInputStream);
descriptor: (Ljdk/internal/jshell/tool/StopDetectingInputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 // jdk.internal.jshell.tool.ConsoleIOContext$TestTerminal this
start local 1 // jdk.internal.jshell.tool.StopDetectingInputStream input
0: .line 1181
aload 0 /* this */
iconst_1
invokespecial jdk.internal.jline.TerminalSupport.<init>:(Z)V
1: .line 1182
aload 0 /* this */
ldc "test.terminal.ansi.supported"
invokestatic java.lang.Boolean.getBoolean:(Ljava/lang/String;)Z
invokevirtual jdk.internal.jshell.tool.ConsoleIOContext$TestTerminal.setAnsiSupported:(Z)V
2: .line 1183
aload 0 /* this */
iconst_0
invokevirtual jdk.internal.jshell.tool.ConsoleIOContext$TestTerminal.setEchoEnabled:(Z)V
3: .line 1184
aload 0 /* this */
aload 1 /* input */
putfield jdk.internal.jshell.tool.ConsoleIOContext$TestTerminal.input:Ljdk/internal/jshell/tool/StopDetectingInputStream;
4: .line 1185
bipush 24
istore 2 /* h */
start local 2 // int h
5: .line 1187
ldc "test.terminal.height"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 3 /* hp */
start local 3 // java.lang.String hp
6: .line 1188
aload 3 /* hp */
ifnull 10
aload 3 /* hp */
invokevirtual java.lang.String.isEmpty:()Z
ifne 10
7: .line 1189
aload 3 /* hp */
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 2 /* h */
end local 3 // java.lang.String hp
8: .line 1191
goto 10
StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext$TestTerminal jdk.internal.jshell.tool.StopDetectingInputStream int
StackMap stack: java.lang.Throwable
9: pop
10: .line 1194
StackMap locals:
StackMap stack:
aload 0 /* this */
iload 2 /* h */
putfield jdk.internal.jshell.tool.ConsoleIOContext$TestTerminal.height:I
11: .line 1195
return
end local 2 // int h
end local 1 // jdk.internal.jshell.tool.StopDetectingInputStream input
end local 0 // jdk.internal.jshell.tool.ConsoleIOContext$TestTerminal this
LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljdk/internal/jshell/tool/ConsoleIOContext$TestTerminal;
0 12 1 input Ljdk/internal/jshell/tool/StopDetectingInputStream;
5 12 2 h I
6 8 3 hp Ljava/lang/String;
Exception table:
from to target type
5 8 9 Class java.lang.Throwable
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
input
public java.io.InputStream wrapInIfNeeded(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 // jdk.internal.jshell.tool.ConsoleIOContext$TestTerminal this
start local 1 // java.io.InputStream in
0: .line 1199
aload 0 /* this */
getfield jdk.internal.jshell.tool.ConsoleIOContext$TestTerminal.input:Ljdk/internal/jshell/tool/StopDetectingInputStream;
aload 0 /* this */
aload 1 /* in */
invokespecial jdk.internal.jline.TerminalSupport.wrapInIfNeeded:(Ljava/io/InputStream;)Ljava/io/InputStream;
invokevirtual jdk.internal.jshell.tool.StopDetectingInputStream.setInputStream:(Ljava/io/InputStream;)Ljava/io/InputStream;
areturn
end local 1 // java.io.InputStream in
end local 0 // jdk.internal.jshell.tool.ConsoleIOContext$TestTerminal this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/ConsoleIOContext$TestTerminal;
0 1 1 in Ljava/io/InputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
in
public int getHeight();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 // jdk.internal.jshell.tool.ConsoleIOContext$TestTerminal this
0: .line 1204
aload 0 /* this */
getfield jdk.internal.jshell.tool.ConsoleIOContext$TestTerminal.height:I
ireturn
end local 0 // jdk.internal.jshell.tool.ConsoleIOContext$TestTerminal this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/ConsoleIOContext$TestTerminal;
}
SourceFile: "ConsoleIOContext.java"
NestHost: jdk.internal.jshell.tool.ConsoleIOContext
InnerClasses:
private final TestTerminal = jdk.internal.jshell.tool.ConsoleIOContext$TestTerminal of jdk.internal.jshell.tool.ConsoleIOContext