A helper method to allow the dynamic evaluation of groovy expressions using this scripts binding as the variable scope @param expression is the Groovy script expression to evaluate
(String expression)
| 246 | * @param expression is the Groovy script expression to evaluate |
| 247 | */ |
| 248 | public Object evaluate(String expression) throws CompilationFailedException { |
| 249 | GroovyShell shell = new GroovyShell(getClass().getClassLoader(), binding); |
| 250 | return shell.evaluate(expression); |
| 251 | } |
| 252 | |
| 253 | /** |
| 254 | * A helper method to allow the dynamic evaluation of groovy expressions using this |
nothing calls this directly
no test coverage detected