is there any command available that can print all newly created methods in current jshell session?
Something similar to /list
but only for methods
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You are looking for the command
/methods -all
which prints all the methods including those added when JShell was started, and methods that failed, were overwritten, or were dropped.
For active methods declared by you, use it simply without any argument as :
/methods