Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List all active methods in jshell

is there any command available that can print all newly created methods in current jshell session? Something similar to /list but only for methods

like image 304
Niraj Sonawane Avatar asked Nov 29 '17 00:11

Niraj Sonawane


1 Answers

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
like image 80
Naman Avatar answered Sep 28 '22 21:09

Naman