public final class JScriptEvaluator extends Object implements ScriptableEvaluator
Constructor and Description |
---|
JScriptEvaluator(ScriptEngine se)
Default public constructor.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
evalToBoolean(Task task,
String expression,
Map<String,Object> params)
Evaluate your script expression to a boolean value
|
List<Object> |
evalToObjectList(Task task,
String expression,
Map<String,Object> params)
Evaluate your script expression to a list of string
|
String |
evalToString(Task task,
String expression,
Map<String,Object> params)
Evaluate your script expression to a single string
|
public JScriptEvaluator(ScriptEngine se)
public String evalToString(Task task, String expression, Map<String,Object> params) throws LscServiceException
evalToString
in interface ScriptableEvaluator
task
- the task concerned by this evaluationexpression
- the expression to evaluateparams
- the keys are the name used in theLscServiceException
- thrown when a technical error is encounterepublic List<Object> evalToObjectList(Task task, String expression, Map<String,Object> params) throws LscServiceException
evalToObjectList
in interface ScriptableEvaluator
task
- the task concerned by this evaluationexpression
- the expression to evaluateparams
- the keys are the name used in theLscServiceException
- thrown when a technical error is encounterepublic Boolean evalToBoolean(Task task, String expression, Map<String,Object> params) throws LscServiceException
evalToBoolean
in interface ScriptableEvaluator
task
- the task concerned by this evaluationexpression
- the expression to evaluateparams
- the keys are the name used in theLscServiceException
- thrown when a technical error is encountereCopyright © 2005-2024 LSC project. All Rights Reserved.