public class jdk.internal.jshell.tool.JShellTool implements jdk.internal.jshell.tool.MessageHandler
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.jshell.tool.JShellTool
super_class: java.lang.Object
{
private static final java.util.regex.Pattern LINEBREAK;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static final java.lang.String RECORD_SEPARATOR;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "\u241E"
private static final java.lang.String RB_NAME_PREFIX;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "jdk.internal.jshell.tool.resources"
private static final java.lang.String VERSION_RB_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "jdk.internal.jshell.tool.resources.version"
private static final java.lang.String L10N_RB_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "jdk.internal.jshell.tool.resources.l10n"
final java.io.InputStream cmdin;
descriptor: Ljava/io/InputStream;
flags: (0x0010) ACC_FINAL
final java.io.PrintStream cmdout;
descriptor: Ljava/io/PrintStream;
flags: (0x0010) ACC_FINAL
final java.io.PrintStream cmderr;
descriptor: Ljava/io/PrintStream;
flags: (0x0010) ACC_FINAL
final java.io.PrintStream console;
descriptor: Ljava/io/PrintStream;
flags: (0x0010) ACC_FINAL
final java.io.InputStream userin;
descriptor: Ljava/io/InputStream;
flags: (0x0010) ACC_FINAL
final java.io.PrintStream userout;
descriptor: Ljava/io/PrintStream;
flags: (0x0010) ACC_FINAL
final java.io.PrintStream usererr;
descriptor: Ljava/io/PrintStream;
flags: (0x0010) ACC_FINAL
final jdk.internal.jshell.tool.PersistentStorage prefs;
descriptor: Ljdk/internal/jshell/tool/PersistentStorage;
flags: (0x0010) ACC_FINAL
final java.util.Map<java.lang.String, java.lang.String> envvars;
descriptor: Ljava/util/Map;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
final java.util.Locale locale;
descriptor: Ljava/util/Locale;
flags: (0x0010) ACC_FINAL
final jdk.internal.jshell.tool.Feedback feedback;
descriptor: Ljdk/internal/jshell/tool/Feedback;
flags: (0x0010) ACC_FINAL
private java.util.ResourceBundle versionRB;
descriptor: Ljava/util/ResourceBundle;
flags: (0x0002) ACC_PRIVATE
private java.util.ResourceBundle outputRB;
descriptor: Ljava/util/ResourceBundle;
flags: (0x0002) ACC_PRIVATE
private jdk.internal.jshell.tool.IOContext input;
descriptor: Ljdk/internal/jshell/tool/IOContext;
flags: (0x0002) ACC_PRIVATE
private boolean regenerateOnDeath;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean live;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private jdk.internal.jshell.tool.JShellTool$Options options;
descriptor: Ljdk/internal/jshell/tool/JShellTool$Options;
flags: (0x0002) ACC_PRIVATE
jdk.jshell.SourceCodeAnalysis analysis;
descriptor: Ljdk/jshell/SourceCodeAnalysis;
flags: (0x0000)
private jdk.jshell.JShell state;
descriptor: Ljdk/jshell/JShell;
flags: (0x0002) ACC_PRIVATE
jdk.jshell.JShell$Subscription shutdownSubscription;
descriptor: Ljdk/jshell/JShell$Subscription;
flags: (0x0000)
static final jdk.internal.jshell.tool.JShellTool$EditorSetting BUILT_IN_EDITOR;
descriptor: Ljdk/internal/jshell/tool/JShellTool$EditorSetting;
flags: (0x0018) ACC_STATIC, ACC_FINAL
private boolean debug;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public boolean testPrompt;
descriptor: Z
flags: (0x0001) ACC_PUBLIC
private jdk.internal.jshell.tool.Startup startup;
descriptor: Ljdk/internal/jshell/tool/Startup;
flags: (0x0002) ACC_PRIVATE
private boolean isCurrentlyRunningStartup;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.lang.String executionControlSpec;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private jdk.internal.jshell.tool.JShellTool$EditorSetting editor;
descriptor: Ljdk/internal/jshell/tool/JShellTool$EditorSetting;
flags: (0x0002) ACC_PRIVATE
private static final java.lang.String[] EDITOR_ENV_VARS;
descriptor: [Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private jdk.internal.jshell.tool.JShellTool$ReplayableHistory replayableHistory;
descriptor: Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;
flags: (0x0002) ACC_PRIVATE
private jdk.internal.jshell.tool.JShellTool$ReplayableHistory replayableHistoryPrevious;
descriptor: Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;
flags: (0x0002) ACC_PRIVATE
static final java.lang.String STARTUP_KEY;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "STARTUP"
static final java.lang.String EDITOR_KEY;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "EDITOR"
static final java.lang.String FEEDBACK_KEY;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "FEEDBACK"
static final java.lang.String MODE_KEY;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "MODE"
static final java.lang.String REPLAY_RESTORE_KEY;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "REPLAY_RESTORE"
static final java.util.regex.Pattern BUILTIN_FILE_PATTERN;
descriptor: Ljava/util/regex/Pattern;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final java.lang.String BUILTIN_FILE_PATH_FORMAT;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "/jdk/jshell/tool/resources/%s.jsh"
private static final java.util.regex.Pattern OPTION_PRE_PATTERN;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.regex.Pattern OPTION_PATTERN;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.regex.Pattern OPTION_VALUE_PATTERN;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
jdk.internal.jshell.tool.JShellTool$NameSpace mainNamespace;
descriptor: Ljdk/internal/jshell/tool/JShellTool$NameSpace;
flags: (0x0000)
jdk.internal.jshell.tool.JShellTool$NameSpace startNamespace;
descriptor: Ljdk/internal/jshell/tool/JShellTool$NameSpace;
flags: (0x0000)
jdk.internal.jshell.tool.JShellTool$NameSpace errorNamespace;
descriptor: Ljdk/internal/jshell/tool/JShellTool$NameSpace;
flags: (0x0000)
jdk.internal.jshell.tool.JShellTool$NameSpace currentNameSpace;
descriptor: Ljdk/internal/jshell/tool/JShellTool$NameSpace;
flags: (0x0000)
java.util.Map<jdk.jshell.Snippet, jdk.internal.jshell.tool.JShellTool$SnippetInfo> mapSnippet;
descriptor: Ljava/util/Map;
flags: (0x0000)
Signature: Ljava/util/Map<Ljdk/jshell/Snippet;Ljdk/internal/jshell/tool/JShellTool$SnippetInfo;>;
static final jdk.internal.jshell.tool.JShellTool$CompletionProvider EMPTY_COMPLETION_PROVIDER;
descriptor: Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
flags: (0x0018) ACC_STATIC, ACC_FINAL
private static final jdk.internal.jshell.tool.JShellTool$CompletionProvider SNIPPET_HISTORY_OPTION_COMPLETION_PROVIDER;
descriptor: Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final jdk.internal.jshell.tool.JShellTool$CompletionProvider SAVE_OPTION_COMPLETION_PROVIDER;
descriptor: Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final jdk.internal.jshell.tool.JShellTool$CompletionProvider SNIPPET_OPTION_COMPLETION_PROVIDER;
descriptor: Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final jdk.internal.jshell.tool.JShellTool$FixedCompletionProvider COMMAND_LINE_LIKE_OPTIONS_COMPLETION_PROVIDER;
descriptor: Ljdk/internal/jshell/tool/JShellTool$FixedCompletionProvider;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final jdk.internal.jshell.tool.JShellTool$CompletionProvider RELOAD_OPTIONS_COMPLETION_PROVIDER;
descriptor: Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final jdk.internal.jshell.tool.JShellTool$CompletionProvider SET_MODE_OPTIONS_COMPLETION_PROVIDER;
descriptor: Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final jdk.internal.jshell.tool.JShellTool$CompletionProvider FILE_COMPLETION_PROVIDER;
descriptor: Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.Map<java.lang.String, jdk.internal.jshell.tool.JShellTool$CompletionProvider> ARG_OPTIONS;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;>;
private final java.util.Map<java.lang.String, jdk.internal.jshell.tool.JShellTool$Command> commands;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljdk/internal/jshell/tool/JShellTool$Command;>;
private jdk.internal.jshell.tool.ContinuousCompletionProvider commandCompletions;
descriptor: Ljdk/internal/jshell/tool/ContinuousCompletionProvider;
flags: (0x0002) ACC_PRIVATE
private static final java.lang.String[] SET_SUBCOMMANDS;
descriptor: [Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static volatile int[] $SWITCH_TABLE$jdk$jshell$Snippet$SubKind;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
private static volatile int[] $SWITCH_TABLE$jdk$jshell$Snippet$Status;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=7, locals=0, args_size=0
0: ldc Ljdk/internal/jshell/tool/JShellTool;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic jdk.internal.jshell.tool.JShellTool.$assertionsDisabled:Z
3: ldc "\\R"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic jdk.internal.jshell.tool.JShellTool.LINEBREAK:Ljava/util/regex/Pattern;
4: new jdk.internal.jshell.tool.JShellTool$EditorSetting
dup
aconst_null
iconst_0
invokespecial jdk.internal.jshell.tool.JShellTool$EditorSetting.<init>:([Ljava/lang/String;Z)V
putstatic jdk.internal.jshell.tool.JShellTool.BUILT_IN_EDITOR:Ljdk/internal/jshell/tool/JShellTool$EditorSetting;
5: iconst_3
anewarray java.lang.String
dup
iconst_0
6: ldc "JSHELLEDITOR"
aastore
dup
iconst_1
ldc "VISUAL"
aastore
dup
iconst_2
ldc "EDITOR"
aastore
7: putstatic jdk.internal.jshell.tool.JShellTool.EDITOR_ENV_VARS:[Ljava/lang/String;
8: ldc "\\w+"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic jdk.internal.jshell.tool.JShellTool.BUILTIN_FILE_PATTERN:Ljava/util/regex/Pattern;
9: ldc "\\s*(\\S+\\s+)*?"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
10: putstatic jdk.internal.jshell.tool.JShellTool.OPTION_PRE_PATTERN:Ljava/util/regex/Pattern;
11: new java.lang.StringBuilder
dup
getstatic jdk.internal.jshell.tool.JShellTool.OPTION_PRE_PATTERN:Ljava/util/regex/Pattern;
invokevirtual java.util.regex.Pattern.pattern:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "(?<dd>-??)(?<flag>-([a-z][a-z\\-]*)?)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
12: putstatic jdk.internal.jshell.tool.JShellTool.OPTION_PATTERN:Ljava/util/regex/Pattern;
13: new java.lang.StringBuilder
dup
getstatic jdk.internal.jshell.tool.JShellTool.OPTION_PATTERN:Ljava/util/regex/Pattern;
invokevirtual java.util.regex.Pattern.pattern:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "\\s+(?<val>\\S*)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
14: putstatic jdk.internal.jshell.tool.JShellTool.OPTION_VALUE_PATTERN:Ljava/util/regex/Pattern;
15: new jdk.internal.jshell.tool.JShellTool$FixedCompletionProvider
dup
iconst_0
anewarray java.lang.String
invokespecial jdk.internal.jshell.tool.JShellTool$FixedCompletionProvider.<init>:([Ljava/lang/String;)V
putstatic jdk.internal.jshell.tool.JShellTool.EMPTY_COMPLETION_PROVIDER:Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
16: new jdk.internal.jshell.tool.JShellTool$FixedCompletionProvider
dup
iconst_3
anewarray java.lang.String
dup
iconst_0
ldc "-all"
aastore
dup
iconst_1
ldc "-start "
aastore
dup
iconst_2
ldc "-history"
aastore
invokespecial jdk.internal.jshell.tool.JShellTool$FixedCompletionProvider.<init>:([Ljava/lang/String;)V
putstatic jdk.internal.jshell.tool.JShellTool.SNIPPET_HISTORY_OPTION_COMPLETION_PROVIDER:Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
17: new jdk.internal.jshell.tool.JShellTool$FixedCompletionProvider
dup
iconst_3
anewarray java.lang.String
dup
iconst_0
ldc "-all "
aastore
dup
iconst_1
ldc "-start "
aastore
dup
iconst_2
ldc "-history "
aastore
invokespecial jdk.internal.jshell.tool.JShellTool$FixedCompletionProvider.<init>:([Ljava/lang/String;)V
putstatic jdk.internal.jshell.tool.JShellTool.SAVE_OPTION_COMPLETION_PROVIDER:Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
18: new jdk.internal.jshell.tool.JShellTool$FixedCompletionProvider
dup
iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "-all"
aastore
dup
iconst_1
ldc "-start "
aastore
invokespecial jdk.internal.jshell.tool.JShellTool$FixedCompletionProvider.<init>:([Ljava/lang/String;)V
putstatic jdk.internal.jshell.tool.JShellTool.SNIPPET_OPTION_COMPLETION_PROVIDER:Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
19: new jdk.internal.jshell.tool.JShellTool$FixedCompletionProvider
dup
iconst_4
anewarray java.lang.String
dup
iconst_0
20: ldc "-class-path "
aastore
dup
iconst_1
ldc "-module-path "
aastore
dup
iconst_2
ldc "-add-modules "
aastore
dup
iconst_3
ldc "-add-exports "
21: aastore
invokespecial jdk.internal.jshell.tool.JShellTool$FixedCompletionProvider.<init>:([Ljava/lang/String;)V
putstatic jdk.internal.jshell.tool.JShellTool.COMMAND_LINE_LIKE_OPTIONS_COMPLETION_PROVIDER:Ljdk/internal/jshell/tool/JShellTool$FixedCompletionProvider;
22: new jdk.internal.jshell.tool.JShellTool$FixedCompletionProvider
dup
23: getstatic jdk.internal.jshell.tool.JShellTool.COMMAND_LINE_LIKE_OPTIONS_COMPLETION_PROVIDER:Ljdk/internal/jshell/tool/JShellTool$FixedCompletionProvider;
iconst_2
anewarray java.lang.String
dup
iconst_0
24: ldc "-restore "
aastore
dup
iconst_1
ldc "-quiet "
25: aastore
invokespecial jdk.internal.jshell.tool.JShellTool$FixedCompletionProvider.<init>:(Ljdk/internal/jshell/tool/JShellTool$FixedCompletionProvider;[Ljava/lang/String;)V
putstatic jdk.internal.jshell.tool.JShellTool.RELOAD_OPTIONS_COMPLETION_PROVIDER:Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
26: new jdk.internal.jshell.tool.JShellTool$FixedCompletionProvider
dup
iconst_3
anewarray java.lang.String
dup
iconst_0
ldc "-command"
aastore
dup
iconst_1
ldc "-quiet"
aastore
dup
iconst_2
ldc "-delete"
aastore
invokespecial jdk.internal.jshell.tool.JShellTool$FixedCompletionProvider.<init>:([Ljava/lang/String;)V
putstatic jdk.internal.jshell.tool.JShellTool.SET_MODE_OPTIONS_COMPLETION_PROVIDER:Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
27: 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/internal/jshell/tool/JShellTool.lambda$0(Ljava/nio/file/Path;)Z (6)
(Ljava/nio/file/Path;)Z
invokestatic jdk.internal.jshell.tool.JShellTool.fileCompletions:(Ljava/util/function/Predicate;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
putstatic jdk.internal.jshell.tool.JShellTool.FILE_COMPLETION_PROVIDER:Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
28: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putstatic jdk.internal.jshell.tool.JShellTool.ARG_OPTIONS:Ljava/util/Map;
29: getstatic jdk.internal.jshell.tool.JShellTool.ARG_OPTIONS:Ljava/util/Map;
ldc "-class-path"
invokestatic jdk.internal.jshell.tool.JShellTool.classPathCompletion:()Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
30: getstatic jdk.internal.jshell.tool.JShellTool.ARG_OPTIONS:Ljava/util/Map;
ldc "-module-path"
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/internal/jshell/tool/JShellTool.lambda$128(Ljava/nio/file/Path;)Z (6)
(Ljava/nio/file/Path;)Z
invokestatic jdk.internal.jshell.tool.JShellTool.fileCompletions:(Ljava/util/function/Predicate;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
31: getstatic jdk.internal.jshell.tool.JShellTool.ARG_OPTIONS:Ljava/util/Map;
ldc "-add-modules"
getstatic jdk.internal.jshell.tool.JShellTool.EMPTY_COMPLETION_PROVIDER:Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
32: getstatic jdk.internal.jshell.tool.JShellTool.ARG_OPTIONS:Ljava/util/Map;
ldc "-add-exports"
getstatic jdk.internal.jshell.tool.JShellTool.EMPTY_COMPLETION_PROVIDER:Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
33: bipush 7
anewarray java.lang.String
dup
iconst_0
34: ldc "format"
aastore
dup
iconst_1
ldc "truncation"
aastore
dup
iconst_2
ldc "feedback"
aastore
dup
iconst_3
ldc "mode"
aastore
dup
iconst_4
ldc "prompt"
aastore
dup
iconst_5
ldc "editor"
aastore
dup
bipush 6
ldc "start"
aastore
35: putstatic jdk.internal.jshell.tool.JShellTool.SET_SUBCOMMANDS:[Ljava/lang/String;
36: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.io.InputStream, java.io.PrintStream, java.io.PrintStream, java.io.PrintStream, java.io.InputStream, java.io.PrintStream, java.io.PrintStream, jdk.internal.jshell.tool.PersistentStorage, java.util.Map<java.lang.String, java.lang.String>, java.util.Locale);
descriptor: (Ljava/io/InputStream;Ljava/io/PrintStream;Ljava/io/PrintStream;Ljava/io/PrintStream;Ljava/io/InputStream;Ljava/io/PrintStream;Ljava/io/PrintStream;Ljdk/internal/jshell/tool/PersistentStorage;Ljava/util/Map;Ljava/util/Locale;)V
flags: (0x0000)
Code:
stack=21, locals=11, args_size=11
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 start local 8 start local 9 start local 10 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new jdk.internal.jshell.tool.Feedback
dup
invokespecial jdk.internal.jshell.tool.Feedback.<init>:()V
putfield jdk.internal.jshell.tool.JShellTool.feedback:Ljdk/internal/jshell/tool/Feedback;
2: aload 0
aconst_null
putfield jdk.internal.jshell.tool.JShellTool.versionRB:Ljava/util/ResourceBundle;
3: aload 0
aconst_null
putfield jdk.internal.jshell.tool.JShellTool.outputRB:Ljava/util/ResourceBundle;
4: aload 0
aconst_null
putfield jdk.internal.jshell.tool.JShellTool.input:Ljdk/internal/jshell/tool/IOContext;
5: aload 0
iconst_1
putfield jdk.internal.jshell.tool.JShellTool.regenerateOnDeath:Z
6: aload 0
iconst_0
putfield jdk.internal.jshell.tool.JShellTool.live:Z
7: aload 0
aconst_null
putfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
8: aload 0
aconst_null
putfield jdk.internal.jshell.tool.JShellTool.shutdownSubscription:Ljdk/jshell/JShell$Subscription;
9: aload 0
iconst_0
putfield jdk.internal.jshell.tool.JShellTool.debug:Z
10: aload 0
iconst_0
putfield jdk.internal.jshell.tool.JShellTool.testPrompt:Z
11: aload 0
aconst_null
putfield jdk.internal.jshell.tool.JShellTool.startup:Ljdk/internal/jshell/tool/Startup;
12: aload 0
iconst_0
putfield jdk.internal.jshell.tool.JShellTool.isCurrentlyRunningStartup:Z
13: aload 0
aconst_null
putfield jdk.internal.jshell.tool.JShellTool.executionControlSpec:Ljava/lang/String;
14: aload 0
getstatic jdk.internal.jshell.tool.JShellTool.BUILT_IN_EDITOR:Ljdk/internal/jshell/tool/JShellTool$EditorSetting;
putfield jdk.internal.jshell.tool.JShellTool.editor:Ljdk/internal/jshell/tool/JShellTool$EditorSetting;
15: aload 0
new java.util.LinkedHashMap
dup
invokespecial java.util.LinkedHashMap.<init>:()V
putfield jdk.internal.jshell.tool.JShellTool.commands:Ljava/util/Map;
16: aload 0
new jdk.internal.jshell.tool.JShellTool$Command
dup
ldc "/list"
17: aload 0
invokedynamic apply(Ljdk/internal/jshell/tool/JShellTool;)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/JShellTool.cmdList(Ljava/lang/String;)Z (7)
(Ljava/lang/String;)Ljava/lang/Boolean;
18: aload 0
getstatic jdk.internal.jshell.tool.JShellTool.SNIPPET_HISTORY_OPTION_COMPLETION_PROVIDER:Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
19: aload 0
invokedynamic get(Ljdk/internal/jshell/tool/JShellTool;)Ljava/util/function/Supplier;
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;
jdk/internal/jshell/tool/JShellTool.allSnippets()Ljava/util/stream/Stream; (5)
()Ljava/util/stream/Stream;
20: invokevirtual jdk.internal.jshell.tool.JShellTool.snippetWithOptionCompletion:(Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;Ljava/util/function/Supplier;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
invokespecial jdk.internal.jshell.tool.JShellTool$Command.<init>:(Ljava/lang/String;Ljava/util/function/Function;Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;)V
21: invokevirtual jdk.internal.jshell.tool.JShellTool.registerCommand:(Ljdk/internal/jshell/tool/JShellTool$Command;)V
22: aload 0
new jdk.internal.jshell.tool.JShellTool$Command
dup
ldc "/edit"
23: aload 0
invokedynamic apply(Ljdk/internal/jshell/tool/JShellTool;)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/JShellTool.cmdEdit(Ljava/lang/String;)Z (7)
(Ljava/lang/String;)Ljava/lang/Boolean;
24: aload 0
getstatic jdk.internal.jshell.tool.JShellTool.SNIPPET_OPTION_COMPLETION_PROVIDER:Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
25: aload 0
invokedynamic get(Ljdk/internal/jshell/tool/JShellTool;)Ljava/util/function/Supplier;
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;
jdk/internal/jshell/tool/JShellTool.allSnippets()Ljava/util/stream/Stream; (5)
()Ljava/util/stream/Stream;
26: invokevirtual jdk.internal.jshell.tool.JShellTool.snippetWithOptionCompletion:(Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;Ljava/util/function/Supplier;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
invokespecial jdk.internal.jshell.tool.JShellTool$Command.<init>:(Ljava/lang/String;Ljava/util/function/Function;Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;)V
27: invokevirtual jdk.internal.jshell.tool.JShellTool.registerCommand:(Ljdk/internal/jshell/tool/JShellTool$Command;)V
28: aload 0
new jdk.internal.jshell.tool.JShellTool$Command
dup
ldc "/drop"
29: aload 0
invokedynamic apply(Ljdk/internal/jshell/tool/JShellTool;)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/JShellTool.cmdDrop(Ljava/lang/String;)Z (7)
(Ljava/lang/String;)Ljava/lang/Boolean;
30: aload 0
aload 0
invokedynamic get(Ljdk/internal/jshell/tool/JShellTool;)Ljava/util/function/Supplier;
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;
jdk/internal/jshell/tool/JShellTool.dropableSnippets()Ljava/util/stream/Stream; (5)
()Ljava/util/stream/Stream;
invokevirtual jdk.internal.jshell.tool.JShellTool.snippetCompletion:(Ljava/util/function/Supplier;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
31: getstatic jdk.internal.jshell.tool.JShellTool$CommandKind.REPLAY:Ljdk/internal/jshell/tool/JShellTool$CommandKind;
invokespecial jdk.internal.jshell.tool.JShellTool$Command.<init>:(Ljava/lang/String;Ljava/util/function/Function;Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;Ljdk/internal/jshell/tool/JShellTool$CommandKind;)V
32: invokevirtual jdk.internal.jshell.tool.JShellTool.registerCommand:(Ljdk/internal/jshell/tool/JShellTool$Command;)V
33: aload 0
new jdk.internal.jshell.tool.JShellTool$Command
dup
ldc "/save"
34: aload 0
invokedynamic apply(Ljdk/internal/jshell/tool/JShellTool;)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/JShellTool.cmdSave(Ljava/lang/String;)Z (7)
(Ljava/lang/String;)Ljava/lang/Boolean;
35: invokestatic jdk.internal.jshell.tool.JShellTool.saveCompletion:()Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
invokespecial jdk.internal.jshell.tool.JShellTool$Command.<init>:(Ljava/lang/String;Ljava/util/function/Function;Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;)V
36: invokevirtual jdk.internal.jshell.tool.JShellTool.registerCommand:(Ljdk/internal/jshell/tool/JShellTool$Command;)V
37: aload 0
new jdk.internal.jshell.tool.JShellTool$Command
dup
ldc "/open"
38: aload 0
invokedynamic apply(Ljdk/internal/jshell/tool/JShellTool;)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/JShellTool.cmdOpen(Ljava/lang/String;)Z (7)
(Ljava/lang/String;)Ljava/lang/Boolean;
39: getstatic jdk.internal.jshell.tool.JShellTool.FILE_COMPLETION_PROVIDER:Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
invokespecial jdk.internal.jshell.tool.JShellTool$Command.<init>:(Ljava/lang/String;Ljava/util/function/Function;Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;)V
40: invokevirtual jdk.internal.jshell.tool.JShellTool.registerCommand:(Ljdk/internal/jshell/tool/JShellTool$Command;)V
41: aload 0
new jdk.internal.jshell.tool.JShellTool$Command
dup
ldc "/vars"
42: aload 0
invokedynamic apply(Ljdk/internal/jshell/tool/JShellTool;)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/JShellTool.cmdVars(Ljava/lang/String;)Z (7)
(Ljava/lang/String;)Ljava/lang/Boolean;
43: aload 0
getstatic jdk.internal.jshell.tool.JShellTool.SNIPPET_OPTION_COMPLETION_PROVIDER:Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
44: aload 0
invokedynamic get(Ljdk/internal/jshell/tool/JShellTool;)Ljava/util/function/Supplier;
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;
jdk/internal/jshell/tool/JShellTool.allVarSnippets()Ljava/util/stream/Stream; (5)
()Ljava/util/stream/Stream;
45: invokevirtual jdk.internal.jshell.tool.JShellTool.snippetWithOptionCompletion:(Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;Ljava/util/function/Supplier;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
invokespecial jdk.internal.jshell.tool.JShellTool$Command.<init>:(Ljava/lang/String;Ljava/util/function/Function;Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;)V
46: invokevirtual jdk.internal.jshell.tool.JShellTool.registerCommand:(Ljdk/internal/jshell/tool/JShellTool$Command;)V
47: aload 0
new jdk.internal.jshell.tool.JShellTool$Command
dup
ldc "/methods"
48: aload 0
invokedynamic apply(Ljdk/internal/jshell/tool/JShellTool;)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/JShellTool.cmdMethods(Ljava/lang/String;)Z (7)
(Ljava/lang/String;)Ljava/lang/Boolean;
49: aload 0
getstatic jdk.internal.jshell.tool.JShellTool.SNIPPET_OPTION_COMPLETION_PROVIDER:Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
50: aload 0
invokedynamic get(Ljdk/internal/jshell/tool/JShellTool;)Ljava/util/function/Supplier;
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;
jdk/internal/jshell/tool/JShellTool.allMethodSnippets()Ljava/util/stream/Stream; (5)
()Ljava/util/stream/Stream;
51: invokevirtual jdk.internal.jshell.tool.JShellTool.snippetWithOptionCompletion:(Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;Ljava/util/function/Supplier;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
invokespecial jdk.internal.jshell.tool.JShellTool$Command.<init>:(Ljava/lang/String;Ljava/util/function/Function;Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;)V
52: invokevirtual jdk.internal.jshell.tool.JShellTool.registerCommand:(Ljdk/internal/jshell/tool/JShellTool$Command;)V
53: aload 0
new jdk.internal.jshell.tool.JShellTool$Command
dup
ldc "/types"
54: aload 0
invokedynamic apply(Ljdk/internal/jshell/tool/JShellTool;)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/JShellTool.cmdTypes(Ljava/lang/String;)Z (7)
(Ljava/lang/String;)Ljava/lang/Boolean;
55: aload 0
getstatic jdk.internal.jshell.tool.JShellTool.SNIPPET_OPTION_COMPLETION_PROVIDER:Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
56: aload 0
invokedynamic get(Ljdk/internal/jshell/tool/JShellTool;)Ljava/util/function/Supplier;
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;
jdk/internal/jshell/tool/JShellTool.allTypeSnippets()Ljava/util/stream/Stream; (5)
()Ljava/util/stream/Stream;
57: invokevirtual jdk.internal.jshell.tool.JShellTool.snippetWithOptionCompletion:(Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;Ljava/util/function/Supplier;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
invokespecial jdk.internal.jshell.tool.JShellTool$Command.<init>:(Ljava/lang/String;Ljava/util/function/Function;Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;)V
58: invokevirtual jdk.internal.jshell.tool.JShellTool.registerCommand:(Ljdk/internal/jshell/tool/JShellTool$Command;)V
59: aload 0
new jdk.internal.jshell.tool.JShellTool$Command
dup
ldc "/imports"
60: aload 0
invokedynamic apply(Ljdk/internal/jshell/tool/JShellTool;)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/JShellTool.lambda$16(Ljava/lang/String;)Ljava/lang/Boolean; (7)
(Ljava/lang/String;)Ljava/lang/Boolean;
61: getstatic jdk.internal.jshell.tool.JShellTool.EMPTY_COMPLETION_PROVIDER:Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
invokespecial jdk.internal.jshell.tool.JShellTool$Command.<init>:(Ljava/lang/String;Ljava/util/function/Function;Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;)V
62: invokevirtual jdk.internal.jshell.tool.JShellTool.registerCommand:(Ljdk/internal/jshell/tool/JShellTool$Command;)V
63: aload 0
new jdk.internal.jshell.tool.JShellTool$Command
dup
ldc "/exit"
64: aload 0
invokedynamic apply(Ljdk/internal/jshell/tool/JShellTool;)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/JShellTool.lambda$17(Ljava/lang/String;)Ljava/lang/Boolean; (7)
(Ljava/lang/String;)Ljava/lang/Boolean;
65: getstatic jdk.internal.jshell.tool.JShellTool.EMPTY_COMPLETION_PROVIDER:Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
invokespecial jdk.internal.jshell.tool.JShellTool$Command.<init>:(Ljava/lang/String;Ljava/util/function/Function;Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;)V
66: invokevirtual jdk.internal.jshell.tool.JShellTool.registerCommand:(Ljdk/internal/jshell/tool/JShellTool$Command;)V
67: aload 0
new jdk.internal.jshell.tool.JShellTool$Command
dup
ldc "/env"
68: aload 0
invokedynamic apply(Ljdk/internal/jshell/tool/JShellTool;)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/JShellTool.lambda$18(Ljava/lang/String;)Ljava/lang/Boolean; (7)
(Ljava/lang/String;)Ljava/lang/Boolean;
69: invokestatic jdk.internal.jshell.tool.JShellTool.envCompletion:()Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
invokespecial jdk.internal.jshell.tool.JShellTool$Command.<init>:(Ljava/lang/String;Ljava/util/function/Function;Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;)V
70: invokevirtual jdk.internal.jshell.tool.JShellTool.registerCommand:(Ljdk/internal/jshell/tool/JShellTool$Command;)V
71: aload 0
new jdk.internal.jshell.tool.JShellTool$Command
dup
ldc "/reset"
72: aload 0
invokedynamic apply(Ljdk/internal/jshell/tool/JShellTool;)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/JShellTool.lambda$19(Ljava/lang/String;)Ljava/lang/Boolean; (7)
(Ljava/lang/String;)Ljava/lang/Boolean;
73: invokestatic jdk.internal.jshell.tool.JShellTool.envCompletion:()Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
invokespecial jdk.internal.jshell.tool.JShellTool$Command.<init>:(Ljava/lang/String;Ljava/util/function/Function;Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;)V
74: invokevirtual jdk.internal.jshell.tool.JShellTool.registerCommand:(Ljdk/internal/jshell/tool/JShellTool$Command;)V
75: aload 0
new jdk.internal.jshell.tool.JShellTool$Command
dup
ldc "/reload"
76: aload 0
invokedynamic apply(Ljdk/internal/jshell/tool/JShellTool;)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/JShellTool.cmdReload(Ljava/lang/String;)Z (7)
(Ljava/lang/String;)Ljava/lang/Boolean;
77: invokestatic jdk.internal.jshell.tool.JShellTool.reloadCompletion:()Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
invokespecial jdk.internal.jshell.tool.JShellTool$Command.<init>:(Ljava/lang/String;Ljava/util/function/Function;Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;)V
78: invokevirtual jdk.internal.jshell.tool.JShellTool.registerCommand:(Ljdk/internal/jshell/tool/JShellTool$Command;)V
79: aload 0
new jdk.internal.jshell.tool.JShellTool$Command
dup
ldc "/history"
80: aload 0
invokedynamic apply(Ljdk/internal/jshell/tool/JShellTool;)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/JShellTool.lambda$21(Ljava/lang/String;)Ljava/lang/Boolean; (7)
(Ljava/lang/String;)Ljava/lang/Boolean;
81: getstatic jdk.internal.jshell.tool.JShellTool.EMPTY_COMPLETION_PROVIDER:Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
invokespecial jdk.internal.jshell.tool.JShellTool$Command.<init>:(Ljava/lang/String;Ljava/util/function/Function;Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;)V
82: invokevirtual jdk.internal.jshell.tool.JShellTool.registerCommand:(Ljdk/internal/jshell/tool/JShellTool$Command;)V
83: aload 0
new jdk.internal.jshell.tool.JShellTool$Command
dup
ldc "/debug"
84: aload 0
invokedynamic apply(Ljdk/internal/jshell/tool/JShellTool;)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/JShellTool.cmdDebug(Ljava/lang/String;)Z (5)
(Ljava/lang/String;)Ljava/lang/Boolean;
85: getstatic jdk.internal.jshell.tool.JShellTool.EMPTY_COMPLETION_PROVIDER:Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
86: getstatic jdk.internal.jshell.tool.JShellTool$CommandKind.HIDDEN:Ljdk/internal/jshell/tool/JShellTool$CommandKind;
invokespecial jdk.internal.jshell.tool.JShellTool$Command.<init>:(Ljava/lang/String;Ljava/util/function/Function;Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;Ljdk/internal/jshell/tool/JShellTool$CommandKind;)V
87: invokevirtual jdk.internal.jshell.tool.JShellTool.registerCommand:(Ljdk/internal/jshell/tool/JShellTool$Command;)V
88: aload 0
new jdk.internal.jshell.tool.JShellTool$Command
dup
ldc "/help"
89: aload 0
invokedynamic apply(Ljdk/internal/jshell/tool/JShellTool;)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/JShellTool.cmdHelp(Ljava/lang/String;)Z (5)
(Ljava/lang/String;)Ljava/lang/Boolean;
90: aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool.helpCompletion:()Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
invokespecial jdk.internal.jshell.tool.JShellTool$Command.<init>:(Ljava/lang/String;Ljava/util/function/Function;Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;)V
91: invokevirtual jdk.internal.jshell.tool.JShellTool.registerCommand:(Ljdk/internal/jshell/tool/JShellTool$Command;)V
92: aload 0
new jdk.internal.jshell.tool.JShellTool$Command
dup
ldc "/set"
93: aload 0
invokedynamic apply(Ljdk/internal/jshell/tool/JShellTool;)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/JShellTool.cmdSet(Ljava/lang/String;)Z (5)
(Ljava/lang/String;)Ljava/lang/Boolean;
94: new jdk.internal.jshell.tool.ContinuousCompletionProvider
dup
95: ldc "format"
aload 0
getfield jdk.internal.jshell.tool.JShellTool.feedback:Ljdk/internal/jshell/tool/Feedback;
invokevirtual jdk.internal.jshell.tool.Feedback.modeCompletions:()Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
96: ldc "truncation"
aload 0
getfield jdk.internal.jshell.tool.JShellTool.feedback:Ljdk/internal/jshell/tool/Feedback;
invokevirtual jdk.internal.jshell.tool.Feedback.modeCompletions:()Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
97: ldc "feedback"
aload 0
getfield jdk.internal.jshell.tool.JShellTool.feedback:Ljdk/internal/jshell/tool/Feedback;
invokevirtual jdk.internal.jshell.tool.Feedback.modeCompletions:()Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
98: ldc "mode"
99: aload 0
getfield jdk.internal.jshell.tool.JShellTool.feedback:Ljdk/internal/jshell/tool/Feedback;
getstatic jdk.internal.jshell.tool.JShellTool.SET_MODE_OPTIONS_COMPLETION_PROVIDER:Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
invokevirtual jdk.internal.jshell.tool.Feedback.modeCompletions:(Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
100: getstatic jdk.internal.jshell.tool.JShellTool.SET_MODE_OPTIONS_COMPLETION_PROVIDER:Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
101: invokestatic jdk.internal.jshell.tool.JShellTool.orMostSpecificCompletion:(Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
invokestatic jdk.internal.jshell.tool.JShellTool.skipWordThenCompletion:(Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
102: ldc "prompt"
aload 0
getfield jdk.internal.jshell.tool.JShellTool.feedback:Ljdk/internal/jshell/tool/Feedback;
invokevirtual jdk.internal.jshell.tool.Feedback.modeCompletions:()Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
103: ldc "editor"
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
java/nio/file/Files.isExecutable(Ljava/nio/file/Path;)Z (6)
(Ljava/nio/file/Path;)Z
invokestatic jdk.internal.jshell.tool.JShellTool.fileCompletions:(Ljava/util/function/Predicate;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
104: ldc "start"
getstatic jdk.internal.jshell.tool.JShellTool.FILE_COMPLETION_PROVIDER:Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
105: invokestatic java.util.Map.of:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;
106: getstatic jdk.internal.jshell.tool.ContinuousCompletionProvider.STARTSWITH_MATCHER:Ljava/util/function/BiPredicate;
107: invokespecial jdk.internal.jshell.tool.ContinuousCompletionProvider.<init>:(Ljava/util/Map;Ljava/util/function/BiPredicate;)V
invokespecial jdk.internal.jshell.tool.JShellTool$Command.<init>:(Ljava/lang/String;Ljava/util/function/Function;Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;)V
108: invokevirtual jdk.internal.jshell.tool.JShellTool.registerCommand:(Ljdk/internal/jshell/tool/JShellTool$Command;)V
109: aload 0
new jdk.internal.jshell.tool.JShellTool$Command
dup
ldc "/?"
110: ldc "help.quest"
111: aload 0
invokedynamic apply(Ljdk/internal/jshell/tool/JShellTool;)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/JShellTool.cmdHelp(Ljava/lang/String;)Z (5)
(Ljava/lang/String;)Ljava/lang/Boolean;
112: aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool.helpCompletion:()Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
113: getstatic jdk.internal.jshell.tool.JShellTool$CommandKind.NORMAL:Ljdk/internal/jshell/tool/JShellTool$CommandKind;
invokespecial jdk.internal.jshell.tool.JShellTool$Command.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Function;Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;Ljdk/internal/jshell/tool/JShellTool$CommandKind;)V
114: invokevirtual jdk.internal.jshell.tool.JShellTool.registerCommand:(Ljdk/internal/jshell/tool/JShellTool$Command;)V
115: aload 0
new jdk.internal.jshell.tool.JShellTool$Command
dup
ldc "/!"
116: ldc "help.bang"
117: aload 0
invokedynamic apply(Ljdk/internal/jshell/tool/JShellTool;)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/JShellTool.lambda$27(Ljava/lang/String;)Ljava/lang/Boolean; (7)
(Ljava/lang/String;)Ljava/lang/Boolean;
118: getstatic jdk.internal.jshell.tool.JShellTool.EMPTY_COMPLETION_PROVIDER:Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
119: getstatic jdk.internal.jshell.tool.JShellTool$CommandKind.NORMAL:Ljdk/internal/jshell/tool/JShellTool$CommandKind;
invokespecial jdk.internal.jshell.tool.JShellTool$Command.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Function;Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;Ljdk/internal/jshell/tool/JShellTool$CommandKind;)V
120: invokevirtual jdk.internal.jshell.tool.JShellTool.registerCommand:(Ljdk/internal/jshell/tool/JShellTool$Command;)V
121: aload 0
new jdk.internal.jshell.tool.JShellTool$Command
dup
ldc "/<id>"
122: ldc "help.id"
123: getstatic jdk.internal.jshell.tool.JShellTool$CommandKind.HELP_ONLY:Ljdk/internal/jshell/tool/JShellTool$CommandKind;
invokespecial jdk.internal.jshell.tool.JShellTool$Command.<init>:(Ljava/lang/String;Ljava/lang/String;Ljdk/internal/jshell/tool/JShellTool$CommandKind;)V
124: invokevirtual jdk.internal.jshell.tool.JShellTool.registerCommand:(Ljdk/internal/jshell/tool/JShellTool$Command;)V
125: aload 0
new jdk.internal.jshell.tool.JShellTool$Command
dup
ldc "/-<n>"
126: ldc "help.previous"
127: getstatic jdk.internal.jshell.tool.JShellTool$CommandKind.HELP_ONLY:Ljdk/internal/jshell/tool/JShellTool$CommandKind;
invokespecial jdk.internal.jshell.tool.JShellTool$Command.<init>:(Ljava/lang/String;Ljava/lang/String;Ljdk/internal/jshell/tool/JShellTool$CommandKind;)V
128: invokevirtual jdk.internal.jshell.tool.JShellTool.registerCommand:(Ljdk/internal/jshell/tool/JShellTool$Command;)V
129: aload 0
new jdk.internal.jshell.tool.JShellTool$Command
dup
ldc "intro"
130: ldc "help.intro"
131: getstatic jdk.internal.jshell.tool.JShellTool$CommandKind.HELP_SUBJECT:Ljdk/internal/jshell/tool/JShellTool$CommandKind;
invokespecial jdk.internal.jshell.tool.JShellTool$Command.<init>:(Ljava/lang/String;Ljava/lang/String;Ljdk/internal/jshell/tool/JShellTool$CommandKind;)V
132: invokevirtual jdk.internal.jshell.tool.JShellTool.registerCommand:(Ljdk/internal/jshell/tool/JShellTool$Command;)V
133: aload 0
new jdk.internal.jshell.tool.JShellTool$Command
dup
ldc "shortcuts"
134: ldc "help.shortcuts"
135: getstatic jdk.internal.jshell.tool.JShellTool$CommandKind.HELP_SUBJECT:Ljdk/internal/jshell/tool/JShellTool$CommandKind;
invokespecial jdk.internal.jshell.tool.JShellTool$Command.<init>:(Ljava/lang/String;Ljava/lang/String;Ljdk/internal/jshell/tool/JShellTool$CommandKind;)V
136: invokevirtual jdk.internal.jshell.tool.JShellTool.registerCommand:(Ljdk/internal/jshell/tool/JShellTool$Command;)V
137: aload 0
new jdk.internal.jshell.tool.JShellTool$Command
dup
ldc "context"
138: ldc "help.context"
139: getstatic jdk.internal.jshell.tool.JShellTool$CommandKind.HELP_SUBJECT:Ljdk/internal/jshell/tool/JShellTool$CommandKind;
invokespecial jdk.internal.jshell.tool.JShellTool$Command.<init>:(Ljava/lang/String;Ljava/lang/String;Ljdk/internal/jshell/tool/JShellTool$CommandKind;)V
140: invokevirtual jdk.internal.jshell.tool.JShellTool.registerCommand:(Ljdk/internal/jshell/tool/JShellTool$Command;)V
141: aload 0
new jdk.internal.jshell.tool.ContinuousCompletionProvider
dup
142: aload 0
getfield jdk.internal.jshell.tool.JShellTool.commands:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.stream:()Ljava/util/stream/Stream;
143: 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/internal/jshell/tool/JShellTool.lambda$28(Ljdk/internal/jshell/tool/JShellTool$Command;)Z (6)
(Ljdk/internal/jshell/tool/JShellTool$Command;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
144: 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/internal/jshell/tool/JShellTool.lambda$29(Ljdk/internal/jshell/tool/JShellTool$Command;)Ljava/lang/String; (6)
(Ljdk/internal/jshell/tool/JShellTool$Command;)Ljava/lang/String;
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/internal/jshell/tool/JShellTool.lambda$30(Ljdk/internal/jshell/tool/JShellTool$Command;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider; (6)
(Ljdk/internal/jshell/tool/JShellTool$Command;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
invokestatic java.util.stream.Collectors.toMap:(Ljava/util/function/Function;Ljava/util/function/Function;)Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.Map
145: getstatic jdk.internal.jshell.tool.ContinuousCompletionProvider.STARTSWITH_MATCHER:Ljava/util/function/BiPredicate;
invokespecial jdk.internal.jshell.tool.ContinuousCompletionProvider.<init>:(Ljava/util/Map;Ljava/util/function/BiPredicate;)V
146: putfield jdk.internal.jshell.tool.JShellTool.commandCompletions:Ljdk/internal/jshell/tool/ContinuousCompletionProvider;
147: aload 0
aload 1
putfield jdk.internal.jshell.tool.JShellTool.cmdin:Ljava/io/InputStream;
148: aload 0
aload 2
putfield jdk.internal.jshell.tool.JShellTool.cmdout:Ljava/io/PrintStream;
149: aload 0
aload 3
putfield jdk.internal.jshell.tool.JShellTool.cmderr:Ljava/io/PrintStream;
150: aload 0
aload 4
putfield jdk.internal.jshell.tool.JShellTool.console:Ljava/io/PrintStream;
151: aload 0
aload 5
ifnull 152
aload 5
goto 153
StackMap locals: jdk.internal.jshell.tool.JShellTool java.io.InputStream java.io.PrintStream java.io.PrintStream java.io.PrintStream java.io.InputStream java.io.PrintStream java.io.PrintStream jdk.internal.jshell.tool.PersistentStorage java.util.Map java.util.Locale
StackMap stack: jdk.internal.jshell.tool.JShellTool
152: new jdk.internal.jshell.tool.JShellTool$2
dup
aload 0
invokespecial jdk.internal.jshell.tool.JShellTool$2.<init>:(Ljdk/internal/jshell/tool/JShellTool;)V
StackMap locals: jdk.internal.jshell.tool.JShellTool java.io.InputStream java.io.PrintStream java.io.PrintStream java.io.PrintStream java.io.InputStream java.io.PrintStream java.io.PrintStream jdk.internal.jshell.tool.PersistentStorage java.util.Map java.util.Locale
StackMap stack: jdk.internal.jshell.tool.JShellTool java.io.InputStream
153: putfield jdk.internal.jshell.tool.JShellTool.userin:Ljava/io/InputStream;
154: aload 0
aload 6
putfield jdk.internal.jshell.tool.JShellTool.userout:Ljava/io/PrintStream;
155: aload 0
aload 7
putfield jdk.internal.jshell.tool.JShellTool.usererr:Ljava/io/PrintStream;
156: aload 0
aload 8
putfield jdk.internal.jshell.tool.JShellTool.prefs:Ljdk/internal/jshell/tool/PersistentStorage;
157: aload 0
aload 9
putfield jdk.internal.jshell.tool.JShellTool.envvars:Ljava/util/Map;
158: aload 0
aload 10
putfield jdk.internal.jshell.tool.JShellTool.locale:Ljava/util/Locale;
159: return
end local 10 end local 9 end local 8 end local 7 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 160 0 this Ljdk/internal/jshell/tool/JShellTool;
0 160 1 cmdin Ljava/io/InputStream;
0 160 2 cmdout Ljava/io/PrintStream;
0 160 3 cmderr Ljava/io/PrintStream;
0 160 4 console Ljava/io/PrintStream;
0 160 5 userin Ljava/io/InputStream;
0 160 6 userout Ljava/io/PrintStream;
0 160 7 usererr Ljava/io/PrintStream;
0 160 8 prefs Ljdk/internal/jshell/tool/PersistentStorage;
0 160 9 envvars Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
0 160 10 locale Ljava/util/Locale;
Signature: (Ljava/io/InputStream;Ljava/io/PrintStream;Ljava/io/PrintStream;Ljava/io/PrintStream;Ljava/io/InputStream;Ljava/io/PrintStream;Ljava/io/PrintStream;Ljdk/internal/jshell/tool/PersistentStorage;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;Ljava/util/Locale;)V
MethodParameters:
Name Flags
cmdin
cmdout
cmderr
console
userin
userout
usererr
prefs
envvars
locale
boolean interactive();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.input:Ljdk/internal/jshell/tool/IOContext;
ifnull 1
aload 0
getfield jdk.internal.jshell.tool.JShellTool.input:Ljdk/internal/jshell/tool/IOContext;
invokevirtual jdk.internal.jshell.tool.IOContext.interactiveOutput:()Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jshell/tool/JShellTool;
void debug(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)V
flags: (0x0080) ACC_VARARGS
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.debug:Z
ifeq 2
1: aload 0
getfield jdk.internal.jshell.tool.JShellTool.cmderr:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokevirtual java.io.PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
2: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/jshell/tool/JShellTool;
0 3 1 format Ljava/lang/String;
0 3 2 args [Ljava/lang/Object;
MethodParameters:
Name Flags
format
args
void rawout(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)V
flags: (0x0080) ACC_VARARGS
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.cmdout:Ljava/io/PrintStream;
aload 1
aload 2
invokevirtual java.io.PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jshell/tool/JShellTool;
0 2 1 format Ljava/lang/String;
0 2 2 args [Ljava/lang/Object;
MethodParameters:
Name Flags
format
args
public void hard(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 0
aload 1
invokevirtual jdk.internal.jshell.tool.JShellTool.prefix:(Ljava/lang/String;)Ljava/lang/String;
aload 2
invokevirtual jdk.internal.jshell.tool.JShellTool.rawout:(Ljava/lang/String;[Ljava/lang/Object;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jshell/tool/JShellTool;
0 2 1 format Ljava/lang/String;
0 2 2 args [Ljava/lang/Object;
MethodParameters:
Name Flags
format
args
void error(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)V
flags: (0x0080) ACC_VARARGS
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 0
aload 1
invokevirtual jdk.internal.jshell.tool.JShellTool.prefixError:(Ljava/lang/String;)Ljava/lang/String;
aload 2
invokevirtual jdk.internal.jshell.tool.JShellTool.rawout:(Ljava/lang/String;[Ljava/lang/Object;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jshell/tool/JShellTool;
0 2 1 format Ljava/lang/String;
0 2 2 args [Ljava/lang/Object;
MethodParameters:
Name Flags
format
args
public boolean showFluff();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.feedback:Ljdk/internal/jshell/tool/Feedback;
invokevirtual jdk.internal.jshell.tool.Feedback.shouldDisplayCommandFluff:()Z
ifeq 1
aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool.interactive:()Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jshell/tool/JShellTool;
public void fluff(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool.showFluff:()Z
ifeq 2
1: aload 0
aload 1
aload 2
invokevirtual jdk.internal.jshell.tool.JShellTool.hard:(Ljava/lang/String;[Ljava/lang/Object;)V
2: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/jshell/tool/JShellTool;
0 3 1 format Ljava/lang/String;
0 3 2 args [Ljava/lang/Object;
MethodParameters:
Name Flags
format
args
java.lang.String getResourceString(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0000)
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.outputRB:Ljava/util/ResourceBundle;
ifnonnull 6
1: aload 0
ldc "jdk.internal.jshell.tool.resources.l10n"
aload 0
getfield jdk.internal.jshell.tool.JShellTool.locale:Ljava/util/Locale;
invokestatic java.util.ResourceBundle.getBundle:(Ljava/lang/String;Ljava/util/Locale;)Ljava/util/ResourceBundle;
putfield jdk.internal.jshell.tool.JShellTool.outputRB:Ljava/util/ResourceBundle;
2: goto 6
StackMap locals:
StackMap stack: java.util.MissingResourceException
3: pop
4: aload 0
ldc "Cannot find ResourceBundle: %s for locale: %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
ldc "jdk.internal.jshell.tool.resources.l10n"
aastore
dup
iconst_1
aload 0
getfield jdk.internal.jshell.tool.JShellTool.locale:Ljava/util/Locale;
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.error:(Ljava/lang/String;[Ljava/lang/Object;)V
5: ldc ""
areturn
6: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.JShellTool.outputRB:Ljava/util/ResourceBundle;
aload 1
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 7: goto 11
end local 2 StackMap locals:
StackMap stack: java.util.MissingResourceException
8: pop
9: aload 0
ldc "Missing resource: %s in %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
ldc "jdk.internal.jshell.tool.resources.l10n"
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.error:(Ljava/lang/String;[Ljava/lang/Object;)V
10: ldc ""
areturn
start local 2 11: StackMap locals: java.lang.String
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljdk/internal/jshell/tool/JShellTool;
0 12 1 key Ljava/lang/String;
7 8 2 s Ljava/lang/String;
11 12 2 s Ljava/lang/String;
Exception table:
from to target type
1 2 3 Class java.util.MissingResourceException
6 7 8 Class java.util.MissingResourceException
MethodParameters:
Name Flags
key
java.lang.String prefix(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 0
getfield jdk.internal.jshell.tool.JShellTool.feedback:Ljdk/internal/jshell/tool/Feedback;
invokevirtual jdk.internal.jshell.tool.Feedback.getPre:()Ljava/lang/String;
aload 0
getfield jdk.internal.jshell.tool.JShellTool.feedback:Ljdk/internal/jshell/tool/Feedback;
invokevirtual jdk.internal.jshell.tool.Feedback.getPost:()Ljava/lang/String;
invokevirtual jdk.internal.jshell.tool.JShellTool.prefix:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
0 1 1 s Ljava/lang/String;
MethodParameters:
Name Flags
s
java.lang.String prefixError(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 0
getfield jdk.internal.jshell.tool.JShellTool.feedback:Ljdk/internal/jshell/tool/Feedback;
invokevirtual jdk.internal.jshell.tool.Feedback.getErrorPre:()Ljava/lang/String;
aload 0
getfield jdk.internal.jshell.tool.JShellTool.feedback:Ljdk/internal/jshell/tool/Feedback;
invokevirtual jdk.internal.jshell.tool.Feedback.getErrorPost:()Ljava/lang/String;
invokevirtual jdk.internal.jshell.tool.JShellTool.prefix:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
0 1 1 s Ljava/lang/String;
MethodParameters:
Name Flags
s
java.lang.String prefix(java.lang.String, java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0000)
Code:
stack=6, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
ifnonnull 2
1: ldc ""
areturn
2: StackMap locals:
StackMap stack:
aload 1
ldc "\\R"
new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.String.replaceAll:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 3: aload 4
new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 5
4: aload 4
iconst_0
aload 4
invokevirtual java.lang.String.length:()I
new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.String.length:()I
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 4
5: StackMap locals: java.lang.String
StackMap stack:
new java.lang.StringBuilder
dup
aload 2
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/jshell/tool/JShellTool;
0 6 1 s Ljava/lang/String;
0 6 2 pre Ljava/lang/String;
0 6 3 post Ljava/lang/String;
3 6 4 pp Ljava/lang/String;
MethodParameters:
Name Flags
s
pre
post
void hardrb(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
aload 1
invokevirtual jdk.internal.jshell.tool.JShellTool.getResourceString:(Ljava/lang/String;)Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.hard:(Ljava/lang/String;[Ljava/lang/Object;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jshell/tool/JShellTool;
0 2 1 key Ljava/lang/String;
MethodParameters:
Name Flags
key
java.lang.String messageFormat(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
flags: (0x0080) ACC_VARARGS
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual jdk.internal.jshell.tool.JShellTool.getResourceString:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 1: aload 3
aload 2
invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jshell/tool/JShellTool;
0 2 1 key Ljava/lang/String;
0 2 2 args [Ljava/lang/Object;
1 2 3 rs Ljava/lang/String;
MethodParameters:
Name Flags
key
args
public void hardmsg(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 0
aload 1
aload 2
invokevirtual jdk.internal.jshell.tool.JShellTool.messageFormat:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.hard:(Ljava/lang/String;[Ljava/lang/Object;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jshell/tool/JShellTool;
0 2 1 key Ljava/lang/String;
0 2 2 args [Ljava/lang/Object;
MethodParameters:
Name Flags
key
args
public void errormsg(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool.isRunningInteractive:()Z
ifeq 3
1: aload 0
aload 0
aload 0
aload 1
aload 2
invokevirtual jdk.internal.jshell.tool.JShellTool.messageFormat:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual jdk.internal.jshell.tool.JShellTool.prefixError:(Ljava/lang/String;)Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.rawout:(Ljava/lang/String;[Ljava/lang/Object;)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual jdk.internal.jshell.tool.JShellTool.startmsg:(Ljava/lang/String;[Ljava/lang/Object;)V
4: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/jshell/tool/JShellTool;
0 5 1 key Ljava/lang/String;
0 5 2 args [Ljava/lang/Object;
MethodParameters:
Name Flags
key
args
void startmsg(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)V
flags: (0x0080) ACC_VARARGS
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.cmderr:Ljava/io/PrintStream;
aload 0
aload 1
aload 2
invokevirtual jdk.internal.jshell.tool.JShellTool.messageFormat:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jshell/tool/JShellTool;
0 2 1 key Ljava/lang/String;
0 2 2 args [Ljava/lang/Object;
MethodParameters:
Name Flags
key
args
public void fluffmsg(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool.showFluff:()Z
ifeq 2
1: aload 0
aload 1
aload 2
invokevirtual jdk.internal.jshell.tool.JShellTool.hardmsg:(Ljava/lang/String;[Ljava/lang/Object;)V
2: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/jshell/tool/JShellTool;
0 3 1 key Ljava/lang/String;
0 3 2 args [Ljava/lang/Object;
MethodParameters:
Name Flags
key
args
<T> void hardPairs(java.util.stream.Stream<T>, java.util.function.Function<T, java.lang.String>, java.util.function.Function<T, java.lang.String>);
descriptor: (Ljava/util/stream/Stream;Ljava/util/function/Function;Ljava/util/function/Function;)V
flags: (0x0000)
Code:
stack=6, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
aload 2
aload 3
1: 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/JShellTool.lambda$31(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; (6)
(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
2: invokedynamic get()Ljava/util/function/Supplier;
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;
java/util/LinkedHashMap.<init>()V (8)
()Ljava/util/LinkedHashMap;
3: invokestatic java.util.stream.Collectors.toMap:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/BinaryOperator;Ljava/util/function/Supplier;)Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.Map
astore 4
start local 4 4: aload 4
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 6
goto 8
StackMap locals: jdk.internal.jshell.tool.JShellTool java.util.stream.Stream java.util.function.Function java.util.function.Function java.util.Map top java.util.Iterator
StackMap stack:
5: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 5
start local 5 6: aload 0
ldc "%s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 5
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.hard:(Ljava/lang/String;[Ljava/lang/Object;)V
7: aload 0
aload 0
aload 5
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.lang.String
new java.lang.StringBuilder
dup
aload 0
getfield jdk.internal.jshell.tool.JShellTool.feedback:Ljdk/internal/jshell/tool/Feedback;
invokevirtual jdk.internal.jshell.tool.Feedback.getPre:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "\t"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 0
getfield jdk.internal.jshell.tool.JShellTool.feedback:Ljdk/internal/jshell/tool/Feedback;
invokevirtual jdk.internal.jshell.tool.Feedback.getPost:()Ljava/lang/String;
invokevirtual jdk.internal.jshell.tool.JShellTool.prefix:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.rawout:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 5 8: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
9: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/internal/jshell/tool/JShellTool;
0 10 1 stream Ljava/util/stream/Stream<TT;>;
0 10 2 a Ljava/util/function/Function<TT;Ljava/lang/String;>;
0 10 3 b Ljava/util/function/Function<TT;Ljava/lang/String;>;
4 10 4 a2b Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
6 8 5 e Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/String;>;
Signature: <T:Ljava/lang/Object;>(Ljava/util/stream/Stream<TT;>;Ljava/util/function/Function<TT;Ljava/lang/String;>;Ljava/util/function/Function<TT;Ljava/lang/String;>;)V
MethodParameters:
Name Flags
stream
a
b
static java.lang.String trimEnd(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.length:()I
iconst_1
isub
istore 1
start local 1 1: iload 1
istore 2
start local 2 2: goto 4
3: StackMap locals: int int
StackMap stack:
iinc 2 -1
4: StackMap locals:
StackMap stack:
iload 2
iflt 5
aload 0
iload 2
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.isWhitespace:(C)Z
ifne 3
5: StackMap locals:
StackMap stack:
iload 2
iload 1
if_icmpeq 7
6: aload 0
iconst_0
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
areturn
7: StackMap locals:
StackMap stack:
aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 s Ljava/lang/String;
1 8 1 last I
2 8 2 i I
MethodParameters:
Name Flags
s
public void start(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=8, args_size=2
start local 0 start local 1 0: new jdk.internal.jshell.tool.JShellTool$OptionParserCommandLine
dup
aload 0
invokespecial jdk.internal.jshell.tool.JShellTool$OptionParserCommandLine.<init>:(Ljdk/internal/jshell/tool/JShellTool;)V
astore 2
start local 2 1: aload 0
aload 2
aload 1
invokevirtual jdk.internal.jshell.tool.JShellTool$OptionParserCommandLine.parse:([Ljava/lang/String;)Ljdk/internal/jshell/tool/JShellTool$Options;
putfield jdk.internal.jshell.tool.JShellTool.options:Ljdk/internal/jshell/tool/JShellTool$Options;
2: aload 0
getfield jdk.internal.jshell.tool.JShellTool.options:Ljdk/internal/jshell/tool/JShellTool$Options;
ifnonnull 4
3: return
4: StackMap locals: jdk.internal.jshell.tool.JShellTool$OptionParserCommandLine
StackMap stack:
aload 0
aload 2
invokevirtual jdk.internal.jshell.tool.JShellTool$OptionParserCommandLine.startup:()Ljdk/internal/jshell/tool/Startup;
putfield jdk.internal.jshell.tool.JShellTool.startup:Ljdk/internal/jshell/tool/Startup;
5: aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool.configEditor:()Ljdk/internal/jshell/tool/JShellTool$EditorSetting;
pop
6: aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool.resetState:()V
7: goto 11
StackMap locals:
StackMap stack: java.lang.IllegalStateException
8: astore 3
start local 3 9: aload 0
getfield jdk.internal.jshell.tool.JShellTool.cmderr:Ljava/io/PrintStream;
aload 3
invokevirtual java.lang.IllegalStateException.getMessage:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
10: return
end local 3 11: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield jdk.internal.jshell.tool.JShellTool.prefs:Ljdk/internal/jshell/tool/PersistentStorage;
invokestatic jdk.internal.jshell.tool.JShellTool$ReplayableHistory.fromPrevious:(Ljdk/internal/jshell/tool/PersistentStorage;)Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;
putfield jdk.internal.jshell.tool.JShellTool.replayableHistoryPrevious:Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;
12: aload 2
invokevirtual jdk.internal.jshell.tool.JShellTool$OptionParserCommandLine.nonOptions:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 15
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String[] jdk.internal.jshell.tool.JShellTool$OptionParserCommandLine top java.util.Iterator
StackMap stack:
13: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 14: aload 0
aload 3
ldc "jshell"
invokevirtual jdk.internal.jshell.tool.JShellTool.runFile:(Ljava/lang/String;Ljava/lang/String;)Z
pop
end local 3 15: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 13
16: aload 0
getfield jdk.internal.jshell.tool.JShellTool.regenerateOnDeath:Z
ifeq 18
17: aload 0
aload 2
invokevirtual jdk.internal.jshell.tool.JShellTool$OptionParserCommandLine.feedbackMode:()Ljava/lang/String;
invokevirtual jdk.internal.jshell.tool.JShellTool.initFeedback:(Ljava/lang/String;)V
18: StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String[] jdk.internal.jshell.tool.JShellTool$OptionParserCommandLine
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.JShellTool.regenerateOnDeath:Z
ifeq 48
19: aload 0
getfield jdk.internal.jshell.tool.JShellTool.feedback:Ljdk/internal/jshell/tool/Feedback;
invokevirtual jdk.internal.jshell.tool.Feedback.shouldDisplayCommandFluff:()Z
ifeq 21
20: aload 0
ldc "jshell.msg.welcome"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool.version:()Ljava/lang/String;
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.hardmsg:(Ljava/lang/String;[Ljava/lang/Object;)V
21: StackMap locals:
StackMap stack:
new jdk.internal.jshell.tool.JShellTool$3
dup
aload 0
invokespecial jdk.internal.jshell.tool.JShellTool$3.<init>:(Ljdk/internal/jshell/tool/JShellTool;)V
astore 3
start local 3 22: invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
aload 3
invokevirtual java.lang.Runtime.addShutdownHook:(Ljava/lang/Thread;)V
23: aconst_null
astore 4
aconst_null
astore 5
24: new jdk.internal.jshell.tool.ConsoleIOContext
dup
aload 0
aload 0
getfield jdk.internal.jshell.tool.JShellTool.cmdin:Ljava/io/InputStream;
aload 0
getfield jdk.internal.jshell.tool.JShellTool.console:Ljava/io/PrintStream;
invokespecial jdk.internal.jshell.tool.ConsoleIOContext.<init>:(Ljdk/internal/jshell/tool/JShellTool;Ljava/io/InputStream;Ljava/io/PrintStream;)V
astore 6
start local 6 25: goto 29
26: StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String[] jdk.internal.jshell.tool.JShellTool$OptionParserCommandLine java.lang.Thread java.lang.Throwable java.lang.Throwable jdk.internal.jshell.tool.IOContext
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.JShellTool.live:Z
ifne 28
27: aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool.resetState:()V
28: StackMap locals:
StackMap stack:
aload 0
aload 6
invokevirtual jdk.internal.jshell.tool.JShellTool.run:(Ljdk/internal/jshell/tool/IOContext;)V
29: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.JShellTool.regenerateOnDeath:Z
ifne 26
30: aload 6
ifnull 43
aload 6
invokevirtual jdk.internal.jshell.tool.IOContext.close:()V
goto 43
StackMap locals:
StackMap stack: java.lang.Throwable
31: astore 4
aload 6
ifnull 32
aload 6
invokevirtual jdk.internal.jshell.tool.IOContext.close:()V
end local 6 StackMap locals:
StackMap stack:
32: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
33: astore 5
aload 4
ifnonnull 34
aload 5
astore 4
goto 35
StackMap locals:
StackMap stack:
34: aload 4
aload 5
if_acmpeq 35
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
35: aload 4
athrow
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String[] jdk.internal.jshell.tool.JShellTool$OptionParserCommandLine java.lang.Thread
StackMap stack: java.lang.Throwable
36: astore 7
37: aload 0
getfield jdk.internal.jshell.tool.JShellTool.replayableHistory:Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;
aload 0
getfield jdk.internal.jshell.tool.JShellTool.prefs:Ljdk/internal/jshell/tool/PersistentStorage;
invokevirtual jdk.internal.jshell.tool.JShellTool$ReplayableHistory.storeHistory:(Ljdk/internal/jshell/tool/PersistentStorage;)V
38: aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool.closeState:()V
39: invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
aload 3
invokevirtual java.lang.Runtime.removeShutdownHook:(Ljava/lang/Thread;)Z
pop
40: goto 42
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String[] jdk.internal.jshell.tool.JShellTool$OptionParserCommandLine java.lang.Thread top top top java.lang.Throwable
StackMap stack: java.lang.Exception
41: pop
42: StackMap locals:
StackMap stack:
aload 7
athrow
43: StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String[] jdk.internal.jshell.tool.JShellTool$OptionParserCommandLine java.lang.Thread
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.JShellTool.replayableHistory:Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;
aload 0
getfield jdk.internal.jshell.tool.JShellTool.prefs:Ljdk/internal/jshell/tool/PersistentStorage;
invokevirtual jdk.internal.jshell.tool.JShellTool$ReplayableHistory.storeHistory:(Ljdk/internal/jshell/tool/PersistentStorage;)V
44: aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool.closeState:()V
45: invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
aload 3
invokevirtual java.lang.Runtime.removeShutdownHook:(Ljava/lang/Thread;)Z
pop
46: goto 48
StackMap locals:
StackMap stack: java.lang.Exception
47: pop
end local 3 48: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool.closeState:()V
49: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 50 0 this Ljdk/internal/jshell/tool/JShellTool;
0 50 1 args [Ljava/lang/String;
1 50 2 commandLineArgs Ljdk/internal/jshell/tool/JShellTool$OptionParserCommandLine;
9 11 3 ex Ljava/lang/IllegalStateException;
14 15 3 loadFile Ljava/lang/String;
22 48 3 shutdownHook Ljava/lang/Thread;
25 32 6 in Ljdk/internal/jshell/tool/IOContext;
Exception table:
from to target type
6 7 8 Class java.lang.IllegalStateException
25 30 31 any
24 33 33 any
23 36 36 any
39 40 41 Class java.lang.Exception
45 46 47 Class java.lang.Exception
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
args
private jdk.internal.jshell.tool.JShellTool$EditorSetting configEditor();
descriptor: ()Ljdk/internal/jshell/tool/JShellTool$EditorSetting;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=1
start local 0 0: aload 0
aload 0
getfield jdk.internal.jshell.tool.JShellTool.prefs:Ljdk/internal/jshell/tool/PersistentStorage;
invokestatic jdk.internal.jshell.tool.JShellTool$EditorSetting.fromPrefs:(Ljdk/internal/jshell/tool/PersistentStorage;)Ljdk/internal/jshell/tool/JShellTool$EditorSetting;
putfield jdk.internal.jshell.tool.JShellTool.editor:Ljdk/internal/jshell/tool/JShellTool$EditorSetting;
1: aload 0
getfield jdk.internal.jshell.tool.JShellTool.editor:Ljdk/internal/jshell/tool/JShellTool$EditorSetting;
ifnull 3
2: aload 0
getfield jdk.internal.jshell.tool.JShellTool.editor:Ljdk/internal/jshell/tool/JShellTool$EditorSetting;
areturn
3: StackMap locals:
StackMap stack:
getstatic jdk.internal.jshell.tool.JShellTool.EDITOR_ENV_VARS:[Ljava/lang/String;
dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 9
StackMap locals: jdk.internal.jshell.tool.JShellTool top int int java.lang.String[]
StackMap stack:
4: aload 4
iload 2
aaload
astore 1
start local 1 5: aload 0
getfield jdk.internal.jshell.tool.JShellTool.envvars:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 6: aload 5
ifnull 8
7: aload 0
new jdk.internal.jshell.tool.JShellTool$EditorSetting
dup
aload 5
ldc "\\s+"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
iconst_0
invokespecial jdk.internal.jshell.tool.JShellTool$EditorSetting.<init>:([Ljava/lang/String;Z)V
dup_x1
putfield jdk.internal.jshell.tool.JShellTool.editor:Ljdk/internal/jshell/tool/JShellTool$EditorSetting;
areturn
end local 5 end local 1 8: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
9: iload 2
iload 3
if_icmplt 4
10: aload 0
getstatic jdk.internal.jshell.tool.JShellTool.BUILT_IN_EDITOR:Ljdk/internal/jshell/tool/JShellTool$EditorSetting;
dup_x1
putfield jdk.internal.jshell.tool.JShellTool.editor:Ljdk/internal/jshell/tool/JShellTool$EditorSetting;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/internal/jshell/tool/JShellTool;
5 8 1 envvar Ljava/lang/String;
6 8 5 v Ljava/lang/String;
private void printUsage();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.cmdout:Ljava/io/PrintStream;
aload 0
ldc "help.usage"
invokevirtual jdk.internal.jshell.tool.JShellTool.getResourceString:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jshell/tool/JShellTool;
private void printUsageX();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.cmdout:Ljava/io/PrintStream;
aload 0
ldc "help.usage.x"
invokevirtual jdk.internal.jshell.tool.JShellTool.getResourceString:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jshell/tool/JShellTool;
private void resetState();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool.closeState:()V
1: aload 0
new jdk.internal.jshell.tool.JShellTool$NameSpace
dup
aload 0
ldc "main"
ldc ""
invokespecial jdk.internal.jshell.tool.JShellTool$NameSpace.<init>:(Ljdk/internal/jshell/tool/JShellTool;Ljava/lang/String;Ljava/lang/String;)V
putfield jdk.internal.jshell.tool.JShellTool.mainNamespace:Ljdk/internal/jshell/tool/JShellTool$NameSpace;
2: aload 0
new jdk.internal.jshell.tool.JShellTool$NameSpace
dup
aload 0
ldc "start"
ldc "s"
invokespecial jdk.internal.jshell.tool.JShellTool$NameSpace.<init>:(Ljdk/internal/jshell/tool/JShellTool;Ljava/lang/String;Ljava/lang/String;)V
putfield jdk.internal.jshell.tool.JShellTool.startNamespace:Ljdk/internal/jshell/tool/JShellTool$NameSpace;
3: aload 0
new jdk.internal.jshell.tool.JShellTool$NameSpace
dup
aload 0
ldc "error"
ldc "e"
invokespecial jdk.internal.jshell.tool.JShellTool$NameSpace.<init>:(Ljdk/internal/jshell/tool/JShellTool;Ljava/lang/String;Ljava/lang/String;)V
putfield jdk.internal.jshell.tool.JShellTool.errorNamespace:Ljdk/internal/jshell/tool/JShellTool$NameSpace;
4: aload 0
new java.util.LinkedHashMap
dup
invokespecial java.util.LinkedHashMap.<init>:()V
putfield jdk.internal.jshell.tool.JShellTool.mapSnippet:Ljava/util/Map;
5: aload 0
aload 0
getfield jdk.internal.jshell.tool.JShellTool.startNamespace:Ljdk/internal/jshell/tool/JShellTool$NameSpace;
putfield jdk.internal.jshell.tool.JShellTool.currentNameSpace:Ljdk/internal/jshell/tool/JShellTool$NameSpace;
6: aload 0
aload 0
getfield jdk.internal.jshell.tool.JShellTool.replayableHistory:Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;
putfield jdk.internal.jshell.tool.JShellTool.replayableHistoryPrevious:Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;
7: aload 0
invokestatic jdk.internal.jshell.tool.JShellTool$ReplayableHistory.emptyHistory:()Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;
putfield jdk.internal.jshell.tool.JShellTool.replayableHistory:Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;
8: invokestatic jdk.jshell.JShell.builder:()Ljdk/jshell/JShell$Builder;
9: aload 0
getfield jdk.internal.jshell.tool.JShellTool.userin:Ljava/io/InputStream;
invokevirtual jdk.jshell.JShell$Builder.in:(Ljava/io/InputStream;)Ljdk/jshell/JShell$Builder;
10: aload 0
getfield jdk.internal.jshell.tool.JShellTool.userout:Ljava/io/PrintStream;
invokevirtual jdk.jshell.JShell$Builder.out:(Ljava/io/PrintStream;)Ljdk/jshell/JShell$Builder;
11: aload 0
getfield jdk.internal.jshell.tool.JShellTool.usererr:Ljava/io/PrintStream;
invokevirtual jdk.jshell.JShell$Builder.err:(Ljava/io/PrintStream;)Ljdk/jshell/JShell$Builder;
12: aload 0
invokedynamic get(Ljdk/internal/jshell/tool/JShellTool;)Ljava/util/function/Supplier;
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;
jdk/internal/jshell/tool/JShellTool.lambda$33()Ljava/lang/String; (7)
()Ljava/lang/String;
invokevirtual jdk.jshell.JShell$Builder.tempVariableNameGenerator:(Ljava/util/function/Supplier;)Ljdk/jshell/JShell$Builder;
13: aload 0
invokedynamic apply(Ljdk/internal/jshell/tool/JShellTool;)Ljava/util/function/BiFunction;
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/JShellTool.lambda$34(Ljdk/jshell/Snippet;Ljava/lang/Integer;)Ljava/lang/String; (7)
(Ljdk/jshell/Snippet;Ljava/lang/Integer;)Ljava/lang/String;
invokevirtual jdk.jshell.JShell$Builder.idGenerator:(Ljava/util/function/BiFunction;)Ljdk/jshell/JShell$Builder;
14: aload 0
getfield jdk.internal.jshell.tool.JShellTool.options:Ljdk/internal/jshell/tool/JShellTool$Options;
invokevirtual jdk.internal.jshell.tool.JShellTool$Options.remoteVmOptions:()[Ljava/lang/String;
invokevirtual jdk.jshell.JShell$Builder.remoteVMOptions:([Ljava/lang/String;)Ljdk/jshell/JShell$Builder;
15: aload 0
getfield jdk.internal.jshell.tool.JShellTool.options:Ljdk/internal/jshell/tool/JShellTool$Options;
invokevirtual jdk.internal.jshell.tool.JShellTool$Options.compilerOptions:()[Ljava/lang/String;
invokevirtual jdk.jshell.JShell$Builder.compilerOptions:([Ljava/lang/String;)Ljdk/jshell/JShell$Builder;
16: astore 1
start local 1 17: aload 0
getfield jdk.internal.jshell.tool.JShellTool.executionControlSpec:Ljava/lang/String;
ifnull 19
18: aload 1
aload 0
getfield jdk.internal.jshell.tool.JShellTool.executionControlSpec:Ljava/lang/String;
invokevirtual jdk.jshell.JShell$Builder.executionEngine:(Ljava/lang/String;)Ljdk/jshell/JShell$Builder;
pop
19: StackMap locals: jdk.jshell.JShell$Builder
StackMap stack:
aload 0
aload 1
invokevirtual jdk.jshell.JShell$Builder.build:()Ljdk/jshell/JShell;
putfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
20: aload 0
aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
aload 0
invokedynamic accept(Ljdk/internal/jshell/tool/JShellTool;)Ljava/util/function/Consumer;
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;)V
jdk/internal/jshell/tool/JShellTool.lambda$35(Ljdk/jshell/JShell;)V (7)
(Ljdk/jshell/JShell;)V
invokevirtual jdk.jshell.JShell.onShutdown:(Ljava/util/function/Consumer;)Ljdk/jshell/JShell$Subscription;
putfield jdk.internal.jshell.tool.JShellTool.shutdownSubscription:Ljdk/jshell/JShell$Subscription;
21: aload 0
aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
invokevirtual jdk.jshell.JShell.sourceCodeAnalysis:()Ljdk/jshell/SourceCodeAnalysis;
putfield jdk.internal.jshell.tool.JShellTool.analysis:Ljdk/jshell/SourceCodeAnalysis;
22: aload 0
iconst_1
putfield jdk.internal.jshell.tool.JShellTool.live:Z
23: aload 0
getfield jdk.internal.jshell.tool.JShellTool.isCurrentlyRunningStartup:Z
ifne 31
24: aload 0
iconst_1
putfield jdk.internal.jshell.tool.JShellTool.isCurrentlyRunningStartup:Z
25: aload 0
aload 0
getfield jdk.internal.jshell.tool.JShellTool.startup:Ljdk/internal/jshell/tool/Startup;
invokevirtual jdk.internal.jshell.tool.Startup.toString:()Ljava/lang/String;
invokevirtual jdk.internal.jshell.tool.JShellTool.startUpRun:(Ljava/lang/String;)V
26: goto 30
StackMap locals:
StackMap stack: java.lang.Throwable
27: astore 2
28: aload 0
iconst_0
putfield jdk.internal.jshell.tool.JShellTool.isCurrentlyRunningStartup:Z
29: aload 2
athrow
30: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield jdk.internal.jshell.tool.JShellTool.isCurrentlyRunningStartup:Z
31: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield jdk.internal.jshell.tool.JShellTool.mainNamespace:Ljdk/internal/jshell/tool/JShellTool$NameSpace;
putfield jdk.internal.jshell.tool.JShellTool.currentNameSpace:Ljdk/internal/jshell/tool/JShellTool$NameSpace;
32: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 33 0 this Ljdk/internal/jshell/tool/JShellTool;
17 33 1 builder Ljdk/jshell/JShell$Builder;
Exception table:
from to target type
24 27 27 any
private boolean isRunningInteractive();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.currentNameSpace:Ljdk/internal/jshell/tool/JShellTool$NameSpace;
ifnull 1
aload 0
getfield jdk.internal.jshell.tool.JShellTool.currentNameSpace:Ljdk/internal/jshell/tool/JShellTool$NameSpace;
aload 0
getfield jdk.internal.jshell.tool.JShellTool.mainNamespace:Ljdk/internal/jshell/tool/JShellTool$NameSpace;
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jshell/tool/JShellTool;
private void initFeedback(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=5, args_size=2
start local 0 start local 1 0: new jdk.internal.jshell.tool.JShellTool$InitMessageHandler
dup
aload 0
invokespecial jdk.internal.jshell.tool.JShellTool$InitMessageHandler.<init>:(Ljdk/internal/jshell/tool/JShellTool;)V
astore 2
start local 2 1: aload 0
aload 0
ldc "startup.feedback"
invokevirtual jdk.internal.jshell.tool.JShellTool.getResourceString:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual jdk.internal.jshell.tool.JShellTool.startUpRun:(Ljava/lang/String;)V
2: aload 0
getfield jdk.internal.jshell.tool.JShellTool.feedback:Ljdk/internal/jshell/tool/Feedback;
invokevirtual jdk.internal.jshell.tool.Feedback.markModesReadOnly:()V
3: aload 0
getfield jdk.internal.jshell.tool.JShellTool.prefs:Ljdk/internal/jshell/tool/PersistentStorage;
ldc "MODE"
invokeinterface jdk.internal.jshell.tool.PersistentStorage.get:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 4: aload 3
ifnull 7
aload 3
invokevirtual java.lang.String.isEmpty:()Z
ifne 7
5: aload 0
getfield jdk.internal.jshell.tool.JShellTool.feedback:Ljdk/internal/jshell/tool/Feedback;
aload 2
aload 3
invokevirtual jdk.internal.jshell.tool.Feedback.restoreEncodedModes:(Ljdk/internal/jshell/tool/MessageHandler;Ljava/lang/String;)Z
ifne 7
6: aload 0
getfield jdk.internal.jshell.tool.JShellTool.prefs:Ljdk/internal/jshell/tool/PersistentStorage;
ldc "MODE"
invokeinterface jdk.internal.jshell.tool.PersistentStorage.remove:(Ljava/lang/String;)V
7: StackMap locals: jdk.internal.jshell.tool.MessageHandler java.lang.String
StackMap stack:
aload 1
ifnull 11
8: aload 0
aload 2
new jdk.internal.jshell.tool.ArgTokenizer
dup
ldc "--feedback"
aload 1
invokespecial jdk.internal.jshell.tool.ArgTokenizer.<init>:(Ljava/lang/String;Ljava/lang/String;)V
invokevirtual jdk.internal.jshell.tool.JShellTool.setFeedback:(Ljdk/internal/jshell/tool/MessageHandler;Ljdk/internal/jshell/tool/ArgTokenizer;)Z
ifne 14
9: aload 0
iconst_0
putfield jdk.internal.jshell.tool.JShellTool.regenerateOnDeath:Z
10: goto 14
11: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.JShellTool.prefs:Ljdk/internal/jshell/tool/PersistentStorage;
ldc "FEEDBACK"
invokeinterface jdk.internal.jshell.tool.PersistentStorage.get:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 12: aload 4
ifnull 14
13: aload 0
aload 2
new jdk.internal.jshell.tool.ArgTokenizer
dup
ldc "previous retain feedback"
new java.lang.StringBuilder
dup
ldc "-retain "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial jdk.internal.jshell.tool.ArgTokenizer.<init>:(Ljava/lang/String;Ljava/lang/String;)V
invokevirtual jdk.internal.jshell.tool.JShellTool.setFeedback:(Ljdk/internal/jshell/tool/MessageHandler;Ljdk/internal/jshell/tool/ArgTokenizer;)Z
pop
end local 4 14: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljdk/internal/jshell/tool/JShellTool;
0 15 1 initMode Ljava/lang/String;
1 15 2 initmh Ljdk/internal/jshell/tool/MessageHandler;
4 15 3 encoded Ljava/lang/String;
12 14 4 fb Ljava/lang/String;
MethodParameters:
Name Flags
initMode
private void startUpRun(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
aconst_null
astore 3
1: new jdk.internal.jshell.tool.ScannerIOContext
dup
new java.io.StringReader
dup
aload 1
invokespecial java.io.StringReader.<init>:(Ljava/lang/String;)V
invokespecial jdk.internal.jshell.tool.ScannerIOContext.<init>:(Ljava/io/Reader;)V
astore 4
start local 4 2: aload 0
aload 4
invokevirtual jdk.internal.jshell.tool.JShellTool.run:(Ljdk/internal/jshell/tool/IOContext;)V
3: aload 4
ifnull 12
aload 4
invokevirtual jdk.internal.jshell.tool.IOContext.close:()V
goto 12
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String java.lang.Throwable java.lang.Throwable jdk.internal.jshell.tool.IOContext
StackMap stack: java.lang.Throwable
4: astore 2
aload 4
ifnull 5
aload 4
invokevirtual jdk.internal.jshell.tool.IOContext.close:()V
end local 4 StackMap locals:
StackMap stack:
5: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
6: astore 3
aload 2
ifnonnull 7
aload 3
astore 2
goto 8
StackMap locals:
StackMap stack:
7: aload 2
aload 3
if_acmpeq 8
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
8: aload 2
athrow
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String
StackMap stack: java.lang.Exception
9: astore 2
start local 2 10: aload 0
ldc "jshell.err.startup.unexpected.exception"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.hardmsg:(Ljava/lang/String;[Ljava/lang/Object;)V
11: aload 2
aload 0
getfield jdk.internal.jshell.tool.JShellTool.cmdout:Ljava/io/PrintStream;
invokevirtual java.lang.Exception.printStackTrace:(Ljava/io/PrintStream;)V
end local 2 12: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljdk/internal/jshell/tool/JShellTool;
0 13 1 start Ljava/lang/String;
2 5 4 suin Ljdk/internal/jshell/tool/IOContext;
10 12 2 ex Ljava/lang/Exception;
Exception table:
from to target type
2 3 4 any
1 6 6 any
0 9 9 Class java.lang.Exception
MethodParameters:
Name Flags
start
private void closeState();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
iconst_0
putfield jdk.internal.jshell.tool.JShellTool.live:Z
1: aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
astore 1
start local 1 2: aload 1
ifnull 7
3: aload 0
aconst_null
putfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
4: aload 0
aconst_null
putfield jdk.internal.jshell.tool.JShellTool.analysis:Ljdk/jshell/SourceCodeAnalysis;
5: aload 1
aload 0
getfield jdk.internal.jshell.tool.JShellTool.shutdownSubscription:Ljdk/jshell/JShell$Subscription;
invokevirtual jdk.jshell.JShell.unsubscribe:(Ljdk/jshell/JShell$Subscription;)V
6: aload 1
invokevirtual jdk.jshell.JShell.close:()V
7: StackMap locals: jdk.jshell.JShell
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/internal/jshell/tool/JShellTool;
2 8 1 oldState Ljdk/jshell/JShell;
private void run(jdk.internal.jshell.tool.IOContext);
descriptor: (Ljdk/internal/jshell/tool/IOContext;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=9, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.input:Ljdk/internal/jshell/tool/IOContext;
astore 2
start local 2 1: aload 0
aload 1
putfield jdk.internal.jshell.tool.JShellTool.input:Ljdk/internal/jshell/tool/IOContext;
2: ldc ""
astore 3
start local 3 3: goto 31
4: StackMap locals: jdk.internal.jshell.tool.IOContext java.lang.String
StackMap stack:
aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool.isRunningInteractive:()Z
ifeq 14
5: aload 0
getfield jdk.internal.jshell.tool.JShellTool.testPrompt:Z
ifeq 9
6: aload 3
invokevirtual java.lang.String.isEmpty:()Z
ifeq 8
7: ldc "\u0005"
goto 12
8: StackMap locals:
StackMap stack:
ldc "\u0006"
goto 12
9: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.lang.String.isEmpty:()Z
ifeq 11
10: aload 0
getfield jdk.internal.jshell.tool.JShellTool.feedback:Ljdk/internal/jshell/tool/Feedback;
aload 0
getfield jdk.internal.jshell.tool.JShellTool.currentNameSpace:Ljdk/internal/jshell/tool/JShellTool$NameSpace;
invokevirtual jdk.internal.jshell.tool.JShellTool$NameSpace.tidNext:()Ljava/lang/String;
invokevirtual jdk.internal.jshell.tool.Feedback.getPrompt:(Ljava/lang/String;)Ljava/lang/String;
goto 12
11: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.JShellTool.feedback:Ljdk/internal/jshell/tool/Feedback;
aload 0
getfield jdk.internal.jshell.tool.JShellTool.currentNameSpace:Ljdk/internal/jshell/tool/JShellTool$NameSpace;
invokevirtual jdk.internal.jshell.tool.JShellTool$NameSpace.tidNext:()Ljava/lang/String;
invokevirtual jdk.internal.jshell.tool.Feedback.getContinuationPrompt:(Ljava/lang/String;)Ljava/lang/String;
12: StackMap locals:
StackMap stack: java.lang.String
astore 4
start local 4 13: goto 15
end local 4 14: StackMap locals:
StackMap stack:
ldc ""
astore 4
start local 4 15: StackMap locals: java.lang.String
StackMap stack:
aload 1
aload 4
aload 3
invokevirtual jdk.internal.jshell.tool.IOContext.readLine:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 5
start local 5 16: goto 20
end local 5 StackMap locals:
StackMap stack: jdk.internal.jshell.tool.IOContext$InputInterruptedException
17: pop
18: ldc ""
astore 3
19: goto 31
start local 5 20: StackMap locals: java.lang.String
StackMap stack:
aload 5
ifnonnull 24
21: aload 1
invokevirtual jdk.internal.jshell.tool.IOContext.interactiveOutput:()Z
ifeq 39
22: aload 0
iconst_0
putfield jdk.internal.jshell.tool.JShellTool.regenerateOnDeath:Z
23: goto 39
24: StackMap locals:
StackMap stack:
aload 5
invokestatic jdk.internal.jshell.tool.JShellTool.trimEnd:(Ljava/lang/String;)Ljava/lang/String;
astore 6
start local 6 25: aload 6
invokevirtual java.lang.String.isEmpty:()Z
ifeq 26
aload 3
invokevirtual java.lang.String.isEmpty:()Z
ifne 31
26: StackMap locals: java.lang.String
StackMap stack:
new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 7
start local 7 27: aload 3
invokevirtual java.lang.String.isEmpty:()Z
ifeq 30
aload 7
ldc "/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 30
aload 7
ldc "//"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 30
aload 7
ldc "/*"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 30
28: aload 0
aload 7
invokevirtual java.lang.String.trim:()Ljava/lang/String;
invokevirtual jdk.internal.jshell.tool.JShellTool.processCommand:(Ljava/lang/String;)V
29: goto 31
30: StackMap locals: java.lang.String
StackMap stack:
aload 0
aload 7
invokevirtual jdk.internal.jshell.tool.JShellTool.processSourceCatchingReset:(Ljava/lang/String;)Ljava/lang/String;
astore 3
end local 7 end local 6 end local 5 end local 4 31: StackMap locals: jdk.internal.jshell.tool.JShellTool jdk.internal.jshell.tool.IOContext jdk.internal.jshell.tool.IOContext java.lang.String
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.JShellTool.live:Z
ifne 4
end local 3 32: goto 39
StackMap locals: jdk.internal.jshell.tool.JShellTool jdk.internal.jshell.tool.IOContext jdk.internal.jshell.tool.IOContext
StackMap stack: java.io.IOException
33: astore 3
start local 3 34: aload 0
ldc "jshell.err.unexpected.exception"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 3
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 3 35: aload 0
aload 2
putfield jdk.internal.jshell.tool.JShellTool.input:Ljdk/internal/jshell/tool/IOContext;
goto 40
36: StackMap locals:
StackMap stack: java.lang.Throwable
astore 8
37: aload 0
aload 2
putfield jdk.internal.jshell.tool.JShellTool.input:Ljdk/internal/jshell/tool/IOContext;
38: aload 8
athrow
39: StackMap locals:
StackMap stack:
aload 0
aload 2
putfield jdk.internal.jshell.tool.JShellTool.input:Ljdk/internal/jshell/tool/IOContext;
40: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 41 0 this Ljdk/internal/jshell/tool/JShellTool;
0 41 1 in Ljdk/internal/jshell/tool/IOContext;
1 41 2 oldInput Ljdk/internal/jshell/tool/IOContext;
3 32 3 incomplete Ljava/lang/String;
13 14 4 prompt Ljava/lang/String;
15 31 4 prompt Ljava/lang/String;
16 17 5 raw Ljava/lang/String;
20 31 5 raw Ljava/lang/String;
25 31 6 trimmed Ljava/lang/String;
27 31 7 line Ljava/lang/String;
34 35 3 ex Ljava/io/IOException;
Exception table:
from to target type
15 16 17 Class jdk.internal.jshell.tool.IOContext$InputInterruptedException
2 32 33 Class java.io.IOException
2 35 36 any
MethodParameters:
Name Flags
in
private void addToReplayHistory(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool.isRunningInteractive:()Z
ifeq 2
1: aload 0
getfield jdk.internal.jshell.tool.JShellTool.replayableHistory:Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;
aload 1
invokevirtual jdk.internal.jshell.tool.JShellTool$ReplayableHistory.add:(Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/jshell/tool/JShellTool;
0 3 1 s Ljava/lang/String;
MethodParameters:
Name Flags
s
private java.lang.String processSourceCatchingReset(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.input:Ljdk/internal/jshell/tool/IOContext;
invokevirtual jdk.internal.jshell.tool.IOContext.beforeUserCode:()V
1: aload 0
aload 1
invokevirtual jdk.internal.jshell.tool.JShellTool.processSource:(Ljava/lang/String;)Ljava/lang/String;
astore 3
2: aload 0
getfield jdk.internal.jshell.tool.JShellTool.input:Ljdk/internal/jshell/tool/IOContext;
invokevirtual jdk.internal.jshell.tool.IOContext.afterUserCode:()V
3: aload 3
areturn
4: StackMap locals:
StackMap stack: java.lang.IllegalStateException
pop
5: aload 0
ldc "Resetting..."
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.hard:(Ljava/lang/String;[Ljava/lang/Object;)V
6: aload 0
iconst_0
putfield jdk.internal.jshell.tool.JShellTool.live:Z
7: aload 0
getfield jdk.internal.jshell.tool.JShellTool.input:Ljdk/internal/jshell/tool/IOContext;
invokevirtual jdk.internal.jshell.tool.IOContext.afterUserCode:()V
8: ldc ""
areturn
9: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
10: aload 0
getfield jdk.internal.jshell.tool.JShellTool.input:Ljdk/internal/jshell/tool/IOContext;
invokevirtual jdk.internal.jshell.tool.IOContext.afterUserCode:()V
11: aload 2
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljdk/internal/jshell/tool/JShellTool;
0 12 1 src Ljava/lang/String;
Exception table:
from to target type
0 2 4 Class java.lang.IllegalStateException
0 2 9 any
4 7 9 any
MethodParameters:
Name Flags
src
private void processCommand(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=6, args_size=2
start local 0 start local 1 0: aload 1
ldc "/-"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 4
1: aload 0
aload 1
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
invokevirtual jdk.internal.jshell.tool.JShellTool.cmdUseHistoryEntry:(I)Z
pop
2: return
3: StackMap locals:
StackMap stack: java.lang.NumberFormatException
pop
4: StackMap locals:
StackMap stack:
ldc ""
astore 2
start local 2 5: aload 1
bipush 32
invokevirtual java.lang.String.indexOf:(I)I
istore 3
start local 3 6: iload 3
ifle 9
7: aload 1
iload 3
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 2
8: aload 1
iconst_0
iload 3
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 1
9: StackMap locals: java.lang.String int
StackMap stack:
aload 0
aload 1
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/internal/jshell/tool/JShellTool.lambda$36(Ljdk/internal/jshell/tool/JShellTool$Command;)Z (6)
(Ljdk/internal/jshell/tool/JShellTool$Command;)Z
invokevirtual jdk.internal.jshell.tool.JShellTool.findCommand:(Ljava/lang/String;Ljava/util/function/Predicate;)[Ljdk/internal/jshell/tool/JShellTool$Command;
astore 4
start local 4 10: aload 4
arraylength
tableswitch { // 0 - 1
0: 11
1: 15
default: 19
}
11: StackMap locals: jdk.internal.jshell.tool.JShellTool$Command[]
StackMap stack:
aload 0
aload 1
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual jdk.internal.jshell.tool.JShellTool.rerunHistoryEntryById:(Ljava/lang/String;)Z
ifne 23
12: aload 0
ldc "jshell.err.no.such.command.or.snippet.id"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
13: aload 0
ldc "jshell.msg.help.for.help"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.fluffmsg:(Ljava/lang/String;[Ljava/lang/Object;)V
14: goto 23
15: StackMap locals:
StackMap stack:
aload 4
iconst_0
aaload
astore 5
start local 5 16: aload 5
getfield jdk.internal.jshell.tool.JShellTool$Command.run:Ljava/util/function/Function;
aload 2
invokeinterface java.util.function.Function.apply:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 23
aload 5
getfield jdk.internal.jshell.tool.JShellTool$Command.kind:Ljdk/internal/jshell/tool/JShellTool$CommandKind;
getstatic jdk.internal.jshell.tool.JShellTool$CommandKind.REPLAY:Ljdk/internal/jshell/tool/JShellTool$CommandKind;
if_acmpne 23
17: aload 0
new java.lang.StringBuilder
dup
aload 5
getfield jdk.internal.jshell.tool.JShellTool$Command.command:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
invokevirtual jdk.internal.jshell.tool.JShellTool.addToReplayHistory:(Ljava/lang/String;)V
18: goto 23
end local 5 19: StackMap locals:
StackMap stack:
aload 0
ldc "jshell.err.command.ambiguous"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
20: aload 4
invokestatic java.util.Arrays.stream:([Ljava/lang/Object;)Ljava/util/stream/Stream;
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/internal/jshell/tool/JShellTool.lambda$37(Ljdk/internal/jshell/tool/JShellTool$Command;)Ljava/lang/String; (6)
(Ljdk/internal/jshell/tool/JShellTool$Command;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
ldc ", "
invokestatic java.util.stream.Collectors.joining:(Ljava/lang/CharSequence;)Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
aastore
21: invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
22: aload 0
ldc "jshell.msg.help.for.help"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.fluffmsg:(Ljava/lang/String;[Ljava/lang/Object;)V
23: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Ljdk/internal/jshell/tool/JShellTool;
0 24 1 cmd Ljava/lang/String;
5 24 2 arg Ljava/lang/String;
6 24 3 idx I
10 24 4 candidates [Ljdk/internal/jshell/tool/JShellTool$Command;
16 19 5 command Ljdk/internal/jshell/tool/JShellTool$Command;
Exception table:
from to target type
1 2 3 Class java.lang.NumberFormatException
MethodParameters:
Name Flags
cmd
private jdk.internal.jshell.tool.JShellTool$Command[] findCommand(java.lang.String, java.util.function.Predicate<jdk.internal.jshell.tool.JShellTool$Command>);
descriptor: (Ljava/lang/String;Ljava/util/function/Predicate;)[Ljdk/internal/jshell/tool/JShellTool$Command;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.commands:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.internal.jshell.tool.JShellTool$Command
astore 3
start local 3 1: aload 3
ifnull 3
2: iconst_1
anewarray jdk.internal.jshell.tool.JShellTool$Command
dup
iconst_0
aload 3
aastore
areturn
3: StackMap locals: jdk.internal.jshell.tool.JShellTool$Command
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.JShellTool.commands:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
4: invokeinterface java.util.Collection.stream:()Ljava/util/stream/Stream;
5: aload 2
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
6: aload 1
invokedynamic test(Ljava/lang/String;)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/internal/jshell/tool/JShellTool.lambda$38(Ljava/lang/String;Ljdk/internal/jshell/tool/JShellTool$Command;)Z (6)
(Ljdk/internal/jshell/tool/JShellTool$Command;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
7: invokedynamic apply()Ljava/util/function/IntFunction;
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:
(I)Ljava/lang/Object;
jdk/internal/jshell/tool/JShellTool.lambda$39(I)[Ljdk/internal/jshell/tool/JShellTool$Command; (6)
(I)[Ljdk/internal/jshell/tool/JShellTool$Command;
invokeinterface java.util.stream.Stream.toArray:(Ljava/util/function/IntFunction;)[Ljava/lang/Object;
checkcast jdk.internal.jshell.tool.JShellTool$Command[]
8: areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/jshell/tool/JShellTool;
0 9 1 cmd Ljava/lang/String;
0 9 2 filter Ljava/util/function/Predicate<Ljdk/internal/jshell/tool/JShellTool$Command;>;
1 9 3 exact Ljdk/internal/jshell/tool/JShellTool$Command;
Signature: (Ljava/lang/String;Ljava/util/function/Predicate<Ljdk/internal/jshell/tool/JShellTool$Command;>;)[Ljdk/internal/jshell/tool/JShellTool$Command;
MethodParameters:
Name Flags
cmd
filter
static java.nio.file.Path toPathResolvingUserHome(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/nio/file/Path;
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
getstatic java.io.File.separatorChar:C
bipush 47
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
ldc "~/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 2
1: ldc "user.home"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 0
iconst_2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
aastore
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
areturn
2: StackMap locals:
StackMap stack:
aload 0
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 pathString Ljava/lang/String;
MethodParameters:
Name Flags
pathString
private void registerCommand(jdk.internal.jshell.tool.JShellTool$Command);
descriptor: (Ljdk/internal/jshell/tool/JShellTool$Command;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.commands:Ljava/util/Map;
aload 1
getfield jdk.internal.jshell.tool.JShellTool$Command.command:Ljava/lang/String;
aload 1
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jshell/tool/JShellTool;
0 2 1 cmd Ljdk/internal/jshell/tool/JShellTool$Command;
MethodParameters:
Name Flags
cmd
private static jdk.internal.jshell.tool.JShellTool$CompletionProvider skipWordThenCompletion(jdk.internal.jshell.tool.JShellTool$CompletionProvider);
descriptor: (Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokedynamic completionSuggestions(Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
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/String;I[I)Ljava/util/List;
jdk/internal/jshell/tool/JShellTool.lambda$40(Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;Ljava/lang/String;I[I)Ljava/util/List; (6)
(Ljava/lang/String;I[I)Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 completionProvider Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
MethodParameters:
Name Flags
completionProvider
private static jdk.internal.jshell.tool.JShellTool$CompletionProvider fileCompletions(java.util.function.Predicate<java.nio.file.Path>);
descriptor: (Ljava/util/function/Predicate;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokedynamic completionSuggestions(Ljava/util/function/Predicate;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
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/String;I[I)Ljava/util/List;
jdk/internal/jshell/tool/JShellTool.lambda$41(Ljava/util/function/Predicate;Ljava/lang/String;I[I)Ljava/util/List; (6)
(Ljava/lang/String;I[I)Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 accept Ljava/util/function/Predicate<Ljava/nio/file/Path;>;
Signature: (Ljava/util/function/Predicate<Ljava/nio/file/Path;>;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
MethodParameters:
Name Flags
accept
private static jdk.internal.jshell.tool.JShellTool$CompletionProvider classPathCompletion();
descriptor: ()Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: 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/internal/jshell/tool/JShellTool.lambda$49(Ljava/nio/file/Path;)Z (6)
(Ljava/nio/file/Path;)Z
invokestatic jdk.internal.jshell.tool.JShellTool.fileCompletions:(Ljava/util/function/Predicate;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
areturn
LocalVariableTable:
Start End Slot Name Signature
private jdk.internal.jshell.tool.JShellTool$CompletionProvider snippetCompletion(java.util.function.Supplier<java.util.stream.Stream<? extends jdk.jshell.Snippet>>);
descriptor: (Ljava/util/function/Supplier;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokedynamic completionSuggestions(Ljava/util/function/Supplier;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
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/String;I[I)Ljava/util/List;
jdk/internal/jshell/tool/JShellTool.lambda$50(Ljava/util/function/Supplier;Ljava/lang/String;I[I)Ljava/util/List; (6)
(Ljava/lang/String;I[I)Ljava/util/List;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
0 1 1 snippetsSupplier Ljava/util/function/Supplier<Ljava/util/stream/Stream<+Ljdk/jshell/Snippet;>;>;
Signature: (Ljava/util/function/Supplier<Ljava/util/stream/Stream<+Ljdk/jshell/Snippet;>;>;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
MethodParameters:
Name Flags
snippetsSupplier
private jdk.internal.jshell.tool.JShellTool$CompletionProvider snippetWithOptionCompletion(jdk.internal.jshell.tool.JShellTool$CompletionProvider, java.util.function.Supplier<java.util.stream.Stream<? extends jdk.jshell.Snippet>>);
descriptor: (Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;Ljava/util/function/Supplier;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokedynamic completionSuggestions(Ljdk/internal/jshell/tool/JShellTool;Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;Ljava/util/function/Supplier;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
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/String;I[I)Ljava/util/List;
jdk/internal/jshell/tool/JShellTool.lambda$55(Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;Ljava/util/function/Supplier;Ljava/lang/String;I[I)Ljava/util/List; (7)
(Ljava/lang/String;I[I)Ljava/util/List;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
0 1 1 optionProvider Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
0 1 2 snippetsSupplier Ljava/util/function/Supplier<Ljava/util/stream/Stream<+Ljdk/jshell/Snippet;>;>;
Signature: (Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;Ljava/util/function/Supplier<Ljava/util/stream/Stream<+Ljdk/jshell/Snippet;>;>;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
MethodParameters:
Name Flags
optionProvider
snippetsSupplier
private jdk.internal.jshell.tool.JShellTool$CompletionProvider helpCompletion();
descriptor: ()Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokedynamic completionSuggestions(Ljdk/internal/jshell/tool/JShellTool;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
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/String;I[I)Ljava/util/List;
jdk/internal/jshell/tool/JShellTool.lambda$56(Ljava/lang/String;I[I)Ljava/util/List; (7)
(Ljava/lang/String;I[I)Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
private static jdk.internal.jshell.tool.JShellTool$CompletionProvider saveCompletion();
descriptor: ()Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokedynamic completionSuggestions()Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
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/String;I[I)Ljava/util/List;
jdk/internal/jshell/tool/JShellTool.lambda$60(Ljava/lang/String;I[I)Ljava/util/List; (6)
(Ljava/lang/String;I[I)Ljava/util/List;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static jdk.internal.jshell.tool.JShellTool$CompletionProvider optionCompletion(jdk.internal.jshell.tool.JShellTool$CompletionProvider);
descriptor: (Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokedynamic completionSuggestions(Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
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/String;I[I)Ljava/util/List;
jdk/internal/jshell/tool/JShellTool.lambda$61(Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;Ljava/lang/String;I[I)Ljava/util/List; (6)
(Ljava/lang/String;I[I)Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 provider Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
MethodParameters:
Name Flags
provider
private static jdk.internal.jshell.tool.JShellTool$CompletionProvider reloadCompletion();
descriptor: ()Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic jdk.internal.jshell.tool.JShellTool.RELOAD_OPTIONS_COMPLETION_PROVIDER:Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
invokestatic jdk.internal.jshell.tool.JShellTool.optionCompletion:(Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static jdk.internal.jshell.tool.JShellTool$CompletionProvider envCompletion();
descriptor: ()Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic jdk.internal.jshell.tool.JShellTool.COMMAND_LINE_LIKE_OPTIONS_COMPLETION_PROVIDER:Ljdk/internal/jshell/tool/JShellTool$FixedCompletionProvider;
invokestatic jdk.internal.jshell.tool.JShellTool.optionCompletion:(Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static jdk.internal.jshell.tool.JShellTool$CompletionProvider orMostSpecificCompletion(jdk.internal.jshell.tool.JShellTool$CompletionProvider, jdk.internal.jshell.tool.JShellTool$CompletionProvider);
descriptor: (Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokedynamic completionSuggestions(Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
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/String;I[I)Ljava/util/List;
jdk/internal/jshell/tool/JShellTool.lambda$65(Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;Ljava/lang/String;I[I)Ljava/util/List; (6)
(Ljava/lang/String;I[I)Ljava/util/List;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 left Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
0 1 1 right Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
MethodParameters:
Name Flags
left
right
java.util.stream.Stream<jdk.jshell.Snippet> allSnippets();
descriptor: ()Ljava/util/stream/Stream;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
invokevirtual jdk.jshell.JShell.snippets:()Ljava/util/stream/Stream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
Signature: ()Ljava/util/stream/Stream<Ljdk/jshell/Snippet;>;
java.util.stream.Stream<jdk.jshell.Snippet> dropableSnippets();
descriptor: ()Ljava/util/stream/Stream;
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
invokevirtual jdk.jshell.JShell.snippets:()Ljava/util/stream/Stream;
1: aload 0
invokedynamic test(Ljdk/internal/jshell/tool/JShellTool;)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/internal/jshell/tool/JShellTool.lambda$66(Ljdk/jshell/Snippet;)Z (7)
(Ljdk/jshell/Snippet;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/jshell/tool/JShellTool;
Signature: ()Ljava/util/stream/Stream<Ljdk/jshell/Snippet;>;
java.util.stream.Stream<jdk.jshell.VarSnippet> allVarSnippets();
descriptor: ()Ljava/util/stream/Stream;
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
invokevirtual jdk.jshell.JShell.snippets:()Ljava/util/stream/Stream;
1: 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/internal/jshell/tool/JShellTool.lambda$67(Ljdk/jshell/Snippet;)Z (6)
(Ljdk/jshell/Snippet;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
2: 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/internal/jshell/tool/JShellTool.lambda$68(Ljdk/jshell/Snippet;)Ljdk/jshell/VarSnippet; (6)
(Ljdk/jshell/Snippet;)Ljdk/jshell/VarSnippet;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
3: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/jshell/tool/JShellTool;
Signature: ()Ljava/util/stream/Stream<Ljdk/jshell/VarSnippet;>;
java.util.stream.Stream<jdk.jshell.MethodSnippet> allMethodSnippets();
descriptor: ()Ljava/util/stream/Stream;
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
invokevirtual jdk.jshell.JShell.snippets:()Ljava/util/stream/Stream;
1: 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/internal/jshell/tool/JShellTool.lambda$69(Ljdk/jshell/Snippet;)Z (6)
(Ljdk/jshell/Snippet;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
2: 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/internal/jshell/tool/JShellTool.lambda$70(Ljdk/jshell/Snippet;)Ljdk/jshell/MethodSnippet; (6)
(Ljdk/jshell/Snippet;)Ljdk/jshell/MethodSnippet;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
3: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/jshell/tool/JShellTool;
Signature: ()Ljava/util/stream/Stream<Ljdk/jshell/MethodSnippet;>;
java.util.stream.Stream<jdk.jshell.TypeDeclSnippet> allTypeSnippets();
descriptor: ()Ljava/util/stream/Stream;
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
invokevirtual jdk.jshell.JShell.snippets:()Ljava/util/stream/Stream;
1: 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/internal/jshell/tool/JShellTool.lambda$71(Ljdk/jshell/Snippet;)Z (6)
(Ljdk/jshell/Snippet;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
2: 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/internal/jshell/tool/JShellTool.lambda$72(Ljdk/jshell/Snippet;)Ljdk/jshell/TypeDeclSnippet; (6)
(Ljdk/jshell/Snippet;)Ljdk/jshell/TypeDeclSnippet;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
3: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/jshell/tool/JShellTool;
Signature: ()Ljava/util/stream/Stream<Ljdk/jshell/TypeDeclSnippet;>;
public java.util.List<jdk.jshell.SourceCodeAnalysis$Suggestion> commandCompletionSuggestions(java.lang.String, int, int[]);
descriptor: (Ljava/lang/String;I[I)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.commandCompletions:Ljdk/internal/jshell/tool/ContinuousCompletionProvider;
aload 1
iload 2
aload 3
invokevirtual jdk.internal.jshell.tool.ContinuousCompletionProvider.completionSuggestions:(Ljava/lang/String;I[I)Ljava/util/List;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
0 1 1 code Ljava/lang/String;
0 1 2 cursor I
0 1 3 anchor [I
Signature: (Ljava/lang/String;I[I)Ljava/util/List<Ljdk/jshell/SourceCodeAnalysis$Suggestion;>;
MethodParameters:
Name Flags
code
cursor
anchor
public java.util.List<java.lang.String> commandDocumentation(java.lang.String, int, boolean);
descriptor: (Ljava/lang/String;IZ)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 1
1: aload 1
bipush 32
invokevirtual java.lang.String.indexOf:(I)I
istore 4
start local 4 2: iload 4
iconst_m1
if_icmpeq 3
aload 1
iconst_0
iload 4
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
goto 4
StackMap locals: int
StackMap stack:
3: aload 1
StackMap locals:
StackMap stack: java.lang.String
4: astore 5
start local 5 5: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 6
start local 6 6: aload 0
getfield jdk.internal.jshell.tool.JShellTool.commands:Ljava/util/Map;
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
7: invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
8: aload 5
invokedynamic test(Ljava/lang/String;)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/internal/jshell/tool/JShellTool.lambda$73(Ljava/lang/String;Ljava/util/Map$Entry;)Z (6)
(Ljava/util/Map$Entry;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
9: 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/internal/jshell/tool/JShellTool.lambda$74(Ljava/util/Map$Entry;)Z (6)
(Ljava/util/Map$Entry;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
10: invokedynamic compare()Ljava/util/Comparator;
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;)I
jdk/internal/jshell/tool/JShellTool.lambda$75(Ljava/util/Map$Entry;Ljava/util/Map$Entry;)I (6)
(Ljava/util/Map$Entry;Ljava/util/Map$Entry;)I
invokeinterface java.util.stream.Stream.sorted:(Ljava/util/Comparator;)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 7
start local 7 13: aload 7
invokeinterface java.util.List.size:()I
iconst_1
if_icmpne 18
14: aload 6
aload 0
new java.lang.StringBuilder
dup
aload 7
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.util.Map$Entry
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast jdk.internal.jshell.tool.JShellTool$Command
getfield jdk.internal.jshell.tool.JShellTool$Command.helpKey:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
ifeq 15
ldc ".summary"
goto 16
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String int int int java.lang.String java.util.List java.util.List
StackMap stack: java.util.List jdk.internal.jshell.tool.JShellTool java.lang.StringBuilder
15: ldc ""
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String int int int java.lang.String java.util.List java.util.List
StackMap stack: java.util.List jdk.internal.jshell.tool.JShellTool java.lang.StringBuilder java.lang.String
16: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual jdk.internal.jshell.tool.JShellTool.getResourceString:(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
17: goto 24
18: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 9
goto 23
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String int int int java.lang.String java.util.List java.util.List top java.util.Iterator
StackMap stack:
19: aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 8
start local 8 20: aload 6
new java.lang.StringBuilder
dup
aload 8
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
new java.lang.StringBuilder
dup
aload 8
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast jdk.internal.jshell.tool.JShellTool$Command
getfield jdk.internal.jshell.tool.JShellTool$Command.helpKey:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
ifeq 21
ldc ".summary"
goto 22
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String int int int java.lang.String java.util.List java.util.List java.util.Map$Entry java.util.Iterator
StackMap stack: java.util.List java.lang.StringBuilder jdk.internal.jshell.tool.JShellTool java.lang.StringBuilder
21: ldc ""
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String int int int java.lang.String java.util.List java.util.List java.util.Map$Entry java.util.Iterator
StackMap stack: java.util.List java.lang.StringBuilder jdk.internal.jshell.tool.JShellTool java.lang.StringBuilder java.lang.String
22: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual jdk.internal.jshell.tool.JShellTool.getResourceString:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 8 23: StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String int int int java.lang.String java.util.List java.util.List top java.util.Iterator
StackMap stack:
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 19
24: StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String int int int java.lang.String java.util.List java.util.List
StackMap stack:
aload 6
areturn
end local 7 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 25 0 this Ljdk/internal/jshell/tool/JShellTool;
0 25 1 code Ljava/lang/String;
0 25 2 cursor I
0 25 3 shortDescription Z
2 25 4 space I
5 25 5 prefix Ljava/lang/String;
6 25 6 result Ljava/util/List<Ljava/lang/String;>;
13 25 7 toShow Ljava/util/List<Ljava/util/Map$Entry<Ljava/lang/String;Ljdk/internal/jshell/tool/JShellTool$Command;>;>;
20 23 8 e Ljava/util/Map$Entry<Ljava/lang/String;Ljdk/internal/jshell/tool/JShellTool$Command;>;
Signature: (Ljava/lang/String;IZ)Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
code
cursor
shortDescription
void stop();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
invokevirtual jdk.jshell.JShell.stop:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jshell/tool/JShellTool;
final boolean cmdSet(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0010) ACC_FINAL
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: ldc "/set"
astore 2
start local 2 1: new jdk.internal.jshell.tool.ArgTokenizer
dup
aload 2
aload 1
invokevirtual java.lang.String.trim:()Ljava/lang/String;
invokespecial jdk.internal.jshell.tool.ArgTokenizer.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 3
start local 3 2: aload 0
aload 2
aload 3
getstatic jdk.internal.jshell.tool.JShellTool.SET_SUBCOMMANDS:[Ljava/lang/String;
invokevirtual jdk.internal.jshell.tool.JShellTool.subCommand:(Ljava/lang/String;Ljdk/internal/jshell/tool/ArgTokenizer;[Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 3: aload 4
ifnonnull 5
4: iconst_0
ireturn
5: StackMap locals: java.lang.String jdk.internal.jshell.tool.ArgTokenizer java.lang.String
StackMap stack:
aload 4
dup
astore 5
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 9
-1693144887: 6
-1481378731: 7
-1307827859: 8
-1268779017: 9
-979805852: 10
-191501435: 11
3357091: 12
109757538: 13
1774054948: 14
default: 31
}
StackMap locals: java.lang.String
StackMap stack:
6: aload 5
ldc "truncation"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 23
goto 31
StackMap locals:
StackMap stack:
7: aload 5
ldc "_blank"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 17
goto 31
StackMap locals:
StackMap stack:
8: aload 5
ldc "editor"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 29
goto 31
StackMap locals:
StackMap stack:
9: aload 5
ldc "format"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 22
goto 31
StackMap locals:
StackMap stack:
10: aload 5
ldc "prompt"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 28
goto 31
StackMap locals:
StackMap stack:
11: aload 5
ldc "feedback"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 24
goto 31
StackMap locals:
StackMap stack:
12: aload 5
ldc "mode"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 25
goto 31
StackMap locals:
StackMap stack:
13: aload 5
ldc "start"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 30
goto 31
StackMap locals:
StackMap stack:
14: aload 5
ldc "_retain"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 15
goto 31
15: StackMap locals:
StackMap stack:
aload 0
ldc "jshell.err.setting.to.retain.must.be.specified"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 3
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.whole:()Ljava/lang/String;
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
16: iconst_0
ireturn
17: StackMap locals:
StackMap stack:
new jdk.internal.jshell.tool.JShellTool$SetEditor
dup
aload 0
invokespecial jdk.internal.jshell.tool.JShellTool$SetEditor.<init>:(Ljdk/internal/jshell/tool/JShellTool;)V
invokevirtual jdk.internal.jshell.tool.JShellTool$SetEditor.set:()Z
pop
18: aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool.showSetStart:()V
19: aload 0
aload 0
aload 3
invokevirtual jdk.internal.jshell.tool.JShellTool.setFeedback:(Ljdk/internal/jshell/tool/MessageHandler;Ljdk/internal/jshell/tool/ArgTokenizer;)Z
pop
20: aload 0
ldc "jshell.msg.set.show.mode.settings"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.hardmsg:(Ljava/lang/String;[Ljava/lang/Object;)V
21: iconst_1
ireturn
22: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.JShellTool.feedback:Ljdk/internal/jshell/tool/Feedback;
aload 0
aload 3
invokevirtual jdk.internal.jshell.tool.Feedback.setFormat:(Ljdk/internal/jshell/tool/MessageHandler;Ljdk/internal/jshell/tool/ArgTokenizer;)Z
ireturn
23: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.JShellTool.feedback:Ljdk/internal/jshell/tool/Feedback;
aload 0
aload 3
invokevirtual jdk.internal.jshell.tool.Feedback.setTruncation:(Ljdk/internal/jshell/tool/MessageHandler;Ljdk/internal/jshell/tool/ArgTokenizer;)Z
ireturn
24: StackMap locals:
StackMap stack:
aload 0
aload 0
aload 3
invokevirtual jdk.internal.jshell.tool.JShellTool.setFeedback:(Ljdk/internal/jshell/tool/MessageHandler;Ljdk/internal/jshell/tool/ArgTokenizer;)Z
ireturn
25: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.JShellTool.feedback:Ljdk/internal/jshell/tool/Feedback;
aload 0
aload 3
26: aload 0
invokedynamic accept(Ljdk/internal/jshell/tool/JShellTool;)Ljava/util/function/Consumer;
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;)V
jdk/internal/jshell/tool/JShellTool.lambda$76(Ljava/lang/String;)V (7)
(Ljava/lang/String;)V
27: invokevirtual jdk.internal.jshell.tool.Feedback.setMode:(Ljdk/internal/jshell/tool/MessageHandler;Ljdk/internal/jshell/tool/ArgTokenizer;Ljava/util/function/Consumer;)Z
ireturn
28: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.JShellTool.feedback:Ljdk/internal/jshell/tool/Feedback;
aload 0
aload 3
invokevirtual jdk.internal.jshell.tool.Feedback.setPrompt:(Ljdk/internal/jshell/tool/MessageHandler;Ljdk/internal/jshell/tool/ArgTokenizer;)Z
ireturn
29: StackMap locals:
StackMap stack:
new jdk.internal.jshell.tool.JShellTool$SetEditor
dup
aload 0
aload 3
invokespecial jdk.internal.jshell.tool.JShellTool$SetEditor.<init>:(Ljdk/internal/jshell/tool/JShellTool;Ljdk/internal/jshell/tool/ArgTokenizer;)V
invokevirtual jdk.internal.jshell.tool.JShellTool$SetEditor.set:()Z
ireturn
30: StackMap locals:
StackMap stack:
aload 0
aload 3
invokevirtual jdk.internal.jshell.tool.JShellTool.setStart:(Ljdk/internal/jshell/tool/ArgTokenizer;)Z
ireturn
31: StackMap locals:
StackMap stack:
aload 0
ldc "jshell.err.arg"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 3
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.val:()Ljava/lang/String;
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
32: iconst_0
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 33 0 this Ljdk/internal/jshell/tool/JShellTool;
0 33 1 arg Ljava/lang/String;
1 33 2 cmd Ljava/lang/String;
2 33 3 at Ljdk/internal/jshell/tool/ArgTokenizer;
3 33 4 which Ljava/lang/String;
MethodParameters:
Name Flags
arg
boolean setFeedback(jdk.internal.jshell.tool.MessageHandler, jdk.internal.jshell.tool.ArgTokenizer);
descriptor: (Ljdk/internal/jshell/tool/MessageHandler;Ljdk/internal/jshell/tool/ArgTokenizer;)Z
flags: (0x0000)
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.feedback:Ljdk/internal/jshell/tool/Feedback;
aload 1
aload 2
1: aload 0
invokedynamic accept(Ljdk/internal/jshell/tool/JShellTool;)Ljava/util/function/Consumer;
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;)V
jdk/internal/jshell/tool/JShellTool.lambda$77(Ljava/lang/String;)V (7)
(Ljava/lang/String;)V
2: invokevirtual jdk.internal.jshell.tool.Feedback.setFeedback:(Ljdk/internal/jshell/tool/MessageHandler;Ljdk/internal/jshell/tool/ArgTokenizer;Ljava/util/function/Consumer;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/jshell/tool/JShellTool;
0 3 1 messageHandler Ljdk/internal/jshell/tool/MessageHandler;
0 3 2 at Ljdk/internal/jshell/tool/ArgTokenizer;
MethodParameters:
Name Flags
messageHandler
at
java.lang.String subCommand(java.lang.String, jdk.internal.jshell.tool.ArgTokenizer, java.lang.String[]);
descriptor: (Ljava/lang/String;Ljdk/internal/jshell/tool/ArgTokenizer;[Ljava/lang/String;)Ljava/lang/String;
flags: (0x0000)
Code:
stack=7, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "-retain"
aastore
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.allowedOptions:([Ljava/lang/String;)V
1: aload 2
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.next:()Ljava/lang/String;
astore 4
start local 4 2: aload 4
ifnonnull 7
3: aload 2
ldc "-retain"
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.hasOption:(Ljava/lang/String;)Z
ifeq 5
4: ldc "_retain"
goto 6
5: StackMap locals: java.lang.String
StackMap stack:
ldc "_blank"
6: StackMap locals:
StackMap stack: java.lang.String
areturn
7: StackMap locals:
StackMap stack:
aload 3
invokestatic java.util.Arrays.stream:([Ljava/lang/Object;)Ljava/util/stream/Stream;
8: aload 4
invokedynamic test(Ljava/lang/String;)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/internal/jshell/tool/JShellTool.lambda$78(Ljava/lang/String;Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
9: invokedynamic apply()Ljava/util/function/IntFunction;
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:
(I)Ljava/lang/Object;
jdk/internal/jshell/tool/JShellTool.lambda$79(I)[Ljava/lang/String; (6)
(I)[Ljava/lang/String;
invokeinterface java.util.stream.Stream.toArray:(Ljava/util/function/IntFunction;)[Ljava/lang/Object;
checkcast java.lang.String[]
10: astore 5
start local 5 11: aload 5
arraylength
ifne 17
12: aload 0
ldc "jshell.err.arg"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 4
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
13: aload 0
ldc "jshell.msg.use.one.of"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 3
invokestatic java.util.Arrays.stream:([Ljava/lang/Object;)Ljava/util/stream/Stream;
14: ldc ", "
invokestatic java.util.stream.Collectors.joining:(Ljava/lang/CharSequence;)Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
aastore
15: invokevirtual jdk.internal.jshell.tool.JShellTool.fluffmsg:(Ljava/lang/String;[Ljava/lang/Object;)V
16: aconst_null
areturn
17: StackMap locals: java.lang.String[]
StackMap stack:
aload 5
arraylength
iconst_1
if_icmple 23
18: aload 0
ldc "jshell.err.sub.ambiguous"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 4
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
19: aload 0
ldc "jshell.msg.use.one.of"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 5
invokestatic java.util.Arrays.stream:([Ljava/lang/Object;)Ljava/util/stream/Stream;
20: ldc ", "
invokestatic java.util.stream.Collectors.joining:(Ljava/lang/CharSequence;)Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
aastore
21: invokevirtual jdk.internal.jshell.tool.JShellTool.fluffmsg:(Ljava/lang/String;[Ljava/lang/Object;)V
22: aconst_null
areturn
23: StackMap locals:
StackMap stack:
aload 5
iconst_0
aaload
areturn
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 24 0 this Ljdk/internal/jshell/tool/JShellTool;
0 24 1 cmd Ljava/lang/String;
0 24 2 at Ljdk/internal/jshell/tool/ArgTokenizer;
0 24 3 subs [Ljava/lang/String;
2 24 4 sub Ljava/lang/String;
11 24 5 matches [Ljava/lang/String;
MethodParameters:
Name Flags
cmd
at
subs
boolean setStart(jdk.internal.jshell.tool.ArgTokenizer);
descriptor: (Ljdk/internal/jshell/tool/ArgTokenizer;)Z
flags: (0x0000)
Code:
stack=6, locals=8, args_size=2
start local 0 start local 1 0: aload 1
iconst_3
anewarray java.lang.String
dup
iconst_0
ldc "-default"
aastore
dup
iconst_1
ldc "-none"
aastore
dup
iconst_2
ldc "-retain"
aastore
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.allowedOptions:([Ljava/lang/String;)V
1: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 2: goto 4
3: StackMap locals: java.util.List
StackMap stack:
aload 2
aload 1
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.val:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
4: StackMap locals:
StackMap stack:
aload 1
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.next:()Ljava/lang/String;
ifnonnull 3
5: aload 0
aload 1
invokevirtual jdk.internal.jshell.tool.JShellTool.checkOptionsAndRemainingInput:(Ljdk/internal/jshell/tool/ArgTokenizer;)Z
ifne 7
6: iconst_0
ireturn
7: StackMap locals:
StackMap stack:
aload 1
ldc "-default"
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.hasOption:(Ljava/lang/String;)Z
istore 3
start local 3 8: aload 1
ldc "-none"
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.hasOption:(Ljava/lang/String;)Z
istore 4
start local 4 9: aload 1
ldc "-retain"
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.hasOption:(Ljava/lang/String;)Z
istore 5
start local 5 10: aload 2
invokeinterface java.util.List.isEmpty:()Z
ifeq 11
iconst_0
goto 12
StackMap locals: int int int
StackMap stack:
11: iconst_1
StackMap locals:
StackMap stack: int
12: istore 6
start local 6 13: iload 3
ifeq 14
iconst_1
goto 15
StackMap locals: int
StackMap stack:
14: iconst_0
StackMap locals:
StackMap stack: int
15: iload 4
ifeq 16
iconst_1
goto 17
StackMap locals:
StackMap stack: int
16: iconst_0
StackMap locals: jdk.internal.jshell.tool.JShellTool jdk.internal.jshell.tool.ArgTokenizer java.util.List int int int int
StackMap stack: int int
17: iadd
iload 6
ifeq 18
iconst_1
goto 19
StackMap locals:
StackMap stack: int
18: iconst_0
StackMap locals: jdk.internal.jshell.tool.JShellTool jdk.internal.jshell.tool.ArgTokenizer java.util.List int int int int
StackMap stack: int int
19: iadd
istore 7
start local 7 20: iload 7
iconst_1
if_icmple 23
21: aload 0
ldc "jshell.err.option.or.filename"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.whole:()Ljava/lang/String;
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
22: iconst_0
ireturn
23: StackMap locals: int
StackMap stack:
iload 7
ifne 26
iload 5
ifne 26
24: aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool.showSetStart:()V
25: iconst_1
ireturn
26: StackMap locals:
StackMap stack:
iload 6
ifeq 30
27: aload 0
aload 2
ldc "/set start"
aload 0
invokestatic jdk.internal.jshell.tool.Startup.fromFileList:(Ljava/util/List;Ljava/lang/String;Ljdk/internal/jshell/tool/MessageHandler;)Ljdk/internal/jshell/tool/Startup;
putfield jdk.internal.jshell.tool.JShellTool.startup:Ljdk/internal/jshell/tool/Startup;
28: aload 0
getfield jdk.internal.jshell.tool.JShellTool.startup:Ljdk/internal/jshell/tool/Startup;
ifnonnull 35
29: iconst_0
ireturn
30: StackMap locals:
StackMap stack:
iload 3
ifeq 33
31: aload 0
aload 0
invokestatic jdk.internal.jshell.tool.Startup.defaultStartup:(Ljdk/internal/jshell/tool/MessageHandler;)Ljdk/internal/jshell/tool/Startup;
putfield jdk.internal.jshell.tool.JShellTool.startup:Ljdk/internal/jshell/tool/Startup;
32: goto 35
StackMap locals:
StackMap stack:
33: iload 4
ifeq 35
34: aload 0
invokestatic jdk.internal.jshell.tool.Startup.noStartup:()Ljdk/internal/jshell/tool/Startup;
putfield jdk.internal.jshell.tool.JShellTool.startup:Ljdk/internal/jshell/tool/Startup;
35: StackMap locals:
StackMap stack:
iload 5
ifeq 37
36: aload 0
getfield jdk.internal.jshell.tool.JShellTool.prefs:Ljdk/internal/jshell/tool/PersistentStorage;
ldc "STARTUP"
aload 0
getfield jdk.internal.jshell.tool.JShellTool.startup:Ljdk/internal/jshell/tool/Startup;
invokevirtual jdk.internal.jshell.tool.Startup.storedForm:()Ljava/lang/String;
invokeinterface jdk.internal.jshell.tool.PersistentStorage.put:(Ljava/lang/String;Ljava/lang/String;)V
37: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 7 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 38 0 this Ljdk/internal/jshell/tool/JShellTool;
0 38 1 at Ljdk/internal/jshell/tool/ArgTokenizer;
2 38 2 fns Ljava/util/List<Ljava/lang/String;>;
8 38 3 defaultOption Z
9 38 4 noneOption Z
10 38 5 retainOption Z
13 38 6 hasFile Z
20 38 7 argCount I
MethodParameters:
Name Flags
at
void showSetStart();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=5, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: aload 0
getfield jdk.internal.jshell.tool.JShellTool.prefs:Ljdk/internal/jshell/tool/PersistentStorage;
ldc "STARTUP"
invokeinterface jdk.internal.jshell.tool.PersistentStorage.get:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 2: aload 2
ifnull 14
3: aload 2
aload 0
invokestatic jdk.internal.jshell.tool.Startup.unpack:(Ljava/lang/String;Ljdk/internal/jshell/tool/MessageHandler;)Ljdk/internal/jshell/tool/Startup;
astore 3
start local 3 4: aload 0
getfield jdk.internal.jshell.tool.JShellTool.startup:Ljdk/internal/jshell/tool/Startup;
aload 3
invokevirtual jdk.internal.jshell.tool.Startup.equals:(Ljava/lang/Object;)Z
ifeq 5
iconst_0
goto 6
StackMap locals: java.lang.StringBuilder java.lang.String jdk.internal.jshell.tool.Startup
StackMap stack:
5: iconst_1
StackMap locals:
StackMap stack: int
6: istore 4
start local 4 7: aload 1
aload 3
iconst_1
invokevirtual jdk.internal.jshell.tool.Startup.show:(Z)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
8: iload 4
ifeq 10
9: aload 1
aload 0
getfield jdk.internal.jshell.tool.JShellTool.startup:Ljdk/internal/jshell/tool/Startup;
iconst_0
invokevirtual jdk.internal.jshell.tool.Startup.show:(Z)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
10: StackMap locals: int
StackMap stack:
aload 1
aload 3
invokevirtual jdk.internal.jshell.tool.Startup.showDetail:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
11: iload 4
ifeq 16
12: aload 1
aload 0
getfield jdk.internal.jshell.tool.JShellTool.startup:Ljdk/internal/jshell/tool/Startup;
invokevirtual jdk.internal.jshell.tool.Startup.showDetail:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 4 end local 3 13: goto 16
14: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield jdk.internal.jshell.tool.JShellTool.startup:Ljdk/internal/jshell/tool/Startup;
iconst_0
invokevirtual jdk.internal.jshell.tool.Startup.show:(Z)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
15: aload 1
aload 0
getfield jdk.internal.jshell.tool.JShellTool.startup:Ljdk/internal/jshell/tool/Startup;
invokevirtual jdk.internal.jshell.tool.Startup.showDetail:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
16: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.hard:(Ljava/lang/String;[Ljava/lang/Object;)V
17: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Ljdk/internal/jshell/tool/JShellTool;
1 18 1 sb Ljava/lang/StringBuilder;
2 18 2 retained Ljava/lang/String;
4 13 3 retainedStart Ljdk/internal/jshell/tool/Startup;
7 13 4 currentDifferent Z
boolean cmdDebug(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0000)
Code:
stack=6, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.String.isEmpty:()Z
ifeq 11
1: aload 0
aload 0
getfield jdk.internal.jshell.tool.JShellTool.debug:Z
ifeq 2
iconst_0
goto 3
StackMap locals:
StackMap stack: jdk.internal.jshell.tool.JShellTool
2: iconst_1
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String
StackMap stack: jdk.internal.jshell.tool.JShellTool int
3: putfield jdk.internal.jshell.tool.JShellTool.debug:Z
4: aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
aload 0
getfield jdk.internal.jshell.tool.JShellTool.debug:Z
ifeq 5
iconst_1
goto 6
StackMap locals:
StackMap stack: jdk.jshell.JShell
5: iconst_0
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String
StackMap stack: jdk.jshell.JShell int
6: invokestatic jdk.internal.jshell.debug.InternalDebugControl.setDebugFlags:(Ljdk/jshell/JShell;I)V
7: aload 0
ldc "Debugging %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield jdk.internal.jshell.tool.JShellTool.debug:Z
ifeq 8
ldc "on"
goto 9
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String
StackMap stack: jdk.internal.jshell.tool.JShellTool java.lang.String java.lang.Object[] java.lang.Object[] int
8: ldc "off"
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String
StackMap stack: jdk.internal.jshell.tool.JShellTool java.lang.String java.lang.Object[] java.lang.Object[] int java.lang.String
9: aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.fluff:(Ljava/lang/String;[Ljava/lang/Object;)V
10: goto 46
11: StackMap locals:
StackMap stack:
iconst_0
istore 2
start local 2 12: aload 1
invokevirtual java.lang.String.toCharArray:()[C
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 44
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String int top int int char[]
StackMap stack:
13: aload 6
iload 4
caload
istore 3
start local 3 14: iload 3
lookupswitch { // 8
48: 15
99: 28
100: 31
101: 34
102: 25
103: 22
114: 19
119: 37
default: 40
}
15: StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String int int int int char[]
StackMap stack:
iconst_0
istore 2
16: aload 0
iconst_0
putfield jdk.internal.jshell.tool.JShellTool.debug:Z
17: aload 0
ldc "Debugging off"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.fluff:(Ljava/lang/String;[Ljava/lang/Object;)V
18: goto 43
19: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield jdk.internal.jshell.tool.JShellTool.debug:Z
20: aload 0
ldc "REPL tool debugging on"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.fluff:(Ljava/lang/String;[Ljava/lang/Object;)V
21: goto 43
22: StackMap locals:
StackMap stack:
iload 2
iconst_1
ior
istore 2
23: aload 0
ldc "General debugging on"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.fluff:(Ljava/lang/String;[Ljava/lang/Object;)V
24: goto 43
25: StackMap locals:
StackMap stack:
iload 2
iconst_2
ior
istore 2
26: aload 0
ldc "File manager debugging on"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.fluff:(Ljava/lang/String;[Ljava/lang/Object;)V
27: goto 43
28: StackMap locals:
StackMap stack:
iload 2
iconst_4
ior
istore 2
29: aload 0
ldc "Completion analysis debugging on"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.fluff:(Ljava/lang/String;[Ljava/lang/Object;)V
30: goto 43
31: StackMap locals:
StackMap stack:
iload 2
bipush 8
ior
istore 2
32: aload 0
ldc "Dependency debugging on"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.fluff:(Ljava/lang/String;[Ljava/lang/Object;)V
33: goto 43
34: StackMap locals:
StackMap stack:
iload 2
bipush 16
ior
istore 2
35: aload 0
ldc "Event debugging on"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.fluff:(Ljava/lang/String;[Ljava/lang/Object;)V
36: goto 43
37: StackMap locals:
StackMap stack:
iload 2
bipush 32
ior
istore 2
38: aload 0
ldc "Wrap debugging on"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.fluff:(Ljava/lang/String;[Ljava/lang/Object;)V
39: goto 43
40: StackMap locals:
StackMap stack:
aload 0
ldc "Unknown debugging option: %c"
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 3
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.hard:(Ljava/lang/String;[Ljava/lang/Object;)V
41: aload 0
ldc "Use: 0 r g f c d e w"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.fluff:(Ljava/lang/String;[Ljava/lang/Object;)V
42: iconst_0
ireturn
end local 3 43: StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String int top int int char[]
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
44: iload 4
iload 5
if_icmplt 13
45: aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
iload 2
invokestatic jdk.internal.jshell.debug.InternalDebugControl.setDebugFlags:(Ljdk/jshell/JShell;I)V
end local 2 46: StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String
StackMap stack:
iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 47 0 this Ljdk/internal/jshell/tool/JShellTool;
0 47 1 arg Ljava/lang/String;
12 46 2 flags I
14 43 3 ch C
MethodParameters:
Name Flags
arg
private boolean cmdExit();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
putfield jdk.internal.jshell.tool.JShellTool.regenerateOnDeath:Z
1: aload 0
iconst_0
putfield jdk.internal.jshell.tool.JShellTool.live:Z
2: aload 0
ldc "jshell.msg.goodbye"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.fluffmsg:(Ljava/lang/String;[Ljava/lang/Object;)V
3: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/jshell/tool/JShellTool;
boolean cmdHelp(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0000)
Code:
stack=6, locals=10, args_size=2
start local 0 start local 1 0: new jdk.internal.jshell.tool.ArgTokenizer
dup
ldc "/help"
aload 1
invokespecial jdk.internal.jshell.tool.ArgTokenizer.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 2
start local 2 1: aload 2
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.next:()Ljava/lang/String;
astore 3
start local 3 2: aload 3
ifnull 39
3: aload 0
getfield jdk.internal.jshell.tool.JShellTool.commands:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.stream:()Ljava/util/stream/Stream;
4: aload 3
invokedynamic test(Ljava/lang/String;)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/internal/jshell/tool/JShellTool.lambda$80(Ljava/lang/String;Ljdk/internal/jshell/tool/JShellTool$Command;)Z (6)
(Ljdk/internal/jshell/tool/JShellTool$Command;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
5: invokedynamic apply()Ljava/util/function/IntFunction;
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:
(I)Ljava/lang/Object;
jdk/internal/jshell/tool/JShellTool.lambda$39(I)[Ljdk/internal/jshell/tool/JShellTool$Command; (6)
(I)[Ljdk/internal/jshell/tool/JShellTool$Command;
invokeinterface java.util.stream.Stream.toArray:(Ljava/util/function/IntFunction;)[Ljava/lang/Object;
checkcast jdk.internal.jshell.tool.JShellTool$Command[]
6: astore 4
start local 4 7: aload 4
arraylength
iconst_1
if_icmpne 16
8: aload 4
iconst_0
aaload
getfield jdk.internal.jshell.tool.JShellTool$Command.command:Ljava/lang/String;
astore 5
start local 5 9: aload 5
ldc "/set"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 16
10: aload 0
aload 5
aload 2
getstatic jdk.internal.jshell.tool.JShellTool.SET_SUBCOMMANDS:[Ljava/lang/String;
invokevirtual jdk.internal.jshell.tool.JShellTool.subCommand:(Ljava/lang/String;Ljdk/internal/jshell/tool/ArgTokenizer;[Ljava/lang/String;)Ljava/lang/String;
astore 6
start local 6 11: aload 6
ifnonnull 13
12: iconst_0
ireturn
13: StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String jdk.internal.jshell.tool.ArgTokenizer java.lang.String jdk.internal.jshell.tool.JShellTool$Command[] java.lang.String java.lang.String
StackMap stack:
aload 6
ldc "_blank"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 16
14: aload 0
new java.lang.StringBuilder
dup
ldc "help.set."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual jdk.internal.jshell.tool.JShellTool.hardrb:(Ljava/lang/String;)V
15: iconst_1
ireturn
end local 6 end local 5 16: StackMap locals:
StackMap stack:
aload 4
arraylength
ifle 26
17: aload 4
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 24
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String jdk.internal.jshell.tool.ArgTokenizer java.lang.String jdk.internal.jshell.tool.JShellTool$Command[] top int int jdk.internal.jshell.tool.JShellTool$Command[]
StackMap stack:
18: aload 8
iload 6
aaload
astore 5
start local 5 19: aload 0
ldc ""
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.hard:(Ljava/lang/String;[Ljava/lang/Object;)V
20: aload 0
ldc "%s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 5
getfield jdk.internal.jshell.tool.JShellTool$Command.command:Ljava/lang/String;
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.hard:(Ljava/lang/String;[Ljava/lang/Object;)V
21: aload 0
ldc ""
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.hard:(Ljava/lang/String;[Ljava/lang/Object;)V
22: aload 0
aload 5
getfield jdk.internal.jshell.tool.JShellTool$Command.helpKey:Ljava/lang/String;
invokevirtual jdk.internal.jshell.tool.JShellTool.hardrb:(Ljava/lang/String;)V
end local 5 23: iinc 6 1
StackMap locals:
StackMap stack:
24: iload 6
iload 7
if_icmplt 18
25: iconst_1
ireturn
26: StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String jdk.internal.jshell.tool.ArgTokenizer java.lang.String jdk.internal.jshell.tool.JShellTool$Command[]
StackMap stack:
getstatic jdk.internal.jshell.tool.JShellTool.SET_SUBCOMMANDS:[Ljava/lang/String;
invokestatic java.util.Arrays.stream:([Ljava/lang/Object;)Ljava/util/stream/Stream;
27: aload 3
invokedynamic test(Ljava/lang/String;)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/internal/jshell/tool/JShellTool.lambda$82(Ljava/lang/String;Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
28: invokedynamic apply()Ljava/util/function/IntFunction;
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:
(I)Ljava/lang/Object;
jdk/internal/jshell/tool/JShellTool.lambda$79(I)[Ljava/lang/String; (6)
(I)[Ljava/lang/String;
invokeinterface java.util.stream.Stream.toArray:(Ljava/util/function/IntFunction;)[Ljava/lang/Object;
checkcast java.lang.String[]
29: astore 5
start local 5 30: aload 5
arraylength
ifle 38
31: aload 5
dup
astore 9
arraylength
istore 8
iconst_0
istore 7
goto 36
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String jdk.internal.jshell.tool.ArgTokenizer java.lang.String jdk.internal.jshell.tool.JShellTool$Command[] java.lang.String[] top int int java.lang.String[]
StackMap stack:
32: aload 9
iload 7
aaload
astore 6
start local 6 33: aload 0
new java.lang.StringBuilder
dup
ldc "help.set."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual jdk.internal.jshell.tool.JShellTool.hardrb:(Ljava/lang/String;)V
34: aload 0
ldc ""
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.hard:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 6 35: iinc 7 1
StackMap locals:
StackMap stack:
36: iload 7
iload 8
if_icmplt 32
37: iconst_1
ireturn
38: StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String jdk.internal.jshell.tool.ArgTokenizer java.lang.String jdk.internal.jshell.tool.JShellTool$Command[] java.lang.String[]
StackMap stack:
aload 0
ldc "jshell.err.help.arg"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 5 end local 4 39: StackMap locals:
StackMap stack:
aload 0
ldc "jshell.msg.help.begin"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.hardmsg:(Ljava/lang/String;[Ljava/lang/Object;)V
40: aload 0
aload 0
getfield jdk.internal.jshell.tool.JShellTool.commands:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.stream:()Ljava/util/stream/Stream;
41: 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/internal/jshell/tool/JShellTool.lambda$84(Ljdk/internal/jshell/tool/JShellTool$Command;)Z (6)
(Ljdk/internal/jshell/tool/JShellTool$Command;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
42: aload 0
invokedynamic apply(Ljdk/internal/jshell/tool/JShellTool;)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/JShellTool.lambda$85(Ljdk/internal/jshell/tool/JShellTool$Command;)Ljava/lang/String; (7)
(Ljdk/internal/jshell/tool/JShellTool$Command;)Ljava/lang/String;
43: aload 0
invokedynamic apply(Ljdk/internal/jshell/tool/JShellTool;)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/JShellTool.lambda$86(Ljdk/internal/jshell/tool/JShellTool$Command;)Ljava/lang/String; (7)
(Ljdk/internal/jshell/tool/JShellTool$Command;)Ljava/lang/String;
44: invokevirtual jdk.internal.jshell.tool.JShellTool.hardPairs:(Ljava/util/stream/Stream;Ljava/util/function/Function;Ljava/util/function/Function;)V
45: aload 0
ldc "jshell.msg.help.subject"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.hardmsg:(Ljava/lang/String;[Ljava/lang/Object;)V
46: aload 0
aload 0
getfield jdk.internal.jshell.tool.JShellTool.commands:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.stream:()Ljava/util/stream/Stream;
47: 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/internal/jshell/tool/JShellTool.lambda$87(Ljdk/internal/jshell/tool/JShellTool$Command;)Z (6)
(Ljdk/internal/jshell/tool/JShellTool$Command;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
48: 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/internal/jshell/tool/JShellTool.lambda$88(Ljdk/internal/jshell/tool/JShellTool$Command;)Ljava/lang/String; (6)
(Ljdk/internal/jshell/tool/JShellTool$Command;)Ljava/lang/String;
49: aload 0
invokedynamic apply(Ljdk/internal/jshell/tool/JShellTool;)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/JShellTool.lambda$89(Ljdk/internal/jshell/tool/JShellTool$Command;)Ljava/lang/String; (7)
(Ljdk/internal/jshell/tool/JShellTool$Command;)Ljava/lang/String;
50: invokevirtual jdk.internal.jshell.tool.JShellTool.hardPairs:(Ljava/util/stream/Stream;Ljava/util/function/Function;Ljava/util/function/Function;)V
51: iconst_1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 52 0 this Ljdk/internal/jshell/tool/JShellTool;
0 52 1 arg Ljava/lang/String;
1 52 2 at Ljdk/internal/jshell/tool/ArgTokenizer;
2 52 3 subject Ljava/lang/String;
7 39 4 matches [Ljdk/internal/jshell/tool/JShellTool$Command;
9 16 5 cmd Ljava/lang/String;
11 16 6 which Ljava/lang/String;
19 23 5 c Ljdk/internal/jshell/tool/JShellTool$Command;
30 39 5 subs [Ljava/lang/String;
33 35 6 sub Ljava/lang/String;
MethodParameters:
Name Flags
arg
private boolean cmdHistory();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=3, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.cmdout:Ljava/io/PrintStream;
invokevirtual java.io.PrintStream.println:()V
1: aload 0
getfield jdk.internal.jshell.tool.JShellTool.input:Ljdk/internal/jshell/tool/IOContext;
invokevirtual jdk.internal.jshell.tool.IOContext.currentSessionHistory:()Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 2
goto 4
StackMap locals: jdk.internal.jshell.tool.JShellTool top java.util.Iterator
StackMap stack:
2: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 1
start local 1 3: aload 0
getfield jdk.internal.jshell.tool.JShellTool.cmdout:Ljava/io/PrintStream;
ldc "%s\n"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual java.io.PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
end local 1 4: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/jshell/tool/JShellTool;
3 4 1 s Ljava/lang/String;
private static <T extends jdk.jshell.Snippet> java.util.stream.Stream<T> nonEmptyStream(java.util.function.Supplier<java.util.stream.Stream<T>>, jdk.internal.jshell.tool.JShellTool$SnippetPredicate<T>[]);
descriptor: (Ljava/util/function/Supplier;[Ljdk/internal/jshell/tool/JShellTool$SnippetPredicate;)Ljava/util/stream/Stream;
flags: (0x008a) ACC_PRIVATE, ACC_STATIC, ACC_VARARGS
Code:
stack=2, locals=7, args_size=2
start local 0 start local 1 0: aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 6
StackMap locals: java.util.function.Supplier jdk.internal.jshell.tool.JShellTool$SnippetPredicate[] top int int jdk.internal.jshell.tool.JShellTool$SnippetPredicate[]
StackMap stack:
1: aload 5
iload 3
aaload
astore 2
start local 2 2: aload 0
invokeinterface java.util.function.Supplier.get:()Ljava/lang/Object;
checkcast java.util.stream.Stream
aload 2
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
invokeinterface java.util.stream.Stream.iterator:()Ljava/util/Iterator;
astore 6
start local 6 3: aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 5
4: aload 6
iconst_0
invokestatic java.util.Spliterators.spliteratorUnknownSize:(Ljava/util/Iterator;I)Ljava/util/Spliterator;
iconst_0
invokestatic java.util.stream.StreamSupport.stream:(Ljava/util/Spliterator;Z)Ljava/util/stream/Stream;
areturn
end local 6 end local 2 5: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
iload 4
if_icmplt 1
7: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 supplier Ljava/util/function/Supplier<Ljava/util/stream/Stream<TT;>;>;
0 8 1 filters [Ljdk/internal/jshell/tool/JShellTool$SnippetPredicate;
2 5 2 filt Ljdk/internal/jshell/tool/JShellTool$SnippetPredicate<TT;>;
3 5 6 iterator Ljava/util/Iterator<TT;>;
Signature: <T:Ljdk/jshell/Snippet;>(Ljava/util/function/Supplier<Ljava/util/stream/Stream<TT;>;>;[Ljdk/internal/jshell/tool/JShellTool$SnippetPredicate<TT;>;)Ljava/util/stream/Stream<TT;>;
RuntimeVisibleAnnotations:
java.lang.SafeVarargs()
MethodParameters:
Name Flags
supplier
filters
private boolean inStartUp(jdk.jshell.Snippet);
descriptor: (Ljdk/jshell/Snippet;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.mapSnippet:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.internal.jshell.tool.JShellTool$SnippetInfo
getfield jdk.internal.jshell.tool.JShellTool$SnippetInfo.space:Ljdk/internal/jshell/tool/JShellTool$NameSpace;
aload 0
getfield jdk.internal.jshell.tool.JShellTool.startNamespace:Ljdk/internal/jshell/tool/JShellTool$NameSpace;
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jshell/tool/JShellTool;
0 2 1 sn Ljdk/jshell/Snippet;
MethodParameters:
Name Flags
sn
private boolean isActive(jdk.jshell.Snippet);
descriptor: (Ljdk/jshell/Snippet;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
aload 1
invokevirtual jdk.jshell.JShell.status:(Ljdk/jshell/Snippet;)Ljdk/jshell/Snippet$Status;
invokevirtual jdk.jshell.Snippet$Status.isActive:()Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
0 1 1 sn Ljdk/jshell/Snippet;
MethodParameters:
Name Flags
sn
private boolean mainActive(jdk.jshell.Snippet);
descriptor: (Ljdk/jshell/Snippet;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual jdk.internal.jshell.tool.JShellTool.inStartUp:(Ljdk/jshell/Snippet;)Z
ifne 1
aload 0
aload 1
invokevirtual jdk.internal.jshell.tool.JShellTool.isActive:(Ljdk/jshell/Snippet;)Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jshell/tool/JShellTool;
0 2 1 sn Ljdk/jshell/Snippet;
MethodParameters:
Name Flags
sn
private boolean matchingDeclaration(jdk.jshell.Snippet, java.lang.String);
descriptor: (Ljdk/jshell/Snippet;Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
instanceof jdk.jshell.DeclarationSnippet
ifeq 3
1: aload 1
checkcast jdk.jshell.DeclarationSnippet
invokevirtual jdk.jshell.DeclarationSnippet.name:()Ljava/lang/String;
aload 2
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 3
2: iconst_1
ireturn
StackMap locals:
StackMap stack:
3: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/jshell/tool/JShellTool;
0 4 1 sn Ljdk/jshell/Snippet;
0 4 2 name Ljava/lang/String;
MethodParameters:
Name Flags
sn
name
private <T extends jdk.jshell.Snippet> java.util.stream.Stream<T> argsOptionsToSnippets(java.util.function.Supplier<java.util.stream.Stream<T>>, java.util.function.Predicate<jdk.jshell.Snippet>, java.lang.String, java.lang.String);
descriptor: (Ljava/util/function/Supplier;Ljava/util/function/Predicate;Ljava/lang/String;Ljava/lang/String;)Ljava/util/stream/Stream;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: new jdk.internal.jshell.tool.ArgTokenizer
dup
aload 4
aload 3
invokevirtual java.lang.String.trim:()Ljava/lang/String;
invokespecial jdk.internal.jshell.tool.ArgTokenizer.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 5
start local 5 1: aload 5
iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "-all"
aastore
dup
iconst_1
ldc "-start"
aastore
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.allowedOptions:([Ljava/lang/String;)V
2: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 6
start local 6 3: goto 5
start local 7 4: StackMap locals: jdk.internal.jshell.tool.ArgTokenizer java.util.List java.lang.String
StackMap stack:
aload 6
aload 7
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 7 5: StackMap locals:
StackMap stack:
aload 5
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.next:()Ljava/lang/String;
dup
astore 7
start local 7 6: ifnonnull 4
7: aload 0
aload 5
invokevirtual jdk.internal.jshell.tool.JShellTool.checkOptionsAndRemainingInput:(Ljdk/internal/jshell/tool/ArgTokenizer;)Z
ifne 9
8: aconst_null
areturn
9: StackMap locals: java.lang.String
StackMap stack:
aload 5
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.optionCount:()I
ifle 12
aload 6
invokeinterface java.util.List.size:()I
ifle 12
10: aload 0
ldc "jshell.err.may.not.specify.options.and.snippets"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 5
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.whole:()Ljava/lang/String;
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
11: aconst_null
areturn
12: StackMap locals:
StackMap stack:
aload 5
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.optionCount:()I
iconst_1
if_icmple 15
13: aload 0
ldc "jshell.err.conflicting.options"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 5
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.whole:()Ljava/lang/String;
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
14: aconst_null
areturn
15: StackMap locals:
StackMap stack:
aload 5
ldc "-all"
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.hasOption:(Ljava/lang/String;)Z
ifeq 17
16: aload 1
invokeinterface java.util.function.Supplier.get:()Ljava/lang/Object;
checkcast java.util.stream.Stream
areturn
17: StackMap locals:
StackMap stack:
aload 5
ldc "-start"
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.hasOption:(Ljava/lang/String;)Z
ifeq 21
18: aload 1
invokeinterface java.util.function.Supplier.get:()Ljava/lang/Object;
checkcast java.util.stream.Stream
19: aload 0
invokedynamic test(Ljdk/internal/jshell/tool/JShellTool;)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/internal/jshell/tool/JShellTool.inStartUp(Ljdk/jshell/Snippet;)Z (7)
(Ljdk/jshell/Snippet;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
20: areturn
21: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.List.isEmpty:()Z
ifeq 25
22: aload 1
invokeinterface java.util.function.Supplier.get:()Ljava/lang/Object;
checkcast java.util.stream.Stream
23: aload 2
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
24: areturn
25: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 6
invokevirtual jdk.internal.jshell.tool.JShellTool.argsToSnippets:(Ljava/util/function/Supplier;Ljava/util/List;)Ljava/util/stream/Stream;
areturn
end local 7 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 26 0 this Ljdk/internal/jshell/tool/JShellTool;
0 26 1 snippetSupplier Ljava/util/function/Supplier<Ljava/util/stream/Stream<TT;>;>;
0 26 2 defFilter Ljava/util/function/Predicate<Ljdk/jshell/Snippet;>;
0 26 3 rawargs Ljava/lang/String;
0 26 4 cmd Ljava/lang/String;
1 26 5 at Ljdk/internal/jshell/tool/ArgTokenizer;
3 26 6 args Ljava/util/List<Ljava/lang/String;>;
4 5 7 s Ljava/lang/String;
6 26 7 s Ljava/lang/String;
Signature: <T:Ljdk/jshell/Snippet;>(Ljava/util/function/Supplier<Ljava/util/stream/Stream<TT;>;>;Ljava/util/function/Predicate<Ljdk/jshell/Snippet;>;Ljava/lang/String;Ljava/lang/String;)Ljava/util/stream/Stream<TT;>;
MethodParameters:
Name Flags
snippetSupplier
defFilter
rawargs
cmd
private <T extends jdk.jshell.Snippet> java.util.stream.Stream<T> argsToSnippets(java.util.function.Supplier<java.util.stream.Stream<T>>, java.util.List<java.lang.String>);
descriptor: (Ljava/util/function/Supplier;Ljava/util/List;)Ljava/util/stream/Stream;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 17
StackMap locals: jdk.internal.jshell.tool.JShellTool java.util.function.Supplier java.util.List java.util.stream.Stream top java.util.Iterator
StackMap stack:
2: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 3: aload 0
aload 1
aload 4
invokevirtual jdk.internal.jshell.tool.JShellTool.layeredSnippetSearch:(Ljava/util/function/Supplier;Ljava/lang/String;)Ljava/util/stream/Stream;
astore 6
start local 6 4: aload 6
ifnonnull 13
5: aload 0
aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic get(Ljdk/jshell/JShell;)Ljava/util/function/Supplier;
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;
jdk/jshell/JShell.snippets()Ljava/util/stream/Stream; (5)
()Ljava/util/stream/Stream;
aload 4
invokevirtual jdk.internal.jshell.tool.JShellTool.layeredSnippetSearch:(Ljava/util/function/Supplier;Ljava/lang/String;)Ljava/util/stream/Stream;
astore 7
start local 7 6: aload 7
ifnonnull 9
7: aload 0
ldc "jshell.err.no.such.snippets"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 4
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
8: goto 12
9: StackMap locals: jdk.internal.jshell.tool.JShellTool java.util.function.Supplier java.util.List java.util.stream.Stream java.lang.String java.util.Iterator java.util.stream.Stream java.util.stream.Stream
StackMap stack:
aload 0
ldc "jshell.err.the.snippet.cannot.be.used.with.this.command"
iconst_2
anewarray java.lang.Object
dup
iconst_0
10: aload 4
aastore
dup
iconst_1
aload 7
invokeinterface java.util.stream.Stream.findFirst:()Ljava/util/Optional;
invokevirtual java.util.Optional.get:()Ljava/lang/Object;
checkcast jdk.jshell.Snippet
invokevirtual jdk.jshell.Snippet.source:()Ljava/lang/String;
aastore
11: invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
12: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 7 13: StackMap locals:
StackMap stack:
aload 3
ifnonnull 16
14: aload 6
astore 3
15: goto 17
16: StackMap locals:
StackMap stack:
aload 3
aload 6
invokestatic java.util.stream.Stream.concat:(Ljava/util/stream/Stream;Ljava/util/stream/Stream;)Ljava/util/stream/Stream;
astore 3
end local 6 end local 4 17: StackMap locals: jdk.internal.jshell.tool.JShellTool java.util.function.Supplier java.util.List java.util.stream.Stream top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
18: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Ljdk/internal/jshell/tool/JShellTool;
0 19 1 snippetSupplier Ljava/util/function/Supplier<Ljava/util/stream/Stream<TT;>;>;
0 19 2 args Ljava/util/List<Ljava/lang/String;>;
1 19 3 result Ljava/util/stream/Stream<TT;>;
3 17 4 arg Ljava/lang/String;
4 17 6 st Ljava/util/stream/Stream<TT;>;
6 13 7 est Ljava/util/stream/Stream<Ljdk/jshell/Snippet;>;
Signature: <T:Ljdk/jshell/Snippet;>(Ljava/util/function/Supplier<Ljava/util/stream/Stream<TT;>;>;Ljava/util/List<Ljava/lang/String;>;)Ljava/util/stream/Stream<TT;>;
MethodParameters:
Name Flags
snippetSupplier
args
private <T extends jdk.jshell.Snippet> java.util.stream.Stream<T> layeredSnippetSearch(java.util.function.Supplier<java.util.stream.Stream<T>>, java.lang.String);
descriptor: (Ljava/util/function/Supplier;Ljava/lang/String;)Ljava/util/stream/Stream;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
iconst_3
anewarray jdk.internal.jshell.tool.JShellTool$SnippetPredicate
dup
iconst_0
1: aload 0
aload 2
invokedynamic test(Ljdk/internal/jshell/tool/JShellTool;Ljava/lang/String;)Ljdk/internal/jshell/tool/JShellTool$SnippetPredicate;
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/internal/jshell/tool/JShellTool.lambda$92(Ljava/lang/String;Ljdk/jshell/Snippet;)Z (7)
(Ljdk/jshell/Snippet;)Z
aastore
dup
iconst_1
2: aload 0
aload 2
invokedynamic test(Ljdk/internal/jshell/tool/JShellTool;Ljava/lang/String;)Ljdk/internal/jshell/tool/JShellTool$SnippetPredicate;
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/internal/jshell/tool/JShellTool.lambda$93(Ljava/lang/String;Ljdk/jshell/Snippet;)Z (7)
(Ljdk/jshell/Snippet;)Z
aastore
dup
iconst_2
3: aload 2
invokedynamic test(Ljava/lang/String;)Ljdk/internal/jshell/tool/JShellTool$SnippetPredicate;
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/internal/jshell/tool/JShellTool.lambda$94(Ljava/lang/String;Ljdk/jshell/Snippet;)Z (6)
(Ljdk/jshell/Snippet;)Z
aastore
4: invokestatic jdk.internal.jshell.tool.JShellTool.nonEmptyStream:(Ljava/util/function/Supplier;[Ljdk/internal/jshell/tool/JShellTool$SnippetPredicate;)Ljava/util/stream/Stream;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/jshell/tool/JShellTool;
0 5 1 snippetSupplier Ljava/util/function/Supplier<Ljava/util/stream/Stream<TT;>;>;
0 5 2 arg Ljava/lang/String;
Signature: <T:Ljdk/jshell/Snippet;>(Ljava/util/function/Supplier<Ljava/util/stream/Stream<TT;>;>;Ljava/lang/String;)Ljava/util/stream/Stream<TT;>;
MethodParameters:
Name Flags
snippetSupplier
arg
private boolean cmdDrop(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=8, args_size=2
start local 0 start local 1 0: new jdk.internal.jshell.tool.ArgTokenizer
dup
ldc "/drop"
aload 1
invokevirtual java.lang.String.trim:()Ljava/lang/String;
invokespecial jdk.internal.jshell.tool.ArgTokenizer.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 2
start local 2 1: aload 2
iconst_0
anewarray java.lang.String
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.allowedOptions:([Ljava/lang/String;)V
2: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 3
start local 3 3: goto 5
start local 4 4: StackMap locals: jdk.internal.jshell.tool.ArgTokenizer java.util.List java.lang.String
StackMap stack:
aload 3
aload 4
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 5: StackMap locals:
StackMap stack:
aload 2
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.next:()Ljava/lang/String;
dup
astore 4
start local 4 6: ifnonnull 4
7: aload 0
aload 2
invokevirtual jdk.internal.jshell.tool.JShellTool.checkOptionsAndRemainingInput:(Ljdk/internal/jshell/tool/ArgTokenizer;)Z
ifne 9
8: iconst_0
ireturn
9: StackMap locals: java.lang.String
StackMap stack:
aload 3
invokeinterface java.util.List.isEmpty:()Z
ifeq 12
10: aload 0
ldc "jshell.err.drop.arg"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
11: iconst_0
ireturn
12: StackMap locals:
StackMap stack:
aload 0
aload 0
invokedynamic get(Ljdk/internal/jshell/tool/JShellTool;)Ljava/util/function/Supplier;
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;
jdk/internal/jshell/tool/JShellTool.dropableSnippets()Ljava/util/stream/Stream; (5)
()Ljava/util/stream/Stream;
aload 3
invokevirtual jdk.internal.jshell.tool.JShellTool.argsToSnippets:(Ljava/util/function/Supplier;Ljava/util/List;)Ljava/util/stream/Stream;
astore 5
start local 5 13: aload 5
ifnonnull 16
14: aload 0
ldc "jshell.msg.see.classes.etc"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.fluffmsg:(Ljava/lang/String;[Ljava/lang/Object;)V
15: iconst_0
ireturn
16: StackMap locals: java.util.stream.Stream
StackMap stack:
aload 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
astore 7
start local 7 17: aload 7
invokeinterface java.util.List.size:()I
aload 3
invokeinterface java.util.List.size:()I
if_icmple 24
18: aload 0
ldc "jshell.err.drop.ambiguous"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
19: aload 0
ldc "jshell.msg.use.one.of"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 7
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
20: 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/internal/jshell/tool/JShellTool.lambda$96(Ljdk/jshell/Snippet;)Ljava/lang/String; (6)
(Ljdk/jshell/Snippet;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
21: ldc ", "
invokestatic java.util.stream.Collectors.joining:(Ljava/lang/CharSequence;)Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
aastore
22: invokevirtual jdk.internal.jshell.tool.JShellTool.fluffmsg:(Ljava/lang/String;[Ljava/lang/Object;)V
23: iconst_0
ireturn
24: StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String jdk.internal.jshell.tool.ArgTokenizer java.util.List java.lang.String java.util.stream.Stream top java.util.List
StackMap stack:
aload 7
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
25: aload 0
invokedynamic accept(Ljdk/internal/jshell/tool/JShellTool;)Ljava/util/function/Consumer;
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;)V
jdk/internal/jshell/tool/JShellTool.lambda$97(Ljdk/jshell/Snippet;)V (7)
(Ljdk/jshell/Snippet;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
26: iconst_1
ireturn
end local 7 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 27 0 this Ljdk/internal/jshell/tool/JShellTool;
0 27 1 rawargs Ljava/lang/String;
1 27 2 at Ljdk/internal/jshell/tool/ArgTokenizer;
3 27 3 args Ljava/util/List<Ljava/lang/String;>;
4 5 4 s Ljava/lang/String;
6 27 4 s Ljava/lang/String;
13 27 5 stream Ljava/util/stream/Stream<Ljdk/jshell/Snippet;>;
17 27 7 snippets Ljava/util/List<Ljdk/jshell/Snippet;>;
MethodParameters:
Name Flags
rawargs
private boolean cmdEdit(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=12, args_size=2
start local 0 start local 1 0: aload 0
aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic get(Ljdk/jshell/JShell;)Ljava/util/function/Supplier;
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;
jdk/jshell/JShell.snippets()Ljava/util/stream/Stream; (5)
()Ljava/util/stream/Stream;
1: aload 0
invokedynamic test(Ljdk/internal/jshell/tool/JShellTool;)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/internal/jshell/tool/JShellTool.mainActive(Ljdk/jshell/Snippet;)Z (7)
(Ljdk/jshell/Snippet;)Z
aload 1
ldc "/edit"
2: invokevirtual jdk.internal.jshell.tool.JShellTool.argsOptionsToSnippets:(Ljava/util/function/Supplier;Ljava/util/function/Predicate;Ljava/lang/String;Ljava/lang/String;)Ljava/util/stream/Stream;
astore 2
start local 2 3: aload 2
ifnonnull 5
4: iconst_0
ireturn
5: StackMap locals: java.util.stream.Stream
StackMap stack:
new java.util.LinkedHashSet
dup
invokespecial java.util.LinkedHashSet.<init>:()V
astore 5
start local 5 6: aload 2
aload 0
aload 5
invokedynamic accept(Ljdk/internal/jshell/tool/JShellTool;Ljava/util/Set;)Ljava/util/function/Consumer;
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;)V
jdk/internal/jshell/tool/JShellTool.lambda$101(Ljava/util/Set;Ljdk/jshell/Snippet;)V (7)
(Ljdk/jshell/Snippet;)V
invokeinterface java.util.stream.Stream.forEachOrdered:(Ljava/util/function/Consumer;)V
7: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 6
start local 6 8: aload 5
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 8
goto 12
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String java.util.stream.Stream top top java.util.Set java.lang.StringBuilder top java.util.Iterator
StackMap stack:
9: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 7
start local 7 10: aload 6
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
11: aload 6
bipush 10
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
end local 7 12: StackMap locals:
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
13: aload 6
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 7
start local 7 14: new jdk.internal.jshell.tool.JShellTool$SaveHandler
dup
aload 0
aload 7
aload 5
invokespecial jdk.internal.jshell.tool.JShellTool$SaveHandler.<init>:(Ljdk/internal/jshell/tool/JShellTool;Ljava/lang/String;Ljava/util/Set;)V
astore 8
start local 8 15: aload 0
invokedynamic accept(Ljdk/internal/jshell/tool/JShellTool;)Ljava/util/function/Consumer;
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;)V
jdk/internal/jshell/tool/JShellTool.lambda$102(Ljava/lang/String;)V (7)
(Ljava/lang/String;)V
astore 9
start local 9 16: aload 0
getfield jdk.internal.jshell.tool.JShellTool.editor:Ljdk/internal/jshell/tool/JShellTool$EditorSetting;
getstatic jdk.internal.jshell.tool.JShellTool.BUILT_IN_EDITOR:Ljdk/internal/jshell/tool/JShellTool$EditorSetting;
if_acmpne 18
17: aload 0
aload 7
aload 8
aload 9
invokevirtual jdk.internal.jshell.tool.JShellTool.builtInEdit:(Ljava/lang/String;Ljava/util/function/Consumer;Ljava/util/function/Consumer;)Z
ireturn
18: StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String java.util.stream.Stream top top java.util.Set java.lang.StringBuilder java.lang.String java.util.function.Consumer java.util.function.Consumer
StackMap stack:
iconst_1
anewarray java.lang.String
astore 10
start local 10 19: aload 0
aload 10
aload 8
invokedynamic accept(Ljdk/internal/jshell/tool/JShellTool;[Ljava/lang/String;Ljava/util/function/Consumer;)Ljava/util/function/Consumer;
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;)V
jdk/internal/jshell/tool/JShellTool.lambda$103([Ljava/lang/String;Ljava/util/function/Consumer;Ljava/lang/String;)V (7)
(Ljava/lang/String;)V
astore 11
start local 11 20: aload 0
getfield jdk.internal.jshell.tool.JShellTool.editor:Ljdk/internal/jshell/tool/JShellTool$EditorSetting;
getfield jdk.internal.jshell.tool.JShellTool$EditorSetting.cmd:[Ljava/lang/String;
aload 7
21: aload 9
aload 11
22: aload 0
invokedynamic run(Ljdk/internal/jshell/tool/JShellTool;)Ljava/lang/Runnable;
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:
()V
jdk/internal/jshell/tool/JShellTool.lambda$104()V (7)
()V
23: aload 0
invokedynamic run(Ljdk/internal/jshell/tool/JShellTool;)Ljava/lang/Runnable;
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:
()V
jdk/internal/jshell/tool/JShellTool.lambda$105()V (7)
()V
24: aload 0
getfield jdk.internal.jshell.tool.JShellTool.editor:Ljdk/internal/jshell/tool/JShellTool$EditorSetting;
getfield jdk.internal.jshell.tool.JShellTool$EditorSetting.wait:Z
25: aload 0
invokedynamic run(Ljdk/internal/jshell/tool/JShellTool;)Ljava/lang/Runnable;
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:
()V
jdk/internal/jshell/tool/JShellTool.lambda$106()V (7)
()V
26: invokestatic jdk.internal.editor.external.ExternalEditor.edit:([Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Consumer;Ljava/util/function/Consumer;Ljava/lang/Runnable;Ljava/lang/Runnable;ZLjava/lang/Runnable;)V
27: aload 10
iconst_0
aaload
ifnull 29
28: aload 8
aload 10
iconst_0
aaload
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
end local 11 end local 10 29: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 9 end local 8 end local 7 end local 6 end local 5 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Ljdk/internal/jshell/tool/JShellTool;
0 30 1 arg Ljava/lang/String;
3 30 2 stream Ljava/util/stream/Stream<Ljdk/jshell/Snippet;>;
6 30 5 srcSet Ljava/util/Set<Ljava/lang/String;>;
8 30 6 sb Ljava/lang/StringBuilder;
10 12 7 s Ljava/lang/String;
14 30 7 src Ljava/lang/String;
15 30 8 saveHandler Ljava/util/function/Consumer<Ljava/lang/String;>;
16 30 9 errorHandler Ljava/util/function/Consumer<Ljava/lang/String;>;
19 29 10 buffer [Ljava/lang/String;
20 29 11 extSaveHandler Ljava/util/function/Consumer<Ljava/lang/String;>;
MethodParameters:
Name Flags
arg
private boolean builtInEdit(java.lang.String, java.util.function.Consumer<java.lang.String>, java.util.function.Consumer<java.lang.String>);
descriptor: (Ljava/lang/String;Ljava/util/function/Consumer;Ljava/util/function/Consumer;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: ldc Ljdk/internal/editor/spi/BuildInEditorProvider;
invokestatic java.util.ServiceLoader.load:(Ljava/lang/Class;)Ljava/util/ServiceLoader;
1: astore 4
start local 4 2: aconst_null
astore 5
start local 5 3: aload 4
invokevirtual java.util.ServiceLoader.iterator:()Ljava/util/Iterator;
astore 7
goto 7
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String java.util.function.Consumer java.util.function.Consumer java.util.ServiceLoader jdk.internal.editor.spi.BuildInEditorProvider top java.util.Iterator
StackMap stack:
4: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.internal.editor.spi.BuildInEditorProvider
astore 6
start local 6 5: aload 5
ifnull 6
aload 6
invokeinterface jdk.internal.editor.spi.BuildInEditorProvider.rank:()I
aload 5
invokeinterface jdk.internal.editor.spi.BuildInEditorProvider.rank:()I
if_icmple 7
6: StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String java.util.function.Consumer java.util.function.Consumer java.util.ServiceLoader jdk.internal.editor.spi.BuildInEditorProvider jdk.internal.editor.spi.BuildInEditorProvider java.util.Iterator
StackMap stack:
aload 6
astore 5
end local 6 7: StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String java.util.function.Consumer java.util.function.Consumer java.util.ServiceLoader jdk.internal.editor.spi.BuildInEditorProvider top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
8: aload 5
ifnull 13
9: aload 5
aload 0
ldc "jshell.label.editpad"
invokevirtual jdk.internal.jshell.tool.JShellTool.getResourceString:(Ljava/lang/String;)Ljava/lang/String;
10: aload 1
aload 2
aload 3
11: invokeinterface jdk.internal.editor.spi.BuildInEditorProvider.edit:(Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Consumer;Ljava/util/function/Consumer;)V
12: iconst_1
ireturn
13: StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String java.util.function.Consumer java.util.function.Consumer java.util.ServiceLoader jdk.internal.editor.spi.BuildInEditorProvider
StackMap stack:
aload 0
ldc "jshell.err.no.builtin.editor"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 5 end local 4 14: goto 17
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String java.util.function.Consumer java.util.function.Consumer
StackMap stack: java.lang.RuntimeException
15: astore 4
start local 4 16: aload 0
ldc "jshell.err.cant.launch.editor"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 4
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 4 17: StackMap locals:
StackMap stack:
aload 0
ldc "jshell.msg.try.set.editor"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.fluffmsg:(Ljava/lang/String;[Ljava/lang/Object;)V
18: iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Ljdk/internal/jshell/tool/JShellTool;
0 19 1 initialText Ljava/lang/String;
0 19 2 saveHandler Ljava/util/function/Consumer<Ljava/lang/String;>;
0 19 3 errorHandler Ljava/util/function/Consumer<Ljava/lang/String;>;
2 14 4 sl Ljava/util/ServiceLoader<Ljdk/internal/editor/spi/BuildInEditorProvider;>;
3 14 5 provider Ljdk/internal/editor/spi/BuildInEditorProvider;
5 7 6 p Ljdk/internal/editor/spi/BuildInEditorProvider;
16 17 4 ex Ljava/lang/RuntimeException;
Exception table:
from to target type
0 12 15 Class java.lang.RuntimeException
13 14 15 Class java.lang.RuntimeException
Signature: (Ljava/lang/String;Ljava/util/function/Consumer<Ljava/lang/String;>;Ljava/util/function/Consumer<Ljava/lang/String;>;)Z
MethodParameters:
Name Flags
initialText
saveHandler
errorHandler
private boolean cmdList(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.String.length:()I
iconst_2
if_icmplt 2
ldc "-history"
aload 1
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 2
1: aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool.cmdHistory:()Z
ireturn
2: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic get(Ljdk/jshell/JShell;)Ljava/util/function/Supplier;
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;
jdk/jshell/JShell.snippets()Ljava/util/stream/Stream; (5)
()Ljava/util/stream/Stream;
3: aload 0
invokedynamic test(Ljdk/internal/jshell/tool/JShellTool;)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/internal/jshell/tool/JShellTool.mainActive(Ljdk/jshell/Snippet;)Z (7)
(Ljdk/jshell/Snippet;)Z
aload 1
ldc "/list"
4: invokevirtual jdk.internal.jshell.tool.JShellTool.argsOptionsToSnippets:(Ljava/util/function/Supplier;Ljava/util/function/Predicate;Ljava/lang/String;Ljava/lang/String;)Ljava/util/stream/Stream;
astore 2
start local 2 5: aload 2
ifnonnull 7
6: iconst_0
ireturn
7: StackMap locals: java.util.stream.Stream
StackMap stack:
iconst_1
newarray 4
astore 5
start local 5 8: aload 2
aload 0
aload 5
invokedynamic accept(Ljdk/internal/jshell/tool/JShellTool;[Z)Ljava/util/function/Consumer;
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;)V
jdk/internal/jshell/tool/JShellTool.lambda$109([ZLjdk/jshell/Snippet;)V (7)
(Ljdk/jshell/Snippet;)V
invokeinterface java.util.stream.Stream.forEachOrdered:(Ljava/util/function/Consumer;)V
9: iconst_1
ireturn
end local 5 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/internal/jshell/tool/JShellTool;
0 10 1 arg Ljava/lang/String;
5 10 2 stream Ljava/util/stream/Stream<Ljdk/jshell/Snippet;>;
8 10 5 hasOutput [Z
MethodParameters:
Name Flags
arg
private boolean cmdOpen(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
ldc "/open"
invokevirtual jdk.internal.jshell.tool.JShellTool.runFile:(Ljava/lang/String;Ljava/lang/String;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
0 1 1 filename Ljava/lang/String;
MethodParameters:
Name Flags
filename
private boolean runFile(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual java.lang.String.isEmpty:()Z
ifne 15
1: aload 1
invokestatic jdk.internal.jshell.tool.JShellTool.toPathResolvingUserHome:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 3
start local 3 2: aload 3
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifne 6
aload 1
invokestatic jdk.internal.jshell.tool.JShellTool.getResource:(Ljava/lang/String;)Ljava/lang/String;
dup
astore 5
start local 5 3: ifnull 6
4: new java.io.StringReader
dup
aload 5
invokespecial java.io.StringReader.<init>:(Ljava/lang/String;)V
astore 4
start local 4 5: goto 7
end local 5 end local 4 6: StackMap locals: java.nio.file.Path
StackMap stack:
new java.io.FileReader
dup
aload 3
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
invokespecial java.io.FileReader.<init>:(Ljava/lang/String;)V
astore 4
start local 4 7: StackMap locals: java.io.Reader
StackMap stack:
aload 0
new jdk.internal.jshell.tool.ScannerIOContext
dup
aload 4
invokespecial jdk.internal.jshell.tool.ScannerIOContext.<init>:(Ljava/io/Reader;)V
invokevirtual jdk.internal.jshell.tool.JShellTool.run:(Ljdk/internal/jshell/tool/IOContext;)V
8: iconst_1
ireturn
end local 4 end local 3 9: StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String java.lang.String
StackMap stack: java.io.FileNotFoundException
astore 3
start local 3 10: aload 0
ldc "jshell.err.file.not.found"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 1
aastore
dup
iconst_2
aload 3
invokevirtual java.io.FileNotFoundException.getMessage:()Ljava/lang/String;
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 3 11: goto 16
12: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 13: aload 0
ldc "jshell.err.file.exception"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 1
aastore
dup
iconst_2
aload 3
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 3 14: goto 16
15: StackMap locals:
StackMap stack:
aload 0
ldc "jshell.err.file.filename"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
16: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljdk/internal/jshell/tool/JShellTool;
0 17 1 filename Ljava/lang/String;
0 17 2 context Ljava/lang/String;
2 9 3 path Ljava/nio/file/Path;
5 6 4 reader Ljava/io/Reader;
7 9 4 reader Ljava/io/Reader;
3 6 5 resource Ljava/lang/String;
10 11 3 e Ljava/io/FileNotFoundException;
13 14 3 e Ljava/lang/Exception;
Exception table:
from to target type
1 8 9 Class java.io.FileNotFoundException
1 8 12 Class java.lang.Exception
MethodParameters:
Name Flags
filename
context
static java.lang.String getResource(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic jdk.internal.jshell.tool.JShellTool.BUILTIN_FILE_PATTERN:Ljava/util/regex/Pattern;
aload 0
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
invokevirtual java.util.regex.Matcher.matches:()Z
ifeq 4
1: aload 0
invokestatic jdk.internal.jshell.tool.JShellTool.readResource:(Ljava/lang/String;)Ljava/lang/String;
2: areturn
3: StackMap locals:
StackMap stack: java.lang.Throwable
pop
4: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 name Ljava/lang/String;
Exception table:
from to target type
1 2 3 Class java.lang.Throwable
MethodParameters:
Name Flags
name
static java.lang.String readResource(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=6, args_size=1
start local 0 0: ldc "/jdk/jshell/tool/resources/%s.jsh"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 1
start local 1 1: aconst_null
astore 2
aconst_null
astore 3
2: ldc Ljdk/internal/jshell/tool/JShellTool;
aload 1
invokevirtual java.lang.Class.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
astore 4
start local 4 3: new java.io.BufferedReader
dup
new java.io.InputStreamReader
dup
aload 4
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 5
start local 5 4: aload 5
invokevirtual java.io.BufferedReader.lines:()Ljava/util/stream/Stream;
ldc "\n"
ldc ""
ldc "\n"
invokestatic java.util.stream.Collectors.joining:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.lang.String
5: aload 5
ifnull 6
aload 5
invokevirtual java.io.BufferedReader.close:()V
StackMap locals: java.lang.String java.lang.String java.lang.Throwable java.lang.Throwable java.io.InputStream java.io.BufferedReader
StackMap stack: java.lang.String
6: aload 4
ifnull 7
aload 4
invokevirtual java.io.InputStream.close:()V
7: StackMap locals:
StackMap stack: java.lang.String
areturn
StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 2
9: aload 5
ifnull 10
aload 5
invokevirtual java.io.BufferedReader.close:()V
end local 5 StackMap locals:
StackMap stack:
10: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
11: astore 3
aload 2
ifnonnull 12
aload 3
astore 2
goto 13
StackMap locals:
StackMap stack:
12: aload 2
aload 3
if_acmpeq 13
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
13: aload 4
ifnull 14
aload 4
invokevirtual java.io.InputStream.close:()V
end local 4 StackMap locals:
StackMap stack:
14: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
15: astore 3
aload 2
ifnonnull 16
aload 3
astore 2
goto 17
StackMap locals:
StackMap stack:
16: aload 2
aload 3
if_acmpeq 17
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
17: aload 2
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 name Ljava/lang/String;
1 18 1 spec Ljava/lang/String;
3 14 4 in Ljava/io/InputStream;
4 10 5 reader Ljava/io/BufferedReader;
Exception table:
from to target type
4 5 8 any
3 6 11 any
8 11 11 any
2 7 15 any
8 15 15 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
name
private boolean cmdReset(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.String.trim:()Ljava/lang/String;
invokevirtual java.lang.String.isEmpty:()Z
ifeq 1
aconst_null
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield jdk.internal.jshell.tool.JShellTool.options:Ljdk/internal/jshell/tool/JShellTool$Options;
StackMap locals:
StackMap stack: jdk.internal.jshell.tool.JShellTool$Options
2: astore 2
start local 2 3: aload 0
aload 1
new jdk.internal.jshell.tool.JShellTool$OptionParserBase
dup
aload 0
invokespecial jdk.internal.jshell.tool.JShellTool$OptionParserBase.<init>:(Ljdk/internal/jshell/tool/JShellTool;)V
invokevirtual jdk.internal.jshell.tool.JShellTool.parseCommandLineLikeFlags:(Ljava/lang/String;Ljdk/internal/jshell/tool/JShellTool$OptionParserBase;)Z
ifne 5
4: iconst_0
ireturn
5: StackMap locals: jdk.internal.jshell.tool.JShellTool$Options
StackMap stack:
aload 0
iconst_0
putfield jdk.internal.jshell.tool.JShellTool.live:Z
6: aload 0
ldc "jshell.msg.resetting.state"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.fluffmsg:(Ljava/lang/String;[Ljava/lang/Object;)V
7: aload 0
aconst_null
iconst_0
aload 2
invokevirtual jdk.internal.jshell.tool.JShellTool.doReload:(Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;ZLjdk/internal/jshell/tool/JShellTool$Options;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/internal/jshell/tool/JShellTool;
0 8 1 rawargs Ljava/lang/String;
3 8 2 oldOptions Ljdk/internal/jshell/tool/JShellTool$Options;
MethodParameters:
Name Flags
rawargs
private boolean cmdReload(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.String.trim:()Ljava/lang/String;
invokevirtual java.lang.String.isEmpty:()Z
ifeq 1
aconst_null
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield jdk.internal.jshell.tool.JShellTool.options:Ljdk/internal/jshell/tool/JShellTool$Options;
StackMap locals:
StackMap stack: jdk.internal.jshell.tool.JShellTool$Options
2: astore 2
start local 2 3: new jdk.internal.jshell.tool.JShellTool$OptionParserReload
dup
aload 0
invokespecial jdk.internal.jshell.tool.JShellTool$OptionParserReload.<init>:(Ljdk/internal/jshell/tool/JShellTool;)V
astore 3
start local 3 4: aload 0
aload 1
aload 3
invokevirtual jdk.internal.jshell.tool.JShellTool.parseCommandLineLikeFlags:(Ljava/lang/String;Ljdk/internal/jshell/tool/JShellTool$OptionParserBase;)Z
ifne 6
5: iconst_0
ireturn
6: StackMap locals: jdk.internal.jshell.tool.JShellTool$Options jdk.internal.jshell.tool.JShellTool$OptionParserReload
StackMap stack:
aload 3
invokevirtual jdk.internal.jshell.tool.JShellTool$OptionParserReload.restore:()Z
ifeq 13
7: aload 0
getfield jdk.internal.jshell.tool.JShellTool.replayableHistoryPrevious:Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;
ifnonnull 10
8: aload 0
ldc "jshell.err.reload.no.previous"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
9: iconst_0
ireturn
10: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.JShellTool.replayableHistoryPrevious:Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;
astore 4
start local 4 11: aload 0
ldc "jshell.err.reload.restarting.previous.state"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.fluffmsg:(Ljava/lang/String;[Ljava/lang/Object;)V
12: goto 15
end local 4 13: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.JShellTool.replayableHistory:Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;
astore 4
start local 4 14: aload 0
ldc "jshell.err.reload.restarting.state"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.fluffmsg:(Ljava/lang/String;[Ljava/lang/Object;)V
15: StackMap locals: jdk.internal.jshell.tool.JShellTool$ReplayableHistory
StackMap stack:
aload 0
aload 4
aload 3
invokevirtual jdk.internal.jshell.tool.JShellTool$OptionParserReload.quiet:()Z
ifeq 16
iconst_0
goto 17
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String jdk.internal.jshell.tool.JShellTool$Options jdk.internal.jshell.tool.JShellTool$OptionParserReload jdk.internal.jshell.tool.JShellTool$ReplayableHistory
StackMap stack: jdk.internal.jshell.tool.JShellTool jdk.internal.jshell.tool.JShellTool$ReplayableHistory
16: iconst_1
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String jdk.internal.jshell.tool.JShellTool$Options jdk.internal.jshell.tool.JShellTool$OptionParserReload jdk.internal.jshell.tool.JShellTool$ReplayableHistory
StackMap stack: jdk.internal.jshell.tool.JShellTool jdk.internal.jshell.tool.JShellTool$ReplayableHistory int
17: aload 2
invokevirtual jdk.internal.jshell.tool.JShellTool.doReload:(Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;ZLjdk/internal/jshell/tool/JShellTool$Options;)Z
istore 5
start local 5 18: iload 5
ifeq 20
aload 3
invokevirtual jdk.internal.jshell.tool.JShellTool$OptionParserReload.restore:()Z
ifeq 20
19: aload 0
getfield jdk.internal.jshell.tool.JShellTool.replayableHistory:Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;
invokevirtual jdk.internal.jshell.tool.JShellTool$ReplayableHistory.markSaved:()V
20: StackMap locals: int
StackMap stack:
iload 5
ireturn
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 21 0 this Ljdk/internal/jshell/tool/JShellTool;
0 21 1 rawargs Ljava/lang/String;
3 21 2 oldOptions Ljdk/internal/jshell/tool/JShellTool$Options;
4 21 3 ap Ljdk/internal/jshell/tool/JShellTool$OptionParserReload;
11 13 4 history Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;
14 21 4 history Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;
18 21 5 success Z
MethodParameters:
Name Flags
rawargs
private boolean cmdEnv(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.String.trim:()Ljava/lang/String;
invokevirtual java.lang.String.isEmpty:()Z
ifeq 17
1: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 2: aload 0
getfield jdk.internal.jshell.tool.JShellTool.options:Ljdk/internal/jshell/tool/JShellTool$Options;
invokevirtual jdk.internal.jshell.tool.JShellTool$Options.commonOptions:()[Ljava/lang/String;
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 13
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String java.lang.StringBuilder top int int java.lang.String[]
StackMap stack:
3: aload 6
iload 4
aaload
astore 3
start local 3 4: aload 2
5: aload 3
ldc "-"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 9
6: aload 2
invokevirtual java.lang.StringBuilder.length:()I
ifle 8
7: ldc "\n "
goto 10
8: StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String java.lang.StringBuilder java.lang.String int int java.lang.String[]
StackMap stack: java.lang.StringBuilder
ldc " "
goto 10
9: StackMap locals:
StackMap stack: java.lang.StringBuilder
ldc " "
10: StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String java.lang.StringBuilder java.lang.String int int java.lang.String[]
StackMap stack: java.lang.StringBuilder java.lang.String
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
11: aload 2
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 3 12: iinc 4 1
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String java.lang.StringBuilder top int int java.lang.String[]
StackMap stack:
13: iload 4
iload 5
if_icmplt 3
14: aload 2
invokevirtual java.lang.StringBuilder.length:()I
ifle 16
15: aload 0
aload 0
aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual jdk.internal.jshell.tool.JShellTool.prefix:(Ljava/lang/String;)Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.rawout:(Ljava/lang/String;[Ljava/lang/Object;)V
16: StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String java.lang.StringBuilder
StackMap stack:
iconst_0
ireturn
end local 2 17: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.JShellTool.options:Ljdk/internal/jshell/tool/JShellTool$Options;
astore 2
start local 2 18: aload 0
aload 1
new jdk.internal.jshell.tool.JShellTool$OptionParserBase
dup
aload 0
invokespecial jdk.internal.jshell.tool.JShellTool$OptionParserBase.<init>:(Ljdk/internal/jshell/tool/JShellTool;)V
invokevirtual jdk.internal.jshell.tool.JShellTool.parseCommandLineLikeFlags:(Ljava/lang/String;Ljdk/internal/jshell/tool/JShellTool$OptionParserBase;)Z
ifne 20
19: iconst_0
ireturn
20: StackMap locals: jdk.internal.jshell.tool.JShellTool$Options
StackMap stack:
aload 0
ldc "jshell.msg.set.restore"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.fluffmsg:(Ljava/lang/String;[Ljava/lang/Object;)V
21: aload 0
aload 0
getfield jdk.internal.jshell.tool.JShellTool.replayableHistory:Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;
iconst_0
aload 2
invokevirtual jdk.internal.jshell.tool.JShellTool.doReload:(Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;ZLjdk/internal/jshell/tool/JShellTool$Options;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Ljdk/internal/jshell/tool/JShellTool;
0 22 1 rawargs Ljava/lang/String;
2 17 2 sb Ljava/lang/StringBuilder;
4 12 3 a Ljava/lang/String;
18 22 2 oldOptions Ljdk/internal/jshell/tool/JShellTool$Options;
MethodParameters:
Name Flags
rawargs
private boolean doReload(jdk.internal.jshell.tool.JShellTool$ReplayableHistory, boolean, jdk.internal.jshell.tool.JShellTool$Options);
descriptor: (Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;ZLjdk/internal/jshell/tool/JShellTool$Options;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
ifnull 9
1: aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool.resetState:()V
2: goto 10
StackMap locals:
StackMap stack: java.lang.IllegalStateException
3: astore 4
start local 4 4: aload 0
aload 0
getfield jdk.internal.jshell.tool.JShellTool.mainNamespace:Ljdk/internal/jshell/tool/JShellTool$NameSpace;
putfield jdk.internal.jshell.tool.JShellTool.currentNameSpace:Ljdk/internal/jshell/tool/JShellTool$NameSpace;
5: aload 0
ldc "jshell.err.restart.failed"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 4
invokevirtual java.lang.IllegalStateException.getMessage:()Ljava/lang/String;
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
6: aload 0
aload 3
putfield jdk.internal.jshell.tool.JShellTool.options:Ljdk/internal/jshell/tool/JShellTool$Options;
7: aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool.resetState:()V
end local 4 8: goto 10
9: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool.resetState:()V
10: StackMap locals:
StackMap stack:
aload 1
ifnull 17
11: aload 0
12: new jdk.internal.jshell.tool.ReloadIOContext
dup
aload 1
invokevirtual jdk.internal.jshell.tool.JShellTool$ReplayableHistory.iterable:()Ljava/lang/Iterable;
13: iload 2
ifeq 14
aload 0
getfield jdk.internal.jshell.tool.JShellTool.cmdout:Ljava/io/PrintStream;
goto 15
StackMap locals: jdk.internal.jshell.tool.JShellTool jdk.internal.jshell.tool.JShellTool$ReplayableHistory int jdk.internal.jshell.tool.JShellTool$Options
StackMap stack: jdk.internal.jshell.tool.JShellTool new 12 new 12 java.lang.Iterable
14: aconst_null
StackMap locals: jdk.internal.jshell.tool.JShellTool jdk.internal.jshell.tool.JShellTool$ReplayableHistory int jdk.internal.jshell.tool.JShellTool$Options
StackMap stack: jdk.internal.jshell.tool.JShellTool new 12 new 12 java.lang.Iterable java.io.PrintStream
15: invokespecial jdk.internal.jshell.tool.ReloadIOContext.<init>:(Ljava/lang/Iterable;Ljava/io/PrintStream;)V
16: invokevirtual jdk.internal.jshell.tool.JShellTool.run:(Ljdk/internal/jshell/tool/IOContext;)V
17: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Ljdk/internal/jshell/tool/JShellTool;
0 18 1 history Ljdk/internal/jshell/tool/JShellTool$ReplayableHistory;
0 18 2 echo Z
0 18 3 oldOptions Ljdk/internal/jshell/tool/JShellTool$Options;
4 8 4 ex Ljava/lang/IllegalStateException;
Exception table:
from to target type
1 2 3 Class java.lang.IllegalStateException
MethodParameters:
Name Flags
history
echo
oldOptions
private boolean parseCommandLineLikeFlags(java.lang.String, jdk.internal.jshell.tool.JShellTool$OptionParserBase);
descriptor: (Ljava/lang/String;Ljdk/internal/jshell/tool/JShellTool$OptionParserBase;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ldc "\\s+"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
invokestatic java.util.Arrays.stream:([Ljava/lang/Object;)Ljava/util/stream/Stream;
1: 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/internal/jshell/tool/JShellTool.lambda$110(Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
2: invokedynamic apply()Ljava/util/function/IntFunction;
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:
(I)Ljava/lang/Object;
jdk/internal/jshell/tool/JShellTool.lambda$79(I)[Ljava/lang/String; (6)
(I)[Ljava/lang/String;
invokeinterface java.util.stream.Stream.toArray:(Ljava/util/function/IntFunction;)[Ljava/lang/Object;
checkcast java.lang.String[]
3: astore 3
start local 3 4: aload 2
aload 3
invokevirtual jdk.internal.jshell.tool.JShellTool$OptionParserBase.parse:([Ljava/lang/String;)Ljdk/internal/jshell/tool/JShellTool$Options;
astore 4
start local 4 5: aload 4
ifnonnull 7
6: iconst_0
ireturn
7: StackMap locals: java.lang.String[] jdk.internal.jshell.tool.JShellTool$Options
StackMap stack:
aload 2
invokevirtual jdk.internal.jshell.tool.JShellTool$OptionParserBase.nonOptions:()Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifne 10
8: aload 0
ldc "jshell.err.unexpected.at.end"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 2
invokevirtual jdk.internal.jshell.tool.JShellTool$OptionParserBase.nonOptions:()Ljava/util/List;
aastore
dup
iconst_1
aload 1
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
9: iconst_0
ireturn
10: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield jdk.internal.jshell.tool.JShellTool.options:Ljdk/internal/jshell/tool/JShellTool$Options;
aload 4
invokevirtual jdk.internal.jshell.tool.JShellTool$Options.override:(Ljdk/internal/jshell/tool/JShellTool$Options;)Ljdk/internal/jshell/tool/JShellTool$Options;
putfield jdk.internal.jshell.tool.JShellTool.options:Ljdk/internal/jshell/tool/JShellTool$Options;
11: iconst_1
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljdk/internal/jshell/tool/JShellTool;
0 12 1 rawargs Ljava/lang/String;
0 12 2 ap Ljdk/internal/jshell/tool/JShellTool$OptionParserBase;
4 12 3 args [Ljava/lang/String;
5 12 4 opts Ljdk/internal/jshell/tool/JShellTool$Options;
MethodParameters:
Name Flags
rawargs
ap
private boolean cmdSave(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=9, args_size=2
start local 0 start local 1 0: new jdk.internal.jshell.tool.ArgTokenizer
dup
ldc "/save"
aload 1
invokevirtual java.lang.String.trim:()Ljava/lang/String;
invokespecial jdk.internal.jshell.tool.ArgTokenizer.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 2
start local 2 1: aload 2
iconst_3
anewarray java.lang.String
dup
iconst_0
ldc "-all"
aastore
dup
iconst_1
ldc "-start"
aastore
dup
iconst_2
ldc "-history"
aastore
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.allowedOptions:([Ljava/lang/String;)V
2: aload 2
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.next:()Ljava/lang/String;
astore 3
start local 3 3: aload 3
ifnonnull 6
4: aload 0
ldc "jshell.err.file.filename"
iconst_1
anewarray java.lang.Object
dup
iconst_0
ldc "/save"
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
5: iconst_0
ireturn
6: StackMap locals: jdk.internal.jshell.tool.ArgTokenizer java.lang.String
StackMap stack:
aload 0
aload 2
invokevirtual jdk.internal.jshell.tool.JShellTool.checkOptionsAndRemainingInput:(Ljdk/internal/jshell/tool/ArgTokenizer;)Z
ifne 8
7: iconst_0
ireturn
8: StackMap locals:
StackMap stack:
aload 2
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.optionCount:()I
iconst_1
if_icmple 11
9: aload 0
ldc "jshell.err.conflicting.options"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.whole:()Ljava/lang/String;
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
10: iconst_0
ireturn
11: StackMap locals:
StackMap stack:
aconst_null
astore 4
aconst_null
astore 5
12: aload 3
invokestatic jdk.internal.jshell.tool.JShellTool.toPathResolvingUserHome:(Ljava/lang/String;)Ljava/nio/file/Path;
13: invokestatic java.nio.charset.Charset.defaultCharset:()Ljava/nio/charset/Charset;
iconst_3
anewarray java.nio.file.OpenOption
dup
iconst_0
14: getstatic java.nio.file.StandardOpenOption.CREATE:Ljava/nio/file/StandardOpenOption;
aastore
dup
iconst_1
getstatic java.nio.file.StandardOpenOption.TRUNCATE_EXISTING:Ljava/nio/file/StandardOpenOption;
aastore
dup
iconst_2
getstatic java.nio.file.StandardOpenOption.WRITE:Ljava/nio/file/StandardOpenOption;
aastore
15: invokestatic java.nio.file.Files.newBufferedWriter:(Ljava/nio/file/Path;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Ljava/io/BufferedWriter;
astore 6
start local 6 16: aload 2
ldc "-history"
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.hasOption:(Ljava/lang/String;)Z
ifeq 23
17: aload 0
getfield jdk.internal.jshell.tool.JShellTool.input:Ljdk/internal/jshell/tool/IOContext;
invokevirtual jdk.internal.jshell.tool.IOContext.currentSessionHistory:()Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 8
goto 21
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String jdk.internal.jshell.tool.ArgTokenizer java.lang.String java.lang.Throwable java.lang.Throwable java.io.BufferedWriter top java.util.Iterator
StackMap stack:
18: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 7
start local 7 19: aload 6
aload 7
invokevirtual java.io.BufferedWriter.write:(Ljava/lang/String;)V
20: aload 6
ldc "\n"
invokevirtual java.io.BufferedWriter.write:(Ljava/lang/String;)V
end local 7 21: StackMap locals:
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 18
22: goto 33
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String jdk.internal.jshell.tool.ArgTokenizer java.lang.String java.lang.Throwable java.lang.Throwable java.io.BufferedWriter
StackMap stack:
23: aload 2
ldc "-start"
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.hasOption:(Ljava/lang/String;)Z
ifeq 26
24: aload 6
aload 0
getfield jdk.internal.jshell.tool.JShellTool.startup:Ljdk/internal/jshell/tool/Startup;
invokevirtual jdk.internal.jshell.tool.Startup.toString:()Ljava/lang/String;
invokevirtual java.io.BufferedWriter.append:(Ljava/lang/CharSequence;)Ljava/io/Writer;
pop
25: goto 33
26: StackMap locals:
StackMap stack:
aload 2
ldc "-all"
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.hasOption:(Ljava/lang/String;)Z
ifeq 28
27: aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
invokevirtual jdk.jshell.JShell.snippets:()Ljava/util/stream/Stream;
goto 29
28: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
invokevirtual jdk.jshell.JShell.snippets:()Ljava/util/stream/Stream;
aload 0
invokedynamic test(Ljdk/internal/jshell/tool/JShellTool;)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/internal/jshell/tool/JShellTool.mainActive(Ljdk/jshell/Snippet;)Z (7)
(Ljdk/jshell/Snippet;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
29: StackMap locals:
StackMap stack: java.util.stream.Stream
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/Snippet.source()Ljava/lang/String; (5)
(Ljdk/jshell/Snippet;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
30: ldc "\n"
invokestatic java.util.stream.Collectors.joining:(Ljava/lang/CharSequence;)Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.lang.String
31: astore 7
start local 7 32: aload 6
aload 7
invokevirtual java.io.BufferedWriter.write:(Ljava/lang/String;)V
end local 7 33: StackMap locals:
StackMap stack:
aload 6
ifnull 45
aload 6
invokevirtual java.io.BufferedWriter.close:()V
goto 45
StackMap locals:
StackMap stack: java.lang.Throwable
34: astore 4
aload 6
ifnull 35
aload 6
invokevirtual java.io.BufferedWriter.close:()V
end local 6 StackMap locals:
StackMap stack:
35: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
36: astore 5
aload 4
ifnonnull 37
aload 5
astore 4
goto 38
StackMap locals:
StackMap stack:
37: aload 4
aload 5
if_acmpeq 38
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
38: aload 4
athrow
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String jdk.internal.jshell.tool.ArgTokenizer java.lang.String
StackMap stack: java.io.FileNotFoundException
39: astore 4
start local 4 40: aload 0
ldc "jshell.err.file.not.found"
iconst_3
anewarray java.lang.Object
dup
iconst_0
ldc "/save"
aastore
dup
iconst_1
aload 3
aastore
dup
iconst_2
aload 4
invokevirtual java.io.FileNotFoundException.getMessage:()Ljava/lang/String;
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
41: iconst_0
ireturn
end local 4 42: StackMap locals:
StackMap stack: java.lang.Exception
astore 4
start local 4 43: aload 0
ldc "jshell.err.file.exception"
iconst_3
anewarray java.lang.Object
dup
iconst_0
ldc "/save"
aastore
dup
iconst_1
aload 3
aastore
dup
iconst_2
aload 4
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
44: iconst_0
ireturn
end local 4 45: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 46 0 this Ljdk/internal/jshell/tool/JShellTool;
0 46 1 rawargs Ljava/lang/String;
1 46 2 at Ljdk/internal/jshell/tool/ArgTokenizer;
3 46 3 filename Ljava/lang/String;
16 35 6 writer Ljava/io/BufferedWriter;
19 21 7 s Ljava/lang/String;
32 33 7 sources Ljava/lang/String;
40 42 4 e Ljava/io/FileNotFoundException;
43 45 4 e Ljava/lang/Exception;
Exception table:
from to target type
16 33 34 any
12 36 36 any
11 39 39 Class java.io.FileNotFoundException
11 39 42 Class java.lang.Exception
MethodParameters:
Name Flags
rawargs
private boolean cmdVars(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 0
invokedynamic get(Ljdk/internal/jshell/tool/JShellTool;)Ljava/util/function/Supplier;
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;
jdk/internal/jshell/tool/JShellTool.allVarSnippets()Ljava/util/stream/Stream; (5)
()Ljava/util/stream/Stream;
1: aload 0
invokedynamic test(Ljdk/internal/jshell/tool/JShellTool;)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/internal/jshell/tool/JShellTool.isActive(Ljdk/jshell/Snippet;)Z (7)
(Ljdk/jshell/Snippet;)Z
aload 1
ldc "/vars"
2: invokevirtual jdk.internal.jshell.tool.JShellTool.argsOptionsToSnippets:(Ljava/util/function/Supplier;Ljava/util/function/Predicate;Ljava/lang/String;Ljava/lang/String;)Ljava/util/stream/Stream;
astore 2
start local 2 3: aload 2
ifnonnull 5
4: iconst_0
ireturn
5: StackMap locals: java.util.stream.Stream
StackMap stack:
aload 2
aload 0
invokedynamic accept(Ljdk/internal/jshell/tool/JShellTool;)Ljava/util/function/Consumer;
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;)V
jdk/internal/jshell/tool/JShellTool.lambda$116(Ljdk/jshell/VarSnippet;)V (7)
(Ljdk/jshell/VarSnippet;)V
invokeinterface java.util.stream.Stream.forEachOrdered:(Ljava/util/function/Consumer;)V
6: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/jshell/tool/JShellTool;
0 7 1 arg Ljava/lang/String;
3 7 2 stream Ljava/util/stream/Stream<Ljdk/jshell/VarSnippet;>;
MethodParameters:
Name Flags
arg
private boolean cmdMethods(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 0
invokedynamic get(Ljdk/internal/jshell/tool/JShellTool;)Ljava/util/function/Supplier;
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;
jdk/internal/jshell/tool/JShellTool.allMethodSnippets()Ljava/util/stream/Stream; (5)
()Ljava/util/stream/Stream;
1: aload 0
invokedynamic test(Ljdk/internal/jshell/tool/JShellTool;)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/internal/jshell/tool/JShellTool.isActive(Ljdk/jshell/Snippet;)Z (7)
(Ljdk/jshell/Snippet;)Z
aload 1
ldc "/methods"
2: invokevirtual jdk.internal.jshell.tool.JShellTool.argsOptionsToSnippets:(Ljava/util/function/Supplier;Ljava/util/function/Predicate;Ljava/lang/String;Ljava/lang/String;)Ljava/util/stream/Stream;
astore 2
start local 2 3: aload 2
ifnonnull 5
4: iconst_0
ireturn
5: StackMap locals: java.util.stream.Stream
StackMap stack:
aload 2
aload 0
invokedynamic accept(Ljdk/internal/jshell/tool/JShellTool;)Ljava/util/function/Consumer;
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;)V
jdk/internal/jshell/tool/JShellTool.lambda$119(Ljdk/jshell/MethodSnippet;)V (7)
(Ljdk/jshell/MethodSnippet;)V
invokeinterface java.util.stream.Stream.forEachOrdered:(Ljava/util/function/Consumer;)V
6: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/jshell/tool/JShellTool;
0 7 1 arg Ljava/lang/String;
3 7 2 stream Ljava/util/stream/Stream<Ljdk/jshell/MethodSnippet;>;
MethodParameters:
Name Flags
arg
private boolean cmdTypes(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 0
invokedynamic get(Ljdk/internal/jshell/tool/JShellTool;)Ljava/util/function/Supplier;
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;
jdk/internal/jshell/tool/JShellTool.allTypeSnippets()Ljava/util/stream/Stream; (5)
()Ljava/util/stream/Stream;
1: aload 0
invokedynamic test(Ljdk/internal/jshell/tool/JShellTool;)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/internal/jshell/tool/JShellTool.isActive(Ljdk/jshell/Snippet;)Z (7)
(Ljdk/jshell/Snippet;)Z
aload 1
ldc "/types"
2: invokevirtual jdk.internal.jshell.tool.JShellTool.argsOptionsToSnippets:(Ljava/util/function/Supplier;Ljava/util/function/Predicate;Ljava/lang/String;Ljava/lang/String;)Ljava/util/stream/Stream;
astore 2
start local 2 3: aload 2
ifnonnull 5
4: iconst_0
ireturn
5: StackMap locals: java.util.stream.Stream
StackMap stack:
aload 2
aload 0
invokedynamic accept(Ljdk/internal/jshell/tool/JShellTool;)Ljava/util/function/Consumer;
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;)V
jdk/internal/jshell/tool/JShellTool.lambda$122(Ljdk/jshell/TypeDeclSnippet;)V (7)
(Ljdk/jshell/TypeDeclSnippet;)V
invokeinterface java.util.stream.Stream.forEachOrdered:(Ljava/util/function/Consumer;)V
6: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/jshell/tool/JShellTool;
0 7 1 arg Ljava/lang/String;
3 7 2 stream Ljava/util/stream/Stream<Ljdk/jshell/TypeDeclSnippet;>;
MethodParameters:
Name Flags
arg
private boolean cmdImports();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
invokevirtual jdk.jshell.JShell.imports:()Ljava/util/stream/Stream;
aload 0
invokedynamic accept(Ljdk/internal/jshell/tool/JShellTool;)Ljava/util/function/Consumer;
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;)V
jdk/internal/jshell/tool/JShellTool.lambda$123(Ljdk/jshell/ImportSnippet;)V (7)
(Ljdk/jshell/ImportSnippet;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jshell/tool/JShellTool;
private boolean cmdUseHistoryEntry(int);
descriptor: (I)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
invokevirtual jdk.jshell.JShell.snippets:()Ljava/util/stream/Stream;
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
astore 2
start local 2 1: iload 1
ifge 3
2: iload 1
aload 2
invokeinterface java.util.List.size:()I
iadd
istore 1
goto 4
3: StackMap locals: java.util.List
StackMap stack:
iinc 1 -1
4: StackMap locals:
StackMap stack:
iload 1
iflt 7
iload 1
aload 2
invokeinterface java.util.List.size:()I
if_icmpge 7
5: aload 0
aload 2
iload 1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast jdk.jshell.Snippet
invokevirtual jdk.internal.jshell.tool.JShellTool.rerunSnippet:(Ljdk/jshell/Snippet;)V
6: goto 9
7: StackMap locals:
StackMap stack:
aload 0
ldc "jshell.err.out.of.range"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
8: iconst_0
ireturn
9: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/internal/jshell/tool/JShellTool;
0 10 1 index I
1 10 2 keys Ljava/util/List<Ljdk/jshell/Snippet;>;
MethodParameters:
Name Flags
index
boolean checkOptionsAndRemainingInput(jdk.internal.jshell.tool.ArgTokenizer);
descriptor: (Ljdk/internal/jshell/tool/ArgTokenizer;)Z
flags: (0x0000)
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.remainder:()Ljava/lang/String;
astore 2
start local 2 1: aload 2
invokevirtual java.lang.String.isEmpty:()Z
ifne 4
2: aload 0
ldc "jshell.err.unexpected.at.end"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 1
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.whole:()Ljava/lang/String;
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
3: iconst_0
ireturn
4: StackMap locals: java.lang.String
StackMap stack:
aload 1
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.badOptions:()Ljava/lang/String;
astore 3
start local 3 5: aload 3
invokevirtual java.lang.String.isEmpty:()Z
ifne 8
6: aload 0
ldc "jshell.err.unknown.option"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 3
aastore
dup
iconst_1
aload 1
invokevirtual jdk.internal.jshell.tool.ArgTokenizer.whole:()Ljava/lang/String;
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
7: iconst_0
ireturn
end local 3 8: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/jshell/tool/JShellTool;
0 9 1 at Ljdk/internal/jshell/tool/ArgTokenizer;
1 9 2 junk Ljava/lang/String;
5 8 3 bad Ljava/lang/String;
MethodParameters:
Name Flags
at
private boolean rerunHistoryEntryById(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
invokevirtual jdk.jshell.JShell.snippets:()Ljava/util/stream/Stream;
1: aload 1
invokedynamic test(Ljava/lang/String;)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/internal/jshell/tool/JShellTool.lambda$124(Ljava/lang/String;Ljdk/jshell/Snippet;)Z (6)
(Ljdk/jshell/Snippet;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
2: invokeinterface java.util.stream.Stream.findFirst:()Ljava/util/Optional;
3: astore 2
start local 2 4: aload 2
aload 0
invokedynamic apply(Ljdk/internal/jshell/tool/JShellTool;)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/JShellTool.lambda$125(Ljdk/jshell/Snippet;)Ljava/lang/Boolean; (7)
(Ljdk/jshell/Snippet;)Ljava/lang/Boolean;
invokevirtual java.util.Optional.map:(Ljava/util/function/Function;)Ljava/util/Optional;
5: iconst_0
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
6: ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/jshell/tool/JShellTool;
0 7 1 id Ljava/lang/String;
4 7 2 snippet Ljava/util/Optional<Ljdk/jshell/Snippet;>;
MethodParameters:
Name Flags
id
private void rerunSnippet(jdk.jshell.Snippet);
descriptor: (Ljdk/jshell/Snippet;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual jdk.jshell.Snippet.source:()Ljava/lang/String;
astore 2
start local 2 1: aload 0
getfield jdk.internal.jshell.tool.JShellTool.cmdout:Ljava/io/PrintStream;
ldc "%s\n"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokevirtual java.io.PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
2: aload 0
getfield jdk.internal.jshell.tool.JShellTool.input:Ljdk/internal/jshell/tool/IOContext;
aload 2
invokevirtual jdk.internal.jshell.tool.IOContext.replaceLastHistoryEntry:(Ljava/lang/String;)V
3: aload 0
aload 2
invokevirtual jdk.internal.jshell.tool.JShellTool.processSourceCatchingReset:(Ljava/lang/String;)Ljava/lang/String;
pop
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/jshell/tool/JShellTool;
0 5 1 snippet Ljdk/jshell/Snippet;
1 5 2 source Ljava/lang/String;
MethodParameters:
Name Flags
snippet
java.util.List<jdk.jshell.Diag> errorsOnly(java.util.List<jdk.jshell.Diag>);
descriptor: (Ljava/util/List;)Ljava/util/List;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
1: 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/Diag.isError()Z (5)
(Ljdk/jshell/Diag;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
2: 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
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/jshell/tool/JShellTool;
0 4 1 diagnostics Ljava/util/List<Ljdk/jshell/Diag;>;
Signature: (Ljava/util/List<Ljdk/jshell/Diag;>;)Ljava/util/List<Ljdk/jshell/Diag;>;
MethodParameters:
Name Flags
diagnostics
void displayDiagnostics(java.lang.String, jdk.jshell.Diag, java.util.List<java.lang.String>);
descriptor: (Ljava/lang/String;Ljdk/jshell/Diag;Ljava/util/List;)V
flags: (0x0000)
Code:
stack=7, locals=14, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
aconst_null
invokevirtual jdk.jshell.Diag.getMessage:(Ljava/util/Locale;)Ljava/lang/String;
ldc "\\r?\\n"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 5
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String jdk.jshell.Diag java.util.List top int int java.lang.String[]
StackMap stack:
1: aload 7
iload 5
aaload
astore 4
start local 4 2: aload 4
invokevirtual java.lang.String.trim:()Ljava/lang/String;
ldc "location:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 4
3: aload 3
aload 4
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 4: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
5: iload 5
iload 6
if_icmplt 1
6: aload 2
invokevirtual jdk.jshell.Diag.getStartPosition:()J
l2i
istore 4
start local 4 7: aload 2
invokevirtual jdk.jshell.Diag.getEndPosition:()J
l2i
istore 5
start local 5 8: getstatic jdk.internal.jshell.tool.JShellTool.LINEBREAK:Ljava/util/regex/Pattern;
aload 1
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 6
start local 6 9: iconst_0
istore 7
start local 7 10: bipush -2
istore 8
start local 8 11: goto 16
12: StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String jdk.jshell.Diag java.util.List int int java.util.regex.Matcher int int
StackMap stack:
aload 6
invokevirtual java.util.regex.Matcher.start:()I
istore 8
13: iload 8
iload 4
if_icmplt 15
14: goto 17
15: StackMap locals:
StackMap stack:
aload 6
invokevirtual java.util.regex.Matcher.end:()I
istore 7
16: StackMap locals:
StackMap stack:
aload 6
iload 7
invokevirtual java.util.regex.Matcher.find:(I)Z
ifne 12
17: StackMap locals:
StackMap stack:
iload 8
iload 4
if_icmpge 19
18: aload 1
invokevirtual java.lang.String.length:()I
istore 8
19: StackMap locals:
StackMap stack:
aload 3
aload 1
iload 7
iload 8
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
20: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 9
start local 9 21: iload 4
iload 7
isub
istore 10
start local 10 22: iconst_0
istore 11
start local 11 23: goto 26
24: StackMap locals: java.lang.StringBuilder int int
StackMap stack:
aload 9
bipush 32
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
25: iinc 11 1
StackMap locals:
StackMap stack:
26: iload 11
iload 10
if_icmplt 24
end local 11 27: aload 9
bipush 94
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
28: iload 5
iload 8
if_icmple 29
iconst_1
goto 30
StackMap locals:
StackMap stack:
29: iconst_0
StackMap locals:
StackMap stack: int
30: istore 11
start local 11 31: iload 11
ifeq 32
iload 8
goto 33
StackMap locals: int
StackMap stack:
32: iload 5
StackMap locals:
StackMap stack: int
33: iload 7
isub
iconst_1
isub
istore 12
start local 12 34: iload 12
iload 10
if_icmple 44
35: iload 10
iconst_1
iadd
istore 13
start local 13 36: goto 39
37: StackMap locals: int int
StackMap stack:
aload 9
bipush 45
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
38: iinc 13 1
StackMap locals:
StackMap stack:
39: iload 13
iload 12
if_icmplt 37
end local 13 40: iload 11
ifeq 43
41: aload 9
ldc "-..."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
42: goto 44
43: StackMap locals:
StackMap stack:
aload 9
bipush 94
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
44: StackMap locals:
StackMap stack:
aload 3
aload 9
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
45: aload 0
ldc "printDiagnostics start-pos = %d ==> %d -- wrap = %s"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 2
invokevirtual jdk.jshell.Diag.getStartPosition:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_1
iload 10
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
aload 0
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
46: aload 0
ldc "Code: %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
invokevirtual jdk.jshell.Diag.getCode:()Ljava/lang/String;
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
47: aload 0
ldc "Pos: %d (%d - %d)"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 2
invokevirtual jdk.jshell.Diag.getPosition:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_1
48: aload 2
invokevirtual jdk.jshell.Diag.getStartPosition:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_2
aload 2
invokevirtual jdk.jshell.Diag.getEndPosition:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
49: invokevirtual jdk.internal.jshell.tool.JShellTool.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
50: return
end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 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 51 0 this Ljdk/internal/jshell/tool/JShellTool;
0 51 1 source Ljava/lang/String;
0 51 2 diag Ljdk/jshell/Diag;
0 51 3 toDisplay Ljava/util/List<Ljava/lang/String;>;
2 4 4 line Ljava/lang/String;
7 51 4 pstart I
8 51 5 pend I
9 51 6 m Ljava/util/regex/Matcher;
10 51 7 pstartl I
11 51 8 pendl I
21 51 9 sb Ljava/lang/StringBuilder;
22 51 10 start I
23 27 11 i I
31 51 11 multiline Z
34 51 12 end I
36 40 13 i I
Signature: (Ljava/lang/String;Ljdk/jshell/Diag;Ljava/util/List<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
source
diag
toDisplay
private java.lang.String processSource(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.JShellTool.analysis:Ljdk/jshell/SourceCodeAnalysis;
aload 1
invokevirtual jdk.jshell.SourceCodeAnalysis.analyzeCompletion:(Ljava/lang/String;)Ljdk/jshell/SourceCodeAnalysis$CompletionInfo;
astore 2
start local 2 1: aload 2
invokeinterface jdk.jshell.SourceCodeAnalysis$CompletionInfo.completeness:()Ljdk/jshell/SourceCodeAnalysis$Completeness;
invokevirtual jdk.jshell.SourceCodeAnalysis$Completeness.isComplete:()Z
ifne 3
2: aload 2
invokeinterface jdk.jshell.SourceCodeAnalysis$CompletionInfo.remaining:()Ljava/lang/String;
areturn
3: StackMap locals: jdk.jshell.SourceCodeAnalysis$CompletionInfo
StackMap stack:
aload 0
aload 2
invokeinterface jdk.jshell.SourceCodeAnalysis$CompletionInfo.source:()Ljava/lang/String;
invokevirtual jdk.internal.jshell.tool.JShellTool.processCompleteSource:(Ljava/lang/String;)Z
istore 3
start local 3 4: iload 3
ifne 5
aload 2
invokeinterface jdk.jshell.SourceCodeAnalysis$CompletionInfo.remaining:()Ljava/lang/String;
invokevirtual java.lang.String.isEmpty:()Z
ifeq 6
5: StackMap locals: int
StackMap stack:
ldc ""
areturn
6: StackMap locals:
StackMap stack:
aload 2
invokeinterface jdk.jshell.SourceCodeAnalysis$CompletionInfo.remaining:()Ljava/lang/String;
astore 1
end local 3 end local 2 7: goto 0
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/internal/jshell/tool/JShellTool;
0 8 1 srcInput Ljava/lang/String;
1 7 2 an Ljdk/jshell/SourceCodeAnalysis$CompletionInfo;
4 7 3 failed Z
Exceptions:
throws java.lang.IllegalStateException
MethodParameters:
Name Flags
srcInput
boolean processCompleteSource(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0000)
Code:
stack=6, locals=7, args_size=2
start local 0 start local 1 0: aload 0
ldc "Compiling: %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
1: iconst_0
istore 2
start local 2 2: iconst_0
istore 3
start local 3 3: aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
aload 1
invokevirtual jdk.jshell.JShell.eval:(Ljava/lang/String;)Ljava/util/List;
astore 4
start local 4 4: aload 4
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 12
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String int int java.util.List top java.util.Iterator
StackMap stack:
5: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jshell.SnippetEvent
astore 5
start local 5 6: iload 2
aload 0
aload 5
invokevirtual jdk.internal.jshell.tool.JShellTool.handleEvent:(Ljdk/jshell/SnippetEvent;)Z
ior
istore 2
7: iload 3
aload 5
invokevirtual jdk.jshell.SnippetEvent.causeSnippet:()Ljdk/jshell/Snippet;
ifnonnull 10
8: aload 5
invokevirtual jdk.jshell.SnippetEvent.status:()Ljdk/jshell/Snippet$Status;
invokevirtual jdk.jshell.Snippet$Status.isActive:()Z
ifeq 10
9: aload 5
invokevirtual jdk.jshell.SnippetEvent.snippet:()Ljdk/jshell/Snippet;
invokevirtual jdk.jshell.Snippet.subKind:()Ljdk/jshell/Snippet$SubKind;
getstatic jdk.jshell.Snippet$SubKind.VAR_VALUE_SUBKIND:Ljdk/jshell/Snippet$SubKind;
if_acmpeq 10
iconst_1
goto 11
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String int int java.util.List jdk.jshell.SnippetEvent java.util.Iterator
StackMap stack: int
10: iconst_0
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String int int java.util.List jdk.jshell.SnippetEvent java.util.Iterator
StackMap stack: int int
11: ior
istore 3
end local 5 12: StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String int int java.util.List top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
13: iload 3
ifeq 15
aload 0
getfield jdk.internal.jshell.tool.JShellTool.live:Z
ifeq 15
14: aload 0
aload 1
invokevirtual jdk.internal.jshell.tool.JShellTool.addToReplayHistory:(Ljava/lang/String;)V
15: StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String int int java.util.List
StackMap stack:
iload 2
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljdk/internal/jshell/tool/JShellTool;
0 16 1 source Ljava/lang/String;
2 16 2 failed Z
3 16 3 isActive Z
4 16 4 events Ljava/util/List<Ljdk/jshell/SnippetEvent;>;
6 12 5 e Ljdk/jshell/SnippetEvent;
Exceptions:
throws java.lang.IllegalStateException
MethodParameters:
Name Flags
source
private boolean handleEvent(jdk.jshell.SnippetEvent);
descriptor: (Ljdk/jshell/SnippetEvent;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=8, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual jdk.jshell.SnippetEvent.snippet:()Ljdk/jshell/Snippet;
astore 2
start local 2 1: aload 2
ifnonnull 4
2: aload 0
ldc "Event with null key: %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
3: iconst_0
ireturn
4: StackMap locals: jdk.jshell.Snippet
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
aload 2
invokevirtual jdk.jshell.JShell.diagnostics:(Ljdk/jshell/Snippet;)Ljava/util/stream/Stream;
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
astore 3
start local 3 5: aload 2
invokevirtual jdk.jshell.Snippet.source:()Ljava/lang/String;
astore 4
start local 4 6: aload 1
invokevirtual jdk.jshell.SnippetEvent.causeSnippet:()Ljdk/jshell/Snippet;
ifnonnull 33
7: aload 3
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 16
StackMap locals: jdk.internal.jshell.tool.JShellTool jdk.jshell.SnippetEvent jdk.jshell.Snippet java.util.List java.lang.String top java.util.Iterator
StackMap stack:
8: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jshell.Diag
astore 5
start local 5 9: aload 0
aload 5
invokevirtual jdk.jshell.Diag.isError:()Z
ifeq 10
ldc "jshell.msg.error"
goto 11
StackMap locals: jdk.internal.jshell.tool.JShellTool jdk.jshell.SnippetEvent jdk.jshell.Snippet java.util.List java.lang.String jdk.jshell.Diag java.util.Iterator
StackMap stack: jdk.internal.jshell.tool.JShellTool
10: ldc "jshell.msg.warning"
StackMap locals: jdk.internal.jshell.tool.JShellTool jdk.jshell.SnippetEvent jdk.jshell.Snippet java.util.List java.lang.String jdk.jshell.Diag java.util.Iterator
StackMap stack: jdk.internal.jshell.tool.JShellTool java.lang.String
11: iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.hardmsg:(Ljava/lang/String;[Ljava/lang/Object;)V
12: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 7
start local 7 13: aload 0
aload 4
aload 5
aload 7
invokevirtual jdk.internal.jshell.tool.JShellTool.displayDiagnostics:(Ljava/lang/String;Ljdk/jshell/Diag;Ljava/util/List;)V
14: aload 7
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
15: aload 0
invokedynamic accept(Ljdk/internal/jshell/tool/JShellTool;)Ljava/util/function/Consumer;
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;)V
jdk/internal/jshell/tool/JShellTool.lambda$127(Ljava/lang/String;)V (7)
(Ljava/lang/String;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
end local 7 end local 5 16: StackMap locals: jdk.internal.jshell.tool.JShellTool jdk.jshell.SnippetEvent jdk.jshell.Snippet java.util.List java.lang.String top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
17: aload 1
invokevirtual jdk.jshell.SnippetEvent.status:()Ljdk/jshell/Snippet$Status;
getstatic jdk.jshell.Snippet$Status.REJECTED:Ljdk/jshell/Snippet$Status;
if_acmpeq 30
18: aload 1
invokevirtual jdk.jshell.SnippetEvent.exception:()Ljdk/jshell/JShellException;
ifnull 27
19: aload 1
invokevirtual jdk.jshell.SnippetEvent.exception:()Ljdk/jshell/JShellException;
instanceof jdk.jshell.EvalException
ifeq 22
20: aload 0
aload 1
invokevirtual jdk.jshell.SnippetEvent.exception:()Ljdk/jshell/JShellException;
checkcast jdk.jshell.EvalException
invokevirtual jdk.internal.jshell.tool.JShellTool.printEvalException:(Ljdk/jshell/EvalException;)V
21: iconst_1
ireturn
22: StackMap locals: jdk.internal.jshell.tool.JShellTool jdk.jshell.SnippetEvent jdk.jshell.Snippet java.util.List java.lang.String
StackMap stack:
aload 1
invokevirtual jdk.jshell.SnippetEvent.exception:()Ljdk/jshell/JShellException;
instanceof jdk.jshell.UnresolvedReferenceException
ifeq 25
23: aload 0
aload 1
invokevirtual jdk.jshell.SnippetEvent.exception:()Ljdk/jshell/JShellException;
checkcast jdk.jshell.UnresolvedReferenceException
invokevirtual jdk.internal.jshell.tool.JShellTool.printUnresolvedException:(Ljdk/jshell/UnresolvedReferenceException;)V
24: goto 37
25: StackMap locals:
StackMap stack:
aload 0
ldc "Unexpected execution exception: %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
invokevirtual jdk.jshell.SnippetEvent.exception:()Ljdk/jshell/JShellException;
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.hard:(Ljava/lang/String;[Ljava/lang/Object;)V
26: iconst_1
ireturn
27: StackMap locals:
StackMap stack:
new jdk.internal.jshell.tool.JShellTool$DisplayEvent
dup
aload 0
aload 1
getstatic jdk.internal.jshell.tool.Feedback$FormatWhen.PRIMARY:Ljdk/internal/jshell/tool/Feedback$FormatWhen;
aload 1
invokevirtual jdk.jshell.SnippetEvent.value:()Ljava/lang/String;
aload 3
invokespecial jdk.internal.jshell.tool.JShellTool$DisplayEvent.<init>:(Ljdk/internal/jshell/tool/JShellTool;Ljdk/jshell/SnippetEvent;Ljdk/internal/jshell/tool/Feedback$FormatWhen;Ljava/lang/String;Ljava/util/List;)V
28: invokevirtual jdk.internal.jshell.tool.JShellTool$DisplayEvent.displayDeclarationAndValue:()V
29: goto 37
30: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.List.isEmpty:()Z
ifeq 32
31: aload 0
ldc "jshell.err.failed"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
32: StackMap locals:
StackMap stack:
iconst_1
ireturn
33: StackMap locals:
StackMap stack:
aload 2
instanceof jdk.jshell.DeclarationSnippet
ifeq 37
34: aload 0
aload 3
invokevirtual jdk.internal.jshell.tool.JShellTool.errorsOnly:(Ljava/util/List;)Ljava/util/List;
astore 5
start local 5 35: new jdk.internal.jshell.tool.JShellTool$DisplayEvent
dup
aload 0
aload 1
getstatic jdk.internal.jshell.tool.Feedback$FormatWhen.UPDATE:Ljdk/internal/jshell/tool/Feedback$FormatWhen;
aload 1
invokevirtual jdk.jshell.SnippetEvent.value:()Ljava/lang/String;
aload 5
invokespecial jdk.internal.jshell.tool.JShellTool$DisplayEvent.<init>:(Ljdk/internal/jshell/tool/JShellTool;Ljdk/jshell/SnippetEvent;Ljdk/internal/jshell/tool/Feedback$FormatWhen;Ljava/lang/String;Ljava/util/List;)V
36: invokevirtual jdk.internal.jshell.tool.JShellTool$DisplayEvent.displayDeclarationAndValue:()V
end local 5 37: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 38 0 this Ljdk/internal/jshell/tool/JShellTool;
0 38 1 ste Ljdk/jshell/SnippetEvent;
1 38 2 sn Ljdk/jshell/Snippet;
5 38 3 diagnostics Ljava/util/List<Ljdk/jshell/Diag;>;
6 38 4 source Ljava/lang/String;
9 16 5 d Ljdk/jshell/Diag;
13 16 7 disp Ljava/util/List<Ljava/lang/String;>;
35 37 5 other Ljava/util/List<Ljdk/jshell/Diag;>;
MethodParameters:
Name Flags
ste
void printStackTrace(java.lang.StackTraceElement[]);
descriptor: ([Ljava/lang/StackTraceElement;)V
flags: (0x0000)
Code:
stack=6, locals=11, args_size=2
start local 0 start local 1 0: aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 26
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.StackTraceElement[] top int int java.lang.StackTraceElement[]
StackMap stack:
1: aload 5
iload 3
aaload
astore 2
start local 2 2: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 6
start local 6 3: aload 2
invokevirtual java.lang.StackTraceElement.getClassName:()Ljava/lang/String;
astore 7
start local 7 4: aload 7
invokevirtual java.lang.String.isEmpty:()Z
ifne 11
5: aload 7
bipush 46
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 8
start local 8 6: iload 8
ifle 9
7: aload 6
aload 7
iload 8
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
8: goto 10
9: StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.StackTraceElement[] java.lang.StackTraceElement int int java.lang.StackTraceElement[] java.lang.StringBuilder java.lang.String int
StackMap stack:
aload 6
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
10: StackMap locals:
StackMap stack:
aload 6
ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 8 11: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.StackTraceElement.getMethodName:()Ljava/lang/String;
invokevirtual java.lang.String.isEmpty:()Z
ifne 14
12: aload 6
aload 2
invokevirtual java.lang.StackTraceElement.getMethodName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
13: aload 6
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
14: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.StackTraceElement.getFileName:()Ljava/lang/String;
astore 8
start local 8 15: aload 2
invokevirtual java.lang.StackTraceElement.getLineNumber:()I
istore 9
start local 9 16: aload 2
invokevirtual java.lang.StackTraceElement.isNativeMethod:()Z
ifeq 18
17: aload 0
ldc "jshell.msg.native.method"
invokevirtual jdk.internal.jshell.tool.JShellTool.getResourceString:(Ljava/lang/String;)Ljava/lang/String;
goto 23
18: StackMap locals: java.lang.String int
StackMap stack:
aload 8
ifnonnull 20
19: aload 0
ldc "jshell.msg.unknown.source"
invokevirtual jdk.internal.jshell.tool.JShellTool.getResourceString:(Ljava/lang/String;)Ljava/lang/String;
goto 23
20: StackMap locals:
StackMap stack:
iload 9
iflt 22
21: new java.lang.StringBuilder
dup
aload 8
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 9
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
goto 23
22: StackMap locals:
StackMap stack:
aload 8
23: StackMap locals:
StackMap stack: java.lang.String
astore 10
start local 10 24: aload 0
ldc " at %s(%s)"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 6
aastore
dup
iconst_1
aload 10
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.hard:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 10 end local 9 end local 8 end local 7 end local 6 end local 2 25: iinc 3 1
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.StackTraceElement[] top int int java.lang.StackTraceElement[]
StackMap stack:
26: iload 3
iload 4
if_icmplt 1
27: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Ljdk/internal/jshell/tool/JShellTool;
0 28 1 stes [Ljava/lang/StackTraceElement;
2 25 2 ste Ljava/lang/StackTraceElement;
3 25 6 sb Ljava/lang/StringBuilder;
4 25 7 cn Ljava/lang/String;
6 11 8 dot I
15 25 8 fileName Ljava/lang/String;
16 25 9 lineNumber I
24 25 10 loc Ljava/lang/String;
MethodParameters:
Name Flags
stes
void printUnresolvedException(jdk.jshell.UnresolvedReferenceException);
descriptor: (Ljdk/jshell/UnresolvedReferenceException;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual jdk.jshell.UnresolvedReferenceException.getSnippet:()Ljdk/jshell/DeclarationSnippet;
iconst_0
invokevirtual jdk.internal.jshell.tool.JShellTool.printSnippetStatus:(Ljdk/jshell/DeclarationSnippet;Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jshell/tool/JShellTool;
0 2 1 ex Ljdk/jshell/UnresolvedReferenceException;
MethodParameters:
Name Flags
ex
void printEvalException(jdk.jshell.EvalException);
descriptor: (Ljdk/jshell/EvalException;)V
flags: (0x0000)
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual jdk.jshell.EvalException.getMessage:()Ljava/lang/String;
ifnonnull 3
1: aload 0
ldc "%s thrown"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
invokevirtual jdk.jshell.EvalException.getExceptionClassName:()Ljava/lang/String;
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.hard:(Ljava/lang/String;[Ljava/lang/Object;)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
ldc "%s thrown: %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
invokevirtual jdk.jshell.EvalException.getExceptionClassName:()Ljava/lang/String;
aastore
dup
iconst_1
aload 1
invokevirtual jdk.jshell.EvalException.getMessage:()Ljava/lang/String;
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.hard:(Ljava/lang/String;[Ljava/lang/Object;)V
4: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual jdk.jshell.EvalException.getStackTrace:()[Ljava/lang/StackTraceElement;
invokevirtual jdk.internal.jshell.tool.JShellTool.printStackTrace:([Ljava/lang/StackTraceElement;)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/jshell/tool/JShellTool;
0 6 1 ex Ljdk/jshell/EvalException;
MethodParameters:
Name Flags
ex
private jdk.internal.jshell.tool.Feedback$FormatAction toAction(jdk.jshell.Snippet$Status, jdk.jshell.Snippet$Status, boolean);
descriptor: (Ljdk/jshell/Snippet$Status;Ljdk/jshell/Snippet$Status;Z)Ljdk/internal/jshell/tool/Feedback$FormatAction;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: invokestatic jdk.internal.jshell.tool.JShellTool.$SWITCH_TABLE$jdk$jshell$Snippet$Status:()[I
aload 1
invokevirtual jdk.jshell.Snippet$Status.ordinal:()I
iaload
tableswitch { // 1 - 7
1: 1
2: 1
3: 1
4: 11
5: 9
6: 13
7: 13
default: 13
}
1: StackMap locals:
StackMap stack:
aload 2
invokevirtual jdk.jshell.Snippet$Status.isActive:()Z
ifeq 7
2: iload 3
ifeq 4
3: getstatic jdk.internal.jshell.tool.Feedback$FormatAction.REPLACED:Ljdk/internal/jshell/tool/Feedback$FormatAction;
goto 5
4: StackMap locals:
StackMap stack:
getstatic jdk.internal.jshell.tool.Feedback$FormatAction.MODIFIED:Ljdk/internal/jshell/tool/Feedback$FormatAction;
5: StackMap locals:
StackMap stack: jdk.internal.jshell.tool.Feedback$FormatAction
astore 4
start local 4 6: goto 15
end local 4 7: StackMap locals:
StackMap stack:
getstatic jdk.internal.jshell.tool.Feedback$FormatAction.ADDED:Ljdk/internal/jshell/tool/Feedback$FormatAction;
astore 4
start local 4 8: goto 15
end local 4 9: StackMap locals:
StackMap stack:
getstatic jdk.internal.jshell.tool.Feedback$FormatAction.OVERWROTE:Ljdk/internal/jshell/tool/Feedback$FormatAction;
astore 4
start local 4 10: goto 15
end local 4 11: StackMap locals:
StackMap stack:
getstatic jdk.internal.jshell.tool.Feedback$FormatAction.DROPPED:Ljdk/internal/jshell/tool/Feedback$FormatAction;
astore 4
start local 4 12: goto 15
end local 4 13: StackMap locals:
StackMap stack:
aload 0
new java.lang.StringBuilder
dup
ldc "Unexpected status: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual jdk.jshell.Snippet$Status.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "=>"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual jdk.jshell.Snippet$Status.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.error:(Ljava/lang/String;[Ljava/lang/Object;)V
14: getstatic jdk.internal.jshell.tool.Feedback$FormatAction.DROPPED:Ljdk/internal/jshell/tool/Feedback$FormatAction;
astore 4
start local 4 15: StackMap locals: jdk.internal.jshell.tool.Feedback$FormatAction
StackMap stack:
aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljdk/internal/jshell/tool/JShellTool;
0 16 1 status Ljdk/jshell/Snippet$Status;
0 16 2 previousStatus Ljdk/jshell/Snippet$Status;
0 16 3 isSignatureChange Z
6 7 4 act Ljdk/internal/jshell/tool/Feedback$FormatAction;
8 9 4 act Ljdk/internal/jshell/tool/Feedback$FormatAction;
10 11 4 act Ljdk/internal/jshell/tool/Feedback$FormatAction;
12 13 4 act Ljdk/internal/jshell/tool/Feedback$FormatAction;
15 16 4 act Ljdk/internal/jshell/tool/Feedback$FormatAction;
MethodParameters:
Name Flags
status
previousStatus
isSignatureChange
void printSnippetStatus(jdk.jshell.DeclarationSnippet, boolean);
descriptor: (Ljdk/jshell/DeclarationSnippet;Z)V
flags: (0x0000)
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
aload 1
invokevirtual jdk.jshell.JShell.diagnostics:(Ljdk/jshell/Snippet;)Ljava/util/stream/Stream;
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
invokevirtual jdk.internal.jshell.tool.JShellTool.errorsOnly:(Ljava/util/List;)Ljava/util/List;
astore 3
start local 3 1: new jdk.internal.jshell.tool.JShellTool$DisplayEvent
dup
aload 0
aload 1
aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
aload 1
invokevirtual jdk.jshell.JShell.status:(Ljdk/jshell/Snippet;)Ljdk/jshell/Snippet$Status;
iload 2
aload 3
invokespecial jdk.internal.jshell.tool.JShellTool$DisplayEvent.<init>:(Ljdk/internal/jshell/tool/JShellTool;Ljdk/jshell/Snippet;Ljdk/jshell/Snippet$Status;ZLjava/util/List;)V
2: invokevirtual jdk.internal.jshell.tool.JShellTool$DisplayEvent.displayDeclarationAndValue:()V
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/jshell/tool/JShellTool;
0 4 1 sn Ljdk/jshell/DeclarationSnippet;
0 4 2 resolve Z
1 4 3 otherErrors Ljava/util/List<Ljdk/jshell/Diag;>;
MethodParameters:
Name Flags
sn
resolve
java.lang.String version();
descriptor: ()Ljava/lang/String;
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "release"
invokevirtual jdk.internal.jshell.tool.JShellTool.version:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
java.lang.String fullVersion();
descriptor: ()Ljava/lang/String;
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "full"
invokevirtual jdk.internal.jshell.tool.JShellTool.version:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
private java.lang.String version(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.versionRB:Ljava/util/ResourceBundle;
ifnonnull 5
1: aload 0
ldc "jdk.internal.jshell.tool.resources.version"
aload 0
getfield jdk.internal.jshell.tool.JShellTool.locale:Ljava/util/Locale;
invokestatic java.util.ResourceBundle.getBundle:(Ljava/lang/String;Ljava/util/Locale;)Ljava/util/ResourceBundle;
putfield jdk.internal.jshell.tool.JShellTool.versionRB:Ljava/util/ResourceBundle;
2: goto 5
StackMap locals:
StackMap stack: java.util.MissingResourceException
3: pop
4: ldc "(version info not available)"
areturn
5: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.JShellTool.versionRB:Ljava/util/ResourceBundle;
aload 1
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
6: areturn
7: StackMap locals:
StackMap stack: java.util.MissingResourceException
pop
8: ldc "(version info not available)"
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/jshell/tool/JShellTool;
0 9 1 key Ljava/lang/String;
Exception table:
from to target type
1 2 3 Class java.util.MissingResourceException
5 6 7 Class java.util.MissingResourceException
MethodParameters:
Name Flags
key
static int[] $SWITCH_TABLE$jdk$jshell$Snippet$SubKind();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic jdk.internal.jshell.tool.JShellTool.$SWITCH_TABLE$jdk$jshell$Snippet$SubKind:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic jdk.jshell.Snippet$SubKind.values:()[Ljdk/jshell/Snippet$SubKind;
arraylength
newarray 10
astore 0
2: aload 0
getstatic jdk.jshell.Snippet$SubKind.ANNOTATION_TYPE_SUBKIND:Ljdk/jshell/Snippet$SubKind;
invokevirtual jdk.jshell.Snippet$SubKind.ordinal:()I
bipush 8
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic jdk.jshell.Snippet$SubKind.ASSIGNMENT_SUBKIND:Ljdk/jshell/Snippet$SubKind;
invokevirtual jdk.jshell.Snippet$SubKind.ordinal:()I
bipush 14
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic jdk.jshell.Snippet$SubKind.CLASS_SUBKIND:Ljdk/jshell/Snippet$SubKind;
invokevirtual jdk.jshell.Snippet$SubKind.ordinal:()I
iconst_5
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic jdk.jshell.Snippet$SubKind.ENUM_SUBKIND:Ljdk/jshell/Snippet$SubKind;
invokevirtual jdk.jshell.Snippet$SubKind.ordinal:()I
bipush 7
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: aload 0
getstatic jdk.jshell.Snippet$SubKind.INTERFACE_SUBKIND:Ljdk/jshell/Snippet$SubKind;
invokevirtual jdk.jshell.Snippet$SubKind.ordinal:()I
bipush 6
iastore
15: goto 17
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
16: pop
StackMap locals:
StackMap stack:
17: aload 0
getstatic jdk.jshell.Snippet$SubKind.METHOD_SUBKIND:Ljdk/jshell/Snippet$SubKind;
invokevirtual jdk.jshell.Snippet$SubKind.ordinal:()I
bipush 9
iastore
18: goto 20
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
19: pop
StackMap locals:
StackMap stack:
20: aload 0
getstatic jdk.jshell.Snippet$SubKind.OTHER_EXPRESSION_SUBKIND:Ljdk/jshell/Snippet$SubKind;
invokevirtual jdk.jshell.Snippet$SubKind.ordinal:()I
bipush 15
iastore
21: goto 23
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
22: pop
StackMap locals:
StackMap stack:
23: aload 0
getstatic jdk.jshell.Snippet$SubKind.SINGLE_STATIC_IMPORT_SUBKIND:Ljdk/jshell/Snippet$SubKind;
invokevirtual jdk.jshell.Snippet$SubKind.ordinal:()I
iconst_3
iastore
24: goto 26
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
25: pop
StackMap locals:
StackMap stack:
26: aload 0
getstatic jdk.jshell.Snippet$SubKind.SINGLE_TYPE_IMPORT_SUBKIND:Ljdk/jshell/Snippet$SubKind;
invokevirtual jdk.jshell.Snippet$SubKind.ordinal:()I
iconst_1
iastore
27: goto 29
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
28: pop
StackMap locals:
StackMap stack:
29: aload 0
getstatic jdk.jshell.Snippet$SubKind.STATEMENT_SUBKIND:Ljdk/jshell/Snippet$SubKind;
invokevirtual jdk.jshell.Snippet$SubKind.ordinal:()I
bipush 16
iastore
30: goto 32
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
31: pop
StackMap locals:
StackMap stack:
32: aload 0
getstatic jdk.jshell.Snippet$SubKind.STATIC_IMPORT_ON_DEMAND_SUBKIND:Ljdk/jshell/Snippet$SubKind;
invokevirtual jdk.jshell.Snippet$SubKind.ordinal:()I
iconst_4
iastore
33: goto 35
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
34: pop
StackMap locals:
StackMap stack:
35: aload 0
getstatic jdk.jshell.Snippet$SubKind.TEMP_VAR_EXPRESSION_SUBKIND:Ljdk/jshell/Snippet$SubKind;
invokevirtual jdk.jshell.Snippet$SubKind.ordinal:()I
bipush 12
iastore
36: goto 38
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
37: pop
StackMap locals:
StackMap stack:
38: aload 0
getstatic jdk.jshell.Snippet$SubKind.TYPE_IMPORT_ON_DEMAND_SUBKIND:Ljdk/jshell/Snippet$SubKind;
invokevirtual jdk.jshell.Snippet$SubKind.ordinal:()I
iconst_2
iastore
39: goto 41
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
40: pop
StackMap locals:
StackMap stack:
41: aload 0
getstatic jdk.jshell.Snippet$SubKind.UNKNOWN_SUBKIND:Ljdk/jshell/Snippet$SubKind;
invokevirtual jdk.jshell.Snippet$SubKind.ordinal:()I
bipush 17
iastore
42: goto 44
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
43: pop
StackMap locals:
StackMap stack:
44: aload 0
getstatic jdk.jshell.Snippet$SubKind.VAR_DECLARATION_SUBKIND:Ljdk/jshell/Snippet$SubKind;
invokevirtual jdk.jshell.Snippet$SubKind.ordinal:()I
bipush 10
iastore
45: goto 47
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
46: pop
StackMap locals:
StackMap stack:
47: aload 0
getstatic jdk.jshell.Snippet$SubKind.VAR_DECLARATION_WITH_INITIALIZER_SUBKIND:Ljdk/jshell/Snippet$SubKind;
invokevirtual jdk.jshell.Snippet$SubKind.ordinal:()I
bipush 11
iastore
48: goto 50
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
49: pop
StackMap locals:
StackMap stack:
50: aload 0
getstatic jdk.jshell.Snippet$SubKind.VAR_VALUE_SUBKIND:Ljdk/jshell/Snippet$SubKind;
invokevirtual jdk.jshell.Snippet$SubKind.ordinal:()I
bipush 13
iastore
51: goto 53
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
52: pop
StackMap locals:
StackMap stack:
53: aload 0
dup
putstatic jdk.internal.jshell.tool.JShellTool.$SWITCH_TABLE$jdk$jshell$Snippet$SubKind:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
11 12 13 Class java.lang.NoSuchFieldError
14 15 16 Class java.lang.NoSuchFieldError
17 18 19 Class java.lang.NoSuchFieldError
20 21 22 Class java.lang.NoSuchFieldError
23 24 25 Class java.lang.NoSuchFieldError
26 27 28 Class java.lang.NoSuchFieldError
29 30 31 Class java.lang.NoSuchFieldError
32 33 34 Class java.lang.NoSuchFieldError
35 36 37 Class java.lang.NoSuchFieldError
38 39 40 Class java.lang.NoSuchFieldError
41 42 43 Class java.lang.NoSuchFieldError
44 45 46 Class java.lang.NoSuchFieldError
47 48 49 Class java.lang.NoSuchFieldError
50 51 52 Class java.lang.NoSuchFieldError
static int[] $SWITCH_TABLE$jdk$jshell$Snippet$Status();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic jdk.internal.jshell.tool.JShellTool.$SWITCH_TABLE$jdk$jshell$Snippet$Status:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic jdk.jshell.Snippet$Status.values:()[Ljdk/jshell/Snippet$Status;
arraylength
newarray 10
astore 0
2: aload 0
getstatic jdk.jshell.Snippet$Status.DROPPED:Ljdk/jshell/Snippet$Status;
invokevirtual jdk.jshell.Snippet$Status.ordinal:()I
iconst_4
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic jdk.jshell.Snippet$Status.NONEXISTENT:Ljdk/jshell/Snippet$Status;
invokevirtual jdk.jshell.Snippet$Status.ordinal:()I
bipush 7
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic jdk.jshell.Snippet$Status.OVERWRITTEN:Ljdk/jshell/Snippet$Status;
invokevirtual jdk.jshell.Snippet$Status.ordinal:()I
iconst_5
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic jdk.jshell.Snippet$Status.RECOVERABLE_DEFINED:Ljdk/jshell/Snippet$Status;
invokevirtual jdk.jshell.Snippet$Status.ordinal:()I
iconst_2
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: aload 0
getstatic jdk.jshell.Snippet$Status.RECOVERABLE_NOT_DEFINED:Ljdk/jshell/Snippet$Status;
invokevirtual jdk.jshell.Snippet$Status.ordinal:()I
iconst_3
iastore
15: goto 17
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
16: pop
StackMap locals:
StackMap stack:
17: aload 0
getstatic jdk.jshell.Snippet$Status.REJECTED:Ljdk/jshell/Snippet$Status;
invokevirtual jdk.jshell.Snippet$Status.ordinal:()I
bipush 6
iastore
18: goto 20
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
19: pop
StackMap locals:
StackMap stack:
20: aload 0
getstatic jdk.jshell.Snippet$Status.VALID:Ljdk/jshell/Snippet$Status;
invokevirtual jdk.jshell.Snippet$Status.ordinal:()I
iconst_1
iastore
21: goto 23
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
22: pop
StackMap locals:
StackMap stack:
23: aload 0
dup
putstatic jdk.internal.jshell.tool.JShellTool.$SWITCH_TABLE$jdk$jshell$Snippet$Status:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
11 12 13 Class java.lang.NoSuchFieldError
14 15 16 Class java.lang.NoSuchFieldError
17 18 19 Class java.lang.NoSuchFieldError
20 21 22 Class java.lang.NoSuchFieldError
private static boolean lambda$0(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 p Ljava/nio/file/Path;
private static boolean lambda$128(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.isDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 arg0 Ljava/nio/file/Path;
private java.lang.Boolean lambda$16(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Boolean;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool.cmdImports:()Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
0 1 1 arg Ljava/lang/String;
private java.lang.Boolean lambda$17(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Boolean;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool.cmdExit:()Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
0 1 1 arg Ljava/lang/String;
private java.lang.Boolean lambda$18(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Boolean;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual jdk.internal.jshell.tool.JShellTool.cmdEnv:(Ljava/lang/String;)Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
0 1 1 arg Ljava/lang/String;
private java.lang.Boolean lambda$19(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Boolean;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual jdk.internal.jshell.tool.JShellTool.cmdReset:(Ljava/lang/String;)Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
0 1 1 arg Ljava/lang/String;
private java.lang.Boolean lambda$21(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Boolean;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.internal.jshell.tool.JShellTool.cmdHistory:()Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
0 1 1 arg Ljava/lang/String;
private java.lang.Boolean lambda$27(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Boolean;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_m1
invokevirtual jdk.internal.jshell.tool.JShellTool.cmdUseHistoryEntry:(I)Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
0 1 1 arg Ljava/lang/String;
private static boolean lambda$28(jdk.internal.jshell.tool.JShellTool$Command);
descriptor: (Ljdk/internal/jshell/tool/JShellTool$Command;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool$Command.kind:Ljdk/internal/jshell/tool/JShellTool$CommandKind;
getfield jdk.internal.jshell.tool.JShellTool$CommandKind.shouldSuggestCompletions:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 c Ljdk/internal/jshell/tool/JShellTool$Command;
private static java.lang.String lambda$29(jdk.internal.jshell.tool.JShellTool$Command);
descriptor: (Ljdk/internal/jshell/tool/JShellTool$Command;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool$Command.command:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 c Ljdk/internal/jshell/tool/JShellTool$Command;
private static jdk.internal.jshell.tool.JShellTool$CompletionProvider lambda$30(jdk.internal.jshell.tool.JShellTool$Command);
descriptor: (Ljdk/internal/jshell/tool/JShellTool$Command;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool$Command.completions:Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 c Ljdk/internal/jshell/tool/JShellTool$Command;
private static java.lang.String lambda$31(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 m1 Ljava/lang/String;
0 1 1 m2 Ljava/lang/String;
private java.lang.String lambda$33();
descriptor: ()Ljava/lang/String;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "$"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.internal.jshell.tool.JShellTool.currentNameSpace:Ljdk/internal/jshell/tool/JShellTool$NameSpace;
invokevirtual jdk.internal.jshell.tool.JShellTool$NameSpace.tidNext:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
private java.lang.String lambda$34(jdk.jshell.Snippet, java.lang.Integer);
descriptor: (Ljdk/jshell/Snippet;Ljava/lang/Integer;)Ljava/lang/String;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.currentNameSpace:Ljdk/internal/jshell/tool/JShellTool$NameSpace;
aload 0
getfield jdk.internal.jshell.tool.JShellTool.startNamespace:Ljdk/internal/jshell/tool/JShellTool$NameSpace;
if_acmpeq 1
aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
aload 1
invokevirtual jdk.jshell.JShell.status:(Ljdk/jshell/Snippet;)Ljdk/jshell/Snippet$Status;
invokevirtual jdk.jshell.Snippet$Status.isActive:()Z
ifeq 2
1: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.JShellTool.currentNameSpace:Ljdk/internal/jshell/tool/JShellTool$NameSpace;
aload 1
invokevirtual jdk.internal.jshell.tool.JShellTool$NameSpace.tid:(Ljdk/jshell/Snippet;)Ljava/lang/String;
goto 3
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.JShellTool.errorNamespace:Ljdk/internal/jshell/tool/JShellTool$NameSpace;
aload 1
invokevirtual jdk.internal.jshell.tool.JShellTool$NameSpace.tid:(Ljdk/jshell/Snippet;)Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
3: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/jshell/tool/JShellTool;
0 4 1 sn Ljdk/jshell/Snippet;
0 4 2 i Ljava/lang/Integer;
private void lambda$35(jdk.jshell.JShell);
descriptor: (Ljdk/jshell/JShell;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
if_acmpne 3
1: aload 0
ldc "jshell.msg.terminated"
iconst_0
anewarray java.lang.Object
invokevirtual jdk.internal.jshell.tool.JShellTool.hardmsg:(Ljava/lang/String;[Ljava/lang/Object;)V
2: aload 0
iconst_0
putfield jdk.internal.jshell.tool.JShellTool.live:Z
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/jshell/tool/JShellTool;
0 4 1 deadState Ljdk/jshell/JShell;
private static boolean lambda$36(jdk.internal.jshell.tool.JShellTool$Command);
descriptor: (Ljdk/internal/jshell/tool/JShellTool$Command;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool$Command.kind:Ljdk/internal/jshell/tool/JShellTool$CommandKind;
getfield jdk.internal.jshell.tool.JShellTool$CommandKind.isRealCommand:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 c Ljdk/internal/jshell/tool/JShellTool$Command;
private static java.lang.String lambda$37(jdk.internal.jshell.tool.JShellTool$Command);
descriptor: (Ljdk/internal/jshell/tool/JShellTool$Command;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool$Command.command:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 c Ljdk/internal/jshell/tool/JShellTool$Command;
private static boolean lambda$38(java.lang.String, jdk.internal.jshell.tool.JShellTool$Command);
descriptor: (Ljava/lang/String;Ljdk/internal/jshell/tool/JShellTool$Command;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
getfield jdk.internal.jshell.tool.JShellTool$Command.command:Ljava/lang/String;
aload 0
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 command Ljdk/internal/jshell/tool/JShellTool$Command;
private static jdk.internal.jshell.tool.JShellTool$Command[] lambda$39(int);
descriptor: (I)[Ljdk/internal/jshell/tool/JShellTool$Command;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: iload 0
anewarray jdk.internal.jshell.tool.JShellTool$Command
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.util.List lambda$40(jdk.internal.jshell.tool.JShellTool$CompletionProvider, java.lang.String, int, int[]);
descriptor: (Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;Ljava/lang/String;I[I)Ljava/util/List;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=5, locals=7, args_size=4
start local 1 start local 2 start local 3 0: invokestatic java.util.Collections.emptyList:()Ljava/util/List;
astore 4
start local 4 1: aload 1
bipush 32
invokevirtual java.lang.String.indexOf:(I)I
istore 5
start local 5 2: iload 5
iconst_m1
if_icmpeq 6
3: aload 1
iload 5
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 6
start local 6 4: aload 0
aload 6
iload 2
iload 5
isub
iconst_1
isub
aload 3
invokeinterface jdk.internal.jshell.tool.JShellTool$CompletionProvider.completionSuggestions:(Ljava/lang/String;I[I)Ljava/util/List;
astore 4
5: aload 3
iconst_0
dup2
iaload
iload 5
iconst_1
iadd
iadd
iastore
end local 6 6: StackMap locals: java.util.List int
StackMap stack:
aload 4
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 LocalVariableTable:
Start End Slot Name Signature
0 7 1 input Ljava/lang/String;
0 7 2 cursor I
0 7 3 anchor [I
1 7 4 result Ljava/util/List<Ljdk/jshell/SourceCodeAnalysis$Suggestion;>;
2 7 5 space I
4 6 6 rest Ljava/lang/String;
private static java.util.List lambda$41(java.util.function.Predicate, java.lang.String, int, int[]);
descriptor: (Ljava/util/function/Predicate;Ljava/lang/String;I[I)Ljava/util/List;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=12, args_size=4
start local 1 start local 2 start local 3 0: aload 1
bipush 47
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 4
start local 4 1: aload 1
iconst_0
iload 4
iconst_1
iadd
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 5
start local 5 2: iload 4
iconst_m1
if_icmpeq 3
aload 1
iload 4
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
goto 4
StackMap locals: int java.lang.String
StackMap stack:
3: aload 1
StackMap locals:
StackMap stack: java.lang.String
4: astore 6
start local 6 5: aload 5
invokestatic jdk.internal.jshell.tool.JShellTool.toPathResolvingUserHome:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 7
start local 7 6: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 8
start local 8 7: aconst_null
astore 9
aconst_null
astore 10
8: aload 7
invokestatic java.nio.file.Files.list:(Ljava/nio/file/Path;)Ljava/util/stream/Stream;
astore 11
start local 11 9: aload 11
aload 0
aload 6
invokedynamic test(Ljava/util/function/Predicate;Ljava/lang/String;)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/internal/jshell/tool/JShellTool.lambda$42(Ljava/util/function/Predicate;Ljava/lang/String;Ljava/nio/file/Path;)Z (6)
(Ljava/nio/file/Path;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
10: 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/internal/jshell/tool/JShellTool.lambda$43(Ljava/nio/file/Path;)Ljdk/internal/jshell/tool/JShellTool$ArgSuggestion; (6)
(Ljava/nio/file/Path;)Ljdk/internal/jshell/tool/JShellTool$ArgSuggestion;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
11: aload 8
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljava/util/List;)Ljava/util/function/Consumer;
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;)V
java/util/List.add(Ljava/lang/Object;)Z (9 itf)
(Ljdk/internal/jshell/tool/JShellTool$ArgSuggestion;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
12: aload 11
ifnull 19
aload 11
invokeinterface java.util.stream.Stream.close:()V
goto 19
StackMap locals: java.util.function.Predicate java.lang.String int int[] int java.lang.String java.lang.String java.nio.file.Path java.util.List java.lang.Throwable java.lang.Throwable java.util.stream.Stream
StackMap stack: java.lang.Throwable
13: astore 9
aload 11
ifnull 14
aload 11
invokeinterface java.util.stream.Stream.close:()V
end local 11 StackMap locals:
StackMap stack:
14: aload 9
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
15: astore 10
aload 9
ifnonnull 16
aload 10
astore 9
goto 17
StackMap locals:
StackMap stack:
16: aload 9
aload 10
if_acmpeq 17
aload 9
aload 10
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
17: aload 9
athrow
StackMap locals: java.util.function.Predicate java.lang.String int int[] int java.lang.String java.lang.String java.nio.file.Path java.util.List
StackMap stack: java.io.IOException
18: pop
19: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.lang.String.isEmpty:()Z
ifeq 25
20: invokestatic java.nio.file.FileSystems.getDefault:()Ljava/nio/file/FileSystem;
invokevirtual java.nio.file.FileSystem.getRootDirectories:()Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.spliterator:()Ljava/util/Spliterator;
iconst_0
invokestatic java.util.stream.StreamSupport.stream:(Ljava/util/Spliterator;Z)Ljava/util/stream/Stream;
21: 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/internal/jshell/tool/JShellTool.lambda$45(Ljava/nio/file/Path;)Z (6)
(Ljava/nio/file/Path;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
22: aload 0
aload 6
invokedynamic test(Ljava/util/function/Predicate;Ljava/lang/String;)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/internal/jshell/tool/JShellTool.lambda$46(Ljava/util/function/Predicate;Ljava/lang/String;Ljava/nio/file/Path;)Z (6)
(Ljava/nio/file/Path;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
23: 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/internal/jshell/tool/JShellTool.lambda$47(Ljava/nio/file/Path;)Ljdk/internal/jshell/tool/JShellTool$ArgSuggestion; (6)
(Ljava/nio/file/Path;)Ljdk/internal/jshell/tool/JShellTool$ArgSuggestion;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
24: aload 8
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljava/util/List;)Ljava/util/function/Consumer;
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;)V
java/util/List.add(Ljava/lang/Object;)Z (9 itf)
(Ljdk/internal/jshell/tool/JShellTool$ArgSuggestion;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
25: StackMap locals:
StackMap stack:
aload 3
iconst_0
aload 5
invokevirtual java.lang.String.length:()I
iastore
26: aload 8
areturn
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 LocalVariableTable:
Start End Slot Name Signature
0 27 1 code Ljava/lang/String;
0 27 2 cursor I
0 27 3 anchor [I
1 27 4 lastSlash I
2 27 5 path Ljava/lang/String;
5 27 6 prefix Ljava/lang/String;
6 27 7 current Ljava/nio/file/Path;
7 27 8 result Ljava/util/List<Ljdk/jshell/SourceCodeAnalysis$Suggestion;>;
9 14 11 dir Ljava/util/stream/Stream<Ljava/nio/file/Path;>;
Exception table:
from to target type
9 12 13 any
8 15 15 any
7 18 18 Class java.io.IOException
private static boolean lambda$49(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.isDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifne 3
1: aload 0
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
ldc ".zip"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 3
2: aload 0
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
ldc ".jar"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 3
iconst_0
goto 4
StackMap locals:
StackMap stack:
3: iconst_1
StackMap locals:
StackMap stack: int
4: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 p Ljava/nio/file/Path;
private static java.util.List lambda$50(java.util.function.Supplier, java.lang.String, int, int[]);
descriptor: (Ljava/util/function/Supplier;Ljava/lang/String;I[I)Ljava/util/List;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=7, args_size=4
start local 1 start local 2 start local 3 0: aload 3
iconst_0
iconst_0
iastore
1: aload 1
bipush 32
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 4
start local 4 2: new java.util.HashSet
dup
aload 1
ldc " "
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokespecial java.util.HashSet.<init>:(Ljava/util/Collection;)V
astore 5
start local 5 3: aload 5
ldc "-all"
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifne 4
aload 5
ldc "-history"
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 5
4: StackMap locals: int java.util.Set
StackMap stack:
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
areturn
5: StackMap locals:
StackMap stack:
aload 1
iload 4
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 6
start local 6 6: aload 0
invokeinterface java.util.function.Supplier.get:()Ljava/lang/Object;
checkcast java.util.stream.Stream
7: aload 5
invokedynamic test(Ljava/util/Set;)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/internal/jshell/tool/JShellTool.lambda$51(Ljava/util/Set;Ljdk/jshell/Snippet;)Z (6)
(Ljdk/jshell/Snippet;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
8: 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/internal/jshell/tool/JShellTool.lambda$52(Ljdk/jshell/Snippet;)Ljava/util/stream/Stream; (6)
(Ljdk/jshell/Snippet;)Ljava/util/stream/Stream;
invokeinterface java.util.stream.Stream.flatMap:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
9: aload 6
invokedynamic test(Ljava/lang/String;)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/internal/jshell/tool/JShellTool.lambda$53(Ljava/lang/String;Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
10: 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/internal/jshell/tool/JShellTool$ArgSuggestion.<init>(Ljava/lang/String;)V (8)
(Ljava/lang/String;)Ljdk/internal/jshell/tool/JShellTool$ArgSuggestion;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)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: areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 LocalVariableTable:
Start End Slot Name Signature
0 13 1 prefix Ljava/lang/String;
0 13 2 cursor I
0 13 3 anchor [I
2 13 4 space I
3 13 5 prior Ljava/util/Set<Ljava/lang/String;>;
6 13 6 argPrefix Ljava/lang/String;
private java.util.List lambda$55(jdk.internal.jshell.tool.JShellTool$CompletionProvider, java.util.function.Supplier, java.lang.String, int, int[]);
descriptor: (Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;Ljava/util/function/Supplier;Ljava/lang/String;I[I)Ljava/util/List;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=5, locals=8, args_size=6
start local 0 start local 3 start local 4 start local 5 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 6
start local 6 1: aload 3
bipush 32
invokevirtual java.lang.String.lastIndexOf:(I)I
iconst_1
iadd
istore 7
start local 7 2: iload 7
ifne 4
3: aload 6
aload 1
aload 3
iload 4
aload 5
invokeinterface jdk.internal.jshell.tool.JShellTool$CompletionProvider.completionSuggestions:(Ljava/lang/String;I[I)Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
4: StackMap locals: java.util.List int
StackMap stack:
aload 6
aload 0
aload 2
invokevirtual jdk.internal.jshell.tool.JShellTool.snippetCompletion:(Ljava/util/function/Supplier;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
aload 3
iload 4
aload 5
invokeinterface jdk.internal.jshell.tool.JShellTool$CompletionProvider.completionSuggestions:(Ljava/lang/String;I[I)Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
5: aload 5
iconst_0
dup2
iaload
iload 7
iadd
iastore
6: aload 6
areturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/jshell/tool/JShellTool;
0 7 3 code Ljava/lang/String;
0 7 4 cursor I
0 7 5 anchor [I
1 7 6 result Ljava/util/List<Ljdk/jshell/SourceCodeAnalysis$Suggestion;>;
2 7 7 pastSpace I
private java.util.List lambda$56(java.lang.String, int, int[]);
descriptor: (Ljava/lang/String;I[I)Ljava/util/List;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
bipush 32
invokevirtual java.lang.String.indexOf:(I)I
iconst_1
iadd
istore 5
start local 5 1: iload 5
ifne 13
2: aload 1
invokevirtual java.lang.String.length:()I
ifle 3
aload 1
ldc "/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 3
iconst_1
goto 4
StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String int int[] top int
StackMap stack:
3: iconst_0
StackMap locals:
StackMap stack: int
4: istore 6
start local 6 5: new jdk.internal.jshell.tool.JShellTool$FixedCompletionProvider
dup
aload 0
getfield jdk.internal.jshell.tool.JShellTool.commands:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.stream:()Ljava/util/stream/Stream;
6: 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/internal/jshell/tool/JShellTool.lambda$57(Ljdk/internal/jshell/tool/JShellTool$Command;)Z (6)
(Ljdk/internal/jshell/tool/JShellTool$Command;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
7: iload 6
invokedynamic apply(Z)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/JShellTool.lambda$58(ZLjdk/internal/jshell/tool/JShellTool$Command;)Ljava/lang/String; (6)
(Ljdk/internal/jshell/tool/JShellTool$Command;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
8: invokedynamic apply()Ljava/util/function/IntFunction;
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:
(I)Ljava/lang/Object;
jdk/internal/jshell/tool/JShellTool.lambda$79(I)[Ljava/lang/String; (6)
(I)[Ljava/lang/String;
invokeinterface java.util.stream.Stream.toArray:(Ljava/util/function/IntFunction;)[Ljava/lang/Object;
checkcast java.lang.String[]
9: invokespecial jdk.internal.jshell.tool.JShellTool$FixedCompletionProvider.<init>:([Ljava/lang/String;)V
10: aload 1
iload 2
aload 3
invokevirtual jdk.internal.jshell.tool.JShellTool$FixedCompletionProvider.completionSuggestions:(Ljava/lang/String;I[I)Ljava/util/List;
11: astore 4
end local 6 start local 4 12: goto 19
end local 4 StackMap locals:
StackMap stack:
13: aload 1
ldc "/se"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 14
aload 1
ldc "se"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 18
14: StackMap locals:
StackMap stack:
new jdk.internal.jshell.tool.JShellTool$FixedCompletionProvider
dup
getstatic jdk.internal.jshell.tool.JShellTool.SET_SUBCOMMANDS:[Ljava/lang/String;
invokespecial jdk.internal.jshell.tool.JShellTool$FixedCompletionProvider.<init>:([Ljava/lang/String;)V
15: aload 1
iload 5
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
iload 2
iload 5
isub
aload 3
invokevirtual jdk.internal.jshell.tool.JShellTool$FixedCompletionProvider.completionSuggestions:(Ljava/lang/String;I[I)Ljava/util/List;
16: astore 4
start local 4 17: goto 19
end local 4 18: StackMap locals:
StackMap stack:
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
astore 4
start local 4 19: StackMap locals: jdk.internal.jshell.tool.JShellTool java.lang.String int int[] java.util.List int
StackMap stack:
aload 3
iconst_0
dup2
iaload
iload 5
iadd
iastore
20: aload 4
areturn
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 21 0 this Ljdk/internal/jshell/tool/JShellTool;
0 21 1 code Ljava/lang/String;
0 21 2 cursor I
0 21 3 anchor [I
12 13 4 result Ljava/util/List<Ljdk/jshell/SourceCodeAnalysis$Suggestion;>;
17 18 4 result Ljava/util/List<Ljdk/jshell/SourceCodeAnalysis$Suggestion;>;
19 21 4 result Ljava/util/List<Ljdk/jshell/SourceCodeAnalysis$Suggestion;>;
1 21 5 pastSpace I
5 12 6 noslash Z
private static java.util.List lambda$60(java.lang.String, int, int[]);
descriptor: (Ljava/lang/String;I[I)Ljava/util/List;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 3
start local 3 1: aload 0
bipush 32
invokevirtual java.lang.String.indexOf:(I)I
istore 4
start local 4 2: iload 4
iconst_m1
if_icmpne 4
3: aload 3
getstatic jdk.internal.jshell.tool.JShellTool.SAVE_OPTION_COMPLETION_PROVIDER:Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
aload 0
iload 1
aload 2
invokeinterface jdk.internal.jshell.tool.JShellTool$CompletionProvider.completionSuggestions:(Ljava/lang/String;I[I)Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
4: StackMap locals: java.util.List int
StackMap stack:
aload 3
getstatic jdk.internal.jshell.tool.JShellTool.FILE_COMPLETION_PROVIDER:Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
aload 0
iload 4
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
iload 1
iload 4
isub
iconst_1
isub
aload 2
invokeinterface jdk.internal.jshell.tool.JShellTool$CompletionProvider.completionSuggestions:(Ljava/lang/String;I[I)Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
5: aload 2
iconst_0
dup2
iaload
iload 4
iconst_1
iadd
iadd
iastore
6: aload 3
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 code Ljava/lang/String;
0 7 1 cursor I
0 7 2 anchor [I
1 7 3 result Ljava/util/List<Ljdk/jshell/SourceCodeAnalysis$Suggestion;>;
2 7 4 space I
private static java.util.List lambda$61(jdk.internal.jshell.tool.JShellTool$CompletionProvider, java.lang.String, int, int[]);
descriptor: (Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;Ljava/lang/String;I[I)Ljava/util/List;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=9, args_size=4
start local 1 start local 2 start local 3 0: getstatic jdk.internal.jshell.tool.JShellTool.OPTION_VALUE_PATTERN:Ljava/util/regex/Pattern;
aload 1
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 4
start local 4 1: aload 4
invokevirtual java.util.regex.Matcher.matches:()Z
ifeq 15
2: aload 4
ldc "flag"
invokevirtual java.util.regex.Matcher.group:(Ljava/lang/String;)Ljava/lang/String;
astore 5
start local 5 3: getstatic jdk.internal.jshell.tool.JShellTool.ARG_OPTIONS:Ljava/util/Map;
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
4: aload 5
invokedynamic test(Ljava/lang/String;)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/internal/jshell/tool/JShellTool.lambda$62(Ljava/lang/String;Ljava/util/Map$Entry;)Z (6)
(Ljava/util/Map$Entry;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
5: 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/internal/jshell/tool/JShellTool.lambda$63(Ljava/util/Map$Entry;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider; (6)
(Ljava/util/Map$Entry;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
6: 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
7: astore 6
start local 6 8: aload 6
invokeinterface java.util.List.size:()I
iconst_1
if_icmpne 15
9: aload 4
ldc "val"
invokevirtual java.util.regex.Matcher.start:(Ljava/lang/String;)I
istore 7
start local 7 10: aload 6
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast jdk.internal.jshell.tool.JShellTool$CompletionProvider
11: aload 4
ldc "val"
invokevirtual java.util.regex.Matcher.group:(Ljava/lang/String;)Ljava/lang/String;
iload 2
iload 7
isub
aload 3
12: invokeinterface jdk.internal.jshell.tool.JShellTool$CompletionProvider.completionSuggestions:(Ljava/lang/String;I[I)Ljava/util/List;
astore 8
start local 8 13: aload 3
iconst_0
dup2
iaload
iload 7
iadd
iastore
14: aload 8
areturn
end local 8 end local 7 end local 6 end local 5 15: StackMap locals: java.util.regex.Matcher
StackMap stack:
getstatic jdk.internal.jshell.tool.JShellTool.OPTION_PATTERN:Ljava/util/regex/Pattern;
aload 1
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 5
start local 5 16: aload 5
invokevirtual java.util.regex.Matcher.matches:()Z
ifeq 29
17: aload 5
ldc "flag"
invokevirtual java.util.regex.Matcher.start:(Ljava/lang/String;)I
istore 6
start local 6 18: aload 0
19: aload 5
ldc "flag"
invokevirtual java.util.regex.Matcher.group:(Ljava/lang/String;)Ljava/lang/String;
iload 2
iload 6
isub
aload 3
20: invokeinterface jdk.internal.jshell.tool.JShellTool$CompletionProvider.completionSuggestions:(Ljava/lang/String;I[I)Ljava/util/List;
astore 7
start local 7 21: aload 5
ldc "dd"
invokevirtual java.util.regex.Matcher.group:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.String.isEmpty:()Z
ifne 27
22: aload 7
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
23: 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/internal/jshell/tool/JShellTool.lambda$64(Ljdk/jshell/SourceCodeAnalysis$Suggestion;)Ljdk/internal/jshell/tool/JShellTool$1; (6)
(Ljdk/jshell/SourceCodeAnalysis$Suggestion;)Ljdk/internal/jshell/tool/JShellTool$1;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
24: 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
25: astore 7
26: iinc 6 -1
27: StackMap locals: java.util.regex.Matcher int java.util.List
StackMap stack:
aload 3
iconst_0
dup2
iaload
iload 6
iadd
iastore
28: aload 7
areturn
end local 7 end local 6 29: StackMap locals:
StackMap stack:
getstatic jdk.internal.jshell.tool.JShellTool.OPTION_PRE_PATTERN:Ljava/util/regex/Pattern;
aload 1
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 6
start local 6 30: aload 6
invokevirtual java.util.regex.Matcher.matches:()Z
ifeq 37
31: aload 6
invokevirtual java.util.regex.Matcher.end:()I
istore 7
start local 7 32: aload 0
33: ldc ""
iload 2
iload 7
isub
aload 3
34: invokeinterface jdk.internal.jshell.tool.JShellTool$CompletionProvider.completionSuggestions:(Ljava/lang/String;I[I)Ljava/util/List;
astore 8
start local 8 35: aload 3
iconst_0
dup2
iaload
iload 7
iadd
iastore
36: aload 8
areturn
end local 8 end local 7 37: StackMap locals: java.util.regex.Matcher
StackMap stack:
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 LocalVariableTable:
Start End Slot Name Signature
0 38 1 code Ljava/lang/String;
0 38 2 cursor I
0 38 3 anchor [I
1 38 4 ovm Ljava/util/regex/Matcher;
3 15 5 flag Ljava/lang/String;
8 15 6 ps Ljava/util/List<Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;>;
10 15 7 pastSpace I
13 15 8 result Ljava/util/List<Ljdk/jshell/SourceCodeAnalysis$Suggestion;>;
16 38 5 om Ljava/util/regex/Matcher;
18 29 6 pastSpace I
21 29 7 result Ljava/util/List<Ljdk/jshell/SourceCodeAnalysis$Suggestion;>;
30 38 6 opp Ljava/util/regex/Matcher;
32 37 7 pastSpace I
35 37 8 result Ljava/util/List<Ljdk/jshell/SourceCodeAnalysis$Suggestion;>;
private static java.util.List lambda$65(jdk.internal.jshell.tool.JShellTool$CompletionProvider, jdk.internal.jshell.tool.JShellTool$CompletionProvider, java.lang.String, int, int[]);
descriptor: (Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;Ljava/lang/String;I[I)Ljava/util/List;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=10, args_size=5
start local 2 start local 3 start local 4 0: iconst_1
newarray 10
dup
iconst_0
iconst_m1
iastore
astore 5
start local 5 1: iconst_1
newarray 10
dup
iconst_0
iconst_m1
iastore
astore 6
start local 6 2: aload 0
aload 2
iload 3
aload 5
invokeinterface jdk.internal.jshell.tool.JShellTool$CompletionProvider.completionSuggestions:(Ljava/lang/String;I[I)Ljava/util/List;
astore 7
start local 7 3: aload 1
aload 2
iload 3
aload 6
invokeinterface jdk.internal.jshell.tool.JShellTool$CompletionProvider.completionSuggestions:(Ljava/lang/String;I[I)Ljava/util/List;
astore 8
start local 8 4: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 9
start local 9 5: aload 5
iconst_0
iaload
aload 6
iconst_0
iaload
if_icmplt 8
6: aload 4
iconst_0
aload 5
iconst_0
iaload
iastore
7: aload 9
aload 7
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
8: StackMap locals: jdk.internal.jshell.tool.JShellTool$CompletionProvider jdk.internal.jshell.tool.JShellTool$CompletionProvider java.lang.String int int[] int[] int[] java.util.List java.util.List java.util.List
StackMap stack:
aload 5
iconst_0
iaload
aload 6
iconst_0
iaload
if_icmpgt 11
9: aload 4
iconst_0
aload 6
iconst_0
iaload
iastore
10: aload 9
aload 8
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
11: StackMap locals:
StackMap stack:
aload 9
areturn
end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 LocalVariableTable:
Start End Slot Name Signature
0 12 2 code Ljava/lang/String;
0 12 3 cursor I
0 12 4 anchor [I
1 12 5 leftAnchor [I
2 12 6 rightAnchor [I
3 12 7 leftSuggestions Ljava/util/List<Ljdk/jshell/SourceCodeAnalysis$Suggestion;>;
4 12 8 rightSuggestions Ljava/util/List<Ljdk/jshell/SourceCodeAnalysis$Suggestion;>;
5 12 9 suggestions Ljava/util/List<Ljdk/jshell/SourceCodeAnalysis$Suggestion;>;
private boolean lambda$66(jdk.jshell.Snippet);
descriptor: (Ljdk/jshell/Snippet;)Z
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
aload 1
invokevirtual jdk.jshell.JShell.status:(Ljdk/jshell/Snippet;)Ljdk/jshell/Snippet$Status;
invokevirtual jdk.jshell.Snippet$Status.isActive:()Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
0 1 1 sn Ljdk/jshell/Snippet;
private static boolean lambda$67(jdk.jshell.Snippet);
descriptor: (Ljdk/jshell/Snippet;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.jshell.Snippet.kind:()Ljdk/jshell/Snippet$Kind;
getstatic jdk.jshell.Snippet$Kind.VAR:Ljdk/jshell/Snippet$Kind;
if_acmpne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 sn Ljdk/jshell/Snippet;
private static jdk.jshell.VarSnippet lambda$68(jdk.jshell.Snippet);
descriptor: (Ljdk/jshell/Snippet;)Ljdk/jshell/VarSnippet;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
checkcast jdk.jshell.VarSnippet
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 sn Ljdk/jshell/Snippet;
private static boolean lambda$69(jdk.jshell.Snippet);
descriptor: (Ljdk/jshell/Snippet;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.jshell.Snippet.kind:()Ljdk/jshell/Snippet$Kind;
getstatic jdk.jshell.Snippet$Kind.METHOD:Ljdk/jshell/Snippet$Kind;
if_acmpne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 sn Ljdk/jshell/Snippet;
private static jdk.jshell.MethodSnippet lambda$70(jdk.jshell.Snippet);
descriptor: (Ljdk/jshell/Snippet;)Ljdk/jshell/MethodSnippet;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
checkcast jdk.jshell.MethodSnippet
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 sn Ljdk/jshell/Snippet;
private static boolean lambda$71(jdk.jshell.Snippet);
descriptor: (Ljdk/jshell/Snippet;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.jshell.Snippet.kind:()Ljdk/jshell/Snippet$Kind;
getstatic jdk.jshell.Snippet$Kind.TYPE_DECL:Ljdk/jshell/Snippet$Kind;
if_acmpne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 sn Ljdk/jshell/Snippet;
private static jdk.jshell.TypeDeclSnippet lambda$72(jdk.jshell.Snippet);
descriptor: (Ljdk/jshell/Snippet;)Ljdk/jshell/TypeDeclSnippet;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
checkcast jdk.jshell.TypeDeclSnippet
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 sn Ljdk/jshell/Snippet;
private static boolean lambda$73(java.lang.String, java.util.Map$Entry);
descriptor: (Ljava/lang/String;Ljava/util/Map$Entry;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
aload 0
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 e Ljava/util/Map$Entry<Ljava/lang/String;Ljdk/internal/jshell/tool/JShellTool$Command;>;
private static boolean lambda$74(java.util.Map$Entry);
descriptor: (Ljava/util/Map$Entry;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast jdk.internal.jshell.tool.JShellTool$Command
getfield jdk.internal.jshell.tool.JShellTool$Command.kind:Ljdk/internal/jshell/tool/JShellTool$CommandKind;
getfield jdk.internal.jshell.tool.JShellTool$CommandKind.showInHelp:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 e Ljava/util/Map$Entry<Ljava/lang/String;Ljdk/internal/jshell/tool/JShellTool$Command;>;
private static int lambda$75(java.util.Map$Entry, java.util.Map$Entry);
descriptor: (Ljava/util/Map$Entry;Ljava/util/Map$Entry;)I
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
aload 1
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 e1 Ljava/util/Map$Entry<Ljava/lang/String;Ljdk/internal/jshell/tool/JShellTool$Command;>;
0 1 1 e2 Ljava/util/Map$Entry<Ljava/lang/String;Ljdk/internal/jshell/tool/JShellTool$Command;>;
private void lambda$76(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.prefs:Ljdk/internal/jshell/tool/PersistentStorage;
ldc "MODE"
aload 1
invokeinterface jdk.internal.jshell.tool.PersistentStorage.put:(Ljava/lang/String;Ljava/lang/String;)V
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
0 1 1 retained Ljava/lang/String;
private void lambda$77(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.prefs:Ljdk/internal/jshell/tool/PersistentStorage;
ldc "FEEDBACK"
aload 1
invokeinterface jdk.internal.jshell.tool.PersistentStorage.put:(Ljava/lang/String;Ljava/lang/String;)V
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
0 1 1 fb Ljava/lang/String;
private static boolean lambda$78(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
aload 0
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 s Ljava/lang/String;
private static java.lang.String[] lambda$79(int);
descriptor: (I)[Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: iload 0
anewarray java.lang.String
areturn
LocalVariableTable:
Start End Slot Name Signature
private static boolean lambda$80(java.lang.String, jdk.internal.jshell.tool.JShellTool$Command);
descriptor: (Ljava/lang/String;Ljdk/internal/jshell/tool/JShellTool$Command;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
getfield jdk.internal.jshell.tool.JShellTool$Command.command:Ljava/lang/String;
aload 0
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 2
1: aload 1
getfield jdk.internal.jshell.tool.JShellTool$Command.command:Ljava/lang/String;
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
aload 0
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 2
iconst_0
goto 3
StackMap locals:
StackMap stack:
2: iconst_1
StackMap locals:
StackMap stack: int
3: ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 4 1 c Ljdk/internal/jshell/tool/JShellTool$Command;
private static boolean lambda$82(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
aload 0
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 s Ljava/lang/String;
private static boolean lambda$84(jdk.internal.jshell.tool.JShellTool$Command);
descriptor: (Ljdk/internal/jshell/tool/JShellTool$Command;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool$Command.kind:Ljdk/internal/jshell/tool/JShellTool$CommandKind;
getfield jdk.internal.jshell.tool.JShellTool$CommandKind.showInHelp:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 cmd Ljdk/internal/jshell/tool/JShellTool$Command;
private java.lang.String lambda$85(jdk.internal.jshell.tool.JShellTool$Command);
descriptor: (Ljdk/internal/jshell/tool/JShellTool$Command;)Ljava/lang/String;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
aload 1
getfield jdk.internal.jshell.tool.JShellTool$Command.command:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
new java.lang.StringBuilder
dup
aload 1
getfield jdk.internal.jshell.tool.JShellTool$Command.helpKey:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".args"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual jdk.internal.jshell.tool.JShellTool.getResourceString:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
0 1 1 cmd Ljdk/internal/jshell/tool/JShellTool$Command;
private java.lang.String lambda$86(jdk.internal.jshell.tool.JShellTool$Command);
descriptor: (Ljdk/internal/jshell/tool/JShellTool$Command;)Ljava/lang/String;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new java.lang.StringBuilder
dup
aload 1
getfield jdk.internal.jshell.tool.JShellTool$Command.helpKey:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".summary"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual jdk.internal.jshell.tool.JShellTool.getResourceString:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
0 1 1 cmd Ljdk/internal/jshell/tool/JShellTool$Command;
private static boolean lambda$87(jdk.internal.jshell.tool.JShellTool$Command);
descriptor: (Ljdk/internal/jshell/tool/JShellTool$Command;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool$Command.kind:Ljdk/internal/jshell/tool/JShellTool$CommandKind;
getstatic jdk.internal.jshell.tool.JShellTool$CommandKind.HELP_SUBJECT:Ljdk/internal/jshell/tool/JShellTool$CommandKind;
if_acmpne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 cmd Ljdk/internal/jshell/tool/JShellTool$Command;
private static java.lang.String lambda$88(jdk.internal.jshell.tool.JShellTool$Command);
descriptor: (Ljdk/internal/jshell/tool/JShellTool$Command;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool$Command.command:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 cmd Ljdk/internal/jshell/tool/JShellTool$Command;
private java.lang.String lambda$89(jdk.internal.jshell.tool.JShellTool$Command);
descriptor: (Ljdk/internal/jshell/tool/JShellTool$Command;)Ljava/lang/String;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new java.lang.StringBuilder
dup
aload 1
getfield jdk.internal.jshell.tool.JShellTool$Command.helpKey:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".summary"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual jdk.internal.jshell.tool.JShellTool.getResourceString:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
0 1 1 cmd Ljdk/internal/jshell/tool/JShellTool$Command;
private boolean lambda$92(java.lang.String, jdk.jshell.Snippet);
descriptor: (Ljava/lang/String;Ljdk/jshell/Snippet;)Z
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 2 0: aload 0
aload 2
invokevirtual jdk.internal.jshell.tool.JShellTool.isActive:(Ljdk/jshell/Snippet;)Z
ifeq 1
aload 0
aload 2
aload 1
invokevirtual jdk.internal.jshell.tool.JShellTool.matchingDeclaration:(Ljdk/jshell/Snippet;Ljava/lang/String;)Z
ifeq 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/jshell/tool/JShellTool;
0 3 2 sn TT;
private boolean lambda$93(java.lang.String, jdk.jshell.Snippet);
descriptor: (Ljava/lang/String;Ljdk/jshell/Snippet;)Z
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 2 0: aload 0
aload 2
aload 1
invokevirtual jdk.internal.jshell.tool.JShellTool.matchingDeclaration:(Ljdk/jshell/Snippet;Ljava/lang/String;)Z
ireturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
0 1 2 sn TT;
private static boolean lambda$94(java.lang.String, jdk.jshell.Snippet);
descriptor: (Ljava/lang/String;Ljdk/jshell/Snippet;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
invokevirtual jdk.jshell.Snippet.id:()Ljava/lang/String;
aload 0
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 sn TT;
private static java.lang.String lambda$96(jdk.jshell.Snippet);
descriptor: (Ljdk/jshell/Snippet;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=7, locals=1, args_size=1
start local 0 0: ldc "\n/drop %-5s : %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
invokevirtual jdk.jshell.Snippet.id:()Ljava/lang/String;
aastore
dup
iconst_1
aload 0
invokevirtual jdk.jshell.Snippet.source:()Ljava/lang/String;
ldc "\n"
ldc "\n "
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 sn Ljdk/jshell/Snippet;
private void lambda$97(jdk.jshell.Snippet);
descriptor: (Ljdk/jshell/Snippet;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
aload 1
invokevirtual jdk.jshell.JShell.drop:(Ljdk/jshell/Snippet;)Ljava/util/List;
aload 0
invokedynamic accept(Ljdk/internal/jshell/tool/JShellTool;)Ljava/util/function/Consumer;
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;)V
jdk/internal/jshell/tool/JShellTool.handleEvent(Ljdk/jshell/SnippetEvent;)Z (7)
(Ljdk/jshell/SnippetEvent;)V
invokeinterface java.util.List.forEach:(Ljava/util/function/Consumer;)V
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
0 1 1 sn Ljdk/jshell/Snippet;
private void lambda$101(java.util.Set, jdk.jshell.Snippet);
descriptor: (Ljava/util/Set;Ljdk/jshell/Snippet;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 2 0: aload 2
invokevirtual jdk.jshell.Snippet.source:()Ljava/lang/String;
astore 3
start local 3 1: invokestatic jdk.internal.jshell.tool.JShellTool.$SWITCH_TABLE$jdk$jshell$Snippet$SubKind:()[I
aload 2
invokevirtual jdk.jshell.Snippet.subKind:()Ljdk/jshell/Snippet$SubKind;
invokevirtual jdk.jshell.Snippet$SubKind.ordinal:()I
iaload
tableswitch { // 12 - 17
12: 3
13: 2
14: 3
15: 3
16: 7
17: 3
default: 14
}
2: StackMap locals: java.lang.String
StackMap stack:
goto 15
3: StackMap locals:
StackMap stack:
aload 3
ldc ";"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 5
4: new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ";"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
5: StackMap locals:
StackMap stack:
aload 1
aload 3
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
6: goto 15
7: StackMap locals:
StackMap stack:
aload 3
ldc "}"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 10
8: aload 0
getfield jdk.internal.jshell.tool.JShellTool.analysis:Ljdk/jshell/SourceCodeAnalysis;
aload 3
invokevirtual jdk.jshell.SourceCodeAnalysis.analyzeCompletion:(Ljava/lang/String;)Ljdk/jshell/SourceCodeAnalysis$CompletionInfo;
invokeinterface jdk.jshell.SourceCodeAnalysis$CompletionInfo.source:()Ljava/lang/String;
astore 3
9: goto 12
StackMap locals:
StackMap stack:
10: aload 3
ldc ";"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 12
11: new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ";"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
12: StackMap locals:
StackMap stack:
aload 1
aload 3
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
13: goto 15
14: StackMap locals:
StackMap stack:
aload 1
aload 3
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 3 15: StackMap locals:
StackMap stack:
return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljdk/internal/jshell/tool/JShellTool;
0 16 2 sn Ljdk/jshell/Snippet;
1 15 3 src Ljava/lang/String;
private void lambda$102(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc "Edit Error: %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.hard:(Ljava/lang/String;[Ljava/lang/Object;)V
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
0 1 1 s Ljava/lang/String;
private void lambda$103(java.lang.String[], java.util.function.Consumer, java.lang.String);
descriptor: ([Ljava/lang/String;Ljava/util/function/Consumer;Ljava/lang/String;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 3 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.input:Ljdk/internal/jshell/tool/IOContext;
invokevirtual jdk.internal.jshell.tool.IOContext.terminalEditorRunning:()Z
ifeq 3
1: aload 1
iconst_0
aload 3
aastore
2: goto 4
3: StackMap locals:
StackMap stack:
aload 2
aload 3
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
4: StackMap locals:
StackMap stack:
return
end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/jshell/tool/JShellTool;
0 5 3 s Ljava/lang/String;
private void lambda$104();
descriptor: ()V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.input:Ljdk/internal/jshell/tool/IOContext;
invokevirtual jdk.internal.jshell.tool.IOContext.suspend:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
private void lambda$105();
descriptor: ()V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.input:Ljdk/internal/jshell/tool/IOContext;
invokevirtual jdk.internal.jshell.tool.IOContext.resume:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
private void lambda$106();
descriptor: ()V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "jshell.msg.press.return.to.leave.edit.mode"
invokevirtual jdk.internal.jshell.tool.JShellTool.hardrb:(Ljava/lang/String;)V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
private void lambda$109(boolean[], jdk.jshell.Snippet);
descriptor: ([ZLjdk/jshell/Snippet;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=8, locals=3, args_size=3
start local 0 start local 2 0: aload 1
iconst_0
baload
ifne 3
1: aload 0
getfield jdk.internal.jshell.tool.JShellTool.cmdout:Ljava/io/PrintStream;
invokevirtual java.io.PrintStream.println:()V
2: aload 1
iconst_0
iconst_1
bastore
3: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.jshell.tool.JShellTool.cmdout:Ljava/io/PrintStream;
ldc "%4s : %s\n"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 2
invokevirtual jdk.jshell.Snippet.id:()Ljava/lang/String;
aastore
dup
iconst_1
aload 2
invokevirtual jdk.jshell.Snippet.source:()Ljava/lang/String;
ldc "\n"
ldc "\n "
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
aastore
invokevirtual java.io.PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
4: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/jshell/tool/JShellTool;
0 5 2 sn Ljdk/jshell/Snippet;
private static boolean lambda$110(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.isEmpty:()Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 s Ljava/lang/String;
private void lambda$116(jdk.jshell.VarSnippet);
descriptor: (Ljdk/jshell/VarSnippet;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
aload 1
invokevirtual jdk.jshell.JShell.status:(Ljdk/jshell/Snippet;)Ljdk/jshell/Snippet$Status;
getstatic jdk.jshell.Snippet$Status.VALID:Ljdk/jshell/Snippet$Status;
if_acmpne 2
1: aload 0
getfield jdk.internal.jshell.tool.JShellTool.feedback:Ljdk/internal/jshell/tool/Feedback;
aload 0
getfield jdk.internal.jshell.tool.JShellTool.state:Ljdk/jshell/JShell;
aload 1
invokevirtual jdk.jshell.JShell.varValue:(Ljdk/jshell/VarSnippet;)Ljava/lang/String;
invokevirtual jdk.internal.jshell.tool.Feedback.truncateVarValue:(Ljava/lang/String;)Ljava/lang/String;
goto 3
2: StackMap locals:
StackMap stack:
aload 0
ldc "jshell.msg.vars.not.active"
invokevirtual jdk.internal.jshell.tool.JShellTool.getResourceString:(Ljava/lang/String;)Ljava/lang/String;
3: StackMap locals:
StackMap stack: java.lang.String
astore 2
start local 2 4: aload 0
ldc " %s %s = %s"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 1
invokevirtual jdk.jshell.VarSnippet.typeName:()Ljava/lang/String;
aastore
dup
iconst_1
aload 1
invokevirtual jdk.jshell.VarSnippet.name:()Ljava/lang/String;
aastore
dup
iconst_2
aload 2
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.hard:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 2 5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/jshell/tool/JShellTool;
0 6 1 vk Ljdk/jshell/VarSnippet;
4 5 2 val Ljava/lang/String;
private void lambda$119(jdk.jshell.MethodSnippet);
descriptor: (Ljdk/jshell/MethodSnippet;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=8, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual jdk.jshell.MethodSnippet.signature:()Ljava/lang/String;
astore 2
start local 2 1: aload 2
ldc ")"
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
iconst_1
iadd
istore 3
start local 3 2: iload 3
ifgt 5
3: aload 0
ldc " %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
invokevirtual jdk.jshell.MethodSnippet.name:()Ljava/lang/String;
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.hard:(Ljava/lang/String;[Ljava/lang/Object;)V
4: goto 6
5: StackMap locals: java.lang.String int
StackMap stack:
aload 0
ldc " %s %s%s"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 2
iload 3
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
aastore
dup
iconst_1
aload 1
invokevirtual jdk.jshell.MethodSnippet.name:()Ljava/lang/String;
aastore
dup
iconst_2
aload 2
iconst_0
iload 3
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.hard:(Ljava/lang/String;[Ljava/lang/Object;)V
6: StackMap locals:
StackMap stack:
aload 0
aload 1
iconst_1
invokevirtual jdk.internal.jshell.tool.JShellTool.printSnippetStatus:(Ljdk/jshell/DeclarationSnippet;Z)V
end local 3 end local 2 7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/internal/jshell/tool/JShellTool;
0 8 1 meth Ljdk/jshell/MethodSnippet;
1 7 2 sig Ljava/lang/String;
2 7 3 i I
private void lambda$122(jdk.jshell.TypeDeclSnippet);
descriptor: (Ljdk/jshell/TypeDeclSnippet;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: invokestatic jdk.internal.jshell.tool.JShellTool.$SWITCH_TABLE$jdk$jshell$Snippet$SubKind:()[I
aload 1
invokevirtual jdk.jshell.TypeDeclSnippet.subKind:()Ljdk/jshell/Snippet$SubKind;
invokevirtual jdk.jshell.Snippet$SubKind.ordinal:()I
iaload
tableswitch { // 5 - 8
5: 3
6: 1
7: 5
8: 7
default: 9
}
1: StackMap locals:
StackMap stack:
ldc "interface"
astore 2
start local 2 2: goto 11
end local 2 3: StackMap locals:
StackMap stack:
ldc "class"
astore 2
start local 2 4: goto 11
end local 2 5: StackMap locals:
StackMap stack:
ldc "enum"
astore 2
start local 2 6: goto 11
end local 2 7: StackMap locals:
StackMap stack:
ldc "@interface"
astore 2
start local 2 8: goto 11
end local 2 9: StackMap locals:
StackMap stack:
getstatic jdk.internal.jshell.tool.JShellTool.$assertionsDisabled:Z
ifne 10
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "Wrong kind"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual jdk.jshell.TypeDeclSnippet.subKind:()Ljdk/jshell/Snippet$SubKind;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
10: StackMap locals:
StackMap stack:
ldc "class"
astore 2
start local 2 11: StackMap locals: java.lang.String
StackMap stack:
aload 0
ldc " %s %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 1
invokevirtual jdk.jshell.TypeDeclSnippet.name:()Ljava/lang/String;
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.hard:(Ljava/lang/String;[Ljava/lang/Object;)V
12: aload 0
aload 1
iconst_1
invokevirtual jdk.internal.jshell.tool.JShellTool.printSnippetStatus:(Ljdk/jshell/DeclarationSnippet;Z)V
end local 2 13: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljdk/internal/jshell/tool/JShellTool;
0 14 1 ck Ljdk/jshell/TypeDeclSnippet;
2 3 2 kind Ljava/lang/String;
4 5 2 kind Ljava/lang/String;
6 7 2 kind Ljava/lang/String;
8 9 2 kind Ljava/lang/String;
11 13 2 kind Ljava/lang/String;
private void lambda$123(jdk.jshell.ImportSnippet);
descriptor: (Ljdk/jshell/ImportSnippet;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc " import %s%s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
invokevirtual jdk.jshell.ImportSnippet.isStatic:()Z
ifeq 1
ldc "static "
goto 2
StackMap locals: jdk.internal.jshell.tool.JShellTool jdk.jshell.ImportSnippet
StackMap stack: jdk.internal.jshell.tool.JShellTool java.lang.String java.lang.Object[] java.lang.Object[] int
1: ldc ""
StackMap locals: jdk.internal.jshell.tool.JShellTool jdk.jshell.ImportSnippet
StackMap stack: jdk.internal.jshell.tool.JShellTool java.lang.String java.lang.Object[] java.lang.Object[] int java.lang.String
2: aastore
dup
iconst_1
aload 1
invokevirtual jdk.jshell.ImportSnippet.fullname:()Ljava/lang/String;
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.hard:(Ljava/lang/String;[Ljava/lang/Object;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/jshell/tool/JShellTool;
0 4 1 ik Ljdk/jshell/ImportSnippet;
private static boolean lambda$124(java.lang.String, jdk.jshell.Snippet);
descriptor: (Ljava/lang/String;Ljdk/jshell/Snippet;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
invokevirtual jdk.jshell.Snippet.id:()Ljava/lang/String;
aload 0
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 s Ljdk/jshell/Snippet;
private java.lang.Boolean lambda$125(jdk.jshell.Snippet);
descriptor: (Ljdk/jshell/Snippet;)Ljava/lang/Boolean;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual jdk.internal.jshell.tool.JShellTool.rerunSnippet:(Ljdk/jshell/Snippet;)V
1: iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/jshell/tool/JShellTool;
0 2 1 s Ljdk/jshell/Snippet;
private void lambda$127(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc "%s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual jdk.internal.jshell.tool.JShellTool.hard:(Ljava/lang/String;[Ljava/lang/Object;)V
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jshell/tool/JShellTool;
0 1 1 l Ljava/lang/String;
private static boolean lambda$42(java.util.function.Predicate, java.lang.String, java.nio.file.Path);
descriptor: (Ljava/util/function/Predicate;Ljava/lang/String;Ljava/nio/file/Path;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 2 0: aload 0
aload 2
invokeinterface java.util.function.Predicate.test:(Ljava/lang/Object;)Z
ifeq 1
aload 2
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
aload 1
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 3 2 f Ljava/nio/file/Path;
private static jdk.internal.jshell.tool.JShellTool$ArgSuggestion lambda$43(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljdk/internal/jshell/tool/JShellTool$ArgSuggestion;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: new jdk.internal.jshell.tool.JShellTool$ArgSuggestion
dup
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 0
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
aload 0
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.isDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 1
ldc "/"
goto 2
StackMap locals: java.nio.file.Path
StackMap stack: new 0 new 0 java.lang.StringBuilder
1: ldc ""
StackMap locals: java.nio.file.Path
StackMap stack: new 0 new 0 java.lang.StringBuilder java.lang.String
2: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial jdk.internal.jshell.tool.JShellTool$ArgSuggestion.<init>:(Ljava/lang/String;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 f Ljava/nio/file/Path;
private static boolean lambda$45(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 root Ljava/nio/file/Path;
private static boolean lambda$46(java.util.function.Predicate, java.lang.String, java.nio.file.Path);
descriptor: (Ljava/util/function/Predicate;Ljava/lang/String;Ljava/nio/file/Path;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 2 0: aload 0
aload 2
invokeinterface java.util.function.Predicate.test:(Ljava/lang/Object;)Z
ifeq 1
aload 2
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
aload 1
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 3 2 root Ljava/nio/file/Path;
private static jdk.internal.jshell.tool.JShellTool$ArgSuggestion lambda$47(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljdk/internal/jshell/tool/JShellTool$ArgSuggestion;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new jdk.internal.jshell.tool.JShellTool$ArgSuggestion
dup
aload 0
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
invokespecial jdk.internal.jshell.tool.JShellTool$ArgSuggestion.<init>:(Ljava/lang/String;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 root Ljava/nio/file/Path;
private static boolean lambda$51(java.util.Set, jdk.jshell.Snippet);
descriptor: (Ljava/util/Set;Ljdk/jshell/Snippet;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 0
aload 1
invokevirtual jdk.jshell.Snippet.id:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifne 4
1: aload 1
instanceof jdk.jshell.DeclarationSnippet
ifeq 3
2: aload 0
aload 1
checkcast jdk.jshell.DeclarationSnippet
invokevirtual jdk.jshell.DeclarationSnippet.name:()Ljava/lang/String;
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifne 4
StackMap locals:
StackMap stack:
3: iconst_1
goto 5
StackMap locals:
StackMap stack:
4: iconst_0
StackMap locals:
StackMap stack: int
5: ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 6 1 k Ljdk/jshell/Snippet;
private static java.util.stream.Stream lambda$52(jdk.jshell.Snippet);
descriptor: (Ljdk/jshell/Snippet;)Ljava/util/stream/Stream;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
instanceof jdk.jshell.DeclarationSnippet
ifeq 2
iconst_2
anewarray java.lang.String
dup
iconst_0
1: new java.lang.StringBuilder
dup
aload 0
invokevirtual jdk.jshell.Snippet.id:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
dup
iconst_1
new java.lang.StringBuilder
dup
aload 0
checkcast jdk.jshell.DeclarationSnippet
invokevirtual jdk.jshell.DeclarationSnippet.name:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
invokestatic java.util.stream.Stream.of:([Ljava/lang/Object;)Ljava/util/stream/Stream;
goto 3
2: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 0
invokevirtual jdk.jshell.Snippet.id:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.util.stream.Stream.of:(Ljava/lang/Object;)Ljava/util/stream/Stream;
StackMap locals:
StackMap stack: java.util.stream.Stream
3: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 k Ljdk/jshell/Snippet;
private static boolean lambda$53(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
aload 0
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 k Ljava/lang/String;
private static boolean lambda$57(jdk.internal.jshell.tool.JShellTool$Command);
descriptor: (Ljdk/internal/jshell/tool/JShellTool$Command;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jshell.tool.JShellTool$Command.kind:Ljdk/internal/jshell/tool/JShellTool$CommandKind;
getfield jdk.internal.jshell.tool.JShellTool$CommandKind.showInHelp:Z
ifne 1
aload 0
getfield jdk.internal.jshell.tool.JShellTool$Command.kind:Ljdk/internal/jshell/tool/JShellTool$CommandKind;
getstatic jdk.internal.jshell.tool.JShellTool$CommandKind.HELP_SUBJECT:Ljdk/internal/jshell/tool/JShellTool$CommandKind;
if_acmpeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 cmd Ljdk/internal/jshell/tool/JShellTool$Command;
private static java.lang.String lambda$58(boolean, jdk.internal.jshell.tool.JShellTool$Command);
descriptor: (ZLjdk/internal/jshell/tool/JShellTool$Command;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=2, args_size=2
start local 1 0: new java.lang.StringBuilder
dup
iload 0
ifeq 2
aload 1
getfield jdk.internal.jshell.tool.JShellTool$Command.command:Ljava/lang/String;
ldc "/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 2
1: aload 1
getfield jdk.internal.jshell.tool.JShellTool$Command.command:Ljava/lang/String;
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
goto 3
2: StackMap locals: int jdk.internal.jshell.tool.JShellTool$Command
StackMap stack: new 0 new 0
aload 1
getfield jdk.internal.jshell.tool.JShellTool$Command.command:Ljava/lang/String;
StackMap locals: int jdk.internal.jshell.tool.JShellTool$Command
StackMap stack: new 0 new 0 java.lang.String
3: invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: areturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 6 1 c Ljdk/internal/jshell/tool/JShellTool$Command;
private static boolean lambda$62(java.lang.String, java.util.Map$Entry);
descriptor: (Ljava/lang/String;Ljava/util/Map$Entry;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
aload 0
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 es Ljava/util/Map$Entry<Ljava/lang/String;Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;>;
private static jdk.internal.jshell.tool.JShellTool$CompletionProvider lambda$63(java.util.Map$Entry);
descriptor: (Ljava/util/Map$Entry;)Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast jdk.internal.jshell.tool.JShellTool$CompletionProvider
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 es Ljava/util/Map$Entry<Ljava/lang/String;Ljdk/internal/jshell/tool/JShellTool$CompletionProvider;>;
private static jdk.internal.jshell.tool.JShellTool$1 lambda$64(jdk.jshell.SourceCodeAnalysis$Suggestion);
descriptor: (Ljdk/jshell/SourceCodeAnalysis$Suggestion;)Ljdk/internal/jshell/tool/JShellTool$1;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new jdk.internal.jshell.tool.JShellTool$1
dup
aload 0
invokespecial jdk.internal.jshell.tool.JShellTool$1.<init>:(Ljdk/jshell/SourceCodeAnalysis$Suggestion;)V
1: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 sug Ljdk/jshell/SourceCodeAnalysis$Suggestion;
}
SourceFile: "JShellTool.java"
NestMembers:
jdk.internal.jshell.tool.JShellTool$1 jdk.internal.jshell.tool.JShellTool$1 jdk.internal.jshell.tool.JShellTool$2 jdk.internal.jshell.tool.JShellTool$3 jdk.internal.jshell.tool.JShellTool$ArgSuggestion jdk.internal.jshell.tool.JShellTool$Command jdk.internal.jshell.tool.JShellTool$CommandKind jdk.internal.jshell.tool.JShellTool$CompletionProvider jdk.internal.jshell.tool.JShellTool$DisplayEvent jdk.internal.jshell.tool.JShellTool$EditorSetting jdk.internal.jshell.tool.JShellTool$FixedCompletionProvider jdk.internal.jshell.tool.JShellTool$InitMessageHandler jdk.internal.jshell.tool.JShellTool$NameSpace jdk.internal.jshell.tool.JShellTool$OptionKind jdk.internal.jshell.tool.JShellTool$OptionParserBase jdk.internal.jshell.tool.JShellTool$OptionParserCommandLine jdk.internal.jshell.tool.JShellTool$OptionParserReload jdk.internal.jshell.tool.JShellTool$Options jdk.internal.jshell.tool.JShellTool$ReplayableHistory jdk.internal.jshell.tool.JShellTool$SaveHandler jdk.internal.jshell.tool.JShellTool$SetEditor jdk.internal.jshell.tool.JShellTool$SnippetInfo jdk.internal.jshell.tool.JShellTool$SnippetPredicate
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Entry = java.util.Map$Entry of java.util.Map
public final FormatAction = jdk.internal.jshell.tool.Feedback$FormatAction of jdk.internal.jshell.tool.Feedback
public final FormatWhen = jdk.internal.jshell.tool.Feedback$FormatWhen of jdk.internal.jshell.tool.Feedback
InputInterruptedException = jdk.internal.jshell.tool.IOContext$InputInterruptedException of jdk.internal.jshell.tool.IOContext
jdk.internal.jshell.tool.JShellTool$1
jdk.internal.jshell.tool.JShellTool$2
jdk.internal.jshell.tool.JShellTool$3
ArgSuggestion = jdk.internal.jshell.tool.JShellTool$ArgSuggestion of jdk.internal.jshell.tool.JShellTool
final Command = jdk.internal.jshell.tool.JShellTool$Command of jdk.internal.jshell.tool.JShellTool
final CommandKind = jdk.internal.jshell.tool.JShellTool$CommandKind of jdk.internal.jshell.tool.JShellTool
abstract CompletionProvider = jdk.internal.jshell.tool.JShellTool$CompletionProvider of jdk.internal.jshell.tool.JShellTool
DisplayEvent = jdk.internal.jshell.tool.JShellTool$DisplayEvent of jdk.internal.jshell.tool.JShellTool
EditorSetting = jdk.internal.jshell.tool.JShellTool$EditorSetting of jdk.internal.jshell.tool.JShellTool
final FixedCompletionProvider = jdk.internal.jshell.tool.JShellTool$FixedCompletionProvider of jdk.internal.jshell.tool.JShellTool
private InitMessageHandler = jdk.internal.jshell.tool.JShellTool$InitMessageHandler of jdk.internal.jshell.tool.JShellTool
NameSpace = jdk.internal.jshell.tool.JShellTool$NameSpace of jdk.internal.jshell.tool.JShellTool
private final OptionKind = jdk.internal.jshell.tool.JShellTool$OptionKind of jdk.internal.jshell.tool.JShellTool
private OptionParserBase = jdk.internal.jshell.tool.JShellTool$OptionParserBase of jdk.internal.jshell.tool.JShellTool
private OptionParserCommandLine = jdk.internal.jshell.tool.JShellTool$OptionParserCommandLine of jdk.internal.jshell.tool.JShellTool
private OptionParserReload = jdk.internal.jshell.tool.JShellTool$OptionParserReload of jdk.internal.jshell.tool.JShellTool
private Options = jdk.internal.jshell.tool.JShellTool$Options of jdk.internal.jshell.tool.JShellTool
private ReplayableHistory = jdk.internal.jshell.tool.JShellTool$ReplayableHistory of jdk.internal.jshell.tool.JShellTool
private SaveHandler = jdk.internal.jshell.tool.JShellTool$SaveHandler of jdk.internal.jshell.tool.JShellTool
SetEditor = jdk.internal.jshell.tool.JShellTool$SetEditor of jdk.internal.jshell.tool.JShellTool
SnippetInfo = jdk.internal.jshell.tool.JShellTool$SnippetInfo of jdk.internal.jshell.tool.JShellTool
private abstract SnippetPredicate = jdk.internal.jshell.tool.JShellTool$SnippetPredicate of jdk.internal.jshell.tool.JShellTool
public Builder = jdk.jshell.JShell$Builder of jdk.jshell.JShell
public Subscription = jdk.jshell.JShell$Subscription of jdk.jshell.JShell
public final Kind = jdk.jshell.Snippet$Kind of jdk.jshell.Snippet
public final Status = jdk.jshell.Snippet$Status of jdk.jshell.Snippet
public final SubKind = jdk.jshell.Snippet$SubKind of jdk.jshell.Snippet
public final Completeness = jdk.jshell.SourceCodeAnalysis$Completeness of jdk.jshell.SourceCodeAnalysis
public abstract CompletionInfo = jdk.jshell.SourceCodeAnalysis$CompletionInfo of jdk.jshell.SourceCodeAnalysis
public abstract Suggestion = jdk.jshell.SourceCodeAnalysis$Suggestion of jdk.jshell.SourceCodeAnalysis