API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.script. AbstractScriptEngine View Source
Author(s)
Mike Grogan
Since
1.6
Version
1.0
Serial
Hierarchy
 Object
      AbstractScriptEngine
Implements
 ScriptEngine
Subclasses
Description
publicabstract abstract class AbstractScriptEngine
  Provides a standard implementation for several of the variants of the eval method.
See also:   
Constructors
public AbstractScriptEngine ()
Creates a new instance of AbstractScriptEngine using a SimpleScriptContext as its default ScriptContext.
public AbstractScriptEngine (Bindings n)
  Creates a new instance using the specified Bindings as the ENGINE_SCOPE Bindings in the protected context field.
Methods
Hide/Show inherited methods
public Object eval (Reader reader) throws ScriptException [Specified in ScriptEngine]
  eval(Reader) calls the abstract eval(Reader, ScriptContext) passing the value of the context field.
public Object eval (Reader reader, Bindings bindings) throws ScriptException [Specified in ScriptEngine]
  eval(Reader, Bindings) calls the abstract eval(Reader, ScriptContext) method, passing it a ScriptContext whose Reader, Writers and Bindings for scopes other that ENGINE_SCOPE are identical to those members of the protected context field.
public Object eval (String script) throws ScriptException [Specified in ScriptEngine]
  Same as eval(Reader) except that the abstract eval(String, ScriptContext) is used.
public Object eval (String script, Bindings bindings) throws ScriptException [Specified in ScriptEngine]
  Same as eval(Reader, Bindings) except that the abstract eval(String, ScriptContext) is used.
public Object get (String key) [Specified in ScriptEngine]
  Gets the value for the specified key in the ENGINE_SCOPE of the protected context field.
public Bindings getBindings (int scope) [Specified in ScriptEngine]
  Returns the Bindings with the specified scope value in the protected context field.
public ScriptContext getContext () [Specified in ScriptEngine]
  Returns the value of the protected context field.
protected ScriptContext getScriptContext (Bindings nn)
  Returns a SimpleScriptContext.
public void put (String key, Object value) [Specified in ScriptEngine]
  Sets the specified value with the specified key in the ENGINE_SCOPE Bindings of the protected context field.
public void setBindings (Bindings bindings, int scope) [Specified in ScriptEngine]
  Sets the Bindings with the corresponding scope value in the context field.
public void setContext (ScriptContext ctxt) [Specified in ScriptEngine]
  Sets the value of the protected context field to the specified ScriptContext.
Fields
Hide/Show inherited fields
publicfinalstatic String ARGV = "javax.script.argv" [Inherited From ScriptEngine]
Reserved key for a named value that passes an array of positional arguments to a script.
protected ScriptContext context
The default ScriptContext of this AbstractScriptEngine.
publicfinalstatic String ENGINE = "javax.script.engine" [Inherited From ScriptEngine]
Reserved key for a named value that is the name of the ScriptEngine implementation.
publicfinalstatic String ENGINE_VERSION = "javax.script.engine_version" [Inherited From ScriptEngine]
Reserved key for a named value that identifies the version of the ScriptEngine implementation.
publicfinalstatic String FILENAME = "javax.script.filename" [Inherited From ScriptEngine]
Reserved key for a named value that is the name of the file being executed.
publicfinalstatic String LANGUAGE = "javax.script.language" [Inherited From ScriptEngine]
Reserved key for a named value that is the full name of Scripting Language supported by the implementation.
publicfinalstatic String LANGUAGE_VERSION = "javax.script.language_version" [Inherited From ScriptEngine]
Reserved key for the named value that identifies the version of the scripting language supported by the implementation.
publicfinalstatic String NAME = "javax.script.name" [Inherited From ScriptEngine]
  Reserved key for a named value that identifies the short name of the scripting language.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar