public static MethodCallExpression buildGetPropertyExpression(final Expression objectExpression, final String propertyName, final ClassNode targetClassNode, final boolean useBooleanGetter) {
        String methodName = (useBooleanGetter ? "is" : "get") + MetaClassHelper.capitalize(propertyName);
        MethodCallExpression methodCallExpression = new MethodCallExpression(objectExpression, methodName, MethodCallExpression.NO_ARGUMENTS);
        MethodNode getterMethod = targetClassNode.getGetterMethod(methodName);
        if(getterMethod != null) {
            methodCallExpression.setMethodTarget(getterMethod);
        }
        return methodCallExpression;
    }
public static MethodCallExpression buildGetPropertyExpression ( final Expression objectExpression , final String propertyName , final ClassNode targetClassNode , final boolean useBooleanGetter ) { String methodName = ( useBooleanGetter ? "is" : "get" ) + MetaClassHelper . capitalize ( propertyName ) ; MethodCallExpression methodCallExpression = new MethodCallExpression ( objectExpression , methodName , MethodCallExpression . NO_ARGUMENTS ) ; MethodNode getterMethod = targetClassNode . getGetterMethod ( methodName ) ; if ( getterMethod != null ) { methodCallExpression . setMethodTarget ( getterMethod ) ; } return methodCallExpression ; }
Build static direct call to getter of a property

@param objectExpression
@param propertyName
@param targetClassNode
@param useBooleanGetter
@return The method call expression