| org.webharvest.runtime.scripting.ScriptEngine
ScriptEngine | public class ScriptEngine extends Interpreter (Code) | | Wrapper for scripting engine.
|
Constructor Summary | |
public | ScriptEngine(Map context) Constructor - initializes context used in engine. |
CONTEXT_VARIABLE_NAME | final public static String CONTEXT_VARIABLE_NAME(Code) | | |
ScriptEngine | public ScriptEngine(Map context)(Code) | | Constructor - initializes context used in engine.
Parameters: context - |
eval | public Object eval(String expression)(Code) | | Evaluates specified expression or code block.
value of evaluation or null if there is nothing. |
setInContext | public void setInContext(String name, Object value)(Code) | | Sets the specified variable in the context.
Parameters: name - Parameters: value - |
setVariable | public void setVariable(String name, Object value)(Code) | | Sets variable in scripter context.
Parameters: name - Parameters: value - |
|
|