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.

How do I get Eclipse to resolve classes generated with Maven 2?

I'm using Google Protocol Buffers to generate some Java classes for my project. Using Maven 2 and its "antrun" plugin, these …

eclipse maven-2 code-generation protocol-buffers
return only Digits 0-9 from a String

I need a regular expression that I can use in VBScript and .NET that will return only the numbers that …

c# vb.net regex vbscript code-generation
How can I generate database tables from C# classes?

Does anyone know a way to auto-generate database tables for a given class? I'm not looking for an entire persistence …

c# code-generation data-access
Rails migration for has_and_belongs_to_many join table

How do I do a script/generate migration to create a join table for a has_and_belongs_to_many …

ruby-on-rails migration code-generation has-and-belongs-to-many
How do I execute ruby template files (ERB) without a web server from command line?

I need ERB (Ruby's templating system) for templating of non-HTML files. (Instead, I want to use it for source files …

ruby code-generation template-engine erb
Can a Java class add a method to itself at runtime?

Can a class add a method to itself at runtime (like from a static block), so that if someone is …

java reflection code-generation javassist
'CompanyName.Foo' is a 'namespace' but is used like a 'type'

Restatement of the question I'm resurrecting this question because I just ran into this error again today, and I'm still …

c# linq-to-sql compiler-construction code-generation namespaces
Comparison of XSD Code Generators

I'm doing some research in code generation from xsd schema files. My requirements: Must generate C# 2.0 code (or above), using …

c# xsd code-generation
JPA java code generation

I am specifically looking for JPA code generation technique First, what are all the project could generate JPA compliant code? (…

java jpa autocomplete templates code-generation
A Java API to generate Java source files

I'm looking for a framework to generate Java source files. Something like the following API: X clazz = Something.createClass("package …

java eclipse code-generation