Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
1343dbaa
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
1343dbaa
编写于
6月 27, 2013
作者:
D
darcy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8019320: Fix doclint issues in javax.script
Reviewed-by: lancea
上级
69c76227
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
12 addition
and
5 deletion
+12
-5
src/share/classes/javax/script/Invocable.java
src/share/classes/javax/script/Invocable.java
+4
-1
src/share/classes/javax/script/ScriptContext.java
src/share/classes/javax/script/ScriptContext.java
+2
-1
src/share/classes/javax/script/ScriptEngineFactory.java
src/share/classes/javax/script/ScriptEngineFactory.java
+2
-1
src/share/classes/javax/script/SimpleScriptContext.java
src/share/classes/javax/script/SimpleScriptContext.java
+4
-2
未找到文件。
src/share/classes/javax/script/Invocable.java
浏览文件 @
1343dbaa
/*
/*
* Copyright (c) 2005, 20
06
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 20
13
, 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.
*
*
...
...
src/share/classes/javax/script/ScriptContext.java
浏览文件 @
1343dbaa
/*
/*
* 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.
*/
*/
...
...
src/share/classes/javax/script/ScriptEngineFactory.java
浏览文件 @
1343dbaa
/*
/*
* Copyright (c) 2005, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 201
3
, 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 {"javascript", "rhino"}.
* return list containing {"javascript", "rhino"}.
* @return an immutable list of short names
*/
*/
public
List
<
String
>
getNames
();
public
List
<
String
>
getNames
();
...
...
src/share/classes/javax/script/SimpleScriptContext.java
浏览文件 @
1343dbaa
/*
/*
* Copyright (c) 2005, 20
06
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 20
13
, 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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录