Liking cljdoc? Tell your friends :D

javax.script.AbstractScriptEngine

Provides a standard implementation for several of the variants of the 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..

Provides a standard implementation for several of the variants of the 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..
raw docstring

->abstract-script-engineclj

(->abstract-script-engine)
(->abstract-script-engine n)

Constructor.

Creates a new instance using the specified Bindings as the ENGINE_SCOPE Bindings in the protected context field.

n - The specified Bindings. - javax.script.Bindings

throws: java.lang.NullPointerException - if n is null.

Constructor.

Creates a new instance using the specified Bindings as the
 ENGINE_SCOPE Bindings in the protected context field.

n - The specified Bindings. - `javax.script.Bindings`

throws: java.lang.NullPointerException - if n is null.
raw docstring

evalclj

(eval this reader)
(eval this reader bindings)

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. The specified Bindings is used instead of the ENGINE_SCOPE

Bindings of the context field.

reader - A Reader containing the source of the script. - java.io.Reader bindings - A Bindings to use for the ENGINE_SCOPE while the script executes. - javax.script.Bindings

returns: The return value from eval(Reader, ScriptContext) - java.lang.Object

throws: javax.script.ScriptException - if an error occurs in script.

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.  The specified
 Bindings is used instead of the ENGINE_SCOPE

 Bindings of the context field.

reader - A Reader containing the source of the script. - `java.io.Reader`
bindings - A Bindings to use for the ENGINE_SCOPE while the script executes. - `javax.script.Bindings`

returns: The return value from eval(Reader, ScriptContext) - `java.lang.Object`

throws: javax.script.ScriptException - if an error occurs in script.
raw docstring

getclj

(get this key)

Gets the value for the specified key in the ENGINE_SCOPE of the protected context field.

key - The key whose value is to be returned - java.lang.String

returns: The value for the specified key. - java.lang.Object

throws: java.lang.NullPointerException - if key is null.

Gets the value for the specified key in the ENGINE_SCOPE of the
 protected context field.

key - The key whose value is to be returned - `java.lang.String`

returns: The value for the specified key. - `java.lang.Object`

throws: java.lang.NullPointerException - if key is null.
raw docstring

get-bindingsclj

(get-bindings this scope)

Returns the Bindings with the specified scope value in the protected context field.

scope - The specified scope - int

returns: The corresponding Bindings. - javax.script.Bindings

throws: java.lang.IllegalArgumentException - if the value of scope is invalid for the type the protected context field.

Returns the Bindings with the specified scope value in
 the protected context field.

scope - The specified scope - `int`

returns: The corresponding Bindings. - `javax.script.Bindings`

throws: java.lang.IllegalArgumentException - if the value of scope is invalid for the type the protected context field.
raw docstring

get-contextclj

(get-context this)

Returns the value of the protected context field.

returns: The value of the protected context field. - javax.script.ScriptContext

Returns the value of the protected context field.

returns: The value of the protected context field. - `javax.script.ScriptContext`
raw docstring

putclj

(put this key value)

Sets the specified value with the specified key in the ENGINE_SCOPE Bindings of the protected context field.

key - The specified key. - java.lang.String value - The specified value. - java.lang.Object

throws: java.lang.NullPointerException - if key is null.

Sets the specified value with the specified key in the ENGINE_SCOPE
 Bindings of the protected context field.

key - The specified key. - `java.lang.String`
value - The specified value. - `java.lang.Object`

throws: java.lang.NullPointerException - if key is null.
raw docstring

set-bindingsclj

(set-bindings this bindings scope)

Sets the Bindings with the corresponding scope value in the context field.

bindings - The specified Bindings. - javax.script.Bindings scope - The specified scope. - int

throws: java.lang.IllegalArgumentException - if the value of scope is invalid for the type the context field.

Sets the Bindings with the corresponding scope value in the
 context field.

bindings - The specified Bindings. - `javax.script.Bindings`
scope - The specified scope. - `int`

throws: java.lang.IllegalArgumentException - if the value of scope is invalid for the type the context field.
raw docstring

set-contextclj

(set-context this ctxt)

Sets the value of the protected context field to the specified ScriptContext.

ctxt - The specified ScriptContext. - javax.script.ScriptContext

throws: java.lang.NullPointerException - if ctxt is null.

Sets the value of the protected context field to the specified
 ScriptContext.

ctxt - The specified ScriptContext. - `javax.script.ScriptContext`

throws: java.lang.NullPointerException - if ctxt is null.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close