List all active methods in jshell

Is there any command that can print all newly created methods in the current jshell session? Something like /list , but only methods

+5
source share
1 answer

You are looking for a team

 /methods -all 

which prints all methods, including those that were added when JShell started, and methods that did not execute, were overwritten or deleted.

For active methods you have declared, use it simply without any arguments:

 /methods 
+4
source

Source: https://habr.com/ru/post/1273727/


All Articles