PageRenderTime 22ms CodeModel.GetById 1ms RepoModel.GetById 0ms app.codeStats 0ms

/jEdit/tags/jedit-4-5-pre1/org/gjt/sp/jedit/bsh/commands/object.bsh

#
Unknown | 19 lines | 15 code | 4 blank | 0 comment | 0 complexity | 19231e9158caac8f10def86fe29aaa2b MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  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. @method This object()
  11. */
  12. bsh.help.object = "usage: object()";
  13. object() {
  14. return this;
  15. }