home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 June / PCWorld_2007-06_cd.bin / multimedia / ppsee / PPSeeSetup.exe / lib / bsh-commands-2.0b4.jar / bsh / commands / object.bsh < prev    next >
Text File  |  2005-05-23  |  283b  |  20 lines

  1. /**
  2.     Return an "empty" BeanShell object context which can be used to hold 
  3.     data items.  e.g. 
  4.     <p>
  5.     <pre>
  6.     myStuff = object();
  7.     myStuff.foo = 42;
  8.     myStuff.bar = "blah";
  9.     </pre>
  10.  
  11.     @method This object()
  12. */
  13.  
  14. bsh.help.object = "usage: object()";
  15.  
  16. object() { 
  17.     return this; 
  18. }
  19.  
  20.