public interface ScriptEvaluatorInterface
ScriptEvaluator| Modifier and Type | Method and Description |
|---|---|
void |
createScriptObject(java.lang.String name,
java.util.Map properties)
Deprecated.
Creates a named object that can be used in the client's script with a
collection of properties.
|
void |
createScriptObject(java.lang.String name,
java.lang.Object item)
Deprecated.
Creates a named object that can be used in the client's script.
|
java.lang.Object |
evaluate(java.lang.String scr,
boolean evalAsFunction)
Deprecated.
Evaluates the specified script.
|
java.lang.Object |
evaluate(java.lang.String scr,
java.util.Map attributes,
boolean evalAsFunction)
Deprecated.
use evaluate(String scr, boolean evalAsFunction)
|
java.lang.Object |
evaluate(java.lang.String scr,
java.lang.Object[] data,
boolean evalAsFunction)
Deprecated.
Use evaluate(String scr, boolean evalAsFunction)
|
void |
setContextItem(java.lang.String name,
java.lang.Object item)
Deprecated.
Use createScriptObject(String name, Object item).
|
java.lang.Object evaluate(java.lang.String scr,
java.lang.Object[] data,
boolean evalAsFunction)
throws ScriptEvaluatorException
scr - Script to evaluate.data - Object array of runtime context data.evalAsFunction - either true for full function support or false for simple expressions
not requiring a return statement.ScriptEvaluatorException - Thrown if error(s) encountered during evaluation.java.lang.Object evaluate(java.lang.String scr,
java.util.Map attributes,
boolean evalAsFunction)
throws ScriptEvaluatorException
scr - Script to evaluate.attributes - Map of runtime context data, where the key is the variable name and the value is
the variable value.evalAsFunction - either true for full function support or false for simple expressions
not requiring a return statement.ScriptEvaluatorException - Thrown if error(s) encountered during evaluation.java.lang.Object evaluate(java.lang.String scr,
boolean evalAsFunction)
throws ScriptEvaluatorException
scr - Script to evaluate.evalAsFunction - either true for full function support or false for simple expressions
not requiring a return statement.ScriptEvaluatorException - Thrown if error(s) encountered during evaluation.void setContextItem(java.lang.String name,
java.lang.Object item)
throws ScriptEvaluatorException
name - Name of the variable.item - Object holding the variable's data.ScriptEvaluatorException - Thrown if unable to create the variable.void createScriptObject(java.lang.String name,
java.lang.Object item)
throws ScriptEvaluatorException
name - name of the object in the scripting environmentitem - Object that will be made available as a script objectScriptEvaluatorException - when the object can not be converted
into a format that can be used within the script environmentvoid createScriptObject(java.lang.String name,
java.util.Map properties)
throws ScriptEvaluatorException
name - name of the object in the scripting environmentproperties - Collection of objects to be used as the created object's
properties.ScriptEvaluatorException - when the object can not be converted
into a format that can be used within the script environment