|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.optional.scripts.beanshell.BeanShellScriptEngine
public class BeanShellScriptEngine
Evaluates a script attribute by passing the scripts
following the prefix 'script:' to the ScriptEngine.
The scripts can be an a function that was predifined
in the page Scripts tag or a script that is just being
defined.
eg. script:myFunction(); given that myFunction
was define in the page Scripts tag.
eg. script:out.println('Hello World'); the script
is just being defined.
Copyright (c) Xoetrope Ltd., 2002-2007
License: see license.txt
| Constructor Summary | |
|---|---|
BeanShellScriptEngine()
Creates a new instance of JavaScriptEngine |
|
| Method Summary | |
|---|---|
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 BeanShellScriptEngine()
| Method Detail |
|---|
public void setProject(XProject proj)
setProject in interface ScriptEngineproj - the current projectpublic java.lang.String getPageScript()
getPageScript in interface ScriptEngine
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 | |||||||||