Skip to content

Commit 9919914

Browse files
committed
Updated javadoc.
1 parent 94bcbd3 commit 9919914

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/main/java/com/diffplug/jscriptbox/JScriptBox.java

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,13 @@
2323

2424
import 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. */
3327
public 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
}

0 commit comments

Comments
 (0)