MCPcopy Index your code
hub / github.com/apache/groovy / evaluate

Method evaluate

src/main/java/groovy/lang/Script.java:248–251  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

evaluateMethod · 0.95
getClassMethod · 0.80
getClassLoaderMethod · 0.45

Tested by

no test coverage detected