formalArgs = new Class[] {Emitter.class, Definition.class, SymbolTable.class};
actualArgs = new Object[] {emitter, def, symbolTable};
}
for (int i = 0; i < writers.size(); ++i) {
Class wClass = (Class) writers.get(i);
Generator gen = null;
try {
Constructor ctor = wClass.getConstructor(formalArgs);
gen = (Generator) ctor.newInstance(actualArgs);
}
catch (Throwable t) {
throw new IOException(
Messages.getMessage("exception01", t.getMessage()));
}
gen.generate();
}
} // generate