File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
src/main/java/com/diffplug/jscriptbox Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 23
23
24
24
import com .diffplug .jscriptbox .ArityN .*;
25
25
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. */
33
27
public class JScriptBox {
34
28
private Map <String , Object > names = new HashMap <>();
35
29
36
30
protected JScriptBox () {}
37
31
38
- /** Creates a new NashornHarness and returns it. */
32
+ /** Creates a new JScriptBox and returns it. */
39
33
public static JScriptBox create () {
40
34
return new JScriptBox ();
41
35
}
@@ -46,7 +40,7 @@ public JScriptBox setAll(Map<String, ?> map) {
46
40
return this ;
47
41
}
48
42
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. */
50
44
public NameSetter set (String name ) {
51
45
return new NameSetter (name );
52
46
}
You can’t perform that action at this time.
0 commit comments