|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjpl.mipl.pgs.utils.upf.BeanShellScript
public class BeanShellScript
An object that represents a UPF bean shell script.
Copyright 2006-present, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledge.
| Field Summary | |
|---|---|
static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
BeanShellScript()
Default constructor. |
|
BeanShellScript(BeanShellScript i,
String name)
A copy constructor. |
|
BeanShellScript(String name)
Create a BeanShellScript with the given name. |
|
| Method Summary | |
|---|---|
Object |
eval(String script,
Map<String,Object> params)
Executes the given script with the given parameters. |
Object |
getResult()
Returns the result as obtained by executing the script. |
String |
getScriptName()
|
void |
run()
Executes the script. |
void |
setParam(String name,
Object value,
boolean overwrite)
Set a parameter for this script. |
void |
setScript(String script)
Set the bean shell script this interpreter is to execute. |
void |
setScriptName(String name)
The this script's name. |
String |
toString()
Return the entire script in it's proper XML form. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public BeanShellScript()
public BeanShellScript(String name)
name - The name of this bean shell script.
public BeanShellScript(BeanShellScript i,
String name)
i - the base interpreter to be used for creating this interpretername - the name of this new interpreter| Method Detail |
|---|
public void setScriptName(String name)
setScriptName in interface Scriptname - The name of this bean shell script.public String getScriptName()
getScriptName in interface Scriptpublic void setScript(String script)
setScript in interface Script
public void setParam(String name,
Object value,
boolean overwrite)
setParam in interface Scriptname - The name of the parameter.value - The value of the parameter.overwrite - if false and parameter exists, no action is performed.public Object getResult()
getResult in interface Script
public void run()
throws RuntimeException
run in interface RunnableRuntimeExceptionRunnable.run()
public Object eval(String script,
Map<String,Object> params)
throws Exception
eval in interface ScriptExceptionpublic String toString()
toString in class ObjectObject.toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||