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 start local 2 start local 3 start local 4 start local 5 0: aload 0
aload 1
putfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.this$0:Ljdk/internal/jshell/tool/ConsoleIOContext;
1: aload 0
invokespecial java.lang.Object.<init>:()V
2: aload 0
aload 2
putfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.suggestions:Ljava/util/List;
3: aload 0
iload 3
putfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.anchor:I
4: aload 0
iload 4
putfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.cont:Z
5: aload 0
iload 5
putfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.smart:Z
6: return
end local 5 end local 4 end local 3 end local 2 end local 0 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 0: new java.lang.UnsupportedOperationException
dup
ldc "Should not get here."
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 0 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 start local 1 start local 2 0: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.smart:Z
ifeq 8
1: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.suggestions:Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
2: 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: 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: invokeinterface java.util.stream.Stream.distinct:()Ljava/util/stream/Stream;
5: 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: astore 3
start local 3 7: goto 13
end local 3 8: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.suggestions:Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
9: 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: invokeinterface java.util.stream.Stream.distinct:()Ljava/util/stream/Stream;
11: 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: astore 3
start local 3 13: StackMap locals: java.util.List
StackMap stack:
aload 3
invokeinterface java.util.List.isEmpty:()Z
ifeq 15
14: getstatic jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask$Result.CONTINUE:Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask$Result;
areturn
15: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.suggestions:Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
16: 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: 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: astore 4
start local 4 19: aload 4
ldc ""
invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
iload 2
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext$OrdinaryCompletionTask.anchor:I
isub
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 5
start local 5 20: aload 0
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
invokevirtual jdk.internal.jline.console.ConsoleReader.putString:(Ljava/lang/CharSequence;)V
21: aload 3
invokeinterface java.util.List.size:()I
iconst_1
if_icmpgt 22
aload 0
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
start local 6 24: iload 6
ifeq 27
25: aload 0
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: aload 0
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
invokevirtual jdk.internal.jline.console.ConsoleReader.printColumns:(Ljava/util/Collection;)V
27: StackMap locals: int
StackMap stack:
aload 5
invokevirtual java.lang.String.isEmpty:()Z
ifne 31
28: iload 6
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: StackMap locals:
StackMap stack:
aload 0
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 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 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