Top "Code-generation" questions

Topics related to the generation of code as the output of an application, instead of directly writing code by a programmer.

Get Project or Relative Directory with T4

How can I get a reference to the directory of the visual studio project or solution or the directory of …

visual-studio visual-studio-2008 file-io code-generation t4
Can I get an XML AST dump of C/C++ code with clang without using the compiler?

I managed to compile successfully clang for windows with cmake and visual studio 10. I would like to get an XML …

xml clang code-generation abstract-syntax-tree
What is CGLIB in Spring Framework?

What is CGLIB and how it is related to Spring? Do we have to define usage of CGLIB explicitly when …

spring code-generation cglib
Reflection.Emit vs CodeDOM

What are some pros/cons for using the Reflection.Emit library versus CodeDOM for dynamically generating code at runtime? I …

c# .net code-generation reflection.emit codedom
Creating T4 templates at runtime (build-time)?

We are building an inhouse application which needs to generate HTML files for upload into eBay listings. We are looking …

c# .net templates code-generation t4
Should I store generated code in source control

This is a debate I'm taking a part in. I would like to get more opinions and points of view. …

version-control code-generation
How to use T4 to generate two files at the same time from one template?

I am having a case in which I need to generate two CSharp code files with pretty the same code …

c# .net code-generation t4 webservice-client
Code replacement with an annotation processor

I'm trying to write an annotation processor to insert methods and fields on a class... and the documentation is so …

java code-generation annotation-processing
DTO and mapper generation from Domain Objects

I have plenty of java domain objects that I need to transform to DTOs. Please, don't start with the anti-pattern …

java code-generation mapping dto
How can I extend Java code generated by JAXB, CXF or Hibernate tools?

With generated Java source code, like code generated with Hibernate tools code generated with JAXB schema binding (xjc) code generated …

java hibernate code-generation jaxb cxf