final class jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask implements jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask
  minor version: 0
  major version: 59
  flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
  this_class: jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask
  super_class: java.lang.Object
{
  private final java.util.List<jdk.jshell.SourceCodeAnalysis$Suggestion> suggestions;
    descriptor: Ljava/util/List;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/List<Ljdk/jshell/SourceCodeAnalysis$Suggestion;>;

  private final int anchor;
    descriptor: I
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final boolean cont;
    descriptor: Z
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final boolean showSmart;
    descriptor: Z
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  final jdk.internal.jshell.tool.ConsoleIOContext this$0;
    descriptor: Ljdk/internal/jshell/tool/ConsoleIOContext;
    flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC

  public void <init>(java.util.List<jdk.jshell.SourceCodeAnalysis$Suggestion>, int, boolean, );
    descriptor: (Ljdk/internal/jshell/tool/ConsoleIOContext;Ljava/util/List;IZZ)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=6, args_size=6
        start local 0 // jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask this
        start local 2 // java.util.List suggestions
        start local 3 // int anchor
        start local 4 // boolean cont
        start local 5 // boolean showSmart
         0: .line 578
            aload 0 /* this */
            aload 1
            putfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.this$0:Ljdk/internal/jshell/tool/ConsoleIOContext;
         1: .line 575
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         2: .line 579
            aload 0 /* this */
            aload 2 /* suggestions */
            putfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.suggestions:Ljava/util/List;
         3: .line 580
            aload 0 /* this */
            iload 3 /* anchor */
            putfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.anchor:I
         4: .line 581
            aload 0 /* this */
            iload 4 /* cont */
            putfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.cont:Z
         5: .line 582
            aload 0 /* this */
            iload 5 /* showSmart */
            putfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.showSmart:Z
         6: .line 583
            return
        end local 5 // boolean showSmart
        end local 4 // boolean cont
        end local 3 // int anchor
        end local 2 // java.util.List suggestions
        end local 0 // jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    7     0         this  Ljdk/internal/jshell/tool/ConsoleIOContext$OrdinaryCompletionTask;
            0    7     2  suggestions  Ljava/util/List<Ljdk/jshell/SourceCodeAnalysis$Suggestion;>;
            0    7     3       anchor  I
            0    7     4         cont  Z
            0    7     5    showSmart  Z
    Signature: (Ljava/util/List<Ljdk/jshell/SourceCodeAnalysis$Suggestion;>;IZZ)V
    MethodParameters:
             Name  Flags
      this$0       final
      suggestions  
      anchor       
      cont         
      showSmart    

  public java.lang.String description();
    descriptor: ()Ljava/lang/String;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask this
         0: .line 587
            new java.lang.UnsupportedOperationException
            dup
            ldc "Should not get here."
            invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
            athrow
        end local 0 // jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljdk/internal/jshell/tool/ConsoleIOContext$OrdinaryCompletionTask;

  public jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask$Result perform(java.lang.String, int);
    descriptor: (Ljava/lang/String;I)Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask$Result;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=7, args_size=3
        start local 0 // jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask this
        start local 1 // java.lang.String text
        start local 2 // int cursor
         0: .line 594
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.showSmart:Z
            ifeq 8
         1: .line 596
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.suggestions:Ljava/util/List;
            invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
         2: .line 597
            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;
         3: .line 598
            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$Suggestion.continuation()Ljava/lang/String; (9 itf)
                  (Ljdk/jshell/SourceCodeAnalysis$Suggestion;)Ljava/lang/String;
            invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
         4: .line 599
            invokeinterface java.util.stream.Stream.distinct:()Ljava/util/stream/Stream;
         5: .line 600
            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
         6: .line 595
            astore 3 /* toShow */
        start local 3 // java.util.List toShow
         7: .line 601
            goto 13
        end local 3 // java.util.List toShow
         8: .line 603
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.suggestions:Ljava/util/List;
            invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
         9: .line 604
            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$Suggestion.continuation()Ljava/lang/String; (9 itf)
                  (Ljdk/jshell/SourceCodeAnalysis$Suggestion;)Ljava/lang/String;
            invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
        10: .line 605
            invokeinterface java.util.stream.Stream.distinct:()Ljava/util/stream/Stream;
        11: .line 606
            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
        12: .line 602
            astore 3 /* toShow */
        start local 3 // java.util.List toShow
        13: .line 609
      StackMap locals: java.util.List
      StackMap stack:
            aload 3 /* toShow */
            invokeinterface java.util.List.isEmpty:()Z
            ifeq 15
        14: .line 610
            getstatic jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask$Result.CONTINUE:Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask$Result;
            areturn
        15: .line 614
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.suggestions:Ljava/util/List;
            invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
        16: .line 615
            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$Suggestion.continuation()Ljava/lang/String; (9 itf)
                  (Ljdk/jshell/SourceCodeAnalysis$Suggestion;)Ljava/lang/String;
            invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
        17: .line 616
            invokedynamic apply()Ljava/util/function/BinaryOperator;
              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;)Ljava/lang/Object;
                  jdk/internal/jshell/tool/ConsoleIOContext.access$1(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; (6)
                  (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
            invokeinterface java.util.stream.Stream.reduce:(Ljava/util/function/BinaryOperator;)Ljava/util/Optional;
        18: .line 613
            astore 4 /* prefix */
        start local 4 // java.util.Optional prefix
        19: .line 618
            aload 4 /* prefix */
            ldc ""
            invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.lang.String
            iload 2 /* cursor */
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.anchor:I
            isub
            invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
            astore 5 /* prefixStr */
        start local 5 // java.lang.String prefixStr
        20: .line 619
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.this$0:Ljdk/internal/jshell/tool/ConsoleIOContext;
            getfield jdk.internal.jshell.tool.ConsoleIOContext.in:Ljdk/internal/org/jline/reader/impl/LineReaderImpl;
            aload 5 /* prefixStr */
            invokevirtual jdk.internal.org.jline.reader.impl.LineReaderImpl.putString:(Ljava/lang/CharSequence;)V
        21: .line 621
            aload 3 /* toShow */
            invokeinterface java.util.List.size:()I
            iconst_1
            if_icmpgt 22
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.showSmart:Z
            ifne 22
            iconst_0
            goto 23
      StackMap locals: java.util.Optional java.lang.String
      StackMap stack:
        22: iconst_1
      StackMap locals:
      StackMap stack: int
        23: istore 6 /* showItems */
        start local 6 // boolean showItems
        24: .line 623
            iload 6 /* showItems */
            ifeq 27
        25: .line 624
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.this$0:Ljdk/internal/jshell/tool/ConsoleIOContext;
            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
        26: .line 625
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.this$0:Ljdk/internal/jshell/tool/ConsoleIOContext;
            aload 3 /* toShow */
            invokevirtual jdk.internal.jshell.tool.ConsoleIOContext.printColumns:(Ljava/util/List;)V
        27: .line 628
      StackMap locals: int
      StackMap stack:
            aload 5 /* prefixStr */
            invokevirtual java.lang.String.isEmpty:()Z
            ifne 31
        28: .line 629
            iload 6 /* showItems */
            ifeq 29
            getstatic jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask$Result.FINISH:Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask$Result;
            goto 30
      StackMap locals:
      StackMap stack:
        29: getstatic jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask$Result.SKIP_NOREPAINT:Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask$Result;
      StackMap locals:
      StackMap stack: jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask$Result
        30: areturn
        31: .line 631
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.cont:Z
            ifeq 32
            getstatic jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask$Result.CONTINUE:Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask$Result;
            goto 33
      StackMap locals:
      StackMap stack:
        32: getstatic jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask$Result.FINISH:Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask$Result;
      StackMap locals:
      StackMap stack: jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask$Result
        33: areturn
        end local 6 // boolean showItems
        end local 5 // java.lang.String prefixStr
        end local 4 // java.util.Optional prefix
        end local 3 // java.util.List toShow
        end local 2 // int cursor
        end local 1 // java.lang.String text
        end local 0 // jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   34     0       this  Ljdk/internal/jshell/tool/ConsoleIOContext$OrdinaryCompletionTask;
            0   34     1       text  Ljava/lang/String;
            0   34     2     cursor  I
            7    8     3     toShow  Ljava/util/List<Ljava/lang/CharSequence;>;
           13   34     3     toShow  Ljava/util/List<Ljava/lang/CharSequence;>;
           19   34     4     prefix  Ljava/util/Optional<Ljava/lang/String;>;
           20   34     5  prefixStr  Ljava/lang/String;
           24   34     6  showItems  Z
    Exceptions:
      throws java.io.IOException
    MethodParameters:
        Name  Flags
      text    
      cursor  
}
SourceFile: "ConsoleIOContext.java"
NestHost: jdk.internal.jshell.tool.ConsoleIOContext
InnerClasses:
  public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
  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 OrdinaryCompletionTask = jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask of jdk.internal.jshell.tool.ConsoleIOContext
  public abstract Suggestion = jdk.jshell.SourceCodeAnalysis$Suggestion of jdk.jshell.SourceCodeAnalysis