Topics related to the generation of code as the output of an application, instead of directly writing code by a programmer.
Questions tagged [code-generation]
3642 questions
2
votes
1 answer
Jooq Maven Code-Gen: Cannot find symbol
on my current project i am using the jooq-framework code-generator plugin for maven.
In my IDE (eclipse) everything is working fine but when trying to compile the project on the CI server or manually on cmd it fails with the message: "cannot find…

NeoP5
- 611
- 7
- 19
2
votes
1 answer
Generating JDBC code for Oracle PL/SQL package
I have a large Oracle PL/SQL package with several procedures with IN and OUT type parameters. And several of these parameters are User defined Types. Some of them are Types defined in the same package. (Defined package Specification).
Is there a…

sbm
- 81
- 6
2
votes
4 answers
C# Class (source code) Generator from XML file
What tools have you used to create class source code from xml files? Is this an edge case that I need to roll my own? I have need to create DTOs from some XML files, but the XML files are subject to change (add/remove attributes) so I need to be…

Nate
- 30,286
- 23
- 113
- 184
2
votes
1 answer
Alternatives to extrinsic functions such as imread and other functions during code generation in MATLAB
As you may know, extrinsic functions are not outputted during the code generation process. Are there alternatives to these functions and/or solutions to this problem? My code generation error report is shown below :
Code Generation Error Report
I…

SDG
- 2,260
- 8
- 35
- 77
2
votes
0 answers
validation of setter by constraint
Hello to all friends;
I am writing a code generator.
Given the following Query to obtain information about the constraints.
SELECT
alc.search_condition as condition
FROM
all_cons_columns cols
LEFT JOIN all_constraints alc
ON…

user2103099
- 73
- 5
2
votes
1 answer
Parser generator for JavaME
First: I have looked at this SO question but unfortunately there is no mention of JavaME
I am looking for a parser/lexer generator that produces code that can run on the Blackberry and its (obnoxious) JavaME.
E.g. at first I thought I could use…

AndersK
- 35,813
- 6
- 60
- 86
2
votes
1 answer
Glass Mapper IEnumerable to IEnumerable
I am using glass mapper and TDS code generation templates to generate models for my sitecore templates.
All working Good. But, If i have a multi-list field TDS templates are creating IEnumerable. I want it to be…

Dheeraj Palagiri
- 1,829
- 3
- 23
- 46
2
votes
2 answers
Qt Creator. Change code generating template for slots
I'm using Qt Creator 3.2.1 based on Qt 5.3.2
When in the designer, you can right click on a pushButton and select "Go to slot ...". A dialogue box opens allowing you to select a slot ... for example Clicked().
Then you will receive autogenerated…

Temak
- 2,929
- 36
- 49
2
votes
1 answer
Trouble Resolving Types from DomainModelTemplate
I am working on adding a base class to specific entities in my object model. To that end I have followed the samples in the following…

Matt
- 77
- 6
2
votes
1 answer
JIT emulation and tracking dirty memory blocks
I'm developing an emulator for a toy CPU (TR3200 cpu). Actually I have a pure interpreter core, but I'm researching to develop a tracing JIT cpu core.
I have doubts about how track if a source machine code that has been jited, is modified by the…

Zardoz89
- 590
- 5
- 17
2
votes
0 answers
Compiletimes with Roslyn suddenly drop
We are using Roslyn (the nuget package Microsoft.CodeAnalysis.CSharp, version 1.0.0.0-beta2) to compile generated code. We have 5000 CSharp files as String in memory and transform those to SyntaxTree's:
f => CSharpSyntaxTree.ParseText(f)
Then we…

Michiel Overeem
- 3,894
- 2
- 27
- 39
2
votes
2 answers
Automatic code generation in python
I need to call functions in a C dll from python. So I need to write functions of the format
def funcA(self):
ans = ctypes.uint64()
self.driver.getA(ctypes.byref(ans))
return ans
now I have to write the same code about 30 times, the…

Abhijit Ray
- 105
- 1
- 6
2
votes
0 answers
How to generate delegate constructors in Eclipse?
I want to extend some class which is final, like Scanner. So, I need to use composition
public class MyScanner {
private final Scanner delegate;
}
now, Scanner has 10 constructors.
How can I delegate all of them fast in Eclipse?
Generate…

Suzan Cioc
- 29,281
- 63
- 213
- 385
2
votes
1 answer
How do I set a member field to a value using codeDom namespace
Hi I want to create code that is something like this:
public string randomString = "some Random String";
How can i set a value to the member field that I created using:
CodeMemberField field = new CodeMemberField("System.String",…

hajpoj
- 13,299
- 2
- 46
- 63
2
votes
2 answers
What are the best (powerful yet easy) languages to implement text/data processing and code generation?
If I want to write my engine which will generate all the code solving the task described in simple declarative style, what languages should I look at?

Ivan
- 63,011
- 101
- 250
- 382