public interface ScriptBinding
Modifier and Type | Method and Description |
---|---|
void |
cleanVariables(Map<String,Object> variables)
Allows clean up of variables created during the getVariables call.
|
String |
getFunctions()
Returns the JavaScript functions to inject at the start of the script, in the form of a single String prepended to the script.
|
Map<String,I18nizableText> |
getFunctionsDescriptions()
Returns the list of functions descriptions, mapped by function name.
|
Map<String,Object> |
getVariables()
Returns the list of variables this ScriptBinding provides, mapped by variable name.
|
Map<String,I18nizableText> |
getVariablesDescriptions()
Returns the list of variables descriptions, mapped by variable name.
|
Object |
processScriptResult(Object result)
Process the script result if there are any specificities for this console data.
|
Map<String,Object> getVariables()
Map<String,I18nizableText> getVariablesDescriptions()
void cleanVariables(Map<String,Object> variables)
variables
- The map of variables.String getFunctions()
Map<String,I18nizableText> getFunctionsDescriptions()
Object processScriptResult(Object result) throws ScriptException
result
- The resultScriptException
- If a processing error occurs.