home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog Special Freeware 25
/
FreelogHS25.iso
/
Dessin
/
ArtOfIllusion2.2.1
/
ArtOfIllusion.jar
/
bsh
/
commands
/
importObject.bsh
< prev
next >
Wrap
Text File
|
2005-05-23
|
543b
|
24 lines
/**
Import an instance object into this namespace
(analogous to static class imports).
You can import the methods and fields of a Java object instance into
a BeanShell namespace. e.g.
<pre>
Map map = new HashMap();
importObject( map );
put("foo", "bar");
print( get("foo") ); // "bar"
</pre>
@method void importObject( Object object )
*/
bsh.help.importObject = "usage: importObject( Object )";
importObject( Object object )
{
this.caller.namespace.importObject( object );
}