提交 1343dbaa 编写于 作者: D darcy

8019320: Fix doclint issues in javax.script

Reviewed-by: lancea
上级 69c76227
/* /*
* Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -63,6 +63,7 @@ public interface Invocable { ...@@ -63,6 +63,7 @@ public interface Invocable {
/** /**
* Used to call top-level procedures and functions defined in scripts. * Used to call top-level procedures and functions defined in scripts.
* *
* @param name of the procedure or function to call
* @param args Arguments to pass to the procedure or function * @param args Arguments to pass to the procedure or function
* @return The value returned by the procedure or function * @return The value returned by the procedure or function
* *
...@@ -79,6 +80,7 @@ public interface Invocable { ...@@ -79,6 +80,7 @@ public interface Invocable {
* the interpreter. The methods of the interface * the interpreter. The methods of the interface
* may be implemented using the <code>invokeFunction</code> method. * may be implemented using the <code>invokeFunction</code> method.
* *
* @param <T> the type of the interface to return
* @param clasz The <code>Class</code> object of the interface to return. * @param clasz The <code>Class</code> object of the interface to return.
* *
* @return An instance of requested interface - null if the requested interface is unavailable, * @return An instance of requested interface - null if the requested interface is unavailable,
...@@ -95,6 +97,7 @@ public interface Invocable { ...@@ -95,6 +97,7 @@ public interface Invocable {
* a scripting object compiled in the interpreter. The methods of the * a scripting object compiled in the interpreter. The methods of the
* interface may be implemented using the <code>invokeMethod</code> method. * interface may be implemented using the <code>invokeMethod</code> method.
* *
* @param <T> the type of the interface to return
* @param thiz The scripting object whose member functions are used to implement the methods of the interface. * @param thiz The scripting object whose member functions are used to implement the methods of the interface.
* @param clasz The <code>Class</code> object of the interface to return. * @param clasz The <code>Class</code> object of the interface to return.
* *
......
/* /*
* Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -78,6 +78,7 @@ public interface ScriptContext { ...@@ -78,6 +78,7 @@ public interface ScriptContext {
* @return The associated <code>Bindings</code>. Returns <code>null</code> if it has not * @return The associated <code>Bindings</code>. Returns <code>null</code> if it has not
* been set. * been set.
* *
* @param scope The scope
* @throws IllegalArgumentException If no <code>Bindings</code> is defined for the * @throws IllegalArgumentException If no <code>Bindings</code> is defined for the
* specified scope value in <code>ScriptContext</code> of this type. * specified scope value in <code>ScriptContext</code> of this type.
*/ */
......
/* /*
* Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -80,6 +80,7 @@ public interface ScriptEngineFactory { ...@@ -80,6 +80,7 @@ public interface ScriptEngineFactory {
* identify the <code>ScriptEngine</code> by the <code>ScriptEngineManager</code>. * identify the <code>ScriptEngine</code> by the <code>ScriptEngineManager</code>.
* For instance, an implementation based on the Mozilla Rhino Javascript engine might * For instance, an implementation based on the Mozilla Rhino Javascript engine might
* return list containing {&quot;javascript&quot;, &quot;rhino&quot;}. * return list containing {&quot;javascript&quot;, &quot;rhino&quot;}.
* @return an immutable list of short names
*/ */
public List<String> getNames(); public List<String> getNames();
......
/* /*
* Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -82,7 +82,9 @@ public class SimpleScriptContext implements ScriptContext { ...@@ -82,7 +82,9 @@ public class SimpleScriptContext implements ScriptContext {
*/ */
protected Bindings globalScope; protected Bindings globalScope;
/**
* Create a {@code SimpleScriptContext}.
*/
public SimpleScriptContext() { public SimpleScriptContext() {
engineScope = new SimpleBindings(); engineScope = new SimpleBindings();
globalScope = null; globalScope = null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册