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 List<Object> |
evalToObjectList(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 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 theLscServiceException
public static List<Object> evalToObjectList(Task task, String expression, Map<String,Object> params) throws LscServiceException
LscServiceException
public static Boolean evalToBoolean(Task task, String expression, Map<String,Object> params) throws LscServiceException
LscServiceException
Copyright © 2005-2024 LSC project. All Rights Reserved.