File tree Expand file tree Collapse file tree
src/main/java/com/diffplug/jscriptbox Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323
2424import com .diffplug .jscriptbox .ArityN .*;
2525
26- /**
27- * When exposing a scripting API, you want to expose
28- * a set of objects and functions to the client code.
29- * <p>
30- * ScriptBox makes it easy to expose both objects and
31- * functions to client code in a language-agnostic way.
32- */
26+ /** API for exposing objects and functions to a scripting environment. */
3327public class JScriptBox {
3428 private Map <String , Object > names = new HashMap <>();
3529
3630 protected JScriptBox () {}
3731
38- /** Creates a new NashornHarness and returns it. */
32+ /** Creates a new JScriptBox and returns it. */
3933 public static JScriptBox create () {
4034 return new JScriptBox ();
4135 }
@@ -46,7 +40,7 @@ public JScriptBox setAll(Map<String, ?> map) {
4640 return this ;
4741 }
4842
49- /** Sets a name in the script to be a value or a function. */
43+ /** Sets a name in the script environment to be a value or a function. */
5044 public NameSetter set (String name ) {
5145 return new NameSetter (name );
5246 }
You can’t perform that action at this time.
0 commit comments