public class ScriptingEvaluator extends Object
| Modifier and Type | Field and Description |
|---|---|
static ScriptEngineManager |
mgr |
| Modifier and Type | Method and Description |
|---|---|
static void |
contribute(String implementationName,
Class<? extends ScriptableEvaluator> implementationClass) |
static Boolean |
evalToBoolean(Task task,
String expression,
Map<String,Object> params) |
static String |
evalToString(Task task,
String expression,
Map<String,Object> params)
Evaluate your Ecma script expression (manage pre-compiled expressions
cache).
|
static List<String> |
evalToStringList(Task task,
String expression,
Map<String,Object> params) |
static ScriptingEvaluator |
getInstance() |
public static ScriptEngineManager mgr
public static ScriptingEvaluator getInstance()
public static void contribute(String implementationName, Class<? extends ScriptableEvaluator> implementationClass)
public static String evalToString(Task task, String expression, Map<String,Object> params) throws LscServiceException
expression - the expression to evalparams - the keys are the name used in theLscServiceExceptionpublic static List<String> evalToStringList(Task task, String expression, Map<String,Object> params) throws LscServiceException
LscServiceExceptionpublic static Boolean evalToBoolean(Task task, String expression, Map<String,Object> params) throws LscServiceException
LscServiceExceptionCopyright © 2005-2017 LSC project. All Rights Reserved.