class jdk.nashorn.tools.jjs.Console implements java.lang.AutoCloseable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.nashorn.tools.jjs.Console
super_class: java.lang.Object
{
private static final java.lang.String DOCUMENTATION_SHORTCUT;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "\u001B[Z"
private final jdk.internal.org.jline.reader.LineReader in;
descriptor: Ljdk/internal/org/jline/reader/LineReader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.io.File historyFile;
descriptor: Ljava/io/File;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(java.io.InputStream, java.io.PrintStream, java.io.File, jdk.nashorn.tools.jjs.NashornCompleter, java.util.function.Function<java.lang.String, java.lang.String>);
descriptor: (Ljava/io/InputStream;Ljava/io/PrintStream;Ljava/io/File;Ljdk/nashorn/tools/jjs/NashornCompleter;Ljava/util/function/Function;)V
flags: (0x0000)
Code:
stack=4, locals=10, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 3
putfield jdk.nashorn.tools.jjs.Console.historyFile:Ljava/io/File;
2: aload 4
invokedynamic parse(Ljdk/nashorn/tools/jjs/NashornCompleter;)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/nashorn/tools/jjs/Console.lambda$0(Ljdk/nashorn/tools/jjs/NashornCompleter;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;
astore 6
start local 6 3: aload 0
invokestatic jdk.internal.org.jline.reader.LineReaderBuilder.builder:()Ljdk/internal/org/jline/reader/LineReaderBuilder;
4: getstatic jdk.internal.org.jline.reader.LineReader$Option.DISABLE_EVENT_EXPANSION:Ljdk/internal/org/jline/reader/LineReader$Option;
iconst_1
invokevirtual jdk.internal.org.jline.reader.LineReaderBuilder.option:(Ljdk/internal/org/jline/reader/LineReader$Option;Z)Ljdk/internal/org/jline/reader/LineReaderBuilder;
5: invokedynamic complete()Ljdk/internal/org/jline/reader/Completer;
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:
(Ljdk/internal/org/jline/reader/LineReader;Ljdk/internal/org/jline/reader/ParsedLine;Ljava/util/List;)V
jdk/nashorn/tools/jjs/Console.lambda$1(Ljdk/internal/org/jline/reader/LineReader;Ljdk/internal/org/jline/reader/ParsedLine;Ljava/util/List;)V (6)
(Ljdk/internal/org/jline/reader/LineReader;Ljdk/internal/org/jline/reader/ParsedLine;Ljava/util/List;)V
invokevirtual jdk.internal.org.jline.reader.LineReaderBuilder.completer:(Ljdk/internal/org/jline/reader/Completer;)Ljdk/internal/org/jline/reader/LineReaderBuilder;
6: aload 6
invokevirtual jdk.internal.org.jline.reader.LineReaderBuilder.parser:(Ljdk/internal/org/jline/reader/Parser;)Ljdk/internal/org/jline/reader/LineReaderBuilder;
7: invokevirtual jdk.internal.org.jline.reader.LineReaderBuilder.build:()Ljdk/internal/org/jline/reader/LineReader;
8: putfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/org/jline/reader/LineReader;
9: aload 3
invokevirtual java.io.File.exists:()Z
ifeq 24
10: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 7
start local 7 11: aload 3
invokevirtual java.io.File.toPath:()Ljava/nio/file/Path;
invokestatic java.nio.file.Files.readAllLines:(Ljava/nio/file/Path;)Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 9
goto 21
StackMap locals: jdk.nashorn.tools.jjs.Console java.io.InputStream java.io.PrintStream java.io.File jdk.nashorn.tools.jjs.NashornCompleter java.util.function.Function jdk.internal.org.jline.reader.Parser java.lang.StringBuilder top java.util.Iterator
StackMap stack:
12: aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 8
start local 8 13: aload 7
invokevirtual java.lang.StringBuilder.length:()I
ifle 15
14: aload 7
ldc "\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
15: StackMap locals: jdk.nashorn.tools.jjs.Console java.io.InputStream java.io.PrintStream java.io.File jdk.nashorn.tools.jjs.NashornCompleter java.util.function.Function jdk.internal.org.jline.reader.Parser java.lang.StringBuilder java.lang.String java.util.Iterator
StackMap stack:
aload 7
aload 8
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
16: aload 6
aload 7
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 7
invokevirtual java.lang.StringBuilder.length:()I
invokeinterface jdk.internal.org.jline.reader.Parser.parse:(Ljava/lang/String;I)Ljdk/internal/org/jline/reader/ParsedLine;
pop
17: aload 0
getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/org/jline/reader/LineReader;
invokeinterface jdk.internal.org.jline.reader.LineReader.getHistory:()Ljdk/internal/org/jline/reader/History;
aload 7
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface jdk.internal.org.jline.reader.History.add:(Ljava/lang/String;)V
18: aload 7
iconst_0
aload 7
invokevirtual java.lang.StringBuilder.length:()I
invokevirtual java.lang.StringBuilder.delete:(II)Ljava/lang/StringBuilder;
pop
19: goto 21
StackMap locals:
StackMap stack: jdk.internal.org.jline.reader.EOFError
20: pop
end local 8 21: StackMap locals: jdk.nashorn.tools.jjs.Console java.io.InputStream java.io.PrintStream java.io.File jdk.nashorn.tools.jjs.NashornCompleter java.util.function.Function jdk.internal.org.jline.reader.Parser java.lang.StringBuilder top java.util.Iterator
StackMap stack:
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 12
22: aload 7
invokevirtual java.lang.StringBuilder.length:()I
ifle 24
23: aload 0
getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/org/jline/reader/LineReader;
invokeinterface jdk.internal.org.jline.reader.LineReader.getHistory:()Ljdk/internal/org/jline/reader/History;
aload 7
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface jdk.internal.org.jline.reader.History.add:(Ljava/lang/String;)V
end local 7 24: StackMap locals: jdk.nashorn.tools.jjs.Console java.io.InputStream java.io.PrintStream java.io.File jdk.nashorn.tools.jjs.NashornCompleter java.util.function.Function jdk.internal.org.jline.reader.Parser
StackMap stack:
invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
new java.lang.Thread
dup
aload 0
invokedynamic run(Ljdk/nashorn/tools/jjs/Console;)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/nashorn/tools/jjs/Console.saveHistory()V (7)
()V
invokespecial java.lang.Thread.<init>:(Ljava/lang/Runnable;)V
invokevirtual java.lang.Runtime.addShutdownHook:(Ljava/lang/Thread;)V
25: aload 0
ldc "\u001B[Z"
aload 0
aload 5
invokedynamic apply(Ljdk/nashorn/tools/jjs/Console;Ljava/util/function/Function;)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/nashorn/tools/jjs/Console.lambda$3(Ljava/util/function/Function;)Z (7)
()Z
invokevirtual jdk.nashorn.tools.jjs.Console.bind:(Ljava/lang/String;Ljdk/internal/org/jline/reader/Widget;)V
26: return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Ljdk/nashorn/tools/jjs/Console;
0 27 1 cmdin Ljava/io/InputStream;
0 27 2 cmdout Ljava/io/PrintStream;
0 27 3 historyFile Ljava/io/File;
0 27 4 completer Ljdk/nashorn/tools/jjs/NashornCompleter;
0 27 5 docHelper Ljava/util/function/Function<Ljava/lang/String;Ljava/lang/String;>;
3 27 6 parser Ljdk/internal/org/jline/reader/Parser;
11 24 7 line Ljava/lang/StringBuilder;
13 21 8 h Ljava/lang/String;
Exception table:
from to target type
16 19 20 Class jdk.internal.org.jline.reader.EOFError
Exceptions:
throws java.io.IOException
Signature: (Ljava/io/InputStream;Ljava/io/PrintStream;Ljava/io/File;Ljdk/nashorn/tools/jjs/NashornCompleter;Ljava/util/function/Function<Ljava/lang/String;Ljava/lang/String;>;)V
MethodParameters:
Name Flags
cmdin final
cmdout final
historyFile final
completer final
docHelper final
java.lang.String readLine(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/org/jline/reader/LineReader;
ldc "secondary-prompt-pattern"
aload 2
invokeinterface jdk.internal.org.jline.reader.LineReader.setVariable:(Ljava/lang/String;Ljava/lang/Object;)V
1: aload 0
getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/org/jline/reader/LineReader;
aload 1
invokeinterface jdk.internal.org.jline.reader.LineReader.readLine:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/tools/jjs/Console;
0 2 1 prompt Ljava/lang/String;
0 2 2 continuationPrompt Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
prompt final
continuationPrompt final
java.lang.String readUserLine(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0000)
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/org/jline/reader/LineReader;
invokeinterface jdk.internal.org.jline.reader.LineReader.getParser:()Ljdk/internal/org/jline/reader/Parser;
astore 2
start local 2 1: aload 0
getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/org/jline/reader/LineReader;
checkcast jdk.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/nashorn/tools/jjs/Console.lambda$4(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
2: aload 0
getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/org/jline/reader/LineReader;
aload 1
invokeinterface jdk.internal.org.jline.reader.LineReader.readLine:(Ljava/lang/String;)Ljava/lang/String;
astore 4
3: aload 0
getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/org/jline/reader/LineReader;
checkcast jdk.internal.org.jline.reader.impl.LineReaderImpl
aload 2
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.setParser:(Ljdk/internal/org/jline/reader/Parser;)V
4: aload 4
areturn
5: StackMap locals: jdk.nashorn.tools.jjs.Console java.lang.String jdk.internal.org.jline.reader.Parser
StackMap stack: java.lang.Throwable
astore 3
6: aload 0
getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/org/jline/reader/LineReader;
checkcast jdk.internal.org.jline.reader.impl.LineReaderImpl
aload 2
invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.setParser:(Ljdk/internal/org/jline/reader/Parser;)V
7: aload 3
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/nashorn/tools/jjs/Console;
0 8 1 prompt Ljava/lang/String;
1 8 2 prevParser Ljdk/internal/org/jline/reader/Parser;
Exception table:
from to target type
1 3 5 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
prompt final
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.nashorn.tools.jjs.Console.saveHistory:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/tools/jjs/Console;
private void saveHistory();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=1
start local 0 0: aconst_null
astore 1
aconst_null
astore 2
1: aload 0
getfield jdk.nashorn.tools.jjs.Console.historyFile:Ljava/io/File;
invokevirtual java.io.File.toPath:()Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.OpenOption
invokestatic java.nio.file.Files.newBufferedWriter:(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/BufferedWriter;
astore 3
start local 3 2: ldc "line.separator"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 3: aload 3
aload 0
invokevirtual jdk.nashorn.tools.jjs.Console.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;
4: 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/nashorn/tools/jjs/Console.lambda$5(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;
5: aload 4
invokestatic java.util.stream.Collectors.joining:(Ljava/lang/CharSequence;)Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.lang.String
6: invokevirtual java.io.Writer.write:(Ljava/lang/String;)V
end local 4 7: aload 3
ifnull 14
aload 3
invokevirtual java.io.Writer.close:()V
goto 14
StackMap locals: jdk.nashorn.tools.jjs.Console java.lang.Throwable java.lang.Throwable java.io.Writer
StackMap stack: java.lang.Throwable
8: astore 1
aload 3
ifnull 9
aload 3
invokevirtual java.io.Writer.close:()V
end local 3 StackMap locals:
StackMap stack:
9: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
10: astore 2
aload 1
ifnonnull 11
aload 2
astore 1
goto 12
StackMap locals:
StackMap stack:
11: aload 1
aload 2
if_acmpeq 12
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
12: aload 1
athrow
StackMap locals: jdk.nashorn.tools.jjs.Console
StackMap stack: java.io.IOException
13: pop
14: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljdk/nashorn/tools/jjs/Console;
2 9 3 out Ljava/io/Writer;
3 7 4 lineSeparator Ljava/lang/String;
Exception table:
from to target type
2 7 8 any
1 10 10 any
0 13 13 Class java.io.IOException
jdk.internal.org.jline.reader.History getHistory();
descriptor: ()Ljdk/internal/org/jline/reader/History;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/org/jline/reader/LineReader;
invokeinterface jdk.internal.org.jline.reader.LineReader.getHistory:()Ljdk/internal/org/jline/reader/History;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/tools/jjs/Console;
boolean terminalEditorRunning();
descriptor: ()Z
flags: (0x0000)
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/org/jline/reader/LineReader;
invokeinterface jdk.internal.org.jline.reader.LineReader.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/nashorn/tools/jjs/Console;
1 4 1 terminal Ljdk/internal/org/jline/terminal/Terminal;
void suspend();
descriptor: ()V
flags: (0x0000)
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/nashorn/tools/jjs/Console;
void resume();
descriptor: ()V
flags: (0x0000)
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/nashorn/tools/jjs/Console;
private void bind(java.lang.String, jdk.internal.org.jline.reader.Widget);
descriptor: (Ljava/lang/String;Ljdk/internal/org/jline/reader/Widget;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/org/jline/reader/LineReader;
invokeinterface jdk.internal.org.jline.reader.LineReader.getKeyMaps:()Ljava/util/Map;
ldc "main"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.internal.org.jline.keymap.KeyMap
aload 2
aload 1
invokevirtual jdk.internal.org.jline.keymap.KeyMap.bind:(Ljava/lang/Object;Ljava/lang/CharSequence;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/tools/jjs/Console;
0 2 1 shortcut Ljava/lang/String;
0 2 2 action Ljdk/internal/org/jline/reader/Widget;
MethodParameters:
Name Flags
shortcut
action
private boolean showDocumentation(java.util.function.Function<java.lang.String, java.lang.String>);
descriptor: (Ljava/util/function/Function;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/org/jline/reader/LineReader;
invokeinterface jdk.internal.org.jline.reader.LineReader.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.nashorn.tools.jjs.Console.in:Ljdk/internal/org/jline/reader/LineReader;
invokeinterface jdk.internal.org.jline.reader.LineReader.getBuffer:()Ljdk/internal/org/jline/reader/Buffer;
invokeinterface jdk.internal.org.jline.reader.Buffer.cursor:()I
istore 3
start local 3 2: aload 1
aload 2
iconst_0
iload 3
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokeinterface java.util.function.Function.apply:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 3: aload 4
ifnull 7
4: aload 0
getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/org/jline/reader/LineReader;
invokeinterface jdk.internal.org.jline.reader.LineReader.getTerminal:()Ljdk/internal/org/jline/terminal/Terminal;
invokeinterface jdk.internal.org.jline.terminal.Terminal.writer:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.println:()V
5: aload 0
getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/org/jline/reader/LineReader;
aload 4
invokeinterface jdk.internal.org.jline.reader.LineReader.printAbove:(Ljava/lang/String;)V
6: iconst_1
ireturn
7: StackMap locals: java.lang.String int java.lang.String
StackMap stack:
iconst_0
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/nashorn/tools/jjs/Console;
0 8 1 docHelper Ljava/util/function/Function<Ljava/lang/String;Ljava/lang/String;>;
1 8 2 buffer Ljava/lang/String;
2 8 3 cursor I
3 8 4 doc Ljava/lang/String;
Signature: (Ljava/util/function/Function<Ljava/lang/String;Ljava/lang/String;>;)Z
MethodParameters:
Name Flags
docHelper final
private static jdk.internal.org.jline.reader.ParsedLine lambda$0(jdk.nashorn.tools.jjs.NashornCompleter, java.lang.String, int, jdk.internal.org.jline.reader.Parser$ParseContext);
descriptor: (Ljdk/nashorn/tools/jjs/NashornCompleter;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=5, locals=6, args_size=4
start local 1 start local 2 start local 3 0: aload 3
getstatic jdk.internal.org.jline.reader.Parser$ParseContext.COMPLETE:Ljdk/internal/org/jline/reader/Parser$ParseContext;
if_acmpne 5
1: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 4
start local 4 2: aload 0
aload 1
iload 2
aload 4
invokevirtual jdk.nashorn.tools.jjs.NashornCompleter.complete:(Ljava/lang/String;ILjava/util/List;)I
istore 5
start local 5 3: iload 5
aload 1
invokevirtual java.lang.String.length:()I
invokestatic java.lang.Math.min:(II)I
istore 5
4: new jdk.nashorn.tools.jjs.Console$CompletionLine
dup
aload 1
iload 5
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
iload 2
aload 4
invokespecial jdk.nashorn.tools.jjs.Console$CompletionLine.<init>:(Ljava/lang/String;ILjava/util/List;)V
areturn
end local 5 end local 4 5: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual jdk.nashorn.tools.jjs.NashornCompleter.isComplete:(Ljava/lang/String;)Z
ifne 7
6: new jdk.internal.org.jline.reader.EOFError
dup
iload 2
iload 2
aload 1
invokespecial jdk.internal.org.jline.reader.EOFError.<init>:(IILjava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
new jdk.internal.org.jline.reader.impl.completer.ArgumentCompleter$ArgumentLine
dup
aload 1
iload 2
invokespecial jdk.internal.org.jline.reader.impl.completer.ArgumentCompleter$ArgumentLine.<init>:(Ljava/lang/String;I)V
areturn
end local 3 end local 2 end local 1 LocalVariableTable:
Start End Slot Name Signature
0 8 1 line Ljava/lang/String;
0 8 2 cursor I
0 8 3 context Ljdk/internal/org/jline/reader/Parser$ParseContext;
2 5 4 candidates Ljava/util/List<Ljdk/internal/org/jline/reader/Candidate;>;
3 5 5 anchor I
Exceptions:
throws jdk.internal.org.jline.reader.SyntaxError
private static void lambda$1(jdk.internal.org.jline.reader.LineReader, jdk.internal.org.jline.reader.ParsedLine, java.util.List);
descriptor: (Ljdk/internal/org/jline/reader/LineReader;Ljdk/internal/org/jline/reader/ParsedLine;Ljava/util/List;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
aload 1
checkcast jdk.nashorn.tools.jjs.Console$CompletionLine
getfield jdk.nashorn.tools.jjs.Console$CompletionLine.candidates:Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 in Ljdk/internal/org/jline/reader/LineReader;
0 1 1 line Ljdk/internal/org/jline/reader/ParsedLine;
0 1 2 candidates Ljava/util/List<Ljdk/internal/org/jline/reader/Candidate;>;
private boolean lambda$3(java.util.function.Function);
descriptor: (Ljava/util/function/Function;)Z
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 0 0: aload 0
aload 1
invokevirtual jdk.nashorn.tools.jjs.Console.showDocumentation:(Ljava/util/function/Function;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/tools/jjs/Console;
private static jdk.internal.org.jline.reader.ParsedLine lambda$4(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
private static java.lang.String lambda$5(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 e Ljdk/internal/org/jline/reader/History$Entry;
}
SourceFile: "Console.java"
NestMembers:
jdk.nashorn.tools.jjs.Console$CompletionLine
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
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 LocalFlag = jdk.internal.org.jline.terminal.Attributes$LocalFlag of jdk.internal.org.jline.terminal.Attributes
private final CompletionLine = jdk.nashorn.tools.jjs.Console$CompletionLine of jdk.nashorn.tools.jjs.Console