eval
method.
eval(Reader)eval(String)
eval(String, Bindings)
eval(Reader, Bindings)
are implemented using the abstract methods
eval(Reader,ScriptContext) or
eval(String, ScriptContext)
with a SimpleScriptContext.
A SimpleScriptContext is used as the default ScriptContext
of the AbstractScriptEngine..
| Modifier and Type | Field and Description |
|---|---|
| protected ScriptContext | context
The default |
| Access | Constructor and Description |
|---|---|
| public | AbstractScriptEngine()
Creates a new instance of AbstractScriptEngine using a |
| public | AbstractScriptEngine(Bindings
The specified n)Bindings.Creates a new instance using the specified |
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: The return value fromeval(Reader, ScriptContext)A reader, Bindings Reader containing the source of the script.A bindings)Bindings to use for the ENGINE_SCOPE
while the script executes.Implements javax.
|
| public Object | Returns: The return value fromeval(String, ScriptContext)A script, Bindings String containing the source of the script.A bindings)Bindings to use as the ENGINE_SCOPE
while the script executes.Implements javax. Same as |
| public Object | Returns: The return value fromeval(Reader, ScriptContext)A reader)Reader containing the source of the script.Implements javax.
|
| public Object | Returns: The return value fromeval(String, ScriptContext)A script)String containing the source of the script.Implements javax. Same as |
| public Object | Returns: The value for the specified key.Implements javax. Gets the value for the specified key in the |
| public Bindings | Returns: The correspondingBindings.The specified scope scope)Implements javax. Returns the |
| public ScriptContext | Returns: The value of the protectedcontext field.Implements javax. Returns the value of the protected |
| protected ScriptContext | Returns: TheSimpleScriptContextBindings to use for the nn)ENGINE_SCOPEReturns a |
| public void | put(String
The specified key. key, Object The specified value. value)Implements javax. Sets the specified value with the specified key in the |
| public void | setBindings(Bindings
The specified bindings, int Bindings.The specified scope. scope)Implements javax. Sets the |
| public void | setContext(ScriptContext
The specified ctxt)ScriptContext.Implements javax. Sets the value of the protected |
| context | back to summary |
|---|---|
| protected ScriptContext context The default | |
| AbstractScriptEngine | back to summary |
|---|---|
| public AbstractScriptEngine() Creates a new instance of AbstractScriptEngine using a | |
| AbstractScriptEngine | back to summary |
|---|---|
| public AbstractScriptEngine(Bindings n) Creates a new instance using the specified
| |
| eval | back to summary |
|---|---|
| public Object eval(Reader reader, Bindings bindings) throws ScriptException Implements javax.
| |
| eval | back to summary |
|---|---|
| public Object eval(String script, Bindings bindings) throws ScriptException Implements javax. Same as
| |
| eval | back to summary |
|---|---|
| public Object eval(Reader reader) throws ScriptException Implements javax.
| |
| eval | back to summary |
|---|---|
| public Object eval(String script) throws ScriptException Implements javax. Same as
| |
| get | back to summary |
|---|---|
| public Object get(String key) Implements javax. Gets the value for the specified key in the
| |
| getBindings | back to summary |
|---|---|
| public Bindings getBindings(int scope) Implements javax. Returns the
| |
| getContext | back to summary |
|---|---|
| public ScriptContext getContext() Implements javax. Returns the value of the protected
| |
| getScriptContext | back to summary |
|---|---|
| protected ScriptContext getScriptContext(Bindings nn) Returns a
A SimpleScriptContext returned by this method is used to implement eval methods
using the abstract eval(Reader,Bindings) and eval(String,Bindings)
versions.
| |
| put | back to summary |
|---|---|
| public void put(String key, Object value) Implements javax. Sets the specified value with the specified key in the
| |
| setBindings | back to summary |
|---|---|
| public void setBindings(Bindings bindings, int scope) Implements javax. Sets the
| |
| setContext | back to summary |
|---|---|
| public void setContext(ScriptContext ctxt) Implements javax. Sets the value of the protected
| |