beanshell2 icon indicating copy to clipboard operation
beanshell2 copied to clipboard

Enhancement .getAll()

Open GoogleCodeExporter opened this issue 10 years ago • 2 comments

Today you can use get(String) to receive an object from an ebedded interpreter. 

It would be cool to get all of them. How do you think about a new Method 
.getAll() which returns HashMap<String,Object>? This would be a realy helpful 
feature to build a debugger on top of Beanshell2


Original issue reported on code.google.com by [email protected] on 8 Nov 2011 at 11:32

GoogleCodeExporter avatar Apr 22 '15 19:04 GoogleCodeExporter

You could use Interpreter.getNameSpace().getAllNames(), returning a 
String-array.

Original comment by [email protected] on 16 Nov 2011 at 9:28

GoogleCodeExporter avatar Apr 22 '15 19:04 GoogleCodeExporter

Ooopps, did not see that. Perfect thanks!

Original comment by [email protected] on 17 Nov 2011 at 12:00

GoogleCodeExporter avatar Apr 22 '15 19:04 GoogleCodeExporter