private String generateFileForFramework(Framework fw,Width arch) throws Exception {
  File tempfile=File.createTempFile("JObjC-SOR-" + fw.name + "-"+ arch+ "-",".mm");
  PrintWriter out=new PrintWriter(new FileWriter(tempfile));
  out.println("#include<iostream>");
  printHeaderLines(fw,arch,out);
  out.println("");
  out.println("int main(int argc, char** argv){");
  printStructInfos(fw,arch,out);
  out.println("\treturn 0;");
  out.println("}");
  out.close();
  return tempfile.getAbsolutePath();
}

private String generateFileForFramework ( Framework fw , Width arch ) throws Exception { File tempfile = File . createTempFile ( "JObjC-SOR-" + fw . name + "-" + arch + "-" , ".mm" ) ; PrintWriter out = new PrintWriter ( new FileWriter ( tempfile ) ) ; out . println ( "#include<iostream>" ) ; printHeaderLines ( fw , arch , out ) ; out . println ( "" ) ; out . println ( "int main(int argc, char** argv){" ) ; printStructInfos ( fw , arch , out ) ; out . println ( "\treturn 0;" ) ; out . println ( "}" ) ; out . close ( ) ; return tempfile . getAbsolutePath ( ) ; }
generates objective - c file and returns absolute path name .
