public int genCode(String language, String destDir, ArrayList<String> options)
    throws IOException {
    CodeGenerator gen = CodeGenerator.get(language);
    if (gen != null) {
      gen.genCode(mName, mInclFiles, mRecords, destDir, options);
    } else {
      System.err.println("Cannnot recognize language:"+language);
      return 1;
    }
    return 0;
  }
public int genCode ( String language , String destDir , ArrayList < String > options ) throws IOException { CodeGenerator gen = CodeGenerator . get ( language ) ; if ( gen != null ) { gen . genCode ( mName , mInclFiles , mRecords , destDir , options ) ; } else { System . err . println ( "Cannnot recognize language:" + language ) ; return 1 ; } return 0 ; }
Generate record code in given language. Language should be all
lowercase.