public interface RhinoExecutor
Modifier and Type | Method and Description |
---|---|
void |
discard()
Discards the executor, returning it to the pool for reuse.
|
org.mozilla.javascript.ScriptableObject |
invokeFunction(String functionName,
Object... arguments)
Invokes the named function, which must return a scriptable object (typically, a JavaScript Object).
|
org.mozilla.javascript.ScriptableObject invokeFunction(String functionName, Object... arguments)
functionName
- name of function visible to the executor's scope (e.g., loaded from the scripts associated
with the executor).arguments
- Arguments to pass to the object which must be convertable to JavaScript types; Strings work well here.void discard()
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.