public final class GroovyEvaluator extends Object implements ScriptableEvaluator
| Constructor and Description |
|---|
GroovyEvaluator(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
|
String |
evalToString(Task task,
String expression,
Map<String,Object> params)
Evaluate your groovy script expression (manage pre-compiled expressions
cache).
|
List<String> |
evalToStringList(Task task,
String expression,
Map<String,Object> params)
Evaluate your script expression to a list of string
|
public GroovyEvaluator(ScriptEngine se)
public String evalToString(Task task, String expression, Map<String,Object> params)
evalToString in interface ScriptableEvaluatorexpression - the expression to evalparams - the keys are the name used in thetask - the task concerned by this evaluationpublic List<String> evalToStringList(Task task, String expression, Map<String,Object> params)
ScriptableEvaluatorevalToStringList in interface ScriptableEvaluatortask - the task concerned by this evaluationexpression - the expression to evaluateparams - the keys are the name used in thepublic Boolean evalToBoolean(Task task, String expression, Map<String,Object> params)
ScriptableEvaluatorevalToBoolean in interface ScriptableEvaluatortask - the task concerned by this evaluationexpression - the expression to evaluateparams - the keys are the name used in theCopyright © 2005-2017 LSC project. All Rights Reserved.