public class jdk.internal.jline.console.completer.StringsCompleter implements jdk.internal.jline.console.completer.Completer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.jline.console.completer.StringsCompleter
super_class: java.lang.Object
{
private final java.util.SortedSet<java.lang.String> strings;
descriptor: Ljava/util/SortedSet;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/SortedSet<Ljava/lang/String;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.TreeSet
dup
invokespecial java.util.TreeSet.<init>:()V
putfield jdk.internal.jline.console.completer.StringsCompleter.strings:Ljava/util/SortedSet;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/jline/console/completer/StringsCompleter;
public void <init>(java.util.Collection<java.lang.String>);
descriptor: (Ljava/util/Collection;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.TreeSet
dup
invokespecial java.util.TreeSet.<init>:()V
putfield jdk.internal.jline.console.completer.StringsCompleter.strings:Ljava/util/SortedSet;
2: aload 1
invokestatic jdk.internal.jline.internal.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
3: aload 0
invokevirtual jdk.internal.jline.console.completer.StringsCompleter.getStrings:()Ljava/util/Collection;
aload 1
invokeinterface java.util.Collection.addAll:(Ljava/util/Collection;)Z
pop
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/jline/console/completer/StringsCompleter;
0 5 1 strings Ljava/util/Collection<Ljava/lang/String;>;
Signature: (Ljava/util/Collection<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
strings final
public void <init>(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokespecial jdk.internal.jline.console.completer.StringsCompleter.<init>:(Ljava/util/Collection;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jline/console/completer/StringsCompleter;
0 2 1 strings [Ljava/lang/String;
MethodParameters:
Name Flags
strings final
public java.util.Collection<java.lang.String> getStrings();
descriptor: ()Ljava/util/Collection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jline.console.completer.StringsCompleter.strings:Ljava/util/SortedSet;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jline/console/completer/StringsCompleter;
Signature: ()Ljava/util/Collection<Ljava/lang/String;>;
public int complete(java.lang.String, int, java.util.List<java.lang.CharSequence>);
descriptor: (Ljava/lang/String;ILjava/util/List;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
invokestatic jdk.internal.jline.internal.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 1
ifnonnull 4
2: aload 3
aload 0
getfield jdk.internal.jline.console.completer.StringsCompleter.strings:Ljava/util/SortedSet;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
3: goto 10
4: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jline.console.completer.StringsCompleter.strings:Ljava/util/SortedSet;
aload 1
invokeinterface java.util.SortedSet.tailSet:(Ljava/lang/Object;)Ljava/util/SortedSet;
invokeinterface java.util.SortedSet.iterator:()Ljava/util/Iterator;
astore 5
goto 9
StackMap locals: jdk.internal.jline.console.completer.StringsCompleter java.lang.String int java.util.List top java.util.Iterator
StackMap stack:
5: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 6: aload 4
aload 1
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 8
7: goto 10
8: StackMap locals: jdk.internal.jline.console.completer.StringsCompleter java.lang.String int java.util.List java.lang.String java.util.Iterator
StackMap stack:
aload 3
aload 4
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 9: StackMap locals: jdk.internal.jline.console.completer.StringsCompleter java.lang.String int java.util.List top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
10: StackMap locals: jdk.internal.jline.console.completer.StringsCompleter java.lang.String int java.util.List
StackMap stack:
aload 3
invokeinterface java.util.List.size:()I
iconst_1
if_icmpne 12
11: aload 3
iconst_0
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 3
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.List.set:(ILjava/lang/Object;)Ljava/lang/Object;
pop
12: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.List.isEmpty:()Z
ifeq 13
iconst_m1
goto 14
StackMap locals:
StackMap stack:
13: iconst_0
StackMap locals:
StackMap stack: int
14: ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljdk/internal/jline/console/completer/StringsCompleter;
0 15 1 buffer Ljava/lang/String;
0 15 2 cursor I
0 15 3 candidates Ljava/util/List<Ljava/lang/CharSequence;>;
6 9 4 match Ljava/lang/String;
Signature: (Ljava/lang/String;ILjava/util/List<Ljava/lang/CharSequence;>;)I
MethodParameters:
Name Flags
buffer final
cursor final
candidates final
}
SourceFile: "StringsCompleter.java"