ZhiqiangGao / beanshell2

Automatically exported from code.google.com/p/beanshell2
0 stars 0 forks source link

Enhancement .getAll() #58

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 vorarlbe...@gmail.com on 8 Nov 2011 at 11:32

GoogleCodeExporter commented 9 years ago
You could use Interpreter.getNameSpace().getAllNames(), returning a 
String-array.

Original comment by pejob...@gmail.com on 16 Nov 2011 at 9:28

GoogleCodeExporter commented 9 years ago
Ooopps, did not see that. Perfect thanks!

Original comment by vorarlbe...@gmail.com on 17 Nov 2011 at 12:00