List all active methods in jshell

Niraj Sonawane :

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

Naman :

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

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=463288&siteId=1
Recommended