|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.optional.scripts.javascript.JavaScriptEngine
public class JavaScriptEngine
| Constructor Summary | |
|---|---|
JavaScriptEngine()
Creates a new instance of JavaScriptEngine |
|
| Method Summary | |
|---|---|
void |
configureScriptEnvironment(org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.Context cx)
Configures the current environment with some necessary variables |
java.lang.Object |
executeScript(java.lang.String script)
Executes a given script and returns the result. |
java.lang.String |
getPageScript()
Returns the scripts for this page |
void |
setProject(XProject proj)
Set the owning project |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavaScriptEngine()
proj - the current project| Method Detail |
|---|
public void setProject(XProject proj)
setProject in interface ScriptEngineproj - the current projectpublic java.lang.String getPageScript()
getPageScript in interface ScriptEngine
public void configureScriptEnvironment(org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.Context cx)
public java.lang.Object executeScript(java.lang.String script)
throws ScriptException
executeScript in interface ScriptEnginescript - the script to be executed for the current page
ScriptException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||