final class jdk.internal.jshell.tool.ConsoleIOContext$ExpressionJavadocTask 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$ExpressionJavadocTask
super_class: java.lang.Object
{
private final java.util.List<jdk.internal.jshell.tool.ConsoleIOContext$CompletionTask> todo;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask;>;
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.internal.jshell.tool.ConsoleIOContext$CompletionTask>);
descriptor: (Ljdk/internal/jshell/tool/ConsoleIOContext;Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 2 0: aload 0
aload 1
putfield jdk.internal.jshell.tool.ConsoleIOContext$ExpressionJavadocTask.this$0:Ljdk/internal/jshell/tool/ConsoleIOContext;
aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 2
putfield jdk.internal.jshell.tool.ConsoleIOContext$ExpressionJavadocTask.todo:Ljava/util/List;
2: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/jshell/tool/ConsoleIOContext$ExpressionJavadocTask;
0 3 2 todo Ljava/util/List<Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask;>;
Signature: (Ljava/util/List<Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask;>;)V
MethodParameters:
Name Flags
this$0 final
todo
public java.lang.String description();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext$ExpressionJavadocTask.this$0:Ljdk/internal/jshell/tool/ConsoleIOContext;
getfield jdk.internal.jshell.tool.ConsoleIOContext.repl:Ljdk/internal/jshell/tool/JShellTool;
ldc "jshell.console.see.documentation"
invokevirtual jdk.internal.jshell.tool.JShellTool.getResourceString:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/ConsoleIOContext$ExpressionJavadocTask;
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=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext$ExpressionJavadocTask.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;
astore 3
start local 3 1: new jdk.internal.shellsupport.doc.JavadocFormatter
dup
aload 3
invokeinterface jdk.internal.org.jline.terminal.Terminal.getWidth:()I
2: iconst_1
3: invokespecial jdk.internal.shellsupport.doc.JavadocFormatter.<init>:(IZ)V
astore 4
start local 4 4: aload 0
aload 4
invokedynamic apply(Ljdk/internal/jshell/tool/ConsoleIOContext$ExpressionJavadocTask;Ljdk/internal/shellsupport/doc/JavadocFormatter;)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/internal/jshell/tool/ConsoleIOContext$ExpressionJavadocTask.lambda$0(Ljdk/internal/shellsupport/doc/JavadocFormatter;Ljdk/jshell/SourceCodeAnalysis$Documentation;)Ljava/lang/String; (7)
(Ljdk/jshell/SourceCodeAnalysis$Documentation;)Ljava/lang/String;
astore 5
start local 5 5: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext$ExpressionJavadocTask.this$0:Ljdk/internal/jshell/tool/ConsoleIOContext;
getfield jdk.internal.jshell.tool.ConsoleIOContext.repl:Ljdk/internal/jshell/tool/JShellTool;
getfield jdk.internal.jshell.tool.JShellTool.analysis:Ljdk/jshell/SourceCodeAnalysis;
new java.lang.StringBuilder
dup
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext$ExpressionJavadocTask.this$0:Ljdk/internal/jshell/tool/ConsoleIOContext;
getfield jdk.internal.jshell.tool.ConsoleIOContext.prefix:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iload 2
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext$ExpressionJavadocTask.this$0:Ljdk/internal/jshell/tool/ConsoleIOContext;
getfield jdk.internal.jshell.tool.ConsoleIOContext.prefix:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
iadd
iconst_1
invokevirtual jdk.jshell.SourceCodeAnalysis.documentation:(Ljava/lang/String;IZ)Ljava/util/List;
6: invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
7: aload 5
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
8: 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
9: astore 6
start local 6 10: aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext$ExpressionJavadocTask.this$0:Ljdk/internal/jshell/tool/ConsoleIOContext;
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext$ExpressionJavadocTask.todo:Ljava/util/List;
aload 6
iconst_0
invokevirtual jdk.internal.jshell.tool.ConsoleIOContext.doPrintFullDocumentation:(Ljava/util/List;Ljava/util/List;Z)Ljdk/internal/jshell/tool/ConsoleIOContext$CompletionTask$Result;
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 11 0 this Ljdk/internal/jshell/tool/ConsoleIOContext$ExpressionJavadocTask;
0 11 1 text Ljava/lang/String;
0 11 2 cursor I
1 11 3 term Ljdk/internal/org/jline/terminal/Terminal;
4 11 4 formatter Ljdk/internal/shellsupport/doc/JavadocFormatter;
5 11 5 convertor Ljava/util/function/Function<Ljdk/jshell/SourceCodeAnalysis$Documentation;Ljava/lang/String;>;
10 11 6 doc Ljava/util/List<Ljava/lang/String;>;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
text
cursor
private java.lang.String lambda$0(jdk.internal.shellsupport.doc.JavadocFormatter, jdk.jshell.SourceCodeAnalysis$Documentation);
descriptor: (Ljdk/internal/shellsupport/doc/JavadocFormatter;Ljdk/jshell/SourceCodeAnalysis$Documentation;)Ljava/lang/String;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 2 0: new java.lang.StringBuilder
dup
aload 1
aload 2
invokeinterface jdk.jshell.SourceCodeAnalysis$Documentation.signature:()Ljava/lang/String;
aload 2
invokeinterface jdk.jshell.SourceCodeAnalysis$Documentation.javadoc:()Ljava/lang/String;
invokevirtual jdk.internal.shellsupport.doc.JavadocFormatter.formatJavadoc:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: aload 2
invokeinterface jdk.jshell.SourceCodeAnalysis$Documentation.javadoc:()Ljava/lang/String;
ifnonnull 2
aload 0
getfield jdk.internal.jshell.tool.ConsoleIOContext$ExpressionJavadocTask.this$0:Ljdk/internal/jshell/tool/ConsoleIOContext;
getfield jdk.internal.jshell.tool.ConsoleIOContext.repl:Ljdk/internal/jshell/tool/JShellTool;
ldc "jshell.console.no.javadoc"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.messageFormat:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
goto 3
2: StackMap locals:
StackMap stack: java.lang.StringBuilder
ldc ""
3: StackMap locals: jdk.internal.jshell.tool.ConsoleIOContext$ExpressionJavadocTask jdk.internal.shellsupport.doc.JavadocFormatter jdk.jshell.SourceCodeAnalysis$Documentation
StackMap stack: java.lang.StringBuilder java.lang.String
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: areturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/jshell/tool/ConsoleIOContext$ExpressionJavadocTask;
0 6 2 d Ljdk/jshell/SourceCodeAnalysis$Documentation;
}
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 ExpressionJavadocTask = jdk.internal.jshell.tool.ConsoleIOContext$ExpressionJavadocTask of jdk.internal.jshell.tool.ConsoleIOContext
public abstract Documentation = jdk.jshell.SourceCodeAnalysis$Documentation of jdk.jshell.SourceCodeAnalysis