evaluates the specified string expression and makes the first two parameters available inside the script bound to variables named ` x ' and ` y ' respectively , returning the result . for example , this code executes without failure : assert 10 == eval.xy 2 , 4 , ' x y + 2 ' concode_field_sep PlaceHolder placeHolder concode_field_sep Object me concode_elem_sep Object me concode_elem_sep Object x concode_elem_sep Object xyz
Object function ( final Object arg0 , final Object arg1 , final String arg2 ) { Binding loc0 = new Binding ( ) ; loc0 . setVariable ( "srini_string" , arg0 ) ; loc0 . setVariable ( "srini_string" , arg1 ) ; GroovyShell loc1 = new GroovyShell ( loc0 ) ; return loc1 . evaluate ( arg2 ) ; }