|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.sail.core.activity.model.ScriptSupport
public class ScriptSupport
Field Summary | |
---|---|
protected javax.script.CompiledScript |
compiled
|
protected javax.script.ScriptContext |
context
|
protected javax.script.ScriptEngine |
engine
|
protected java.lang.String |
text
|
Constructor Summary | |
---|---|
ScriptSupport(java.lang.String text,
javax.script.ScriptEngine engine)
|
Method Summary | |
---|---|
java.lang.Object |
evaluate()
evaluate - evaluates the script text relative to the script engine assigned at creation time. |
javax.script.ScriptContext |
getScriptContext()
getScriptContext |
javax.script.ScriptEngine |
getScriptEngine()
getScriptEngine |
java.lang.String |
getText()
getText |
void |
setText(java.lang.String text)
setText - set the script text string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String text
protected javax.script.ScriptEngine engine
protected javax.script.ScriptContext context
protected javax.script.CompiledScript compiled
Constructor Detail |
---|
public ScriptSupport(java.lang.String text, javax.script.ScriptEngine engine)
Method Detail |
---|
public java.lang.Object evaluate() throws javax.script.ScriptException
IScript
evaluate
in interface IScript
javax.script.ScriptException
public java.lang.String getText()
IScript
getText
in interface IScript
public void setText(java.lang.String text)
IScript
setText
in interface IScript
text
- - the script textpublic javax.script.ScriptEngine getScriptEngine()
IScript
getScriptEngine
in interface IScript
public javax.script.ScriptContext getScriptContext()
IScript
getScriptContext
in interface IScript
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |