net.sf.sail.core.activity.model
Interface IScript

All Known Implementing Classes:
ScriptSupport

public interface IScript

Author:
eburke The Script interface defines the methods for manipulating the script text. It is responsible for keeping track of the ScriptEngine and related data. It also provides an evaluate method to which containing classes can delegate.

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
 

Method Detail

evaluate

java.lang.Object evaluate()
                          throws javax.script.ScriptException
evaluate - evaluates the script text relative to the script engine assigned at creation time. Will compile the script if the engine is Compilable.

Returns:
Throws:
javax.script.ScriptException

getText

java.lang.String getText()
getText

Returns:
- the script text

setText

void setText(java.lang.String text)
setText - set the script text string

Parameters:
text - - the script text

getScriptEngine

javax.script.ScriptEngine getScriptEngine()
getScriptEngine

Returns:
- the ScriptEngine for this script, provided at Script creation

getScriptContext

javax.script.ScriptContext getScriptContext()
getScriptContext

Returns:
- the ScriptContext for this script. Determined by the ScriptEngine provided when the Script was created.


Copyright © 2004-2008 TELS Center. All Rights Reserved.