src/main/java/ognl/enhance/ExpressionCompiler.java
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;
    }
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;
    }
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.

@param clazz
The javassist class the new method should be attached to.
@param valueSetter
The method definition the generated code will be contained within.
@param node
The root expression node.
@return The generated source string for this method, the method will still be
added via the javassist API either way so this is really a convenience
for exception reporting / debugging.
@throws Exception
If a javassist error occurs.
Fail safe setter creation when normal compilation fails .