" is not an instance of "
+ "ptolemy.actor.lib.jni.CompiledCompositeActor.");
}
ptolemy.actor.lib.jni.CompiledCompositeActor actor = (ptolemy.actor.lib.jni.CompiledCompositeActor) compositeActor;
CodeGenerator codeGenerator = _getCodeGenerator(compositeActor);
// Append the output to stderr, stdout and the StringBuffer;
final StringBufferExec executeCommands = new StringBufferExec(true);
int returnCode = 0;
try {
codeGenerator.setExecuteCommands(executeCommands);
returnCode = codeGenerator.generateCode();
} catch (Exception e) {
throw new IllegalActionException(actor, e,
"Failed to generate code.");
}