GarglModule mod = parser.parseAndConvert();
System.out.println("LOG: Parsed requests " + jct.inputFilename);
// Create the necessary generator based on language selected and initialize it with the Module created from file
Generator generator = GeneratorFactory.getGenerator(jct.language);
if(generator == null) {
System.out.println("ERROR: Language '" + jct.language + "' has no associated generator.");
System.out.println("Valid generator languages: " + GeneratorFactory.getValidGeneratorTypes().toString());
}
else {
generator.setModule(mod);
generator.generateClass(jct.outputDirectory);
}
}