protected String generateOgnlSetter ( CtClass clazz , CtMethod valueSetter , CtField node ) throws Exception { String body = node . getName ( ) + ".setValue($1, $2, $3);" ; valueSetter . setBody ( body ) ; clazz . addMethod ( valueSetter ) ; return body ; }
Fail safe setter creation when normal compilation fails .