public final class RhinoJScriptEvaluator extends Object implements ScriptableEvaluator
| Constructor and Description |
|---|
RhinoJScriptEvaluator(boolean debug)
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
|
String |
evalToString(Task task,
String expression,
Map<String,Object> params)
Evaluate your script expression to a single string
|
List<String> |
evalToStringList(Task task,
String expression,
Map<String,Object> params)
Evaluate your script expression to a list of string
|
public RhinoJScriptEvaluator(boolean debug)
public String evalToString(Task task, String expression, Map<String,Object> params) throws LscServiceException
evalToString in interface ScriptableEvaluatortask - 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<String> evalToStringList(Task task, String expression, Map<String,Object> params) throws LscServiceException
evalToStringList in interface ScriptableEvaluatortask - 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 ScriptableEvaluatortask - 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-2017 LSC project. All Rights Reserved.