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)
| 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 |