/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
11 @method This object()
12*/
13
14bsh.help.object = "usage: object()";
15
16object() {
17 return this;
18}
19