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 smart;
    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 smart
         0: .line 435
            aload 0 /* this */
            aload 1
            putfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.this$0:Ljdk/internal/jshell/tool/ConsoleIOContext;
         1: .line 432
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         2: .line 436
            aload 0 /* this */
            aload 2 /* suggestions */
            putfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.suggestions:Ljava/util/List;
         3: .line 437
            aload 0 /* this */
            iload 3 /* anchor */
            putfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.anchor:I
         4: .line 438
            aload 0 /* this */
            iload 4 /* cont */
            putfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.cont:Z
         5: .line 439
            aload 0 /* this */
            iload 5 /* smart */
            putfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.smart:Z
         6: .line 440
            return
        end local 5 // boolean smart
        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        smart  Z
    Signature: (Ljava/util/List<Ljdk/jshell/SourceCodeAnalysis$Suggestion;>;IZZ)V
    MethodParameters:
             Name  Flags
      this$0       final
      suggestions  
      anchor       
      cont         
      smart        

  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 444
            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 451
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.smart:Z
            ifeq 8
         1: .line 453
            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 454
            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 455
            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 456
            invokeinterface java.util.stream.Stream.distinct:()Ljava/util/stream/Stream;
         5: .line 457
            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 452
            astore 3 /* toShow */
        start local 3 // java.util.List toShow
         7: .line 458
            goto 13
        end local 3 // java.util.List toShow
         8: .line 460
      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 461
            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 462
            invokeinterface java.util.stream.Stream.distinct:()Ljava/util/stream/Stream;
        11: .line 463
            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 459
            astore 3 /* toShow */
        start local 3 // java.util.List toShow
        13: .line 466
      StackMap locals: java.util.List
      StackMap stack:
            aload 3 /* toShow */
            invokeinterface java.util.List.isEmpty:()Z
            ifeq 15
        14: .line 467
            getstatic jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask$Result.CONTINUE:Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask$Result;
            areturn
        15: .line 471
      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 472
            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 473
            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 470
            astore 4 /* prefix */
        start local 4 // java.util.Optional prefix
        19: .line 475
            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 476
            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/jline/console/ConsoleReader;
            aload 5 /* prefixStr */
            invokevirtual jdk.internal.jline.console.ConsoleReader.putString:(Ljava/lang/CharSequence;)V
        21: .line 478
            aload 3 /* toShow */
            invokeinterface java.util.List.size:()I
            iconst_1
            if_icmpgt 22
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.smart: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 480
            iload 6 /* showItems */
            ifeq 27
        25: .line 481
            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/jline/console/ConsoleReader;
            invokevirtual jdk.internal.jline.console.ConsoleReader.println:()V
        26: .line 482
            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/jline/console/ConsoleReader;
            aload 3 /* toShow */
            invokevirtual jdk.internal.jline.console.ConsoleReader.printColumns:(Ljava/util/Collection;)V
        27: .line 485
      StackMap locals: int
      StackMap stack:
            aload 5 /* prefixStr */
            invokevirtual java.lang.String.isEmpty:()Z
            ifne 31
        28: .line 486
            iload 6 /* showItems */
            ifeq 29
            getstatic jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask$Result.SKIP: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 488
      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