protected String getMethodHeader(ArrayList<JXScriptArgument<?>> arguments)
	{
		String methodHeader = "var obj = new Object();\n"
				+ "obj.calc = function(";
		
		if( arguments != null )
		{
			for( int i=0; i<arguments.size(); i++ )
			{
				methodHeader += arguments.get(i).getName();
				if( i < (arguments.size()-1) )
					methodHeader += ", ";
			}
		}	
		methodHeader += ")\n{\n";
		
		return methodHeader;
	}