Niraj Sonawane
Niraj Sonawane

Reputation: 11055

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

Upvotes: 7

Views: 549

Answers (1)

Naman
Naman

Reputation: 31888

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

Upvotes: 5

Related Questions