class jdk.internal.jshell.tool.ConsoleIOContext extends jdk.internal.jshell.tool.IOContext
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.internal.jshell.tool.ConsoleIOContext
super_class: jdk.internal.jshell.tool.IOContext
{
private static final java.lang.String HISTORY_LINE_PREFIX;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "HISTORY_LINE_"
final boolean allowIncompleteInputs;
descriptor: Z
flags: (0x0010) ACC_FINAL
final jdk.internal.jshell.tool.JShellTool repl;
descriptor: Ljdk/internal/jshell/tool/JShellTool;
flags: (0x0010) ACC_FINAL
final jdk.internal.jshell.tool.StopDetectingInputStream input;
descriptor: Ljdk/internal/jshell/tool/StopDetectingInputStream;
flags: (0x0010) ACC_FINAL
final jdk.internal.org.jline.terminal.Attributes originalAttributes;
descriptor: Ljdk/internal/org/jline/terminal/Attributes;
flags: (0x0010) ACC_FINAL
final jdk.internal.org.jline.reader.impl.LineReaderImpl in;
descriptor: Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
flags: (0x0010) ACC_FINAL
final jdk.internal.org.jline.reader.History userInputHistory;
descriptor: Ljdk/internal/org/jline/reader/History;
flags: (0x0010) ACC_FINAL
final java.time.Instant historyLoad;
descriptor: Ljava/time/Instant;
flags: (0x0010) ACC_FINAL
java.lang.String prefix;
descriptor: Ljava/lang/String;
flags: (0x0000)
private static final java.lang.String FIXES_SHORTCUT;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "\u001B[Z"
private static final java.lang.String LINE_SEPARATOR;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String LINE_SEPARATORS2;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int AUTOPRINT_THRESHOLD;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 100
private static final int NEEDED_LINES;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4
private static final long ESCAPE_TIMEOUT;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 100
private byte[] inputBytes;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private int inputBytesPointer;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private static final jdk.internal.jshell.tool.ConsoleIOContext$FixComputer[] FIX_COMPUTERS;
descriptor: [Ljdk/internal/jshell/tool/ConsoleIOContext$FixComputer;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
private static volatile int[] $SWITCH_TABLE$jdk$internal$jshell$tool$ConsoleIOContext$CompletionTask$Result;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=7, locals=0, args_size=0
0: ldc Ljdk/internal/jshell/tool/ConsoleIOContext;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic jdk.internal.jshell.tool.ConsoleIOContext.$assertionsDisabled:Z
3: ldc "line.separator"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
putstatic jdk.internal.jshell.tool.ConsoleIOContext.LINE_SEPARATOR:Ljava/lang/String;
4: new java.lang.StringBuilder
dup
getstatic jdk.internal.jshell.tool.ConsoleIOContext.LINE_SEPARATOR:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic jdk.internal.jshell.tool.ConsoleIOContext.LINE_SEPARATOR:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putstatic jdk.internal.jshell.tool.ConsoleIOContext.LINE_SEPARATORS2:Ljava/lang/String;
5: iconst_3
anewarray jdk.internal.jshell.tool.ConsoleIOContext$FixComputer
dup
iconst_0
6: new jdk.internal.jshell.tool.ConsoleIOContext$1
dup
bipush 118
iconst_0
invokespecial jdk.internal.jshell.tool.ConsoleIOContext$1.<init>:(CZ)V
aastore
dup
iconst_1
7: new jdk.internal.jshell.tool.ConsoleIOContext$2
dup
bipush 109
iconst_0
invokespecial jdk.internal.jshell.tool.ConsoleIOContext$2.<init>:(CZ)V
aastore
dup
iconst_2
8: new jdk.internal.jshell.tool.ConsoleIOContext$3
dup
bipush 105
iconst_1
invokespecial jdk.internal.jshell.tool.ConsoleIOContext$3.<init>:(CZ)V
aastore
9: putstatic jdk.internal.jshell.tool.ConsoleIOContext.FIX_COMPUTERS:[Ljdk/internal/jshell/tool/ConsoleIOContext$FixComputer;
10: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(jdk.internal.jshell.tool.JShellTool, java.io.InputStream, java.io.PrintStream);
descriptor: (Ljdk/internal/jshell/tool/JShellTool;Ljava/io/InputStream;Ljava/io/PrintStream;)V
flags: (0x0000)
Code:
stack=6, locals=15, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial jdk.internal.jshell.tool.IOContext.<init>:()V
1: aload 0
new jdk.internal.org.jline.reader.impl.history.DefaultHistory
dup
invokespecial jdk.internal.org.jline.reader.impl.history.DefaultHistory.<init>:()V
putfield jdk.internal.jshell.tool.ConsoleIOContext.userInputHistory:Ljdk/internal/org/jline/reader/History;
2: aload 0
ldc ""
putfield jdk.internal.jshell.tool.ConsoleIOContext.prefix:Ljava/lang/String;
3: aload 0
ldc "jshell.test.allow.incomplete.inputs"
invokestatic java.lang.Boolean.getBoolean:(Ljava/lang/String;)Z
putfield jdk.internal.jshell.tool.ConsoleIOContext.allowIncompleteInputs:Z
4: aload 0
aload 1
putfield jdk.internal.jshell.tool.ConsoleIOContext.repl:Ljdk/internal/jshell/tool/JShellTool;
5: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 4
start local 4 6: aload 0
new jdk.internal.jshell.tool.StopDetectingInputStream
dup
aload 1
invokedynamic run(Ljdk/internal/jshell/tool/JShellTool;)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/jshell/tool/ConsoleIOContext.lambda$0(Ljdk/internal/jshell/tool/JShellTool;)V (6)
()V
7: aload 1
invokedynamic accept(Ljdk/internal/jshell/tool/JShellTool;)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/internal/jshell/tool/ConsoleIOContext.lambda$1(Ljdk/internal/jshell/tool/JShellTool;Ljava/lang/Exception;)V (6)
(Ljava/lang/Exception;)V
invokespecial jdk.internal.jshell.tool.StopDetectingInputStream.<init>:(Ljava/lang/Runnable;Ljava/util/function/Consumer;)V
8: putfield jdk.internal.jshell.tool.ConsoleIOContext.input:Ljdk/internal/jshell/tool/StopDetectingInputStream;
9: ldc "test.jdk"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
ifnull 13
10: new jdk.internal.jshell.tool.ConsoleIOContext$TestTerminal
dup
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.input:Ljdk/internal/jshell/tool/StopDetectingInputStream;
aload 3
invokespecial jdk.internal.jshell.tool.ConsoleIOContext$TestTerminal.<init>:(Ljdk/internal/jshell/tool/StopDetectingInputStream;Ljava/io/OutputStream;)V
astore 5
start local 5 11: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.input:Ljdk/internal/jshell/tool/StopDetectingInputStream;
aload 2
invokevirtual jdk.internal.jshell.tool.StopDetectingInputStream.setInputStream:(Ljava/io/InputStream;)Ljava/io/InputStream;
pop
12: goto 16
end local 5 13: StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext jdk.internal.jshell.tool.JShellTool java.io.InputStream java.io.PrintStream java.util.Map
StackMap stack:
invokestatic jdk.internal.org.jline.terminal.TerminalBuilder.builder:()Ljdk/internal/org/jline/terminal/TerminalBuilder;
aload 0
invokedynamic apply(Ljdk/internal/jshell/tool/ConsoleIOContext;)Ljava/util/function/Function;
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;)Ljava/lang/Object;
jdk/internal/jshell/tool/ConsoleIOContext.lambda$2(Ljava/io/InputStream;)Ljava/io/InputStream; (7)
(Ljava/io/InputStream;)Ljava/io/InputStream;
invokevirtual jdk.internal.org.jline.terminal.TerminalBuilder.inputStreamWrapper:(Ljava/util/function/Function;)Ljdk/internal/org/jline/terminal/TerminalBuilder;
14: invokevirtual jdk.internal.org.jline.terminal.TerminalBuilder.build:()Ljdk/internal/org/jline/terminal/Terminal;
15: astore 5
start local 5 16: StackMap locals: jdk.internal.org.jline.terminal.Terminal
StackMap stack:
aload 0
aload 5
invokeinterface jdk.internal.org.jline.terminal.Terminal.getAttributes:()Ljdk/internal/org/jline/terminal/Attributes;
putfield jdk.internal.jshell.tool.ConsoleIOContext.originalAttributes:Ljdk/internal/org/jline/terminal/Attributes;
17: new jdk.internal.org.jline.terminal.Attributes
dup
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.originalAttributes:Ljdk/internal/org/jline/terminal/Attributes;
invokespecial jdk.internal.org.jline.terminal.Attributes.<init>:(Ljdk/internal/org/jline/terminal/Attributes;)V
astore 6
start local 6 18: aload 6
getstatic jdk.internal.org.jline.terminal.Attributes$ControlChar.VINTR:Ljdk/internal/org/jline/terminal/Attributes$ControlChar;
iconst_0
invokevirtual jdk.internal.org.jline.terminal.Attributes.setControlChar:(Ljdk/internal/org/jline/terminal/Attributes$ControlChar;I)V
19: aload 5
aload 6
invokeinterface jdk.internal.org.jline.terminal.Terminal.setAttributes:(Ljdk/internal/org/jline/terminal/Attributes;)V
20: aload 5
invokeinterface jdk.internal.org.jline.terminal.Terminal.enterRawMode:()Ljdk/internal/org/jline/terminal/Attributes;
pop
21: new jdk.internal.jshell.tool.ConsoleIOContext$4
dup
aload 0
aload 5
ldc "jshell"
aload 4
invokespecial jdk.internal.jshell.tool.ConsoleIOContext$4.<init>:(Ljdk/internal/jshell/tool/ConsoleIOContext;Ljdk/internal/org/jline/terminal/Terminal;Ljava/lang/String;Ljava/util/Map;)V
astore 7
start local 7 22: aload 7
getstatic jdk.internal.org.jline.reader.LineReader$Option.DISABLE_EVENT_EXPANSION:Ljdk/internal/org/jline/reader/LineReader$Option;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.setOpt:(Ljdk/internal/org/jline/reader/LineReader$Option;)V
23: aload 7
aload 0
aload 1
invokedynamic parse(Ljdk/internal/jshell/tool/ConsoleIOContext;Ljdk/internal/jshell/tool/JShellTool;)Ljdk/internal/org/jline/reader/Parser;
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/String;ILjdk/internal/org/jline/reader/Parser$ParseContext;)Ljdk/internal/org/jline/reader/ParsedLine;
jdk/internal/jshell/tool/ConsoleIOContext.lambda$3(Ljdk/internal/jshell/tool/JShellTool;Ljava/lang/String;ILjdk/internal/org/jline/reader/Parser$ParseContext;)Ljdk/internal/org/jline/reader/ParsedLine; (7)
(Ljava/lang/String;ILjdk/internal/org/jline/reader/Parser$ParseContext;)Ljdk/internal/org/jline/reader/ParsedLine;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.setParser:(Ljdk/internal/org/jline/reader/Parser;)V
24: aload 7
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getKeyMaps:()Ljava/util/Map;
ldc "main"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.internal.org.jline.keymap.KeyMap
25: aload 0
invokedynamic apply(Ljdk/internal/jshell/tool/ConsoleIOContext;)Ljdk/internal/org/jline/reader/Widget;
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:
()Z
jdk/internal/jshell/tool/ConsoleIOContext.lambda$4()Z (7)
()Z
ldc "\u001B[Z"
invokevirtual jdk.internal.org.jline.keymap.KeyMap.bind:(Ljava/lang/Object;Ljava/lang/CharSequence;)V
26: aload 7
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getKeyMaps:()Ljava/util/Map;
ldc "main"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.internal.org.jline.keymap.KeyMap
27: invokedynamic apply()Ljdk/internal/org/jline/reader/Widget;
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:
()Z
jdk/internal/jshell/tool/ConsoleIOContext.lambda$5()Z (6)
()Z
ldc "\u0003"
invokevirtual jdk.internal.org.jline.keymap.KeyMap.bind:(Ljava/lang/Object;Ljava/lang/CharSequence;)V
28: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 8
start local 8 29: aload 1
getfield jdk.internal.jshell.tool.JShellTool.prefs:Ljdk/internal/jshell/tool/PersistentStorage;
invokeinterface jdk.internal.jshell.tool.PersistentStorage.keys:()[Ljava/lang/String;
invokestatic java.util.stream.Stream.of:([Ljava/lang/Object;)Ljava/util/stream/Stream;
30: invokedynamic test()Ljava/util/function/Predicate;
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;)Z
jdk/internal/jshell/tool/ConsoleIOContext.lambda$6(Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
31: invokeinterface java.util.stream.Stream.sorted:()Ljava/util/stream/Stream;
32: aload 1
invokedynamic apply(Ljdk/internal/jshell/tool/JShellTool;)Ljava/util/function/Function;
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;)Ljava/lang/Object;
jdk/internal/jshell/tool/ConsoleIOContext.lambda$7(Ljdk/internal/jshell/tool/JShellTool;Ljava/lang/String;)Ljava/lang/String; (6)
(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
33: aload 8
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljava/util/List;)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/util/List.add(Ljava/lang/Object;)Z (9 itf)
(Ljava/lang/String;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
34: aload 8
invokeinterface java.util.List.listIterator:()Ljava/util/ListIterator;
astore 10
start local 10 35: goto 50
36: StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext jdk.internal.jshell.tool.JShellTool java.io.InputStream java.io.PrintStream java.util.Map jdk.internal.org.jline.terminal.Terminal jdk.internal.org.jline.terminal.Attributes jdk.internal.org.jline.reader.impl.LineReaderImpl java.util.List top java.util.ListIterator
StackMap stack:
aload 10
invokeinterface java.util.ListIterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 11
start local 11 37: aload 0
aload 11
invokevirtual jdk.internal.jshell.tool.ConsoleIOContext.countTrailintBackslashes:(Ljava/lang/CharSequence;)I
istore 12
start local 12 38: iload 12
iconst_2
irem
ifeq 39
iconst_1
goto 40
StackMap locals: java.lang.String int
StackMap stack:
39: iconst_0
StackMap locals:
StackMap stack: int
40: istore 13
start local 13 41: aload 11
iconst_0
aload 11
invokevirtual java.lang.String.length:()I
iload 12
iconst_2
idiv
isub
iload 13
ifeq 42
iconst_1
goto 43
StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext jdk.internal.jshell.tool.JShellTool java.io.InputStream java.io.PrintStream java.util.Map jdk.internal.org.jline.terminal.Terminal jdk.internal.org.jline.terminal.Attributes jdk.internal.org.jline.reader.impl.LineReaderImpl java.util.List top java.util.ListIterator java.lang.String int int
StackMap stack: java.lang.String int int
42: iconst_0
StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext jdk.internal.jshell.tool.JShellTool java.io.InputStream java.io.PrintStream java.util.Map jdk.internal.org.jline.terminal.Terminal jdk.internal.org.jline.terminal.Attributes jdk.internal.org.jline.reader.impl.LineReaderImpl java.util.List top java.util.ListIterator java.lang.String int int
StackMap stack: java.lang.String int int int
43: isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 11
44: iload 13
ifeq 49
aload 10
invokeinterface java.util.ListIterator.hasNext:()Z
ifeq 49
45: aload 10
invokeinterface java.util.ListIterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 14
start local 14 46: aload 10
invokeinterface java.util.ListIterator.remove:()V
47: aload 10
invokeinterface java.util.ListIterator.previous:()Ljava/lang/Object;
pop
48: new java.lang.StringBuilder
dup
aload 11
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 14
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 11
end local 14 49: StackMap locals:
StackMap stack:
aload 10
aload 11
invokeinterface java.util.ListIterator.set:(Ljava/lang/Object;)V
end local 13 end local 12 end local 11 50: StackMap locals:
StackMap stack:
aload 10
invokeinterface java.util.ListIterator.hasNext:()Z
ifne 36
end local 10 51: aload 0
getstatic java.time.Instant.MIN:Ljava/time/Instant;
putfield jdk.internal.jshell.tool.ConsoleIOContext.historyLoad:Ljava/time/Instant;
52: aload 8
aload 0
aload 7
invokedynamic accept(Ljdk/internal/jshell/tool/ConsoleIOContext;Ljdk/internal/org/jline/reader/impl/LineReaderImpl;)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/internal/jshell/tool/ConsoleIOContext.lambda$9(Ljdk/internal/org/jline/reader/impl/LineReaderImpl;Ljava/lang/String;)V (7)
(Ljava/lang/String;)V
invokeinterface java.util.List.forEach:(Ljava/util/function/Consumer;)V
53: aload 0
aload 7
putfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
54: 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 55 0 this Ljdk/internal/jshell/tool/ConsoleIOContext;
0 55 1 repl Ljdk/internal/jshell/tool/JShellTool;
0 55 2 cmdin Ljava/io/InputStream;
0 55 3 cmdout Ljava/io/PrintStream;
6 55 4 variables Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
11 13 5 terminal Ljdk/internal/org/jline/terminal/Terminal;
16 55 5 terminal Ljdk/internal/org/jline/terminal/Terminal;
18 55 6 noIntr Ljdk/internal/org/jline/terminal/Attributes;
22 55 7 reader Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
29 55 8 loadHistory Ljava/util/List<Ljava/lang/String;>;
35 51 10 it Ljava/util/ListIterator<Ljava/lang/String;>;
37 50 11 current Ljava/lang/String;
38 50 12 trailingBackSlashes I
41 50 13 continuation Z
46 49 14 next Ljava/lang/String;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
repl
cmdin
cmdout
public java.lang.String readLine(java.lang.String, java.lang.String, boolean, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: getstatic jdk.internal.jshell.tool.ConsoleIOContext.$assertionsDisabled:Z
ifne 1
iload 3
ifne 1
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.allowIncompleteInputs:Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
aload 4
putfield jdk.internal.jshell.tool.ConsoleIOContext.prefix:Ljava/lang/String;
2: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
ldc "secondary-prompt-pattern"
aload 2
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.setVariable:(Ljava/lang/String;Ljava/lang/Object;)V
3: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
aload 1
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.readLine:(Ljava/lang/String;)Ljava/lang/String;
4: areturn
5: StackMap locals:
StackMap stack: jdk.internal.org.jline.reader.UserInterruptException
astore 5
start local 5 6: new jdk.internal.jshell.tool.IOContext$InputInterruptedException
dup
aload 0
invokespecial jdk.internal.jshell.tool.IOContext$InputInterruptedException.<init>:(Ljdk/internal/jshell/tool/IOContext;)V
aload 5
invokevirtual jdk.internal.jshell.tool.IOContext$InputInterruptedException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
checkcast jdk.internal.jshell.tool.IOContext$InputInterruptedException
athrow
end local 5 7: StackMap locals:
StackMap stack: jdk.internal.org.jline.reader.EndOfFileException
pop
8: aconst_null
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/jshell/tool/ConsoleIOContext;
0 9 1 firstLinePrompt Ljava/lang/String;
0 9 2 continuationPrompt Ljava/lang/String;
0 9 3 firstLine Z
0 9 4 prefix Ljava/lang/String;
6 7 5 ex Ljdk/internal/org/jline/reader/UserInterruptException;
Exception table:
from to target type
2 4 5 Class jdk.internal.org.jline.reader.UserInterruptException
2 4 7 Class jdk.internal.org.jline.reader.EndOfFileException
Exceptions:
throws java.io.IOException, jdk.internal.jshell.tool.IOContext$InputInterruptedException
MethodParameters:
Name Flags
firstLinePrompt
continuationPrompt
firstLine
prefix
public boolean interactiveOutput();
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/jshell/tool/ConsoleIOContext;
public java.lang.Iterable<java.lang.String> history(boolean);
descriptor: (Z)Ljava/lang/Iterable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.internal.jshell.tool.ConsoleIOContext.getHistory:()Ljdk/internal/org/jline/reader/History;
invokeinterface jdk.internal.org.jline.reader.History.spliterator:()Ljava/util/Spliterator;
iconst_0
invokestatic java.util.stream.StreamSupport.stream:(Ljava/util/Spliterator;Z)Ljava/util/stream/Stream;
1: aload 0
iload 1
invokedynamic test(Ljdk/internal/jshell/tool/ConsoleIOContext;Z)Ljava/util/function/Predicate;
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;)Z
jdk/internal/jshell/tool/ConsoleIOContext.lambda$10(ZLjdk/internal/org/jline/reader/History$Entry;)Z (7)
(Ljdk/internal/org/jline/reader/History$Entry;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
2: invokedynamic apply()Ljava/util/function/Function;
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;)Ljava/lang/Object;
jdk/internal/jshell/tool/ConsoleIOContext.lambda$11(Ljdk/internal/org/jline/reader/History$Entry;)Ljava/lang/String; (6)
(Ljdk/internal/org/jline/reader/History$Entry;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
3: invokestatic java.util.stream.Collectors.toList:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.lang.Iterable
4: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/jshell/tool/ConsoleIOContext;
0 5 1 currentSession Z
Signature: (Z)Ljava/lang/Iterable<Ljava/lang/String;>;
MethodParameters:
Name Flags
currentSession
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=8, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.repl:Ljdk/internal/jshell/tool/JShellTool;
getfield jdk.internal.jshell.tool.JShellTool.prefs:Ljdk/internal/jshell/tool/PersistentStorage;
invokeinterface jdk.internal.jshell.tool.PersistentStorage.keys:()[Ljava/lang/String;
dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 5
StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext top int int java.lang.String[]
StackMap stack:
1: aload 4
iload 2
aaload
astore 1
start local 1 2: aload 1
ldc "HISTORY_LINE_"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 4
3: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.repl:Ljdk/internal/jshell/tool/JShellTool;
getfield jdk.internal.jshell.tool.JShellTool.prefs:Ljdk/internal/jshell/tool/PersistentStorage;
aload 1
invokeinterface jdk.internal.jshell.tool.PersistentStorage.remove:(Ljava/lang/String;)V
end local 1 4: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
iload 3
if_icmplt 1
6: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getHistory:()Ljdk/internal/org/jline/reader/History;
invokeinterface jdk.internal.org.jline.reader.History.spliterator:()Ljava/util/Spliterator;
iconst_0
invokestatic java.util.stream.StreamSupport.stream:(Ljava/util/Spliterator;Z)Ljava/util/stream/Stream;
7: invokedynamic apply()Ljava/util/function/Function;
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;)Ljava/lang/Object;
jdk/internal/org/jline/reader/History$Entry.line()Ljava/lang/String; (9 itf)
(Ljdk/internal/org/jline/reader/History$Entry;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
8: aload 0
invokedynamic apply(Ljdk/internal/jshell/tool/ConsoleIOContext;)Ljava/util/function/Function;
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;)Ljava/lang/Object;
jdk/internal/jshell/tool/ConsoleIOContext.toSplitEntries(Ljava/lang/String;)Ljava/util/stream/Stream; (7)
(Ljava/lang/String;)Ljava/util/stream/Stream;
invokeinterface java.util.stream.Stream.flatMap:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
9: invokestatic java.util.stream.Collectors.toList:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.Collection
10: astore 1
start local 1 11: aload 1
invokeinterface java.util.Collection.isEmpty:()Z
ifne 19
12: aload 1
invokeinterface java.util.Collection.size:()I
iconst_1
iadd
i2d
invokestatic java.lang.Math.log10:(D)D
invokestatic java.lang.Math.ceil:(D)D
d2i
istore 3
start local 3 13: new java.lang.StringBuilder
dup
ldc "HISTORY_LINE_%0"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "d"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 4
start local 4 14: iconst_0
istore 5
start local 5 15: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 7
goto 18
StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext java.util.Collection top int java.lang.String int top java.util.Iterator
StackMap stack:
16: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 6
start local 6 17: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.repl:Ljdk/internal/jshell/tool/JShellTool;
getfield jdk.internal.jshell.tool.JShellTool.prefs:Ljdk/internal/jshell/tool/PersistentStorage;
aload 4
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 5
iinc 5 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aload 6
invokeinterface jdk.internal.jshell.tool.PersistentStorage.put:(Ljava/lang/String;Ljava/lang/String;)V
end local 6 18: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 16
end local 5 end local 4 end local 3 19: StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext java.util.Collection
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.repl:Ljdk/internal/jshell/tool/JShellTool;
getfield jdk.internal.jshell.tool.JShellTool.prefs:Ljdk/internal/jshell/tool/PersistentStorage;
invokeinterface jdk.internal.jshell.tool.PersistentStorage.flush:()V
20: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getTerminal:()Ljdk/internal/org/jline/terminal/Terminal;
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.originalAttributes:Ljdk/internal/org/jline/terminal/Attributes;
invokeinterface jdk.internal.org.jline.terminal.Terminal.setAttributes:(Ljdk/internal/org/jline/terminal/Attributes;)V
21: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getTerminal:()Ljdk/internal/org/jline/terminal/Terminal;
invokeinterface jdk.internal.org.jline.terminal.Terminal.close:()V
22: goto 25
StackMap locals:
StackMap stack: java.lang.Exception
23: astore 3
start local 3 24: new java.io.IOException
dup
aload 3
invokespecial java.io.IOException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 25: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.input:Ljdk/internal/jshell/tool/StopDetectingInputStream;
invokevirtual jdk.internal.jshell.tool.StopDetectingInputStream.shutdown:()V
26: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Ljdk/internal/jshell/tool/ConsoleIOContext;
2 4 1 key Ljava/lang/String;
11 27 1 savedHistory Ljava/util/Collection<Ljava/lang/String;>;
13 19 3 len I
14 19 4 format Ljava/lang/String;
15 19 5 index I
17 18 6 historyLine Ljava/lang/String;
24 25 3 ex Ljava/lang/Exception;
Exception table:
from to target type
20 22 23 Class java.lang.Exception
Exceptions:
throws java.io.IOException
private java.util.stream.Stream<java.lang.String> toSplitEntries(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/stream/Stream;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=8, args_size=2
start local 0 start local 1 0: aload 1
ldc "\n"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 2
start local 2 1: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 3
start local 3 2: iconst_0
istore 4
start local 4 3: goto 15
4: StackMap locals: java.lang.String[] java.util.List int
StackMap stack:
new java.lang.StringBuilder
dup
aload 2
iload 4
aaload
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
astore 5
start local 5 5: aload 0
aload 5
invokevirtual jdk.internal.jshell.tool.ConsoleIOContext.countTrailintBackslashes:(Ljava/lang/CharSequence;)I
istore 6
start local 6 6: iconst_0
istore 7
start local 7 7: goto 10
8: StackMap locals: java.lang.StringBuilder int int
StackMap stack:
aload 5
ldc "\\"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
9: iinc 7 1
StackMap locals:
StackMap stack:
10: iload 7
iload 6
if_icmplt 8
end local 7 11: iload 4
iconst_1
iadd
aload 2
arraylength
if_icmpge 13
12: aload 5
ldc "\\"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
13: StackMap locals:
StackMap stack:
aload 3
aload 5
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 6 end local 5 14: iinc 4 1
StackMap locals:
StackMap stack:
15: iload 4
aload 2
arraylength
if_icmplt 4
end local 4 16: aload 3
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljdk/internal/jshell/tool/ConsoleIOContext;
0 17 1 entry Ljava/lang/String;
1 17 2 lines [Ljava/lang/String;
2 17 3 result Ljava/util/List<Ljava/lang/String;>;
3 16 4 i I
5 14 5 historyLine Ljava/lang/StringBuilder;
6 14 6 trailingBackSlashes I
7 11 7 j I
Signature: (Ljava/lang/String;)Ljava/util/stream/Stream<Ljava/lang/String;>;
MethodParameters:
Name Flags
entry
private int countTrailintBackslashes(java.lang.CharSequence);
descriptor: (Ljava/lang/CharSequence;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: aload 1
invokeinterface java.lang.CharSequence.length:()I
iconst_1
isub
istore 3
start local 3 2: goto 6
3: StackMap locals: int int
StackMap stack:
aload 1
iload 3
invokeinterface java.lang.CharSequence.charAt:(I)C
bipush 92
if_icmpne 7
4: iinc 2 1
5: iinc 3 -1
StackMap locals:
StackMap stack:
6: iload 3
ifge 3
end local 3 7: StackMap locals:
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/internal/jshell/tool/ConsoleIOContext;
0 8 1 text Ljava/lang/CharSequence;
1 8 2 count I
2 7 3 i I
MethodParameters:
Name Flags
text
private boolean complete(jdk.internal.jshell.tool.ConsoleIOContext$CompletionState);
descriptor: (Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionState;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=18, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getBuffer:()Ljdk/internal/org/jline/reader/Buffer;
invokeinterface jdk.internal.org.jline.reader.Buffer.toString:()Ljava/lang/String;
astore 2
start local 2 1: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getBuffer:()Ljdk/internal/org/jline/reader/Buffer;
invokeinterface jdk.internal.org.jline.reader.Buffer.cursor:()I
istore 3
start local 3 2: aload 1
getfield jdk.internal.jshell.tool.ConsoleIOContext$CompletionState.todo:Ljava/util/List;
astore 4
start local 4 3: aload 4
invokeinterface java.util.List.isEmpty:()Z
ifne 4
aload 1
getfield jdk.internal.jshell.tool.ConsoleIOContext$CompletionState.actionCount:I
iconst_1
if_icmpeq 80
4: StackMap locals: java.lang.String int java.util.List
StackMap stack:
invokestatic jdk.internal.jshell.tool.ConsoleIOContextTestSupport.willComputeCompletion:()V
5: iconst_1
newarray 10
dup
iconst_0
iconst_m1
iastore
astore 5
start local 5 6: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.prefix:Ljava/lang/String;
invokevirtual java.lang.String.isEmpty:()Z
ifeq 7
aload 2
ldc "/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 7
iconst_1
goto 8
StackMap locals: int[]
StackMap stack:
7: iconst_0
StackMap locals:
StackMap stack: int
8: istore 8
start local 8 9: iload 8
ifeq 13
10: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.repl:Ljdk/internal/jshell/tool/JShellTool;
aload 2
iload 3
aload 5
invokevirtual jdk.internal.jshell.tool.JShellTool.commandCompletionSuggestions:(Ljava/lang/String;I[I)Ljava/util/List;
astore 6
start local 6 11: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.repl:Ljdk/internal/jshell/tool/JShellTool;
aload 2
iload 3
iconst_1
invokevirtual jdk.internal.jshell.tool.JShellTool.commandDocumentation:(Ljava/lang/String;IZ)Ljava/util/List;
astore 7
start local 7 12: goto 21
end local 7 end local 6 13: StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext jdk.internal.jshell.tool.ConsoleIOContext$CompletionState java.lang.String int java.util.List int[] top top int
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.prefix:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
istore 9
start local 9 14: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.repl:Ljdk/internal/jshell/tool/JShellTool;
getfield jdk.internal.jshell.tool.JShellTool.analysis:Ljdk/jshell/SourceCodeAnalysis;
new java.lang.StringBuilder
dup
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.prefix:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iload 3
iload 9
iadd
aload 5
invokevirtual jdk.jshell.SourceCodeAnalysis.completionSuggestions:(Ljava/lang/String;I[I)Ljava/util/List;
astore 6
start local 6 15: aload 5
iconst_0
dup2
iaload
iload 9
isub
iastore
16: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.repl:Ljdk/internal/jshell/tool/JShellTool;
getfield jdk.internal.jshell.tool.JShellTool.analysis:Ljdk/jshell/SourceCodeAnalysis;
new java.lang.StringBuilder
dup
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.prefix:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iload 3
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.prefix:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
iadd
iconst_0
invokevirtual jdk.jshell.SourceCodeAnalysis.documentation:(Ljava/lang/String;IZ)Ljava/util/List;
17: invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
18: invokedynamic apply()Ljava/util/function/Function;
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;)Ljava/lang/Object;
jdk/jshell/SourceCodeAnalysis$Documentation.signature()Ljava/lang/String; (9 itf)
(Ljdk/jshell/SourceCodeAnalysis$Documentation;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
19: invokestatic java.util.stream.Collectors.toList:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.List
20: astore 7
end local 9 start local 7 21: StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext jdk.internal.jshell.tool.ConsoleIOContext$CompletionState java.lang.String int java.util.List int[] java.util.List java.util.List int
StackMap stack:
aload 6
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
invokedynamic test()Ljava/util/function/Predicate;
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;)Z
jdk/jshell/SourceCodeAnalysis$Suggestion.matchesType()Z (9 itf)
(Ljdk/jshell/SourceCodeAnalysis$Suggestion;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
invokeinterface java.util.stream.Stream.count:()J
lstore 9
start local 9 22: lload 9
lconst_0
lcmp
ifle 23
lload 9
ldc 100
lcmp
ifgt 23
iconst_1
goto 24
StackMap locals: long
StackMap stack:
23: iconst_0
StackMap locals:
StackMap stack: int
24: istore 11
start local 11 25: iload 11
ifeq 32
26: aload 6
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
27: invokedynamic apply()Ljava/util/function/Function;
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;)Ljava/lang/Object;
jdk/internal/jshell/tool/ConsoleIOContext.lambda$16(Ljdk/jshell/SourceCodeAnalysis$Suggestion;)Ljava/lang/Boolean; (6)
(Ljdk/jshell/SourceCodeAnalysis$Suggestion;)Ljava/lang/Boolean;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
28: invokeinterface java.util.stream.Stream.distinct:()Ljava/util/stream/Stream;
29: invokeinterface java.util.stream.Stream.count:()J
ldc 2
30: lcmp
ifne 32
31: iconst_1
goto 33
StackMap locals: int
StackMap stack:
32: iconst_0
StackMap locals:
StackMap stack: int
33: istore 12
start local 12 34: aload 6
invokeinterface java.util.List.size:()I
bipush 100
if_icmple 35
iconst_1
goto 36
StackMap locals: int
StackMap stack:
35: iconst_0
StackMap locals:
StackMap stack: int
36: istore 13
start local 13 37: new jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask
dup
aload 0
aload 6
38: aload 5
iconst_0
iaload
39: iload 8
ifne 40
aload 7
invokeinterface java.util.List.isEmpty:()Z
ifne 40
iconst_1
goto 41
StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext jdk.internal.jshell.tool.ConsoleIOContext$CompletionState java.lang.String int java.util.List int[] java.util.List java.util.List int long int int int
StackMap stack: new 37 new 37 jdk.internal.jshell.tool.ConsoleIOContext java.util.List int
40: iconst_0
41: StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext jdk.internal.jshell.tool.ConsoleIOContext$CompletionState java.lang.String int java.util.List int[] java.util.List java.util.List int long int int int
StackMap stack: new 37 new 37 jdk.internal.jshell.tool.ConsoleIOContext java.util.List int int
iload 12
42: invokespecial jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.<init>:(Ljdk/internal/jshell/tool/ConsoleIOContext;Ljava/util/List;IZZ)V
43: astore 14
start local 14 44: new jdk.internal.jshell.tool.ConsoleIOContext$AllSuggestionsCompletionTask
dup
aload 0
aload 6
aload 5
iconst_0
iaload
invokespecial jdk.internal.jshell.tool.ConsoleIOContext$AllSuggestionsCompletionTask.<init>:(Ljdk/internal/jshell/tool/ConsoleIOContext;Ljava/util/List;I)V
astore 15
start local 15 45: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 4
46: iload 8
ifeq 60
47: new jdk.internal.jshell.tool.ConsoleIOContext$CommandSynopsisTask
dup
aload 0
aload 7
invokespecial jdk.internal.jshell.tool.ConsoleIOContext$CommandSynopsisTask.<init>:(Ljdk/internal/jshell/tool/ConsoleIOContext;Ljava/util/List;)V
astore 16
start local 16 48: new jdk.internal.jshell.tool.ConsoleIOContext$CommandFullDocumentationTask
dup
aload 0
aload 4
invokespecial jdk.internal.jshell.tool.ConsoleIOContext$CommandFullDocumentationTask.<init>:(Ljdk/internal/jshell/tool/ConsoleIOContext;Ljava/util/List;)V
astore 17
start local 17 49: aload 7
invokeinterface java.util.List.isEmpty:()Z
ifne 58
50: iload 13
ifeq 54
51: aload 4
new jdk.internal.jshell.tool.ConsoleIOContext$NoopCompletionTask
dup
aload 0
invokespecial jdk.internal.jshell.tool.ConsoleIOContext$NoopCompletionTask.<init>:(Ljdk/internal/jshell/tool/ConsoleIOContext;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
52: aload 4
aload 15
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
53: goto 55
54: StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext jdk.internal.jshell.tool.ConsoleIOContext$CompletionState java.lang.String int java.util.List int[] java.util.List java.util.List int long int int int jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask
StackMap stack:
aload 4
aload 14
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
55: StackMap locals:
StackMap stack:
aload 4
aload 16
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
56: aload 4
aload 17
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
57: goto 80
58: StackMap locals:
StackMap stack:
aload 4
new jdk.internal.jshell.tool.ConsoleIOContext$NoSuchCommandCompletionTask
dup
aload 0
invokespecial jdk.internal.jshell.tool.ConsoleIOContext$NoSuchCommandCompletionTask.<init>:(Ljdk/internal/jshell/tool/ConsoleIOContext;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 17 end local 16 59: goto 80
60: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.List.isEmpty:()Z
ifeq 69
61: iload 11
ifeq 64
62: aload 4
aload 14
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
63: goto 66
StackMap locals:
StackMap stack:
64: iload 13
ifeq 66
65: aload 4
new jdk.internal.jshell.tool.ConsoleIOContext$NoopCompletionTask
dup
aload 0
invokespecial jdk.internal.jshell.tool.ConsoleIOContext$NoopCompletionTask.<init>:(Ljdk/internal/jshell/tool/ConsoleIOContext;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
66: StackMap locals:
StackMap stack:
iload 11
ifeq 67
iload 12
ifeq 80
67: StackMap locals:
StackMap stack:
aload 4
aload 15
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
68: goto 80
69: StackMap locals:
StackMap stack:
new jdk.internal.jshell.tool.ConsoleIOContext$ExpressionSignaturesTask
dup
aload 0
aload 7
invokespecial jdk.internal.jshell.tool.ConsoleIOContext$ExpressionSignaturesTask.<init>:(Ljdk/internal/jshell/tool/ConsoleIOContext;Ljava/util/List;)V
astore 16
start local 16 70: new jdk.internal.jshell.tool.ConsoleIOContext$ExpressionJavadocTask
dup
aload 0
aload 4
invokespecial jdk.internal.jshell.tool.ConsoleIOContext$ExpressionJavadocTask.<init>:(Ljdk/internal/jshell/tool/ConsoleIOContext;Ljava/util/List;)V
astore 17
start local 17 71: iload 11
ifeq 73
72: aload 4
aload 14
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
73: StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask
StackMap stack:
aload 4
aload 16
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
74: iload 11
ifeq 75
iload 12
ifeq 76
75: StackMap locals:
StackMap stack:
aload 4
aload 15
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
76: StackMap locals:
StackMap stack:
iload 13
ifeq 79
77: aload 4
aload 4
invokeinterface java.util.List.size:()I
iconst_1
isub
aload 17
invokeinterface java.util.List.add:(ILjava/lang/Object;)V
78: goto 80
79: StackMap locals:
StackMap stack:
aload 4
aload 17
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 17 end local 16 end local 15 end local 14 end local 13 end local 12 end local 11 end local 9 end local 8 end local 7 end local 6 end local 5 80: StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext jdk.internal.jshell.tool.ConsoleIOContext$CompletionState java.lang.String int java.util.List
StackMap stack:
iconst_0
istore 5
start local 5 81: iconst_1
istore 6
start local 6 82: goto 93
83: StackMap locals: int int
StackMap stack:
aload 4
iconst_0
invokeinterface java.util.List.remove:(I)Ljava/lang/Object;
checkcast jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask
aload 2
iload 3
invokeinterface jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask.perform:(Ljava/lang/String;I)Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask$Result;
astore 7
start local 7 84: invokestatic jdk.internal.jshell.tool.ConsoleIOContext.$SWITCH_TABLE$jdk$internal$jshell$tool$ConsoleIOContext$CompletionTask$Result:()[I
aload 7
invokevirtual jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask$Result.ordinal:()I
iaload
tableswitch { // 1 - 5
1: 89
2: 85
3: 88
4: 87
5: 86
default: 93
}
85: StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask$Result
StackMap stack:
goto 93
86: StackMap locals:
StackMap stack:
iconst_0
istore 6
87: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.List.clear:()V
88: StackMap locals:
StackMap stack:
iconst_1
istore 5
89: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.List.isEmpty:()Z
ifne 94
90: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getTerminal:()Ljdk/internal/org/jline/terminal/Terminal;
invokeinterface jdk.internal.org.jline.terminal.Terminal.writer:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.println:()V
91: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getTerminal:()Ljdk/internal/org/jline/terminal/Terminal;
invokeinterface jdk.internal.org.jline.terminal.Terminal.writer:()Ljava/io/PrintWriter;
aload 4
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask
invokeinterface jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask.description:()Ljava/lang/String;
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
92: goto 94
end local 7 93: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.List.isEmpty:()Z
ifeq 83
94: StackMap locals:
StackMap stack:
aload 1
iconst_0
putfield jdk.internal.jshell.tool.ConsoleIOContext$CompletionState.actionCount:I
95: aload 1
aload 4
putfield jdk.internal.jshell.tool.ConsoleIOContext$CompletionState.todo:Ljava/util/List;
96: iload 6
ifeq 99
97: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.redrawLine:()Z
pop
98: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.flush:()V
99: StackMap locals:
StackMap stack:
iload 5
100: ireturn
end local 6 end local 5 end local 4 end local 3 end local 2 101: StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext jdk.internal.jshell.tool.ConsoleIOContext$CompletionState
StackMap stack: java.io.IOException
astore 2
start local 2 102: new java.lang.IllegalStateException
dup
aload 2
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 103 0 this Ljdk/internal/jshell/tool/ConsoleIOContext;
0 103 1 completionState Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionState;
1 101 2 text Ljava/lang/String;
2 101 3 cursor I
3 101 4 todo Ljava/util/List<Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask;>;
6 80 5 anchor [I
11 13 6 suggestions Ljava/util/List<Ljdk/jshell/SourceCodeAnalysis$Suggestion;>;
15 80 6 suggestions Ljava/util/List<Ljdk/jshell/SourceCodeAnalysis$Suggestion;>;
12 13 7 doc Ljava/util/List<Ljava/lang/String;>;
21 80 7 doc Ljava/util/List<Ljava/lang/String;>;
9 80 8 command Z
14 21 9 prefixLength I
22 80 9 smartCount J
25 80 11 hasSmart Z
34 80 12 hasBoth Z
37 80 13 tooManyItems Z
44 80 14 ordinaryCompletion Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask;
45 80 15 allCompletion Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask;
48 59 16 shortDocumentation Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask;
49 59 17 fullDocumentation Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask;
70 80 16 shortDocumentation Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask;
71 80 17 fullDocumentation Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask;
81 101 5 success Z
82 101 6 repaint Z
84 93 7 result Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask$Result;
102 103 2 ex Ljava/io/IOException;
Exception table:
from to target type
0 100 101 Class java.io.IOException
MethodParameters:
Name Flags
completionState
private jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask$Result doPrintFullDocumentation(java.util.List<jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask>, java.util.List<java.lang.String>, boolean);
descriptor: (Ljava/util/List;Ljava/util/List;Z)Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask$Result;
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=13, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
ifnull 24
aload 2
invokeinterface java.util.List.isEmpty:()Z
ifne 24
1: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getTerminal:()Ljdk/internal/org/jline/terminal/Terminal;
astore 4
start local 4 2: aload 4
invokeinterface jdk.internal.org.jline.terminal.Terminal.getHeight:()I
iconst_4
isub
istore 5
start local 5 3: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 6
start local 6 4: aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
start local 7 5: goto 21
6: StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext java.util.List java.util.List int jdk.internal.org.jline.terminal.Terminal int java.util.List java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 8
start local 8 7: aload 8
ldc "\n"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 9
start local 9 8: iconst_0
istore 10
start local 10 9: goto 20
10: StackMap locals: java.lang.String java.lang.String[] int
StackMap stack:
iload 10
ifne 11
iconst_1
goto 12
StackMap locals:
StackMap stack:
11: iconst_0
StackMap locals:
StackMap stack: int
12: istore 11
start local 11 13: aload 9
14: iload 10
15: iload 10
iload 5
iadd
aload 9
arraylength
invokestatic java.lang.Math.min:(II)I
16: invokestatic java.util.Arrays.copyOfRange:([Ljava/lang/Object;II)[Ljava/lang/Object;
checkcast java.lang.String[]
17: astore 12
start local 12 18: aload 6
new jdk.internal.jshell.tool.ConsoleIOContext$5
dup
aload 0
iload 11
iload 3
aload 12
invokespecial jdk.internal.jshell.tool.ConsoleIOContext$5.<init>:(Ljdk/internal/jshell/tool/ConsoleIOContext;ZZ[Ljava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
19: iload 10
iload 5
iadd
istore 10
end local 12 end local 11 20: StackMap locals:
StackMap stack:
iload 10
aload 9
arraylength
if_icmplt 10
end local 10 end local 9 end local 8 21: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
end local 7 22: aload 1
iconst_0
aload 6
invokeinterface java.util.List.addAll:(ILjava/util/Collection;)Z
pop
23: getstatic jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask$Result.CONTINUE:Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask$Result;
areturn
end local 6 end local 5 end local 4 24: StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext java.util.List java.util.List int
StackMap stack:
getstatic jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask$Result.FINISH:Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask$Result;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Ljdk/internal/jshell/tool/ConsoleIOContext;
0 25 1 todo Ljava/util/List<Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask;>;
0 25 2 doc Ljava/util/List<Ljava/lang/String;>;
0 25 3 command Z
2 24 4 term Ljdk/internal/org/jline/terminal/Terminal;
3 24 5 pageHeight I
4 24 6 thisTODO Ljava/util/List<Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask;>;
5 22 7 docIt Ljava/util/Iterator<Ljava/lang/String;>;
7 21 8 currentDoc Ljava/lang/String;
8 21 9 lines [Ljava/lang/String;
9 21 10 firstLine I
13 20 11 first Z
18 20 12 thisPageLines [Ljava/lang/String;
Signature: (Ljava/util/List<Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask;>;Ljava/util/List<Ljava/lang/String;>;Z)Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask$Result;
MethodParameters:
Name Flags
todo
doc
command
private static java.lang.String commonPrefix(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: goto 5
2: StackMap locals: int
StackMap stack:
aload 0
aload 1
iconst_0
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 4
3: aload 1
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
areturn
4: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
aload 1
invokevirtual java.lang.String.length:()I
if_icmplt 2
end local 2 6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 str1 Ljava/lang/String;
0 7 1 str2 Ljava/lang/String;
1 6 2 i I
MethodParameters:
Name Flags
str1
str2
private void printColumns(java.util.List<? extends java.lang.CharSequence>);
descriptor: (Ljava/util/List;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=8, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.List.isEmpty:()Z
ifeq 1
return
1: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
invokedynamic applyAsInt()Ljava/util/function/ToIntFunction;
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;)I
java/lang/CharSequence.length()I (9 itf)
(Ljava/lang/CharSequence;)I
invokeinterface java.util.stream.Stream.mapToInt:(Ljava/util/function/ToIntFunction;)Ljava/util/stream/IntStream;
invokeinterface java.util.stream.IntStream.max:()Ljava/util/OptionalInt;
invokevirtual java.util.OptionalInt.getAsInt:()I
iconst_3
iadd
istore 2
start local 2 2: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getTerminal:()Ljdk/internal/org/jline/terminal/Terminal;
invokeinterface jdk.internal.org.jline.terminal.Terminal.getWidth:()I
iload 2
idiv
istore 3
start local 3 3: iconst_0
istore 4
start local 4 4: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 15
StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext java.util.List int int int top java.util.Iterator
StackMap stack:
5: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.CharSequence
astore 5
start local 5 6: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getTerminal:()Ljdk/internal/org/jline/terminal/Terminal;
invokeinterface jdk.internal.org.jline.terminal.Terminal.writer:()Ljava/io/PrintWriter;
aload 5
invokevirtual java.io.PrintWriter.print:(Ljava/lang/Object;)V
7: aload 5
invokeinterface java.lang.CharSequence.length:()I
istore 7
start local 7 8: goto 11
9: StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext java.util.List int int int java.lang.CharSequence java.util.Iterator int
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getTerminal:()Ljdk/internal/org/jline/terminal/Terminal;
invokeinterface jdk.internal.org.jline.terminal.Terminal.writer:()Ljava/io/PrintWriter;
ldc " "
invokevirtual java.io.PrintWriter.print:(Ljava/lang/String;)V
10: iinc 7 1
StackMap locals:
StackMap stack:
11: iload 7
iload 2
if_icmplt 9
end local 7 12: iinc 4 1
iload 4
iload 3
if_icmpne 15
13: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getTerminal:()Ljdk/internal/org/jline/terminal/Terminal;
invokeinterface jdk.internal.org.jline.terminal.Terminal.writer:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.println:()V
14: iconst_0
istore 4
end local 5 15: StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext java.util.List int int int top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
16: iload 4
ifeq 18
17: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getTerminal:()Ljdk/internal/org/jline/terminal/Terminal;
invokeinterface jdk.internal.org.jline.terminal.Terminal.writer:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.println:()V
18: StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext java.util.List int int int
StackMap stack:
return
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/jshell/tool/ConsoleIOContext;
0 19 1 candidates Ljava/util/List<+Ljava/lang/CharSequence;>;
2 19 2 size I
3 19 3 columns I
4 19 4 c I
6 15 5 cand Ljava/lang/CharSequence;
8 12 7 s I
Signature: (Ljava/util/List<+Ljava/lang/CharSequence;>;)V
MethodParameters:
Name Flags
candidates
public boolean terminalEditorRunning();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getTerminal:()Ljdk/internal/org/jline/terminal/Terminal;
astore 1
start local 1 1: aload 1
invokeinterface jdk.internal.org.jline.terminal.Terminal.getAttributes:()Ljdk/internal/org/jline/terminal/Attributes;
getstatic jdk.internal.org.jline.terminal.Attributes$LocalFlag.ICANON:Ljdk/internal/org/jline/terminal/Attributes$LocalFlag;
invokevirtual jdk.internal.org.jline.terminal.Attributes.getLocalFlag:(Ljdk/internal/org/jline/terminal/Attributes$LocalFlag;)Z
ifeq 2
iconst_0
goto 3
StackMap locals: jdk.internal.org.jline.terminal.Terminal
StackMap stack:
2: iconst_1
StackMap locals:
StackMap stack: int
3: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/jshell/tool/ConsoleIOContext;
1 4 1 terminal Ljdk/internal/org/jline/terminal/Terminal;
public void suspend();
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/jshell/tool/ConsoleIOContext;
public void resume();
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/jshell/tool/ConsoleIOContext;
public void beforeUserCode();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
dup
astore 1
monitorenter
1: aload 0
aconst_null
putfield jdk.internal.jshell.tool.ConsoleIOContext.inputBytes:[B
2: aload 1
monitorexit
3: goto 6
StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext jdk.internal.jshell.tool.ConsoleIOContext
StackMap stack: java.lang.Throwable
4: aload 1
monitorexit
5: athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.input:Ljdk/internal/jshell/tool/StopDetectingInputStream;
getstatic jdk.internal.jshell.tool.StopDetectingInputStream$State.BUFFER:Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
invokevirtual jdk.internal.jshell.tool.StopDetectingInputStream.setState:(Ljdk/internal/jshell/tool/StopDetectingInputStream$State;)V
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/internal/jshell/tool/ConsoleIOContext;
Exception table:
from to target type
1 3 4 any
4 5 4 any
public void afterUserCode();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.input:Ljdk/internal/jshell/tool/StopDetectingInputStream;
getstatic jdk.internal.jshell.tool.StopDetectingInputStream$State.WAIT:Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
invokevirtual jdk.internal.jshell.tool.StopDetectingInputStream.setState:(Ljdk/internal/jshell/tool/StopDetectingInputStream$State;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jshell/tool/ConsoleIOContext;
public void replaceLastHistoryEntry(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getHistory:()Ljdk/internal/org/jline/reader/History;
invokeinterface jdk.internal.org.jline.reader.History.iterator:()Ljava/util/ListIterator;
astore 2
start local 2 1: goto 3
2: StackMap locals: java.util.ListIterator
StackMap stack:
aload 2
invokeinterface java.util.ListIterator.next:()Ljava/lang/Object;
pop
3: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.ListIterator.hasNext:()Z
ifne 2
4: aload 2
invokeinterface java.util.ListIterator.remove:()V
5: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getHistory:()Ljdk/internal/org/jline/reader/History;
aload 1
invokeinterface jdk.internal.org.jline.reader.History.add:(Ljava/lang/String;)V
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/jshell/tool/ConsoleIOContext;
0 7 1 source Ljava/lang/String;
1 7 2 it Ljava/util/ListIterator<Ljdk/internal/org/jline/reader/History$Entry;>;
MethodParameters:
Name Flags
source
private boolean fixes();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getTerminal:()Ljdk/internal/org/jline/terminal/Terminal;
invokeinterface jdk.internal.org.jline.terminal.Terminal.input:()Ljava/io/InputStream;
invokevirtual java.io.InputStream.read:()I
istore 1
start local 1 1: iload 1
iconst_m1
if_icmpne 3
2: iconst_1
ireturn
3: StackMap locals: int
StackMap stack:
getstatic jdk.internal.jshell.tool.ConsoleIOContext.FIX_COMPUTERS:[Ljdk/internal/jshell/tool/ConsoleIOContext$FixComputer;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 9
StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext int top int int jdk.internal.jshell.tool.ConsoleIOContext$FixComputer[]
StackMap stack:
4: aload 5
iload 3
aaload
astore 2
start local 2 5: aload 2
getfield jdk.internal.jshell.tool.ConsoleIOContext$FixComputer.shortcut:C
iload 1
if_icmpne 8
6: aload 0
aload 2
invokevirtual jdk.internal.jshell.tool.ConsoleIOContext.fixes:(Ljdk/internal/jshell/tool/ConsoleIOContext$FixComputer;)V
7: iconst_1
ireturn
end local 2 8: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
9: iload 3
iload 4
if_icmplt 4
10: aload 0
iload 1
invokevirtual jdk.internal.jshell.tool.ConsoleIOContext.readOutRemainingEscape:(I)V
11: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.beep:()Z
pop
12: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getTerminal:()Ljdk/internal/org/jline/terminal/Terminal;
invokeinterface jdk.internal.org.jline.terminal.Terminal.writer:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.println:()V
13: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getTerminal:()Ljdk/internal/org/jline/terminal/Terminal;
invokeinterface jdk.internal.org.jline.terminal.Terminal.writer:()Ljava/io/PrintWriter;
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.repl:Ljdk/internal/jshell/tool/JShellTool;
ldc "jshell.fix.wrong.shortcut"
invokevirtual jdk.internal.jshell.tool.JShellTool.getResourceString:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
14: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.redrawLine:()Z
pop
15: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.flush:()V
end local 1 16: goto 19
StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext
StackMap stack: java.io.IOException
17: astore 1
start local 1 18: aload 1
invokevirtual java.io.IOException.printStackTrace:()V
end local 1 19: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Ljdk/internal/jshell/tool/ConsoleIOContext;
1 16 1 c I
5 8 2 computer Ljdk/internal/jshell/tool/ConsoleIOContext$FixComputer;
18 19 1 ex Ljava/io/IOException;
Exception table:
from to target type
0 2 17 Class java.io.IOException
3 7 17 Class java.io.IOException
8 16 17 Class java.io.IOException
private void readOutRemainingEscape(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: iload 1
bipush 27
if_icmpne 5
1: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getTerminal:()Ljdk/internal/org/jline/terminal/Terminal;
invokeinterface jdk.internal.org.jline.terminal.Terminal.reader:()Ljdk/internal/org/jline/utils/NonBlockingReader;
astore 2
start local 2 2: goto 4
3: StackMap locals: jdk.internal.org.jline.utils.NonBlockingReader
StackMap stack:
aload 2
invokevirtual jdk.internal.org.jline.utils.NonBlockingReader.read:()I
pop
4: StackMap locals:
StackMap stack:
aload 2
ldc 100
invokevirtual jdk.internal.org.jline.utils.NonBlockingReader.peek:(J)I
ifgt 3
end local 2 5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/jshell/tool/ConsoleIOContext;
0 6 1 c I
2 5 2 inp Ljdk/internal/org/jline/utils/NonBlockingReader;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
c
private void fixes(jdk.internal.jshell.tool.ConsoleIOContext$FixComputer);
descriptor: (Ljdk/internal/jshell/tool/ConsoleIOContext$FixComputer;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=10, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.prefix:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getBuffer:()Ljdk/internal/org/jline/reader/Buffer;
invokeinterface jdk.internal.org.jline.reader.Buffer.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
start local 2 1: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.prefix:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getBuffer:()Ljdk/internal/org/jline/reader/Buffer;
invokeinterface jdk.internal.org.jline.reader.Buffer.cursor:()I
iadd
istore 3
start local 3 2: aload 1
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.repl:Ljdk/internal/jshell/tool/JShellTool;
aload 2
iload 3
invokevirtual jdk.internal.jshell.tool.ConsoleIOContext$FixComputer.compute:(Ljdk/internal/jshell/tool/JShellTool;Ljava/lang/String;I)Ljdk/internal/jshell/tool/ConsoleIOContext$FixResult;
astore 4
start local 4 3: aload 4
getfield jdk.internal.jshell.tool.ConsoleIOContext$FixResult.error:Ljava/lang/String;
ifnull 4
aload 4
getfield jdk.internal.jshell.tool.ConsoleIOContext$FixResult.error:Ljava/lang/String;
invokevirtual java.lang.String.isEmpty:()Z
ifne 4
iconst_1
goto 5
StackMap locals: java.lang.String int jdk.internal.jshell.tool.ConsoleIOContext$FixResult
StackMap stack:
4: iconst_0
StackMap locals:
StackMap stack: int
5: istore 5
start local 5 6: iload 5
ifeq 8
7: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getTerminal:()Ljdk/internal/org/jline/terminal/Terminal;
invokeinterface jdk.internal.org.jline.terminal.Terminal.writer:()Ljava/io/PrintWriter;
aload 4
getfield jdk.internal.jshell.tool.ConsoleIOContext$FixResult.error:Ljava/lang/String;
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
8: StackMap locals: int
StackMap stack:
aload 4
getfield jdk.internal.jshell.tool.ConsoleIOContext$FixResult.fixes:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 14
9: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.beep:()Z
pop
10: iload 5
ifeq 44
11: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.redrawLine:()Z
pop
12: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.flush:()V
13: goto 44
StackMap locals:
StackMap stack:
14: aload 4
getfield jdk.internal.jshell.tool.ConsoleIOContext$FixResult.fixes:Ljava/util/List;
invokeinterface java.util.List.size:()I
iconst_1
if_icmpne 20
aload 1
getfield jdk.internal.jshell.tool.ConsoleIOContext$FixComputer.showMenu:Z
ifne 20
15: iload 5
ifeq 18
16: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.redrawLine:()Z
pop
17: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.flush:()V
18: StackMap locals:
StackMap stack:
aload 4
getfield jdk.internal.jshell.tool.ConsoleIOContext$FixResult.fixes:Ljava/util/List;
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast jdk.internal.jshell.tool.ConsoleIOContext$Fix
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokeinterface jdk.internal.jshell.tool.ConsoleIOContext$Fix.perform:(Ljdk/internal/org/jline/reader/impl/LineReaderImpl;)V
19: goto 44
20: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
aload 4
getfield jdk.internal.jshell.tool.ConsoleIOContext$FixResult.fixes:Ljava/util/List;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
astore 6
start local 6 21: aload 6
iconst_0
new jdk.internal.jshell.tool.ConsoleIOContext$6
dup
aload 0
invokespecial jdk.internal.jshell.tool.ConsoleIOContext$6.<init>:(Ljdk/internal/jshell/tool/ConsoleIOContext;)V
invokeinterface java.util.List.add:(ILjava/lang/Object;)V
22: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 7
start local 7 23: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getTerminal:()Ljdk/internal/org/jline/terminal/Terminal;
invokeinterface jdk.internal.org.jline.terminal.Terminal.writer:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.println:()V
24: iconst_0
istore 8
start local 8 25: goto 30
26: StackMap locals: java.util.List java.util.Map int
StackMap stack:
aload 6
iload 8
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast jdk.internal.jshell.tool.ConsoleIOContext$Fix
astore 9
start local 9 27: aload 7
bipush 48
iload 8
iadd
i2c
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
aload 9
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
28: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getTerminal:()Ljdk/internal/org/jline/terminal/Terminal;
invokeinterface jdk.internal.org.jline.terminal.Terminal.writer:()Ljava/io/PrintWriter;
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
iload 8
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 6
iload 8
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast jdk.internal.jshell.tool.ConsoleIOContext$Fix
invokeinterface jdk.internal.jshell.tool.ConsoleIOContext$Fix.displayName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
end local 9 29: iinc 8 1
StackMap locals:
StackMap stack:
30: iload 8
aload 6
invokeinterface java.util.List.size:()I
if_icmplt 26
end local 8 31: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getTerminal:()Ljdk/internal/org/jline/terminal/Terminal;
invokeinterface jdk.internal.org.jline.terminal.Terminal.writer:()Ljava/io/PrintWriter;
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.repl:Ljdk/internal/jshell/tool/JShellTool;
ldc "jshell.console.choice"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.messageFormat:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.io.PrintWriter.print:(Ljava/lang/String;)V
32: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.flush:()V
33: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.readCharacter:()I
istore 8
start local 8 34: aload 7
iload 8
i2c
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.internal.jshell.tool.ConsoleIOContext$Fix
astore 9
start local 9 35: aload 9
ifnonnull 38
36: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.beep:()Z
pop
37: aload 6
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast jdk.internal.jshell.tool.ConsoleIOContext$Fix
astore 9
38: StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext$Fix
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getTerminal:()Ljdk/internal/org/jline/terminal/Terminal;
invokeinterface jdk.internal.org.jline.terminal.Terminal.writer:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.println:()V
39: aload 9
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokeinterface jdk.internal.jshell.tool.ConsoleIOContext$Fix.perform:(Ljdk/internal/org/jline/reader/impl/LineReaderImpl;)V
40: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.flush:()V
end local 9 end local 8 end local 7 end local 6 end local 5 41: goto 44
StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext jdk.internal.jshell.tool.ConsoleIOContext$FixComputer java.lang.String int jdk.internal.jshell.tool.ConsoleIOContext$FixResult
StackMap stack: java.io.IOException
42: astore 5
start local 5 43: new java.lang.IllegalStateException
dup
aload 5
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 44: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 45 0 this Ljdk/internal/jshell/tool/ConsoleIOContext;
0 45 1 computer Ljdk/internal/jshell/tool/ConsoleIOContext$FixComputer;
1 45 2 input Ljava/lang/String;
2 45 3 cursor I
3 45 4 candidates Ljdk/internal/jshell/tool/ConsoleIOContext$FixResult;
6 41 5 printError Z
21 41 6 fixes Ljava/util/List<Ljdk/internal/jshell/tool/ConsoleIOContext$Fix;>;
23 41 7 char2Fix Ljava/util/Map<Ljava/lang/Character;Ljdk/internal/jshell/tool/ConsoleIOContext$Fix;>;
25 31 8 i I
27 29 9 fix Ljdk/internal/jshell/tool/ConsoleIOContext$Fix;
34 41 8 read I
35 41 9 fix Ljdk/internal/jshell/tool/ConsoleIOContext$Fix;
43 44 5 ex Ljava/io/IOException;
Exception table:
from to target type
3 41 42 Class java.io.IOException
MethodParameters:
Name Flags
computer
public synchronized int readUserInput();
descriptor: ()I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=5, args_size=1
start local 0 0: goto 23
1: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getHistory:()Ljdk/internal/org/jline/reader/History;
astore 1
start local 1 2: getstatic jdk.internal.org.jline.utils.Display.DISABLE_CR:Z
istore 2
start local 2 3: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getParser:()Ljdk/internal/org/jline/reader/Parser;
astore 3
start local 3 4: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokedynamic parse()Ljdk/internal/org/jline/reader/Parser;
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/String;ILjdk/internal/org/jline/reader/Parser$ParseContext;)Ljdk/internal/org/jline/reader/ParsedLine;
jdk/internal/jshell/tool/ConsoleIOContext.lambda$18(Ljava/lang/String;ILjdk/internal/org/jline/reader/Parser$ParseContext;)Ljdk/internal/org/jline/reader/ParsedLine; (6)
(Ljava/lang/String;ILjdk/internal/org/jline/reader/Parser$ParseContext;)Ljdk/internal/org/jline/reader/ParsedLine;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.setParser:(Ljdk/internal/org/jline/reader/Parser;)V
5: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.input:Ljdk/internal/jshell/tool/StopDetectingInputStream;
getstatic jdk.internal.jshell.tool.StopDetectingInputStream$State.WAIT:Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
invokevirtual jdk.internal.jshell.tool.StopDetectingInputStream.setState:(Ljdk/internal/jshell/tool/StopDetectingInputStream$State;)V
6: iconst_1
putstatic jdk.internal.org.jline.utils.Display.DISABLE_CR:Z
7: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.userInputHistory:Ljdk/internal/org/jline/reader/History;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.setHistory:(Ljdk/internal/org/jline/reader/History;)V
8: aload 0
new java.lang.StringBuilder
dup
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
ldc ""
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.readLine:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "line.separator"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.String.getBytes:()[B
putfield jdk.internal.jshell.tool.ConsoleIOContext.inputBytes:[B
9: aload 0
iconst_0
putfield jdk.internal.jshell.tool.ConsoleIOContext.inputBytesPointer:I
10: goto 19
StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext jdk.internal.org.jline.reader.History int jdk.internal.org.jline.reader.Parser
StackMap stack: jdk.internal.org.jline.reader.UserInterruptException
11: pop
12: new java.io.InterruptedIOException
dup
invokespecial java.io.InterruptedIOException.<init>:()V
athrow
13: StackMap locals:
StackMap stack: java.lang.Throwable
astore 4
14: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
aload 3
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.setParser:(Ljdk/internal/org/jline/reader/Parser;)V
15: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
aload 1
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.setHistory:(Ljdk/internal/org/jline/reader/History;)V
16: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.input:Ljdk/internal/jshell/tool/StopDetectingInputStream;
getstatic jdk.internal.jshell.tool.StopDetectingInputStream$State.BUFFER:Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
invokevirtual jdk.internal.jshell.tool.StopDetectingInputStream.setState:(Ljdk/internal/jshell/tool/StopDetectingInputStream$State;)V
17: iload 2
putstatic jdk.internal.org.jline.utils.Display.DISABLE_CR:Z
18: aload 4
athrow
19: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
aload 3
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.setParser:(Ljdk/internal/org/jline/reader/Parser;)V
20: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
aload 1
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.setHistory:(Ljdk/internal/org/jline/reader/History;)V
21: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.input:Ljdk/internal/jshell/tool/StopDetectingInputStream;
getstatic jdk.internal.jshell.tool.StopDetectingInputStream$State.BUFFER:Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
invokevirtual jdk.internal.jshell.tool.StopDetectingInputStream.setState:(Ljdk/internal/jshell/tool/StopDetectingInputStream$State;)V
22: iload 2
putstatic jdk.internal.org.jline.utils.Display.DISABLE_CR:Z
end local 3 end local 2 end local 1 23: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.inputBytes:[B
ifnull 1
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.inputBytes:[B
arraylength
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.inputBytesPointer:I
if_icmple 1
24: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.inputBytes:[B
aload 0
dup
getfield jdk.internal.jshell.tool.ConsoleIOContext.inputBytesPointer:I
dup_x1
iconst_1
iadd
putfield jdk.internal.jshell.tool.ConsoleIOContext.inputBytesPointer:I
baload
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Ljdk/internal/jshell/tool/ConsoleIOContext;
2 23 1 prevHistory Ljdk/internal/org/jline/reader/History;
3 23 2 prevDisableCr Z
4 23 3 prevParser Ljdk/internal/org/jline/reader/Parser;
Exception table:
from to target type
4 10 11 Class jdk.internal.org.jline.reader.UserInterruptException
4 13 13 any
Exceptions:
throws java.io.IOException
private jdk.internal.org.jline.reader.History getHistory();
descriptor: ()Ljdk/internal/org/jline/reader/History;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getHistory:()Ljdk/internal/org/jline/reader/History;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/ConsoleIOContext;
static java.lang.String access$0();
descriptor: ()Ljava/lang/String;
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=0, args_size=0
0: getstatic jdk.internal.jshell.tool.ConsoleIOContext.LINE_SEPARATOR:Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
static java.lang.String access$1(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokestatic jdk.internal.jshell.tool.ConsoleIOContext.commonPrefix:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
static int[] $SWITCH_TABLE$jdk$internal$jshell$tool$ConsoleIOContext$CompletionTask$Result();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic jdk.internal.jshell.tool.ConsoleIOContext.$SWITCH_TABLE$jdk$internal$jshell$tool$ConsoleIOContext$CompletionTask$Result:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask$Result.values:()[Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask$Result;
arraylength
newarray 10
astore 0
2: aload 0
getstatic jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask$Result.CONTINUE:Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask$Result;
invokevirtual jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask$Result.ordinal:()I
iconst_2
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask$Result.FINISH:Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask$Result;
invokevirtual jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask$Result.ordinal:()I
iconst_3
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask$Result.NO_DATA:Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask$Result;
invokevirtual jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask$Result.ordinal:()I
iconst_1
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask$Result.SKIP:Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask$Result;
invokevirtual jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask$Result.ordinal:()I
iconst_4
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: aload 0
getstatic jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask$Result.SKIP_NOREPAINT:Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask$Result;
invokevirtual jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask$Result.ordinal:()I
iconst_5
iastore
15: goto 17
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
16: pop
StackMap locals:
StackMap stack:
17: aload 0
dup
putstatic jdk.internal.jshell.tool.ConsoleIOContext.$SWITCH_TABLE$jdk$internal$jshell$tool$ConsoleIOContext$CompletionTask$Result:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
11 12 13 Class java.lang.NoSuchFieldError
14 15 16 Class java.lang.NoSuchFieldError
private static void lambda$0(jdk.internal.jshell.tool.JShellTool);
descriptor: (Ljdk/internal/jshell/tool/JShellTool;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool.stop:()V
return
LocalVariableTable:
Start End Slot Name Signature
private static void lambda$1(jdk.internal.jshell.tool.JShellTool, java.lang.Exception);
descriptor: (Ljdk/internal/jshell/tool/JShellTool;Ljava/lang/Exception;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=6, locals=2, args_size=2
start local 1 0: aload 0
ldc "Error on input: %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.hard:(Ljava/lang/String;[Ljava/lang/Object;)V
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 ex Ljava/lang/Exception;
private java.io.InputStream lambda$2(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Ljava/io/InputStream;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.input:Ljdk/internal/jshell/tool/StopDetectingInputStream;
aload 1
invokevirtual jdk.internal.jshell.tool.StopDetectingInputStream.setInputStream:(Ljava/io/InputStream;)Ljava/io/InputStream;
pop
1: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.input:Ljdk/internal/jshell/tool/StopDetectingInputStream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jshell/tool/ConsoleIOContext;
0 2 1 in Ljava/io/InputStream;
private jdk.internal.org.jline.reader.ParsedLine lambda$3(jdk.internal.jshell.tool.JShellTool, java.lang.String, int, jdk.internal.org.jline.reader.Parser$ParseContext);
descriptor: (Ljdk/internal/jshell/tool/JShellTool;Ljava/lang/String;ILjdk/internal/org/jline/reader/Parser$ParseContext;)Ljdk/internal/org/jline/reader/ParsedLine;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=5, locals=5, args_size=5
start local 0 start local 2 start local 3 start local 4 0: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.allowIncompleteInputs:Z
ifne 2
aload 1
aload 2
invokevirtual jdk.internal.jshell.tool.JShellTool.isComplete:(Ljava/lang/String;)Z
ifne 2
1: new jdk.internal.org.jline.reader.EOFError
dup
iload 3
iload 3
aload 2
invokespecial jdk.internal.org.jline.reader.EOFError.<init>:(IILjava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new jdk.internal.org.jline.reader.impl.completer.ArgumentCompleter$ArgumentLine
dup
aload 2
iload 3
invokespecial jdk.internal.org.jline.reader.impl.completer.ArgumentCompleter$ArgumentLine.<init>:(Ljava/lang/String;I)V
areturn
end local 4 end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/jshell/tool/ConsoleIOContext;
0 3 2 line Ljava/lang/String;
0 3 3 cursor I
0 3 4 context Ljdk/internal/org/jline/reader/Parser$ParseContext;
Exceptions:
throws jdk.internal.org.jline.reader.SyntaxError
private boolean lambda$4();
descriptor: ()Z
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.internal.jshell.tool.ConsoleIOContext.fixes:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/ConsoleIOContext;
private static boolean lambda$5();
descriptor: ()Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=0, args_size=0
0: new jdk.internal.org.jline.reader.UserInterruptException
dup
ldc ""
invokespecial jdk.internal.org.jline.reader.UserInterruptException.<init>:(Ljava/lang/String;)V
athrow
LocalVariableTable:
Start End Slot Name Signature
private static boolean lambda$6(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "HISTORY_LINE_"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 key Ljava/lang/String;
private static java.lang.String lambda$7(jdk.internal.jshell.tool.JShellTool, java.lang.String);
descriptor: (Ljdk/internal/jshell/tool/JShellTool;Ljava/lang/String;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.prefs:Ljdk/internal/jshell/tool/PersistentStorage;
aload 1
invokeinterface jdk.internal.jshell.tool.PersistentStorage.get:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 key Ljava/lang/String;
private void lambda$9(jdk.internal.org.jline.reader.impl.LineReaderImpl, java.lang.String);
descriptor: (Ljdk/internal/org/jline/reader/impl/LineReaderImpl;Ljava/lang/String;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 2 0: aload 1
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.getHistory:()Ljdk/internal/org/jline/reader/History;
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.historyLoad:Ljava/time/Instant;
aload 2
invokeinterface jdk.internal.org.jline.reader.History.add:(Ljava/time/Instant;Ljava/lang/String;)V
return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/ConsoleIOContext;
0 1 2 line Ljava/lang/String;
private boolean lambda$10(boolean, jdk.internal.org.jline.reader.History$Entry);
descriptor: (ZLjdk/internal/org/jline/reader/History$Entry;)Z
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 2 0: iload 1
ifeq 1
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext.historyLoad:Ljava/time/Instant;
aload 2
invokeinterface jdk.internal.org.jline.reader.History$Entry.time:()Ljava/time/Instant;
invokevirtual java.time.Instant.equals:(Ljava/lang/Object;)Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/jshell/tool/ConsoleIOContext;
0 3 2 entry Ljdk/internal/org/jline/reader/History$Entry;
private static java.lang.String lambda$11(jdk.internal.org.jline.reader.History$Entry);
descriptor: (Ljdk/internal/org/jline/reader/History$Entry;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface jdk.internal.org.jline.reader.History$Entry.line:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 entry Ljdk/internal/org/jline/reader/History$Entry;
private static java.lang.Boolean lambda$16(jdk.jshell.SourceCodeAnalysis$Suggestion);
descriptor: (Ljdk/jshell/SourceCodeAnalysis$Suggestion;)Ljava/lang/Boolean;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface jdk.jshell.SourceCodeAnalysis$Suggestion.matchesType:()Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 s Ljdk/jshell/SourceCodeAnalysis$Suggestion;
private static jdk.internal.org.jline.reader.ParsedLine lambda$18(java.lang.String, int, jdk.internal.org.jline.reader.Parser$ParseContext);
descriptor: (Ljava/lang/String;ILjdk/internal/org/jline/reader/Parser$ParseContext;)Ljdk/internal/org/jline/reader/ParsedLine;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new jdk.internal.org.jline.reader.impl.completer.ArgumentCompleter$ArgumentLine
dup
aload 0
iload 1
invokespecial jdk.internal.org.jline.reader.impl.completer.ArgumentCompleter$ArgumentLine.<init>:(Ljava/lang/String;I)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 line Ljava/lang/String;
0 1 1 cursor I
0 1 2 context Ljdk/internal/org/jline/reader/Parser$ParseContext;
Exceptions:
throws jdk.internal.org.jline.reader.SyntaxError
}
SourceFile: "ConsoleIOContext.java"
NestMembers:
jdk.internal.jshell.tool.ConsoleIOContext$1 jdk.internal.jshell.tool.ConsoleIOContext$1$1 jdk.internal.jshell.tool.ConsoleIOContext$1$2 jdk.internal.jshell.tool.ConsoleIOContext$2 jdk.internal.jshell.tool.ConsoleIOContext$2$1 jdk.internal.jshell.tool.ConsoleIOContext$2$2 jdk.internal.jshell.tool.ConsoleIOContext$3 jdk.internal.jshell.tool.ConsoleIOContext$3$1 jdk.internal.jshell.tool.ConsoleIOContext$4 jdk.internal.jshell.tool.ConsoleIOContext$4$1 jdk.internal.jshell.tool.ConsoleIOContext$5 jdk.internal.jshell.tool.ConsoleIOContext$6 jdk.internal.jshell.tool.ConsoleIOContext$AllSuggestionsCompletionTask jdk.internal.jshell.tool.ConsoleIOContext$CommandFullDocumentationTask jdk.internal.jshell.tool.ConsoleIOContext$CommandSynopsisTask jdk.internal.jshell.tool.ConsoleIOContext$CompletionState jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask$Result jdk.internal.jshell.tool.ConsoleIOContext$ExpressionJavadocTask jdk.internal.jshell.tool.ConsoleIOContext$ExpressionSignaturesTask jdk.internal.jshell.tool.ConsoleIOContext$Fix jdk.internal.jshell.tool.ConsoleIOContext$FixComputer jdk.internal.jshell.tool.ConsoleIOContext$FixResult jdk.internal.jshell.tool.ConsoleIOContext$NoSuchCommandCompletionTask jdk.internal.jshell.tool.ConsoleIOContext$NoopCompletionTask jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask jdk.internal.jshell.tool.ConsoleIOContext$TestTerminal
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
jdk.internal.jshell.tool.ConsoleIOContext$1
jdk.internal.jshell.tool.ConsoleIOContext$2
jdk.internal.jshell.tool.ConsoleIOContext$3
jdk.internal.jshell.tool.ConsoleIOContext$4
jdk.internal.jshell.tool.ConsoleIOContext$5
jdk.internal.jshell.tool.ConsoleIOContext$6
private final AllSuggestionsCompletionTask = jdk.internal.jshell.tool.ConsoleIOContext$AllSuggestionsCompletionTask of jdk.internal.jshell.tool.ConsoleIOContext
private final CommandFullDocumentationTask = jdk.internal.jshell.tool.ConsoleIOContext$CommandFullDocumentationTask of jdk.internal.jshell.tool.ConsoleIOContext
private final CommandSynopsisTask = jdk.internal.jshell.tool.ConsoleIOContext$CommandSynopsisTask of jdk.internal.jshell.tool.ConsoleIOContext
private final CompletionState = jdk.internal.jshell.tool.ConsoleIOContext$CompletionState of jdk.internal.jshell.tool.ConsoleIOContext
private abstract CompletionTask = jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask of jdk.internal.jshell.tool.ConsoleIOContext
public final Result = jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask$Result of jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask
private final ExpressionJavadocTask = jdk.internal.jshell.tool.ConsoleIOContext$ExpressionJavadocTask of jdk.internal.jshell.tool.ConsoleIOContext
private final ExpressionSignaturesTask = jdk.internal.jshell.tool.ConsoleIOContext$ExpressionSignaturesTask of jdk.internal.jshell.tool.ConsoleIOContext
public abstract Fix = jdk.internal.jshell.tool.ConsoleIOContext$Fix of jdk.internal.jshell.tool.ConsoleIOContext
public abstract FixComputer = jdk.internal.jshell.tool.ConsoleIOContext$FixComputer of jdk.internal.jshell.tool.ConsoleIOContext
public FixResult = jdk.internal.jshell.tool.ConsoleIOContext$FixResult of jdk.internal.jshell.tool.ConsoleIOContext
private final NoSuchCommandCompletionTask = jdk.internal.jshell.tool.ConsoleIOContext$NoSuchCommandCompletionTask of jdk.internal.jshell.tool.ConsoleIOContext
private final NoopCompletionTask = jdk.internal.jshell.tool.ConsoleIOContext$NoopCompletionTask of jdk.internal.jshell.tool.ConsoleIOContext
private final OrdinaryCompletionTask = jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask of jdk.internal.jshell.tool.ConsoleIOContext
private final TestTerminal = jdk.internal.jshell.tool.ConsoleIOContext$TestTerminal of jdk.internal.jshell.tool.ConsoleIOContext
InputInterruptedException = jdk.internal.jshell.tool.IOContext$InputInterruptedException of jdk.internal.jshell.tool.IOContext
public final State = jdk.internal.jshell.tool.StopDetectingInputStream$State of jdk.internal.jshell.tool.StopDetectingInputStream
public abstract Entry = jdk.internal.org.jline.reader.History$Entry of jdk.internal.org.jline.reader.History
public final Option = jdk.internal.org.jline.reader.LineReader$Option of jdk.internal.org.jline.reader.LineReader
public final ParseContext = jdk.internal.org.jline.reader.Parser$ParseContext of jdk.internal.org.jline.reader.Parser
public ArgumentLine = jdk.internal.org.jline.reader.impl.completer.ArgumentCompleter$ArgumentLine of jdk.internal.org.jline.reader.impl.completer.ArgumentCompleter
public final ControlChar = jdk.internal.org.jline.terminal.Attributes$ControlChar 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 abstract Documentation = jdk.jshell.SourceCodeAnalysis$Documentation of jdk.jshell.SourceCodeAnalysis
public abstract Suggestion = jdk.jshell.SourceCodeAnalysis$Suggestion of jdk.jshell.SourceCodeAnalysis