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
|
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 groovy script expression (manage pre-compiled expressions
cache).
|
public GroovyEvaluator(ScriptEngine se)
public String evalToString(Task task, String expression, Map<String,Object> params)
evalToString
in interface ScriptableEvaluator
expression
- the expression to evalparams
- the keys are the name used in thetask
- the task concerned by this evaluationpublic List<Object> evalToObjectList(Task task, String expression, Map<String,Object> params)
ScriptableEvaluator
evalToObjectList
in interface ScriptableEvaluator
task
- 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)
ScriptableEvaluator
evalToBoolean
in interface ScriptableEvaluator
task
- the task concerned by this evaluationexpression
- the expression to evaluateparams
- the keys are the name used in theCopyright © 2005-2024 LSC project. All Rights Reserved.