ScriptContext

Interface ScriptContext

All Known Implementing Classes:
SimpleScriptContext
public interface ScriptContext

The interface whose implementing classes are used to connect Script Engines with objects, such as scoped Bindings, in hosting applications. Each scope is a set of named attributes whose values can be set and retrieved using the ScriptContext methods. ScriptContexts also expose Readers and Writers that can be used by the ScriptEngines for input and output.

Since:
1.6

Fields

ENGINE_SCOPE

static final int ENGINE_SCOPE

EngineScope attributes are visible during the lifetime of a single ScriptEngine and a set of attributes is maintained for each engine.

GLOBAL_SCOPE

登录查看完整内容