软件包 | 描述 |
---|---|
javax.script |
脚本API的接口和类,定义
TM java脚本引擎提供了一种用于java应用程序框架。
|
Modifier and Type | Class and Description |
---|---|
class |
SimpleScriptContext
scriptcontext的简单实现。
|
Modifier and Type | Field and Description |
---|---|
protected ScriptContext |
AbstractScriptEngine.context
这
AbstractScriptEngine 默认
ScriptContext 。
|
Modifier and Type | Method and Description |
---|---|
ScriptContext |
ScriptEngine.getContext()
返回的
ScriptEngine 其绑定的默认
ScriptContext ,读者和作者是用于脚本执行时没有
ScriptContext 指定。
|
ScriptContext |
AbstractScriptEngine.getContext()
返回保护
context 字段的值。
|
protected ScriptContext |
AbstractScriptEngine.getScriptContext(Bindings nn)
返回一个
SimpleScriptContext 。
|
Modifier and Type | Method and Description |
---|---|
Object |
ScriptEngine.eval(Reader reader, ScriptContext context)
同
eval(String, ScriptContext) 在脚本的来源是一个
Reader 读。
|
abstract Object |
CompiledScript.eval(ScriptContext context)
执行存储在这
CompiledScript 对象的程序。
|
Object |
ScriptEngine.eval(String script, ScriptContext context)
使直接执行脚本的源代码是第一个参数的字符串的直接执行。
|
void |
ScriptEngine.setContext(ScriptContext context)
套的
ScriptEngine 其绑定的默认
ScriptContext ,读者和作者是用于脚本执行时没有
ScriptContext 指定。
|
void |
AbstractScriptEngine.setContext(ScriptContext ctxt)
设置指定的
ScriptContext 的保护
context 字段的值。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.