if (key != null && environment.isResourceGenerated(key)) {
return;
}
ModelFactory f = environment.getFactory();
PackageDeclaration packageDecl = getPackage(f, operatorClass);
ImportBuilder imports = getImportBuilder(f, packageDecl);
OperatorClassGenerator generator = new OperatorImplementationClassGenerator(
environment,
f,
imports,
operatorClass);
TypeDeclaration type = generator.generate();
if (type == null) {
sawError = true;
return;
}
List<ImportDeclaration> decls = imports.toImportDeclarations();
try {
emit(key, f, packageDecl, decls, type, operatorClass.getElement());
} catch (IOException e) {
LOG.debug(e.getMessage(), e);