public class jdk.internal.jline.console.completer.CandidateListCompletionHandler implements jdk.internal.jline.console.completer.CompletionHandler
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: jdk.internal.jline.console.completer.CandidateListCompletionHandler
  super_class: java.lang.Object
{
  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // jdk.internal.jline.console.completer.CandidateListCompletionHandler this
         0: .line 33
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // jdk.internal.jline.console.completer.CandidateListCompletionHandler this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljdk/internal/jline/console/completer/CandidateListCompletionHandler;

  public boolean complete(jdk.internal.jline.console.ConsoleReader, java.util.List<java.lang.CharSequence>, );
    descriptor: (Ljdk/internal/jline/console/ConsoleReader;Ljava/util/List;I)Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=6, args_size=4
        start local 0 // jdk.internal.jline.console.completer.CandidateListCompletionHandler this
        start local 1 // jdk.internal.jline.console.ConsoleReader reader
        start local 2 // java.util.List candidates
        start local 3 // int pos
         0: .line 41
            aload 1 /* reader */
            invokevirtual jdk.internal.jline.console.ConsoleReader.getCursorBuffer:()Ljdk/internal/jline/console/CursorBuffer;
            astore 4 /* buf */
        start local 4 // jdk.internal.jline.console.CursorBuffer buf
         1: .line 44
            aload 2 /* candidates */
            invokeinterface java.util.List.size:()I
            iconst_1
            if_icmpne 7
         2: .line 45
            aload 2 /* candidates */
            iconst_0
            invokeinterface java.util.List.get:(I)Ljava/lang/Object;
            checkcast java.lang.CharSequence
            astore 5 /* value */
        start local 5 // java.lang.CharSequence value
         3: .line 48
            aload 5 /* value */
            aload 4 /* buf */
            invokevirtual jdk.internal.jline.console.CursorBuffer.toString:()Ljava/lang/String;
            invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
            ifeq 5
         4: .line 49
            iconst_0
            ireturn
         5: .line 52
      StackMap locals: jdk.internal.jline.console.CursorBuffer java.lang.CharSequence
      StackMap stack:
            aload 1 /* reader */
            aload 5 /* value */
            iload 3 /* pos */
            invokestatic jdk.internal.jline.console.completer.CandidateListCompletionHandler.setBuffer:(Ljdk/internal/jline/console/ConsoleReader;Ljava/lang/CharSequence;I)V
         6: .line 54
            iconst_1
            ireturn
        end local 5 // java.lang.CharSequence value
         7: .line 56
      StackMap locals:
      StackMap stack:
            aload 2 /* candidates */
            invokeinterface java.util.List.size:()I
            iconst_1
            if_icmple 10
         8: .line 57
            aload 0 /* this */
            aload 2 /* candidates */
            invokevirtual jdk.internal.jline.console.completer.CandidateListCompletionHandler.getUnambiguousCompletions:(Ljava/util/List;)Ljava/lang/String;
            astore 5 /* value */
        start local 5 // java.lang.String value
         9: .line 58
            aload 1 /* reader */
            aload 5 /* value */
            iload 3 /* pos */
            invokestatic jdk.internal.jline.console.completer.CandidateListCompletionHandler.setBuffer:(Ljdk/internal/jline/console/ConsoleReader;Ljava/lang/CharSequence;I)V
        end local 5 // java.lang.String value
        10: .line 61
      StackMap locals:
      StackMap stack:
            aload 1 /* reader */
            aload 2 /* candidates */
            invokestatic jdk.internal.jline.console.completer.CandidateListCompletionHandler.printCandidates:(Ljdk/internal/jline/console/ConsoleReader;Ljava/util/Collection;)V
        11: .line 64
            aload 1 /* reader */
            invokevirtual jdk.internal.jline.console.ConsoleReader.drawLine:()V
        12: .line 66
            iconst_1
            ireturn
        end local 4 // jdk.internal.jline.console.CursorBuffer buf
        end local 3 // int pos
        end local 2 // java.util.List candidates
        end local 1 // jdk.internal.jline.console.ConsoleReader reader
        end local 0 // jdk.internal.jline.console.completer.CandidateListCompletionHandler this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0   13     0        this  Ljdk/internal/jline/console/completer/CandidateListCompletionHandler;
            0   13     1      reader  Ljdk/internal/jline/console/ConsoleReader;
            0   13     2  candidates  Ljava/util/List<Ljava/lang/CharSequence;>;
            0   13     3         pos  I
            1   13     4         buf  Ljdk/internal/jline/console/CursorBuffer;
            3    7     5       value  Ljava/lang/CharSequence;
            9   10     5       value  Ljava/lang/String;
    Exceptions:
      throws java.io.IOException
    Signature: (Ljdk/internal/jline/console/ConsoleReader;Ljava/util/List<Ljava/lang/CharSequence;>;I)Z
    MethodParameters:
            Name  Flags
      reader      final
      candidates  final
      pos         final

  public static void setBuffer(jdk.internal.jline.console.ConsoleReader, java.lang.CharSequence, int);
    descriptor: (Ljdk/internal/jline/console/ConsoleReader;Ljava/lang/CharSequence;I)V
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=3, locals=3, args_size=3
        start local 0 // jdk.internal.jline.console.ConsoleReader reader
        start local 1 // java.lang.CharSequence value
        start local 2 // int offset
         0: .line 72
      StackMap locals:
      StackMap stack:
            aload 0 /* reader */
            invokevirtual jdk.internal.jline.console.ConsoleReader.getCursorBuffer:()Ljdk/internal/jline/console/CursorBuffer;
            getfield jdk.internal.jline.console.CursorBuffer.cursor:I
            iload 2 /* offset */
            if_icmple 1
            aload 0 /* reader */
            invokevirtual jdk.internal.jline.console.ConsoleReader.backspace:()Z
            ifne 0
         1: .line 76
      StackMap locals:
      StackMap stack:
            aload 0 /* reader */
            aload 1 /* value */
            invokevirtual jdk.internal.jline.console.ConsoleReader.putString:(Ljava/lang/CharSequence;)V
         2: .line 77
            aload 0 /* reader */
            iload 2 /* offset */
            aload 1 /* value */
            invokeinterface java.lang.CharSequence.length:()I
            iadd
            invokevirtual jdk.internal.jline.console.ConsoleReader.setCursorPosition:(I)Z
            pop
         3: .line 78
            return
        end local 2 // int offset
        end local 1 // java.lang.CharSequence value
        end local 0 // jdk.internal.jline.console.ConsoleReader reader
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    4     0  reader  Ljdk/internal/jline/console/ConsoleReader;
            0    4     1   value  Ljava/lang/CharSequence;
            0    4     2  offset  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
        Name  Flags
      reader  final
      value   final
      offset  final

  public static void printCandidates(jdk.internal.jline.console.ConsoleReader, java.util.Collection<java.lang.CharSequence>);
    descriptor: (Ljdk/internal/jline/console/ConsoleReader;Ljava/util/Collection;)V
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=6, locals=8, args_size=2
        start local 0 // jdk.internal.jline.console.ConsoleReader reader
        start local 1 // java.util.Collection candidates
         0: .line 89
            new java.util.HashSet
            dup
            aload 1 /* candidates */
            invokespecial java.util.HashSet.<init>:(Ljava/util/Collection;)V
            astore 2 /* distinct */
        start local 2 // java.util.Set distinct
         1: .line 91
            aload 2 /* distinct */
            invokeinterface java.util.Set.size:()I
            aload 0 /* reader */
            invokevirtual jdk.internal.jline.console.ConsoleReader.getAutoprintThreshold:()I
            if_icmple 17
         2: .line 93
            aload 0 /* reader */
            getstatic jdk.internal.jline.console.completer.CandidateListCompletionHandler$Messages.DISPLAY_CANDIDATES:Ljdk/internal/jline/console/completer/CandidateListCompletionHandler$Messages;
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 1 /* candidates */
            invokeinterface java.util.Collection.size:()I
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            invokevirtual jdk.internal.jline.console.completer.CandidateListCompletionHandler$Messages.format:([Ljava/lang/Object;)Ljava/lang/String;
            invokevirtual jdk.internal.jline.console.ConsoleReader.print:(Ljava/lang/CharSequence;)V
         3: .line 94
            aload 0 /* reader */
            invokevirtual jdk.internal.jline.console.ConsoleReader.flush:()V
         4: .line 98
            getstatic jdk.internal.jline.console.completer.CandidateListCompletionHandler$Messages.DISPLAY_CANDIDATES_NO:Ljdk/internal/jline/console/completer/CandidateListCompletionHandler$Messages;
            iconst_0
            anewarray java.lang.Object
            invokevirtual jdk.internal.jline.console.completer.CandidateListCompletionHandler$Messages.format:([Ljava/lang/Object;)Ljava/lang/String;
            astore 4 /* noOpt */
        start local 4 // java.lang.String noOpt
         5: .line 99
            getstatic jdk.internal.jline.console.completer.CandidateListCompletionHandler$Messages.DISPLAY_CANDIDATES_YES:Ljdk/internal/jline/console/completer/CandidateListCompletionHandler$Messages;
            iconst_0
            anewarray java.lang.Object
            invokevirtual jdk.internal.jline.console.completer.CandidateListCompletionHandler$Messages.format:([Ljava/lang/Object;)Ljava/lang/String;
            astore 5 /* yesOpt */
        start local 5 // java.lang.String yesOpt
         6: .line 100
            iconst_2
            newarray 5
            dup
            iconst_0
            aload 5 /* yesOpt */
            iconst_0
            invokevirtual java.lang.String.charAt:(I)C
            castore
            dup
            iconst_1
            aload 4 /* noOpt */
            iconst_0
            invokevirtual java.lang.String.charAt:(I)C
            castore
            astore 6 /* allowed */
        start local 6 // char[] allowed
         7: .line 102
            goto 15
        start local 3 // int c
         8: .line 103
      StackMap locals: jdk.internal.jline.console.ConsoleReader java.util.Collection java.util.Set int java.lang.String java.lang.String char[]
      StackMap stack:
            new java.lang.String
            dup
            iconst_1
            newarray 5
            dup
            iconst_0
            iload 3 /* c */
            i2c
            castore
            invokespecial java.lang.String.<init>:([C)V
            astore 7 /* tmp */
        start local 7 // java.lang.String tmp
         9: .line 105
            aload 4 /* noOpt */
            aload 7 /* tmp */
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifeq 12
        10: .line 106
            aload 0 /* reader */
            invokevirtual jdk.internal.jline.console.ConsoleReader.println:()V
        11: .line 107
            return
        12: .line 109
      StackMap locals: java.lang.String
      StackMap stack:
            aload 5 /* yesOpt */
            aload 7 /* tmp */
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifeq 14
        13: .line 110
            goto 17
        14: .line 113
      StackMap locals:
      StackMap stack:
            aload 0 /* reader */
            invokevirtual jdk.internal.jline.console.ConsoleReader.beep:()V
        end local 7 // java.lang.String tmp
        end local 3 // int c
        15: .line 102
      StackMap locals: jdk.internal.jline.console.ConsoleReader java.util.Collection java.util.Set top java.lang.String java.lang.String char[]
      StackMap stack:
            aload 0 /* reader */
            aload 6 /* allowed */
            invokevirtual jdk.internal.jline.console.ConsoleReader.readCharacter:([C)I
            dup
            istore 3 /* c */
        start local 3 // int c
        16: iconst_m1
            if_icmpne 8
        end local 6 // char[] allowed
        end local 5 // java.lang.String yesOpt
        end local 4 // java.lang.String noOpt
        end local 3 // int c
        17: .line 119
      StackMap locals: jdk.internal.jline.console.ConsoleReader java.util.Collection java.util.Set
      StackMap stack:
            aload 2 /* distinct */
            invokeinterface java.util.Set.size:()I
            aload 1 /* candidates */
            invokeinterface java.util.Collection.size:()I
            if_icmpeq 25
        18: .line 120
            new java.util.ArrayList
            dup
            invokespecial java.util.ArrayList.<init>:()V
            astore 3 /* copy */
        start local 3 // java.util.Collection copy
        19: .line 122
            aload 1 /* candidates */
            invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
            astore 5
            goto 23
      StackMap locals: jdk.internal.jline.console.ConsoleReader java.util.Collection java.util.Set java.util.Collection top java.util.Iterator
      StackMap stack:
        20: aload 5
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast java.lang.CharSequence
            astore 4 /* next */
        start local 4 // java.lang.CharSequence next
        21: .line 123
            aload 3 /* copy */
            aload 4 /* next */
            invokeinterface java.util.Collection.contains:(Ljava/lang/Object;)Z
            ifne 23
        22: .line 124
            aload 3 /* copy */
            aload 4 /* next */
            invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
            pop
        end local 4 // java.lang.CharSequence next
        23: .line 122
      StackMap locals:
      StackMap stack:
            aload 5
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 20
        24: .line 128
            aload 3 /* copy */
            astore 1 /* candidates */
        end local 3 // java.util.Collection copy
        25: .line 131
      StackMap locals: jdk.internal.jline.console.ConsoleReader java.util.Collection java.util.Set
      StackMap stack:
            aload 0 /* reader */
            invokevirtual jdk.internal.jline.console.ConsoleReader.println:()V
        26: .line 132
            aload 0 /* reader */
            aload 1 /* candidates */
            invokevirtual jdk.internal.jline.console.ConsoleReader.printColumns:(Ljava/util/Collection;)V
        27: .line 133
            return
        end local 2 // java.util.Set distinct
        end local 1 // java.util.Collection candidates
        end local 0 // jdk.internal.jline.console.ConsoleReader reader
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0   28     0      reader  Ljdk/internal/jline/console/ConsoleReader;
            0   28     1  candidates  Ljava/util/Collection<Ljava/lang/CharSequence;>;
            1   28     2    distinct  Ljava/util/Set<Ljava/lang/CharSequence;>;
            8   15     3           c  I
           16   17     3           c  I
            5   17     4       noOpt  Ljava/lang/String;
            6   17     5      yesOpt  Ljava/lang/String;
            7   17     6     allowed  [C
            9   15     7         tmp  Ljava/lang/String;
           19   25     3        copy  Ljava/util/Collection<Ljava/lang/CharSequence;>;
           21   23     4        next  Ljava/lang/CharSequence;
    Exceptions:
      throws java.io.IOException
    Signature: (Ljdk/internal/jline/console/ConsoleReader;Ljava/util/Collection<Ljava/lang/CharSequence;>;)V
    MethodParameters:
            Name  Flags
      reader      final
      candidates  

  private java.lang.String getUnambiguousCompletions(java.util.List<java.lang.CharSequence>);
    descriptor: (Ljava/util/List;)Ljava/lang/String;
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=5, locals=6, args_size=2
        start local 0 // jdk.internal.jline.console.completer.CandidateListCompletionHandler this
        start local 1 // java.util.List candidates
         0: .line 141
            aload 1 /* candidates */
            ifnull 1
            aload 1 /* candidates */
            invokeinterface java.util.List.isEmpty:()Z
            ifeq 2
         1: .line 142
      StackMap locals:
      StackMap stack:
            aconst_null
            areturn
         2: .line 146
      StackMap locals:
      StackMap stack:
            aload 1 /* candidates */
            aload 1 /* candidates */
            invokeinterface java.util.List.size:()I
            anewarray java.lang.String
            invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
            checkcast java.lang.String[]
            astore 2 /* strings */
        start local 2 // java.lang.String[] strings
         3: .line 148
            aload 2 /* strings */
            iconst_0
            aaload
            astore 3 /* first */
        start local 3 // java.lang.String first
         4: .line 149
            new java.lang.StringBuilder
            dup
            invokespecial java.lang.StringBuilder.<init>:()V
            astore 4 /* candidate */
        start local 4 // java.lang.StringBuilder candidate
         5: .line 151
            iconst_0
            istore 5 /* i */
        start local 5 // int i
         6: goto 10
         7: .line 152
      StackMap locals: jdk.internal.jline.console.completer.CandidateListCompletionHandler java.util.List java.lang.String[] java.lang.String java.lang.StringBuilder int
      StackMap stack:
            aload 0 /* this */
            aload 3 /* first */
            iconst_0
            iload 5 /* i */
            iconst_1
            iadd
            invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
            aload 2 /* strings */
            invokevirtual jdk.internal.jline.console.completer.CandidateListCompletionHandler.startsWith:(Ljava/lang/String;[Ljava/lang/String;)Z
            ifeq 11
         8: .line 153
            aload 4 /* candidate */
            aload 3 /* first */
            iload 5 /* i */
            invokevirtual java.lang.String.charAt:(I)C
            invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
            pop
         9: .line 151
            iinc 5 /* i */ 1
      StackMap locals:
      StackMap stack:
        10: iload 5 /* i */
            aload 3 /* first */
            invokevirtual java.lang.String.length:()I
            if_icmplt 7
        end local 5 // int i
        11: .line 160
      StackMap locals:
      StackMap stack:
            aload 4 /* candidate */
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            areturn
        end local 4 // java.lang.StringBuilder candidate
        end local 3 // java.lang.String first
        end local 2 // java.lang.String[] strings
        end local 1 // java.util.List candidates
        end local 0 // jdk.internal.jline.console.completer.CandidateListCompletionHandler this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0   12     0        this  Ljdk/internal/jline/console/completer/CandidateListCompletionHandler;
            0   12     1  candidates  Ljava/util/List<Ljava/lang/CharSequence;>;
            3   12     2     strings  [Ljava/lang/String;
            4   12     3       first  Ljava/lang/String;
            5   12     4   candidate  Ljava/lang/StringBuilder;
            6   11     5           i  I
    Signature: (Ljava/util/List<Ljava/lang/CharSequence;>;)Ljava/lang/String;
    MethodParameters:
            Name  Flags
      candidates  final

  private boolean startsWith(java.lang.String, java.lang.String[]);
    descriptor: (Ljava/lang/String;[Ljava/lang/String;)Z
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=2, locals=7, args_size=3
        start local 0 // jdk.internal.jline.console.completer.CandidateListCompletionHandler this
        start local 1 // java.lang.String starts
        start local 2 // java.lang.String[] candidates
         0: .line 167
            aload 2 /* candidates */
            dup
            astore 6
            arraylength
            istore 5
            iconst_0
            istore 4
            goto 5
      StackMap locals: jdk.internal.jline.console.completer.CandidateListCompletionHandler java.lang.String java.lang.String[] top int int java.lang.String[]
      StackMap stack:
         1: aload 6
            iload 4
            aaload
            astore 3 /* candidate */
        start local 3 // java.lang.String candidate
         2: .line 168
            aload 3 /* candidate */
            aload 1 /* starts */
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifne 4
         3: .line 169
            iconst_0
            ireturn
        end local 3 // java.lang.String candidate
         4: .line 167
      StackMap locals:
      StackMap stack:
            iinc 4 1
      StackMap locals:
      StackMap stack:
         5: iload 4
            iload 5
            if_icmplt 1
         6: .line 173
            iconst_1
            ireturn
        end local 2 // java.lang.String[] candidates
        end local 1 // java.lang.String starts
        end local 0 // jdk.internal.jline.console.completer.CandidateListCompletionHandler this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    7     0        this  Ljdk/internal/jline/console/completer/CandidateListCompletionHandler;
            0    7     1      starts  Ljava/lang/String;
            0    7     2  candidates  [Ljava/lang/String;
            2    4     3   candidate  Ljava/lang/String;
    MethodParameters:
            Name  Flags
      starts      final
      candidates  final
}
SourceFile: "CandidateListCompletionHandler.java"
NestMembers:
  jdk.internal.jline.console.completer.CandidateListCompletionHandler$Messages
InnerClasses:
  private final Messages = jdk.internal.jline.console.completer.CandidateListCompletionHandler$Messages of jdk.internal.jline.console.completer.CandidateListCompletionHandler