Evaluates some script against the current Binding and returns the result @param codeSource @throws CompilationFailedException
(GroovyCodeSource codeSource)
| 549 | * @throws CompilationFailedException |
| 550 | */ |
| 551 | public Object evaluate(GroovyCodeSource codeSource) throws CompilationFailedException { |
| 552 | Script script = parse(codeSource); |
| 553 | return script.run(); |
| 554 | } |
| 555 | |
| 556 | /** |
| 557 | * Evaluates some script against the current Binding and returns the result |