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

Method x

src/main/java/groovy/util/Eval.java:81–83  ·  view source on GitHub ↗

Evaluates the specified String expression and makes the parameter available inside the script bound to a variable named 'x', returning the result. For example, this code executes without failure: assert Eval.x(2, ' x 4 + 2') == 10 @param expression

(final Object x, final String expression)

Source from the content-addressed store, hash-verified

79 * @throws CompilationFailedException if expression is not valid Groovy
80 */
81 public static Object x(final Object x, final String expression) throws CompilationFailedException {
82 return me("x", x, expression);
83 }
84
85 /**
86 * Evaluates the specified String expression and makes the first two parameters available inside

Callers 1

testXMethod · 0.95

Calls 1

meMethod · 0.95

Tested by 1

testXMethod · 0.76