@Override
public void generateCode() {
File file = new File(getBaseDirectoryFor(SERIALIZER_CLASS_PACKAGE), SERIALIZER_CLASS_SIMPLE_NAME + ".java");
try {
file.getParentFile().mkdirs();
this.out = new PrintWriter(new FileWriter(file), true);
} catch (java.io.IOException ioe) {
throw new Error("Can't open file" + file);
}
generateFilePreamble(SERIALIZER_CLASS_PACKAGE, this.out);
newline(out);
println(out, "@SuppressWarnings(\"all\")");
printWords(out, "public", "final", "class", SERIALIZER_CLASS_SIMPLE_NAME);
newBlock(out);
generateValueTypeSerializations();
closeBlock(out);
}