/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
- /**
- Return an "empty" BeanShell object context which can be used to hold
- data items. e.g.
- <p>
- <pre>
- myStuff = object();
- myStuff.foo = 42;
- myStuff.bar = "blah";
- </pre>
- @method This object()
- */
- bsh.help.object = "usage: object()";
- object() {
- return this;
- }