src/main/java/ognl/enhance/ExpressionCompiler.java
protected String generateOgnlGetter(CtClass clazz, CtMethod valueGetter, CtField node)
            throws Exception
    {
        String body = "return " + node.getName() + ".getValue($1, $2);";

        valueGetter.setBody(body);
        clazz.addMethod(valueGetter);

        return body;
    }
protected String generateOgnlGetter(CtClass clazz, CtMethod valueGetter, CtField node)
            throws Exception
    {
        String body = "return " + node.getName() + ".getValue($1, $2);";

        valueGetter.setBody(body);
        clazz.addMethod(valueGetter);

        return body;
    }
protected String generateOgnlGetter ( CtClass clazz , CtMethod valueGetter , CtField node ) throws Exception { String body = "return " + node . getName ( ) + ".getValue($1, $2);" ; valueGetter . setBody ( body ) ; clazz . addMethod ( valueGetter ) ; return body ; }
Fail safe getter creation when normal compilation fails.

@param clazz
The javassist class the new method should be attached to.
@param valueGetter
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 getter creation when normal compilation fails .