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.jline.console.ConsoleReader in;
    descriptor: Ljdk/internal/jline/console/ConsoleReader;
    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=7, locals=7, args_size=6
        start local 0 // jdk.nashorn.tools.jjs.Console this
        start local 1 // java.io.InputStream cmdin
        start local 2 // java.io.PrintStream cmdout
        start local 3 // java.io.File historyFile
        start local 4 // jdk.nashorn.tools.jjs.NashornCompleter completer
        start local 5 // java.util.function.Function docHelper
         0: .line 52
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 54
            aload 0 /* this */
            aload 3 /* historyFile */
            putfield jdk.nashorn.tools.jjs.Console.historyFile:Ljava/io/File;
         2: .line 56
            getstatic jdk.internal.jline.TerminalFactory$Flavor.WINDOWS:Ljdk/internal/jline/TerminalFactory$Flavor;
            invokestatic jdk.nashorn.tools.jjs.Console.isCygwin:()Z
            ifeq 3
            invokedynamic call()Ljava/util/concurrent/Callable;
              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;
                  jdk/nashorn/tools/jjs/Console$JJSUnixTerminal.<init>()V (8)
                  ()Ljdk/internal/jline/Terminal;
            goto 4
      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
      StackMap stack: jdk.internal.jline.TerminalFactory$Flavor
         3: invokedynamic call()Ljava/util/concurrent/Callable;
              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;
                  jdk/nashorn/tools/jjs/Console$JJSWindowsTerminal.<init>()V (8)
                  ()Ljdk/internal/jline/Terminal;
      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
      StackMap stack: jdk.internal.jline.TerminalFactory$Flavor java.util.concurrent.Callable
         4: invokestatic jdk.internal.jline.TerminalFactory.registerFlavor:(Ljdk/internal/jline/TerminalFactory$Flavor;Ljava/util/concurrent/Callable;)V
         5: .line 57
            getstatic jdk.internal.jline.TerminalFactory$Flavor.UNIX:Ljdk/internal/jline/TerminalFactory$Flavor;
            invokedynamic call()Ljava/util/concurrent/Callable;
              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;
                  jdk/nashorn/tools/jjs/Console$JJSUnixTerminal.<init>()V (8)
                  ()Ljdk/internal/jline/Terminal;
            invokestatic jdk.internal.jline.TerminalFactory.registerFlavor:(Ljdk/internal/jline/TerminalFactory$Flavor;Ljava/util/concurrent/Callable;)V
         6: .line 58
            aload 0 /* this */
            new jdk.internal.jline.console.ConsoleReader
            dup
            aload 1 /* cmdin */
            aload 2 /* cmdout */
            invokespecial jdk.internal.jline.console.ConsoleReader.<init>:(Ljava/io/InputStream;Ljava/io/OutputStream;)V
            putfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/jline/console/ConsoleReader;
         7: .line 59
            aload 0 /* this */
            getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/jline/console/ConsoleReader;
            iconst_0
            invokevirtual jdk.internal.jline.console.ConsoleReader.setExpandEvents:(Z)V
         8: .line 60
            aload 0 /* this */
            getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/jline/console/ConsoleReader;
            iconst_1
            invokevirtual jdk.internal.jline.console.ConsoleReader.setHandleUserInterrupt:(Z)V
         9: .line 61
            aload 0 /* this */
            getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/jline/console/ConsoleReader;
            iconst_1
            invokevirtual jdk.internal.jline.console.ConsoleReader.setBellEnabled:(Z)V
        10: .line 62
            aload 0 /* this */
            getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/jline/console/ConsoleReader;
            iconst_1
            invokevirtual jdk.internal.jline.console.ConsoleReader.setCopyPasteDetection:(Z)V
        11: .line 63
            aload 3 /* historyFile */
            invokevirtual java.io.File.exists:()Z
            ifeq 12
            aload 3 /* historyFile */
            invokevirtual java.io.File.toPath:()Ljava/nio/file/Path;
            invokestatic java.nio.file.Files.readAllLines:(Ljava/nio/file/Path;)Ljava/util/List;
            goto 13
      StackMap locals:
      StackMap stack:
        12: aconst_null
      StackMap locals:
      StackMap stack: java.util.List
        13: astore 6 /* existingHistory */
        start local 6 // java.lang.Iterable existingHistory
        14: .line 64
            aload 0 /* this */
            getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/jline/console/ConsoleReader;
            new jdk.nashorn.tools.jjs.Console$1
            dup
            aload 0 /* this */
            aload 0 /* this */
            getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/jline/console/ConsoleReader;
            aload 6 /* existingHistory */
            aload 4 /* completer */
            invokespecial jdk.nashorn.tools.jjs.Console$1.<init>:(Ljdk/nashorn/tools/jjs/Console;Ljdk/internal/jline/console/ConsoleReader;Ljava/lang/Iterable;Ljdk/nashorn/tools/jjs/NashornCompleter;)V
            invokevirtual jdk.internal.jline.console.ConsoleReader.setHistory:(Ljdk/internal/jline/console/history/History;)V
        15: .line 69
            aload 0 /* this */
            getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/jline/console/ConsoleReader;
            aload 4 /* completer */
            invokevirtual jdk.internal.jline.console.ConsoleReader.addCompleter:(Ljdk/internal/jline/console/completer/Completer;)Z
            pop
        16: .line 70
            invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
            new java.lang.Thread
            dup
            aload 0 /* this */
            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
        17: .line 71
            aload 0 /* this */
            ldc "\u001B[Z"
            aload 0 /* this */
            aload 5 /* docHelper */
            invokedynamic run(Ljdk/nashorn/tools/jjs/Console;Ljava/util/function/Function;)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.lambda$4(Ljava/util/function/Function;)V (7)
                  ()V
            invokevirtual jdk.nashorn.tools.jjs.Console.bind:(Ljava/lang/String;Ljava/lang/Object;)V
        18: .line 73
            new jdk.internal.misc.Signal
            dup
            ldc "CONT"
            invokespecial jdk.internal.misc.Signal.<init>:(Ljava/lang/String;)V
            new jdk.nashorn.tools.jjs.Console$2
            dup
            aload 0 /* this */
            invokespecial jdk.nashorn.tools.jjs.Console$2.<init>:(Ljdk/nashorn/tools/jjs/Console;)V
            invokestatic jdk.internal.misc.Signal.handle:(Ljdk/internal/misc/Signal;Ljdk/internal/misc/Signal$Handler;)Ljdk/internal/misc/Signal$Handler;
            pop
        19: .line 84
            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 java.lang.Iterable
      StackMap stack: java.lang.IllegalArgumentException
        20: pop
        21: .line 87
      StackMap locals:
      StackMap stack:
            return
        end local 6 // java.lang.Iterable existingHistory
        end local 5 // java.util.function.Function docHelper
        end local 4 // jdk.nashorn.tools.jjs.NashornCompleter completer
        end local 3 // java.io.File historyFile
        end local 2 // java.io.PrintStream cmdout
        end local 1 // java.io.InputStream cmdin
        end local 0 // jdk.nashorn.tools.jjs.Console this
      LocalVariableTable:
        Start  End  Slot             Name  Signature
            0   22     0             this  Ljdk/nashorn/tools/jjs/Console;
            0   22     1            cmdin  Ljava/io/InputStream;
            0   22     2           cmdout  Ljava/io/PrintStream;
            0   22     3      historyFile  Ljava/io/File;
            0   22     4        completer  Ljdk/nashorn/tools/jjs/NashornCompleter;
            0   22     5        docHelper  Ljava/util/function/Function<Ljava/lang/String;Ljava/lang/String;>;
           14   22     6  existingHistory  Ljava/lang/Iterable<Ljava/lang/String;>;
      Exception table:
        from    to  target  type
          18    19      20  Class java.lang.IllegalArgumentException
    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);
    descriptor: (Ljava/lang/String;)Ljava/lang/String;
    flags: (0x0000) 
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // jdk.nashorn.tools.jjs.Console this
        start local 1 // java.lang.String prompt
         0: .line 90
            aload 0 /* this */
            getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/jline/console/ConsoleReader;
            aload 1 /* prompt */
            invokevirtual jdk.internal.jline.console.ConsoleReader.readLine:(Ljava/lang/String;)Ljava/lang/String;
            areturn
        end local 1 // java.lang.String prompt
        end local 0 // jdk.nashorn.tools.jjs.Console this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    1     0    this  Ljdk/nashorn/tools/jjs/Console;
            0    1     1  prompt  Ljava/lang/String;
    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 // jdk.nashorn.tools.jjs.Console this
         0: .line 95
            aload 0 /* this */
            invokevirtual jdk.nashorn.tools.jjs.Console.saveHistory:()V
         1: .line 96
            return
        end local 0 // jdk.nashorn.tools.jjs.Console this
      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 // jdk.nashorn.tools.jjs.Console this
         0: .line 99
            aconst_null
            astore 1
            aconst_null
            astore 2
         1: aload 0 /* this */
            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 /* out */
        start local 3 // java.io.Writer out
         2: .line 100
            ldc "line.separator"
            invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
            astore 4 /* lineSeparator */
        start local 4 // java.lang.String lineSeparator
         3: .line 102
            aload 3 /* out */
            aload 0 /* this */
            invokevirtual jdk.nashorn.tools.jjs.Console.getHistory:()Ljdk/internal/jline/extra/EditingHistory;
            invokevirtual jdk.internal.jline.extra.EditingHistory.save:()Ljava/util/Collection;
         4: .line 103
            invokeinterface java.util.Collection.stream:()Ljava/util/stream/Stream;
         5: .line 104
            aload 4 /* lineSeparator */
            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: .line 102
            invokevirtual java.io.Writer.write:(Ljava/lang/String;)V
        end local 4 // java.lang.String lineSeparator
         7: .line 105
            aload 3 /* out */
            ifnull 14
            aload 3 /* out */
            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 /* out */
            ifnull 9
            aload 3 /* out */
            invokevirtual java.io.Writer.close:()V
        end local 3 // java.io.Writer out
      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: .line 106
      StackMap locals:
      StackMap stack:
            return
        end local 0 // jdk.nashorn.tools.jjs.Console this
      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.jline.extra.EditingHistory getHistory();
    descriptor: ()Ljdk/internal/jline/extra/EditingHistory;
    flags: (0x0000) 
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // jdk.nashorn.tools.jjs.Console this
         0: .line 109
            aload 0 /* this */
            getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/jline/console/ConsoleReader;
            invokevirtual jdk.internal.jline.console.ConsoleReader.getHistory:()Ljdk/internal/jline/console/history/History;
            checkcast jdk.internal.jline.extra.EditingHistory
            areturn
        end local 0 // jdk.nashorn.tools.jjs.Console this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljdk/nashorn/tools/jjs/Console;

  boolean terminalEditorRunning();
    descriptor: ()Z
    flags: (0x0000) 
    Code:
      stack=1, locals=2, args_size=1
        start local 0 // jdk.nashorn.tools.jjs.Console this
         0: .line 113
            aload 0 /* this */
            getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/jline/console/ConsoleReader;
            invokevirtual jdk.internal.jline.console.ConsoleReader.getTerminal:()Ljdk/internal/jline/Terminal;
            astore 1 /* terminal */
        start local 1 // jdk.internal.jline.Terminal terminal
         1: .line 114
            aload 1 /* terminal */
            instanceof jdk.nashorn.tools.jjs.Console$JJSUnixTerminal
            ifeq 3
         2: .line 115
            aload 1 /* terminal */
            checkcast jdk.nashorn.tools.jjs.Console$JJSUnixTerminal
            invokevirtual jdk.nashorn.tools.jjs.Console$JJSUnixTerminal.isRaw:()Z
            ireturn
         3: .line 117
      StackMap locals: jdk.internal.jline.Terminal
      StackMap stack:
            iconst_0
            ireturn
        end local 1 // jdk.internal.jline.Terminal terminal
        end local 0 // jdk.nashorn.tools.jjs.Console this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    4     0      this  Ljdk/nashorn/tools/jjs/Console;
            1    4     1  terminal  Ljdk/internal/jline/Terminal;

  void suspend();
    descriptor: ()V
    flags: (0x0000) 
    Code:
      stack=3, locals=2, args_size=1
        start local 0 // jdk.nashorn.tools.jjs.Console this
         0: .line 122
            aload 0 /* this */
            getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/jline/console/ConsoleReader;
            invokevirtual jdk.internal.jline.console.ConsoleReader.getTerminal:()Ljdk/internal/jline/Terminal;
            invokeinterface jdk.internal.jline.Terminal.restore:()V
         1: .line 123
            goto 4
      StackMap locals:
      StackMap stack: java.lang.Exception
         2: astore 1 /* ex */
        start local 1 // java.lang.Exception ex
         3: .line 124
            new java.lang.IllegalStateException
            dup
            aload 1 /* ex */
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/Throwable;)V
            athrow
        end local 1 // java.lang.Exception ex
         4: .line 126
      StackMap locals:
      StackMap stack:
            return
        end local 0 // jdk.nashorn.tools.jjs.Console this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0  this  Ljdk/nashorn/tools/jjs/Console;
            3    4     1    ex  Ljava/lang/Exception;
      Exception table:
        from    to  target  type
           0     1       2  Class java.lang.Exception

  void resume();
    descriptor: ()V
    flags: (0x0000) 
    Code:
      stack=3, locals=2, args_size=1
        start local 0 // jdk.nashorn.tools.jjs.Console this
         0: .line 130
            aload 0 /* this */
            getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/jline/console/ConsoleReader;
            invokevirtual jdk.internal.jline.console.ConsoleReader.getTerminal:()Ljdk/internal/jline/Terminal;
            invokeinterface jdk.internal.jline.Terminal.init:()V
         1: .line 131
            goto 4
      StackMap locals:
      StackMap stack: java.lang.Exception
         2: astore 1 /* ex */
        start local 1 // java.lang.Exception ex
         3: .line 132
            new java.lang.IllegalStateException
            dup
            aload 1 /* ex */
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/Throwable;)V
            athrow
        end local 1 // java.lang.Exception ex
         4: .line 134
      StackMap locals:
      StackMap stack:
            return
        end local 0 // jdk.nashorn.tools.jjs.Console this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0  this  Ljdk/nashorn/tools/jjs/Console;
            3    4     1    ex  Ljava/lang/Exception;
      Exception table:
        from    to  target  type
           0     1       2  Class java.lang.Exception

  private static boolean isCygwin();
    descriptor: ()Z
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=1, locals=0, args_size=0
         0: .line 169
            ldc "SHELL"
            invokestatic java.lang.System.getenv:(Ljava/lang/String;)Ljava/lang/String;
            ifnull 1
            iconst_1
            ireturn
      StackMap locals:
      StackMap stack:
         1: iconst_0
            ireturn
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  private void bind(java.lang.String, java.lang.Object);
    descriptor: (Ljava/lang/String;Ljava/lang/Object;)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=6, args_size=3
        start local 0 // jdk.nashorn.tools.jjs.Console this
        start local 1 // java.lang.String shortcut
        start local 2 // java.lang.Object action
         0: .line 173
            aload 0 /* this */
            getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/jline/console/ConsoleReader;
            invokevirtual jdk.internal.jline.console.ConsoleReader.getKeys:()Ljdk/internal/jline/console/KeyMap;
            astore 3 /* km */
        start local 3 // jdk.internal.jline.console.KeyMap km
         1: .line 174
            iconst_0
            istore 4 /* i */
        start local 4 // int i
         2: goto 9
         3: .line 175
      StackMap locals: jdk.internal.jline.console.KeyMap int
      StackMap stack:
            aload 3 /* km */
            aload 1 /* shortcut */
            iload 4 /* i */
            invokevirtual java.lang.String.charAt:(I)C
            invokestatic java.lang.Character.toString:(C)Ljava/lang/String;
            invokevirtual jdk.internal.jline.console.KeyMap.getBound:(Ljava/lang/CharSequence;)Ljava/lang/Object;
            astore 5 /* value */
        start local 5 // java.lang.Object value
         4: .line 176
            aload 5 /* value */
            instanceof jdk.internal.jline.console.KeyMap
            ifeq 7
         5: .line 177
            aload 5 /* value */
            checkcast jdk.internal.jline.console.KeyMap
            astore 3 /* km */
         6: .line 178
            goto 8
         7: .line 179
      StackMap locals: java.lang.Object
      StackMap stack:
            aload 3 /* km */
            aload 1 /* shortcut */
            iload 4 /* i */
            invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
            aload 2 /* action */
            invokevirtual jdk.internal.jline.console.KeyMap.bind:(Ljava/lang/CharSequence;Ljava/lang/Object;)V
        end local 5 // java.lang.Object value
         8: .line 174
      StackMap locals:
      StackMap stack:
            iinc 4 /* i */ 1
      StackMap locals:
      StackMap stack:
         9: iload 4 /* i */
            aload 1 /* shortcut */
            invokevirtual java.lang.String.length:()I
            if_icmplt 3
        end local 4 // int i
        10: .line 182
            return
        end local 3 // jdk.internal.jline.console.KeyMap km
        end local 2 // java.lang.Object action
        end local 1 // java.lang.String shortcut
        end local 0 // jdk.nashorn.tools.jjs.Console this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0   11     0      this  Ljdk/nashorn/tools/jjs/Console;
            0   11     1  shortcut  Ljava/lang/String;
            0   11     2    action  Ljava/lang/Object;
            1   11     3        km  Ljdk/internal/jline/console/KeyMap;
            2   10     4         i  I
            4    8     5     value  Ljava/lang/Object;
    MethodParameters:
          Name  Flags
      shortcut  
      action    

  private void showDocumentation(java.util.function.Function<java.lang.String, java.lang.String>);
    descriptor: (Ljava/util/function/Function;)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=4, locals=6, args_size=2
        start local 0 // jdk.nashorn.tools.jjs.Console this
        start local 1 // java.util.function.Function docHelper
         0: .line 185
            aload 0 /* this */
            getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/jline/console/ConsoleReader;
            invokevirtual jdk.internal.jline.console.ConsoleReader.getCursorBuffer:()Ljdk/internal/jline/console/CursorBuffer;
            getfield jdk.internal.jline.console.CursorBuffer.buffer:Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            astore 2 /* buffer */
        start local 2 // java.lang.String buffer
         1: .line 186
            aload 0 /* this */
            getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/jline/console/ConsoleReader;
            invokevirtual jdk.internal.jline.console.ConsoleReader.getCursorBuffer:()Ljdk/internal/jline/console/CursorBuffer;
            getfield jdk.internal.jline.console.CursorBuffer.cursor:I
            istore 3 /* cursor */
        start local 3 // int cursor
         2: .line 187
            aload 1 /* docHelper */
            aload 2 /* buffer */
            iconst_0
            iload 3 /* cursor */
            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 /* doc */
        start local 4 // java.lang.String doc
         3: .line 189
            aload 4 /* doc */
            ifnull 9
         4: .line 190
            aload 0 /* this */
            getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/jline/console/ConsoleReader;
            invokevirtual jdk.internal.jline.console.ConsoleReader.println:()V
         5: .line 191
            aload 0 /* this */
            getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/jline/console/ConsoleReader;
            aload 4 /* doc */
            invokevirtual jdk.internal.jline.console.ConsoleReader.println:(Ljava/lang/CharSequence;)V
         6: .line 192
            aload 0 /* this */
            getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/jline/console/ConsoleReader;
            invokevirtual jdk.internal.jline.console.ConsoleReader.redrawLine:()V
         7: .line 193
            aload 0 /* this */
            getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/jline/console/ConsoleReader;
            invokevirtual jdk.internal.jline.console.ConsoleReader.flush:()V
         8: .line 194
            goto 13
         9: .line 195
      StackMap locals: java.lang.String int java.lang.String
      StackMap stack:
            aload 0 /* this */
            getfield jdk.nashorn.tools.jjs.Console.in:Ljdk/internal/jline/console/ConsoleReader;
            invokevirtual jdk.internal.jline.console.ConsoleReader.beep:()V
        10: .line 197
            goto 13
      StackMap locals:
      StackMap stack: java.io.IOException
        11: astore 5 /* ex */
        start local 5 // java.io.IOException ex
        12: .line 198
            new java.lang.IllegalStateException
            dup
            aload 5 /* ex */
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/Throwable;)V
            athrow
        end local 5 // java.io.IOException ex
        13: .line 200
      StackMap locals:
      StackMap stack:
            return
        end local 4 // java.lang.String doc
        end local 3 // int cursor
        end local 2 // java.lang.String buffer
        end local 1 // java.util.function.Function docHelper
        end local 0 // jdk.nashorn.tools.jjs.Console this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   14     0       this  Ljdk/nashorn/tools/jjs/Console;
            0   14     1  docHelper  Ljava/util/function/Function<Ljava/lang/String;Ljava/lang/String;>;
            1   14     2     buffer  Ljava/lang/String;
            2   14     3     cursor  I
            3   14     4        doc  Ljava/lang/String;
           12   13     5         ex  Ljava/io/IOException;
      Exception table:
        from    to  target  type
           3    10      11  Class java.io.IOException
    Signature: (Ljava/util/function/Function<Ljava/lang/String;Ljava/lang/String;>;)V
    MethodParameters:
           Name  Flags
      docHelper  final

  private void lambda$4(java.util.function.Function);
    descriptor: (Ljava/util/function/Function;)V
    flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // jdk.nashorn.tools.jjs.Console this
         0: .line 71
            aload 0 /* this */
            aload 1
            invokevirtual jdk.nashorn.tools.jjs.Console.showDocumentation:(Ljava/util/function/Function;)V
            return
        end local 0 // jdk.nashorn.tools.jjs.Console this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljdk/nashorn/tools/jjs/Console;
}
SourceFile: "Console.java"
NestMembers:
  jdk.nashorn.tools.jjs.Console$1  jdk.nashorn.tools.jjs.Console$2  jdk.nashorn.tools.jjs.Console$JJSUnixTerminal  jdk.nashorn.tools.jjs.Console$JJSWindowsTerminal
InnerClasses:
  public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
  public final Flavor = jdk.internal.jline.TerminalFactory$Flavor of jdk.internal.jline.TerminalFactory
  public abstract Handler = jdk.internal.misc.Signal$Handler of jdk.internal.misc.Signal
  jdk.nashorn.tools.jjs.Console$1
  jdk.nashorn.tools.jjs.Console$2
  final JJSUnixTerminal = jdk.nashorn.tools.jjs.Console$JJSUnixTerminal of jdk.nashorn.tools.jjs.Console
  final JJSWindowsTerminal = jdk.nashorn.tools.jjs.Console$JJSWindowsTerminal of jdk.nashorn.tools.jjs.Console