|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.scripting.AbstractScript
com.partnersoft.scripting.BeanShellScript
public class BeanShellScript
A script in the BeanShell language.
Copyright 2005-2006 Partner Software, Inc.
| Constructor Summary | |
|---|---|
BeanShellScript(java.lang.String scriptText)
|
|
BeanShellScript(VfsFile file)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
getVariable(java.lang.String variableName)
Gets a single variable defined for the script. |
void |
include(java.lang.String includeFile)
Include the named file, which must be available in the ScriptKeeper provided via setScriptLibs() |
void |
includeFile(java.lang.String includeFilePath)
Include the given file by path. |
void |
includeFile(VfsFile includeFile)
Include the given file. |
protected void |
reloadImp()
Subclasses should implement this method to do any maintenance associated with changes in the source file. |
protected java.lang.Object |
runScriptImp(Naming<java.lang.Object> variables)
Subclasses should implement this method with their actual script-running implementation. |
void |
setScriptLibs(ScriptKeeper scriptLibs)
Set a ScriptKeeper holding the available script libraries. |
| Methods inherited from class com.partnersoft.scripting.AbstractScript |
|---|
getFile, getName, getScriptLog, getThrown, getVariables, isModified, parse, run, runScript, runThreaded, setThrown, setVariable, setVariables, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BeanShellScript(VfsFile file)
public BeanShellScript(java.lang.String scriptText)
| Method Detail |
|---|
public void setScriptLibs(ScriptKeeper scriptLibs)
public void include(java.lang.String includeFile)
throws bsh.EvalError,
java.io.FileNotFoundException,
java.io.IOException
bsh.EvalError
java.io.FileNotFoundException
java.io.IOException
public void includeFile(VfsFile includeFile)
throws bsh.EvalError,
java.io.FileNotFoundException,
java.io.IOException
bsh.EvalError
java.io.FileNotFoundException
java.io.IOException
public void includeFile(java.lang.String includeFilePath)
throws bsh.EvalError,
java.io.FileNotFoundException,
java.io.IOException
bsh.EvalError
java.io.FileNotFoundException
java.io.IOExceptionpublic java.lang.Object getVariable(java.lang.String variableName)
ScriptScript.setVariable(String, Object).
getVariable in interface ScriptgetVariable in class AbstractScriptvariableName - name of the variable in the script
protected void reloadImp()
throws java.lang.Exception
AbstractScript
reloadImp in class AbstractScriptjava.lang.Exception
protected java.lang.Object runScriptImp(Naming<java.lang.Object> variables)
throws java.lang.Exception
AbstractScript
runScriptImp in class AbstractScriptjava.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||